* [PATCH] i915: Register ACPI video even when not modesetting
@ 2009-04-15 20:46 Matthew Garrett
2009-04-16 7:44 ` [Intel-gfx] " Tino Keitel
2009-04-24 4:43 ` Len Brown
0 siblings, 2 replies; 4+ messages in thread
From: Matthew Garrett @ 2009-04-15 20:46 UTC (permalink / raw)
To: intel-gfx; +Cc: acpi-devel, linux-kernel
The ACPI video driver defers registration to the i915 driver if the
system supports opregion-mediated backlight control. This registration
was only being performed in the KMS case. Ensure it's done even if we
don't have modesetting enabled.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
diff --git a/drivers/gpu/drm/i915/i915_opregion.c b/drivers/gpu/drm/i915/i915_opregion.c
index 6942772..8dc1fd3 100644
--- a/drivers/gpu/drm/i915/i915_opregion.c
+++ b/drivers/gpu/drm/i915/i915_opregion.c
@@ -370,11 +370,8 @@ int intel_opregion_init(struct drm_device *dev, int resume)
if (mboxes & MBOX_ACPI) {
DRM_DEBUG("Public ACPI methods supported\n");
opregion->acpi = base + OPREGION_ACPI_OFFSET;
- if (drm_core_check_feature(dev, DRIVER_MODESET)) {
+ if (drm_core_check_feature(dev, DRIVER_MODESET))
intel_didl_outputs(dev);
- if (!resume)
- acpi_video_register();
- }
} else {
DRM_DEBUG("Public ACPI methods not supported\n");
err = -ENOTSUPP;
@@ -391,6 +388,10 @@ int intel_opregion_init(struct drm_device *dev, int resume)
opregion->asle = base + OPREGION_ASLE_OFFSET;
}
+ if (!resume)
+ acpi_video_register();
+
+
/* Notify BIOS we are ready to handle ACPI video ext notifs.
* Right now, all the events are handled by the ACPI video module.
* We don't actually need to do anything with them. */
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Intel-gfx] [PATCH] i915: Register ACPI video even when not modesetting
2009-04-15 20:46 [PATCH] i915: Register ACPI video even when not modesetting Matthew Garrett
@ 2009-04-16 7:44 ` Tino Keitel
2009-04-17 0:44 ` Matthew Garrett
2009-04-24 4:43 ` Len Brown
1 sibling, 1 reply; 4+ messages in thread
From: Tino Keitel @ 2009-04-16 7:44 UTC (permalink / raw)
To: intel-gfx, linux-kernel
On Wed, Apr 15, 2009 at 21:46:36 +0100, Matthew Garrett wrote:
> The ACPI video driver defers registration to the i915 driver if the
> system supports opregion-mediated backlight control. This registration
> was only being performed in the KMS case. Ensure it's done even if we
> don't have modesetting enabled.
Does this provide backlight control even without DRI enabled, or just
without KMS enabled?
Regards,
Tino
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Intel-gfx] [PATCH] i915: Register ACPI video even when not modesetting
2009-04-16 7:44 ` [Intel-gfx] " Tino Keitel
@ 2009-04-17 0:44 ` Matthew Garrett
0 siblings, 0 replies; 4+ messages in thread
From: Matthew Garrett @ 2009-04-17 0:44 UTC (permalink / raw)
To: intel-gfx, linux-kernel
On Thu, Apr 16, 2009 at 09:44:11AM +0200, Tino Keitel wrote:
> On Wed, Apr 15, 2009 at 21:46:36 +0100, Matthew Garrett wrote:
> > The ACPI video driver defers registration to the i915 driver if the
> > system supports opregion-mediated backlight control. This registration
> > was only being performed in the KMS case. Ensure it's done even if we
> > don't have modesetting enabled.
>
> Does this provide backlight control even without DRI enabled, or just
> without KMS enabled?
Just without KMS being enabled. If your backlight control doesn't work
without dri, that's because your backlight control requires a
kernel-level component to change the backlight registers in response to
an IRQ (ie, DRI)
--
Matthew Garrett | mjg59@srcf.ucam.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] i915: Register ACPI video even when not modesetting
2009-04-15 20:46 [PATCH] i915: Register ACPI video even when not modesetting Matthew Garrett
2009-04-16 7:44 ` [Intel-gfx] " Tino Keitel
@ 2009-04-24 4:43 ` Len Brown
1 sibling, 0 replies; 4+ messages in thread
From: Len Brown @ 2009-04-24 4:43 UTC (permalink / raw)
To: Matthew Garrett; +Cc: intel-gfx, linux-acpi, Linux Kernel Mailing List
applied
(and acpi-devel fixed to linux-acpi on cc:-)
thanks,
Len Brown, Intel Open Source Technology Center
On Wed, 15 Apr 2009, Matthew Garrett wrote:
> The ACPI video driver defers registration to the i915 driver if the
> system supports opregion-mediated backlight control. This registration
> was only being performed in the KMS case. Ensure it's done even if we
> don't have modesetting enabled.
>
> Signed-off-by: Matthew Garrett <mjg@redhat.com>
>
> diff --git a/drivers/gpu/drm/i915/i915_opregion.c b/drivers/gpu/drm/i915/i915_opregion.c
> index 6942772..8dc1fd3 100644
> --- a/drivers/gpu/drm/i915/i915_opregion.c
> +++ b/drivers/gpu/drm/i915/i915_opregion.c
> @@ -370,11 +370,8 @@ int intel_opregion_init(struct drm_device *dev, int resume)
> if (mboxes & MBOX_ACPI) {
> DRM_DEBUG("Public ACPI methods supported\n");
> opregion->acpi = base + OPREGION_ACPI_OFFSET;
> - if (drm_core_check_feature(dev, DRIVER_MODESET)) {
> + if (drm_core_check_feature(dev, DRIVER_MODESET))
> intel_didl_outputs(dev);
> - if (!resume)
> - acpi_video_register();
> - }
> } else {
> DRM_DEBUG("Public ACPI methods not supported\n");
> err = -ENOTSUPP;
> @@ -391,6 +388,10 @@ int intel_opregion_init(struct drm_device *dev, int resume)
> opregion->asle = base + OPREGION_ASLE_OFFSET;
> }
>
> + if (!resume)
> + acpi_video_register();
> +
> +
> /* Notify BIOS we are ready to handle ACPI video ext notifs.
> * Right now, all the events are handled by the ACPI video module.
> * We don't actually need to do anything with them. */
>
> --
> Matthew Garrett | mjg59@srcf.ucam.org
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-24 4:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-15 20:46 [PATCH] i915: Register ACPI video even when not modesetting Matthew Garrett
2009-04-16 7:44 ` [Intel-gfx] " Tino Keitel
2009-04-17 0:44 ` Matthew Garrett
2009-04-24 4:43 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox