mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] gma500: fix build when ACPI isn't set
@ 2012-05-11  4:39 Sasha Levin
  2012-05-11  9:43 ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2012-05-11  4:39 UTC (permalink / raw)
  To: airlied, alan, kirill.shutemov
  Cc: airlied, dri-devel, linux-kernel, Sasha Levin

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
---
 drivers/gpu/drm/gma500/opregion.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/gma500/opregion.c b/drivers/gpu/drm/gma500/opregion.c
index 05661bf..e2fbf4d 100644
--- a/drivers/gpu/drm/gma500/opregion.c
+++ b/drivers/gpu/drm/gma500/opregion.c
@@ -258,6 +258,7 @@ void psb_intel_opregion_init(struct drm_device *dev)
 	if (!opregion->header)
 		return;
 
+#ifdef CONFIG_ACPI
 	if (opregion->acpi) {
 		/* Notify BIOS we are ready to handle ACPI video ext notifs.
 		 * Right now, all the events are handled by the ACPI video
@@ -268,6 +269,7 @@ void psb_intel_opregion_init(struct drm_device *dev)
 		system_opregion = opregion;
 		register_acpi_notifier(&psb_intel_opregion_notifier);
 	}
+#endif
 
 	if (opregion->asle)
 		psb_intel_opregion_enable_asle(dev);
@@ -281,12 +283,14 @@ void psb_intel_opregion_fini(struct drm_device *dev)
 	if (!opregion->header)
 		return;
 
+#ifdef CONFIG_ACPI
 	if (opregion->acpi) {
 		opregion->acpi->drdy = 0;
 
 		system_opregion = NULL;
 		unregister_acpi_notifier(&psb_intel_opregion_notifier);
 	}
+#endif
 
 	/* just clear all opregion memory pointers now */
 	iounmap(opregion->header);
-- 
1.7.8.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gma500: fix build when ACPI isn't set
  2012-05-11  4:39 [PATCH] gma500: fix build when ACPI isn't set Sasha Levin
@ 2012-05-11  9:43 ` Alan Cox
  2012-05-11  9:49   ` Sasha Levin
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2012-05-11  9:43 UTC (permalink / raw)
  To: Sasha Levin
  Cc: airlied, alan, kirill.shutemov, airlied, dri-devel, linux-kernel

On Fri, 11 May 2012 06:39:02 +0200
Sasha Levin <levinsasha928@gmail.com> wrote:

> Signed-off-by: Sasha Levin <levinsasha928@gmail.com>

NAK - see the patch I posted for Randy to test. That avoids all the
ifdeffery and simply doesn't touch the opregion at all in a non ACPI
build.

Not btw that I imagine you could run a non ACPI kernel on a box new
enough to have a GMA500 8)

Alan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gma500: fix build when ACPI isn't set
  2012-05-11  9:43 ` Alan Cox
@ 2012-05-11  9:49   ` Sasha Levin
  2012-05-11 10:01     ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2012-05-11  9:49 UTC (permalink / raw)
  To: Alan Cox; +Cc: airlied, alan, kirill.shutemov, airlied, dri-devel, linux-kernel

On Fri, May 11, 2012 at 11:43 AM, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> Not btw that I imagine you could run a non ACPI kernel on a box new
> enough to have a GMA500 8)

Probably not, but I saw more #ifdef CONFIG_ACPI below and assumed
there's a good reason for that.

Out of curiously, is a scenario where a GMA500 is assigned to a KVM
guest which doesn't have ACPI support plausible?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gma500: fix build when ACPI isn't set
  2012-05-11  9:49   ` Sasha Levin
@ 2012-05-11 10:01     ` Alan Cox
  0 siblings, 0 replies; 4+ messages in thread
From: Alan Cox @ 2012-05-11 10:01 UTC (permalink / raw)
  To: Sasha Levin
  Cc: airlied, alan, kirill.shutemov, airlied, dri-devel, linux-kernel

On Fri, 11 May 2012 11:49:48 +0200
Sasha Levin <levinsasha928@gmail.com> wrote:

> On Fri, May 11, 2012 at 11:43 AM, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > Not btw that I imagine you could run a non ACPI kernel on a box new
> > enough to have a GMA500 8)
> 
> Probably not, but I saw more #ifdef CONFIG_ACPI below and assumed
> there's a good reason for that.
> 
> Out of curiously, is a scenario where a GMA500 is assigned to a KVM
> guest which doesn't have ACPI support plausible?

I doubt it - the GMA500 is doing direct memory access via the GTT and
hitting hardware level stuff. I don't believe any work has ever been done
for Imagination based graphics pass through.

Alan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-11  9:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-11  4:39 [PATCH] gma500: fix build when ACPI isn't set Sasha Levin
2012-05-11  9:43 ` Alan Cox
2012-05-11  9:49   ` Sasha Levin
2012-05-11 10:01     ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®