diff options
author | Christian König <christian.koenig@amd.com> | 2020-09-10 13:39:41 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-09-11 13:31:23 +0200 |
commit | 48e07c23cbeba2a2cda7ca73be0015e727818536 (patch) | |
tree | 96821c04467b6f098eab2da179c9c027ed5ab68e /include/drm/ttm/ttm_placement.h | |
parent | drm/vmwgfx: stop setting multiple domain flags (diff) | |
download | linux-48e07c23cbeba2a2cda7ca73be0015e727818536.tar.xz linux-48e07c23cbeba2a2cda7ca73be0015e727818536.zip |
drm/ttm: nuke memory type flags
It's not supported to specify more than one of those flags.
So it never made sense to make this a flag in the first place.
Nuke the flags and specify directly which memory type to use.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/389826/?series=81551&rev=1
Diffstat (limited to 'include/drm/ttm/ttm_placement.h')
-rw-r--r-- | include/drm/ttm/ttm_placement.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/drm/ttm/ttm_placement.h b/include/drm/ttm/ttm_placement.h index e88a8e39767b..d4022655eae4 100644 --- a/include/drm/ttm/ttm_placement.h +++ b/include/drm/ttm/ttm_placement.h @@ -42,12 +42,6 @@ #define TTM_PL_VRAM 2 #define TTM_PL_PRIV 3 -#define TTM_PL_FLAG_SYSTEM (1 << TTM_PL_SYSTEM) -#define TTM_PL_FLAG_TT (1 << TTM_PL_TT) -#define TTM_PL_FLAG_VRAM (1 << TTM_PL_VRAM) -#define TTM_PL_FLAG_PRIV (1 << TTM_PL_PRIV) -#define TTM_PL_MASK_MEM 0x0000FFFF - /* * Other flags that affects data placement. * TTM_PL_FLAG_CACHED indicates cache-coherent mappings @@ -71,8 +65,6 @@ TTM_PL_FLAG_UNCACHED | \ TTM_PL_FLAG_WC) -#define TTM_PL_MASK_MEMTYPE (TTM_PL_MASK_MEM | TTM_PL_MASK_CACHING) - /** * struct ttm_place * @@ -85,6 +77,7 @@ struct ttm_place { unsigned fpfn; unsigned lpfn; + uint32_t mem_type; uint32_t flags; }; |