diff options
author | Dave Airlie <airlied@redhat.com> | 2013-07-04 06:59:34 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-05 02:44:18 +0200 |
commit | b86487a6b671ff7107fbf6d3ff10c2da970cd1c3 (patch) | |
tree | b05615548580d6b98e064e7fedc579aa25e3afbd /drivers/gpu/drm/qxl/qxl_object.c | |
parent | qxl: add ring prep code for s/r (diff) | |
download | linux-b86487a6b671ff7107fbf6d3ff10c2da970cd1c3.tar.xz linux-b86487a6b671ff7107fbf6d3ff10c2da970cd1c3.zip |
qxl: add fb and ttm entry points for use by suspend/resume.
This just ports some APIs like radeon uses to provide hooks for s/r to
call.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_object.c')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_object.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_object.c b/drivers/gpu/drm/qxl/qxl_object.c index d9b12e7bc6e1..62a046e4a036 100644 --- a/drivers/gpu/drm/qxl/qxl_object.c +++ b/drivers/gpu/drm/qxl/qxl_object.c @@ -363,3 +363,8 @@ int qxl_bo_list_add(struct qxl_reloc_list *reloc_list, struct qxl_bo *bo) return ret; return 0; } + +int qxl_surf_evict(struct qxl_device *qdev) +{ + return ttm_bo_evict_mm(&qdev->mman.bdev, TTM_PL_PRIV0); +} |