drm/amdgpu: Add EXT_COHERENT memory allocation flags
authorDavid Francis <David.Francis@amd.com>
Fri, 21 Jul 2023 15:14:24 +0000 (11:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Sep 2023 20:24:06 +0000 (16:24 -0400)
commit5f248462c69d5ea7b54a88c62edb73f626d1528d
tree8840e1bb0fcb471cf1c480513b3390c8e1b1b428
parentd92e55565c53eff6d0c549090487d0a1ef704e1c
drm/amdgpu: Add EXT_COHERENT memory allocation flags

These flags (for GEM and SVM allocations) allocate
memory that allows for system-scope atomic semantics.

On GFX943 these flags cause caches to be avoided on
non-local memory.

On all other ASICs they are identical in functionality to the
equivalent COHERENT flags.

Corresponding Thunk patch is at
https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/pull/88

Reviewed-by: David Yat Sin <David.YatSin@amd.com>
Signed-off-by: David Francis <David.Francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
include/uapi/drm/amdgpu_drm.h
include/uapi/linux/kfd_ioctl.h