CompactFlash and HD unhappy together on the same IDE channel

2007-08-18 Thread Malcolm Gillies
My PATA hard disk is crippled by CRC errors when it's on the same cable as a 1GB SanDisk Ultra II CompactFlash card in CF to IDE adaptor. Any ideas why? By swapping around components, I've established that the problem is unlikely due to the cable (which is 50cm long 80-wire), hard disk or

Re: [PATCH 1/8] alim15x3: PIO fallback fix

2007-08-18 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: [PATCH] alim15x3: PIO fallback fix If DMA tuning fails always set the best PIO mode. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] Oh, it's belated now. :-/ BTW, I'm going to hack on this

File corruption in 2.6.18 thru 2.6.22

2007-08-18 Thread Neil Romig
I have been upgrading my kernel from 2.6.14 to get at the new wireless stuff, but have hit a big problem. When copying files, I get random (?) corruption, which is preventing me from using my linux system (Linux From Scratch) as it affects compiling as well (assembler complains about garbage in

[PATCH 1/2] pdc202xx_new: fix PCI refcounting

2007-08-18 Thread Sergei Shtylyov
The driver erroneously lets go the mate IDE chip in init_setup_pdc20270() when ide_setup_pci_devices() call succeeds -- fix this, and drop a couple of useless assignments in this function while at it... Signed-off-by: Sergei Shtylyov [EMAIL PROTECTED] --- This patch is against the current Linus'

[PATCH 2/2] pdc202xx_new: switch to using pci_get_slot()

2007-08-18 Thread Sergei Shtylyov
Switch to using pci_get_slot() in init_setup_pdc20270() to get to the mate chip behind DC21150 bridge as there's no need for the driver itself to walk the list of the PCI devices (and the driver didn't check the bus # of the found device). While at it, make it emit warning about IRQ # being fixed

[PATCH] ide: fix PCI refcounting

2007-08-18 Thread Sergei Shtylyov
The IDE core never marked the PCI IDE devices as being in use after succesfull driver probe call (the devices were marked in use only while being probed), and so was susceptible to issues caused by unsolicited PCI hotplug device removal. So, add pci_dev_get() call to ide_scan_pcidev() and convert

[PATCH 1/7] ide: use PCI_VDEVICE() macro

2007-08-18 Thread Bartlomiej Zolnierkiewicz
While at it: - make struct pci_device_id tables const - use PCI_DEVICE_ID_ITE_8213 define in it8213.c - fix comment in generic.c Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] --- drivers/ide/pci/aec62xx.c | 12 - drivers/ide/pci/alim15x3.c |6 ++--

[PATCH 2/7] ide: remove CONFIG_BLK_DEV_IDEDMA_FORCED

2007-08-18 Thread Bartlomiej Zolnierkiewicz
This code doesn't use pci_assign_resource() and ide_get_or_set_dma_base() uses pci_resource_start() to get DMA base address so it has no chance of working. Moreover this belongs to PCI quirks (in case somebody would like to fix it). Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] ---

[PATCH 7/7] ide: add DECLARE_GENERIC_PCI_DEV() macro to generic IDE PCI host driver

2007-08-18 Thread Bartlomiej Zolnierkiewicz
* Add DECLARE_GENERIC_PCI_DEV() macro to generic IDE PCI host driver and use it to cleanup generic_chipsets[]. * Remove dead/obsolete code while at it. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] --- drivers/ide/pci/generic.c | 113

[PATCH 5/7] ide: add hdx=nodma kernel parameter

2007-08-18 Thread Bartlomiej Zolnierkiewicz
* Add hdx=nodma option allowing user to disallow DMA for a given device. * Obsolete ide=nodma option. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] --- Documentation/ide.txt |4 ++-- drivers/ide/ide-dma.c |2 +- drivers/ide/ide.c |7 +-- include/linux/ide.h |

[PATCH 3/7] ide: remove idex=dma kernel parameter

2007-08-18 Thread Bartlomiej Zolnierkiewicz
It has been obsoleted since 1 Nov 2004, is valid only when used together with ide=nodma kernel parameter (which makes no sense) and only for aec62xx, cmd64x, cs5220, generic, hpt366, sl82c105, tc86c001 and triflex host drivers. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] ---

[PATCH 6/7] ide: remove CONFIG_IDEDMA_ONLYDISK

2007-08-18 Thread Bartlomiej Zolnierkiewicz
ATAPI devices with broken DMA support should be handled by DMA blacklist and for debugging purposes we have new shiny hdx=nodma kernel paremeter. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] --- drivers/ide/Kconfig | 10 -- drivers/ide/ide-probe.c |5 + 2

Re: [PATCH 1/8] alim15x3: PIO fallback fix

2007-08-18 Thread Bartlomiej Zolnierkiewicz
On Saturday 18 August 2007, you wrote: Bartlomiej Zolnierkiewicz wrote: [PATCH] alim15x3: PIO fallback fix If DMA tuning fails always set the best PIO mode. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] Oh, it's

Re: [PATCH 2/2] hpt366: UltraDMA filtering for SATA cards

2007-08-18 Thread Bartlomiej Zolnierkiewicz
On Saturday 11 August 2007, Sergei Shtylyov wrote: Hello, I wrote: 101 files changed, 1880 insertions(+), 2828 deletions(-) please look at -mm or IDE quilt tree instead. :) Looking... When are you planning to push out to Linus the

sata_nv hotplug

2007-08-18 Thread Benjamin LaHaise
Hello folks, Does anyone know the state of hot plug support for the sata_nv driver? I'm certainly willing to help out with any development and testing that's needed, as it doesn't seem to function in basic testing at present. -ben -- Time is of no importance, Mr. President,

Re: [PATCH 1/8] alim15x3: PIO fallback fix

2007-08-18 Thread Sergei Shtylyov
Bartlomiej Zolnierkiewicz wrote: [PATCH] alim15x3: PIO fallback fix If DMA tuning fails always set the best PIO mode. Signed-off-by: Bartlomiej Zolnierkiewicz [EMAIL PROTECTED] Acked-by: Sergei Shtylyov [EMAIL PROTECTED] Oh, it's belated now. :-/ a bit ;) Kept deferring

Re: CompactFlash and HD unhappy together on the same IDE channel

2007-08-18 Thread Matt Sealey
Having the dual-slot CF-IDE adapter AND a hard disk means you have 3 devices there whether you plug something into the slot or not. You'd get the same error if you had a 3-way IDE cable :) Just move the CF adapter to a different cable, or the hard disk to a different cable, and it'll be fine.

[PATCH 2.6.23-rc3] pata_pdc2027x: PLL detection fixes

2007-08-18 Thread Mikael Pettersson
Previously I reported that the pata_pdc2027x PLL detection changes in kernel 2.6.22 broke the driver on my PowerMac: pata_pdc2027x: Invalid PLL input clock 1691742kHz, give up! This is followed by a number of errors and speed reduction steps on the affected ports. There are two bugs in

Re: [PATCH 2.6.23-rc3] pata_pdc2027x: PLL detection fixes

2007-08-18 Thread Jeff Garzik
Mikael Pettersson wrote: Previously I reported that the pata_pdc2027x PLL detection changes in kernel 2.6.22 broke the driver on my PowerMac: pata_pdc2027x: Invalid PLL input clock 1691742kHz, give up! This is followed by a number of errors and speed reduction steps on the affected ports.

Re: sata_nv hotplug

2007-08-18 Thread Daniel Schroeder
Benjamin LaHaise wrote: Hello folks, Does anyone know the state of hot plug support for the sata_nv driver? I'm certainly willing to help out with any development and testing that's needed, as it doesn't seem to function in basic testing at present. -ben hi, i am using

Re: CompactFlash and HD unhappy together on the same IDE channel

2007-08-18 Thread Alan Cox
On Sat, 18 Aug 2007 17:00:35 +1000 Malcolm Gillies [EMAIL PROTECTED] wrote: My PATA hard disk is crippled by CRC errors when it's on the same cable as a 1GB SanDisk Ultra II CompactFlash card in CF to IDE adaptor. Any ideas why? I would guess the resulting pipe of cables and bits means you

Re: [PATCH 2.6.23-rc3] pata_pdc2027x: PLL detection fixes

2007-08-18 Thread Albert Lee
Mikael Pettersson wrote: Previously I reported that the pata_pdc2027x PLL detection changes in kernel 2.6.22 broke the driver on my PowerMac: pata_pdc2027x: Invalid PLL input clock 1691742kHz, give up! This is followed by a number of errors and speed reduction steps on the affected

Re: [PATCH 2.6.23-rc3] pata_pdc2027x: PLL detection fixes

2007-08-18 Thread Albert Lee
Jeff Garzik wrote: Mikael Pettersson wrote: Previously I reported that the pata_pdc2027x PLL detection changes in kernel 2.6.22 broke the driver on my PowerMac: pata_pdc2027x: Invalid PLL input clock 1691742kHz, give up! This is followed by a number of errors and speed reduction steps

Re: [PATCH 2.6.23-rc3] pata_pdc2027x: PLL detection fixes

2007-08-18 Thread Jeff Garzik
Albert Lee wrote: The first rmb() is to make sure bccrl is read before bccrlv for later (bccrl = bccrlv) check since both reading the same memory address. That's already guaranteed without the rmb(), AFAICS. Jeff - To unsubscribe from this list: send the line unsubscribe linux-ide

Re: [PATCH 2.6.23-rc3] pata_pdc2027x: PLL detection fixes

2007-08-18 Thread Albert Lee
Jeff Garzik wrote: Albert Lee wrote: The first rmb() is to make sure bccrl is read before bccrlv for later (bccrl = bccrlv) check since both reading the same memory address. That's already guaranteed without the rmb(), AFAICS. Hmm, thanks for the advice. Will remove both rmb()s. Will

Re: CompactFlash and HD unhappy together on the same IDE channel

2007-08-18 Thread Mark Lord
Malcolm Gillies wrote: My PATA hard disk is crippled by CRC errors when it's on the same cable as a 1GB SanDisk Ultra II CompactFlash card in CF to IDE adaptor. Any ideas why? By swapping around components, I've established that the problem is unlikely due to the cable (which is 50cm long

Re: Enabling AHCI on ICH7 without BIOS support

2007-08-18 Thread ISHIKAWA Mutsumi
In [EMAIL PROTECTED] Jonathan Bastien-Filiatrault [EMAIL PROTECTED] wrote: Tejun Heo wrote: Hello, Jonathan Bastien-Filiatrault wrote: Hello, I am the owner of a Dell Latitude D620 notebook with an ICH7 SATA controller, unfortunately, the BIOS does not offer the option of

Re: Enabling AHCI on ICH7 without BIOS support

2007-08-18 Thread Tejun Heo
ISHIKAWA Mutsumi wrote: In [EMAIL PROTECTED] Jonathan Bastien-Filiatrault [EMAIL PROTECTED] wrote: Tejun Heo wrote: Hello, Jonathan Bastien-Filiatrault wrote: Hello, I am the owner of a Dell Latitude D620 notebook with an ICH7 SATA controller, unfortunately, the BIOS does not