drm/amdgpu: Correct get_xcp_mem_id calculation
authorPhilip Yang <Philip.Yang@amd.com>
Wed, 19 Apr 2023 21:39:35 +0000 (17:39 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:37:02 +0000 (10:37 -0400)
commit3cde91172d2e9d8d8dc6e0d62b7c829de503825c
treee3520aacb58052447ea249894fd24f6a80aa8d8f
parent84b4dd3f84de424a68e1fda0d483530ddaa92b45
drm/amdgpu: Correct get_xcp_mem_id calculation

Current calculation only works for NPS4/QPX mode, correct it for
NPS4/CPX mode.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c