VIA Samuel problem? 2.2.19,2.4.4

2001-05-29 Thread aaron
ppearing in the logs. I can't find any mention of this in the lkml archives. The cyrix howto seems horribly out of date. Is this a known problem? Something non-linux related? Any suggestions as to how I can start to debug this or narrow down the problem would be much appreciated.

Editing 1

2018-09-11 Thread Aaron
one photo, we can send you the testing work. Thanks, Aaron Williams Email: hansre...@outlook.com

Editing 4

2018-09-11 Thread Aaron
one photo, we can send you the testing work. Thanks, Aaron Williams Email: hansre...@outlook.com

Editing 4

2018-09-11 Thread Aaron
one photo, we can send you the testing work. Thanks, Aaron Williams Email: hansre...@outlook.com

Editing 5

2018-09-11 Thread Aaron
one photo, we can send you the testing work. Thanks, Aaron Williams Email: hansre...@outlook.com

Editing 3

2018-09-11 Thread Aaron
one photo, we can send you the testing work. Thanks, Aaron Williams Email: hansre...@outlook.com

Editing 3

2018-09-11 Thread Aaron
one photo, we can send you the testing work. Thanks, Aaron Williams Email: hansre...@outlook.com

Re: [PATCH v2 1/3] ACPI video: Fix brightness control initialization for some laptops.

2013-03-18 Thread Aaron Lu
device, > int level); > static int acpi_video_device_lcd_get_level_current( > struct acpi_video_device *device, > - unsigned long long *level, int init); > + unsigned long long *level, int raw);

Re: [PATCH v2 3/3] ACPI video: Fix applying indexed initial brightness value.

2013-03-18 Thread Aaron Lu
* level_old is invalid(no matter it is a level, or an * index.) Set the backlight to max_level in this case. */ for (i = 2; i < br->count; i++) if (level == br->levels[i]) break;

Re: [PATCH v2 1/3] ACPI video: Fix brightness control initialization for some laptops.

2013-03-18 Thread Aaron Lu
e invocations of this function to fit within one 80-char > line. the unsigned long long for level made me curious, do we really need that? int would suffice I think. > > Neither reason is terribly strong, so if you prefer, I can convert this > argument to bool. It's OK, I can

Re: [PATCH v2 3/3] ACPI video: Fix applying indexed initial brightness value.

2013-03-18 Thread Aaron Lu
;> -- 3 - (*level); >>> - *level = device->brightness->levels[*level + 2]; >>> + *level = acpi_video_bqc_value_to_level(device, *level); > > That

tpm_tis driver failed to suspend, error -62

2013-03-18 Thread Aaron Lu
been there since v2.6.32(shipped in ubuntu 10.04), and the latest upstream tree(v3.9-rcx) also has this problem. The bug link is here: https://bugzilla.kernel.org/show_bug.cgi?id=45761 Please feel free to ask for more information, thanks. -Aaron -- To unsubscribe from this list: send the

Re: [PATCH v4 1/3] ACPI video: Fix brightness control initialization for some laptops.

2013-03-20 Thread Aaron Lu
On 03/20/2013 12:24 AM, Danny Baumann wrote: > v3 incorporates Aaron's feedback, v4 fixes my inability to use git > send-email properly. Sorry for that. For the 3 patches, Reviewed-by: Aaron Lu BTW, you can put things like what has been changed in a new series in patch 0. Th

Re: [PATCH 1/2] don't wait on disk to start on resume

2013-02-02 Thread Aaron Lu
On 02/02/2013 11:09 PM, Alan Stern wrote: > On Sat, 2 Feb 2013, Aaron Lu wrote: > >>>> An alternative way of possibly solving this problem from PM's point of >>>> view might be: >>>> 1 Set both ata port and scsi device's runtime status to R

Re: [PATCH 1/2] don't wait on disk to start on resume

2013-02-04 Thread Aaron Lu
On 02/03/2013 02:23 PM, Aaron Lu wrote: > No, the modification is actually for disk. > With v8 of block layer runtime PM, it is no longer the case runtime > suspend is the same as system suspend for hard disk that utilize block > layer runtime PM: we quiesce the device and run its susp

Re: [PATCH 1/2] don't wait on disk to start on resume

2013-02-04 Thread Aaron Lu
of ata. I think it's that before we can send the command to spin up the disk, we need to wait for the ata host controller to come up. As Aaron Lu pointed out, it takes seconds for the ata port to resume. On the hand, I just did some more recording, the result is: host controller takes 1ms or

Re: [PATCH v3] lpc_ich: fix gpio base and control offsets

2013-02-04 Thread Aaron Sierra
> On Thu, Jan 24, 2013 at 02:52:39PM -0600, Aaron Sierra wrote: > > In ICH5 and earlier the GPIOBASE and GPIOCTRL registers are found > > at > > offsets 0x58 and 0x5C, respectively. This patch allows GPIO access > > to > > properly be enabled (and disabled) for th

[PATCH v9 0/4] block layer runtime pm

2013-02-05 Thread Aaron Lu
In August 2010, Jens and Alan discussed about "Runtime PM and the block layer". http://marc.info/?t=12825910841&r=1&w=2 And then Alan has given a detailed implementation guide: http://marc.info/?l=linux-scsi&m=133727953625963&w=2 To test: # ls -l /sys/block/sda /sys/devices/pci:00/:00:

[PATCH v9 4/4] sd: change to auto suspend mode

2013-02-05 Thread Aaron Lu
From: Lin Ming Uses block layer runtime pm helper functions in scsi_runtime_suspend/resume for devices that take advantage of it. Remove scsi_autopm_* from sd open/release path and check_events path. Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- drivers/scsi/scsi_pm.c | 79

[PATCH v9 2/4] block: add runtime pm helpers

2013-02-05 Thread Aaron Lu
PENDED. Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- block/blk-core.c | 144 + include/linux/blkdev.h | 27 ++ 2 files changed, 171 insertions(+) diff --git a/block/blk-core.c b/block/blk-core.c index 66d3168..ce7d366 100644

[PATCH v9 3/4] block: implement runtime pm strategy

2013-02-05 Thread Aaron Lu
is allowed to go. Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- block/blk-core.c | 39 +++ block/elevator.c | 26 ++ 2 files changed, 65 insertions(+) diff --git a/block/blk-core.c b/block/blk-core.c index ce7d366..81f173e

[PATCH v9 1/4] block: add a flag to identify PM request

2013-02-05 Thread Aaron Lu
Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- drivers/scsi/scsi_lib.c| 9 - drivers/scsi/sd.c | 9 + include/linux/blk_types.h | 2 ++ include/scsi/scsi_device.h | 16 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/drivers/

Re: [PATCH v9 4/4] sd: change to auto suspend mode

2013-02-05 Thread Aaron Lu
On 02/06/2013 12:51 AM, Alan Stern wrote: > On Tue, 5 Feb 2013, Aaron Lu wrote: > >> From: Lin Ming >> >> Uses block layer runtime pm helper functions in >> scsi_runtime_suspend/resume for devices that take advantage of it. >> >> Remove scsi_autopm_*

[PATCH] blk: start bypass mode in blk_unregister_queue

2013-04-04 Thread Aaron Lu
drom module driver sr_mod and then reload it will trigger such a warning. Signed-off-by: Aaron Lu --- block/blk-sysfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 6206a93..bd322a1 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -615,4 +61

Re: [PATCH] blk: start bypass mode in blk_unregister_queue

2013-04-04 Thread Aaron Lu
On 04/04/2013 10:03 PM, Tejun Heo wrote: > On Thu, Apr 04, 2013 at 10:01:14PM +0800, Aaron Lu wrote: >> In blk_register_queue, we will end bypass mode for the queue; but in >> blk_unregister_queue, we didn't start bypass mode for it. This would >> cause the WARN_ON_ON

Re: [PATCH] blk: start bypass mode in blk_unregister_queue

2013-04-04 Thread Aaron Lu
On 04/04/2013 10:20 PM, Tejun Heo wrote: > Hello, > > On Thu, Apr 04, 2013 at 10:16:39PM +0800, Aaron Lu wrote: >> It probably wouldn't happen for normal user, only for some SCSI driver >> developers like me, e.g. the sr_mod will normally load during boot, and >>

[PATCH v8 1/4] block: add a flag to identify PM request

2013-01-30 Thread Aaron Lu
Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- drivers/scsi/scsi_lib.c| 9 - drivers/scsi/sd.c | 8 include/linux/blk_types.h | 2 ++ include/scsi/scsi_device.h | 16 4 files changed, 22 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/

[PATCH v8 4/4] sd: change to auto suspend mode

2013-01-30 Thread Aaron Lu
From: Lin Ming Uses block layer runtime pm helper functions in scsi_runtime_suspend/resume for devices that take advantage of it. Remove scsi_autopm_* from sd open/release path and check_events path. Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- drivers/scsi/scsi_pm.c | 79

[PATCH v8 2/4] block: add runtime pm helpers

2013-01-30 Thread Aaron Lu
ff-by: Lin Ming Signed-off-by: Aaron Lu --- block/blk-core.c | 143 + include/linux/blkdev.h | 27 ++ 2 files changed, 170 insertions(+) diff --git a/block/blk-core.c b/block/blk-core.c index 66d3168..1ec09f6 100644 --- a/block/blk-cor

[PATCH v8 3/4] block: implement runtime pm strategy

2013-01-30 Thread Aaron Lu
is allowed to go. Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- block/blk-core.c | 39 +++ block/elevator.c | 26 ++ 2 files changed, 65 insertions(+) diff --git a/block/blk-core.c b/block/blk-core.c index 1ec09f6..82cf678

[PATCH v8 0/4] block layer runtime pm

2013-01-30 Thread Aaron Lu
In August 2010, Jens and Alan discussed about "Runtime PM and the block layer". http://marc.info/?t=12825910841&r=1&w=2 And then Alan has given a detailed implementation guide: http://marc.info/?l=linux-scsi&m=133727953625963&w=2 To test: # ls -l /sys/block/sda /sys/devices/pci:00/:00:

Re: [PATCH v8 2/4] block: add runtime pm helpers

2013-01-30 Thread Aaron Lu
On Wed, Jan 30, 2013 at 10:54:53AM -0500, Alan Stern wrote: > On Wed, 30 Jan 2013, Aaron Lu wrote: > > > From: Lin Ming > > > > Add runtime pm helper functions: > > > > void blk_pm_runtime_init(struct request_queue *q, struct device *dev) > > - I

Re: [PATCH v8 4/4] sd: change to auto suspend mode

2013-01-30 Thread Aaron Lu
On Wed, Jan 30, 2013 at 10:38:26AM -0500, Alan Stern wrote: > On Wed, 30 Jan 2013, Aaron Lu wrote: > > > From: Lin Ming > > > > Uses block layer runtime pm helper functions in > > scsi_runtime_suspend/resume for devices that take advantage of it. > > &

Re: [PATCH v8 4/4] sd: change to auto suspend mode

2013-01-31 Thread Aaron Lu
On Thu, Jan 31, 2013 at 10:13:05AM -0500, Alan Stern wrote: > On Thu, 31 Jan 2013, Aaron Lu wrote: > > > > > +static int scsi_blk_runtime_suspend(struct device *dev) > > > > +{ > > > > + struct scsi_device *sdev = to_scsi_device(dev); > > >

Re: [PATCH 1/2] don't wait on disk to start on resume

2013-02-01 Thread Aaron Lu
untime resume callback). To make HDD un-affetcted by runtime PM during normal use, a large enough autosuspend_delay can be set for it. Just my 2 cents, I've not verified or tried in any way yet :-) Thanks, Aaron > > Signed-off-by: Derek Basehore > --- > drivers/scsi/sd.c |

Re: [PATCH 1/2] don't wait on disk to start on resume

2013-02-02 Thread Aaron Lu
On 02/01/2013 11:28 PM, Alan Stern wrote: > On Fri, 1 Feb 2013, Aaron Lu wrote: > >> Hi Derek, >> >> On 12/21/2012 12:35 PM, Derek Basehore wrote: >>> We no longer wait for the disk to spin up in sd_resume. It now enters the >>> request to spinup the dis

[PATCH v3] lpc_ich: fix gpio base and control offsets

2013-01-24 Thread Aaron Sierra
In ICH5 and earlier the GPIOBASE and GPIOCTRL registers are found at offsets 0x58 and 0x5C, respectively. This patch allows GPIO access to properly be enabled (and disabled) for these chipsets. Signed-off-by: Agócs Pál Signed-off-by: Aaron Sierra --- drivers/mfd/lpc_ich.c | 109

Re: [PATCH v3] lpc_ich: fix gpio base and control offsets

2013-01-25 Thread Aaron Sierra
ommit 092369efbd6ef6b4a215741ce9f65446bf45beff Author: Feng Tang Date: Thu Aug 16 15:50:10 2012 +0800 mfd: lpc_ich: Fix a 3.5 kernel regression for iTCO_wdt driver [trimmed] Actually the same check could be removed for the gpio-ich in lpc_ich.c, but I'm not sure if i

Re: [PATCH v7 4/4] sd: change to auto suspend mode

2013-01-28 Thread Aaron Lu
On Fri, Jan 18, 2013 at 04:25:10PM -0500, Alan Stern wrote: > On Wed, 16 Jan 2013, Aaron Lu wrote: > > > From: Lin Ming > > > > Uses block layer runtime pm helper functions in > > scsi_runtime_suspend/resume. > > Remove scsi_autopm_* from sd open/release

Re: [PATCH v7 3/4] block: implement runtime pm strategy

2013-01-28 Thread Aaron Lu
On Sat, Jan 19, 2013 at 01:11:45PM -0500, Alan Stern wrote: > On Sat, 19 Jan 2013, Aaron Lu wrote: > > Considering ODD's use case, I was thinking of moving the > > blk_pm_runtime_init call to sd.c, as sr will not use request based auto > > suspend. Probably right before w

Re: [PATCH] mm: slab: Verify the nodeid passed to ____cache_alloc_node

2013-02-25 Thread Aaron Tomlin
> If you assert with VM_BUG_ON, it will be active on debugging kernels > only, which I believe is better suited for a hotpath. Agreed. Regards, Aaron -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.or

Re: [PATCH v2] mm: slab: Verify the nodeid passed to ____cache_alloc_node

2013-02-25 Thread Aaron Tomlin
Hi, This patch is in response to bz#42967 [1]. Using VM_BUG_ON instead of a generic BUG_ON so it's used only when CONFIG_DEBUG_VM is set, given that cache_alloc_node() is a hot code path. Cheers, Aaron [1]: https://bugzilla.kernel.org/show_bug.cgi?id=42967 ---8<--- mm: slab: Ve

Re: [GIT PULL] ACPI and power management fixes for v3.9-rc1

2013-02-26 Thread Aaron Lu
e heck is ODD?) which was another new entry I wondered >> about. Sorry about this. >> >> It turns out that ODD is an odd TLA for "Optical Disk Drive". I'm sure >> it makes perfect sense if you are a SATA person, but it sure doesn't >> for any n

[PATCH] [libata] Avoid specialized TLA's in ZPODD's Kconfig

2013-02-28 Thread Aaron Lu
ODD is not a common TLA for non-ATA people so they will get confused by its meaning when they are configuring the kernel. This patch fixed this problem by using ODD only after stating what it is. Signed-off-by: Aaron Lu --- drivers/ata/Kconfig | 13 +++-- 1 file changed, 7 insertions

Re: libata-acpi.c ata_acpi_register_power_resource copy and paste mistake ?

2013-02-28 Thread Aaron Lu
+Rafael commit bc9b6407bd6df3ab7189e5622816bbc11ae9d2d8 Author: Rafael J. Wysocki Date: Thu Jan 17 14:11:05 2013 +0100 ACPI / PM: Rework the handling of devices depending on power resources -Aaron On 03/01/2013 12:45 AM, Sander Eikelenboom wrote: > Hi Jeff, > > During the last

Re: [PATCH v9 3/4] block: implement runtime pm strategy

2013-02-18 Thread Aaron Lu
Hi Alan, On Tue, Feb 05, 2013 at 04:03:15PM +0800, Aaron Lu wrote: > From: Lin Ming > > When a request is added: > If device is suspended or is suspending and the request is not a > PM request, resume the device. > > When the last request finishes: > Call p

[PATCH v10 4/4] sd: change to auto suspend mode

2013-02-19 Thread Aaron Lu
From: Lin Ming Uses block layer runtime pm helper functions in scsi_runtime_suspend/resume for devices that take advantage of it. Remove scsi_autopm_* from sd open/release path and check_events path. Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- drivers/scsi/scsi_pm.c | 84

[PATCH v10 1/4] block: add a flag to identify PM request

2013-02-19 Thread Aaron Lu
Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- drivers/scsi/scsi_lib.c| 9 - drivers/scsi/sd.c | 9 + include/linux/blk_types.h | 2 ++ include/scsi/scsi_device.h | 16 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/drivers/

[PATCH v10 3/4] block: implement runtime pm strategy

2013-02-19 Thread Aaron Lu
is allowed to go. The idea and API is designed by Alan Stern and described here: http://marc.info/?l=linux-scsi&m=133727953625963&w=2 Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- block/blk-core.c | 39 +++ block/elevato

[PATCH v10 0/4] block layer runtime pm

2013-02-19 Thread Aaron Lu
In August 2010, Jens and Alan discussed about "Runtime PM and the block layer". http://marc.info/?t=12825910841&r=1&w=2 And then Alan has given a detailed implementation guide: http://marc.info/?l=linux-scsi&m=133727953625963&w=2 To test: # ls -l /sys/block/sda /sys/devices/pci:00/:00:

[PATCH v10 2/4] block: add runtime pm helpers

2013-02-19 Thread Aaron Lu
NDED. The idea and API is designed by Alan Stern and described here: http://marc.info/?l=linux-scsi&m=133727953625963&w=2 Signed-off-by: Lin Ming Signed-off-by: Aaron Lu --- block/blk-core.c | 144 + include/linux/blkdev.h | 27

Re: [PATCH v10 0/4] block layer runtime pm

2013-02-21 Thread Aaron Lu
On Wed, Feb 20, 2013 at 10:43:50AM -0500, Alan Stern wrote: > On Wed, 20 Feb 2013, Aaron Lu wrote: > > > In August 2010, Jens and Alan discussed about "Runtime PM and the block > > layer". http://marc.info/?t=12825910841&r=1&w=2 > > And then Alan

[PATCH] mm: slab: Verify the nodeid passed to ____cache_alloc_node

2013-02-21 Thread Aaron Tomlin
my opinion it's already a BUG. Cheers, Aaron ---8<--- mm: slab: Verify the nodeid passed to cache_alloc_node If the nodeid is > num_online_nodes() this can cause an Oops and a panic(). The purpose of this patch is to assert if this condition is true to aid debugging efforts rather

Re: [PATCH 1/3] ACPI video: Fix brightness control initialization for some laptops.

2013-03-15 Thread Aaron Lu
control for the device in question not to be enabled. > > Fix that by returning the raw value returned by the _BQC call in the > initialization case. You missed Signed-off-by tag here. Other than that, Reviewed-by: Aaron Lu . Thanks, Aaron > --- > drivers/acpi/video.c | 29 +

Re: [PATCH 2/3] ACPI video: Make logic a little easier to understand.

2013-03-15 Thread Aaron Lu
On 03/14/2013 06:34 PM, Danny Baumann wrote: > Make code paths a little easier to follow, and don't needlessly continue > list iteration. Same here, please add Signed-off-by tag. Reviewed-by: Aaron Lu Thanks, Aaron > --- > drivers/acpi/video.c | 13 +++-- >

Re: [PATCH 3/3] ACPI video: Fix applying indexed initial brightness value.

2013-03-15 Thread Aaron Lu
level = acpi_video_index_to_level(device, level_old); And here, that new function should be used, which also takes care of the offset_aml_bug problem(though in theory, the two problems may not happen on the same BIOS table). And the acpi_video_device_lcd_get_level_current's param init

Re: [PATCH 3/3] ACPI video: Fix applying indexed initial brightness value.

2013-03-15 Thread Aaron Lu
ly used for the > BQC-returns-level case. Definitely, we should care that. > >> And the acpi_video_device_lcd_get_level_current's param init can >> probably be renamed as raw, meaning if raw value is desired or fixed >> value, but it's not a big deal. > > Ag

[PATCH RESEND v11 0/4] block layer runtime pm

2013-03-15 Thread Aaron Lu
In August 2010, Jens and Alan discussed about "Runtime PM and the block layer". http://marc.info/?t=12825910841&r=1&w=2 And then Alan has given a detailed implementation guide: http://marc.info/?l=linux-scsi&m=133727953625963&w=2 To test: # ls -l /sys/block/sda /sys/devices/pci:00/:00:

[PATCH RESEND v11 2/4] block: add runtime pm helpers

2013-03-15 Thread Aaron Lu
NDED. The idea and API is designed by Alan Stern and described here: http://marc.info/?l=linux-scsi&m=133727953625963&w=2 Signed-off-by: Lin Ming Signed-off-by: Aaron Lu Acked-by: Alan Stern --- block/blk-core.c | 144 + inclu

[PATCH RESEND v11 4/4] sd: change to auto suspend mode

2013-03-15 Thread Aaron Lu
From: Lin Ming Uses block layer runtime pm helper functions in scsi_runtime_suspend/resume for devices that take advantage of it. Remove scsi_autopm_* from sd open/release path and check_events path. Signed-off-by: Lin Ming Signed-off-by: Aaron Lu Acked-by: Alan Stern --- drivers/scsi

[PATCH RESEND v11 3/4] block: implement runtime pm strategy

2013-03-15 Thread Aaron Lu
is allowed to go. The idea and API is designed by Alan Stern and described here: http://marc.info/?l=linux-scsi&m=133727953625963&w=2 Signed-off-by: Lin Ming Signed-off-by: Aaron Lu Acked-by: Alan Stern --- block/blk-core.c | 39 +++ block/el

[PATCH RESEND v11 1/4] block: add a flag to identify PM request

2013-03-15 Thread Aaron Lu
Signed-off-by: Lin Ming Signed-off-by: Aaron Lu Acked-by: Alan Stern --- drivers/scsi/scsi_lib.c| 9 - drivers/scsi/sd.c | 9 + include/linux/blk_types.h | 2 ++ include/scsi/scsi_device.h | 16 4 files changed, 23 insertions(+), 13 deletions(-)

Re: [PATCH] ACPI: power: Use KERN_DEBUG when no power resources are found

2012-08-28 Thread Aaron Lu
On Fri, Aug 24, 2012 at 03:36:21PM -0700, Joe Perches wrote: > On Thu, 2012-08-23 at 15:26 +0200, Borislav Petkov wrote: > > On Fri, Aug 10, 2012 at 10:05:53AM +0800, Aaron Lu wrote: > > > commit a606dac368eed5696fb38e16b1394f1d049c09e9 adds support to link > > > de

Re: [PATCH] ACPI / PM: Infer parent power state from child if unknown

2012-09-10 Thread Aaron Lu
== ACPI_STATE_D0) { Oops, I just realized that the check here is too early if device does not have _PSC but _PRx, its parent will miss the chance to get power state updated :-) Sorry for not spotting this earlier. -Aaron > + /* > + * If we were un

Re: [PATCH] ACPI / PM: Infer parent power state from child if unknown, v2

2012-09-11 Thread Aaron Lu
at the device is > in D0, the device's parent has to be in D0 as well. Consequently, > if the parent's power state is unknown when we've just learned that > its child's power state is D0, we can safely set the parent's > power.state field to ACPI_STATE_D0. >

[PATCH RESEND] ACPI: power: Use KERN_DEBUG when no power resources are found

2012-09-13 Thread Aaron Lu
device, so a warning here is not appropriate, change it to debug. Reported-by: Borislav Petkov Signed-off-by: Aaron Lu --- drivers/acpi/power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/power.c b/drivers/acpi/power.c index 215ecd0..e5e01d9 100644 --- a

Re: [PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-11-01 Thread Aaron Lu
On 10/30/2012 11:20 PM, Rafael J. Wysocki wrote: > On Tuesday, October 30, 2012 03:28:45 PM Aaron Lu wrote: >> On Mon, Oct 29, 2012 at 10:11:20AM +0100, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> If the caller of acpi_bus_set_power() alr

Re: [git patches] libata updates

2012-07-25 Thread Aaron Lu
On 07/26/2012 01:05 PM, James Bottomley wrote: On Thu, 2012-07-26 at 12:47 +0800, Aaron Lu wrote: On 07/26/2012 05:38 AM, Jeff Garzik wrote: On 07/25/2012 04:35 PM, Jeff Garzik wrote: * Updating libata to directly bind with ACPI / runtime power mgmt. This is a pre-req for SATA ZPODD (CD-ROM

[PATCH v3 5/7] scsi: pm: use runtime resume callback if available

2012-07-26 Thread Aaron Lu
When runtime resume a scsi device, if the device's driver has implemented runtime resume callback, use that. sr driver needs this to do different things for system resume and runtime resume. Signed-off-by: Aaron Lu --- drivers/scsi/scsi_pm.c | 15 ++- 1 file changed, 10 inser

[PATCH v3 4/7] scsi: sr: block events when runtime suspended

2012-07-26 Thread Aaron Lu
When the ODD is runtime suspended, there is no need to poll it for events, so block events poll for it and unblock when resumed. Signed-off-by: Aaron Lu --- block/genhd.c | 2 ++ drivers/scsi/sr.c | 7 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/block/genhd.c b

[PATCH v3 6/7] scsi: sr: balance sr disk events block depth

2012-07-26 Thread Aaron Lu
system resume and one for runtime resume to do different things accordingly. Signed-off-by: Aaron Lu --- drivers/scsi/sr.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index fd1c2f6..b8c2f9d 100644 --- a/drivers/scsi/sr.c +++ b

[PATCH v3 7/7] block: genhd: add an interface to set disk's poll interval

2012-07-26 Thread Aaron Lu
Set the ODD's in kernel poll interval to 2s for the user in case the user is using an old distro on which udev will not set the system wide block parameter events_dfl_poll_msecs. Signed-off-by: Aaron Lu --- block/genhd.c | 23 +-- drivers/scsi/sr.c

[PATCH v3 3/7] scsi: sr: support zero power ODD(ZPODD)

2012-07-26 Thread Aaron Lu
has to be inhibited: $ udisks --inhibit-polling /dev/sr0 Signed-off-by: Aaron Lu --- drivers/scsi/sr.c | 130 - drivers/scsi/sr.h | 2 + include/scsi/scsi_device.h | 2 + 3 files changed, 133 insertions(+), 1 deletion(-) di

[PATCH v3 0/7] ZPODD patches for scsi tree

2012-07-26 Thread Aaron Lu
. Will fix this when 3.6-rc1 released. v2: Bug fix for v1; Use scsi_autopm_* in sr driver instead of pm_runtime_*; v1: Here are some patches to make ZPODD easier to use for end users and a fix for using ZPODD with system suspend. Aaron Lu (7): scsi: sr: check support for device busy class events

[PATCH v3 2/7] scsi: pm: use autosuspend if device supports it

2012-07-26 Thread Aaron Lu
If the device is using autosuspend, when scsi_autopm_put_device is called for it, use autosuspend runtime pm calls instead of the sync call. Signed-off-by: Aaron Lu --- drivers/scsi/scsi_pm.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_pm.c b

[PATCH v3 1/7] scsi: sr: check support for device busy class events

2012-07-26 Thread Aaron Lu
Signed-off-by: Aaron Lu --- drivers/scsi/sr.c | 23 +++ drivers/scsi/sr.h | 1 + include/linux/cdrom.h | 43 +++ 3 files changed, 67 insertions(+) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 5fc97d2..abfefab

Re: [PATCH v3 2/7] scsi: pm: use autosuspend if device supports it

2012-07-26 Thread Aaron Lu
On Thu, Jul 26, 2012 at 12:44:24PM +0200, Oliver Neukum wrote: > On Thursday 26 July 2012 18:05:24 Aaron Lu wrote: > > If the device is using autosuspend, when scsi_autopm_put_device is > > called for it, use autosuspend runtime pm calls instead of the sync > > call. >

Re: [PATCH v3 6/7] scsi: sr: balance sr disk events block depth

2012-07-26 Thread Aaron Lu
On Thu, Jul 26, 2012 at 02:54:01PM +0400, Sergei Shtylyov wrote: > Hello. > > On 26-07-2012 14:05, Aaron Lu wrote: > > >When the ODD is resumed, disk_unblock_events should be called when: > >1 The ODD is runtime resumed; > >2 System is resuming from S3 and the ODD

Re: [PATCH v3 0/7] ZPODD patches for scsi tree

2012-07-26 Thread Aaron Lu
On Thu, Jul 26, 2012 at 09:43:37AM -0400, Jeff Garzik wrote: > On 07/26/2012 06:05 AM, Aaron Lu wrote: > >v3: > >Rebase on top of scsi-misc tree; > >Add the sr related patches previously in Jeff's libata tree; > >Re-organize the sr patches. > >A problem for no

[PATCH v4 4/7] scsi: sr: block events when runtime suspended

2012-07-27 Thread Aaron Lu
When the ODD is runtime suspended, there is no need to poll it for events, so block events poll for it and unblock when resumed. Signed-off-by: Aaron Lu --- block/genhd.c | 2 ++ drivers/scsi/sr.c | 7 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/block/genhd.c b

[PATCH v4 3/7] scsi: sr: support zero power ODD(ZPODD)

2012-07-27 Thread Aaron Lu
s. To make use of ZPODD, udisks' poll has to be inhibited: $ udisks --inhibit-polling /dev/sr0 All of the above depends on if the device can be powered off runtime, which is reflected by the can_power_off flag. Signed-off-by: Aaron Lu --- drivers/ata/libata-acpi.c | 4 +- drivers/scsi/sr.c

[PATCH v4 6/7] scsi: sr: balance sr disk events block depth

2012-07-27 Thread Aaron Lu
system resume and one for runtime resume to do different things accordingly. Signed-off-by: Aaron Lu --- drivers/scsi/sr.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index cbc14ea..f0c4aa2 100644 --- a/drivers/scsi/sr.c +++ b

[PATCH v4 5/7] scsi: pm: use runtime resume callback if available

2012-07-27 Thread Aaron Lu
When runtime resume a scsi device, if the device's driver has implemented runtime resume callback, use that. sr driver needs this to do different things for system resume and runtime resume. Signed-off-by: Aaron Lu --- drivers/scsi/scsi_pm.c | 15 ++- 1 file changed, 10 inser

[PATCH v4 1/7] scsi: sr: check support for device busy class events

2012-07-27 Thread Aaron Lu
Signed-off-by: Aaron Lu --- drivers/scsi/sr.c | 23 +++ drivers/scsi/sr.h | 1 + include/linux/cdrom.h | 43 +++ 3 files changed, 67 insertions(+) diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 5fc97d2..abfefab

[PATCH v4 7/7] block: genhd: add an interface to set disk's poll interval

2012-07-27 Thread Aaron Lu
Set the ODD's in kernel poll interval to 2s for the user in case the user is using an old distro on which udev will not set the system wide block parameter events_dfl_poll_msecs. Signed-off-by: Aaron Lu --- block/genhd.c | 23 +-- drivers/scsi/sr.c

[PATCH v4 0/7] ZPODD patches

2012-07-27 Thread Aaron Lu
since a related function is missing in scsi-misc tree. Will fix this when 3.6-rc1 released. v2: Bug fix for v1; Use scsi_autopm_* in sr driver instead of pm_runtime_*; v1: Here are some patches to make ZPODD easier to use for end users and a fix for using ZPODD with system suspend. Aaron Lu (7):

[PATCH v4 2/7] scsi: pm: add interface to autosuspend scsi device

2012-07-27 Thread Aaron Lu
Add a new interface scsi_autopm_put_device_autosuspend to mark last busy for the device and then put autosuspend the device. Signed-off-by: Aaron Lu --- drivers/scsi/scsi_pm.c | 7 +++ include/scsi/scsi_device.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/drivers/scsi

Re: [PATCH v4 0/7] ZPODD patches

2012-07-30 Thread Aaron Lu
Hi James, Any chance of these patches get merged into 3.6? Thanks, Aaron On 07/27/2012 05:00 PM, Aaron Lu wrote: v4: Rebase on top of Linus' tree, due to this, the problem of a missing flag in v3 is gone; Add a new function scsi_autopm_put_device_autosuspend to first mark last busy fo

Re: [PATCH 5/7] ACPI / PM: Provide device PM functions operating on struct acpi_device

2012-10-30 Thread Aaron Lu
lity of the device? If device has _PS3 or _PRx, it means the device can be powered off from ACPI's perspective. This is useful for ZPODD when deciding if platform has the required ability to support it. Thanks, Aaron > > Signed-off-by: Rafael J. Wysocki > --- > drivers/acpi/

Re: linux-next: build failure after merge of the libata tree

2013-08-26 Thread Aaron Lu
not have the ACPI include files > included via some other path ... nor wants them, I suspect. Sorry for the trouble, my bad. Does the below patch fix the problem? From: Aaron Lu Subject: [PATCH] ata: acpi: Remove ata_dev_acpi_handle stub in libata.h The ata_dev_acpi_handle is defined in libata

Re: [PATCH 3/3] i915: Don't provide ACPI backlight interface if firmware expects Windows 8

2013-07-08 Thread Aaron Lu
tatic inline int acpi_video_register_with_quirks(void) { return 0; } > static inline void acpi_video_unregister(void) { return; } > static inline int acpi_video_get_edid(struct acpi_device *device, int type, > int device_id, void **edid) > Index: linux-pm/drivers/acpi/v

[PATCH] ALSA: hda - Add new GPU codec ID to snd-hda

2013-07-12 Thread Aaron Plattner
Vendor ID 0x10de0060 is used by a yet-to-be-named GPU chip. Reviewed-by: Andy Ritger Signed-off-by: Aaron Plattner --- sound/pci/hda/patch_hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index e12f7a0..486def7 100644 --- a

[PATCH v2 2/3] ACPI / video: seperate backlight control and event interface

2013-09-17 Thread Aaron Lu
/or event delivery functionality can be easily added once needed. Signed-off-by: Aaron Lu --- drivers/acpi/video.c | 451 ++- include/acpi/video.h | 2 + 2 files changed, 264 insertions(+), 189 deletions(-) diff --git a/drivers/acpi/video.c b

[PATCH v2 1/3] backlight: introduce backlight_device_registered

2013-09-17 Thread Aaron Lu
. avoid register its own on Win8 systems). Signed-off-by: Aaron Lu --- drivers/video/backlight/backlight.c | 31 +++ include/linux/backlight.h | 4 2 files changed, 35 insertions(+) diff --git a/drivers/video/backlight/backlight.c b/drivers/video

[PATCH v2 3/3] ACPI / video: Do not register backlight if win8 and native interface exists

2013-09-17 Thread Aaron Lu
own. For users who prefer to keep ACPI video's backlight interface, the existing kernel cmdline option acpi_backlight=video can be used. This patch is an evolution from previous work done by Matthew Garrett, Chun-Yi Lee, Seth Forshee and Rafael J. Wysocki. Signed-off-by: Aaron Lu --- dr

[PATCH v2 0/3] Fix Win8 backlight issue

2013-09-17 Thread Aaron Lu
y, patch 2/3 is not required to fix the issue here. So if you think it is not necessary, I can remove it from the series. Apply on top of v3.12-rc1. Aaron Lu (3): backlight: introduce backlight_device_registered ACPI / video: seperate backlight control and event interface ACPI / video:

Re: [PATCH v2 0/3] Fix Win8 backlight issue

2013-09-17 Thread Aaron Lu
On 09/17/2013 09:34 PM, Igor Gnatenko wrote: > On Tue, 2013-09-17 at 17:23 +0800, Aaron Lu wrote: >> v1 has the subject of "Rework ACPI video driver" and is posted here: >> http://lkml.org/lkml/2013/9/9/74 >> Since the objective is really to fix Win8 backlight issu

Re: [PATCH v2 0/3] Fix Win8 backlight issue

2013-09-18 Thread Aaron Lu
On 09/18/2013 02:30 PM, Igor Gnatenko wrote: > On Wed, 2013-09-18 at 09:03 +0800, Aaron Lu wrote: >> On 09/17/2013 09:34 PM, Igor Gnatenko wrote: >>> >>> Aaron, how about fix indicator on ThinkPads ? >> >> Can you please describe the problem in detail, i

[PATCH 0/2] Rework ACPI video driver

2013-09-09 Thread Aaron Lu
tible have problems with i915's backlight control interface, a module param is introduced to give user a chance to select if they want to remove ACPI video's backlight control interface. The param is set to false by default. Aaron Lu (2): ACPI / video: seperate backlight control and event inte

[PATCH 1/2] ACPI / video: seperate backlight control and event interface

2013-09-09 Thread Aaron Lu
ivery functionality alone so the function acpi_video_remove_notify_handler is not introduced, it can be easily added when needed. Signed-off-by: Aaron Lu --- drivers/acpi/video.c | 451 ++- include/acpi/video.h | 2 + 2 files changed, 264 inser

  1   2   3   4   5   6   7   8   9   10   >