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

Commit 3482d2d9 authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher
Browse files

drm/amdgpu: set Vega20 LBPW as disabled at default



For Vega20, LBPW feature is disabled at default.

Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarFeifei Xu <Feifei.Xu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2d3030a0
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2499,6 +2499,20 @@ static int gfx_v9_0_rlc_resume(struct amdgpu_device *adev)
			return r;
	}

	if (amdgpu_lbpw == -1) {
		switch (adev->asic_type) {
		case CHIP_RAVEN:
			amdgpu_lbpw = 1;
			break;
		case CHIP_VEGA20:
			amdgpu_lbpw = 0;
			break;
		default:
			amdgpu_lbpw = 0;
			break;
		}
	}

	if (adev->asic_type == CHIP_RAVEN ||
	    adev->asic_type == CHIP_VEGA20) {
		if (amdgpu_lbpw != 0)