lkml.org 
[lkml]   [2003]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Incorrect 80 wire detection with amd 760mpx & 2.4.21-pre4-ac7
On Sun, Mar 02, 2003 at 02:16:08AM +0000, Alan Cox wrote:
> On Sun, 2003-03-02 at 00:54, Nicholas Wourms wrote:
> > FYI:
> > I suspect that:
> > http://marc.theaimsgroup.com/?l=linux-kernel&m=104619727013220&w=2
> > is related to my problem.
> >
> > Anyhow, I'm using a UDMA5 WesternDigital drive on a ASUS
> > K7M266-D motherboard. With a plain, stock 2.4.20 kernel,
> > the viper driver properly recognizes which channel has the
>
> Yep. I'll apply the obvious fix if Vojtech doesn't. Its on the known
> list

Obvious fix attached.

--
Vojtech Pavlik
SuSE Labs
--- linux-2.4.20-pre4-ac/drivers/ide/pci/amd74xx.c Fri Feb 28 17:05:25 2003
+++ linux-2.4.20-pre4-amd8111/drivers/ide/pci/amd74xx.c Fri Feb 28 17:19:37 2003
@@ -1,5 +1,5 @@
/*
- * Version 2.9
+ * Version 2.10
*
* AMD 755/756/766/8111 and nVidia nForce IDE driver for Linux.
*
@@ -103,7 +103,7 @@

amd_print("----------AMD BusMastering IDE Configuration----------------");

- amd_print("Driver Version: 2.9");
+ amd_print("Driver Version: 2.10");
amd_print("South Bridge: %s", bmide_dev->name);

pci_read_config_byte(dev, PCI_REVISION_ID, &t);
@@ -309,7 +309,8 @@

case AMD_UDMA_100:
pci_read_config_byte(dev, AMD_CABLE_DETECT, &t);
- amd_80w = ((u & 0x3) ? 1 : 0) | ((u & 0xc) ? 2 : 0);
+ pci_read_config_dword(dev, AMD_UDMA_TIMING, &u);
+ amd_80w = ((t & 0x3) ? 1 : 0) | ((t & 0xc) ? 2 : 0);
for (i = 24; i >= 0; i -= 8)
if (((u >> i) & 4) && !(amd_80w & (1 << (1 - (i >> 4))))) {
printk(KERN_WARNING "AMD_IDE: Bios didn't set cable bits corectly. Enabling workaround.\n");
\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.034 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site