drm/radeon: OLAND boards don't have VCE
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Feb 2021 14:02:36 +0000 (09:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Feb 2021 21:43:09 +0000 (16:43 -0500)
Disable it on those boards.  No functional change, this just
removes the message about VCE failing to initialize.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=197327
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_asic.c
drivers/gpu/drm/radeon/radeon_vce.c
drivers/gpu/drm/radeon/vce_v1_0.c

index 8becbe0..bfacf8f 100644 (file)
@@ -2478,6 +2478,9 @@ int radeon_asic_init(struct radeon_device *rdev)
                if (rdev->family == CHIP_HAINAN) {
                        rdev->has_uvd = false;
                        rdev->has_vce = false;
+               } else if (rdev->family == CHIP_OLAND) {
+                       rdev->has_uvd = true;
+                       rdev->has_vce = false;
                } else {
                        rdev->has_uvd = true;
                        rdev->has_vce = true;
index a450497..511a942 100644 (file)
@@ -68,7 +68,6 @@ int radeon_vce_init(struct radeon_device *rdev)
        case CHIP_TAHITI:
        case CHIP_PITCAIRN:
        case CHIP_VERDE:
-       case CHIP_OLAND:
        case CHIP_ARUBA:
                fw_name = FIRMWARE_TAHITI;
                break;
index 70c5da2..bdfbcf1 100644 (file)
@@ -169,7 +169,6 @@ int vce_v1_0_load_fw(struct radeon_device *rdev, uint32_t *data)
                chip_id = 0x01000015;
                break;
        case CHIP_PITCAIRN:
-       case CHIP_OLAND:
                chip_id = 0x01000016;
                break;
        case CHIP_ARUBA: