Skip to content

Commit cd52778

Browse files
committed
drm/amdgpu: enable runtime pm on vega10 when noretry=0
The failures with ROCm only happen with noretry=1, so enable runtime pm when noretry=0 (the current default). Reviewed-by: Felix Kuehling <[email protected]> Acked-by: Rajneesh Bhardwaj <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent b38c696 commit cd52778

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,18 @@ int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags)
176176
case CHIP_BONAIRE:
177177
case CHIP_HAWAII:
178178
#endif
179-
case CHIP_VEGA10:
180179
case CHIP_VEGA20:
181180
case CHIP_ARCTURUS:
182181
case CHIP_SIENNA_CICHLID:
183182
/* enable runpm if runpm=1 */
184183
if (amdgpu_runtime_pm > 0)
185184
adev->runpm = true;
186185
break;
186+
case CHIP_VEGA10:
187+
/* turn runpm on if noretry=0 */
188+
if (!amdgpu_noretry)
189+
adev->runpm = true;
190+
break;
187191
default:
188192
/* enable runpm on VI+ */
189193
adev->runpm = true;

0 commit comments

Comments
 (0)