Re: libata for SATA HDs.

2005-08-09 Thread Mark Lord
Yes, but only if you manually apply the "libata-passthru" patch. So, why hasn't that patch got into the kernel? Because there are several reports of it causing problems, when used on a loaded system. Please post more information about these "problems". I wonder if it might be another occura

Re: libata total system lockup fix

2005-08-09 Thread Tejun Heo
Hi, Mark. Mark Lord wrote: Tejun, I'm back from holiday now, and will try your one-liner in place of the more complex patch I had been using. (that's what you intended, right?) Yeap, and if possible, please also try the second large patch. I wanna make sure it's free of that problem.

Re: libata for SATA HDs.

2005-08-09 Thread James Courtier-Dutton
Jeff Garzik wrote: On Tue, Aug 09, 2005 at 06:55:23PM +0100, James Courtier-Dutton wrote: Mark Lord wrote: James Courtier-Dutton wrote: Google did not help me. Can I use the kernel libata and do commands like this now? : hdparm -S60 /dev/sda Yes, but only if you manually apply the "lib

Re: libata for SATA HDs.

2005-08-09 Thread Mark Lord
Erik Slagter wrote: Hmmm, hdparm -S indeed works now, but smartctl doesn't work yet :-(. I was silently hoping that would start working as well. Smartctl wants the "-d ata" option set to speak to libata. Cheers - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body

Re: libata for SATA HDs.

2005-08-09 Thread Erik Slagter
On Tue, 2005-08-09 at 09:40 -0400, Mark Lord wrote: > > Can I use the kernel libata and do commands like this now? : > > hdparm -S60 /dev/sda > > Yes, but only if you manually apply the "libata-passthru" patch. Hmmm, hdparm -S indeed works now, but smartctl doesn't work yet :-(. I was silently ho

Re: libata for SATA HDs.

2005-08-09 Thread Jeff Garzik
On Tue, Aug 09, 2005 at 06:55:23PM +0100, James Courtier-Dutton wrote: > Mark Lord wrote: > >James Courtier-Dutton wrote: > > > >>Google did not help me. > >> > >>Can I use the kernel libata and do commands like this now? : > >>hdparm -S60 /dev/sda > > > > > >Yes, but only if you manually apply 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

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 reas

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 inter

Re: libata for SATA HDs.

2005-08-09 Thread James Courtier-Dutton
Mark Lord wrote: James Courtier-Dutton wrote: Google did not help me. Can I use the kernel libata and do commands like this now? : hdparm -S60 /dev/sda Yes, but only if you manually apply the "libata-passthru" patch. The copy (below) works with 2.6.12, and I'm including it here for the ben

Re: libata and PATA devices

2005-08-09 Thread Erik Slagter
On Tue, 2005-08-09 at 09:48 -0400, Mark Lord wrote: > The libata code is taking forever to catch up to modern reality, > mostly because so much of it lives eternally in Jeff's private > git repository, where only a few people ever exercise the code. I'd suggest sending some of it to Andy Morton,

Re: libata for SATA HDs.

2005-08-09 Thread Erik Slagter
> > Google did not help me. > > Can I use the kernel libata and do commands like this now? : > > hdparm -S60 /dev/sda > Yes, but only if you manually apply the "libata-passthru" patch. > > The copy (below) works with 2.6.12, and I'm including it here > for the benefit of the many who aren't yet r

Re: libata total system lockup fix

2005-08-09 Thread Mark Lord
Tejun, I'm back from holiday now, and will try your one-liner in place of the more complex patch I had been using. (that's what you intended, right?) Should know within a few hours whether it solves this problem here or not. cheers -- Mark Lord Real-Time Remedies Inc. [EMAIL PROTECTED] Tejun

Re: libata and PATA devices

2005-08-09 Thread Mark Lord
Mark Lord 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. This REALLY ought to be on by default now, Jeff. Especially since the default is to NOT w

Re: libata and PATA devices

2005-08-09 Thread Mark Lord
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 with a PATA hard drive,

Re: libata for SATA HDs.

2005-08-09 Thread Mark Lord
James Courtier-Dutton wrote: Google did not help me. Can I use the kernel libata and do commands like this now? : hdparm -S60 /dev/sda Yes, but only if you manually apply the "libata-passthru" patch. The copy (below) works with 2.6.12, and I'm including it here for the benefit of the many who

Re: [PATCH 1/3] libata-dev: Convert pdc2027x from PIO to MMIO

2005-08-09 Thread Albert Lee
Hi, +cgcr = readl(port_mmio(ap, PDC_GLOBAL_CTL)); I've read that read[bwl]() and write[bwl]() are deprecated and discouraged in new code and instead ioread{8,16,32}() and iowrite{8,16,32}() should be used. Is this the case? BR I've read Linux Device Drivers 3rd Edition, it d