summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-05-22 13:29:33 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-05-29 12:35:45 -0400
commit50a583f64bfe53aae4996965c1d1b25d90ce4f64 (patch)
tree33d5c79edea6c1d1204936061ee45675eff12f43
parent2cf3a4fcc64e5b54a8a3cd793c6c0024b5d8da6c (diff)
downloadop-kernel-dev-50a583f64bfe53aae4996965c1d1b25d90ce4f64.zip
op-kernel-dev-50a583f64bfe53aae4996965c1d1b25d90ce4f64.tar.gz
drm/radeon: narrow scope of Apple re-POST hack
This narrows the scope of the apple re-POST hack added in: drm/radeon: re-POST the asic on Apple hardware when booted via EFI That patch prevents UVD from working on macs when booted in EFI mode. The original patch fixed macbook2,1 systems which were r5xx and hence have no UVD. Limit the hack to those systems to prevent UVD breakage on newer systems. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=63935 Cc: Matthew Garrett <mjg59@srcf.ucam.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Acked-by: Matthew Garrett <matthew.garrett@nebula.com>
-rw-r--r--drivers/gpu/drm/radeon/radeon_device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index af82c9b..1899738 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -467,8 +467,10 @@ bool radeon_card_posted(struct radeon_device *rdev)
{
uint32_t reg;
+ /* required for EFI mode on macbook2,1 which uses an r5xx asic */
if (efi_enabled(EFI_BOOT) &&
- rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE)
+ (rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE) &&
+ (rdev->family < CHIP_R600))
return false;
if (ASIC_IS_NODCE(rdev))
OpenPOWER on IntegriCloud