Linux ACPI
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: linux-acpi@vger.kernel.org, Zhang Rui <rui.zhang@intel.com>
Subject: Re: [PATCH 02/12] ACPI / PM: Move ACPI video resume to a PM notifier
Date: Tue, 06 Apr 2010 17:07:58 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.00.1004061707410.4168@localhost.localdomain> (raw)
In-Reply-To: <201004062055.43290.rjw@sisk.pl>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2653 bytes --]

patch refreshed -- i'll send a new pull request now.

thanks,
Len Brown, Intel Open Source Technology Center

On Tue, 6 Apr 2010, Rafael J. Wysocki wrote:

> On Tuesday 06 April 2010, Len Brown wrote:
> > From: Rafael Wysocki <rjw@sisk.pl>
> > 
> > There is a problem with the ACPI video resume routine that it's
> > executed before the GPU that may be accessed by it.  To fix this
> > issue, move the ACPI video resume to a power management notifier,
> > so that it's executed after resuming all devices, including the GPU.
> > 
> > http://bugzilla.kernel.org/show_bug.cgi?id=15096
> > 
> > Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> > Acked-by: Matthew Garrett <mjg@redhat.com>
> > Tested-by: Rafał Miłecki <zajec5@gmail.com>
> > Signed-off-by: Len Brown <len.brown@intel.com>
> 
> Thanks, but this requires the appended patch on top.
> 
> I sent a replacement version yesterday,
> https://patchwork.kernel.org/patch/90593/, but you haven't received it,
> apparently.
> 
> Rafael
> 
> ---
> From: Rafael J. Wysocki <rjw@sisk.pl>
> Subject: ACPI / video: Save initial backlight brightness in props
> 
> The initial backlight brightness has to be written to
> device->backlight->props in case it has to be restored before
> there's a chance to call acpi_video_device_lcd_set_level().
> 
> Something like this happens during boot, when the kernel checks if
> a hibernation image is present and executes power management
> notifiers (in either case).  One of these notifiers tries to restore
> the previous brightness level, but this won't work if the initial
> brightness is not saved by acpi_video_device_find_cap().
> 
> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
> ---
>  drivers/acpi/video.c |    7 +++++++
>  1 file changed, 7 insertions(+)
> 
> Index: linux-2.6/drivers/acpi/video.c
> ===================================================================
> --- linux-2.6.orig/drivers/acpi/video.c
> +++ linux-2.6/drivers/acpi/video.c
> @@ -1020,6 +1020,13 @@ static void acpi_video_device_find_cap(s
>  		if (IS_ERR(device->backlight))
>  			return;
>  
> +		/*
> +		 * Save current brightness level in case we have to restore it
> +		 * before acpi_video_device_lcd_set_level() is called next time.
> +		 */
> +		device->backlight->props.brightness =
> +				acpi_video_get_brightness(device->backlight);
> +
>  		result = sysfs_create_link(&device->backlight->dev.kobj,
>  					   &device->dev->dev.kobj, "device");
>  		if (result)
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

  reply	other threads:[~2010-04-06 21:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-06  7:06 ACPI patches for 2.6.34-rc3 Len Brown
2010-04-06  7:06 ` [PATCH 01/12] ACPI: EC: Allow multibyte access to EC Len Brown
2010-04-06  7:06   ` [PATCH 02/12] ACPI / PM: Move ACPI video resume to a PM notifier Len Brown
2010-04-06 18:55     ` Rafael J. Wysocki
2010-04-06 21:07       ` Len Brown [this message]
2010-04-06  7:06   ` [PATCH 03/12] ACPI dock: support multiple ACPI dock devices Len Brown
2010-04-06  7:06   ` [PATCH 04/12] ACPI: fixes a false alarm from lockdep Len Brown
2010-04-06  7:06   ` [PATCH 05/12] ACPI / ACPICA: Do not check reference counters in acpi_ev_enable_gpe() Len Brown
2010-04-06  7:06   ` [PATCH 06/12] ACPI: use _HID when supplied by root-level devices Len Brown
2010-04-06  7:06   ` [PATCH 07/12] ACPI: NUMA: map pxms to low node ids Len Brown
2010-04-06  7:06   ` [PATCH 08/12] ACPI: Don't send KEY_UNKNOWN for random video notifications Len Brown
2010-04-06  7:06   ` [PATCH 09/12] PNPACPI: truncate _CRS windows with _LEN > _MAX - _MIN + 1 Len Brown
2010-04-06  7:06   ` [PATCH 10/12] ACPI: battery: Fix CONFIG_ACPI_SYSFS_POWER=n Len Brown
2010-04-06  7:06   ` [PATCH 11/12] ACPI: battery drivers should call power_supply_changed() Len Brown
2010-04-06  7:06   ` [PATCH 12/12] ACPI: Reduce ACPI resource conflict message to KERN_WARNING, printk cleanup Len Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.00.1004061707410.4168@localhost.localdomain \
    --to=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rjw@sisk.pl \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox