Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Update total channel number for umc v8_10

Update total channel number for umc v8_10.

Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Candice Li and committed by
Alex Deucher
bcd9a5f8 4506f0bc

+5 -1
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
··· 1515 1515 mall_size += mall_size_per_umc; 1516 1516 } 1517 1517 adev->gmc.mall_size = mall_size; 1518 + adev->gmc.m_half_use = half_use; 1518 1519 break; 1519 1520 default: 1520 1521 dev_err(adev->dev,
+2
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
··· 301 301 302 302 /* MALL size */ 303 303 u64 mall_size; 304 + uint32_t m_half_use; 305 + 304 306 /* number of UMC instances */ 305 307 int num_umc; 306 308 /* mode2 save restore */
+2 -1
drivers/gpu/drm/amd/amdgpu/umc_v8_10.h
··· 33 33 34 34 /* Total channel instances for all available umc nodes */ 35 35 #define UMC_V8_10_TOTAL_CHANNEL_NUM(adev) \ 36 - (UMC_V8_10_CHANNEL_INSTANCE_NUM * UMC_V8_10_UMC_INSTANCE_NUM * (adev)->gmc.num_umc) 36 + (UMC_V8_10_CHANNEL_INSTANCE_NUM * UMC_V8_10_UMC_INSTANCE_NUM * \ 37 + (adev)->gmc.num_umc - hweight32((adev)->gmc.m_half_use) * 2) 37 38 38 39 /* UMC regiser per channel offset */ 39 40 #define UMC_V8_10_PER_CHANNEL_OFFSET 0x400