Re: Custom PCIe Device Driver

2008-01-26 Thread Robert Hancock
comes from? or do I need to specify the BAR using a mask? Would some one be able to point me to an example code please? Thanks and Regards, Sanka Your question doesn't seem to make much sense. DMA transfers have nothing to do with BARs at all, they don't come from or to one. -- Robert

Re: Hot (un)plugging of a SATA drive with sata_nv (CK8S) ?

2008-01-25 Thread Robert Hancock
Ignacy Gawedzki wrote: Hi everyone, I'm having trouble to determine the cause of the following behavior. I'm not even sure that I'm supposed to hot plug and unplug a SATA drive from a nForce3 Ultra (apparently CK8S, on a Gigabyte K8NS Ultra 939 mobo) SATA interface, to begin with. The

Re: Hot (un)plugging of a SATA drive with sata_nv (CK8S) ?

2008-01-25 Thread Robert Hancock
Ignacy Gawedzki wrote: Hi everyone, I'm having trouble to determine the cause of the following behavior. I'm not even sure that I'm supposed to hot plug and unplug a SATA drive from a nForce3 Ultra (apparently CK8S, on a Gigabyte K8NS Ultra 939 mobo) SATA interface, to begin with. The

Re: sata_nv and 2.6.24 (was Re: fixed a bug of adma in rhel4u5 with HDS7250SASUN500G.)

2008-01-23 Thread Robert Hancock
Jeff Garzik wrote: Robert Hancock wrote: Jeff Garzik wrote: Ping... sata_nv status is still a bit open for 2.6.24, and I would like to move us forward a bit. * Kuan's patch... it has been confirmed (and is needed), correct? can someone work up a good patch for 2.6.24? The only one I

Re: fixed a bug of adma in rhel4u5 with HDS7250SASUN500G.

2008-01-23 Thread Robert Hancock
Kuan Luo wrote: First thank davide to help to send the attachment. Robert, The patch is to solve the error message "ata1: CPB flags CMD err, flags=0x11" when testing HDS7250SASUN500G in rhel4u5. I tested this hd in 2.6.24-rc7 which needed to remove the mask in blacklist to run the ncq and the

Re: sata_nv and 2.6.24 (was Re: fixed a bug of adma in rhel4u5 with HDS7250SASUN500G.)

2008-01-23 Thread Robert Hancock
Jeff Garzik wrote: Ping... sata_nv status is still a bit open for 2.6.24, and I would like to move us forward a bit. * Kuan's patch... it has been confirmed (and is needed), correct? can someone work up a good patch for 2.6.24? The only one I ever received was badly word-wrapped, and at

Re: sata_nv and 2.6.24 (was Re: fixed a bug of adma in rhel4u5 with HDS7250SASUN500G.)

2008-01-23 Thread Robert Hancock
Jeff Garzik wrote: Ping... sata_nv status is still a bit open for 2.6.24, and I would like to move us forward a bit. * Kuan's patch... it has been confirmed (and is needed), correct? can someone work up a good patch for 2.6.24? The only one I ever received was badly word-wrapped, and at

Re: fixed a bug of adma in rhel4u5 with HDS7250SASUN500G.

2008-01-23 Thread Robert Hancock
Kuan Luo wrote: First thank davide to help to send the attachment. Robert, The patch is to solve the error message ata1: CPB flags CMD err, flags=0x11 when testing HDS7250SASUN500G in rhel4u5. I tested this hd in 2.6.24-rc7 which needed to remove the mask in blacklist to run the ncq and the

Re: sata_nv and 2.6.24 (was Re: fixed a bug of adma in rhel4u5 with HDS7250SASUN500G.)

2008-01-23 Thread Robert Hancock
Jeff Garzik wrote: Robert Hancock wrote: Jeff Garzik wrote: Ping... sata_nv status is still a bit open for 2.6.24, and I would like to move us forward a bit. * Kuan's patch... it has been confirmed (and is needed), correct? can someone work up a good patch for 2.6.24? The only one I

Re: PROBLEM: Celeron Core

2008-01-21 Thread Robert Hancock
duty cycle. If the CPU is already idle this has no effect and won't save any power. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line "unsubscri

Re: [HELP]Problem with exit(0) and _exit(0) on RHEL x86

2008-01-21 Thread Robert Hancock
ond my ken. The outputs of the above two are the same. $./a.out before vfork 1 Could anyone help me with this? Thanks. Why do you expect a different result? Also, calling exit from a vforked child is explicitly not allowed. The only things you can do are execve or _exit. -- Robert Hancoc

Re: PCI Interrupt Problems Since Kernel-2.6.19

2008-01-21 Thread Robert Hancock
f your driver would also be useful. One common problem is not calling pci_enable_device before requesting the interrupt.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe

Re: PCI Interrupt Problems Since Kernel-2.6.19

2008-01-21 Thread Robert Hancock
be useful. One common problem is not calling pci_enable_device before requesting the interrupt.. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux

Re: [HELP]Problem with exit(0) and _exit(0) on RHEL x86

2008-01-21 Thread Robert Hancock
Could anyone help me with this? Thanks. Why do you expect a different result? Also, calling exit from a vforked child is explicitly not allowed. The only things you can do are execve or _exit. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page

Re: PROBLEM: Celeron Core

2008-01-21 Thread Robert Hancock
duty cycle. If the CPU is already idle this has no effect and won't save any power. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel

Re: PROBLEM: Celeron Core

2008-01-20 Thread Robert Hancock
Matt Mackall wrote: Your usage of "overall power" here is wrong. Power is an instantaneous quantity (1/s) like velocity, and you are comparing it to energy which is not an instaneous quantity, more like distance. If we throttle the velocity of a car from 100km/h to 50km/h, it'll obviously take

Re: PROBLEM: Celeron Core

2008-01-20 Thread Robert Hancock
David Newall wrote: Andi Kleen wrote: Isn't it the case that an idle machine will use less power when throttled than when not? No that is not the case (not even on old CPUs) Then why would it run cooler? What generates the heat when not throttled? What stops generating heat when

Re: PROBLEM: Celeron Core

2008-01-20 Thread Robert Hancock
David Newall wrote: Andi Kleen wrote: Isn't it the case that an idle machine will use less power when throttled than when not? No that is not the case (not even on old CPUs) Then why would it run cooler? What generates the heat when not throttled? What stops generating heat when

Re: PROBLEM: Celeron Core

2008-01-20 Thread Robert Hancock
Matt Mackall wrote: Your usage of overall power here is wrong. Power is an instantaneous quantity (1/s) like velocity, and you are comparing it to energy which is not an instaneous quantity, more like distance. If we throttle the velocity of a car from 100km/h to 50km/h, it'll obviously take

Re: PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM

2008-01-14 Thread Robert Hancock
James Bottomley wrote: On Sun, 2008-01-13 at 16:29 +, Alan Cox wrote: Yes, I concur for the short term. The other two possible courses of action either involve long discussions (the different device one) or you'll never quite be sure you got all the paths (the GFP_DMA32 one). At least with

Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in

2008-01-14 Thread Robert Hancock
no wonder it has not been reliable to try and use MMCONFIG in the past.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-k

Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in

2008-01-14 Thread Robert Hancock
in the past.. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM

2008-01-14 Thread Robert Hancock
James Bottomley wrote: On Sun, 2008-01-13 at 16:29 +, Alan Cox wrote: Yes, I concur for the short term. The other two possible courses of action either involve long discussions (the different device one) or you'll never quite be sure you got all the paths (the GFP_DMA32 one). At least with

Re: fixed a bug of adma in rhel4u5 with HDS7250SASUN500G.

2008-01-13 Thread Robert Hancock
Kuan Luo wrote: Robert hancock wrote: What problem does this resolve? I tested it against the cache flush/NCQ write switching problem we've been trying to solve, and it doesn't look like it fixes that one - if I apply this patch and then remove the udelay(20) in sata_nv.c that I added which

Re: fixed a bug of adma in rhel4u5 with HDS7250SASUN500G.

2008-01-13 Thread Robert Hancock
Kuan Luo wrote: Robert hancock wrote: What problem does this resolve? I tested it against the cache flush/NCQ write switching problem we've been trying to solve, and it doesn't look like it fixes that one - if I apply this patch and then remove the udelay(20) in sata_nv.c that I added which

Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in

2008-01-12 Thread Robert Hancock
an's patch or not, otherwise if a driver does opt in and tries to use extended config space it will still break. And if they are resolved, the patch seems quite pointless. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://w

Re: PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM

2008-01-12 Thread Robert Hancock
James Bottomley wrote: On Sat, 2008-01-12 at 17:04 -0600, Robert Hancock wrote: I don't think the problem is that there's some buffer which is getting allocated above 4GB and never bounced, since the problem goes away if ADMA is disabled entirely and the DMA mask remains 32-bit always. My

Re: PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM

2008-01-12 Thread Robert Hancock
James Bottomley wrote: With mem<=4098M or sata_nv.adma=0 it still mounts and works ok. As I wrote, it would appear that somehow the blk_queue_bounce_limit setting that the driver has made is not being respected and the block layer is still trying to feed it addresses over 4GB. Any ideas

Re: PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM

2008-01-12 Thread Robert Hancock
Alexander wrote: Robert Hancock wrote: There's this patch which was intended to fix it: http://lkml.org/lkml/2007/11/22/148 I applied this patch to 2.6.24-rc7. Now at boot time my DVD-RW is normaly detected as: sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray But I

Re: PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM

2008-01-12 Thread Robert Hancock
Alexander wrote: Robert Hancock wrote: There's this patch which was intended to fix it: http://lkml.org/lkml/2007/11/22/148 I applied this patch to 2.6.24-rc7. Now at boot time my DVD-RW is normaly detected as: sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray But I

Re: PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM

2008-01-12 Thread Robert Hancock
James Bottomley wrote: With mem=4098M or sata_nv.adma=0 it still mounts and works ok. As I wrote, it would appear that somehow the blk_queue_bounce_limit setting that the driver has made is not being respected and the block layer is still trying to feed it addresses over 4GB. Any ideas anyone?

Re: PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM

2008-01-12 Thread Robert Hancock
James Bottomley wrote: On Sat, 2008-01-12 at 17:04 -0600, Robert Hancock wrote: I don't think the problem is that there's some buffer which is getting allocated above 4GB and never bounced, since the problem goes away if ADMA is disabled entirely and the DMA mask remains 32-bit always. My

Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in

2008-01-12 Thread Robert Hancock
or not, otherwise if a driver does opt in and tries to use extended config space it will still break. And if they are resolved, the patch seems quite pointless. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com

Re: sata_nv + ADMA + Samsung disk problem

2008-01-11 Thread Robert Hancock
Gabor Gombas wrote: On Mon, Jan 07, 2008 at 06:10:29PM -0600, Robert Hancock wrote: Gabor, I just noticed you said that it worked OK in 2.6.20, yet 2.6.22 fails. 2.6.20 had ADMA support as well, so I wonder what change started causing the problem. Would it be possible for you to do a git

Re: fixed a bug of adma in rhel4u5 with HDS7250SASUN500G.

2008-01-11 Thread Robert Hancock
Kuan Luo wrote: hi robert, I have fixed a bug in rhel4u5 2.6.9-55 when running adma mode with HDS7250SASUN500G. Could you check this code and if no problem, then help me to submit to the newest kernel. What problem does this resolve? I tested it against the cache flush/NCQ

Re: fixed a bug of adma in rhel4u5 with HDS7250SASUN500G.

2008-01-11 Thread Robert Hancock
Kuan Luo wrote: hi robert, I have fixed a bug in rhel4u5 2.6.9-55 when running adma mode with HDS7250SASUN500G. Could you check this code and if no problem, then help me to submit to the newest kernel. What problem does this resolve? I tested it against the cache flush/NCQ

Re: sata_nv + ADMA + Samsung disk problem

2008-01-11 Thread Robert Hancock
Gabor Gombas wrote: On Mon, Jan 07, 2008 at 06:10:29PM -0600, Robert Hancock wrote: Gabor, I just noticed you said that it worked OK in 2.6.20, yet 2.6.22 fails. 2.6.20 had ADMA support as well, so I wonder what change started causing the problem. Would it be possible for you to do a git

Re: PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM

2008-01-10 Thread Robert Hancock
it is limited to 32-bit DMA.. Could that be breaking or insufficient somehow? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-kern

Re: Is it possible to change IRQ for certain device?

2008-01-10 Thread Robert Hancock
it has an APIC mode setting that needs to be enabled). -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bod

Re: Is it possible to change IRQ for certain device?

2008-01-10 Thread Robert Hancock
setting that needs to be enabled). -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: PROBLEM REMAINS: [sata_nv ADMA breaks ATAPI] Crash on accessing DVD-RAM

2008-01-10 Thread Robert Hancock
it is limited to 32-bit DMA.. Could that be breaking or insufficient somehow? -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH] libata and starting/stopping ATAPI floppy devices

2008-01-09 Thread Robert Hancock
ata_scsi_dev_config(sdev, dev); -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [linux-kernel] Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.

2008-01-09 Thread Robert Hancock
used for our purposes, do not touch it". We should be listening. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel&

Re: [linux-kernel] Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override.

2008-01-09 Thread Robert Hancock
not touch it. We should be listening. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: [PATCH] libata and starting/stopping ATAPI floppy devices

2008-01-09 Thread Robert Hancock
); -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: PROBLEM: I/O scheduler problem with an 8 SATA disks raid 5 under heavy load ?

2008-01-08 Thread Robert Hancock
Guillaume Laurès wrote: Le 8 janv. 08 à 01:29, Robert Hancock a écrit : From your report: ata5: EH in ADMA mode, notifier 0x0 notifier_error 0x0 gen_ctl 0x1501000 status 0x400 ata5: CPB 0: ctl_flags 0x1f, resp_flags 0x1 ata5: CPB 1: ctl_flags 0x1f, resp_flags 0x2 ata5: CPB 2: ctl_flags

Re: PROBLEM: I/O scheduler problem with an 8 SATA disks raid 5 under heavy load ?

2008-01-08 Thread Robert Hancock
Guillaume Laurès wrote: Le 8 janv. 08 à 01:29, Robert Hancock a écrit : From your report: ata5: EH in ADMA mode, notifier 0x0 notifier_error 0x0 gen_ctl 0x1501000 status 0x400 ata5: CPB 0: ctl_flags 0x1f, resp_flags 0x1 ata5: CPB 1: ctl_flags 0x1f, resp_flags 0x2 ata5: CPB 2: ctl_flags

Re: MCFG ACPI patch in git-x86 causes boot regression

2008-01-07 Thread Robert Hancock
Andi Kleen wrote: On Mon, Jan 07, 2008 at 05:31:58PM -0600, Robert Hancock wrote: Jesse Barnes wrote: Hmm -- I didn't see Jesse's mail? I believe that such a change is in Greg KH's tree. So -mm (with both trees) would probably work. Yes 2.6.24-rc6-mm1 works, but plain git-x86 does

Re: PROBLEM: I/O scheduler problem with an 8 SATA disks raid 5 under heavy load ?

2008-01-07 Thread Robert Hancock
ponse. The timeout is 30 seconds, so that means the drive failed to service those queued commands for that length of time. It may be that your drive has a poor NCQ implementation that can starve some of the pending commands for a long time under heavy load? -- Robert Hancock Saskatoon,

Re: sata_nv + ADMA + Samsung disk problem

2008-01-07 Thread Robert Hancock
Allen Martin wrote: Dunno about the NVidia version. Theirs works rather differently - the GO bit is there, but there's another append register which is used to tell the controller that a new tag has been added to the CPB list. The only thing we currently use the GO bit for is to switch

Re: MCFG ACPI patch in git-x86 causes boot regression

2008-01-07 Thread Robert Hancock
Jesse Barnes wrote: On Monday, January 07, 2008 2:47 Andi Kleen wrote: This patch commit c5182babd1d0706f1294af7b8dbf64e378b066bb Author: Robert Hancock <[EMAIL PROTECTED]> Date: Sat Jan 5 13:26:32 2008 +0100 x86: validate against ACPI motherboard resources ... recently added

Re: MCFG ACPI patch in git-x86 causes boot regression

2008-01-07 Thread Robert Hancock
Jesse Barnes wrote: On Monday, January 07, 2008 2:47 Andi Kleen wrote: This patch commit c5182babd1d0706f1294af7b8dbf64e378b066bb Author: Robert Hancock [EMAIL PROTECTED] Date: Sat Jan 5 13:26:32 2008 +0100 x86: validate against ACPI motherboard resources ... recently added to git-x86

Re: sata_nv + ADMA + Samsung disk problem

2008-01-07 Thread Robert Hancock
Allen Martin wrote: Dunno about the NVidia version. Theirs works rather differently - the GO bit is there, but there's another append register which is used to tell the controller that a new tag has been added to the CPB list. The only thing we currently use the GO bit for is to switch

Re: PROBLEM: I/O scheduler problem with an 8 SATA disks raid 5 under heavy load ?

2008-01-07 Thread Robert Hancock
seconds, so that means the drive failed to service those queued commands for that length of time. It may be that your drive has a poor NCQ implementation that can starve some of the pending commands for a long time under heavy load? -- Robert Hancock Saskatoon, SK, Canada To email, remove

Re: MCFG ACPI patch in git-x86 causes boot regression

2008-01-07 Thread Robert Hancock
Andi Kleen wrote: On Mon, Jan 07, 2008 at 05:31:58PM -0600, Robert Hancock wrote: Jesse Barnes wrote: Hmm -- I didn't see Jesse's mail? I believe that such a change is in Greg KH's tree. So -mm (with both trees) would probably work. Yes 2.6.24-rc6-mm1 works, but plain git-x86 does

Re: Believed resolved: SATA kern-buffRd read slow: based on promise driver bug

2008-01-06 Thread Robert Hancock
sks/port. However, (please correct?) SATA uses a hub type architecture while SAS uses a switch architecture. My experience with network hubs vs. switches is that network hubs can be much slower if there is communication contention. Is the word 'hub' being used in the "shared-communication

Re: Believed resolved: SATA kern-buffRd read slow: based on promise driver bug

2008-01-06 Thread Robert Hancock
using the term 'hub' as a [sic] replacement for a 'switch'? I believe that they're essentially the same in that regard, though someone can correct me if I'm wrong.. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http

Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

2008-01-03 Thread Robert Hancock
Linda Walsh wrote: Robert Hancock wrote: Looks like the drive reports ERR/ABRT (command aborted), meaning it likely doesn't support those commands. --- Except the PATA version of the drive does (same capacity, & other specs). Seagate would disable "advanced" fea

Re: sata_nv + ADMA + Samsung disk problem

2008-01-03 Thread Robert Hancock
Allen Martin wrote: Dunno about the NVidia version. Theirs works rather differently - the GO bit is there, but there's another append register which is used to tell the controller that a new tag has been added to the CPB list. The only thing we currently use the GO bit for is to switch

Re: Believed resolved: SATA kern-buffRd read slow: based on promise driver bug

2008-01-03 Thread Robert Hancock
Linda Walsh wrote: I seem to remember reading about some problems with Promise SATA & ACPI. Does this address that or is that a separate issue? (Am using no-acpi for now, but would like to try acpi again if it may be fixed (last time I tried it with this card, "sdb" went "offline" (once it

Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

2008-01-03 Thread Robert Hancock
Linda Walsh wrote: Robert Hancock wrote: Linda Walsh wrote: Alan Cox wrote: rate began falling; at 128k block-reads-at-a-time or larger, it drops below 20MB/s (only on buffered SATA). Try disabling NCQ - see if you've got a drive with the 'NCQ = no readahead' flaw. http://linux-ata.org

Re: sata_nv + ADMA + Samsung disk problem

2008-01-03 Thread Robert Hancock
Benjamin Herrenschmidt wrote: Another thing about the PacDigi core: one has to be very careful to avoid sequential accesses to sequential PCI locations when programming the chip -- it cannot handle merged register writes. So for any group of sequentially laid out registers, the code has to

Re: sata_nv + ADMA + Samsung disk problem

2008-01-03 Thread Robert Hancock
Benjamin Herrenschmidt wrote: Another thing about the PacDigi core: one has to be very careful to avoid sequential accesses to sequential PCI locations when programming the chip -- it cannot handle merged register writes. So for any group of sequentially laid out registers, the code has to

Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

2008-01-03 Thread Robert Hancock
Linda Walsh wrote: Robert Hancock wrote: Linda Walsh wrote: Alan Cox wrote: rate began falling; at 128k block-reads-at-a-time or larger, it drops below 20MB/s (only on buffered SATA). Try disabling NCQ - see if you've got a drive with the 'NCQ = no readahead' flaw. http://linux-ata.org

Re: Believed resolved: SATA kern-buffRd read slow: based on promise driver bug

2008-01-03 Thread Robert Hancock
Linda Walsh wrote: I seem to remember reading about some problems with Promise SATA ACPI. Does this address that or is that a separate issue? (Am using no-acpi for now, but would like to try acpi again if it may be fixed (last time I tried it with this card, sdb went offline (once it

Re: sata_nv + ADMA + Samsung disk problem

2008-01-03 Thread Robert Hancock
Allen Martin wrote: Dunno about the NVidia version. Theirs works rather differently - the GO bit is there, but there's another append register which is used to tell the controller that a new tag has been added to the CPB list. The only thing we currently use the GO bit for is to switch

Re: sata_nv + ADMA + Samsung disk problem

2008-01-02 Thread Robert Hancock
Mark Lord wrote: Robert Hancock wrote: .. From some of the traces I took previously (posted on LKML as "sata_nv ADMA controller lockup investigation" way back in Feb 07), what seems to occur is that when the second command is issued very rapidly (within less than 20 mi

Re: [PATCH] ide: delete filenames/versions from comments

2008-01-02 Thread Robert Hancock
REVISION "\n"); It's been 7.00alpha2 for god knows how long, so clearly this version number is not useful.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this

Re: sata_nv + ADMA + Samsung disk problem

2008-01-02 Thread Robert Hancock
Tejun Heo wrote: Robert Hancock wrote: Jeff Garzik wrote: Tejun Heo wrote: Thanks a lot for the detailed explanation. Nvidia ppl, any ideas? FLUSH is used regularly. We really need to fix this. I reiterate my opinion :) ... We should remove ADMA support from sata_nv. It's only

Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

2008-01-02 Thread Robert Hancock
s, etc, permitted removability)? I think they were referring to physically hotplugging the drive. This is more practical if you have a removable drive caddy, or if the drive is hooked up through eSATA. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from

Re: sata_nv + ADMA + Samsung disk problem

2008-01-02 Thread Robert Hancock
ly (within less than 20 microseconds, or potentially longer) after the previous command's completion, the ADMA status changes from 0x500 (STOPPED and IDLE) to 0x400 (just IDLE) as it typically does, but then it sticks there, no interrupt is ever raised, and CPB response flags remain at 0.

Re: sata_nv + ADMA + Samsung disk problem

2008-01-02 Thread Robert Hancock
less than 20 microseconds, or potentially longer) after the previous command's completion, the ADMA status changes from 0x500 (STOPPED and IDLE) to 0x400 (just IDLE) as it typically does, but then it sticks there, no interrupt is ever raised, and CPB response flags remain at 0. -- Robert

Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

2008-01-02 Thread Robert Hancock
. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: sata_nv + ADMA + Samsung disk problem

2008-01-02 Thread Robert Hancock
Tejun Heo wrote: Robert Hancock wrote: Jeff Garzik wrote: Tejun Heo wrote: Thanks a lot for the detailed explanation. Nvidia ppl, any ideas? FLUSH is used regularly. We really need to fix this. I reiterate my opinion :) ... We should remove ADMA support from sata_nv. It's only

Re: [PATCH] ide: delete filenames/versions from comments

2008-01-02 Thread Robert Hancock
for god knows how long, so clearly this version number is not useful.. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: sata_nv + ADMA + Samsung disk problem

2008-01-02 Thread Robert Hancock
Mark Lord wrote: Robert Hancock wrote: .. From some of the traces I took previously (posted on LKML as sata_nv ADMA controller lockup investigation way back in Feb 07), what seems to occur is that when the second command is issued very rapidly (within less than 20 microseconds

Re: sata_nv + ADMA + Samsung disk problem

2008-01-01 Thread Robert Hancock
Jeff Garzik wrote: Tejun Heo wrote: Thanks a lot for the detailed explanation. Nvidia ppl, any ideas? FLUSH is used regularly. We really need to fix this. I reiterate my opinion :) ... We should remove ADMA support from sata_nv. It's only in a few chips, it's not appearing in any new

Re: sata_nv + ADMA + Samsung disk problem

2008-01-01 Thread Robert Hancock
Robert Hancock wrote: Tejun Heo wrote: [cc'ing Robert Hancock and NVidia people] Whole thread can be read from the following URL. http://thread.gmane.org/gmane.linux.ide/21710 In a nutshell, with ADMA enabled, FLUSH_EXT occasionally times out. I first suspected faulty disk (reallocation

Re: sata_nv + ADMA + Samsung disk problem

2008-01-01 Thread Robert Hancock
Tejun Heo wrote: [cc'ing Robert Hancock and NVidia people] Whole thread can be read from the following URL. http://thread.gmane.org/gmane.linux.ide/21710 In a nutshell, with ADMA enabled, FLUSH_EXT occasionally times out. I first suspected faulty disk (reallocation failure on flush

Re: IDE/ACPI related hibernation regression: Second attempt fails

2008-01-01 Thread Robert Hancock
ny ACPI changes very recently in that code. These lines seem suspicious that the drivers/ide code is doing something funny to the ACPI layer: ACPI: Cannot set device to a higher-powered state than parent -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam"

Re: IDE/ACPI related hibernation regression: Second attempt fails

2008-01-01 Thread Robert Hancock
in that code. These lines seem suspicious that the drivers/ide code is doing something funny to the ACPI layer: ACPI: Cannot set device to a higher-powered state than parent -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http

Re: sata_nv + ADMA + Samsung disk problem

2008-01-01 Thread Robert Hancock
Tejun Heo wrote: [cc'ing Robert Hancock and NVidia people] Whole thread can be read from the following URL. http://thread.gmane.org/gmane.linux.ide/21710 In a nutshell, with ADMA enabled, FLUSH_EXT occasionally times out. I first suspected faulty disk (reallocation failure on flush

Re: sata_nv + ADMA + Samsung disk problem

2008-01-01 Thread Robert Hancock
Robert Hancock wrote: Tejun Heo wrote: [cc'ing Robert Hancock and NVidia people] Whole thread can be read from the following URL. http://thread.gmane.org/gmane.linux.ide/21710 In a nutshell, with ADMA enabled, FLUSH_EXT occasionally times out. I first suspected faulty disk (reallocation

Re: sata_nv + ADMA + Samsung disk problem

2008-01-01 Thread Robert Hancock
Jeff Garzik wrote: Tejun Heo wrote: Thanks a lot for the detailed explanation. Nvidia ppl, any ideas? FLUSH is used regularly. We really need to fix this. I reiterate my opinion :) ... We should remove ADMA support from sata_nv. It's only in a few chips, it's not appearing in any new

Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

2007-12-31 Thread Robert Hancock
Linda Walsh wrote: Robert Hancock wrote: Have you tried using a different block size to see how that effects the results? There might be some funny interaction there. There is some interaction with the large block size (but only on the SATA disk). Counts were adjusted to keep

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override

2007-12-31 Thread Robert Hancock
ST debug cards would bother to accurately emulate the ISA timings of normal port 0x80 accesses, however. Most likely if you plug those in, port 0x80 accesses suddenly become lots faster now that the writes are completing on the PCI bus before ever hitting ISA/LPC.. -- Robert Hancock S

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override

2007-12-31 Thread Robert Hancock
to accurately emulate the ISA timings of normal port 0x80 accesses, however. Most likely if you plug those in, port 0x80 accesses suddenly become lots faster now that the writes are completing on the PCI bus before ever hitting ISA/LPC.. -- Robert Hancock Saskatoon, SK, Canada To email

Re: SATA kernel-buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

2007-12-31 Thread Robert Hancock
Linda Walsh wrote: Robert Hancock wrote: Have you tried using a different block size to see how that effects the results? There might be some funny interaction there. There is some interaction with the large block size (but only on the SATA disk). Counts were adjusted to keep

Re: RAID timeout parameter accessibility request

2007-12-30 Thread Robert Hancock
upper layers will get a failure report, and I believe at that point the md layer decides to disable the device. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the li

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override

2007-12-30 Thread Robert Hancock
writes. However, I suspect in the majority of implementations (perhaps all), it indeed does. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line "unsubscri

Re: SATA buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

2007-12-30 Thread Robert Hancock
st tipping over some internal "flooding" limit which degrades buffered performance? Very Confused & TIA, Linda -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this

Re: SATA buffered read VERY slow (not raid, Promise TX300 card); 2.6.23.1(vanilla)

2007-12-30 Thread Robert Hancock
-- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: [PATCH] x86: provide a DMI based port 0x80 I/O delay override

2007-12-30 Thread Robert Hancock
in the majority of implementations (perhaps all), it indeed does. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

Re: RAID timeout parameter accessibility request

2007-12-30 Thread Robert Hancock
the md layer decides to disable the device. -- Robert Hancock Saskatoon, SK, Canada To email, remove nospam from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More

Re: [PATCH] sata_nv: fix ADMA ATAPI issues with memory over 4GB (v3)

2007-12-28 Thread Robert Hancock
Robert Hancock wrote: Jeff Garzik wrote: Robert Hancock wrote: This fixes some problems with ATAPI devices on nForce4 controllers in ADMA mode on systems with memory located above 4GB. We need to delay setting the 64-bit DMA mask until the PRD table and padding buffer are allocated so

Re: [PATCH] sata_nv: fix ADMA ATAPI issues with memory over 4GB (v3)

2007-12-28 Thread Robert Hancock
Robert Hancock wrote: Jeff Garzik wrote: Robert Hancock wrote: This fixes some problems with ATAPI devices on nForce4 controllers in ADMA mode on systems with memory located above 4GB. We need to delay setting the 64-bit DMA mask until the PRD table and padding buffer are allocated so

Re: Suspend code ordering (again)

2007-12-27 Thread Robert Hancock
machine and not the real one.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTE

Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in

2007-12-27 Thread Robert Hancock
uff might be related to this problem, but if it couldn't be fixed, I think the only sane solution would be to blacklist MMCONFIG support on that chipset. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ --

Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in

2007-12-27 Thread Robert Hancock
non-global problems I'm aware of are devices behind host bridges which can't receive/handle MMCONFIG requests, in which case the problem would be bus-wide. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/

Re: [patch?] s2ram + P4 + tsc = annoyance

2007-12-27 Thread Robert Hancock
oss resume or something? Anyway, I asked it to please stop doing that, and it complied without even exploding (unlike crabby APICs). Are we missing some logic to resync the TSCs after resume, or something? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EM

<    1   2   3   4   5   6   7   8   9   10   >