[PATCH] libata drain fifo on stuck DRQ HSM violation (try#2)

2007-09-28 Thread Mark Lord
all agree the update is needed. I think this original patch still applies cleanly on at least 2.6.23-rc7. Drain up to 512 words from host/bridge FIFO on stuck DRQ HSM violation, rather than just getting stuck there forever. Signed-off-by: Mark Lord [EMAIL PROTECTED] --- --- old/drivers/ata/libata

[PATCH] disable non-boot CPUs before poweroff

2007-09-28 Thread Mark Lord
We need to disable all CPUs other than the boot CPU (usually 0) before attempting to power-off modern SMP machines. This seems to fix the hang-on-poweroff issue that one of my SMP boxes exhibits. More testing required. Signed-off-by: Mark Lord [EMAIL PROTECTED] --- --- linux/kernel/sys.c.orig

Re: [PATCH] disable non-boot CPUs before poweroff

2007-09-28 Thread Mark Lord
Mark Lord wrote: We need to disable all CPUs other than the boot CPU (usually 0) before attempting to power-off modern SMP machines. This seems to fix the hang-on-poweroff issue that one of my SMP boxes exhibits. More testing required. Signed-off-by: Mark Lord [EMAIL PROTECTED] --- --- linux

Re: Problems with SMP ACPI powering off

2007-09-28 Thread Mark Lord
Rafael J. Wysocki wrote: On Friday, 28 September 2007 06:57, Len Brown wrote: On Thursday 27 September 2007 18:00, Rafael J. Wysocki wrote: On Thursday, 27 September 2007 23:29, Mark Lord wrote: Question: do we disable all CPUs except 0 when doing ACPI power off? No, but we should. We used

[PATCH] (repost) Fix SMP poweroff hangs

2007-09-28 Thread Mark Lord
is the revised patch. * * * We need to disable all CPUs other than the boot CPU (usually 0) before attempting to power-off modern SMP machines. This fixes the hang-on-poweroff issue on my MythTV SMP box, and also on Thomas Gleixner's new toybox. Signed-off-by: Mark Lord [EMAIL PROTECTED] Acked

Re: [patch 0/2] suspend/resume regression fixes

2007-09-28 Thread Mark Lord
Linus Torvalds wrote: On Sat, 22 Sep 2007, Thomas Gleixner wrote: My final enlightment was, when I removed the ACPI processor module, which controls the lower idle C-states, right before resume; this worked fine all the time even without all the workaround hacks. I really hope that this two

Re: [patch 0/2] suspend/resume regression fixes

2007-09-28 Thread Mark Lord
Thomas Gleixner wrote: On Fri, 2007-09-28 at 16:27 -0400, Mark Lord wrote: .. On a closely related note: I just now submitted a patch to fix SMP-poweroff, by having it do disable_nonboot_cpus before doing poweroff. Which has led me to thinking.. ..are similar precautions perhaps necessary

[PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-27 Thread Mark Lord
there forever. Signed-Off-By: Mark Lord <[EMAIL PROTECTED]> --- --- old/drivers/ata/libata-sff.c2007-04-26 12:02:46.0 -0400 +++ linux/drivers/ata/libata-sff.c 2007-04-29 08:29:27.0 -0400 @@ -413,6 +413,24 @@ ap->ops->irq_on(ap); } +static void ata_drain_

Re: Stardom SATA HSM violation

2007-09-27 Thread Mark Lord
Tejun Heo wrote: Alan Cox wrote: I think there have been enough cases where this draining was necessary. IIRC, ata_piix was involved in those cases, right? If so, can you please submit a patch which applies this only to affected controllers? I don't feel too confident about applying this to

Re: Problems with SMP & ACPI powering off

2007-09-27 Thread Mark Lord
Rafael J. Wysocki wrote: On Thursday, 27 September 2007 23:29, Mark Lord wrote: Question: do we disable all CPUs except 0 when doing ACPI power off? No, but we should. Background: I have a machine here dedicated to running MythTV. It powers up to record, and then sets the RTC alarm

Re: Problems with SMP & ACPI powering off

2007-09-27 Thread Mark Lord
Mark Lord wrote: Question: do we disable all CPUs except 0 when doing ACPI power off? Background: I have a machine here dedicated to running MythTV. It powers up to record, and then sets the RTC alarm for next time and powers down again in between recordings. It has an Intel Core2duo E6300

Problems with SMP & ACPI powering off

2007-09-27 Thread Mark Lord
Question: do we disable all CPUs except 0 when doing ACPI power off? Background: I have a machine here dedicated to running MythTV. It powers up to record, and then sets the RTC alarm for next time and powers down again in between recordings. It has an Intel Core2duo E6300 CPU, currently on an

Problems with SMP ACPI powering off

2007-09-27 Thread Mark Lord
Question: do we disable all CPUs except 0 when doing ACPI power off? Background: I have a machine here dedicated to running MythTV. It powers up to record, and then sets the RTC alarm for next time and powers down again in between recordings. It has an Intel Core2duo E6300 CPU, currently on an

Re: Problems with SMP ACPI powering off

2007-09-27 Thread Mark Lord
Mark Lord wrote: Question: do we disable all CPUs except 0 when doing ACPI power off? Background: I have a machine here dedicated to running MythTV. It powers up to record, and then sets the RTC alarm for next time and powers down again in between recordings. It has an Intel Core2duo E6300

Re: Problems with SMP ACPI powering off

2007-09-27 Thread Mark Lord
Rafael J. Wysocki wrote: On Thursday, 27 September 2007 23:29, Mark Lord wrote: Question: do we disable all CPUs except 0 when doing ACPI power off? No, but we should. Background: I have a machine here dedicated to running MythTV. It powers up to record, and then sets the RTC alarm

Re: Stardom SATA HSM violation

2007-09-27 Thread Mark Lord
Tejun Heo wrote: Alan Cox wrote: I think there have been enough cases where this draining was necessary. IIRC, ata_piix was involved in those cases, right? If so, can you please submit a patch which applies this only to affected controllers? I don't feel too confident about applying this to

[PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-27 Thread Mark Lord
there forever. Signed-Off-By: Mark Lord [EMAIL PROTECTED] --- --- old/drivers/ata/libata-sff.c2007-04-26 12:02:46.0 -0400 +++ linux/drivers/ata/libata-sff.c 2007-04-29 08:29:27.0 -0400 @@ -413,6 +413,24 @@ ap-ops-irq_on(ap); } +static void ata_drain_fifo (struct

Re: [GIT PATCH] USB autosuspend fixes for 2.6.23-rc6

2007-09-14 Thread Mark Lord
Linus Torvalds wrote: On Fri, 14 Sep 2007, Adrian Bunk wrote: E.g. when looking at the reverse dependencies of libhal, it would not be funny if kernel 2.6.43 required a more recent version of HAL. Adrian, what's the point of answering your questions, WHEN YOU DON'T EVEN READ THE ANSWERS!

Re: [GIT PATCH] USB autosuspend fixes for 2.6.23-rc6

2007-09-14 Thread Mark Lord
Linus Torvalds wrote: On Fri, 14 Sep 2007, Adrian Bunk wrote: E.g. when looking at the reverse dependencies of libhal, it would not be funny if kernel 2.6.43 required a more recent version of HAL. Adrian, what's the point of answering your questions, WHEN YOU DON'T EVEN READ THE ANSWERS!

Re: [linux-usb-devel] Problems with USB disk [solved]

2007-09-13 Thread Mark Lord
Alan Stern wrote: On Thu, 13 Sep 2007, Mark Lord wrote: .. What happens is, there's a nice little LED on the Cruzer stick, that is "lit" when the stick itself is not in a "power suspend" state (or whatever you USB folks call it). We call it "suspended". (Wasn

Re: [linux-usb-devel] Problems with USB disk [solved]

2007-09-13 Thread Mark Lord
Alan Stern wrote: On Wed, 12 Sep 2007, Mark Lord wrote: Chuck Ebbert wrote: .. Oh, nice. The usb-storage (SCSI) disk spins itself down and we can't handle that. Should we be disabling auto-spindown when we connect the device, or be able to handle this by sending the start command when

Re: [1/4] 2.6.23-rc6: known regressions

2007-09-13 Thread Mark Lord
Greg KH wrote: On Wed, Sep 12, 2007 at 10:50:26PM -0400, Mark Lord wrote: Michal Piotrowski wrote: Hi all, Here is a list of some known regressions in 2.6.23-rc6. ... Missing from the list: USB "autosuspend" feature (new in 2.6.23) breaks *lots* of devices. Many have since been b

Re: [1/4] 2.6.23-rc6: known regressions

2007-09-13 Thread Mark Lord
Greg KH wrote: On Wed, Sep 12, 2007 at 10:50:26PM -0400, Mark Lord wrote: Michal Piotrowski wrote: Hi all, Here is a list of some known regressions in 2.6.23-rc6. ... Missing from the list: USB autosuspend feature (new in 2.6.23) breaks *lots* of devices. Many have since been blacklisted

Re: [linux-usb-devel] Problems with USB disk [solved]

2007-09-13 Thread Mark Lord
Alan Stern wrote: On Wed, 12 Sep 2007, Mark Lord wrote: Chuck Ebbert wrote: .. Oh, nice. The usb-storage (SCSI) disk spins itself down and we can't handle that. Should we be disabling auto-spindown when we connect the device, or be able to handle this by sending the start command when

Re: [linux-usb-devel] Problems with USB disk [solved]

2007-09-13 Thread Mark Lord
Alan Stern wrote: On Thu, 13 Sep 2007, Mark Lord wrote: .. What happens is, there's a nice little LED on the Cruzer stick, that is lit when the stick itself is not in a power suspend state (or whatever you USB folks call it). We call it suspended. (Wasn't there an episode of Classic Trek

Re: [1/4] 2.6.23-rc6: known regressions

2007-09-12 Thread Mark Lord
Michal Piotrowski wrote: Hi all, Here is a list of some known regressions in 2.6.23-rc6. ... Missing from the list: USB "autosuspend" feature (new in 2.6.23) breaks *lots* of devices. Many have since been blacklisted in one-at-a-time discovery patches, but that's really just the tip of the

Re: [linux-usb-devel] spontaneous disconnect with "usb-storage: implement autosuspend"

2007-09-12 Thread Mark Lord
reverting the changed functionality, or by changing the code to default OFF. Here's my patch for 2.6.23-rc6+ : Fix USB Storage failures. Signed-Off-By: Mark Lord <[EMAIL PROTECTED]> --- --- linux/drivers/usb/storage/usb.c.orig2007-09-11 11:52:14.0 -0400 +++ linux/drive

Re: [linux-usb-devel] spontaneous disconnect with "usb-storage: implement autosuspend"

2007-09-12 Thread Mark Lord
Greg KH wrote: On Wed, Sep 12, 2007 at 06:14:04PM -0400, Mark Lord wrote: Oliver Neukum wrote: Am Dienstag 14 August 2007 schrieb Paolo Ornati: On Tue, 14 Aug 2007 17:46:16 +0200 Oliver Neukum <[EMAIL PROTECTED]> wrote: Am Dienstag 14 August 2007 schrieb Paolo Ornati: Hewlett-P

Re: 2.6.23-rc1: USB hard disk broken (REGRESSION)

2007-09-12 Thread Mark Lord
Mark Lord wrote: Dan Zwell wrote: Alan Stern wrote: [ 126.512815] usb 1-1: usb auto-resume [ 126.543447] uhci_hcd :00:1f.2: port 1 portsc 00a5,01 [ 126.559426] usb 1-1: finish resume [ 126.561435] usb 1-1: gone after usb resume? status -19 [ 126.561445] usb 1-1: can't resume, status

Re: 2.6.23-rc1: USB hard disk broken (REGRESSION)

2007-09-12 Thread Mark Lord
Dan Zwell wrote: Alan Stern wrote: [ 126.512815] usb 1-1: usb auto-resume [ 126.543447] uhci_hcd :00:1f.2: port 1 portsc 00a5,01 [ 126.559426] usb 1-1: finish resume [ 126.561435] usb 1-1: gone after usb resume? status -19 [ 126.561445] usb 1-1: can't resume, status -19 [ 126.561451]

Re: [linux-usb-devel] spontaneous disconnect with "usb-storage: implement autosuspend"

2007-09-12 Thread Mark Lord
Oliver Neukum wrote: Am Dienstag 14 August 2007 schrieb Paolo Ornati: On Tue, 14 Aug 2007 17:46:16 +0200 Oliver Neukum <[EMAIL PROTECTED]> wrote: Am Dienstag 14 August 2007 schrieb Paolo Ornati: Hewlett-Packard PhotoSmart 720 / PhotoSmart 935 (storage) Please try this patch. Tried on -rc3

Re: Problems with USB disk [solved]

2007-09-12 Thread Mark Lord
Chuck Ebbert wrote: On 08/13/2007 10:50 AM, Niels wrote: On Sunday 12 August 2007 11:54, Niels wrote: On Friday 10 August 2007 14:43, Niels wrote: On Wednesday 08 August 2007 12:57, Ismail Dönmez wrote: On Wednesday 08 August 2007 13:48:29 you wrote: On Tuesday 07 August 2007 23:18,

Re: Problems with USB disk [solved]

2007-09-12 Thread Mark Lord
Chuck Ebbert wrote: On 08/13/2007 10:50 AM, Niels wrote: On Sunday 12 August 2007 11:54, Niels wrote: On Friday 10 August 2007 14:43, Niels wrote: On Wednesday 08 August 2007 12:57, Ismail Dönmez wrote: On Wednesday 08 August 2007 13:48:29 you wrote: On Tuesday 07 August 2007 23:18,

Re: [linux-usb-devel] spontaneous disconnect with usb-storage: implement autosuspend

2007-09-12 Thread Mark Lord
Oliver Neukum wrote: Am Dienstag 14 August 2007 schrieb Paolo Ornati: On Tue, 14 Aug 2007 17:46:16 +0200 Oliver Neukum [EMAIL PROTECTED] wrote: Am Dienstag 14 August 2007 schrieb Paolo Ornati: Hewlett-Packard PhotoSmart 720 / PhotoSmart 935 (storage) Please try this patch. Tried on -rc3

Re: 2.6.23-rc1: USB hard disk broken (REGRESSION)

2007-09-12 Thread Mark Lord
Dan Zwell wrote: Alan Stern wrote: [ 126.512815] usb 1-1: usb auto-resume [ 126.543447] uhci_hcd :00:1f.2: port 1 portsc 00a5,01 [ 126.559426] usb 1-1: finish resume [ 126.561435] usb 1-1: gone after usb resume? status -19 [ 126.561445] usb 1-1: can't resume, status -19 [ 126.561451]

Re: 2.6.23-rc1: USB hard disk broken (REGRESSION)

2007-09-12 Thread Mark Lord
Mark Lord wrote: Dan Zwell wrote: Alan Stern wrote: [ 126.512815] usb 1-1: usb auto-resume [ 126.543447] uhci_hcd :00:1f.2: port 1 portsc 00a5,01 [ 126.559426] usb 1-1: finish resume [ 126.561435] usb 1-1: gone after usb resume? status -19 [ 126.561445] usb 1-1: can't resume, status

Re: [linux-usb-devel] spontaneous disconnect with usb-storage: implement autosuspend

2007-09-12 Thread Mark Lord
Greg KH wrote: On Wed, Sep 12, 2007 at 06:14:04PM -0400, Mark Lord wrote: Oliver Neukum wrote: Am Dienstag 14 August 2007 schrieb Paolo Ornati: On Tue, 14 Aug 2007 17:46:16 +0200 Oliver Neukum [EMAIL PROTECTED] wrote: Am Dienstag 14 August 2007 schrieb Paolo Ornati: Hewlett-Packard

Re: [linux-usb-devel] spontaneous disconnect with usb-storage: implement autosuspend

2007-09-12 Thread Mark Lord
reverting the changed functionality, or by changing the code to default OFF. Here's my patch for 2.6.23-rc6+ : Fix USB Storage failures. Signed-Off-By: Mark Lord [EMAIL PROTECTED] --- --- linux/drivers/usb/storage/usb.c.orig2007-09-11 11:52:14.0 -0400 +++ linux/drivers/usb

Re: [1/4] 2.6.23-rc6: known regressions

2007-09-12 Thread Mark Lord
Michal Piotrowski wrote: Hi all, Here is a list of some known regressions in 2.6.23-rc6. ... Missing from the list: USB autosuspend feature (new in 2.6.23) breaks *lots* of devices. Many have since been blacklisted in one-at-a-time discovery patches, but that's really just the tip of the

Re: ICH Intel PATA short cable override...

2007-09-10 Thread Mark Lord
Jeff Garzik wrote: Mark Lord wrote: Ditto for selecting transfer modes. Waiting on one thing AFAICS: ability to drain/idle all ports + issue a command on one port + resume normal parallel port operation SET FEATURES - XFER MODE is special in that it requires all sorts

Re: ICH Intel PATA short cable override...

2007-09-10 Thread Mark Lord
Jeff Garzik wrote: Mark Lord wrote: Ditto for selecting transfer modes. Waiting on one thing AFAICS: ability to drain/idle all ports + issue a command on one port + resume normal parallel port operation SET FEATURES - XFER MODE is special in that it requires all sorts

Re: Stardom SATA HSM violation

2007-09-07 Thread Mark Lord
Tejun Heo wrote: Hello, Mark Lord wrote: I reported a very similar bug back a few releases ago. Anyone who wants to try it themselves, can do this with hdparm-7.7 (from sourceforge): hdparm --drq-hsm-error /dev/sda Whether or not it hangs the machine does depend upon exactly which SATA

Re: Stardom SATA HSM violation

2007-09-07 Thread Mark Lord
Tejun Heo wrote: Hello, Mark Lord wrote: I reported a very similar bug back a few releases ago. Anyone who wants to try it themselves, can do this with hdparm-7.7 (from sourceforge): hdparm --drq-hsm-error /dev/sda Whether or not it hangs the machine does depend upon exactly which SATA

Re: ICH Intel PATA short cable override...

2007-09-05 Thread Mark Lord
Alan Cox wrote: On Tue, 4 Sep 2007 13:37:22 +0100 "Daniel J Blueman" <[EMAIL PROTECTED]> wrote: We see that in ata_piix.c, there is a whitelist for (laptop) Intel ICH controllers with short cables, tied to specific vendor subsystem IDs. Since my mini-ITX Ibase MI910F has the subsystem IDs

Re: Stardom SATA HSM violation

2007-09-05 Thread Mark Lord
Andrew Morton wrote: .. Hey, we just found something which doesn't crash my Vaio! sony:/home/akpm/hdparm-7.7> 0 ./hdparm --drq-hsm-error /dev/sda /dev/sda: triggering "stuck DRQ" host state machine error do_drq_hsm_error: Success ata status=0x58 ata error=0x00 ata3.00: exception Emask 0x0

Re: Stardom SATA HSM violation

2007-09-05 Thread Mark Lord
Andrew Morton wrote: On Mon, 03 Sep 2007 17:53:00 +0900 Tejun Heo <[EMAIL PROTECTED]> wrote: Michal Piotrowski wrote: Hi, [Adding linux-ide to CC] On 25/08/07, Bryan Woods <[EMAIL PROTECTED]> wrote: Hi KML I am installing gentoo 2007.0 (kernel 2.6.19) on a dual AMD Opteron server (total of

Re: Stardom SATA HSM violation

2007-09-05 Thread Mark Lord
Andrew Morton wrote: On Mon, 03 Sep 2007 17:53:00 +0900 Tejun Heo [EMAIL PROTECTED] wrote: Michal Piotrowski wrote: Hi, [Adding linux-ide to CC] On 25/08/07, Bryan Woods [EMAIL PROTECTED] wrote: Hi KML I am installing gentoo 2007.0 (kernel 2.6.19) on a dual AMD Opteron server (total of 4

Re: Stardom SATA HSM violation

2007-09-05 Thread Mark Lord
Andrew Morton wrote: .. Hey, we just found something which doesn't crash my Vaio! sony:/home/akpm/hdparm-7.7 0 ./hdparm --drq-hsm-error /dev/sda /dev/sda: triggering stuck DRQ host state machine error do_drq_hsm_error: Success ata status=0x58 ata error=0x00 ata3.00: exception Emask 0x0 SAct

Re: SATA error while resume

2007-08-19 Thread Mark Lord
Maciek Rutecki wrote: Kernel: 2.6.23-rc2 witch patches [1], but older and stable versions also .. Sometimes (one in ten, or rarely) I have this error while system resume from suspend to disk: .. ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 ata1.00: irq_stat 0x4001 ata1.00:

Re: SATA error while resume

2007-08-19 Thread Mark Lord
Maciek Rutecki wrote: Kernel: 2.6.23-rc2 witch patches [1], but older and stable versions also .. Sometimes (one in ten, or rarely) I have this error while system resume from suspend to disk: .. ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 ata1.00: irq_stat 0x4001 ata1.00:

Re: Linux Kernel cfs scheduler and xorg kbd

2007-08-09 Thread Mark Lord
Rene Herman wrote: .. No, as far as reported into this thread, it's all been PS/2. We can leave this thread be though. It's nothing to do with CFS and is a non-debuggable problem sofar unfortunately. Although very present at the start of this thread, I haven't experienced my stuck delete key

Re:

2007-08-09 Thread Mark Lord
Brian J. Murrell wrote: I am using Ubuntu Gutsy, which is the in-development branch heading for their next stable release. I have noticed that since some kernel release post-2.6.20 I have been unable to mount my /boot partition: $ sudo strace -f mount /dev/hda1 /mnt/foo execve("/bin/mount",

Re:

2007-08-09 Thread Mark Lord
Brian J. Murrell wrote: I am using Ubuntu Gutsy, which is the in-development branch heading for their next stable release. I have noticed that since some kernel release post-2.6.20 I have been unable to mount my /boot partition: $ sudo strace -f mount /dev/hda1 /mnt/foo execve(/bin/mount,

Re: Linux Kernel cfs scheduler and xorg kbd

2007-08-09 Thread Mark Lord
Rene Herman wrote: .. No, as far as reported into this thread, it's all been PS/2. We can leave this thread be though. It's nothing to do with CFS and is a non-debuggable problem sofar unfortunately. Although very present at the start of this thread, I haven't experienced my stuck delete key

Re: Disk spin down issue on shut down/suspend to disk

2007-08-08 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: Further to this, if I have an active-writer running at the time of suspend, then even my scripted "sleep 1" is not good enough, as additional writes are still happening before/after the flush. Now I'll reboot and try it with the "sleep 1&qu

Re: Disk spin down issue on shut down/suspend to disk

2007-08-08 Thread Mark Lord
Mark Lord wrote: My suspend script now has this little chunk of code at the point where it actually does the suspend-to-RAM: sync; sync hdparm -F /dev/sda ## flush drive write cache sleep 1 ## allow time for the flush to complete echo mem > /sys/power/st

Re: Disk spin down issue on shut down/suspend to disk

2007-08-08 Thread Mark Lord
Mark Lord wrote: Tejun Heo wrote: Mark Lord wrote: .. FWIW, Tejun, with 2.6.22, my new Seagate 160GB SATA drive (notebook) increments the "Power-Off_Retract_Count" on each suspend-to-RAM operation. It does not do any double spin-up/spin-down things though. Hmmm.. It shouldn't.

Re: libata git tree, mbox queue status and contents

2007-08-08 Thread Mark Lord
libata to ignore errors after spinup This patch is to ignore errors from the spinup attempt if the drive is in the "standby id" state. Signed-off-by: Ryan Power <[EMAIL PROTECTED]> Acked-by: Mark Lord <[EMAIL PROTECTED]> Cc: Jeff Garzik <[EMAIL PROTECTED]> Cc: Tejun

Re: Disk spin down issue on shut down/suspend to disk

2007-08-08 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: > Tejun Heo wrote: >> Michael Sedkowski wrote: >>> Dnia 07-08-2007, Wt o godzinie 03:43 +0900, Tejun Heo napisał(a): >>>> Does emergency unload count increase >>>> after each power down? >>> I think I g

Re: Disk spin down issue on shut down/suspend to disk

2007-08-08 Thread Mark Lord
Tejun Heo wrote: Michael Sedkowski wrote: Dnia 07-08-2007, Wt o godzinie 03:43 +0900, Tejun Heo napisał(a): Does emergency unload count increase after each power down? I think I got it. Using smartctl I've done a test and shut down, then repeted the test. The only values that where diffrent

Re: Disk spin down issue on shut down/suspend to disk

2007-08-08 Thread Mark Lord
Tejun Heo wrote: Michael Sedkowski wrote: Dnia 07-08-2007, Wt o godzinie 03:43 +0900, Tejun Heo napisał(a): Does emergency unload count increase after each power down? I think I got it. Using smartctl I've done a test and shut down, then repeted the test. The only values that where diffrent

Re: Disk spin down issue on shut down/suspend to disk

2007-08-08 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: Tejun Heo wrote: Michael Sedkowski wrote: Dnia 07-08-2007, Wt o godzinie 03:43 +0900, Tejun Heo napisał(a): Does emergency unload count increase after each power down? I think I got it. Using smartctl I've done a test and shut down, then repeted

Re: libata git tree, mbox queue status and contents

2007-08-08 Thread Mark Lord
to ignore errors after spinup This patch is to ignore errors from the spinup attempt if the drive is in the standby id state. Signed-off-by: Ryan Power [EMAIL PROTECTED] Acked-by: Mark Lord [EMAIL PROTECTED] Cc: Jeff Garzik [EMAIL PROTECTED] Cc: Tejun Heo [EMAIL PROTECTED] Signed-off-by: Andrew

Re: Disk spin down issue on shut down/suspend to disk

2007-08-08 Thread Mark Lord
Mark Lord wrote: Tejun Heo wrote: Mark Lord wrote: .. FWIW, Tejun, with 2.6.22, my new Seagate 160GB SATA drive (notebook) increments the Power-Off_Retract_Count on each suspend-to-RAM operation. It does not do any double spin-up/spin-down things though. Hmmm.. It shouldn't. libata now

Re: Disk spin down issue on shut down/suspend to disk

2007-08-08 Thread Mark Lord
Mark Lord wrote: My suspend script now has this little chunk of code at the point where it actually does the suspend-to-RAM: sync; sync hdparm -F /dev/sda ## flush drive write cache sleep 1 ## allow time for the flush to complete echo mem /sys/power/state

Re: Disk spin down issue on shut down/suspend to disk

2007-08-08 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: Further to this, if I have an active-writer running at the time of suspend, then even my scripted sleep 1 is not good enough, as additional writes are still happening before/after the flush. Now I'll reboot and try it with the sleep 1 hardcoded inside

Re: ICH8 CF timeout (regression)...

2007-08-02 Thread Mark Lord
Daniel J Blueman wrote: On 02/08/07, Tejun Heo <[EMAIL PROTECTED]> wrote: Daniel J Blueman wrote: I'll grab kernel logs from the legacy ATA boot; what else can help debug this issue? No problem testing patches too. Yeap, please post the old log. Not much actually - perhaps I need to enable

Re: serial flow control appears broken

2007-08-02 Thread Mark Lord
Robert Hancock wrote: Mark Lord wrote: I don't believe the speed of the machine has much to do with it, as IDE PIO is always at pretty much the same speed (or slower) regardless of the CPU speed. Best case is about .120 usec per 16-bit word, but that doesn't often pan out in practice. More

Re: IRQF_DISABLED problem

2007-08-02 Thread Mark Lord
Robert Hancock wrote: David Miller wrote: From: Arjan van de Ven <[EMAIL PROTECTED]> Date: Fri, 27 Jul 2007 13:11:56 -0700 On Thu, 2007-07-26 at 16:17 -0700, Linus Torvalds wrote: On Thu, 26 Jul 2007, Linus Torvalds wrote: (c) "one IRQF_DISABLED means that everything runs disabled". This

Re: serial flow control appears broken

2007-08-02 Thread Mark Lord
Maciej W. Rozycki wrote: On Sat, 28 Jul 2007, Russell King wrote: Essentially, any complex interrupt handler (such as an IDE interrupt doing a multi-sector PIO transfer _in interrupt context_) can cause this kind of starvation. That's why Linux 1.x had bottom halves - so that the time

Re: [PATCH] sata_qstor, pdc_adma, sata_sx4: convert to new EH

2007-08-02 Thread Mark Lord
Jeff Garzik wrote: This is just a refresh of the existing libata-dev.git#new-eh patches that convert all remaining old-EH drivers to new EH, against 2.6.23-rc1. All three conversions are completely untested. pdc_adma and sata_qstor need reviewing by someone with docs, in addition to testing.

Re: [PATCH] sata_qstor, pdc_adma, sata_sx4: convert to new EH

2007-08-02 Thread Mark Lord
Jeff Garzik wrote: This is just a refresh of the existing libata-dev.git#new-eh patches that convert all remaining old-EH drivers to new EH, against 2.6.23-rc1. All three conversions are completely untested. pdc_adma and sata_qstor need reviewing by someone with docs, in addition to testing.

Re: serial flow control appears broken

2007-08-02 Thread Mark Lord
Maciej W. Rozycki wrote: On Sat, 28 Jul 2007, Russell King wrote: Essentially, any complex interrupt handler (such as an IDE interrupt doing a multi-sector PIO transfer _in interrupt context_) can cause this kind of starvation. That's why Linux 1.x had bottom halves - so that the time

Re: IRQF_DISABLED problem

2007-08-02 Thread Mark Lord
Robert Hancock wrote: David Miller wrote: From: Arjan van de Ven [EMAIL PROTECTED] Date: Fri, 27 Jul 2007 13:11:56 -0700 On Thu, 2007-07-26 at 16:17 -0700, Linus Torvalds wrote: On Thu, 26 Jul 2007, Linus Torvalds wrote: (c) one IRQF_DISABLED means that everything runs disabled. This is

Re: serial flow control appears broken

2007-08-02 Thread Mark Lord
Robert Hancock wrote: Mark Lord wrote: I don't believe the speed of the machine has much to do with it, as IDE PIO is always at pretty much the same speed (or slower) regardless of the CPU speed. Best case is about .120 usec per 16-bit word, but that doesn't often pan out in practice. More

Re: ICH8 CF timeout (regression)...

2007-08-02 Thread Mark Lord
Daniel J Blueman wrote: On 02/08/07, Tejun Heo [EMAIL PROTECTED] wrote: Daniel J Blueman wrote: I'll grab kernel logs from the legacy ATA boot; what else can help debug this issue? No problem testing patches too. Yeap, please post the old log. Not much actually - perhaps I need to enable

Re: [PATCH 2.6.22.1] libata: Adjust libata to ignore errors after spinup

2007-07-16 Thread Mark Lord
Mark Lord wrote: Ryan Power wrote: From: Ryan Power <[EMAIL PROTECTED]> Adjust libata to ignore errors after spinup This patch is to ignore errors from the spinup attempt if the drive is in the "standby id" state. Jeff / Tejun: here is Ryan's patch for his WD drive

Re: [PATCH 2.6.22.1] libata: Adjust libata to ignore errors after spinup

2007-07-16 Thread Mark Lord
Mark Lord wrote: Ryan Power wrote: From: Ryan Power <[EMAIL PROTECTED]> Adjust libata to ignore errors after spinup This patch is to ignore errors from the spinup attempt if the drive is in the "standby id" state. Jeff / Tejun: here is Ryan's patch for his WD drive

Re: [PATCH 2.6.22.1] libata: Adjust libata to ignore errors after spinup

2007-07-16 Thread Mark Lord
s. This copy has the pathnames and whitespace repaired. Signed-off-by: Ryan Power <[EMAIL PROTECTED]> Signed-off-by: Mark Lord <[EMAIL PROTECTED]> --- Index: linux/drivers/ata/libata-core.c --- old/drivers/ata/libata-core.c 2007-07-10 12:56:30.0 -0600 +++ linux/drivers/ata/libata-c

Re: [PATCH 2.6.22.1] libata: Adjust libata to ignore errors after spinup

2007-07-16 Thread Mark Lord
and whitespace repaired. Signed-off-by: Ryan Power [EMAIL PROTECTED] Signed-off-by: Mark Lord [EMAIL PROTECTED] --- Index: linux/drivers/ata/libata-core.c --- old/drivers/ata/libata-core.c 2007-07-10 12:56:30.0 -0600 +++ linux/drivers/ata/libata-core.c 2007-07-15 01:58:49.0

Re: [PATCH 2.6.22.1] libata: Adjust libata to ignore errors after spinup

2007-07-16 Thread Mark Lord
Mark Lord wrote: Ryan Power wrote: From: Ryan Power [EMAIL PROTECTED] Adjust libata to ignore errors after spinup This patch is to ignore errors from the spinup attempt if the drive is in the standby id state. Jeff / Tejun: here is Ryan's patch for his WD drive spinup problems. This copy

Re: [PATCH 2.6.22.1] libata: Adjust libata to ignore errors after spinup

2007-07-16 Thread Mark Lord
Mark Lord wrote: Ryan Power wrote: From: Ryan Power [EMAIL PROTECTED] Adjust libata to ignore errors after spinup This patch is to ignore errors from the spinup attempt if the drive is in the standby id state. Jeff / Tejun: here is Ryan's patch for his WD drive spinup problems. This copy

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Mark Lord wrote: Sergei Shtylyov wrote: Mark Lord wrote: .. When a drive is in standby, we don't send it anything special to wake up. Wait, aren't we sending IDLE on resume step 2 -- looking at ide-io.cide_start_power_step()? Sure, for RESUME. But now for a drive that just happens

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Sergei Shtylyov wrote: Mark Lord wrote: .. I would guess simply because DMA has to transfer up to 256 sectors of data, possibly with sector reallocations, in addition to waiting for the drive to spin up. Other commands don't. What?! PIO commands don't have to do this as well

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Sergei Shtylyov wrote: Mark Lord wrote: .. When a drive is in standby, we don't send it anything special to wake up. Wait, aren't we sending IDLE on resume step 2 -- looking at ide-io.cide_start_power_step()? Sure, for RESUME. But now for a drive that just happens to have put itself

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Sergei Shtylyov wrote: Mark Lord wrote: The original question concerned specifically the DMA command timeout which is twice more than the usual one, WAIT_CMD (10 seconds). .. When a drive is in standby, we don't send it anything special to wake up. So even DMA commands have to have a long

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Sergei Shtylyov wrote: Mark Lord wrote: O> >>BTW, why the timeout is so damn long? 2*WAIT_CMD is 20 secs, and if DMA is not complete or interrupt pending, it may wait 10 more secs... .. I've lost the original question from this thread, but the idea of the The original

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Alan Cox wrote: O> >>BTW, why the timeout is so damn long? 2*WAIT_CMD is 20 secs, and if DMA is not complete or interrupt pending, it may wait 10 more secs... I really don't remember... :) Maybe Mark or Alan could help with figuring this out. They also have probably forgotten. :-)

Re: [realtime-preempt] [x86_64] HR_TIMER and/or DYNTICKS cause an early boot freeze

2007-07-13 Thread Mark Lord
: Original Message Subject: [BUG] 2.6.21: Kernel won't boot with either/both of CONFIG_NO_HZ, CONFIG_HIGH_RES_TIMERS Date: Mon, 30 Apr 2007 16:17:00 -0400 From: Mark Lord <[EMAIL PROTECTED]> To: Linux Kernel , [EMAIL PROTECTED] CC: Linus Torvalds <[EMAIL PROTECTED]>

Re: howto create partitions bigger than 2TB

2007-07-13 Thread Mark Lord
Ingo Freund wrote: Hi I've got a RAID5 (driver aacraid for an ICP9047MA) with four 750GB hdds which provides a 2.25TB sized device. None of the until now used tools will work with that device. fdisk complains about missing cylinder count. cfdisk misses the device size. parted shows the right

Re: howto create partitions bigger than 2TB

2007-07-13 Thread Mark Lord
Ingo Freund wrote: Hi I've got a RAID5 (driver aacraid for an ICP9047MA) with four 750GB hdds which provides a 2.25TB sized device. None of the until now used tools will work with that device. fdisk complains about missing cylinder count. cfdisk misses the device size. parted shows the right

Re: [realtime-preempt] [x86_64] HR_TIMER and/or DYNTICKS cause an early boot freeze

2007-07-13 Thread Mark Lord
: Original Message Subject: [BUG] 2.6.21: Kernel won't boot with either/both of CONFIG_NO_HZ, CONFIG_HIGH_RES_TIMERS Date: Mon, 30 Apr 2007 16:17:00 -0400 From: Mark Lord [EMAIL PROTECTED] To: Linux Kernel linux-kernel@vger.kernel.org, [EMAIL PROTECTED] CC: Linus Torvalds [EMAIL

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Alan Cox wrote: O BTW, why the timeout is so damn long? 2*WAIT_CMD is 20 secs, and if DMA is not complete or interrupt pending, it may wait 10 more secs... I really don't remember... :) Maybe Mark or Alan could help with figuring this out. They also have probably forgotten. :-)

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Sergei Shtylyov wrote: Mark Lord wrote: O BTW, why the timeout is so damn long? 2*WAIT_CMD is 20 secs, and if DMA is not complete or interrupt pending, it may wait 10 more secs... .. I've lost the original question from this thread, but the idea of the The original question

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Sergei Shtylyov wrote: Mark Lord wrote: The original question concerned specifically the DMA command timeout which is twice more than the usual one, WAIT_CMD (10 seconds). .. When a drive is in standby, we don't send it anything special to wake up. So even DMA commands have to have a long

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Sergei Shtylyov wrote: Mark Lord wrote: .. When a drive is in standby, we don't send it anything special to wake up. Wait, aren't we sending IDLE on resume step 2 -- looking at ide-io.cide_start_power_step()? Sure, for RESUME. But now for a drive that just happens to have put itself

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Sergei Shtylyov wrote: Mark Lord wrote: .. I would guess simply because DMA has to transfer up to 256 sectors of data, possibly with sector reallocations, in addition to waiting for the drive to spin up. Other commands don't. What?! PIO commands don't have to do this as well? :-) Other

Re: [PATCH 1/3] Make the IDE DMA timeout modifiable

2007-07-13 Thread Mark Lord
Mark Lord wrote: Sergei Shtylyov wrote: Mark Lord wrote: .. When a drive is in standby, we don't send it anything special to wake up. Wait, aren't we sending IDLE on resume step 2 -- looking at ide-io.cide_start_power_step()? Sure, for RESUME. But now for a drive that just happens

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-12 Thread Mark Lord
Jeremy Maitin-Shepard wrote: A typical usage pattern of hibernate on a laptop is to shut the lid, causing the system to start to hibernate, and to place the machine in All laptops we have here, and those of all people I have seen with laptops, do suspend-to-RAM on lid-close, not hibernate.

Re: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-12 Thread Mark Lord
Mark Lord wrote: Rafael J. Wysocki wrote: .. How much RAM is there in your machine? 2GB, but It doesn't need to dump that much for good performance. Hibernate here consists of: echo "$(( 256 * 1024 * 1024 ))" > /sys/power/image_size echo -n disk > /sys/power/stat

<    5   6   7   8   9   10   11   12   13   14   >