drm/radeon: fix KV harvesting
Subsystems (3)
PATCH 1/2 drm/radeon: fix KV harvesting
Always set the graphics values to the max for the asic type. E.g., some 1 RB chips are actually 1 RB chips, others are actually harvested 2 RB chips.
--- drivers/gpu/drm/radeon/cik.c | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-)
drivers/gpu/drm/radeon/cik.c +2 -29
@@ -3221,35 +3221,8 @@ static void cik_gpu_init(struct radeon_device *rdev)case CHIP_KAVERI : rdev->config.cik.max_shader_engines =1 ; rdev->config.cik.max_tile_pipes =4 ; -if ((rdev->pdev->device ==0x1304 ) || - (rdev->pdev->device ==0x1305 ) || - (rdev->pdev->device ==0x130C ) || - (rdev->pdev->device ==0x130F ) || - (rdev->pdev->device ==0x1310 ) || - (rdev->pdev->device ==0x1311 ) || - (rdev->pdev->device ==0x131C )) { - rdev->config.cik.max_cu_per_sh =8 ; - rdev->config.cik.max_backends_per_se =2 ; - }else if ((rdev->pdev->device ==0x1309 ) || - (rdev->pdev->device ==0x130A ) || - (rdev->pdev->device ==0x130D ) || - (rdev->pdev->device ==0x1313 ) || - (rdev->pdev->device ==0x131D )) { - rdev->config.cik.max_cu_per_sh =6 ; - rdev->config.cik.max_backends_per_se =2 ; - }else if ((rdev->pdev->device ==0x1306 ) || - (rdev->pdev->device ==0x1307 ) || - (rdev->pdev->device ==0x130B ) || - (rdev->pdev->device ==0x130E ) || - (rdev->pdev->device ==0x1315 ) || - (rdev->pdev->device ==0x1318 ) || - (rdev->pdev->device ==0x131B )) { - rdev->config.cik.max_cu_per_sh =4 ; - rdev->config.cik.max_backends_per_se =1 ; - }else { - rdev->config.cik.max_cu_per_sh =3 ; - rdev->config.cik.max_backends_per_se =1 ; - } + rdev->config.cik.max_cu_per_sh =8 ; + rdev->config.cik.max_backends_per_se =2 ; rdev->config.cik.max_sh_per_se =1 ; rdev->config.cik.max_texture_channel_caches =4 ; rdev->config.cik.max_gprs =256 ;
Signature · 1 line
2.13.6
PATCH 2/2 drm/amdgpu: fix KV harvesting
Always set the graphics values to the max for the asic type. E.g., some 1 RB chips are actually 1 RB chips, others are actually harvested 2 RB chips.
--- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c +2 -28
@@ -4358,34 +4358,8 @@ static void gfx_v7_0_gpu_early_init(struct amdgpu_device *adev)case CHIP_KAVERI : adev->gfx.config.max_shader_engines =1 ; adev->gfx.config.max_tile_pipes =4 ; -if ((adev->pdev->device ==0x1304 ) || - (adev->pdev->device ==0x1305 ) || - (adev->pdev->device ==0x130C ) || - (adev->pdev->device ==0x130F ) || - (adev->pdev->device ==0x1310 ) || - (adev->pdev->device ==0x1311 ) || - (adev->pdev->device ==0x131C )) { - adev->gfx.config.max_cu_per_sh =8 ; - adev->gfx.config.max_backends_per_se =2 ; - }else if ((adev->pdev->device ==0x1309 ) || - (adev->pdev->device ==0x130A ) || - (adev->pdev->device ==0x130D ) || - (adev->pdev->device ==0x1313 ) || - (adev->pdev->device ==0x131D )) { - adev->gfx.config.max_cu_per_sh =6 ; - adev->gfx.config.max_backends_per_se =2 ; - }else if ((adev->pdev->device ==0x1306 ) || - (adev->pdev->device ==0x1307 ) || - (adev->pdev->device ==0x130B ) || - (adev->pdev->device ==0x130E ) || - (adev->pdev->device ==0x1315 ) || - (adev->pdev->device ==0x131B )) { - adev->gfx.config.max_cu_per_sh =4 ; - adev->gfx.config.max_backends_per_se =1 ; - }else { - adev->gfx.config.max_cu_per_sh =3 ; - adev->gfx.config.max_backends_per_se =1 ; - } + adev->gfx.config.max_cu_per_sh =8 ; + adev->gfx.config.max_backends_per_se =2 ; adev->gfx.config.max_sh_per_se =1 ; adev->gfx.config.max_texture_channel_caches =4 ; adev->gfx.config.max_gprs =256 ;
Signature · 1 line
2.13.6
A message that is not in the archive (sent off-list or not yet received): 20180305183014.4861-2-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Zhu, Rex
Acked-by Rex ZhuRe: [PATCH 2/2] drm/amdgpu: fix KV harvesting
Best Regards
Rex
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Alex Deucher <[email protected]>
Sent: Tuesday, March 6, 2018 2:30 AM
To: [email protected]
Cc: Deucher, Alexander; [email protected]
Subject: [PATCH 2/2] drm/amdgpu: fix KV harvesting
Always set the graphics values to the max for the asic type. E.g., some 1 RB chips are actually 1 RB chips, others are actually harvested 2 RB chips.
--- drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c +2 -28
@@ -4358,34 +4358,8 @@ static void gfx_v7_0_gpu_early_init(struct amdgpu_device *adev)case CHIP_KAVERI : adev->gfx.config.max_shader_engines =1 ; adev->gfx.config.max_tile_pipes =4 ; -if ((adev->pdev->device ==0x1304 ) || - (adev->pdev->device ==0x1305 ) || - (adev->pdev->device ==0x130C ) || - (adev->pdev->device ==0x130F ) || - (adev->pdev->device ==0x1310 ) || - (adev->pdev->device ==0x1311 ) || - (adev->pdev->device ==0x131C )) { - adev->gfx.config.max_cu_per_sh =8 ; - adev->gfx.config.max_backends_per_se =2 ; - }else if ((adev->pdev->device ==0x1309 ) || - (adev->pdev->device ==0x130A ) || - (adev->pdev->device ==0x130D ) || - (adev->pdev->device ==0x1313 ) || - (adev->pdev->device ==0x131D )) { - adev->gfx.config.max_cu_per_sh =6 ; - adev->gfx.config.max_backends_per_se =2 ; - }else if ((adev->pdev->device ==0x1306 ) || - (adev->pdev->device ==0x1307 ) || - (adev->pdev->device ==0x130B ) || - (adev->pdev->device ==0x130E ) || - (adev->pdev->device ==0x1315 ) || - (adev->pdev->device ==0x131B )) { - adev->gfx.config.max_cu_per_sh =4 ; - adev->gfx.config.max_backends_per_se =1 ; - }else { - adev->gfx.config.max_cu_per_sh =3 ; - adev->gfx.config.max_backends_per_se =1 ; - } + adev->gfx.config.max_cu_per_sh =8 ; + adev->gfx.config.max_backends_per_se =2 ; adev->gfx.config.max_sh_per_se =1 ; adev->gfx.config.max_texture_channel_caches =4 ; adev->gfx.config.max_gprs =256 ;
--
2.13.6
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
amd-gfx Info Page - freedesktop.org<https://lists.freedesktop.org/mailman/listinfo/amd-gfx>
lists.freedesktop.org
Subscribing to amd-gfx: Subscribe to amd-gfx by filling out the following form. Use of all freedesktop.org lists is subject to our Code of ...
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Am 05.03.2018 um 19:30 schrieb Alex Deucher:
Quoted 7 lines
Always set the graphics values to the max for the asic type. E.g., some 1 RB chips are actually 1 RB chips, others are actually harvested 2 RB chips.
Quoted 46 lines
--- drivers/gpu/drm/radeon/cik.c | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-)drivers/gpu/drm/radeon/cik.c +2
-29@@ -3221,35 +3221,8 @@ static void cik_gpu_init(struct radeon_device *rdev)case CHIP_KAVERI : rdev->config.cik.max_shader_engines =1 ; rdev->config.cik.max_tile_pipes =4 ; -if ((rdev->pdev->device ==0x1304 ) || - (rdev->pdev->device ==0x1305 ) || - (rdev->pdev->device ==0x130C ) || - (rdev->pdev->device ==0x130F ) || - (rdev->pdev->device ==0x1310 ) || - (rdev->pdev->device ==0x1311 ) || - (rdev->pdev->device ==0x131C )) { - rdev->config.cik.max_cu_per_sh =8 ; - rdev->config.cik.max_backends_per_se =2 ; - }else if ((rdev->pdev->device ==0x1309 ) || - (rdev->pdev->device ==0x130A ) || - (rdev->pdev->device ==0x130D ) || - (rdev->pdev->device ==0x1313 ) || - (rdev->pdev->device ==0x131D )) { - rdev->config.cik.max_cu_per_sh =6 ; - rdev->config.cik.max_backends_per_se =2 ; - }else if ((rdev->pdev->device ==0x1306 ) || - (rdev->pdev->device ==0x1307 ) || - (rdev->pdev->device ==0x130B ) || - (rdev->pdev->device ==0x130E ) || - (rdev->pdev->device ==0x1315 ) || - (rdev->pdev->device ==0x1318 ) || - (rdev->pdev->device ==0x131B )) { - rdev->config.cik.max_cu_per_sh =4 ; - rdev->config.cik.max_backends_per_se =1 ; - }else { - rdev->config.cik.max_cu_per_sh =3 ; - rdev->config.cik.max_backends_per_se =1 ; - } + rdev->config.cik.max_cu_per_sh =8 ; + rdev->config.cik.max_backends_per_se =2 ; rdev->config.cik.max_sh_per_se =1 ; rdev->config.cik.max_texture_channel_caches =4 ; rdev->config.cik.max_gprs =256 ;