Re: hpt374 sata (Highpoint Rocket 1540)

2007-08-01 Thread Sergei Shtylyov
Bob Ham wrote: hpt37x: DPLL did not stabilize. pata_hpt37x: BIOS has not set timing clocks. hpt37x: DPLL did not stabilize. Yes, this ia a known issue, and the fix for it is in the -mm tree: I applied just that pata_hpt37x.c patch, not the whole -mm tree. It locks the machine hard

Re: hpt374 sata (Highpoint Rocket 1540)

2007-07-31 Thread Sergei Shtylyov
Bob Ham wrote: I've had a Highpoint Rocket 1540 (not RocketRAID) SATA controller for a while now, using a proprietary binary driver from Highpoint in a linux 2.4 kernel. The chipset is an hpt374. The hpt366 driver freezes on boot, as reported by others. Can we see a bootlog please? I'm

Re: [PATCH] libata: Correct IORDY handling

2007-07-31 Thread Sergei Shtylyov
PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.23rc1-mm1/drivers/ata/libata-core.c linux-2.6.23rc1-mm1/drivers/ata/libata-core.c --- linux.vanilla-2.6.23rc1-mm1/drivers/ata/libata-core.c 2007-07-26 15

Re: hpt374 sata (Highpoint Rocket 1540)

2007-07-31 Thread Sergei Shtylyov
Hello, I wrote: I've had a Highpoint Rocket 1540 (not RocketRAID) SATA controller for a while now, using a proprietary binary driver from Highpoint in a linux 2.4 kernel. The chipset is an hpt374. The hpt366 driver freezes on boot, as reported by others. Can we see a bootlog please?

Re: [PATCH] ide: add cable detection for early UDMA66 devices (take 2)

2007-07-30 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: * Move ide_in_drive_list() from ide-dma.c to ide-iops.c. * Add ivb_list[] table for listening early UDMA66 devices which don't conform to ATA4 standard wrt cable detection (bit14 is zero, only bit13 is valid) and use only device side cable

Re: [PATCH] pdc202xx_new: check ide_config_drive_speed() return value

2007-07-29 Thread Sergei Shtylyov
Hello, I wrote: Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] Oh, sorry for the dupe ack's... :- I'd just noticed that I didn't ack the amd74xx patch, so thought I hadn't ack'ed all the series. MBR, Sergei - To unsubscribe

Re: ide patches

2007-07-29 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Ok, there's a combination of things here: - First, doing a set_pio from userland (hdparm -p XX) causes the kernel to disable DMA, which I think is incorrect. It's not the case with 2.6.22 from my quick tests. The problem is that ide_config_drive_speed

Re: [PATCH] pdc202xx_new: check ide_config_drive_speed() return value

2007-07-29 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: [PATCH] amd74xx/via82cxxx: check ide_config_drive_speed() return value

2007-07-29 Thread Sergei Shtylyov
redundant setting of -{init,current}_speed. * Bump driver version. Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei PS: There's no need to notify about Acked-by: addition I think -- would save everyone a keystroke or two... ;-) - To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] cs5535: check ide_config_drive_speed() return value

2007-07-29 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: [PATCH] ide: move ide_config_drive_speed() calls to upper layers

2007-07-29 Thread Sergei Shtylyov
Hello again. :-) Bartlomiej Zolnierkiewicz wrote: * Convert {ide_hwif_t,ide_pci_device_t}-host_flag to be u16. * Add IDE_HFLAG_POST_SET_MODE host to indicate the need to program the host for the transfer mode after programming the device. Set it in

Re: [PATCH 1/11] ide-pmac: don't check kauai_lookup_timing() return value

2007-07-29 Thread Sergei Shtylyov
-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 8/12] triflex: add missing -dma_base check

2007-07-29 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: If -dma_base is not set (== PCI BAR4 cannot be reserved) then DMA hooks shouldn't be initialized or bad things will happen. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe

Re: [PATCH 6/12] pdc202xx_old: add missing -dma_base check

2007-07-29 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: If -dma_base is not set (== PCI BAR4 cannot be reserved) then DMA hooks shouldn't be initialized or bad things will happen. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe

Re: [PATCH 4/12] cs5535: add missing -dma_base check

2007-07-29 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: If -dma_base is not set (== PCI BAR4 cannot be reserved) then DMA hooks shouldn't be initialized or bad things will happen. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe

Re: [PATCH] ide: move ide_config_drive_speed() calls to upper layers

2007-07-28 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: On Fri, 27 Jul 2007 02:22:27 +0200 Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] wrote: * Convert {ide_hwif_t,ide_pci_device_t}-host_flag to be u16. * Add IDE_HFLAG_POST_SET_MODE host to indicate the need to program the host for the transfer mode

Re: [PATCH] pata_cmd64x: Correct the speed ranges

2007-07-27 Thread Sergei Shtylyov
Hello. Jeff Garzik wrote: Note that the olde driver has MWDMA fixed, and the new one has it still borken, yet MWDMA2 is the mode you're using. What about MWDMA is broken? The code that sets MWDMA timings is completely bogus -- I've already reported that before. And now I've fixed

Re: [PATCH] pata_cmd64x: Correct the speed ranges

2007-07-27 Thread Sergei Shtylyov
Hello. Jeff Garzik wrote: Note that the olde driver has MWDMA fixed, and the new one has it still borken, yet MWDMA2 is the mode you're using. What about MWDMA is broken? The code that sets MWDMA timings is completely bogus -- I've already reported that before. And now I've fixed

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-26 Thread Sergei Shtylyov
Hello. Vitaly Bordug wrote: I acn undertand your complaint in the context of an OF driver (which we don't have yet) but mmio-ide just means nothing to the current driver, and it doesn't convery enough info on the programming interface for the conceivable OF driver, it also does need to know

Re: [PATCH] cs5535: check ide_config_drive_speed() return value

2007-07-26 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: [PATCH] au1xxx: fix au1xxx_set_pio_mode()

2007-07-26 Thread Sergei Shtylyov
Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-26 Thread Sergei Shtylyov
Hello. Guennadi Liakhovetski wrote: driver to using platform-device. I got a reply, that it's not worth it now that IDE is slowly becoming obsolete, and the pata_platform serves the perpose perfectly well. I found this argument reasonable, I had the same doubt, just wanted to double-check.

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-26 Thread Sergei Shtylyov
Hello, I wrote: Also, what mmio-ide in the compat properly means in the context of ide_platform which is able to handle both port and memory mapped IDE. I/O-space is only valid in the context of PCI, ISA, or similar buses, and the bus-specific reg format indicates whether it's mmio-space

Re: [PATCH] pata_cmd64x: Correct the speed ranges

2007-07-26 Thread Sergei Shtylyov
Mikael Pettersson wrote: This fix inspired me to finally try to convert my Sun Ultra5 (sparc64) with a CMD646 [1095:0646 rev 03] to libata. With pata_cmd64x the machine has so far survived a usual boot/mrproper/reconfig/make/install/reboot kernel update cycle without any issues, and

Re: [PATCH] pdc202xx_new: check ide_config_drive_speed() return value

2007-07-26 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: [PATCH] pata_cmd64x: Correct the speed ranges

2007-07-26 Thread Sergei Shtylyov
Hello. Alan Cox wrote: I must have been half asleep when doing the original code Signed-off-by: Alan Cox [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.23rc1-mm1/drivers/ata/pata_cmd64x.c

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Sergei Shtylyov
Hello, I wrote: diff --git a/arch/powerpc/boot/dts/mpc8349emitx.dts b/arch/powerpc/boot/dts/mpc8349emitx.dts index db0d003..f8f0e8a 100644 --- a/arch/powerpc/boot/dts/mpc8349emitx.dts +++ b/arch/powerpc/boot/dts/mpc8349emitx.dts @@ -37,6 +37,15 @@ reg = 1000;

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Sergei Shtylyov
Vitaly Bordug wrote: This is now very similar to pata_platform.c, they both use same platform data structure and same resources. To achieve that, byte_lanes_swapping platform data variable and platform specified iops removed from that driver. It's fine, since those were never used anyway.

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Sergei Shtylyov
Hello. Scott Wood wrote: +hwif-hw.io_ports[IDE_DATA_OFFSET] = port; + +port += (1 pdata-ioport_shift); +for (i = IDE_ERROR_OFFSET; i = IDE_STATUS_OFFSET; + i++, port += (1 pdata-ioport_shift)) Looks like shift doesn't buy as anything, why not just use stride? It

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Sergei Shtylyov
Guennadi Liakhovetski wrote: This is now very similar to pata_platform.c, they both use same platform data structure and same resources. To achieve that, byte_lanes_swapping platform data variable and platform specified iops removed from that driver. It's fine, since those were never used

Re: [PATCH 1/2] [IDE] Platform IDE driver (was: MMIO IDE driver)

2007-07-25 Thread Sergei Shtylyov
Guennadi Liakhovetski wrote: This is now very similar to pata_platform.c, they both use same platform data structure and same resources. To achieve that, byte_lanes_swapping platform data variable and platform specified iops removed from that driver. It's fine, since those were never used

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Sergei Shtylyov
Scott Wood wrote: Scott Wood wrote: Also, what mmio-ide in the compat properly means in the context of ide_platform which is able to handle both port and memory mapped IDE. I/O-space is only valid in the context of PCI, ISA, or similar buses, and the bus-specific reg format indicates

Re: [PATCH 2/2] [POWERPC] MPC8349E-mITX: use platform IDE driver for CF interface

2007-07-25 Thread Sergei Shtylyov
Hello. Scott Wood wrote: Also, what mmio-ide in the compat properly means in the context of ide_platform which is able to handle both port and memory mapped IDE. I/O-space is only valid in the context of PCI, ISA, or similar buses, and the bus-specific reg format indicates whether it's

Re: [PATCH 1/2] [IDE] Platform IDE driver

2007-07-25 Thread Sergei Shtylyov
Scott Wood wrote: It doesn't buy us anything in here, but it's conceivable that someone may want to write a driver that uses a shift in the I/O accessor rather than an array of port offsets, It wouldn't be IDE driver then, and neither it would be libata which also does this another way

Re: [PATCH] pata_hpt37x: Fix 2.6.22 clock PLL regression

2007-07-24 Thread Sergei Shtylyov
Hello. Alan Cox wrote: Just one version of Linux ago The PLL code broke - oh no! But set the right mode And fix up the code Makes the PLL timing sync go /me applauds :-) Closes-bug: #8791 Signed-off-by: Alan Cox [EMAIL PROTECTED] Acked-by: Sergei

Re: ide patches

2007-07-23 Thread Sergei Shtylyov
Hello. Benjamin Herrenschmidt wrote: Note that with all your patches applied, it doesn't seem to auto-tune the speed at boot anymore and doesn't enable DMA. I can make it do so with hdparm -d1, in which case, for example, on this wallstreet, I get MDMA2 which is correct, however, it seems to

Re: [PATCH 7/11] ide: add __ide_wait_stat() helper

2007-07-23 Thread Sergei Shtylyov
comment for ide_wait_stat() from linux/ide.h. Cc: Benjamin Herrenschmidt [EMAIL PROTECTED] Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body

Re: PATA driver for Atmel AVR32

2007-07-23 Thread Sergei Shtylyov
Hello. Alan Cox wrote: /* Only use IORDY/NWAIT for PIO mode 3 and 4 */ if (pio_mode 3) info-smc.nwait_mode = 0; else info-smc.nwait_mode = 3; That is wrong. Yeah. Any mode for PIO2+ will use IORDY. Modes below may require it

Re: ide patches

2007-07-23 Thread Sergei Shtylyov
Hello. Benjamin Herrenschmidt wrote: Ok, there's a combination of things here: - First, doing a set_pio from userland (hdparm -p XX) causes the kernel to disable DMA, which I think is incorrect. That's the way ide_config_drive_speed() works. And I still think that's bad. Bart

Re: [PATCH 6/11] ide: ide_config_drive_speed() bugfixes

2007-07-22 Thread Sergei Shtylyov
Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 10/11] ide-pmac: remove nIEN clearing from pmac_ide_do_setfeature()

2007-07-22 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Upper layers are responsible for controlling nIEN so don't clear nIEN after command execution in pmac_ide_do_setfeature(). Cc: Benjamin Herrenschmidt [EMAIL PROTECTED] Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov

Re: [PATCH 2/4] it8213/piix/slc90e66: don't change DMA settings when programming PIO

2007-07-20 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] Index: b/drivers/ide/pci/it8213.c === --- a/drivers/ide/pci/it8213.c +++ b/drivers/ide/pci

Re: [PATCH 3/4] sis5513: don't change UDMA settings when programming PIO

2007-07-20 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http

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

2007-07-17 Thread Sergei Shtylyov
Hello. Rogier Wolff wrote: Ah, that makes sense -- during PIO interrupts happen a lot more often. 20 secs still seem to be too much. I don't think so, even for modern drives. Figure 8-10 seconds max for spin-up, plus 6-9 seconds to do a sector re-assignment or retries on a bad block (a

Re: [PATCH] sc1200: remove redundant warning message from sc1200_tune_chipset()

2007-07-14 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: ide_config_drive_speed() called by sc1200_set_xfer_mode() already gives a meaningful warning message in case of failure. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei

Re: [PATCH] siimage: fix -set_pio_mode method to select PIO data transfer

2007-07-14 Thread Sergei Shtylyov
for PIO modes in siimage_tune_chipset(). * Bump driver version. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] Index: b/drivers/ide/pci/siimage.c === --- a/drivers/ide/pci

Re: [PATCH 1/6] icside: fix -speedproc to return on unsupported modes

2007-07-14 Thread Sergei Shtylyov
ide_config_drive_speed() at the end of icside_set_speed(). Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info

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

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

Re: [PATCH 5/6] sgiioc4: use ide_tune_dma()

2007-07-13 Thread Sergei Shtylyov
PROTECTED] Nice cleanups... Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 4/12] cs5535: PIO fixes

2007-07-13 Thread Sergei Shtylyov
/ IORDY + two invalid values) being set on the device instead of values 0x08-0x0c (XFER_PIO_[0,4]). Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body

Re: [PATCH 3/6] ide-pmac: PIO fixes

2007-07-13 Thread Sergei Shtylyov
for DMA modes). This patch should have no effect on the default kernel behavior because IDE pmac driver doesn't enable -autotune (this would also explain why some of the above bugs remained unfixed for so long). Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei

Re: [PATCH 4/6] amd74xx/via82cxxx: use ide_tune_dma()

2007-07-13 Thread Sergei Shtylyov
timings) * Bump driver version. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http

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

2007-07-13 Thread Sergei Shtylyov
Mark Lord wrote: I've lost the original question from this thread, but the idea of the The original question concerned specifically the DMA command timeout which is twice more than the usual one, WAIT_CMD (10 seconds). longish timeouts was that drive *may* be spun down (standby), and

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

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

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

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

Re: [PATCH 9/12] sis5513: add -udma_filter method for chipset_family = ATA_133

2007-07-12 Thread Sergei Shtylyov
be no functionality changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: [PATCH] ide: fix drive side 80c cable check, take 2

2007-07-12 Thread Sergei Shtylyov
Hello. Tejun Heo wrote: eighty_ninty_three() had word 93 validitity check but not the 80c bit test itself (bit 12). This increases the chance of incorrect wire detection especially because host side cable detection is often unreliable and we sometimes soley depend on drive side cable

Re: [PATCH libata-dev#upstream-fixes] libata: fix drive side 80c cable check, take 3

2007-07-12 Thread Sergei Shtylyov
Hello, I wrote: The 80c wire bit is bit 13, not 14. Bit 14 is always 1 if word93 is implemented. This increases the chance of incorrect wire detection especially because host side cable detection is often unreliable and we sometimes soley depend on drive side cable detection. Fix the test

Re: [PATCH 1/6] icside: fix -speedproc to return on unsupported modes

2007-07-12 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: Moreover, I think the patch is quite broken. If an invalid DMA mode is passed, currently the driver sets the cycle time to 480ns (stored in drive_data) since both cycle_time and use_dma_info will be zero. Moreover, 'on' will be zero, causing

Re: [PATCH 1/6] icside: fix -speedproc to return on unsupported modes

2007-07-11 Thread Sergei Shtylyov
Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/6] icside: fix -speedproc to return on unsupported modes

2007-07-11 Thread Sergei Shtylyov
PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] I wonder why Sergei's acking this patch - do you have the hardware to test it on? Are you somehow involved in this driver? I think the answer to both is most likely no. This just signified my positive review (as for any other IDE patch

Re: Question about PATA Sil680 Bus Reset Code

2007-07-10 Thread Sergei Shtylyov
Alan Cox wrote: I guess it's been blindly copied over form drivers/ide/pci/siimage.c... Yet the order of events between IDE and libata drivers is different: the old driver's resetproc() method is called just after the twiddling the bit on/off, the new driver calls ata_std_softreset()

Re: [PATCH 10/12] ide: move ide_rate_filter() calls to the upper layer

2007-07-10 Thread Sergei Shtylyov
Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

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

2007-07-10 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: On Feb 20, 2007, at 5:44 PM, Bartlomiej Zolnierkiewicz wrote: On Wednesday 21 February 2007 02:19, Suleiman Souhlal wrote: It can be changed via /proc/ide/hd?/settings. Why do we need to change IDE DMA timeout dynamically? I've used it to

Re: [PATCH 3/12] cs5520: fix PIO auto-tuning in -ide_dma_check method

2007-07-09 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: Question about PATA Sil680 Bus Reset Code

2007-07-09 Thread Sergei Shtylyov
Hello. Fajun Chen wrote: Could someone help me interpret the code snippet below: static int sil680_bus_reset(struct ata_port *ap,unsigned int *classes) { struct pci_dev *pdev = to_pci_dev(ap-host-dev); unsigned long addr = sil680_selreg(ap, 0); u8 reset;

Re: [PATCH 1/2] [ide] mmio ide support

2007-07-07 Thread Sergei Shtylyov
Hello. Vitaly Bordug wrote: This adds support for MMIO IDE device like CompactFlash in TrueIDE mode. Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] Signed-off-by: Vitaly Bordug [EMAIL PROTECTED] [...] diff --git a/drivers/ide/legacy/mmio-ide.c b/drivers/ide/legacy/mmio-ide.c new file

Re: [PATCH 6/15] ide: ide_find_best_pio_mode() fixes

2007-07-04 Thread Sergei Shtylyov
: * Fix PIO number being returned incorrectly instead of PIO mode (Noticed by Sergei). Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body

Re: [PATCH 5/6] ide: add ata_dev_has_iordy() helper

2007-07-04 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: I was thinking of checking if the drive really supports IORDY before issuing a command to set PIO mode (and just skipping the command if there's no IORDY -- well, maybe adding an extra check that the passed mode is acceptable to the drive, i.e. = its default

Re: [PATCH] ide: add ide_set{_max}_pio() (take 2)

2007-07-04 Thread Sergei Shtylyov
/fixups per Sergei's suggestions. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Though some nits haven't been addressed: Acked-by: Sergei Shtylyov [EMAIL PROTECTED] Index: b/drivers/ide/pci/jmicron.c

Re: [PATCH 3/6] siimage: PIO mode setup fixes

2007-07-04 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: * Add sil_tuneproc() wrapper for siimage_tuneproc() which also sets PIO mode on the device. Planning on the global prefix change? :-) Yep. Well, it didn't work out with 'ata_'... ;-) Because of bad libata taking over our preciouss

Re: [PATCH] it821x: fix incorrect SWDMA mask

2007-07-03 Thread Sergei Shtylyov
modes are available. * Bump driver version. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo

Re: [PATCH 9/15] ide: add PIO masks

2007-07-03 Thread Sergei Shtylyov
... Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] Index: b/drivers/ide/pci/it8213.c === --- a/drivers/ide/pci/it8213.c +++ b/drivers/ide/pci/it8213.c @@ -276,6 +276,7 @@ static

Re: [PATCH] ide: add ide_set{_max}_pio() (take 2)

2007-07-03 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: * Add IDE_HFLAG_ABUSE_{PREFETCH,FAST_DEVSEL,DMA_MODES} flags and set them in ht6560, cmd640, cmd64x and sc1200 host drivers. * Add set_pio_mode_abuse() for checking if host driver has a non-standard -tuneproc() implementation and use it in do_special().

Re: [PATCH 8/15] ide: remove ide_find_best_pio_mode()

2007-07-03 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: * Add -host_flags to ide_hwif_t to store ide_pci_device_t.host_flags, assign it in setup-pci.c:ide_pci_setup_ports(). * Add IDE_HFLAG_PIO_NO_{BLACKLIST,DOWNGRADE} to ide_pci_device_t.host_flags and teach ide_get_best_pio_mode() about them. Also remove

Re: [PATCH] ide: add ide_dev_has_iordy() helper (take 4)

2007-07-02 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: * Add ide_dev_has_iordy() helper and use it sl82c105 host driver. * Remove no longer needed ide_pio_data_t.use_iordy field. v2/v3: * Fix issues noticed by Sergei: - correct patch description - fix comment in ide_get_best_pio_mode() v4: * Fix

Re: [PATCH 7/15] ide: drop PIO data argument from ide_get_best_pio_mode()

2007-07-02 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: * Drop no longer needed PIO data argument from ide_get_best_pio_mode() and convert all users accordingly. * Remove no longer needed ide_pio_data_t. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL

Re: [1/2] 2.6.22-rc6: known regressions v2

2007-06-29 Thread Sergei Shtylyov
Hello. Michal Piotrowski wrote: IDE Subject: 2.6.22-rcX: hda: lost interrupt References : http://lkml.org/lkml/2007/6/29/121 Submitter : David Chinner [EMAIL PROTECTED] Status : unknown Probing IDE interface ide0... hda: probing with STATUS(0xa0) instead of ALTSTATUS(0x58)

Re: [BUG] ide dma_timer_expiry, then hard lockup

2007-06-29 Thread Sergei Shtylyov
Hello, I wrote: I've got a hard lockup in the ide subsystem, probably due to some irq spew or something like that. I've just bought a brand new Maxtor 320GB disk driver for the insane price of $70 US to replace another failing drive. It works well under light load; I was able to copy about

[PATCH pata-2.6 fix] hpt366: use correct enablebits for HPT36x

2007-06-29 Thread Sergei Shtylyov
The HPT36x chips finally turned out to have the channel enable bits -- however, badly implemented. Make use of them despite it's probably only going to burden the driver's code -- assuming both channels are always enabled by the HighPoint BIOS anyway... Signed-off-by: Sergei Shtylyov [EMAIL

Re: [PATCH 5/6] ide: add ata_dev_has_iordy() helper

2007-06-29 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: [...] Damn, I should have re-check ATA specs before writing this. :) Yeah, never hurts... but takes time. ;-) I was thinking of checking if the drive really supports IORDY before issuing a command to set PIO mode (and just skipping the command

[PATCH pata-2.6] hpt366: simplify UltraDMA filtering (take 4)

2007-06-29 Thread Sergei Shtylyov
hpt_info' with 'max_ultra' specifying the maximum UltraDMA mode allowed; - rewrite hpt3xx_udma_filter() to differ the filters based on the 'chip_type' field, and only use it for HPT366 and HPT370[A] where it's really necessary. Signed-off-by: Sergei Shtylyov [EMAIL PROTECTED] Signed-off

[PATCH] hpt366: blacklist MAXTOR STM3320620A for UltraDMA/66

2007-06-29 Thread Sergei Shtylyov
Add the MAXTOR STM3320620A drive into the UltraDMA/66 mode blacklist for the HPT36x chips. Signed-off-by: Sergei Shtylyov [EMAIL PROTECTED] --- Linas, here's the patch at last -- it should apply atop 2.6.21.5. Please, make sure it works for you. drivers/ide/pci/hpt366.c |3 ++- 1 files

Re: [PATCH 5/6] ide: add ata_dev_has_iordy() helper

2007-06-27 Thread Sergei Shtylyov
/v3: * Fix issues noticed by Sergei: - correct patch description - fix comment in ide_get_best_pio_mode() Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide

Re: [RFT] hpt366: reset DMA state machine on timeouts

2007-06-26 Thread Sergei Shtylyov
Hello. Linas Vepstas wrote: Now I'm confused too -- did you get any DMA timeouts this time? No. And yes, this is confusing, as the initial hang that I was seeing was preceeded by DMA timeout messages on the screen (as posted in the initial email). Now, with the patched kernel, I'm not

Re: [PATCH 5/5] via82cxxx: backport short cables support from pata_via.c

2007-06-26 Thread Sergei Shtylyov
Hello. Bartlomiej Zolnierkiewicz wrote: Backport short cables support from pata_via.c. This patch should allow UDMA 2 modes on Acer Ferrari 3400. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from

Re: [PATCH 3/5] alim15x3: backport short cables support from pata_ali.c

2007-06-26 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Backport short cables support from pata_ali.c and while at it cleanup existing cable detection code. This patch should allow UDMA 2 modes on HP Pavilion N5430 and Fujitsu P2000. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei

Re: [PATCH 2/5] piix: backport short cables support from ata_piix.c

2007-06-26 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Backport short cables support from ata_piix.c. This patch should allow UDMA 2 modes on: - Acer 5602WLMi - Acer 3682WLMi - Asus W5F - Acer Aspire 2023WLMi Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL

Re: [PATCH 4/5] sis5513: backport short cables support from pata_sis.c

2007-06-26 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Backport short cables support from pata_sis.c. This patch should allow UDMA 2 modes on ASUS A6K. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] Index: b/drivers/ide/pci/sis5513.c

Re: [PATCH 3/6] siimage: PIO mode setup fixes

2007-06-26 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: A lot to argue about here... * Add sil_tuneproc() wrapper for siimage_tuneproc() which also sets PIO mode on the device. Planning on the global prefix change? :-) * Add code limiting maximum PIO mode according to the pair device capabilities to

Re: [PATCH 5/6] ide: add ata_dev_has_iordy() helper

2007-06-24 Thread Sergei Shtylyov
description - remove stale comment from ide_get_best_pio_mode() I meant something like changing use_iordy to IORDY but it's good as is now... - use only ata_dev_has_iordy() in sl82c105 host driver Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL

Re: [RFT] hpt366: reset DMA state machine on timeouts

2007-06-23 Thread Sergei Shtylyov
Hello. Linas Vepstas wrote: Reset HPT36x's DMA state machine on a DMA timeout the way it's done for HPT370. drivers/ide/pci/hpt366.c | 24 +++- This worked great! I hope you meant those messages were preceeded by DMA timeouts (otherwise this code wouldn't come

Re: [PATCH] ide: Stop mapping ROMs

2007-06-23 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: Various old IDE drivers go mapping ROM devices for no apparent reason and without using the ROM mapping API we now have. They don't actually use Hm, do you mean the sysfs based aproach? I've tried that and somehow it failed to work for me -- that's because

Re: [PATCH 6/6] ide: add ide_pci_device_t.host_flags

2007-06-23 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: * Rename ide_pci_device_t.flags to ide_pci_device_t.host_flags and IDEPCI_FLAG_ISA_PORTS flag to IDE_HFLAG_ISA_PORTS. Erm, do you intend also adding device_flags field? :-O ;-) * Add IDE_HFLAG_SINGLE flag for single channel devices. * Convert core

Re: [PATCH 4/6] ide: make ide_get_best_pio_mode() print info if overriding PIO mode

2007-06-23 Thread Sergei Shtylyov
] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] MBR, Sergei - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 5/6] ide: add ata_dev_has_iordy() helper

2007-06-23 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: This one is actually arguable... * Add ata_dev_has_iordy() helper. I thought IDE subsys make use of only 'ide_' prefixes. :-) * Use it in sl82c105 host driver so it always gets the correct info (use_iordy was incorrectly set for pio != 255 cases).

Re: [PATCH 1/6] qd65xx: fix PIO mode selection

2007-06-23 Thread Sergei Shtylyov
Hello. Alan Cox wrote: PIO4 is a maximum PIO mode supported by a driver. Using 255 as a max_mode argument to ide_get_best_pio_mode() could result in wrong timings being used by a driver (for pio equal to 5) or OOPS (for pio values 5 255). The qdi6580 driver is somewhat hosed. The libata

Re: [PATCH 1/6] qd65xx: fix PIO mode selection

2007-06-23 Thread Sergei Shtylyov
[EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] --- drivers/ide/legacy/qd65xx.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Index: b/drivers/ide/legacy/qd65xx.c === --- a/drivers/ide/legacy/qd65xx.c

Re: [PATCH] ide: Stop mapping ROMs

2007-06-22 Thread Sergei Shtylyov
Hello. Alan Cox wrote: Various old IDE drivers go mapping ROM devices for no apparent reason and without using the ROM mapping API we now have. They don't actually use Hm, do you mean the sysfs based aproach? I've tried that and somehow it failed to work for me -- that's because I

Re: SATA: Is DPO and FUA ever supported?

2007-06-22 Thread Sergei Shtylyov
Hello. Michael Tokarev wrote: On each and every machine out there, and on every dmesg output posted on numerous mailinglists, I see messages similar to this: scsi 0:0:0:0: Direct-Access ATA ST3250620NS 3.AE PQ: 0 ANSI: 5 SCSI device sda: 488397168 512-byte hdwr sectors (250059

<    1   2   3   4   5   6   7   8   >