summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
diff options
context:
space:
mode:
authorLijo Lazar <lijo.lazar@amd.com>2024-09-17 10:24:11 +0200
committerAlex Deucher <alexander.deucher@amd.com>2024-09-26 23:06:18 +0200
commit1bc0b339153638ce018b743d6cf07596327d2c71 (patch)
tree32e0a70878e8f36ae13f5bec1b228e970863b704 /drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
parentdrm/amdgpu: Fix typo "acccess" and improve the comment style here (diff)
downloadlinux-1bc0b339153638ce018b743d6cf07596327d2c71.tar.xz
linux-1bc0b339153638ce018b743d6cf07596327d2c71.zip
drm/amd: Add helper to get partition config modes
Add helper to get supported/available partition config modes Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
index 32775260556f..2c54c05f2c16 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
@@ -97,6 +97,8 @@ struct amdgpu_xcp_mgr {
/* Used to determine KFD memory size limits per XCP */
unsigned int num_xcp_per_mem_partition;
+ uint32_t supp_xcp_modes;
+ uint32_t avail_xcp_modes;
};
struct amdgpu_xcp_mgr_funcs {