|
@@ -32,6 +32,7 @@
|
|
#include <drm/radeon_drm.h>
|
|
#include <drm/radeon_drm.h>
|
|
#include <linux/vgaarb.h>
|
|
#include <linux/vgaarb.h>
|
|
#include <linux/vga_switcheroo.h>
|
|
#include <linux/vga_switcheroo.h>
|
|
|
|
+#include <linux/efi.h>
|
|
#include "radeon_reg.h"
|
|
#include "radeon_reg.h"
|
|
#include "radeon.h"
|
|
#include "radeon.h"
|
|
#include "atom.h"
|
|
#include "atom.h"
|
|
@@ -348,6 +349,9 @@ bool radeon_card_posted(struct radeon_device *rdev)
|
|
{
|
|
{
|
|
uint32_t reg;
|
|
uint32_t reg;
|
|
|
|
|
|
|
|
+ if (efi_enabled && rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE)
|
|
|
|
+ return false;
|
|
|
|
+
|
|
/* first check CRTCs */
|
|
/* first check CRTCs */
|
|
if (ASIC_IS_DCE41(rdev)) {
|
|
if (ASIC_IS_DCE41(rdev)) {
|
|
reg = RREG32(EVERGREEN_CRTC_CONTROL + EVERGREEN_CRTC0_REGISTER_OFFSET) |
|
|
reg = RREG32(EVERGREEN_CRTC_CONTROL + EVERGREEN_CRTC0_REGISTER_OFFSET) |
|