From owner-freebsd-stable Sun Mar 25 11: 4:32 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ns.altadena.net (ns.altadena.net [206.126.144.2]) by hub.freebsd.org (Postfix) with ESMTP id 4B98837B722; Sun, 25 Mar 2001 11:04:23 -0800 (PST) (envelope-from pete@ns.altadena.net) Received: (from pete@localhost) by ns.altadena.net (8.11.3/8.8.8) id f2PJ2Tf26962; Sun, 25 Mar 2001 11:02:29 -0800 (PST) (envelope-from pete) From: Pete Carah Message-Id: <200103251902.f2PJ2Tf26962@ns.altadena.net> Subject: Geode/5530 UDMA? To: stable@freebsd.org, sos@freebsd.org Date: Sun, 25 Mar 2001 11:02:29 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=iso8859-1 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a Geode/5530 board (Advantech) in which the bios recognizes the UDMA2 mode but FBSD (stable) doesn't. I notice some explicit code in ata-all and ata-dma for the 5530, and also see that the immediate problem is bmaddr coming in 0, causing ata-dma to never get called. I do have the PDF datasheet for the 5530A (but no other dma controllers where this does work) and wonder how bmaddr should be set... (it looks like we have to set bmaddr from what I see of "f2bar", and that it comes in disabled by default, or is the bios supposed to set that in such a way that you pick it up?) I do have pnp-os set "off", and a usb mouse *does* work, so at least that much of the bios setup works. Another clue/mystery is that I have to have ata0 and ata1 in the kernel config or the ide doesn't work at all; this may be the problem - pci isn't recognizing the ata controller correctly? though dmesg shows: atapci0: port 0xf000-0xf00f at device 18.2 on pci0 I can probably debug this with some pointers at where to look, but jumping cold into the pci code is "interesting"... I suspect that where I was looking in ata-disk a couple of weeks ago is too late in the process. In case it matters, dmesg shows Sunday but the cvsup was yesterday afternoon PST. -- Pete -------------------------------------------------------------- Verbose dmesg: Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.3-RC #0: Sun Mar 25 09:41:18 PST 2001 pete@tiny.altadena.net:/usr/src/sys/compile/TINY Calibrating clock(s) ... TSC clock: 299234844 Hz, i8254 clock: 1193177 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method Timecounter "TSC" frequency 299236868 Hz CPU: Cyrix GXm (299.24-MHz 586-class CPU) Origin = "CyrixInstead" Id = 0x540 DIR=0x8144 Stepping=8 Revision=1 real memory = 130023424 (126976K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x00352000 - 0x07bf7fff, 126509056 bytes (30886 pages) avail memory = 123056128 (120172K bytes) bios32: Found BIOS32 Service Directory header at 0xc00fa8f0 bios32: Entry = 0xfad70 (c00fad70) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xada0 pnpbios: Found PnP BIOS data at 0xc00fb900 pnpbios: Entry = f0000:b928 Rev = 1.0 Other BIOS signatures found: ACPI: 00000000 Preloaded elf kernel "kernel" at 0xc032c000. md0: Malloc disk Creating DISK md0 pci_open(1): mode 1 addr port (0x0cf8) is 0x800090d0 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=00011078) npx0: on motherboard npx0: INT 16 interface i586_bzero() bandwidth = 75728890 bytes/sec bzero() bandwidth = 68166325 bytes/sec pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=00011078) pcib0: on motherboard found-> vendor=0x1078, dev=0x0001, revid=0x00 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 found-> vendor=0x8086, dev=0x1209, revid=0x09 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base e2040000, size 12 map[14]: type 1, range 32, base 0000e000, size 6 map[18]: type 1, range 32, base e2020000, size 17 found-> vendor=0x8086, dev=0x1209, revid=0x09 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=10 map[10]: type 1, range 32, base e2041000, size 12 map[14]: type 1, range 32, base 0000e400, size 6 map[18]: type 1, range 32, base e2000000, size 17 found-> vendor=0x1078, dev=0x0100, revid=0x00 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x1078, dev=0x0101, revid=0x00 class=06-80-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[10]: type 1, range 32, base 40012000, size 8 found-> vendor=0x1078, dev=0x0102, revid=0x00 class=01-01-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[20]: type 1, range 32, base 0000f000, size 4 found-> vendor=0x1078, dev=0x0103, revid=0x00 class=04-01-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[10]: type 1, range 32, base 40011000, size 7 found-> vendor=0x1078, dev=0x0104, revid=0x00 class=03-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 map[10]: type 1, range 32, base 40800000, size 23 found-> vendor=0x0e11, dev=0xa0f8, revid=0x06 class=0c-03-10, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base e2045000, size 12 pci0: on pcib0 fxp0: port 0xe000-0xe03f mem 0xe2020000-0xe203ffff,0xe2040000-0xe2040fff irq 11 at device 11.0 on pci0 fxp0: Ethernet address 00:d0:c9:28:07:89 bpf: fxp0 attached fxp1: port 0xe400-0xe43f mem 0xe2000000-0xe201ffff,0xe2041000-0xe2041fff irq 10 at device 12.0 on pci0 fxp1: Ethernet address 00:d0:c9:28:07:90 bpf: fxp1 attached isab0: at device 18.0 on pci0 isa0: on isab0 chip1: mem 0x40012000-0x400120ff at device 18.1 on pci0 atapci0: port 0xf000-0xf00f at device 18.2 on pci0 ata2: probe allocation failed pci0: (vendor=0x1078, dev=0x0103) at 18.3 pci0: (vendor=0x1078, dev=0x0104) at 18.4 ohci0: mem 0xe2045000-0xe2045fff irq 11 at device 19.0 on pci0 ohci0: (New OHCI DeviceId=0xa0f80e11) using shared irq11. usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: (unknown) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x0000 ata0: mask=03 status0=50 status1=00 ata0: mask=03 ostat0=50 ostat2=00 ata0-slave: ATAPI probe a=00 b=00 ata0-master: ATAPI probe a=00 b=00 ata0: mask=03 status0=50 status1=00 ata0-master: ATA probe a=01 b=a5 ata0: devices=01 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x0000 ata1: mask=03 status0=00 status1=00 ata1: mask=03 ostat0=00 ostat2=00 ata1-master: ATAPI probe a=00 b=00 ata1-slave: ATAPI probe a=00 b=00 ata1: mask=03 status0=00 status1=00 ata1: devices=00 ata1 at port 0x170-0x177,0x376 irq 15 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0047 atkbd: keyboard ID 0x41ab (2) kbd0 at atkbd0 kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000 psm0: current command byte:0047 psm0: irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0-00, 4 buttons psm0: config:00000000, flags:00000000, packet size:3 psm0: syncmask:c0, syncbits:00 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fb0: vga0, vga, type:VGA (5), flags:0x7007f fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000 fb0: init mode:24, bios mode:3, current mode:24 fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k VGA parameters upon power-up 50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0e 0f 00 00 07 80 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff VGA parameters in BIOS for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff EGA/VGA parameters to be used for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sc0: fb0, kbd0, terminal emulator: sc (syscons terminal) sio0: irq maps: 0x41 0x51 0x41 0x41 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1: irq maps: 0x41 0x49 0x41 0x41 sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: parallel port found at 0x378 ppc0: using extended I/O port range ppc0: EPP SPP ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppi0: on ppbus0 vpo0: can't connect to the drive imm0: (disconnect) s1=0x38 s2=0x38, s3=0x38 imm0: (connect) s1=0x38 s2=0x38, s3=0x38 imm0: (connect) s1=0x38 s2=0x38, s3=0x38 lpt0: on ppbus0 lpt0: Interrupt-driven port plip0: on ppbus0 bpf: lp0 attached isa_probe_children: probing PnP devices BIOS Geometries: 0:03ff0f3f 0..1023=1024 cylinders, 0..15=16 heads, 1..63=63 sectors 0 accounted for Device configuration finished. bpf: vlan0 attached bpf: vlan1 attached bpf: vlan2 attached bpf: vlan3 attached bpf: vlan4 attached bpf: vlan5 attached bpf: vlan6 attached bpf: vlan7 attached bpf: vlan8 attached bpf: vlan9 attached bpf: vlan10 attached bpf: vlan11 attached bpf: vlan12 attached bpf: vlan13 attached bpf: vlan14 attached bpf: vlan15 attached bpf: vlan16 attached bpf: vlan17 attached bpf: vlan18 attached bpf: vlan19 attached bpf: faith0 attached IPv6 packet filtering initialized, unlimited logging bpf: gif0 attached bpf: gif1 attached bpf: gif2 attached bpf: gif3 attached IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, unlimited logging bpf: lo0 attached IPsec: Initialized Security Association Processing. Creating DISK ad0 Creating DISK wd0 ad0: ATA-5 disk at ata0-master ad0: 19077MB (39070080 sectors), 38760 cyls, 16 heads, 63 S/T, 512 B/S ad0: 16 secs/int, 1 depth queue, BIOSPIO ad0: piomode=4 dmamode=2 udmamode=4 cblid=1 ad0: 19077MB [38760/16/63] at ata0-master BIOSPIO Mounting root from ufs:/dev/ad0s1a ad0s1: type 0xa5, start 63, end = 39070079, size 39070017 : OK WARNING: / was not properly dismounted start_init: trying /sbin/init splash: image decoder found: snake_saver To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message