* [PATCH] drm/radeon: revert Apple re-POST hack
@ 2013-05-22 17:38 alexdeucher
2013-05-23 8:13 ` Christian König
2013-05-29 16:24 ` [PATCH] drm/radeon: narrow scope of " alexdeucher
0 siblings, 2 replies; 4+ messages in thread
From: alexdeucher @ 2013-05-22 17:38 UTC (permalink / raw)
To: dri-devel; +Cc: Alex Deucher, Matthew Garrett
From: Alex Deucher <alexander.deucher@amd.com>
This reverts:
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 may not be required any more due to other
fixes for UEFI on non-Mac platforms, but I don't have any Macs.
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>
---
drivers/gpu/drm/radeon/radeon_device.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index af82c9b..261fe11 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -467,10 +467,6 @@ bool radeon_card_posted(struct radeon_device *rdev)
{
uint32_t reg;
- if (efi_enabled(EFI_BOOT) &&
- rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE)
- return false;
-
if (ASIC_IS_NODCE(rdev))
goto check_memsize;
--
1.7.7.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/radeon: revert Apple re-POST hack
2013-05-22 17:38 [PATCH] drm/radeon: revert Apple re-POST hack alexdeucher
@ 2013-05-23 8:13 ` Christian König
2013-05-29 16:24 ` [PATCH] drm/radeon: narrow scope of " alexdeucher
1 sibling, 0 replies; 4+ messages in thread
From: Christian König @ 2013-05-23 8:13 UTC (permalink / raw)
To: alexdeucher; +Cc: Alex Deucher, Matthew Garrett, dri-devel
Am 22.05.2013 19:38, schrieb alexdeucher@gmail.com:
> From: Alex Deucher <alexander.deucher@amd.com>
>
> This reverts:
> 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 may not be required any more due to other
> fixes for UEFI on non-Mac platforms, but I don't have any Macs.
>
> 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>
Reviewed-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/radeon/radeon_device.c | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
> index af82c9b..261fe11 100644
> --- a/drivers/gpu/drm/radeon/radeon_device.c
> +++ b/drivers/gpu/drm/radeon/radeon_device.c
> @@ -467,10 +467,6 @@ bool radeon_card_posted(struct radeon_device *rdev)
> {
> uint32_t reg;
>
> - if (efi_enabled(EFI_BOOT) &&
> - rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE)
> - return false;
> -
> if (ASIC_IS_NODCE(rdev))
> goto check_memsize;
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] drm/radeon: narrow scope of Apple re-POST hack
2013-05-22 17:38 [PATCH] drm/radeon: revert Apple re-POST hack alexdeucher
2013-05-23 8:13 ` Christian König
@ 2013-05-29 16:24 ` alexdeucher
2013-05-29 16:31 ` Matthew Garrett
1 sibling, 1 reply; 4+ messages in thread
From: alexdeucher @ 2013-05-29 16:24 UTC (permalink / raw)
To: dri-devel; +Cc: Alex Deucher, Matthew Garrett
From: Alex Deucher <alexander.deucher@amd.com>
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>
---
drivers/gpu/drm/radeon/radeon_device.c | 4 +++-
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))
--
1.7.7.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/radeon: narrow scope of Apple re-POST hack
2013-05-29 16:24 ` [PATCH] drm/radeon: narrow scope of " alexdeucher
@ 2013-05-29 16:31 ` Matthew Garrett
0 siblings, 0 replies; 4+ messages in thread
From: Matthew Garrett @ 2013-05-29 16:31 UTC (permalink / raw)
To: alexdeucher; +Cc: Alex Deucher, dri-devel
On Wed, May 29, 2013 at 12:24:25PM -0400, alexdeucher@gmail.com wrote:
> From: Alex Deucher <alexander.deucher@amd.com>
>
> 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>
Acked-by: Matthew Garrett <matthew.garrett@nebula.com>
There's some potential for this to break some other Apple systems, but
let's try it and see.
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-29 17:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22 17:38 [PATCH] drm/radeon: revert Apple re-POST hack alexdeucher
2013-05-23 8:13 ` Christian König
2013-05-29 16:24 ` [PATCH] drm/radeon: narrow scope of " alexdeucher
2013-05-29 16:31 ` Matthew Garrett
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.