diff options
author | Christian König <christian.koenig@amd.com> | 2020-09-11 17:01:21 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-09-15 17:05:19 +0300 |
commit | 9c3006a4cc1b165652a07727caf7926054f9aa9f (patch) | |
tree | e299050baec7afe6fef9269a0c4b005b37ff8cb6 /drivers/gpu/drm/qxl | |
parent | 5839172f09806f828319bdb2af97ca3c6cfcb432 (diff) | |
download | linux-9c3006a4cc1b165652a07727caf7926054f9aa9f.tar.xz |
drm/ttm: remove available_caching
Instead of letting TTM make an educated guess based on
some mask all drivers should just specify what caching
they want for their CPU mappings.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/390207/
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_ttm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index d39d7994ea34..bf3b091d0e2a 100644 --- a/drivers/gpu/drm/qxl/qxl_ttm.c +++ b/drivers/gpu/drm/qxl/qxl_ttm.c @@ -202,8 +202,7 @@ static int qxl_ttm_init_mem_type(struct qxl_device *qdev, unsigned int type, uint64_t size) { - return ttm_range_man_init(&qdev->mman.bdev, type, TTM_PL_MASK_CACHING, - false, size); + return ttm_range_man_init(&qdev->mman.bdev, type, false, size); } int qxl_ttm_init(struct qxl_device *qdev) |