Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3466904d authored by Jordan Lazare's avatar Jordan Lazare Committed by Alex Deucher
Browse files

drm/amdgpu: Allow the driver to load if amdgpu.powerplay=1 on asics without powerplay support



Avoid setting pp_enabled if there is no powerplay implementation.

Signed-off-by: default avatarJordan Lazare <Jordan.Lazare@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9571e1d8
Loading
Loading
Loading
Loading
+18 −7
Original line number Diff line number Diff line
@@ -101,10 +101,21 @@ static int amdgpu_pp_early_init(void *handle)
	switch (adev->asic_type) {
	case CHIP_TONGA:
	case CHIP_FIJI:
		adev->pp_enabled = (amdgpu_powerplay == 0) ? false : true;
		break;
	case CHIP_CARRIZO:
	case CHIP_STONEY:
		adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
		break;
	/* These chips don't have powerplay implemenations */
	case CHIP_BONAIRE:
	case CHIP_HAWAII:
	case CHIP_KABINI:
	case CHIP_MULLINS:
	case CHIP_KAVERI:
	case CHIP_TOPAZ:
	default:
			adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
		adev->pp_enabled = false;
		break;
	}
#else