diff options
| author | Guchun Chen <[email protected]> | 2023-07-14 11:38:16 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-07-18 15:19:02 +0000 |
| commit | 18cf073faaa9467d92164dbd4722cf775766860a (patch) | |
| tree | 36083b0ba9190508bf04f11f5b1178dd1172660a /drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h | |
| parent | drm/amdgpu/vm: use the same xcp_id from root PD (diff) | |
| download | kernel-18cf073faaa9467d92164dbd4722cf775766860a.tar.gz kernel-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 <[email protected]>
Signed-off-by: Guchun Chen <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h | 2 |
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 { |
