summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/core/include/engine/dmaobj.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-10-08 02:58:23 (GMT)
committerBen Skeggs <bskeggs@redhat.com>2012-11-28 23:56:38 (GMT)
commit6c1689a08cf54e58c19eb565528a293f36f731be (patch)
tree53ecbfa8324e13c7a7af4373d2914cf5c90c9d15 /drivers/gpu/drm/nouveau/core/include/engine/dmaobj.h
parentf86770aaaa9a4d9cc68c8a9adc351ab7f47e6345 (diff)
downloadlinux-fsl-qoriq-6c1689a08cf54e58c19eb565528a293f36f731be.tar.xz
drm/nouveau/dmaobj: move parent class check to bind() method
Otherwise when nvc0- gains a bind() method (disp needs it), the fifo engine will attempt to create a dma object for the push buffer, which is unnecessary on fermi. The only sane place to put these checks is in the bind method itself, and have it unconditionally called from wherever it might be needed. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/engine/dmaobj.h')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/engine/dmaobj.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/engine/dmaobj.h b/drivers/gpu/drm/nouveau/core/include/engine/dmaobj.h
index f61d1a8..a0b1026 100644
--- a/drivers/gpu/drm/nouveau/core/include/engine/dmaobj.h
+++ b/drivers/gpu/drm/nouveau/core/include/engine/dmaobj.h
@@ -16,8 +16,12 @@ struct nouveau_dmaobj {
struct nouveau_dmaeng {
struct nouveau_engine base;
- int (*bind)(struct nouveau_dmaeng *, struct nouveau_object *parent,
- struct nouveau_dmaobj *, struct nouveau_gpuobj **);
+
+ /* creates a "physical" dma object from a struct nouveau_dmaobj */
+ int (*bind)(struct nouveau_dmaeng *dmaeng,
+ struct nouveau_object *parent,
+ struct nouveau_dmaobj *dmaobj,
+ struct nouveau_gpuobj **);
};
#define nouveau_dmaeng_create(p,e,c,d) \