diff options
| author | Lijo Lazar <lijo.lazar@amd.com> | 2023-02-13 19:26:18 +0530 | 
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 09:57:27 -0400 | 
| commit | 570de94b9c5d93e1c5bc4e357946efb93c662da9 (patch) | |
| tree | c361db87ae84b8df19dd8dc9637b30086cb5c0ee /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | |
| parent | 1589c82a10852c6de742e5d6a92042a3fd68d753 (diff) | |
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 <lijo.lazar@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Reviewed-by: Philip Yang <philip.yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 2 | 
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)  | 
