]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amdgpu: Add DCC GFX12 flag to enable address alignment
authorArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Mon, 5 Aug 2024 13:47:04 +0000 (19:17 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Aug 2024 22:23:59 +0000 (18:23 -0400)
commit6ad9dafba19f15a64f71c2e1a9e3b6932f96628e
tree2eafe61184fb2ef2d96e90ba6f543e0636a4e9e2
parent7fc5f252c0d21b7b89720386344b614733edab32
drm/amdgpu: Add DCC GFX12 flag to enable address alignment

We require this flag AMDGPU_GEM_CREATE_GFX12_DCC or any other
kernel level GFX12 DCC flag to differentiate the DCC buffers and other
pinned display buffers(which has TTM_PL_FLAG_CONTIGUOUS enabled).

If we use the TTM_PL_FLAG_CONTIGUOUS flag for DCC buffers, we may over
allocate for all the pinned display buffers unnecessarily that leads to
memory allocation failure.

Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 46142cc1b9272d664e0258e105b537735bfeeccc)
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c