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

2007-08-07 Thread Robert Hancock
Tejun Heo wrote: Robert Hancock wrote: Tejun Heo wrote: Michael Sedkowski wrote: Hmmm... If the problem only shows up on nx6325, it might be that ACPI is pulling unnecessary stunt. Please apply the attached patch and report when the disk spins down and up. Disk spins down on "Pre-shu

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

2007-08-06 Thread Robert Hancock
here is nothing to flush, and the kernel does its own standby, this could cause an extra spinup/down.. -- 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

[PATCH -mm] libata: add human-readable error value decoding v3

2007-08-03 Thread Robert Hancock
looking at error reports. Some bits that drivers/ide decoded are not decoded here, since the bits are either command-dependent or obsolete, and properly parsing them would add too much complexity. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- Rebased to apply to 2.6.23-r

Re: [PATCH] Unbreak build of PMP with ACPI disabled

2007-07-13 Thread Robert Hancock
ller but work on others.. Also I haven't noticed any SMART problems on my machine with ADMA enabled.. maybe it's drive or motherboard dependent? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.c

Re: [2.6.20.15] CK804 / sata_nv: Reported link speed not as expected.

2007-07-12 Thread Robert Hancock
can safely ignore? I don't think the NVIDIA page is correct. AFAIK all nForce4 chipsets support SATA 3Gbps transfer speeds. The kernel doesn't have any control over the default speed chosen by the controller in any case (though it can force it down to a lower speed). -- Robe

Re: Disabling ADMA? (was Re: [PATCH] drivers/ata: Add the SW NCQ support to sata_nv for MCP51/MCP55/MCP61)

2007-07-07 Thread Robert Hancock
Jeff Garzik wrote: Kuan Luo wrote: @@ -1714,3 +2761,6 @@ module_init(nv_init); module_exit(nv_exit); module_param_named(adma, adma_enabled, bool, 0444); MODULE_PARM_DESC(adma, "Enable use of ADMA (Default: true)"); +module_param_named(ncq, ncq_enabled, bool, 0444); +MO

Re: [PATCH] libata_acpi: A different strategy for using ACPI information

2007-07-03 Thread Robert Hancock
C errors or timeouts), so this should be safe. We just had better be sure that the speed we give it is valid, since there is no sane way for the function to indicate failure. (Thus the problem with the "cram in all possible values to see what it supports" strategy for determining mode

[PATCH -mm] sata_nv: allow changing queue depth

2007-06-28 Thread Robert Hancock
The sata_nv driver was missing the change_queue_depth hook in the SCSI host template which the other NCQ-capable libata drivers had. This made it impossible to change the queue depth by user request. Add this in. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.22-rc6-mm1/d

Re: [PATCH 2.6.22-rc5] libata: add HTS541616J9SA00 to NCQ blacklist

2007-06-24 Thread Robert Hancock
aching Hitachi to the ID strings now.. In the past it hasn't seemed to have been Hitachi's (and IBM's before that) practice to have it there, but maybe they see the advantage of being able to figure out who made the drive now :-) -- Robert Hancock Saskatoon, SK, Canada To ema

Re: [PATCH 2.6.22-rc5] libata: add HTS541616J9SA00 to NCQ blacklist

2007-06-24 Thread Robert Hancock
ORKAGE_NONCQ, }, /* Devices with NCQ limits */ Is that the right ID string? Strange that that one has Hitachi at the front and the others don't.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthanc

Re: Frequent SATA resets with sata_nv (fwd)

2007-06-24 Thread Robert Hancock
bug, the driver doing something the controller doesn't expect.. Does this drive actually support NCQ? I can't tell from this part of the log. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.

Re: hsm violation

2007-06-24 Thread Robert Hancock
ns for actually outstanding commands that aren't actually completed yet..) -- 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: Compact Flash performance...

2007-05-31 Thread Robert Hancock
s a simple "go" I/O to start a transaction, immediately after the previous one ends. Jeff Theoretically NVIDIA nForce4 ADMA could likely do this as well, as it seems to allow chaining up multiple commands to execute in succession (assuming they're not NCQ).. -- Robert Hanco

Re: Add Seagate STT20000A to DMA blacklist.

2007-05-21 Thread Robert Hancock
ble. > > Here's a rediffed version of the same. > > Please update libata as well when you udpate the blacklists. Sure, point me at the table(s) ? Dave ata_device_blacklist in drivers/ata/libata-core.c -- Robert Hancock Saskatoon, SK, Canada To email, remo

Re: something strange in libata-core.c for kernel 2.6.22-rc3

2007-05-21 Thread Robert Hancock
ng _STM followed by executing _GTF and running those commands. This won't handle the case where the driver is loaded after the system was already suspended to RAM and resumed, however I don't know exactly how one could handle that in this situation.. -- Robert Hancock Saskatoon, S

Re: something strange in libata-core.c for kernel 2.6.22-rc3

2007-05-21 Thread Robert Hancock
oot-up controller registers, or by calling GTM). I imagine this is what the Windows default IDE driver is doing (just using the boot-up mode and feeding it back using GTM/STM on suspend/resume cycles). -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMA

Re: sd_resume redundant? [was: [PATCH] libata: implement ata_wait_after_reset()]

2007-05-20 Thread Robert Hancock
Randy Dunlap wrote: On Sun, 20 May 2007 11:45:03 -0600 Robert Hancock wrote: Indan Zupancic wrote: Everything seems to work fine without sd_resume(), so why is it needed? Because not all disks spin up without being told to do so and like it or not spinning disks up on resume is the default

Re: [PATCH] sata_sil: Greatly improve DMA support

2007-05-19 Thread Robert Hancock
es 64-bit DMA addresses (where supported by platform) and eliminates the annoying 64k DMA boundary found in legacy PCI IDE BMDMA engines. Looks like it doesn't allow 64-bit DMA addresses, it only gets rid of the 64K boundary limitation. -- Robert Hancock Saskatoon, SK, Canada To ema

Re: [PATCH] drivers/ata: Add the SW NCQ support to sata_nv for MCP51/MCP55/MCP61

2007-05-18 Thread Robert Hancock
ct this case we should raise an HSM violation which will disable NCQ on this drive if it happens repeatedly. See the code in ahci.c in ahci_host_intr. This comment still applies: Additional/general comments: Think you need some code to handle suspend and resume (re-enable SATA MMIO space, et

Re: [PATCH] drivers/ata: Add the SW NCQ support to sata_nv for MCP51/MCP55/MCP61

2007-05-17 Thread Robert Hancock
Peer Chen wrote: Add the Software NCQ support to sata_nv.c for MCP51/MCP55/MCP61 SATA controller. This patch base on sata_nv.c file from kernel 2.6.22-rc1 See attachment for the patch. Signed-off-by: Kuan Luo <[EMAIL PROTECTED]> Signed-off-by: Peer Chen <[EMAIL PROTECTED]> Good to finally s

[PATCH] libata: add human-readable error value decoding (v2)

2007-05-14 Thread Robert Hancock
of this patch. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.21.1/drivers/ata/libata-eh.c 2007-04-27 15:49:26.0 -0600 +++ linux-2.6.21.1edit/drivers/ata/libata-eh.c 2007-05-14 17:38:35.0 -0600 @@ -1523,6 +1523,27 @@ static void ata_eh_report(struct a

Re: [2.6.21.1] SATA freeze

2007-05-12 Thread Robert Hancock
rt SMART Error Counter logging not supported [GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on'] Device does not support Self Test logging Sounds like SMART is likely disabled on that drive. You can try doing "smartctl -s on /dev/sda" and see if that w

Re: [2.6.21.1] SATA freeze

2007-05-12 Thread Robert Hancock
sing it to just toss these commands? CCing linux-ide in case anyone knows what would cause this. -- 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 "un

Re: [PATCH] libata: add human-readable error value decoding

2007-05-11 Thread Robert Hancock
Tejun Heo wrote: Chuck Ebbert wrote: Robert Hancock wrote: + ehc->i.serror & SERR_TRANS_ST_ERROR ? "TransStatTransErr " : "", + ehc->i.serror & SERR_UNRECOG_FIS ? "UnrecogFIS " : "", + ehc->i.serror & SERR

Re: [PATCH] libata: add human-readable error value decoding

2007-05-10 Thread Robert Hancock
ases, like oops output. With libata errors, if they're at the console (which they'd have to be to see these messages), unless something has actually caused a panic the scrollback buffer should still be functional and they'd be able to see the entire output.. -- Robert Hancock

Re: [PATCH] libata: add human-readable error value decoding

2007-05-10 Thread Robert Hancock
The human readable form is also a bit cryptic and can get quite long. So, mild NACK from me. It certainly seems useful when debugging hotplug issues or random SATA problems which end up being caused by communication problems. Without this output, Joe User stands no chance of figuring out

[PATCH] libata: add human-readable error value decoding

2007-05-09 Thread Robert Hancock
looking at error reports. Some bits that drivers/ide decoded are not decoded here, since the bits are either command-dependent or obsolete, and properly parsing them would add too much complexity. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.21.1/drivers/ata/libat

[PATCH] sata_nv: fix ADMA freeze/thaw/irq_clear issues

2007-05-05 Thread Robert Hancock
x27;t check any ADMA status if the port has ADMA switched off because of an ATAPI device, and it also checks to see if any ADMA interrupt has been raised even when we are in port-register mode. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.21.1/drivers/ata/sata_nv.c

Re: System freezes with kernel >2.6.19 - sata_nv [added crash info kern 2.6.21.1]

2007-05-02 Thread Robert Hancock
boot. Sometimes I even have to completely power down the machine to be able to boot again. Power problems would be another possibility.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from

Re: System freezes with kernel >2.6.19 - sata_nv [added crash info kern 2.6.21.1]

2007-05-01 Thread Robert Hancock
r than making people pore through the SATA spec and count bits). First thing you should try is replacing the SATA cable to that drive. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubs

Re: System freezes with kernel >2.6.19 - sata_nv

2007-04-30 Thread Robert Hancock
gging these problems. Though, later kernels are supposed to switch it off automatically after too many errors.. -- 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

Re: [patch 02/10] sata_nv: add back some verbosity into ADMA error_handler

2007-04-28 Thread Robert Hancock
Jeff Garzik wrote: [EMAIL PROTECTED] wrote: From: Robert Hancock <[EMAIL PROTECTED]> Some debug output in the ADMA error_handler function was removed recently, but it may be useful in certain cases, like NCQ commands timing out. Add it back in, but make it a bit more intelligent so t

Re: [PATCH] libata: skip FLUSH and STADNBYNOW1 during shutdown if device is already spun down

2007-04-23 Thread Robert Hancock
Tejun Heo wrote: libata didn't use to spin down disks properly on shutdown and userland shutdown(8) worked around it by synchronizing cache and spinning down by itself before telling the kernel to shutdown. However, this userland work around collides with libata shutdown because some drives spin

Re: [PATCH] libata: add Samsung HD401LJ to the NCQ blacklist

2007-04-18 Thread Robert Hancock
tom of the drive and controller just not getting along, but you might want to try a different SATA cable as well. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe from this list: send t

Re: [PATCH] sata_nv: Don't attempt using ADMA for (READ|SET)_MAX commands

2007-04-13 Thread Robert Hancock
ding back a result taskfile (which can't be done in ADMA mode). The patch in libata-dev which I mentioned in another email will ensure that we don't try to use ADMA for such commands, so this patch should not be needed. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nos

Re: [PATCH] libata: HPA support

2007-04-13 Thread ROBERT HANCOCK
- Original Message - From: Kyle McMartin <[EMAIL PROTECTED]> Date: Friday, April 13, 2007 10:47 am Subject: Re: [PATCH] libata: HPA support > [Adding Robert to the CC incase he doesn't follow linux-ide] > > On Fri, Apr 13, 2007 at 12:33:41PM -0400, Kyle McMartin wrote: > > On Fri, Apr 13,

Re: [PATCH] libata: add NCQ blacklist entries from Silicon Image Windows driver (v2)

2007-04-04 Thread Robert Hancock
Jeff Garzik wrote: Robert Hancock wrote: This adds some NCQ blacklist entries taken from the Silicon Image 3124/3132 Windows driver .inf files. There are some confirming reports of problems with these drives under Linux (for example http://lkml.org/lkml/2007/3/4/178) so let's disable N

[PATCH] libata: add NCQ blacklist entries from Silicon Image Windows driver (v2)

2007-04-02 Thread Robert Hancock
This adds some NCQ blacklist entries taken from the Silicon Image 3124/3132 Windows driver .inf files. There are some confirming reports of problems with these drives under Linux (for example http://lkml.org/lkml/2007/3/4/178) so let's disable NCQ on these drives. Signed-off-by: Robert Ha

Re: sata_nv ADMA controller lockup investigation

2007-03-20 Thread Robert Hancock
nd and the controller is still waiting for a response. Could be that this is another drive that needs to be added to the NCQ blacklist, some similar Maxtor models seem to have issues.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTEC

Re: [BUG 2.6.21-rc3-git9] SATA NCQ failure with Samsum HD401LJ

2007-03-16 Thread Robert Hancock
ve has to be added to the NCQ blacklist. Max This does indeed look like a drive side issue to me (the controller is reporting CPBs with response flags 2 which as far as I can tell indicates it's still waiting for the drive to complete the request). -- Robert Hancock Saskatoon, SK, C

Re: [patch 29/30] sata_nv: don't read shadow registers when in ADMA mode

2007-03-09 Thread Robert Hancock
en be able to usefully test? Yes, you should be able to. -- 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-ide" in the bod

Re: [patch 29/30] sata_nv: don't read shadow registers when in ADMA mode

2007-03-09 Thread Robert Hancock
Jeff Garzik wrote: [EMAIL PROTECTED] wrote: From: Robert Hancock <[EMAIL PROTECTED]> Reading from the ATA shadow registers while we are in ADMA mode may cause undefined behavior. Don't read the ATA status register when completing commands for this reason, it shouldn't

[PATCH] sata_nv: revert use of notifiers for now

2007-03-08 Thread Robert Hancock
ned-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.21-rc3-git3/drivers/ata/sata_nv.c 2007-03-08 17:15:25.0 -0600 +++ linux-2.6.21-rc3-git3edit/drivers/ata/sata_nv.c 2007-03-08 17:19:42.0 -0600 @@ -874,8 +874,14 @@ if (status &

[PATCH] sata_nv: don't read shadow registers when in ADMA mode

2007-03-05 Thread Robert Hancock
result taskfile requested to execute in ADMA mode, since that requires accessing the shadow registers. We also still need to override tf_read since libata will read the result taskfile on a command failure, and we need to go into port register mode before allowing this. Signed-off-by: Robert

Re: [PATCH] libata: add NCQ blacklist entries from Silicon Image Windows driver

2007-02-22 Thread Robert Hancock
: spurious interrupt (irq_stat 0x8 active_tag -84148995 sactive 0xf) Sounds like those are some that we should be blacklisting as well, unless Eric has a good reason why not (CCing). Can you provide the full firmware revision strings from those drives, i.e. from "hdparm -I"? -- Robe

Re: libata FUA revisited

2007-02-22 Thread Robert Hancock
would be more likely to fit inside the queue.. -- 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-ide" in the body of

[PATCH] sata_nv: complain on spurious completion notifiers

2007-02-21 Thread Robert Hancock
isn't outstanding, since the drive may be issuing spurious completions. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.21-rc1edit/drivers/ata/sata_nv.c.prev 2007-02-21 22:17:31.0 -0600 +++ linux-2.6.21-rc1edit/drivers/ata/sata_nv.c 2007-02-21 22:22:14.0

[PATCH] libata: add NCQ blacklist entries from Silicon Image Windows driver

2007-02-21 Thread Robert Hancock
This patch adds in some NCQ blacklist entries taken from the Silicon Image Windows drivers' .inf files for the 3124 and 3132 controllers. These entries were marked as ""DisableSataQueueing". Assume these are in their blacklist for a reason and disable NCQ on these drives. S

Re: libata FUA revisited

2007-02-21 Thread Robert Hancock
n't support non-NCQ FUA, and those (especially the latter) seem to be very popular models. Likely Seagate didn't implement that command since they figured nobody would use that if they had NCQ.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PR

[PATCH] sata_nv: kill old private BMDMA helper functions

2007-02-20 Thread Robert Hancock
. The only thing we need to override as far as ADMA and BMDMA is the post_internal_cmd callback, where we should only call ata_post_internal_cmd if we are in port-register mode. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git14edit/drivers/ata/sata_nv.c.before_cleanup 2007

[PATCH RFC] libata: FUA updates

2007-02-19 Thread Robert Hancock
311x (since that one is known to have problems) as well as for ITE821x when in smart mode. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- Any comments on this version? It's essentially what I posted previously in "libata FUA revisited", except that the default for F

[PATCH 4/5] sata_nv: Use notifier for completion checks

2007-02-19 Thread Robert Hancock
, accessing them will likely result in a cache miss. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6edit/drivers/ata/sata_nv.c 2007-02-15 22:36:02.0 -0600 +++ linux-2.6.20-git6edit/drivers/ata/sata_nv.c.delayandfixes 2007-02-19 17:00:14.0 -0600 @@ -

[PATCH 3/5] sata_nv: Cleanup taskfile setup

2007-02-19 Thread Robert Hancock
This edits the taskfile setup to more closely match the way that libata sends the taskfile for other controllers. This avoids putting taskfile writes into the CPB buffer that are not needed according to the taskfile flags. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-

[PATCH 5/5] sata_nv: enable hotplug interrupt and fix some readl/readw mismatches

2007-02-19 Thread Robert Hancock
We already have code that handles hotplug interrupt indications in ADMA mode, this turns on the control flag that actually enables these interrupts. Also fixes some cases in the same functions where a 16-bit register was read using a readl instead of a readw. Signed-off-by: Robert Hancock

[PATCH 1/5] sata_nv: Add CPB register info to error_handler output

2007-02-19 Thread Robert Hancock
When error handling occurs with pending commands, output the contents of the next CPB count and next CPB index registers as well as the others, since these may be useful for debugging. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6edit/drivers/ata/sata_nv.c 2007

[PATCH 2/5] sata_nv: cleanup CPB and APRD initialization

2007-02-19 Thread Robert Hancock
Clean up the initialization of the CPB and APRD structures so that we strictly follow the rules for ordering of writes to the CPB flags and response flags, and prevent duplicate initialization. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6edit/drivers/ata/sat

[PATCH 0/5] sata_nv: various cleanups and fixes

2007-02-19 Thread Robert Hancock
This patch series contains several fixes for issues I noticed while debugging some command timeout problems. None of these proved to be related to that issue, but they fall into the category of things we should be doing anyway. Split into separate patches to ease bisecting in case of issues. -

[PATCH] libata: warn if speed limited due to 40-wire cable (v2)

2007-02-19 Thread Robert Hancock
ned up somewhat. Also, it's been inadvertently tested (it seems that pata_amd Nvidia cable detection is broken in current -git..) Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6/drivers/ata/libata-core.c 2007-02-11 17:31:19.0 -0600 +++ linux-2.6.20-g

[PATCH] sata_nv: delay on switching between NCQ and non-NCQ commands

2007-02-19 Thread Robert Hancock
: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6edit/drivers/ata/sata_nv.c.before_hacking 2007-02-15 18:19:13.0 -0600 +++ linux-2.6.20-git6edit/drivers/ata/sata_nv.c 2007-02-15 22:36:02.0 -0600 @@ -219,6 +219,7 @@ void __iomem * gen_block;

Re: libata FUA revisited

2007-02-19 Thread Robert Hancock
need to drain the drive queue before issuing the WRITE/FUA. And at that point we may as well not use the NCQ command, just go for the regular non-NCQ FUA write. I think that should be safe. Aside from the issue above, as I mentioned elsewhere, lots of NCQ drives don't support non-NCQ FUA

Re: pata_amd dropping to PIO on resume

2007-02-16 Thread Robert Hancock
ex to start with. It looks like pata_amd does an ata_pci_clear_simplex only for certain chip models, maybe this model needs it as well? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ - To unsubscribe

Re: sata_nv ADMA controller lockup investigation

2007-02-15 Thread Robert Hancock
Jeff Garzik wrote: Robert Hancock wrote: It's curious that only the post-cache-flush command is having issues, and normal NCQ operation seems fine. Maybe it's related to that tag 0 being reused repeatedly? If you take cache flush out of the equation, what happens when NCQ is enab

sata_nv ADMA controller lockup investigation

2007-02-14 Thread Robert Hancock
there's something wrong with the way we are giving the commands to the controller, using the APPEND register. That's another thing that's not in the ADMA standard. It's curious that only the post-cache-flush command is having issues, and normal NCQ operation seems fine. Maybe

Re: libata FUA revisited

2007-02-13 Thread Robert Hancock
Q on it entirely as obviously little thought or testing went into the implementation.. -- 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 lin

Re: libata FUA revisited

2007-02-12 Thread Robert Hancock
d be nice if you add a comment why the drives are added for documentation. Will do shortly. Eric, do you have any info on the blacklisting of that Maxtor 7B250S0 drive? I would hope that Silicon Image would have a good reason for blacklisting that one.. -- Robert Hancock S

Re: libata FUA revisited

2007-02-11 Thread Robert Hancock
Robert Hancock wrote: Given the above, what I'm proposing to do is: -Remove the blacklisting of Maxtor BANC1G10 firmware for FUA. If we need to FUA-blacklist any drives this should likely be added to the existing "horkage" mechanism we now have. However, at this point I don&

libata FUA revisited

2007-02-11 Thread Robert Hancock
BANC1B70 HTS541060G9SA00 MB3OC60D HTS541080G9SA00 MB4OC60D HTS541010G9SA00 MBZOC60D (the latter 3 being Hitachi Travelstar drives) -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.r

[PATCH] sata_nv: add back some verbosity into ADMA error_handler

2007-02-11 Thread Robert Hancock
it won't spew at inappropriate times like suspend/resume. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-git6/drivers/ata/sata_nv.c 2007-02-11 17:31:19.0 -0600 +++ linux-2.6.20-git6edit/drivers/ata/sata_nv.c 2007-02-11 17:40:48.0 -0600 @@ -1442

[PATCH] sata_nv: handle SError status indication

2007-02-11 Thread Robert Hancock
ADMA-capable controllers provide a bit in the status register that appears to indicate that the controller detected an SError condition. Update sata_nv to detect this and trigger error handling in order to handle the fault. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- drive

pcim_enable_device BUGs for libata devices in 2.6.20-git6

2007-02-11 Thread Robert Hancock
y. If the event was something else, then pcim_enable_device complains because the device was previously enabled and never disabled. Not sure what the best way to fix this is? -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http:

[PATCH -mm] libata: warn if speed limited due to 40-wire cable

2007-02-09 Thread Robert Hancock
her the rate is being limited by the cable and not the drive or controller. I haven't tested whether the message actually shows up, as my system isn't horked in this manner.. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-rc6-mm3/drivers/ata/libata-core.c

[PATCH -mm] sata_nv: propagate ata_pci_device_do_resume return value

2007-02-04 Thread Robert Hancock
ata_pci_device_do_resume can fail if the PCI device couldn't be re-enabled. Update sata_nv to propagate the return value from this call and to not try to do any other resume activities if it fails. Fixes a compile warning. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux

[PATCH -mm] sata_nv: wait for response on entering/leaving ADMA mode

2007-02-04 Thread Robert Hancock
o fix that problem, this is something we should likely be doing in any case. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-rc6-mm3/drivers/ata/sata_nv.c 2007-02-04 21:48:25.0 -0600 +++ linux-2.6.20-rc6-mm3edit/drivers/ata/sata_nv.c 2007-02-04 22:13:36.

Re: [PATCH RFC] sd: spin down disks on removal or power-down

2007-01-31 Thread Robert Hancock
Stefan Richter wrote: Robert Hancock wrote: http://marc.theaimsgroup.com/?t=11692262122 It looks like Tejun's patch essentially does the same thing as mine with the addition of the control from userspace. There is one exception though, my patch also does the stop on removal of the

Re: [PATCH] libata: fix translation for START STOP UNIT

2007-01-30 Thread Robert Hancock
, the main "how-to" page I found had an addendum that "I gave up on this, it's too hard, I just attach the patches". If anyone has gotten any new insight.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Pa

Re: [PATCH RFC] sd: spin down disks on removal or power-down

2007-01-29 Thread Robert Hancock
oes the stop on removal of the SCSI disk (i.e. writing 1 to its "delete" file in sysfs, what scsiadd -r does). I think it makes sense if the user selected the disk to be spun down on shutdown to do it on removal as well, as it is potentially about to be physically removed/powered down (esp

Re: [PATCH RFC] sd: spin down disks on removal or power-down

2007-01-29 Thread Robert Hancock
ds to be set to 0. Without it the other 9 bytes will contain uninitialized junk. For the other cleanup changes, though: Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTE

[PATCH RFC] sd: spin down disks on removal or power-down

2007-01-28 Thread Robert Hancock
request succeeded but it didn't actually spin the drive down. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ --- linux-2.6.20-rc6nv/drivers/scsi/sd.c2007-01-28 17:00:00.0 -0600 ++

[PATCH] libata: fix translation for START STOP UNIT

2007-01-28 Thread Robert Hancock
he ATA standard says this means disable the standby timer, which effectively does nothing. Change this to issue a STANDBY IMMEDIATE command which will actually spin the drive down. The SAT (SCSI/ATA Translation) standard revision 9 concurs with this choice. Signed-off-by: Robert Hancock &l

[PATCH -mm] sata_nv: use ADMA for NODATA commands

2007-01-28 Thread Robert Hancock
read it. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ --- linux-2.6.20-rc6nv/drivers/ata/sata_nv.c2007-01-28 17:05:27.0 -0600

[PATCH -mm] sata_nv: cleanup ADMA error handling v2

2007-01-17 Thread Robert Hancock
ant at this point since libata already dumps the state of all active commands on errors (and it also triggers at times when it shouldn't, like when suspending). Take this out. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-rc5/drivers/ata/sata_nv.c 2007-01-12 23:18:08

Re: [PATCH -mm] sata_nv: cleanup ADMA error handling

2007-01-15 Thread Robert Hancock
Robert Hancock wrote: -In the error_handler function the code would always go through and do an ADMA channel reset and also dump out the state of all the CPBs. This reset seems heinous in this situation since we haven't even decided to reset anything yet. The output seems redundant at

[PATCH -mm] sata_nv: cleanup ADMA error handling

2007-01-14 Thread Robert Hancock
when it shouldn't, like when suspending). Do the ADMA reset only on hardreset and remove the output. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.20-rc5/drivers/ata/sata_nv.c 2007-01-12 23:18:08.0 -0600 +++ linux-2.6.20-rc5edit/drivers/ata/sata_nv.

Re: [PATCH] SCSI: Add the SGPIO support for sata_nv.c

2007-01-09 Thread Robert Hancock
Since I've been the one making the most changes in sata_nv lately I figured I would make some more comments on this patch: Subject: RE: [PATCH] SCSI: Add the SGPIO support for sata_nv.c From: "Peer Chen" <[EMAIL PROTECTED]> Date: Tue, 7 Nov 2006 17:55:11 +0800 To: "Christoph Hellwig" <[EMAIL PRO

[PATCH] sata_nv: add suspend/resume support v3 (Resubmit)

2007-01-03 Thread Robert Hancock
Thoughts from Jeff & company on merging the patch below into libata-dev? This has been in the -mm tree for over a month now, I haven't heard any complaints about regressions.. --- From: Robert Hancock <[EMAIL PROTECTED]> This patch adds the necessary callbacks to support

[PATCH] sata_nv: add suspend/resume support v3

2006-12-12 Thread Robert Hancock
freed while it could potentially still be used. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- linux-2.6.19-rc6-mm2/drivers/ata/sata_nv.c 2006-12-12 17:49:02.0 -0600 +++ linux-2.6.19-rc6-mm2admafix/drivers/ata/sata_nv.c 2006-12-11 22:15:58.0 -0600 @@ -49,7 +

[PATCH -mm] sata_nv: fix kfree ordering in remove

2006-12-11 Thread Robert Hancock
end/resume change for sata_nv introduced a potential bug where the hpriv structure could be used after it was freed in nv_remove_one. Fix that. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL

Re: [RFC PATCH] nForce4 ADMA with NCQ: It's aliiiive..

2006-11-30 Thread Robert Hancock
issed them.. It would be nice to get this support in, those are the last NVIDIA chipsets which have NCQ support (apparently) that don't support it under Linux. Even just the hardware docs would be useful.. --- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" fr

[PATCH -mm] sata_nv: add suspend/resume support

2006-11-29 Thread Robert Hancock
needed for proper resume handling, this also removes the inline helper functions for getting ADMA register locations by storing the pointers so we don't have to keep calculating them all the time. Signed-off-by: Robert Hancock <[EMAIL PROTECTED]> --- Robert Hancock Saskat

[PATCH -mm] sata_nv: fix ATAPI in ADMA mode

2006-11-26 Thread Robert Hancock
: Robert Hancock <[EMAIL PROTECTED]> -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from [EMAIL PROTECTED] Home Page: http://www.roberthancock.com/ --- linux-2.6.19-rc6-mm1/drivers/ata/sata_nv.c 2006-11-25 10:04:14.0 -0600 +++ linux-2.6.19-rc6-mm1-adm

<    1   2