drm/radeon: re-POST the asic on Apple hardware when booted via EFI
authorMatthew Garrett <mjg@redhat.com>
Mon, 8 Aug 2011 16:21:16 +0000 (16:21 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 12 Aug 2011 10:04:29 +0000 (11:04 +0100)
commitbcc65fd8e929a9d9d34d814d6efc1d2793546922
tree966776acccd00380caf73d6e16c384a313ae85c3
parent13bb9430cd6154d1f088549656c4a3ed10eaf35e
drm/radeon: re-POST the asic on Apple hardware when booted via EFI

At least some Apples program the GPU into a state that wedges the engine
once userspace starts trying to perform accelerated operations. Executing
the Atom init scripts gets the hardware back into a working state. The
same hardware works fine when booted via BIOS emulation, so let's just
execute the init scripts on Apples when we're using EFI.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_device.c