diff options
author | Jérôme Glisse <jglisse@redhat.com> | 2018-07-27 00:59:13 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2019-02-20 02:00:02 +0300 |
commit | 5be73b690875f7eb2d2defb54ccd7f2f12074984 (patch) | |
tree | a4a08ec3faeacfd2275c44545c240bf00d6d5c2d /drivers/gpu/drm/nouveau/nouveau_drv.h | |
parent | eeaf06ac1a5584e41cf289f8351e446bb131374b (diff) | |
download | linux-5be73b690875f7eb2d2defb54ccd7f2f12074984.tar.xz |
drm/nouveau/dmem: device memory helpers for SVM
Device memory can be use in SVM, in which case we do not have any of
the existing buffer object. This commit add infrastructure to allow
use of device memory without nouveau_bo. Again this is a temporary
solution until a rework of GPU memory management.
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drv.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h index 1326b42f75e6..da847244479d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.h +++ b/drivers/gpu/drm/nouveau/nouveau_drv.h @@ -212,6 +212,8 @@ struct nouveau_drm { struct dev_pm_domain vga_pm_domain; struct nouveau_svm *svm; + + struct nouveau_dmem *dmem; }; static inline struct nouveau_drm * |