* [PATCH] i915: slow acpi_lid_open() causes flickering - V2
@ 2010-02-02 19:09 Thomas Meyer
2010-02-04 16:37 ` Eric Anholt
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Meyer @ 2010-02-02 19:09 UTC (permalink / raw)
To: Jesse Barnes, Eric Anholt, Rafael J. Wysocki, Justin P. Mattock,
Joe Perches, Linux Kernel Mailing List
acpi_lid_open() could take up to 10ms on my computer. Some component is
calling the drm GETCONNECTOR ioctl many times in a row. This results in
flickering (for example, when starting a video). Fix it by assuming an
always connected lid status.
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---
drivers/gpu/drm/i915/intel_lvds.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index aa74e59..05a31ae 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -623,6 +623,13 @@ static const struct dmi_system_id bad_lid_status[] = {
},
},
{
+ .ident = "Aspire 1810T",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 1810T"),
+ },
+ },
+ {
.ident = "PC-81005",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "MALATA"),
@@ -643,7 +650,7 @@ static enum drm_connector_status intel_lvds_detect(struct drm_connector *connect
{
enum drm_connector_status status = connector_status_connected;
- if (!acpi_lid_open() && !dmi_check_system(bad_lid_status))
+ if (!dmi_check_system(bad_lid_status) && !acpi_lid_open())
status = connector_status_disconnected;
return status;
--
1.6.6
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] i915: slow acpi_lid_open() causes flickering - V2
2010-02-02 19:09 [PATCH] i915: slow acpi_lid_open() causes flickering - V2 Thomas Meyer
@ 2010-02-04 16:37 ` Eric Anholt
0 siblings, 0 replies; 2+ messages in thread
From: Eric Anholt @ 2010-02-04 16:37 UTC (permalink / raw)
To: Thomas Meyer, Jesse Barnes, Rafael J. Wysocki, Justin P. Mattock,
Joe Perches, Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 348 bytes --]
On Tue, 02 Feb 2010 20:09:04 +0100, Thomas Meyer <thomas@m3y3r.de> wrote:
> acpi_lid_open() could take up to 10ms on my computer. Some component is
> calling the drm GETCONNECTOR ioctl many times in a row. This results in
> flickering (for example, when starting a video). Fix it by assuming an
> always connected lid status.
Applied. Thanks!
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-04 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-02 19:09 [PATCH] i915: slow acpi_lid_open() causes flickering - V2 Thomas Meyer
2010-02-04 16:37 ` Eric Anholt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox