Re: SATA timeouts on two disks

2008-01-13 Thread Mikael Pettersson
Jim MacBaine writes: > Hi, > > Recently I'm experiencing strange sata errors on my desktop system. > The system was recently equipped with three 250 GB SATA drives from Clue #1: added drives > three different manufacturers and I'm having an identical problem on > two of them. The drives a

Re: Problem setting dma using pata_it821x driver in vanilla 2.6.23.12 and gentoo-sources 2.6.23-r3

2008-01-13 Thread Alan Cox
> $ hdparm --Istdin < hdparm.out > ATA device, with non-removable media > Model Number: Integrated Technology Express Inc > Serial Number: G! > Standards: > Likely used: 1 > Configuration: > Logical max current > cylinders 0

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

2008-01-13 Thread Alan Cox
> Other than that, I guess the solutions would be to just set a 32-bit > mask on the device if either port has an ATAPI device connected (which > is fairly ugly, considering that you could do things like hotplug an > ATAPI device when the other port was in use, for example), or do > something t

Re: Problem setting dma using pata_it821x driver in vanilla 2.6.23.12 and gentoo-sources 2.6.23-r3

2008-01-13 Thread Marc Howard Zuckman
On Sun, 13 Jan 2008, Alan Cox wrote: $ hdparm --Istdin < hdparm.out ATA device, with non-removable media Model Number: Integrated Technology Express Inc Serial Number: G! Standards: Likely used: 1 Configuration: Logical max current

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

2008-01-13 Thread James Bottomley
On Sun, 2008-01-13 at 13:33 +, Alan Cox wrote: > > Other than that, I guess the solutions would be to just set a 32-bit > > mask on the device if either port has an ATAPI device connected (which > > is fairly ugly, considering that you could do things like hotplug an > > ATAPI device when t

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

2008-01-13 Thread Alan Cox
> 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 this one, you know everything will work. The different device one is

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

2008-01-13 Thread James Bottomley
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 this one,

[Bug 5911] siimage.c interrupts screaming

2008-01-13 Thread bugme-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=5911 --- Comment #12 from [EMAIL PROTECTED] 2008-01-13 11:05 --- Created an attachment (id=14437) --> (http://bugzilla.kernel.org/attachment.cgi?id=14437&action=view) copy of minicom bootlog panic.txt 2.6.24-r6-mm1 does not seem quite ready

[PATCH 1/12] ide-floppy: remove struct idefloppy_mode_parameter_header

2008-01-13 Thread Borislav Petkov
Signed-off-by: Borislav Petkov <[EMAIL PROTECTED]> --- drivers/ide/ide-floppy.c | 26 +++--- 1 files changed, 3 insertions(+), 23 deletions(-) diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 2b9885f..7648684 100644 --- a/drivers/ide/ide-floppy.c +++ b/

[PATCH 2/12] ide-floppy: remove struct idefloppy_flexible_disk_page

2008-01-13 Thread Borislav Petkov
Signed-off-by: Borislav Petkov <[EMAIL PROTECTED]> --- drivers/ide/ide-floppy.c | 90 ++--- 1 files changed, 36 insertions(+), 54 deletions(-) diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 7648684..06d83cb 100644 --- a/drivers/ide

[PATCH 3/12] ide-floppy: remove struct idefloppy_capacity_descriptor

2008-01-13 Thread Borislav Petkov
Also, - remove the accompanying 4 byte idefloppy_capacity_header. - rename functions from idefloppy_... to ide_floppy_... after cleanup. - simplify loop in ide_floppy_get_capacity() by reversing if-test condition logically. - finally, fix white space and checkpatch.pl issues Signed-off-by: Borisla

[PATCH 4/12] ide-floppy: factor out ioctl handlers from idefloppy_ioctl()

2008-01-13 Thread Borislav Petkov
By passing idefloppy_floppy_t *floppy to the factored out functions, we get rid of (almost) all local vars so stack usage should be at minimum here. Also, we merge idefloppy_begin_format() into idefloppy_format_start() since it is its only user. Also, rename idefloppy_format_start() to idefloppy_fo

[PATCH 5/12] ide-floppy: report DMA handling in idefloppy_pc_intr() properly

2008-01-13 Thread Borislav Petkov
Signed-off-by: Borislav Petkov <[EMAIL PROTECTED]> --- drivers/ide/ide-floppy.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 00ea8d6..5004773 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-flo

[PATCH 7/12] ide-floppy: remove IDEFLOPPY_DEBUG_BUGS macro

2008-01-13 Thread Borislav Petkov
Signed-off-by: Borislav Petkov <[EMAIL PROTECTED]> --- drivers/ide/ide-floppy.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index b826ac5..e7cc9dd 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-flop

[PATCH 8/12] ide-floppy: merge idefloppy_{input,output}_buffers

2008-01-13 Thread Borislav Petkov
We merge idefloppy_{input,output}_buffers() into idefloppy_io_buffers() by introducing a 4th arg. called direction. According to its value we atapi_input_bytes() or atapi_output_bytes(). Also, this simplifies the interrupt handler logic a bit. Finally, rename idefloppy_io_buffers() to ide_floppy_io

[PATCH 11/12] ide-floppy: remove IDEFLOPPY_DEBUG_INFO

2008-01-13 Thread Borislav Petkov
This info is already available through ioctl() and /proc Signed-off-by: Borislav Petkov <[EMAIL PROTECTED]> --- drivers/ide/ide-floppy.c | 63 + 1 files changed, 13 insertions(+), 50 deletions(-) diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/id

[PATCH 6/12] ide-floppy: mv idefloppy_{should_,}report_error

2008-01-13 Thread Borislav Petkov
In addition to shortening the function name, move the printk-call into the function thereby saving some code lines. Also, make the function out_of_line since it is not on a performance critical path. Finally, rename the reworked function to ide_floppy..(). Signed-off-by: Borislav Petkov <[EMAIL PR

[PATCH 9/12] ide-floppy: remove unused IDEFLOPPY_USE_READ12

2008-01-13 Thread Borislav Petkov
This flag is not being set anywhere in the driver so it can go. Signed-off-by: Borislav Petkov <[EMAIL PROTECTED]> --- drivers/ide/ide-floppy.c | 17 ++--- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 6c917

[PATCH 0/12] ide-floppy redux v2.5

2008-01-13 Thread Borislav Petkov
Hi Bart, here are the remaining patches which had issues to be worked out. I decided to keep the Flexible Disk Page and Capacity Descriptor in idefloppy_floppy_t for the sake of the two printk calls for which they are used. Otherwise, we'll be changing long-known driver behavior and this won't be

[PATCH 10/12] ide-floppy: remove atomic test_*bit macros

2008-01-13 Thread Borislav Petkov
..and replace them with flag enums. Signed-off-by: Borislav Petkov <[EMAIL PROTECTED]> --- drivers/ide/ide-floppy.c | 132 + 1 files changed, 73 insertions(+), 59 deletions(-) diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 790e

[PATCH 12/12] ide-floppy: fix most of the remaining checkpatch.pl issues

2008-01-13 Thread Borislav Petkov
such as ERROR: switch and case should be at the same indent ERROR: need spaces around that '=' (ctx:VxV) ERROR: trailing statements should be on next line WARNING: no space between function name and open parenthesis '(' WARNING: printk() should include KERN_ facility level ERROR: That open brace {

ATA device reset, shoud I be concerned?

2008-01-13 Thread Georgi Chulkov
Hello, During heavy disk load on my laptop, sometimes the IDE disk will pause for a second and then continue. I get this in my kernel log: [ 9031.028000] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen [ 9031.028000] ata1.00: cmd c8/00:08:90:ca:ce/00:00:00:00:00/e0 tag 0 cdb 0x

sata_promise: Keeps saying SATA link down (SStatus 0 SControl 0)

2008-01-13 Thread Kurt Roeckx
Hi, I've just tried the 2.6.24-rc7 kernel (from Debian's experimental kernel archive), running the x86_64 kernel. I keep getting things like this in my log: Jan 13 19:21:10 intrepid kernel: ata2: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xa frozen Jan 13 19:21:10 intrepid kernel: ata2: hot

Re: Sata 4726 Testing

2008-01-13 Thread Tejun Heo
Andrew Ryder wrote: > Tejun, > > I have completed some of the testing, things were working fine.. then > something died. It will not even recognize the 4726 anymore. During book > when the HBA does it scan nor in windows 2000 does anything work or be > recognized. > > I will have a new eSATA cabl

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

2008-01-13 Thread Kuan Luo
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 preven

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 Kuan Luo
Robert Hancock wrote: > As I mentioned, this doesn't seem to resolve the problem we're seeing > with rapidly intermixed NCQ commands and cache flushes (at > least, if I > take out the arbitrary 20usec delay from the driver and add > this patch, > the problem still shows up). It could be a simi