From owner-freebsd-current Sun Mar 9 17:12:32 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4C5837B401; Sun, 9 Mar 2003 17:12:28 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 998F943FCB; Sun, 9 Mar 2003 17:12:27 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc02.attbi.com (sccrmhc02) with ESMTP id <200303100112260020082mele>; Mon, 10 Mar 2003 01:12:26 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA99896; Sun, 9 Mar 2003 17:12:25 -0800 (PST) Date: Sun, 9 Mar 2003 17:12:24 -0800 (PST) From: Julian Elischer To: "Bruce R. Montague" Cc: freebsd-current@FreeBSD.ORG, sos@FreeBSD.ORG Subject: Re: ATA CS5530 (cyrix) driver panic (ata_cyrix_setmode()) In-Reply-To: <200303100010.h2A0AQM00982@cruzio.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I didn;t see the original problem, just the reply.. Just one thing to be aware of when using the 5530. I used a 5530 on the Interjet-II. It has a terrible bug where it fails if the data being transferred to/from the disk by DMA is not alligned on a 16 byte boundary. programs such as newfs and fsck would sometimes make this happen when accessing a raw drive. This was not in the manual at that time, and I don't know if Soeren has the code to check for this. Such transffers must be done using PIO. This may be a red-herring.. (the symptom was that it would never complete the transfer and would hang the bus.) On Sun, 9 Mar 2003, Bruce R. Montague wrote: > > > Hi, re the ata driver and CS5530, Soren Schmidt asked: > > > Could you please dump the pci reg 0x20 (with pciconf) and > > verify that it is endeed 0 ? > > Ok (it's _not_ 0): > > ----- > geode# pciconf -r pci0:18:2 0x20 > 0000fc01 > geode# pciconf -r pci0:18:2 32 > 0000fc01 > ----- > > Is this 0x20 on F2, F2BAR4? Is it supposed to be > 0, not the "I/O mapped Bus Master IDE Registers..."? > I have a 5530 manual (although I'm uncertain if > all the "5530s" really look the same in all > ways...). Bits 31:4 are the bus master IDE base > address (0xfc0). The RO 1 indicates a 16-byte I/O range. > > I am using a reasonably recent National Semiconductor > Centaurus 2 development board. My understanding > is that this is National's current reference > development platform. It uses National's XpressROM > BIOS, intended for use with the GX1 and CS5530. > This BIOS seems to evolve rather rapidly, it > doesn't look like the BIOS is very recent. The > BIOS screen says: > > ------ > Rev: v2.22 B Built: 07/01/2002 07:54:38 > CPU: GX1 8.2 @334 Mhz PCI:33Mhz Multiplier:10x 5530A Rev:B1 > Memory:192512k @83 MHz CAS:3 SDRAM Divisor:4 Shift SDCLK: 2.0 > Floppy A:1.44M Drive 80:41174MB COM1:03F8 LPT1:0378 XpressROM V3.2.5 > RTC:Present COM2:02F8 VSA:0202 > USB:Enabled VBIOS:040D > PM:Disabled > CPU Voltage 2.20 9211: B1/C1 > ------ > > I'll try to track down "r_bmio" life. > > The same hardware runs the "/boot/kernel.last_good/kernel" > "FreeBSD 5.0-CURRENT #3: Mon Jan 20 ... 2003" > fine, there are no obvious driver problems. Other > than the expected -current deltas, the only other > difference between the two systems that I know of > is that the older system is not using the TSC > clock. I'll see if that changes things. They > are basically both GENERIC. > > Other misc info: > > ------ > geode# dmesg | egrep 5530 > atapci0: port 0xfc00-0xfc0f at device 18.2 on pci0 > > ------ > > geode# pciconf -l > hostb0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x00011078 rev=0x00 hdr=0x00 > sis0@pci0:13:0: class=0x020000 card=0x0020100b chip=0x0020100b rev=0x00 hdr=0x00 > isab0@pci0:18:0: class=0x060100 card=0x00000000 chip=0x01001078 rev=0x30 hdr=0x00 > none0@pci0:18:1: class=0x068000 card=0x00000000 chip=0x01011078 rev=0x00 hdr=0x00 > atapci0@pci0:18:2: class=0x010180 card=0x00000000 chip=0x01021078 rev=0x00 hdr=0x00 > none1@pci0:18:3: class=0x040100 card=0x69b61078 chip=0x01031078 rev=0x00 hdr=0x00 > none2@pci0:18:4: class=0x030000 card=0x584d1078 chip=0x01041078 rev=0x00 hdr=0x00 > ohci0@pci0:19:0: class=0x0c0310 card=0xa0f80e11 chip=0xa0f80e11 rev=0x06 hdr=0x00 > > ----- > FreeBSD geode 5.0-CURRENT FreeBSD 5.0-CURRENT #10: Sun Mar 9 06:47:09 GMT 2003 > brucem@geode:/usr/src/sys/i386/compile/GENERIC i386 > > > > > > > > - bruce > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message