drm/radeon: OLAND boards don't have VCE
Subsystems (2)
PATCH 1/1 drm/radeon: OLAND boards don't have VCE
Disable it on those boards. No functional change, this just removes the message about VCE failing to initialize.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/radeon_asic.c | 3 +++ drivers/gpu/drm/radeon/radeon_vce.c | 1 - drivers/gpu/drm/radeon/vce_v1_0.c | 1 - 3 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_asic.c +3 -0
@@ -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;
drivers/gpu/drm/radeon/radeon_vce.c +0 -1
@@ -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 ;
drivers/gpu/drm/radeon/vce_v1_0.c +0 -1
@@ -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 :
Signature · 6 lines
2.29.2 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Am 16.02.21 um 15:09 schrieb Alex Deucher:
Quoted 5 lines
Disable it on those boards. No functional change, this just removes the message about VCE failing to initialize.
Reviewed-by Christian König <[email protected]>
Quoted 37 lines
--- drivers/gpu/drm/radeon/radeon_asic.c | 3 +++ drivers/gpu/drm/radeon/radeon_vce.c | 1 - drivers/gpu/drm/radeon/vce_v1_0.c | 1 - 3 files changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/radeon/radeon_asic.c +3
-0@@ -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;drivers/gpu/drm/radeon/radeon_vce.c +0
-1@@ -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 ;drivers/gpu/drm/radeon/vce_v1_0.c +0
-0
drivers/gpu/drm/radeon/vce_v1_0.c int vce_v1_0_load_fw(struct radeon_device *rdev, uint32_t *data) · line 174
Quoted 7 lines
drivers/gpu/drm/radeon/vce_v1_0.c +0
-1@@ -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 :
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx