drm/amdgpu: use a macro to define no xcp partition case
authorGuchun Chen <guchun.chen@amd.com>
Fri, 14 Jul 2023 11:38:16 +0000 (19:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jul 2023 18:42:54 +0000 (14:42 -0400)
commitb13d3e9c6b62597a5c31fdc74febb3bc588893bf
tree5e12d4324fd37a81a763163511a85a8b733e7050
parent8e78127143086bd89aa099740c1767d64fe80631
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.h
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c