search for: nvc0_fb_dtor

Displaying 12 results from an estimated 12 matches for "nvc0_fb_dtor".

Did you mean: nvc0_fb_ctor
2014 Feb 01
0
[RFC 09/16] drm/nouveau/fb: support platform devices
...hanged, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c b/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c index 45470e1..0670ae3 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c +++ b/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c @@ -70,8 +70,7 @@ nvc0_fb_dtor(struct nouveau_object *object) struct nvc0_fb_priv *priv = (void *)object; if (priv->r100c10_page) { - pci_unmap_page(device->pdev, priv->r100c10, PAGE_SIZE, - PCI_DMA_BIDIRECTIONAL); + nv_device_unmap_page(device, priv->r100c10); __free_page(priv->r100c10_page);...
2014 Jul 31
2
[PATCH v5] drm/nouveau: map pages using DMA API
..._device_base(device), priv->r100c08, PAGE_SIZE, + DMA_BIDIRECTIONAL); __free_page(priv->r100c08_page); } diff --git a/nvkm/subdev/fb/nvc0.c b/nvkm/subdev/fb/nvc0.c index 0670ae33ee45..9f5f3ac8d4c6 100644 --- a/nvkm/subdev/fb/nvc0.c +++ b/nvkm/subdev/fb/nvc0.c @@ -70,7 +70,8 @@ nvc0_fb_dtor(struct nouveau_object *object) struct nvc0_fb_priv *priv = (void *)object; if (priv->r100c10_page) { - nv_device_unmap_page(device, priv->r100c10); + dma_unmap_page(nv_device_base(device), priv->r100c10, PAGE_SIZE, + DMA_BIDIRECTIONAL); __free_page(priv->r100c10_page...
2014 Feb 01
2
[RFC 14/16] drm/nouveau/fb: add GK20A support
...ails. > + * > + */ > + > +#include "nvc0.h" > + > +struct nouveau_oclass * > +nvea_fb_oclass = &(struct nouveau_fb_impl) { > + .base.handle = NV_SUBDEV(FB, 0xea), > + .base.ofuncs = &(struct nouveau_ofuncs) { > + .ctor = nvc0_fb_ctor, > + .dtor = nvc0_fb_dtor, > + .init = nvc0_fb_init, > + .fini = _nouveau_fb_fini, > + }, > + .memtype = nvc0_fb_memtype_valid, > + .ram = &nvea_ram_oclass, > +}.base; > diff --git a/drivers/gpu/drm/nouveau/core/subdev/fb/priv.h b/drivers/gpu/drm/nouveau/core/subdev/fb/priv.h > index edaf95d..0...
2014 Feb 01
0
[RFC 14/16] drm/nouveau/fb: add GK20A support
...E. See the GNU General Public License for + * more details. + * + */ + +#include "nvc0.h" + +struct nouveau_oclass * +nvea_fb_oclass = &(struct nouveau_fb_impl) { + .base.handle = NV_SUBDEV(FB, 0xea), + .base.ofuncs = &(struct nouveau_ofuncs) { + .ctor = nvc0_fb_ctor, + .dtor = nvc0_fb_dtor, + .init = nvc0_fb_init, + .fini = _nouveau_fb_fini, + }, + .memtype = nvc0_fb_memtype_valid, + .ram = &nvea_ram_oclass, +}.base; diff --git a/drivers/gpu/drm/nouveau/core/subdev/fb/priv.h b/drivers/gpu/drm/nouveau/core/subdev/fb/priv.h index edaf95d..0b95a25 100644 --- a/drivers/gpu/drm/nouv...
2014 Aug 04
0
[PATCH v5] drm/nouveau: map pages using DMA API
...SIZE, > + DMA_BIDIRECTIONAL); > __free_page(priv->r100c08_page); > } > > diff --git a/nvkm/subdev/fb/nvc0.c b/nvkm/subdev/fb/nvc0.c > index 0670ae33ee45..9f5f3ac8d4c6 100644 > --- a/nvkm/subdev/fb/nvc0.c > +++ b/nvkm/subdev/fb/nvc0.c > @@ -70,7 +70,8 @@ nvc0_fb_dtor(struct nouveau_object *object) > struct nvc0_fb_priv *priv = (void *)object; > > if (priv->r100c10_page) { > - nv_device_unmap_page(device, priv->r100c10); > + dma_unmap_page(nv_device_base(device), priv->r100c10, PAGE_SIZE, > + DMA_BIDIRECTIONAL); >...
2014 Feb 01
0
[RFC 14/16] drm/nouveau/fb: add GK20A support
...h" >> + >> +struct nouveau_oclass * >> +nvea_fb_oclass = &(struct nouveau_fb_impl) { >> + .base.handle = NV_SUBDEV(FB, 0xea), >> + .base.ofuncs = &(struct nouveau_ofuncs) { >> + .ctor = nvc0_fb_ctor, >> + .dtor = nvc0_fb_dtor, >> + .init = nvc0_fb_init, >> + .fini = _nouveau_fb_fini, >> + }, >> + .memtype = nvc0_fb_memtype_valid, >> + .ram = &nvea_ram_oclass, >> +}.base; >> diff --git a/drivers/gpu/drm/nouveau/core/subdev/fb/priv.h b/drive...
2014 Feb 01
2
[RFC 14/16] drm/nouveau/fb: add GK20A support
...t; +struct nouveau_oclass * > >> +nvea_fb_oclass = &(struct nouveau_fb_impl) { > >> + .base.handle = NV_SUBDEV(FB, 0xea), > >> + .base.ofuncs = &(struct nouveau_ofuncs) { > >> + .ctor = nvc0_fb_ctor, > >> + .dtor = nvc0_fb_dtor, > >> + .init = nvc0_fb_init, > >> + .fini = _nouveau_fb_fini, > >> + }, > >> + .memtype = nvc0_fb_memtype_valid, > >> + .ram = &nvea_ram_oclass, > >> +}.base; > >> diff --git a/drivers/gpu/drm/no...
2014 Feb 01
28
[RFC 00/16] drm/nouveau: initial support for GK20A (Tegra K1)
Hello everyone, GK20A is the Kepler-based GPU used in the upcoming Tegra K1 chips. The following patches perform architectural changes to Nouveau that are necessary to support non-PCI GPUs and add initial support for GK20A. Although the support is still very basic and more user-space changes will be needed to make the full graphics stack run on top of it, we were able to successfully open
2014 Feb 12
0
[PATCH v2] drm/nouveau: support for platform devices
...(priv->r100c08_page); } diff --git a/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c b/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c index 45470e1f0385..0670ae33ee45 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c +++ b/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c @@ -70,8 +70,7 @@ nvc0_fb_dtor(struct nouveau_object *object) struct nvc0_fb_priv *priv = (void *)object; if (priv->r100c10_page) { - pci_unmap_page(device->pdev, priv->r100c10, PAGE_SIZE, - PCI_DMA_BIDIRECTIONAL); + nv_device_unmap_page(device, priv->r100c10); __free_page(priv->r100c10_page);...
2014 Feb 12
2
[PATCH v2] drm/nouveau: support for platform devices
On 12/02/14 05:38, Alexandre Courbot wrote: > Upcoming mobile Kepler GPUs (such as GK20A) use the platform bus instead > of PCI to which Nouveau is tightly dependent. This patch allows Nouveau > to handle platform devices by: > > - abstracting PCI-dependent functions that were typically used for > resource querying and page mapping, > - introducing a nv_device_is_pci()
2014 Feb 11
2
[PATCH] drm/nouveau: support for platform devices
On Mon, Feb 10, 2014 at 8:50 PM, Thierry Reding <thierry.reding at gmail.com> wrote: > On Mon, Feb 10, 2014 at 02:53:00PM +0900, Alexandre Courbot wrote: > [...] >> diff --git a/drivers/gpu/drm/nouveau/core/engine/device/base.c b/drivers/gpu/drm/nouveau/core/engine/device/base.c > [...] >> +resource_size_t >> +nv_device_resource_start(struct nouveau_device *device,
2014 Feb 10
2
[PATCH] drm/nouveau: support for platform devices
...(priv->r100c08_page); } diff --git a/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c b/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c index 45470e1f0385..0670ae33ee45 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c +++ b/drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c @@ -70,8 +70,7 @@ nvc0_fb_dtor(struct nouveau_object *object) struct nvc0_fb_priv *priv = (void *)object; if (priv->r100c10_page) { - pci_unmap_page(device->pdev, priv->r100c10, PAGE_SIZE, - PCI_DMA_BIDIRECTIONAL); + nv_device_unmap_page(device, priv->r100c10); __free_page(priv->r100c10_page);...