linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pata_amd: remove contamination added during cable_detect conversion
@ 2007-04-22 17:04 Tejun Heo
  2007-04-22 17:40 ` Alan Cox
  2007-04-28 18:46 ` Jeff Garzik
  0 siblings, 2 replies; 7+ messages in thread
From: Tejun Heo @ 2007-04-22 17:04 UTC (permalink / raw)
  To: Jeff Garzik, linux-ide, Alan Cox

This is added by added by cff63dfceb52c564fe1ba5394d50ab7d599a11b9
 - pata: cable methods.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
---
 drivers/ata/pata_amd.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c
index 5a77e4e..536ee89 100644
--- a/drivers/ata/pata_amd.c
+++ b/drivers/ata/pata_amd.c
@@ -639,11 +639,6 @@ static int amd_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
 	if (type == 1 && rev > 0x7)
 		type = 2;
 
-#if defined(CONFIG_ATA_ACPI)
-	/* Prefer the ACPI driver for Nvidia hardware */
-	if (pdev->vendor == PCI_VENDOR_ID_NVIDIA && ata_pata_acpi_present(pdev))
-		return -ENODEV;
-#endif
 	/* Check for AMD7411 */
 	if (type == 3)
 		/* FIFO is broken */
-- 
1.5.0.3


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] pata_amd: remove contamination added during cable_detect conversion
  2007-04-22 17:04 [PATCH] pata_amd: remove contamination added during cable_detect conversion Tejun Heo
@ 2007-04-22 17:40 ` Alan Cox
  2007-04-22 17:51   ` Tejun Heo
  2007-04-28 18:46 ` Jeff Garzik
  1 sibling, 1 reply; 7+ messages in thread
From: Alan Cox @ 2007-04-22 17:40 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Jeff Garzik, linux-ide

On Mon, 23 Apr 2007 02:04:38 +0900
Tejun Heo <htejun@gmail.com> wrote:

> This is added by added by cff63dfceb52c564fe1ba5394d50ab7d599a11b9
>  - pata: cable methods.

The Cable method fix for the Nvidia hardware if ACPI drivers are present
and usable is to use the ACPI driver, so its not a "contamination" its a
fix for the fact the Nvidia code can't do cable detect any other way

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] pata_amd: remove contamination added during cable_detect conversion
  2007-04-22 17:40 ` Alan Cox
@ 2007-04-22 17:51   ` Tejun Heo
  2007-04-22 17:59     ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: Tejun Heo @ 2007-04-22 17:51 UTC (permalink / raw)
  To: Alan Cox; +Cc: Jeff Garzik, linux-ide

Hello,

Alan Cox wrote:
> On Mon, 23 Apr 2007 02:04:38 +0900
> Tejun Heo <htejun@gmail.com> wrote:
> 
>> This is added by added by cff63dfceb52c564fe1ba5394d50ab7d599a11b9
>>  - pata: cable methods.
> 
> The Cable method fix for the Nvidia hardware if ACPI drivers are present
> and usable is to use the ACPI driver, so its not a "contamination" its a
> fix for the fact the Nvidia code can't do cable detect any other way

But pata_amd modifications should be merged together with pata_acpi not
separately.

Anyways, I've been testing pata_acpi and it doesn't work on my nforce
ultra machine.  Whether the cable is 40c or not, _STM happily sets UDMA
mode above 2 resulting in a series of transfer errors.  EH kicks in
eventually and drops transfer speed.

Also, ata_acpi_gtm() implementation was broken in that it skipped one
level of indirection (acpi_object, please take a look at the last patch
of just posted patchset), so it was basically returning garbage values.

I have patches to update pata_amd to use _STM/_GTM for cable detection
(a lot are taken from pata_acpi) but ACPI cable detection is just as
broken as PCI config one.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] pata_amd: remove contamination added during cable_detect conversion
  2007-04-22 17:51   ` Tejun Heo
@ 2007-04-22 17:59     ` Alan Cox
  2007-04-22 18:14       ` Tejun Heo
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Cox @ 2007-04-22 17:59 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Jeff Garzik, linux-ide

> I have patches to update pata_amd to use _STM/_GTM for cable detection
> (a lot are taken from pata_acpi) but ACPI cable detection is just as
> broken as PCI config one.

I'm unclear we can safely mix _STM/_GTM and direct access to the drive in
a general form. The ACPI documentation seems to be carefully very silent
on the subject.

Whatever works in this area is good.

Alan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] pata_amd: remove contamination added during cable_detect conversion
  2007-04-22 17:59     ` Alan Cox
@ 2007-04-22 18:14       ` Tejun Heo
  2007-04-22 18:20         ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: Tejun Heo @ 2007-04-22 18:14 UTC (permalink / raw)
  To: Alan Cox; +Cc: Jeff Garzik, linux-ide

Alan Cox wrote:
>> I have patches to update pata_amd to use _STM/_GTM for cable detection
>> (a lot are taken from pata_acpi) but ACPI cable detection is just as
>> broken as PCI config one.
> 
> I'm unclear we can safely mix _STM/_GTM and direct access to the drive in
> a general form. The ACPI documentation seems to be carefully very silent
> on the subject.
> 
> Whatever works in this area is good.

Yeap, definitely.  Can you please retest pata_acpi with ata_acpi_gtm()
fixed?  I have an UDMA2 ODD (HL-DT-ST DVDRAM GSA-H10N) and UDMA4 HDD
(WDC WD153AA) attached to 40c cable and ACPI mode discovery doesn't work
at all.  The only thing I can get working here is storing the BIOS
setting.  :-(

-- 
tejun

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] pata_amd: remove contamination added during cable_detect conversion
  2007-04-22 18:14       ` Tejun Heo
@ 2007-04-22 18:20         ` Alan Cox
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Cox @ 2007-04-22 18:20 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Jeff Garzik, linux-ide

> Yeap, definitely.  Can you please retest pata_acpi with ata_acpi_gtm()
> fixed?  I have an UDMA2 ODD (HL-DT-ST DVDRAM GSA-H10N) and UDMA4 HDD
> (WDC WD153AA) attached to 40c cable and ACPI mode discovery doesn't work
> at all.  The only thing I can get working here is storing the BIOS
> setting.  :-(

I'll try it next week although my BIOS worked beautifully with the
original code and without ata_acpi_gtm being fixed !

I've also seen some BIOSes which implement _gtm/_stm solely as "stuff it
back in BIOS boot up mode"

Alan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] pata_amd: remove contamination added during cable_detect conversion
  2007-04-22 17:04 [PATCH] pata_amd: remove contamination added during cable_detect conversion Tejun Heo
  2007-04-22 17:40 ` Alan Cox
@ 2007-04-28 18:46 ` Jeff Garzik
  1 sibling, 0 replies; 7+ messages in thread
From: Jeff Garzik @ 2007-04-28 18:46 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-ide, Alan Cox

Tejun Heo wrote:
> This is added by added by cff63dfceb52c564fe1ba5394d50ab7d599a11b9
>  - pata: cable methods.
> 
> Signed-off-by: Tejun Heo <htejun@gmail.com>
> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
> ---
>  drivers/ata/pata_amd.c |    5 -----
>  1 files changed, 0 insertions(+), 5 deletions(-)

applied



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-04-28 18:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-22 17:04 [PATCH] pata_amd: remove contamination added during cable_detect conversion Tejun Heo
2007-04-22 17:40 ` Alan Cox
2007-04-22 17:51   ` Tejun Heo
2007-04-22 17:59     ` Alan Cox
2007-04-22 18:14       ` Tejun Heo
2007-04-22 18:20         ` Alan Cox
2007-04-28 18:46 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).