aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
diff options
context:
space:
mode:
authorLijo Lazar <[email protected]>2023-02-13 13:56:18 +0000
committerAlex Deucher <[email protected]>2023-06-09 13:57:27 +0000
commit570de94b9c5d93e1c5bc4e357946efb93c662da9 (patch)
treec361db87ae84b8df19dd8dc9637b30086cb5c0ee /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
parentdrm/amdgpu: Check memory ranges for valid xcp mode (diff)
downloadkernel-570de94b9c5d93e1c5bc4e357946efb93c662da9.tar.gz
kernel-570de94b9c5d93e1c5bc4e357946efb93c662da9.zip
drm/amdgpu: Add auto mode for compute partition
When auto mode is specified, driver will choose the right compute partition mode. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Le Ma <[email protected]> Reviewed-by: Philip Yang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
index 728977f8afe7..e9c93f6e12b8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
@@ -62,6 +62,8 @@ enum amdgpu_gfx_partition {
AMDGPU_QPX_PARTITION_MODE = 3,
AMDGPU_CPX_PARTITION_MODE = 4,
AMDGPU_UNKNOWN_COMPUTE_PARTITION_MODE = -1,
+ /* Automatically choose the right mode */
+ AMDGPU_AUTO_COMPUTE_PARTITION_MODE = -2,
};
#define NUM_XCC(x) hweight16(x)