diff options
author | Evan Quan <evan.quan@amd.com> | 2018-11-02 05:21:17 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-07 17:05:56 -0500 |
commit | 3482d2d9b0fb4340faa23a4967f69da047fa291c (patch) | |
tree | a7d84b1903a07b33a9f9dc01d0bd7bcabc394009 /drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |
parent | 2d3030a00ef1dbdbf3df8893c225cb37d88a1ff2 (diff) |
drm/amdgpu: set Vega20 LBPW as disabled at default
For Vega20, LBPW feature is disabled at default.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 928034ce7994..7abefb80f93d 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |||
@@ -2499,6 +2499,20 @@ static int gfx_v9_0_rlc_resume(struct amdgpu_device *adev) | |||
2499 | return r; | 2499 | return r; |
2500 | } | 2500 | } |
2501 | 2501 | ||
2502 | if (amdgpu_lbpw == -1) { | ||
2503 | switch (adev->asic_type) { | ||
2504 | case CHIP_RAVEN: | ||
2505 | amdgpu_lbpw = 1; | ||
2506 | break; | ||
2507 | case CHIP_VEGA20: | ||
2508 | amdgpu_lbpw = 0; | ||
2509 | break; | ||
2510 | default: | ||
2511 | amdgpu_lbpw = 0; | ||
2512 | break; | ||
2513 | } | ||
2514 | } | ||
2515 | |||
2502 | if (adev->asic_type == CHIP_RAVEN || | 2516 | if (adev->asic_type == CHIP_RAVEN || |
2503 | adev->asic_type == CHIP_VEGA20) { | 2517 | adev->asic_type == CHIP_VEGA20) { |
2504 | if (amdgpu_lbpw != 0) | 2518 | if (amdgpu_lbpw != 0) |