Re: [PATCH 2/2] radeon: re-POST the asic on Apple hardware when booted via EFI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 8, 2011 at 12:21 PM, Matthew Garrett <mjg@xxxxxxxxxx> wrote:
> 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@xxxxxxxxxx>

Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>

> ---
>  drivers/gpu/drm/radeon/radeon_device.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
> index 440e6ec..a3b011b 100644
> --- a/drivers/gpu/drm/radeon/radeon_device.c
> +++ b/drivers/gpu/drm/radeon/radeon_device.c
> @@ -32,6 +32,7 @@
>  #include <drm/radeon_drm.h>
>  #include <linux/vgaarb.h>
>  #include <linux/vga_switcheroo.h>
> +#include <linux/efi.h>
>  #include "radeon_reg.h"
>  #include "radeon.h"
>  #include "atom.h"
> @@ -348,6 +349,9 @@ bool radeon_card_posted(struct radeon_device *rdev)
>  {
>        uint32_t reg;
>
> +       if (efi_enabled && rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE)
> +               return false;
> +
>        /* first check CRTCs */
>        if (ASIC_IS_DCE41(rdev)) {
>                reg = RREG32(EVERGREEN_CRTC_CONTROL + EVERGREEN_CRTC0_REGISTER_OFFSET) |
> --
> 1.7.6
>
>
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux