Re: [Pcihpd-discuss] [PATCH 1/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-17 Thread Mark Lord
Matthew Wilcox wrote: On Tue, Oct 16, 2007 at 09:54:08PM -0400, Mark Lord wrote: - t_slot-hpc_ops-get_adapter_status(t_slot, value); /* Check if slot is occupied */ + /* Check if slot is occupied */ + t_slot-hpc_ops-get_adapter_status(t_slot, value); if ((POWER_CTRL

Re: [Pcihpd-discuss] [PATCH 1/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-17 Thread Mark Lord
Matthew Wilcox wrote: On Wed, Oct 17, 2007 at 09:09:24AM -0400, Mark Lord wrote: .. - temp_word = (temp_word ~intr_enable) | intr_enable; + temp_word = (temp_word ~intr_enable) | intr_enable; *boggle* Dig out your text editor, and notice the excess whitespace at the end of the line

Anyone else out there have an ExpressCard to try?

2007-10-17 Thread Mark Lord
I have a Dell Inspiron 9400 with an external ExpressCard slot. I've also got a Bytecc 2-port eSATA ExpressCard-34 that identifies as: Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller (rev 01) To get it to work with Linux on my Dell notebook, the pcihp_force=1 parameter is necessary

[PATCH 4/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-16 Thread Mark Lord
Make use of the previously split out pcie_init_enable_events() function to reinitialize the hotplug hardware on resume from suspend, but only when pciehp_force==1. Otherwise behaviour is unmodified. Signed-off-by: Mark Lord <[EMAIL PROTECTED]> --- --- old/drivers/pci/hotplug/pciehp_

[PATCH 2/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-16 Thread Mark Lord
Fix pciehp_probe() to deal with pre-inserted ExpressCard cards, but only when pciehp_force==1. Otherwise behaviour is unmodified. Signed-off-by: Mark Lord <[EMAIL PROTECTED]> --- --- old/drivers/pci/hotplug/pciehp_ctrl.c 2007-10-16 21:14:44.0 -0400 +++ linux/drivers/pci/h

[PATCH 3/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-16 Thread Mark Lord
Split out the hotplug hardware initialization code from pcie_init() into pcie_init_enable_events(), without changing any functionality. Signed-off-by: Mark Lord <[EMAIL PROTECTED]> --- --- old/drivers/pci/hotplug/pciehp_hpc.c2007-10-16 21:14:44.0 -0400 +++ linux/drive

[PATCH 1/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-16 Thread Mark Lord
Whitespace and other cosmetic fixes so that checkpatch.pl is happy with the remainder of patches in this series. Signed-off-by: Mark Lord <[EMAIL PROTECTED]> --- --- old/drivers/pci/hotplug/pciehp_core.c 2007-10-12 12:43:44.0 -0400 +++ linux/drivers/pci/hotplug/pciehp_

[PATCH 0/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-16 Thread Mark Lord
/pciehp_ctrl.c |2 drivers/pci/hotplug/pciehp_hpc.c | 194 4 files changed, 134 insertions(+), 86 deletions(-) Cheers -- Mark Lord <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL

Re: [PATCH] Fix PCIe hotplug for Dell notebook ExpressCard slots

2007-10-16 Thread Mark Lord
Greg KH wrote: On Tue, Oct 16, 2007 at 05:57:03PM -0400, Mark Lord wrote: Fix PCIe Hotplug so that it works with ExpressCard slots on Dell notebooks in conjunction with modparam of pciehp_force=1. The PCIe Hotplug driver has two shortcomings when used on Dell notebooks which lack ACPI BIOS

Re: [PATCH] Fix PCIe hotplug for Dell notebook ExpressCard slots

2007-10-16 Thread Mark Lord
Kristen Carlson Accardi wrote: On Tue, 16 Oct 2007 17:57:03 -0400 Mark Lord <[EMAIL PROTECTED]> wrote: Fix PCIe Hotplug so that it works with ExpressCard slots on Dell notebooks in conjunction with modparam of pciehp_force=1. Please resubmit, breaking this patch into 3 separate pat

Re: Regression: 2.6.23-rc9 okay, 2.6.23.1 resume problems

2007-10-16 Thread Mark Lord
Mark Lord wrote: Rafael J. Wysocki wrote: On Sunday, 14 October 2007 22:13, Mark Lord wrote: Since upgrading to 2.6.23.1 from 2.6.23-rc9, resume-from-RAM has been misbehaving here. It takes much (+5-7 seconds) longer to resume *sometimes*, but not all/most of the time. And sometimes I get

[PATCH] Fix PCIe hotplug for Dell notebook ExpressCard slots

2007-10-16 Thread Mark Lord
pciehp_core.c | 31 ++-- pciehp_ctrl.c |4 - pciehp_hpc.c | 207 +- 4 files changed, 144 insertions(+), 101 deletions(-) Signed-off-by: Mark Lord <[EMAIL PROTECTED]> --- --- old/drivers/pci/hotplug/pciehp.h2007-10-12

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Kristen Carlson Accardi wrote: On Tue, 16 Oct 2007 14:39:33 -0400 Mark Lord <[EMAIL PROTECTED]> wrote: Another thing: if a card is already in the slot before pciehp is loaded (under any circumstances), then pciehp does *not* see the card until I unplug/replug it. You mean that the ex

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Kristen Carlson Accardi wrote: ... I tried to reproduce this on a Lenovo T61, which does have proper firmware support for _OSC, and also has been validated, and the driver which is in 2.6.23-git8 seems to work fine, even across suspend resume. I suspect that your system just doesn't support

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Mark Lord wrote: Mark Lord wrote: Kristen Carlson Accardi wrote: On Tue, 16 Oct 2007 14:39:33 -0400 Mark Lord <[EMAIL PROTECTED]> wrote: I also checked my modprobe.d/ options, and I am using pciehp_force=1. Without that flag, none of this ever works. OK - I suspected somethin

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Mark Lord wrote: Kristen Carlson Accardi wrote: On Tue, 16 Oct 2007 14:39:33 -0400 Mark Lord <[EMAIL PROTECTED]> wrote: I also checked my modprobe.d/ options, and I am using pciehp_force=1. Without that flag, none of this ever works. OK - I suspected something like this. Mos

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Kristen Carlson Accardi wrote: On Tue, 16 Oct 2007 14:39:33 -0400 Mark Lord <[EMAIL PROTECTED]> wrote: I also checked my modprobe.d/ options, and I am using pciehp_force=1. Without that flag, none of this ever works. OK - I suspected something like this. Most Dell computers don't s

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Mark Lord wrote: I have a Dell notebook with an PCIe ExpressCard slot. I also have a PCIe ExpressCard SATA controller (uses sata_sil24 driver). I would like to be able to hot plug/unplug the controller card at will. But alas, Linux doesn't cope with it *unless* I boot the kernel with the card

PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
I have a Dell notebook with an PCIe ExpressCard slot. I also have a PCIe ExpressCard SATA controller (uses sata_sil24 driver). I would like to be able to hot plug/unplug the controller card at will. But alas, Linux doesn't cope with it *unless* I boot the kernel with the card initially inserted.

PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
I have a Dell notebook with an PCIe ExpressCard slot. I also have a PCIe ExpressCard SATA controller (uses sata_sil24 driver). I would like to be able to hot plug/unplug the controller card at will. But alas, Linux doesn't cope with it *unless* I boot the kernel with the card initially inserted.

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Mark Lord wrote: I have a Dell notebook with an PCIe ExpressCard slot. I also have a PCIe ExpressCard SATA controller (uses sata_sil24 driver). I would like to be able to hot plug/unplug the controller card at will. But alas, Linux doesn't cope with it *unless* I boot the kernel with the card

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Kristen Carlson Accardi wrote: On Tue, 16 Oct 2007 14:39:33 -0400 Mark Lord [EMAIL PROTECTED] wrote: I also checked my modprobe.d/ options, and I am using pciehp_force=1. Without that flag, none of this ever works. OK - I suspected something like this. Most Dell computers don't support

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Mark Lord wrote: Kristen Carlson Accardi wrote: On Tue, 16 Oct 2007 14:39:33 -0400 Mark Lord [EMAIL PROTECTED] wrote: I also checked my modprobe.d/ options, and I am using pciehp_force=1. Without that flag, none of this ever works. OK - I suspected something like this. Most Dell computers

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Mark Lord wrote: Mark Lord wrote: Kristen Carlson Accardi wrote: On Tue, 16 Oct 2007 14:39:33 -0400 Mark Lord [EMAIL PROTECTED] wrote: I also checked my modprobe.d/ options, and I am using pciehp_force=1. Without that flag, none of this ever works. OK - I suspected something like

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Kristen Carlson Accardi wrote: ... I tried to reproduce this on a Lenovo T61, which does have proper firmware support for _OSC, and also has been validated, and the driver which is in 2.6.23-git8 seems to work fine, even across suspend resume. I suspect that your system just doesn't support

Re: PCIe Hotplug: NFG unless I boot with card already inserted.

2007-10-16 Thread Mark Lord
Kristen Carlson Accardi wrote: On Tue, 16 Oct 2007 14:39:33 -0400 Mark Lord [EMAIL PROTECTED] wrote: Another thing: if a card is already in the slot before pciehp is loaded (under any circumstances), then pciehp does *not* see the card until I unplug/replug it. You mean that the existing

[PATCH] Fix PCIe hotplug for Dell notebook ExpressCard slots

2007-10-16 Thread Mark Lord
pciehp_core.c | 31 ++-- pciehp_ctrl.c |4 - pciehp_hpc.c | 207 +- 4 files changed, 144 insertions(+), 101 deletions(-) Signed-off-by: Mark Lord [EMAIL PROTECTED] --- --- old/drivers/pci/hotplug/pciehp.h2007-10-12 12:43:44.0

Re: Regression: 2.6.23-rc9 okay, 2.6.23.1 resume problems

2007-10-16 Thread Mark Lord
Mark Lord wrote: Rafael J. Wysocki wrote: On Sunday, 14 October 2007 22:13, Mark Lord wrote: Since upgrading to 2.6.23.1 from 2.6.23-rc9, resume-from-RAM has been misbehaving here. It takes much (+5-7 seconds) longer to resume *sometimes*, but not all/most of the time. And sometimes I get

Re: [PATCH] Fix PCIe hotplug for Dell notebook ExpressCard slots

2007-10-16 Thread Mark Lord
Kristen Carlson Accardi wrote: On Tue, 16 Oct 2007 17:57:03 -0400 Mark Lord [EMAIL PROTECTED] wrote: Fix PCIe Hotplug so that it works with ExpressCard slots on Dell notebooks in conjunction with modparam of pciehp_force=1. Please resubmit, breaking this patch into 3 separate patches 1

Re: [PATCH] Fix PCIe hotplug for Dell notebook ExpressCard slots

2007-10-16 Thread Mark Lord
Greg KH wrote: On Tue, Oct 16, 2007 at 05:57:03PM -0400, Mark Lord wrote: Fix PCIe Hotplug so that it works with ExpressCard slots on Dell notebooks in conjunction with modparam of pciehp_force=1. The PCIe Hotplug driver has two shortcomings when used on Dell notebooks which lack ACPI BIOS

[PATCH 0/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-16 Thread Mark Lord
/pciehp_ctrl.c |2 drivers/pci/hotplug/pciehp_hpc.c | 194 4 files changed, 134 insertions(+), 86 deletions(-) Cheers -- Mark Lord [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

[PATCH 1/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-16 Thread Mark Lord
Whitespace and other cosmetic fixes so that checkpatch.pl is happy with the remainder of patches in this series. Signed-off-by: Mark Lord [EMAIL PROTECTED] --- --- old/drivers/pci/hotplug/pciehp_core.c 2007-10-12 12:43:44.0 -0400 +++ linux/drivers/pci/hotplug/pciehp_core.c

[PATCH 2/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-16 Thread Mark Lord
Fix pciehp_probe() to deal with pre-inserted ExpressCard cards, but only when pciehp_force==1. Otherwise behaviour is unmodified. Signed-off-by: Mark Lord [EMAIL PROTECTED] --- --- old/drivers/pci/hotplug/pciehp_ctrl.c 2007-10-16 21:14:44.0 -0400 +++ linux/drivers/pci/hotplug

[PATCH 3/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-16 Thread Mark Lord
Split out the hotplug hardware initialization code from pcie_init() into pcie_init_enable_events(), without changing any functionality. Signed-off-by: Mark Lord [EMAIL PROTECTED] --- --- old/drivers/pci/hotplug/pciehp_hpc.c2007-10-16 21:14:44.0 -0400 +++ linux/drivers/pci

[PATCH 4/4] Fix PCIe hotplug for non-ACPI ExpressCard slots (version 2)

2007-10-16 Thread Mark Lord
Make use of the previously split out pcie_init_enable_events() function to reinitialize the hotplug hardware on resume from suspend, but only when pciehp_force==1. Otherwise behaviour is unmodified. Signed-off-by: Mark Lord [EMAIL PROTECTED] --- --- old/drivers/pci/hotplug/pciehp_ctrl.c

Re: hdparm standby timeout not working for WD raptors?

2007-10-14 Thread Mark Lord
1. How are you forcing the drives into standby? 2. Have you reproduced this with a stock kernel.org kernel yet? One possibility is that these drives may be the kind that generate a "spurious" interrupt when they spin-down via the timer, and perhaps libata is "processing" that interrupt and

Re: Regression: 2.6.23-rc9 okay, 2.6.23.1 resume problems

2007-10-14 Thread Mark Lord
Rafael J. Wysocki wrote: On Sunday, 14 October 2007 22:13, Mark Lord wrote: Since upgrading to 2.6.23.1 from 2.6.23-rc9, resume-from-RAM has been misbehaving here. It takes much (+5-7 seconds) longer to resume *sometimes*, but not all/most of the time. And sometimes I get get flashing

Regression: 2.6.23-rc9 okay, 2.6.23.1 resume problems

2007-10-14 Thread Mark Lord
Since upgrading to 2.6.23.1 from 2.6.23-rc9, resume-from-RAM has been misbehaving here. It takes much (+5-7 seconds) longer to resume *sometimes*, but not all/most of the time. And sometimes I get get flashing keyboard LEDs and have to hold the power button in for a full hard reset. With

Re: wierd file perms

2007-10-14 Thread Mark Lord
Jan Engelhardt wrote: On Oct 14 2007 09:27, Mark Lord wrote: Jan-Benedict Glaw wrote: On Sat, 2007-10-13 22:40:23 +0530, vignesh babu <[EMAIL PROTECTED]> wrote: I was surprised and did an ls -l on the files and guess what I found: total 0 ?- ? ? ? ?? f

Re: wierd file perms

2007-10-14 Thread Mark Lord
vignesh babu wrote: .. ?- ? ? ? ?? fcntl.c ?- ? ? ? ?? fifo.c ?- ? ? ? ?? filesystems.c ?- ? ? ? ?? file_table.c ?- ? ? ? ?? freevxfs So end result is that, Im not able to

Re: wierd file perms

2007-10-14 Thread Mark Lord
Jan-Benedict Glaw wrote: On Sat, 2007-10-13 22:40:23 +0530, vignesh babu <[EMAIL PROTECTED]> wrote: I was surprised and did an ls -l on the files and guess what I found: total 0 ?- ? ? ? ?? fcntl.c ?- ? ? ? ?? fifo.c ?- ? ? ? ?

Re: wierd file perms

2007-10-14 Thread Mark Lord
Jan-Benedict Glaw wrote: On Sat, 2007-10-13 22:40:23 +0530, vignesh babu [EMAIL PROTECTED] wrote: I was surprised and did an ls -l on the files and guess what I found: total 0 ?- ? ? ? ?? fcntl.c ?- ? ? ? ?? fifo.c ?- ? ? ? ?

Re: wierd file perms

2007-10-14 Thread Mark Lord
vignesh babu wrote: .. ?- ? ? ? ?? fcntl.c ?- ? ? ? ?? fifo.c ?- ? ? ? ?? filesystems.c ?- ? ? ? ?? file_table.c ?- ? ? ? ?? freevxfs So end result is that, Im not able to

Re: wierd file perms

2007-10-14 Thread Mark Lord
Jan Engelhardt wrote: On Oct 14 2007 09:27, Mark Lord wrote: Jan-Benedict Glaw wrote: On Sat, 2007-10-13 22:40:23 +0530, vignesh babu [EMAIL PROTECTED] wrote: I was surprised and did an ls -l on the files and guess what I found: total 0 ?- ? ? ? ?? fcntl.c

Regression: 2.6.23-rc9 okay, 2.6.23.1 resume problems

2007-10-14 Thread Mark Lord
Since upgrading to 2.6.23.1 from 2.6.23-rc9, resume-from-RAM has been misbehaving here. It takes much (+5-7 seconds) longer to resume *sometimes*, but not all/most of the time. And sometimes I get get flashing keyboard LEDs and have to hold the power button in for a full hard reset. With

Re: Regression: 2.6.23-rc9 okay, 2.6.23.1 resume problems

2007-10-14 Thread Mark Lord
Rafael J. Wysocki wrote: On Sunday, 14 October 2007 22:13, Mark Lord wrote: Since upgrading to 2.6.23.1 from 2.6.23-rc9, resume-from-RAM has been misbehaving here. It takes much (+5-7 seconds) longer to resume *sometimes*, but not all/most of the time. And sometimes I get get flashing

Re: hdparm standby timeout not working for WD raptors?

2007-10-14 Thread Mark Lord
1. How are you forcing the drives into standby? 2. Have you reproduced this with a stock kernel.org kernel yet? One possibility is that these drives may be the kind that generate a spurious interrupt when they spin-down via the timer, and perhaps libata is processing that interrupt and sending

Re: hdparm standby timeout not working for WD raptors?

2007-10-13 Thread Mark Lord
Mark Weber wrote: Anything else you'd like me to try? Yes: a stock kernel, please. Preferably 2.6.23. Thanks. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: hdparm standby timeout not working for WD raptors?

2007-10-13 Thread Mark Lord
Mark Weber wrote: Anything else you'd like me to try? Yes: a stock kernel, please. Preferably 2.6.23. Thanks. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: hdparm standby timeout not working for WD raptors?

2007-10-12 Thread Mark Lord
Mark Weber wrote: # hdparm -S1 -C /dev/sda; sleep 6; hdparm -C /dev/sda /dev/sda: setting standby to 1 (5 seconds) drive state is: active/idle /dev/sda: drive state is: active/idle That's interesting. So, either something is regularly accessing/polling the drive, or it just doesn't

Re: hdparm standby timeout not working for WD raptors?

2007-10-12 Thread Mark Lord
Mark Weber wrote: # hdparm -S1 -C /dev/sda; sleep 6; hdparm -C /dev/sda /dev/sda: setting standby to 1 (5 seconds) drive state is: active/idle /dev/sda: drive state is: active/idle That's interesting. So, either something is regularly accessing/polling the drive, or it just doesn't

Re: hdparm standby timeout not working for WD raptors?

2007-10-11 Thread Mark Lord
Mark Weber wrote: I can't get "hdparm -S" to work at all. Using "hdparm -S 1" should set the timeout to 5 seconds, but the drives stay active/idle all the time. When I set to standby manually, the drives stay on standby for days, and start up fine when they are used. I know this because I

Re: hdparm standby timeout not working for WD raptors?

2007-10-11 Thread Mark Lord
Mark Weber wrote: I can't get hdparm -S to work at all. Using hdparm -S 1 should set the timeout to 5 seconds, but the drives stay active/idle all the time. When I set to standby manually, the drives stay on standby for days, and start up fine when they are used. I know this because I logged

Re: [patch 4/6] Fix SMP poweroff hangs

2007-10-05 Thread Mark Lord
Eric W. Biederman wrote: Mark Lord <[EMAIL PROTECTED]> writes: Comments? Eric? Sorry -EBUSY. The trylock on call_lock is a recent thing (.22), added to keep panic from hanging. It probably makes more sense to move bust_spinlocks(0) down a few lines in kernel/panic.c and t

Re: [patch 4/6] Fix SMP poweroff hangs

2007-10-05 Thread Mark Lord
(reposting this.. somehow left LKML off the TO/CC list) Mark Lord wrote: Eric W. Biederman wrote: Mark Lord <[EMAIL PROTECTED]> writes: .. The code path on i386 should be: machine_power_off native_machine_power_off machine_shutdown(); (which disables the othe

Re: [patch 4/6] Fix SMP poweroff hangs

2007-10-05 Thread Mark Lord
Reposting this.. somehow left LKML off the TO/CC list.. (thanks Andrew!) Eric W. Biederman wrote: Mark Lord <[EMAIL PROTECTED]> writes: Eric W. Biederman wrote: Mark Lord <[EMAIL PROTECTED]> writes: - It could be that we changed the initialization order. - It could be tha

Re: [patch 4/6] Fix SMP poweroff hangs

2007-10-05 Thread Mark Lord
Reposting this.. somehow left LKML off the TO/CC list.. (thanks Andrew!) Eric W. Biederman wrote: Mark Lord [EMAIL PROTECTED] writes: Eric W. Biederman wrote: Mark Lord [EMAIL PROTECTED] writes: - It could be that we changed the initialization order. - It could be that we changed the set

Re: [patch 4/6] Fix SMP poweroff hangs

2007-10-05 Thread Mark Lord
Eric W. Biederman wrote: Mark Lord [EMAIL PROTECTED] writes: Comments? Eric? Sorry -EBUSY. The trylock on call_lock is a recent thing (.22), added to keep panic from hanging. It probably makes more sense to move bust_spinlocks(0) down a few lines in kernel/panic.c and to test

Re: [patch 4/6] Fix SMP poweroff hangs

2007-10-05 Thread Mark Lord
(reposting this.. somehow left LKML off the TO/CC list) Mark Lord wrote: Eric W. Biederman wrote: Mark Lord [EMAIL PROTECTED] writes: .. The code path on i386 should be: machine_power_off native_machine_power_off machine_shutdown(); (which disables the other cpus

Re: PROBLEM: high load average when idle

2007-10-02 Thread Mark Lord
Arjan van de Ven wrote: On Tue, 02 Oct 2007 18:46:18 -0400 On a related note, {set/get}itimer() currently are buggy (since 2.6.11 or so), also due to this round_jiffies() thing I believe. I very much believe that it is totally unrelated... most of all since round_jiffies() wasn't in the

Re: PROBLEM: high load average when idle

2007-10-02 Thread Mark Lord
Linus Torvalds wrote: On Tue, 2 Oct 2007, Andrew Morton wrote: This is unexpected. High load average is due to either a task chewing a lot of CPU time or a task stuck in uninterruptible sleep. Not necessarily. We saw high loadaverages with the timer bogosity with "gettimeofday()" and

Re: One process with multiple user ids.

2007-10-02 Thread Mark Lord
Giuliano Gagliardi wrote: On Tuesday 02 October 2007, Jan Engelhardt wrote: On Oct 2 2007 12:56, Giuliano Gagliardi wrote: I have a server that has to switch to different user ids, but because it does other complex things, I would rather not have it run as root. I only need the server to be

Re: One process with multiple user ids.

2007-10-02 Thread Mark Lord
Giuliano Gagliardi wrote: On Tuesday 02 October 2007, Jan Engelhardt wrote: On Oct 2 2007 12:56, Giuliano Gagliardi wrote: I have a server that has to switch to different user ids, but because it does other complex things, I would rather not have it run as root. I only need the server to be

Re: PROBLEM: high load average when idle

2007-10-02 Thread Mark Lord
Linus Torvalds wrote: On Tue, 2 Oct 2007, Andrew Morton wrote: This is unexpected. High load average is due to either a task chewing a lot of CPU time or a task stuck in uninterruptible sleep. Not necessarily. We saw high loadaverages with the timer bogosity with gettimeofday() and

Re: PROBLEM: high load average when idle

2007-10-02 Thread Mark Lord
Arjan van de Ven wrote: On Tue, 02 Oct 2007 18:46:18 -0400 On a related note, {set/get}itimer() currently are buggy (since 2.6.11 or so), also due to this round_jiffies() thing I believe. I very much believe that it is totally unrelated... most of all since round_jiffies() wasn't in the

Re: 32-bit Athlon X2 won't poweroff

2007-10-01 Thread Mark Lord
Santiago Garcia Mantinan wrote: So for this to work, I believe that either ACPI or APM has to have been configured into the kernel (and the modules loaded). Your kernel .config from earlier shows ACPI built-in to the kernel core, so it should be present. Yes, and it is indeed, the acpid is

Re: [PATCH] [50/50] x86_64: Remove fpu io port resource

2007-10-01 Thread Mark Lord
Jeff Garzik wrote: Even in libata I have to listen to consensus, having just merged the port multiplier support. Jeff Thanks, Jeff! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: [PATCH] [50/50] x86_64: Remove fpu io port resource

2007-10-01 Thread Mark Lord
Jeff Garzik wrote: Even in libata I have to listen to consensus, having just merged the port multiplier support. Jeff Thanks, Jeff! - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: 32-bit Athlon X2 won't poweroff

2007-10-01 Thread Mark Lord
Santiago Garcia Mantinan wrote: So for this to work, I believe that either ACPI or APM has to have been configured into the kernel (and the modules loaded). Your kernel .config from earlier shows ACPI built-in to the kernel core, so it should be present. Yes, and it is indeed, the acpid is

Re: 32-bit Athlon X2 won't poweroff

2007-09-30 Thread Mark Lord
Mark Lord wrote: .. So next is inside the kernel itself, at linux/kernel/sys.c :: sys_reboot(), where we see this code: /* Instead of trying to make the power_off code look like * halt when pm_power_off is not set do it the easy way. */ if ((cmd

Re: 32-bit Athlon X2 won't poweroff (was: Fix SMP poweroff hangs)

2007-09-30 Thread Mark Lord
Santiago Garcia Mantinan wrote: I booted into single mode, then umounted all unneeded stuff and put / to ro, stopped all unused raids, ... then did... .. strace /bin/halt -f -p .. rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0

Re: [PATCH] blacklist NCQ on Seagate Barracuda ST380817AS

2007-09-30 Thread Mark Lord
Mark Lord wrote: Tejun Heo wrote: Mark Lord wrote: Tejun Heo wrote: Mark Lord wrote: If there was such a bug, the aborted commands list should contain both FPDMA commands and FLUSH commands. I don't think command filtering itself is broken. Possibly another quirky firmware but it's strange

Re: [PATCH] blacklist NCQ on Seagate Barracuda ST380817AS

2007-09-30 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: Tejun Heo wrote: Mark Lord wrote: If there was such a bug, the aborted commands list should contain both FPDMA commands and FLUSH commands. I don't think command filtering itself is broken. Possibly another quirky firmware but it's strange

Re: [PATCH] (repost) Fix SMP poweroff hangs

2007-09-30 Thread Mark Lord
Santiago Garcia Mantinan wrote: I'd say your problem is more of a distro issue, in that the method you are using to shutdown is not actually requesting "poweroff". That last mess above ("System halted.") comes from kernel_halt(), rather than the expected message ("Power down.") from

Re: [PATCH] blacklist NCQ on Seagate Barracuda ST380817AS

2007-09-30 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: Jeff Garzik wrote: Paolo Ornati wrote: I have this problem only with XFS, and even with XFS it goes away mounting with "nobarrier"... This last is an interesting datapoint. I wonder if libata has a generic problem with NCQ + FLUSH CACHE. Ye

Re: [PATCH] 0/3 coding standards documentation/code updates

2007-09-30 Thread Mark Lord
Erez Zadok wrote: In message <[EMAIL PROTECTED]>, Linus Torvalds writes: On Sat, 29 Sep 2007, Erez Zadok wrote: Would you prefer if CodingStyle was reorganized or even split into (1) general principles and (2) details? Perhaps we need a CodingStylePrinciples and a CodingStyleDetails? I'm

Re: [PATCH] blacklist NCQ on Seagate Barracuda ST380817AS

2007-09-30 Thread Mark Lord
Jeff Garzik wrote: Paolo Ornati wrote: On Sun, 30 Sep 2007 15:29:08 +0100 Alan Cox <[EMAIL PROTECTED]> wrote: Seagate Barracuda ST380817AS has troubles with NCQ. For example, unpacking a tarball on an XFS filesystem gives this: ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x2 frozen

Re: [PATCH] (repost) Fix SMP poweroff hangs

2007-09-30 Thread Mark Lord
Santiago Garcia Mantinan wrote: Doesn't fix for me! I have an Athlon x2 running on a Asus A8N-E mobo which has an NForce 4 chipset, I thought this patch would fix poweroff for me too, but it doesn't. I'm seing this on 2.6.23-rc8 with and without your patch, here is what I get on the console:

Re: [PATCH] (repost) Fix SMP poweroff hangs

2007-09-30 Thread Mark Lord
Santiago Garcia Mantinan wrote: Doesn't fix for me! I have an Athlon x2 running on a Asus A8N-E mobo which has an NForce 4 chipset, I thought this patch would fix poweroff for me too, but it doesn't. I'm seing this on 2.6.23-rc8 with and without your patch, here is what I get on the console:

Re: [PATCH] blacklist NCQ on Seagate Barracuda ST380817AS

2007-09-30 Thread Mark Lord
Jeff Garzik wrote: Paolo Ornati wrote: On Sun, 30 Sep 2007 15:29:08 +0100 Alan Cox [EMAIL PROTECTED] wrote: Seagate Barracuda ST380817AS has troubles with NCQ. For example, unpacking a tarball on an XFS filesystem gives this: ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x2 frozen

Re: [PATCH] 0/3 coding standards documentation/code updates

2007-09-30 Thread Mark Lord
Erez Zadok wrote: In message [EMAIL PROTECTED], Linus Torvalds writes: On Sat, 29 Sep 2007, Erez Zadok wrote: Would you prefer if CodingStyle was reorganized or even split into (1) general principles and (2) details? Perhaps we need a CodingStylePrinciples and a CodingStyleDetails? I'm

Re: [PATCH] blacklist NCQ on Seagate Barracuda ST380817AS

2007-09-30 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: Jeff Garzik wrote: Paolo Ornati wrote: I have this problem only with XFS, and even with XFS it goes away mounting with nobarrier... This last is an interesting datapoint. I wonder if libata has a generic problem with NCQ + FLUSH CACHE. Yeah, that's pretty

Re: [PATCH] (repost) Fix SMP poweroff hangs

2007-09-30 Thread Mark Lord
Santiago Garcia Mantinan wrote: I'd say your problem is more of a distro issue, in that the method you are using to shutdown is not actually requesting poweroff. That last mess above (System halted.) comes from kernel_halt(), rather than the expected message (Power down.) from

Re: [PATCH] blacklist NCQ on Seagate Barracuda ST380817AS

2007-09-30 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: Tejun Heo wrote: Mark Lord wrote: If there was such a bug, the aborted commands list should contain both FPDMA commands and FLUSH commands. I don't think command filtering itself is broken. Possibly another quirky firmware but it's strange

Re: [PATCH] blacklist NCQ on Seagate Barracuda ST380817AS

2007-09-30 Thread Mark Lord
Mark Lord wrote: Tejun Heo wrote: Mark Lord wrote: Tejun Heo wrote: Mark Lord wrote: If there was such a bug, the aborted commands list should contain both FPDMA commands and FLUSH commands. I don't think command filtering itself is broken. Possibly another quirky firmware but it's strange

Re: 32-bit Athlon X2 won't poweroff (was: Fix SMP poweroff hangs)

2007-09-30 Thread Mark Lord
Santiago Garcia Mantinan wrote: I booted into single mode, then umounted all unneeded stuff and put / to ro, stopped all unused raids, ... then did... .. strace /bin/halt -f -p .. rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0

Re: 32-bit Athlon X2 won't poweroff

2007-09-30 Thread Mark Lord
Mark Lord wrote: .. So next is inside the kernel itself, at linux/kernel/sys.c :: sys_reboot(), where we see this code: /* Instead of trying to make the power_off code look like * halt when pm_power_off is not set do it the easy way. */ if ((cmd

Re: regression in 2.6.23-rc8 - power off failed

2007-09-29 Thread Mark Lord
. Signed-off-by: Mark Lord <[EMAIL PROTECTED]> Acked-by: Thomas Gleixner <[EMAIL PROTECTED]> --- --- linux/kernel/sys.c.orig 2007-09-13 09:49:11.0 -0400 +++ linux/kernel/sys.c 2007-09-28 15:48:54.0 -0400 @@ -32,6 +32,7 @@ #include #include #include +#include #inclu

Re: [PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-29 Thread Mark Lord
Alan Cox wrote: Why 512 words ? Though I have queued Mark's patch to be applied, my gut feeling would lean towards a single DRQ block, rather than 512. Why not just work from the old IDE code. ata_altstatus(ap); - ata_chk_status(ap); + ata_drain_fifo(ap, qc);

Re: [PATCH] libata drain fifo on stuck DRQ HSM violation

2007-09-29 Thread Mark Lord
Alan Cox wrote: Why 512 words ? Though I have queued Mark's patch to be applied, my gut feeling would lean towards a single DRQ block, rather than 512. Why not just work from the old IDE code. ata_altstatus(ap); - ata_chk_status(ap); + ata_drain_fifo(ap, qc);

Re: regression in 2.6.23-rc8 - power off failed

2007-09-29 Thread Mark Lord
. Signed-off-by: Mark Lord [EMAIL PROTECTED] Acked-by: Thomas Gleixner [EMAIL PROTECTED] --- --- linux/kernel/sys.c.orig 2007-09-13 09:49:11.0 -0400 +++ linux/kernel/sys.c 2007-09-28 15:48:54.0 -0400 @@ -32,6 +32,7 @@ #include linux/getcpu.h #include linux/task_io_accounting_ops.h

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

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

[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]>

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 PROTEC

[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/

Re: Problems with SMP & ACPI powering off

2007-09-28 Thread Mark Lord
Rafael J. Wysocki wrote: On Friday, 28 September 2007 15:22, Mark Lord wrote: 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

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

2007-09-28 Thread Mark Lord
(again)? It seems we 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]>

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

Re: Problems with SMP ACPI powering off

2007-09-28 Thread Mark Lord
Rafael J. Wysocki wrote: On Friday, 28 September 2007 15:22, Mark Lord wrote: 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

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