[PATCH #upstream 1/2] libata: relocate forcing PIO0 on reset

2007-10-29 Thread Tejun Heo
Forcing PIO0 on reset was done inside ata_bus_softreset(), which is a bit out of place as it should be applied to all resets - hard, soft and implementation which don't use ata_bus_softreset(). Relocate it such that... * For new EH, it's done in ata_eh_reset() before calling prereset. * For old

[PATCH #upstream 2/2] libata: no need to speed down if already at PIO0

2007-10-29 Thread Tejun Heo
After reset, transfer mode is always PIO0 regardless of dev-xfer_mask. Check dev-pio_mode before trying to slow down after configuration failure. This prevents bogus speed down before device is actually configured. Signed-off-by: Tejun Heo [EMAIL PROTECTED] Cc: Alan Cox [EMAIL PROTECTED] ---

Re: [PATCH #upstream 2/2] libata: no need to speed down if already at PIO0

2007-10-29 Thread Alan Cox
On Mon, 29 Oct 2007 16:45:05 +0900 Tejun Heo [EMAIL PROTECTED] wrote: After reset, transfer mode is always PIO0 regardless of dev-xfer_mask. Check dev-pio_mode before trying to slow down after configuration failure. This prevents bogus speed down before device is actually configured.

Re: 2.6.24-rc1, sata_sil: access to SH-S183A broken again?

2007-10-29 Thread Harri
Sorry, seems that this wasn't send to the mailing list. See private reply. Regards Harri Tejun Heo wrote: Harri wrote: Hi Tejun, Is it possible that the DMA workaround for sata_sil and the Samsung SH-S183A DVD writer

Re: [PATCH #upstream 1/2] libata: relocate forcing PIO0 on reset

2007-10-29 Thread Jeff Garzik
Tejun Heo wrote: Forcing PIO0 on reset was done inside ata_bus_softreset(), which is a bit out of place as it should be applied to all resets - hard, soft and implementation which don't use ata_bus_softreset(). Relocate it such that... * For new EH, it's done in ata_eh_reset() before calling

Re: IDE Problem with old Gateway laptop (1998 solo 2300)

2007-10-29 Thread Alan Cox
I really doubt if libata alone would do much for me, as the disk and bios doesn't really want to know about ata at all. We're 1998 here, remember. ATA has to be disabled for this to read the disk at all. 1998 is well into the world of ATA (IDE is just a confusing othername) From your info

Re: IDE Problem with old Gateway laptop (1998 solo 2300)

2007-10-29 Thread Declan Moriarty
On Sun, 2007-10-28 at 20:13 -0700, Vlad Codrea wrote: Hi, Have you tried compiling only libata in the kernel? Libata, being newer, might work on your laptop even if the old drivers/ide does not. One of the kernels has that compiled in, along with drivers. It's a one-size-fits-all kernel,

[RFC 2/3] [SCSI/libata] libata EH conversion for ipr SAS

2007-10-29 Thread Brian King
Currently, the SAS users of libata are using a mix of the old and new error handling. This patch introduces a new API which can be used by both ipr and libsas. It has several advantages to the current implementation: 1. It uses the new libata EH 2. Device discovery is now driven by libata, which

[RFC 0/3] [SCSI/libata] libata EH conversion for ipr SAS

2007-10-29 Thread Brian King
The following three patches convert ipr to use the new libata EH APIs. In the process of doing this, I first looked into implementing this in a similar manner to how libata SAS is done today, which is hooking into target_alloc/target_destroy to allocate/delete sata ports. While I was able to get

RE: ATAPI devices in AHCI mode not working

2007-10-29 Thread Gaston, Jason D
-Original Message- From: Alan Cox [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 1:30 PM To: Gaston, Jason D Cc: linux-ide@vger.kernel.org Subject: Re: ATAPI devices in AHCI mode not working ata1.00: ATAPI: TSSTcorpCD/DVDW SH-S183L, SB01, max UDMA/33, ATAPI AN Everyones

Re: [RFC/PATCH] libata and bogus LBA48 drives

2007-10-29 Thread Jeff Garzik
Geert Uytterhoeven wrote: Hi Jeff, A colleague noticed recent versions of Ubuntu no longer detect his 80 GB ST380020ACE drive. This drive is special in that it advertises LBA48 support, but has the lba_capacity_2 field set to zero (cfr. http://lkml.org/lkml/2004/3/30/163). Upon closer

Re: [RFC/PATCH] libata and bogus LBA48 drives

2007-10-29 Thread Geert Uytterhoeven
On Mon, 29 Oct 2007, Jeff Garzik wrote: Geert Uytterhoeven wrote: A colleague noticed recent versions of Ubuntu no longer detect his 80 GB ST380020ACE drive. This drive is special in that it advertises LBA48 support, but has the lba_capacity_2 field set to zero (cfr.

[RFC 1/3] [SCSI/libata] libata EH conversion for ipr SAS

2007-10-29 Thread Brian King
Currently libata uses ap-dev when allocating DMA'able storage on behalf of the LLDD, or when mapping DMA buffers. This dev struct is also being used when allocating memory for the ata_port struct and associated structures. This patch splits these two uses by adding a dmadev pointer to the

Re: ATAPI devices in AHCI mode not working

2007-10-29 Thread Alan Cox
ata1: SATA max UDMA/133 abar [EMAIL PROTECTED] port 0xd9101100 irq 216 ata2: SATA max UDMA/133 abar [EMAIL PROTECTED] port 0xd9101180 irq 216 ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATAPI: ATAPI DVD D DH16D2S, EP52, max UDMA/100 ata1.00: configured for UDMA/100

Re: PMP device port link speed issues

2007-10-29 Thread Tejun Heo
Kalra Ashish-B00888 wrote: Hello Tejun, This patch will surely fix my problem, but won't it be better to set each PMP device port link speed directly to the host-PMP link speed, during SATA PMP device configuration in sata_pmp_attach(), instead of calling sata_link_init_spd() for each

RE: ATAPI devices in AHCI mode not working

2007-10-29 Thread Gaston, Jason D
-Original Message- From: Alan Cox [mailto:[EMAIL PROTECTED] Sent: Monday, October 29, 2007 3:14 PM To: Gaston, Jason D Cc: linux-ide@vger.kernel.org Subject: Re: ATAPI devices in AHCI mode not working ata1: SATA max UDMA/133 abar [EMAIL PROTECTED] port 0xd9101100 irq 216 ata2: SATA max

Re[2]: blacklisting ST3500630AS as not able to do NCQ

2007-10-29 Thread diego torres
diego torres wrote: Hi there, After cheking the seagate website, there is no mention to NCQ in the spec sheet of this drive, although there are models tagged as using NCQ interface, for example ST3500620AS How reproducible is the problem? It always happens under heavy load, or when using

AHCI + ST3160023AS + NCQ problems

2007-10-29 Thread Matheus Izvekov
Seagate drive ST3160023AS is correctly detected as supporting NCQ, but when its used with moderate loads, libata keeps throwing error messages until it finally decides to disable NCQ on it. this is the controller: 00:1f.2 SATA controller: Intel Corporation 82801GR/GH (ICH7 Family) SATA AHCI

Re: PMP device port link speed issues

2007-10-29 Thread Tejun Heo
Kalra Ashish-B00888 wrote: Hello Tejun, This patch will surely fix my problem, but won't it be better to set each PMP device port link speed directly to Also, please verify it actually fixes the problem you're seeing. Thanks. -- tejun - To unsubscribe from this list: send the line

sata_nv and dynamically changing DMA mask?

2007-10-29 Thread Robert Hancock
In the sata_nv driver, when running in ADMA mode, we can do 64-bit DMA. However, when an ATAPI device like a DVD drive is connected, we can't use ADMA mode, and so we have to abide by the restrictions of a normal SFF ATA controller and can only do 32-bit DMA. We detect this and try to set the

Re: [PATCH 2.6.24-rc1] sata_promise: ASIC PRD table bug workaround

2007-10-29 Thread Alexander Sabourenkov
Jeff Garzik wrote: Mikael Pettersson wrote: @@ -530,7 +608,7 @@ static void pdc_qc_prep(struct ata_queue switch (qc-tf.protocol) { case ATA_PROT_DMA: -ata_qc_prep(qc); +pdc_fill_sg(qc); /* fall through */ case ATA_PROT_NODATA: @@ -546,11 +624,11