Re: Remaining SATA (and other) issues TAKE 2
- From: "Arno J. Klaassen" <arno@xxxxxxxxxxxxxxxxxxx>
- Date: 11 Nov 2007 17:25:10 +0100
Søren, Alexander,
Alexander found the bug causing the data to be offset wrongly in my
last patch, this new one should fix that so we dont get disappearing
nodes etc, sorry about that :)
Please apply to clean releng_7 sources.
Let me know how it turns out.
I still test first on releng_6, but initial testing indicates
it solves my problems.
Thank you very much!
NB, I still get an error in ata_pci_attach() when
bus_alloc_resource_any() for ATA_BMADDR_RID :
pci0: child atapci0 requested type 4 for rid 0x20, but the BAR says it is an memio
When I retry with "ctlr->r_type1 = SYS_RES_MEMORY" (diff attached)
it says :
atapci0: Reserved 0x20000 bytes for rid 0x20 type 3 at 0xfba00000
which it anyway says as well a bit later when attaching :
ioapic0: routing intpin 18 (PCI IRQ 18) to vector 49
atapci0: [MPSAFE]
atapci0: Reserved 0x20000 bytes for rid 0x20 type 3 at 0xfba00000
atapci0: Reserved 0x1000 bytes for rid 0x1c type 3 at 0xfbb00000
atapci0: [MPSAFE]
Just if ever this info helps you; the failing bus_alloc_resource_any()
for ATA_BMADDR_RID does not seem to have any influence.
Once again thanx.
Best, Arno
Index: ata-pci.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-pci.c,v
retrieving revision 1.105.2.6
diff -u -r1.105.2.6 ata-pci.c
--- ata-pci.c 9 Nov 2007 09:58:08 -0000 1.105.2.6
+++ ata-pci.c 11 Nov 2007 15:58:07 -0000
@@ -212,6 +212,17 @@
ctlr->r_rid1 = ATA_BMADDR_RID;
ctlr->r_res1 = bus_alloc_resource_any(dev, ctlr->r_type1, &ctlr->r_rid1,
RF_ACTIVE);
+ /* ARNO some bios + TX4 claim memio iso portio */
+ if ( (ctlr->r_res1 == NULL) && (ctlr->chip->chipid == ATA_PDC40718) ) {
+ device_printf(dev,
+ " ARNO TX4 fails ioport for rid %#x\n"
+ " retry with memio .. \n", ATA_BMADDR_RID);
+ ctlr->r_type1 = SYS_RES_MEMORY;
+ ctlr->r_res1 = bus_alloc_resource_any(dev, ctlr->r_type1,
+ &ctlr->r_rid1, RF_ACTIVE);
+ if (ctlr->r_res1 == NULL) device_printf(dev, " ARNO memio KO\n");
+ else device_printf(dev, " ARNO memio OK!\n");
+ }
}
if (ctlr->chipinit(dev))
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Remaining SATA (and other) issues TAKE 2
- From: Søren Schmidt
- Re: Remaining SATA (and other) issues TAKE 2
- References:
- Remaining SATA (and other) issues
- From: Nathan Butcher
- Re: Remaining SATA (and other) issues
- From: Alexander Sabourenkov
- Re: Remaining SATA (and other) issues
- From: Søren Schmidt
- Re: Remaining SATA (and other) issues
- From: Alexander Sabourenkov
- Re: Remaining SATA (and other) issues
- From: Søren Schmidt
- Re: Remaining SATA (and other) issues
- From: Alexander Sabourenkov
- Re: Remaining SATA (and other) issues TAKE 2
- From: Søren Schmidt
- Remaining SATA (and other) issues
- Prev by Date: FreeBSD 7.0 BETA 2 crashes when starts up with USB disk plugged in
- Next by Date: Re: Remaining SATA (and other) issues TAKE 2
- Previous by thread: Re: Remaining SATA (and other) issues TAKE 2
- Next by thread: Re: Remaining SATA (and other) issues TAKE 2
- Index(es):
Relevant Pages
|