Re: libata and PATA devices

2005-08-16 Thread Erik Slagter
On Mon, 2005-08-15 at 17:39 -0400, Mark Lord wrote: I already had it working this way, actually, but it has a bad habit of locking up solid every now and then. So I'll wait and in the meantime use my patched kernel (=all drives on IDE). That's a different problem, with a one-liner fix

Re: libata and PATA devices

2005-08-15 Thread Mark Lord
Erik Slagter wrote: I already had it working this way, actually, but it has a bad habit of locking up solid every now and then. So I'll wait and in the meantime use my patched kernel (=all drives on IDE). That's a different problem, with a one-liner fix recently posted to address it -- Jeff

Re: libata and PATA devices

2005-08-13 Thread Erik Slagter
On Thu, 2005-08-11 at 16:21 -0400, Jeff Garzik wrote: Erik Slagter wrote: Your patch was wrong because the SATA device should always be claimed by libata. The system is thus: 1) drivers/pci/quirks.c reserves SATA ports (only!) for libata 2) Legacy IDE driver claims the unreserved PATA

Re: libata and PATA devices

2005-08-13 Thread Jeff Garzik
Erik Slagter wrote: result: the pata harddisk is recognised by libata_piix and assigned /dev/sda, the dvd drive is found by the generic ide driver. (dmesg output attached) Great! That's precisely what's supposed to happen. Except, the hard drive appears to be SATA, not PATA: ata1: SATA

Re: libata and PATA devices

2005-08-13 Thread Tyler
Jeff, I think he stated in an earlier post to the list, the model number of the drive, and it is in fact a PATA drive... verified by checking fujitsu's website. Or are you just saying that it shows up as sata by coming up as /dev/sda since its connected to a PATA port on a sata combined

Re: libata and PATA devices

2005-08-13 Thread Jeff Garzik
Erik Slagter wrote: On Sat, 2005-08-13 at 11:33 -0400, Jeff Garzik wrote: Erik Slagter wrote: result: the pata harddisk is recognised by libata_piix and assigned /dev/sda, the dvd drive is found by the generic ide driver. (dmesg output attached) Great! That's precisely what's supposed to

Re: libata and PATA devices

2005-08-13 Thread Jeff Garzik
Tyler wrote: Jeff, I think he stated in an earlier post to the list, the model number of the drive, and it is in fact a PATA drive... verified by checking fujitsu's website. Or are you just saying that it shows up as sata by coming up as /dev/sda since its connected to a PATA port on a sata

Re: libata and PATA devices

2005-08-13 Thread Erik Slagter
On Sat, 2005-08-13 at 11:57 -0400, Jeff Garzik wrote: Tyler wrote: Jeff, I think he stated in an earlier post to the list, the model number of the drive, and it is in fact a PATA drive... verified by checking fujitsu's website. Or are you just saying that it shows up as sata by coming

Re: libata and PATA devices

2005-08-13 Thread Erik Slagter
On Sat, 2005-08-13 at 11:56 -0400, Jeff Garzik wrote: Nope. The harddisk is not SATA, it's PATA. See the links I posted earlier. That's the whole point. The controller thinks its a SATA device, so there is probably a bridge installed. I suppose it's something like that. It's all very

Re: libata and PATA devices

2005-08-13 Thread Erik Slagter
On Sat, 2005-08-13 at 12:44 -0400, Jeff Garzik wrote: BTW afaik you won't be able be able to control DMA on the dvd drive with this setup, so I'll stick to my patched kernel for the moment (= both diskcdrom are assigned to ide). That's normal for combined mode. Until libata can do ATAPI

Re: libata and PATA devices

2005-08-11 Thread Erik Slagter
On Wed, 2005-08-10 at 23:57 -0400, Jeff Garzik wrote: Most current laptops ship with a PATA hard drive, and a PATA ATAPI drive. The easiest way to make them usable under Linux-2.6 is to patch libata and turn on ATAPI support, using ata_piix. No, the best thing to do is use the IDE

Re: libata and PATA devices

2005-08-11 Thread Bartlomiej Zolnierkiewicz
On 8/11/05, Erik Slagter [EMAIL PROTECTED] wrote: On Wed, 2005-08-10 at 23:57 -0400, Jeff Garzik wrote: Most current laptops ship with a PATA hard drive, and a PATA ATAPI drive. The easiest way to make them usable under Linux-2.6 New laptops rather ship with: SATA (or PATA + bridge)

Re: libata and PATA devices

2005-08-11 Thread Erik Slagter
On Thu, 2005-08-11 at 12:03 +0200, Bartlomiej Zolnierkiewicz wrote: Most current laptops ship with a PATA hard drive, and a PATA ATAPI drive. The easiest way to make them usable under Linux-2.6 New laptops rather ship with: SATA (or PATA + bridge) hard disk and PATA ATAPI drive How

Re: libata and PATA devices

2005-08-11 Thread Bartlomiej Zolnierkiewicz
On 8/11/05, Erik Slagter [EMAIL PROTECTED] wrote: On Thu, 2005-08-11 at 12:03 +0200, Bartlomiej Zolnierkiewicz wrote: Most current laptops ship with a PATA hard drive, and a PATA ATAPI drive. The easiest way to make them usable under Linux-2.6 New laptops rather ship with: SATA

Re: libata and PATA devices

2005-08-11 Thread Erik Slagter
On Thu, 2005-08-11 at 12:26 +0200, Bartlomiej Zolnierkiewicz wrote: As ICH6M features both PATA and SATA connections, I don't see why they'd use a PATA bridge... The DVD drives use PATA anyway, btw. AFAIR ICH6M has only one PATA port and putting both HDD and DVD drive on the same PATA port

Re: libata and PATA devices

2005-08-11 Thread Bartlomiej Zolnierkiewicz
On 8/11/05, Erik Slagter [EMAIL PROTECTED] wrote: On Thu, 2005-08-11 at 12:26 +0200, Bartlomiej Zolnierkiewicz wrote: As ICH6M features both PATA and SATA connections, I don't see why they'd use a PATA bridge... The DVD drives use PATA anyway, btw. AFAIR ICH6M has only one PATA port and

Re: libata and PATA devices

2005-08-11 Thread Erik Slagter
AFAIR ICH6M has only one PATA port and putting both HDD and DVD drive on the same PATA port would sacrifice performance (because only one PATA device can be used at a time). That's duff. The PATA harddisk that is used in my laptop, also comes in a SATA version... You didn't even

Re: libata and PATA devices

2005-08-11 Thread Mark Lord
Jeff Garzik wrote: currently no one should be using libata for PATA support. We emailed back and forth extensively about how this has not been true since early this year. Modern laptops are using libata for the ICH6M support, simply because libata claims that chipset, and the IDE driver does

Re: libata and PATA devices

2005-08-11 Thread Jeff Garzik
Mark Lord wrote: Jeff Garzik wrote: currently no one should be using libata for PATA support. We emailed back and forth extensively about how this has not been true since early this year. Modern laptops are using libata for the ICH6M support, simply because libata claims that chipset, and

Re: libata and PATA devices

2005-08-11 Thread Erik Slagter
On Thu, 2005-08-11 at 13:19 -0400, Jeff Garzik wrote: Mark Lord wrote: Jeff Garzik wrote: currently no one should be using libata for PATA support. We emailed back and forth extensively about how this has not been true since early this year. Modern laptops are using libata for the

Re: libata and PATA devices

2005-08-11 Thread Wes Newell
On Thu, 2005-08-11 at 13:19 -0400, Jeff Garzik wrote: Mark Lord wrote: Jeff Garzik wrote: currently no one should be using libata for PATA support. We emailed back and forth extensively about how this has not been true since early this year. Modern laptops are using

Re: libata and PATA devices

2005-08-11 Thread Jeff Garzik
Erik Slagter wrote: On Thu, 2005-08-11 at 13:19 -0400, Jeff Garzik wrote: Mark Lord wrote: Jeff Garzik wrote: currently no one should be using libata for PATA support. We emailed back and forth extensively about how this has not been true since early this year. Modern laptops are using

Re: libata and PATA devices

2005-08-11 Thread Jeff Garzik
Jeff Garzik wrote: The system is thus: 1) drivers/pci/quirks.c reserves SATA ports (only!) for libata 2) Legacy IDE driver claims the unreserved PATA port 3) libata loads and uses the ports reserved in #1 This requires a specific kernel configuration: (a) CONFIG_IDE_GENERIC be set, and (b) IDE

Re: libata and PATA devices

2005-08-10 Thread Jeff Garzik
Mark Lord wrote: Erik Slagter wrote: Is there a possibility that dell attaches PATA harddisks using a SATA/PATA converter to the SATA connection of the ICH6M? That chipset is used in virtually all modern laptops, and includes a PATA interface as well as SATA. Most current laptops ship

Re: libata and PATA devices

2005-08-09 Thread Jeff Garzik
On Tue, Aug 09, 2005 at 09:48:12AM -0400, Mark Lord wrote: Erik Slagter wrote: Is there a possibility that dell attaches PATA harddisks using a SATA/PATA converter to the SATA connection of the ICH6M? That chipset is used in virtually all modern laptops, and includes a PATA interface as

Re: libata and PATA devices

2005-08-09 Thread Jeff Garzik
On Tue, Aug 09, 2005 at 10:10:17AM -0400, Mark Lord wrote: The PATA ATAPI works now -- perhaps it could be turned on by default while efforts continue to implement support for SATA ATAPI devices. No, PATA ATAPI DMA still needs the same fixes that SATA ATAPI does. ATAPI is incomplete, the

Re: libata and PATA devices

2005-08-09 Thread Jeff Garzik
On Tue, Aug 09, 2005 at 07:05:33PM +0200, Erik Slagter wrote: On Tue, 2005-08-09 at 09:48 -0400, Mark Lord wrote: But there's also a fix for that, again floating around only in private repositories. Grmbl. Mark is just working off steam. The fix causes leaks, and does not really fix

Re: libata and PATA devices

2005-08-08 Thread Erik Slagter
On Sun, 2005-08-07 at 23:02 -0400, Jeff Garzik wrote: On Mon, Aug 08, 2005 at 10:43:41AM +0900, Tejun Heo wrote: I don't know much about PATA support. All I know is that ICH's seem to generate a lot of noise in this mailing list w/ its legacy, combined, ahci and whatever modes and no

Re: libata and PATA devices

2005-08-07 Thread Tejun Heo
Hello, Andreas. Andreas Klöckner wrote: Hey Jeff, all, I was wondering why ATA_ENABLE_PATA and ATA_ENABLE_ATAPI are #undef'ed in include/linux/libata.h by default, since reverting them to #define's was the only way to make the ata-piix driver detect my CDROM on my new shiny ThinkPad