Re: 6.3-RELEASE can not mount root on Cyrix 5530 ATA33 controller

2008-01-25 Thread Søren Schmidt

On 25Jan, 2008, at 15:05 , John Baldwin wrote:


On Wednesday 23 January 2008 03:52:39 pm Søren Schmidt wrote:

On 23Jan, 2008, at 21:09 , Xin LI wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yoshihiko Sarumaru wrote:

Hello,
I updated my Geode GX1 PC from RELENG_6_2 to RELENG_6_3 and found
root mount failed after reboot.

This problem was caused by a change to ata-pci.c to pick up wider  
old

ata controller as ata-pci devices at ata_legacy() function, and
roll backing
that file resolved this problem for me.


Which revision?


Actually, its the fix to pci/pci.c that hasn't been backported to 6.x
yet...


Rev 1.343?  It should apply to 6.x cleanly.  Patch below:


Yep, that one exactly.

-Søren



Index: pci.c
===
RCS file: /host/cvs/usr/cvs/src/sys/dev/pci/pci.c,v
retrieving revision 1.292.2.23
diff -u -r1.292.2.23 pci.c
--- pci.c   10 Jan 2008 21:17:12 -  1.292.2.23
+++ pci.c   25 Jan 2008 14:05:20 -
@@ -1898,7 +1898,9 @@
/* ATA devices needs special map treatment */
if ((pci_get_class(dev) == PCIC_STORAGE) &&
(pci_get_subclass(dev) == PCIS_STORAGE_IDE) &&
-   (pci_get_progif(dev) & PCIP_STORAGE_IDE_MASTERDEV))
+   ((pci_get_progif(dev) & PCIP_STORAGE_IDE_MASTERDEV) ||
+(!pci_read_config(dev, PCIR_BAR(0), 4) &&
+ !pci_read_config(dev, PCIR_BAR(2), 4))) )
pci_ata_maps(pcib, bus, dev, b, s, f, rl, force, prefetchmask);
else
for (i = 0; i < cfg->nummaps;)


--
John Baldwin




___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 6.3-RELEASE can not mount root on Cyrix 5530 ATA33 controller

2008-01-25 Thread John Baldwin
On Wednesday 23 January 2008 03:52:39 pm Søren Schmidt wrote:
> On 23Jan, 2008, at 21:09 , Xin LI wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Yoshihiko Sarumaru wrote:
> >> Hello,
> >> I updated my Geode GX1 PC from RELENG_6_2 to RELENG_6_3 and found
> >> root mount failed after reboot.
> >>
> >> This problem was caused by a change to ata-pci.c to pick up wider old
> >> ata controller as ata-pci devices at ata_legacy() function, and  
> >> roll backing
> >> that file resolved this problem for me.
> >
> > Which revision?
> 
> Actually, its the fix to pci/pci.c that hasn't been backported to 6.x  
> yet...

Rev 1.343?  It should apply to 6.x cleanly.  Patch below:

Index: pci.c
===
RCS file: /host/cvs/usr/cvs/src/sys/dev/pci/pci.c,v
retrieving revision 1.292.2.23
diff -u -r1.292.2.23 pci.c
--- pci.c   10 Jan 2008 21:17:12 -  1.292.2.23
+++ pci.c   25 Jan 2008 14:05:20 -
@@ -1898,7 +1898,9 @@
/* ATA devices needs special map treatment */
if ((pci_get_class(dev) == PCIC_STORAGE) &&
(pci_get_subclass(dev) == PCIS_STORAGE_IDE) &&
-   (pci_get_progif(dev) & PCIP_STORAGE_IDE_MASTERDEV))
+   ((pci_get_progif(dev) & PCIP_STORAGE_IDE_MASTERDEV) ||
+(!pci_read_config(dev, PCIR_BAR(0), 4) &&
+ !pci_read_config(dev, PCIR_BAR(2), 4))) )
pci_ata_maps(pcib, bus, dev, b, s, f, rl, force, prefetchmask);
else
for (i = 0; i < cfg->nummaps;)


-- 
John Baldwin
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 6.3-RELEASE can not mount root on Cyrix 5530 ATA33 controller

2008-01-23 Thread Søren Schmidt

On 23Jan, 2008, at 21:09 , Xin LI wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yoshihiko Sarumaru wrote:

Hello,
I updated my Geode GX1 PC from RELENG_6_2 to RELENG_6_3 and found
root mount failed after reboot.

This problem was caused by a change to ata-pci.c to pick up wider old
ata controller as ata-pci devices at ata_legacy() function, and  
roll backing

that file resolved this problem for me.


Which revision?


Actually, its the fix to pci/pci.c that hasn't been backported to 6.x  
yet...


-Søren



___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 6.3-RELEASE can not mount root on Cyrix 5530 ATA33 controller

2008-01-23 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yoshihiko Sarumaru wrote:
> Hello,
> I updated my Geode GX1 PC from RELENG_6_2 to RELENG_6_3 and found
> root mount failed after reboot.
> 
> This problem was caused by a change to ata-pci.c to pick up wider old
> ata controller as ata-pci devices at ata_legacy() function, and roll backing
> that file resolved this problem for me.

Which revision?

> I'm not sure why attaching Cyrix 5530 ATA33 controller was failed at
> both 6.2 and 6.3, but I hope this contoller goes to work as an ATA33
> controller. Making buildworld requires more than 24hours with PIO

Cheers,
- --
Xin LI <[EMAIL PROTECTED]>  http://www.delphij.net/
FreeBSD - The Power to Serve!
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHl576i+vbBBjt66ARAn0HAJ0Wg3h6ruok7YwRQX5RF4YC4YR33wCfeTPn
1FyI8MuJWGat/7FcCrPe+7k=
=2ywz
-END PGP SIGNATURE-
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


6.3-RELEASE can not mount root on Cyrix 5530 ATA33 controller

2008-01-23 Thread Yoshihiko Sarumaru
Hello,
I updated my Geode GX1 PC from RELENG_6_2 to RELENG_6_3 and found
root mount failed after reboot.

This problem was caused by a change to ata-pci.c to pick up wider old
ata controller as ata-pci devices at ata_legacy() function, and roll backing
that file resolved this problem for me.

I'm not sure why attaching Cyrix 5530 ATA33 controller was failed at
both 6.2 and 6.3, but I hope this contoller goes to work as an ATA33
controller. Making buildworld requires more than 24hours with PIO
HDD...

Is there anyone who has some information about this controller?
Thanks,


Here are the dmesgs:

[RELENG_6_2]
FreeBSD 6.2-RELEASE-p7 #0: Sun Aug  5 21:43:36 JST 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CBUG_XCAST6
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Cyrix GXm (300.68-MHz 586-class CPU)
Origin = "CyrixInstead"  Id = 0x540  DIR=0x8244  Stepping=8  Revision=2
...
atapci0:  port 0xf000-0xf00f at device 18.2 on pci0
atapci0: unable to map interrupt
device_attach: atapci0 attach returned 6
...
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
...
ad0: 38154MB  at ata0-master PIO4

[RELENG_6_3]
FreeBSD 6.3-RELEASE #5: Wed Jan 23 01:53:05 JST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CBUG_XCAST6
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Cyrix GXm (300.68-MHz 586-class CPU)
  Origin = "CyrixInstead"  Id = 0x540  DIR=0x8244  Stepping=8  Revision=2
...
atapci0:  port 0xf000-0xf00f at device 10.2 on pci0
ata0:  on atapci0
device_attach: ata0 attach returned 6
ata1:  on atapci0
device_attach: ata1 attach returned 6
...
Trying to mount root from ufs:/dev/ad0s1a

Manual root filesystem specification:
  :  Mount  using filesystem 
   eg. ufs:da0s1a
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"