diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vi.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index 9904761c9c37..2e52f3e2c081 100644 --- a/drivers/gpu/drm/amd/amdgpu/vi.c +++ b/drivers/gpu/drm/amd/amdgpu/vi.c | |||
@@ -1410,8 +1410,6 @@ static int vi_common_early_init(void *handle) | |||
1410 | adev->cg_flags = 0; | 1410 | adev->cg_flags = 0; |
1411 | adev->pg_flags = 0; | 1411 | adev->pg_flags = 0; |
1412 | adev->external_rev_id = 0x1; | 1412 | adev->external_rev_id = 0x1; |
1413 | if (amdgpu_smc_load_fw && smc_enabled) | ||
1414 | adev->firmware.smu_load = true; | ||
1415 | break; | 1413 | break; |
1416 | case CHIP_FIJI: | 1414 | case CHIP_FIJI: |
1417 | case CHIP_TONGA: | 1415 | case CHIP_TONGA: |
@@ -1419,8 +1417,6 @@ static int vi_common_early_init(void *handle) | |||
1419 | adev->cg_flags = 0; | 1417 | adev->cg_flags = 0; |
1420 | adev->pg_flags = 0; | 1418 | adev->pg_flags = 0; |
1421 | adev->external_rev_id = adev->rev_id + 0x14; | 1419 | adev->external_rev_id = adev->rev_id + 0x14; |
1422 | if (amdgpu_smc_load_fw && smc_enabled) | ||
1423 | adev->firmware.smu_load = true; | ||
1424 | break; | 1420 | break; |
1425 | case CHIP_CARRIZO: | 1421 | case CHIP_CARRIZO: |
1426 | case CHIP_STONEY: | 1422 | case CHIP_STONEY: |
@@ -1429,14 +1425,15 @@ static int vi_common_early_init(void *handle) | |||
1429 | /* Disable UVD pg */ | 1425 | /* Disable UVD pg */ |
1430 | adev->pg_flags = /* AMDGPU_PG_SUPPORT_UVD | */AMDGPU_PG_SUPPORT_VCE; | 1426 | adev->pg_flags = /* AMDGPU_PG_SUPPORT_UVD | */AMDGPU_PG_SUPPORT_VCE; |
1431 | adev->external_rev_id = adev->rev_id + 0x1; | 1427 | adev->external_rev_id = adev->rev_id + 0x1; |
1432 | if (amdgpu_smc_load_fw && smc_enabled) | ||
1433 | adev->firmware.smu_load = true; | ||
1434 | break; | 1428 | break; |
1435 | default: | 1429 | default: |
1436 | /* FIXME: not supported yet */ | 1430 | /* FIXME: not supported yet */ |
1437 | return -EINVAL; | 1431 | return -EINVAL; |
1438 | } | 1432 | } |
1439 | 1433 | ||
1434 | if (amdgpu_smc_load_fw && smc_enabled) | ||
1435 | adev->firmware.smu_load = true; | ||
1436 | |||
1440 | return 0; | 1437 | return 0; |
1441 | } | 1438 | } |
1442 | 1439 | ||