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>
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)