aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
diff options
context:
space:
mode:
authorGuchun Chen <guchun.chen@amd.com>2023-07-14 19:38:16 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-07-18 11:19:02 -0400
commit18cf073faaa9467d92164dbd4722cf775766860a (patch)
tree36083b0ba9190508bf04f11f5b1178dd1172660a /drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
parente379b5e7dc7e934940290b38d033907930d37c99 (diff)
downloadlinux-18cf073faaa9467d92164dbd4722cf775766860a.tar.gz
linux-18cf073faaa9467d92164dbd4722cf775766860a.tar.bz2
linux-18cf073faaa9467d92164dbd4722cf775766860a.zip
drm/amdgpu: use a macro to define no xcp partition case
~0 as no xcp partition is used in several places, so improve its definition by a macro for code consistency. Suggested-by: Christian König <christian.koenig@amd.com> Signed-off-by: Guchun Chen <guchun.chen@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@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 0f8026d64ea5..9a1036aeec2a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
@@ -37,6 +37,8 @@
#define AMDGPU_XCP_FL_NONE 0
#define AMDGPU_XCP_FL_LOCKED (1 << 0)
+#define AMDGPU_XCP_NO_PARTITION (~0)
+
struct amdgpu_fpriv;
enum AMDGPU_XCP_IP_BLOCK {