Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2006 07:20:12 GMT
From:      puc-uart@oldach.net (Helge Oldach)
To:        freebsd-i386@FreeBSD.org
Subject:   Re: i386/105616: UART PCI device just silent...
Message-ID:  <200611270720.kAR7KChO068035@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/105616; it has been noted by GNATS.

From: puc-uart@oldach.net (Helge Oldach)
To: xcllnt@mac.com (Marcel Moolenaar)
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: i386/105616: UART PCI device just silent...
Date: Mon, 27 Nov 2006 08:11:54 +0100 (CET)

 --ELM825927310-1201-0_
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Hi Marcel,
 
 >On Nov 26, 2006, at 3:00 PM, Helge Oldach wrote:
 >
 >>> One thing that strikes me as odd is that sio(4) attaches to acpi(4),
 >>> while uart(4) attaches to isa(4).
 >>
 >> Yes. That is indeed the reason why I send you this. But maybe it's
 >> just harmless.
 >The reason is that acpi is loaded as a module, when uart is not. The
 >acpi bus attachment is not being included in the uart driver because
 >you don't build the acpi driver.
 
 OK. I think I got it.
 
 I made two experiments to verify:
 
 a) acpi compiled into kernel (not loaded as a module), puc and uart in
 kernel (as before)
 
 b) acpi as a module (as before), puc and uart as a module (loaded via
 /boot/loader.conf)
 
 Indeed in both cases I now see
 
 dev.uart.0.%desc: 16550 or compatible
 dev.uart.0.%driver: uart
 dev.uart.0.%location: handle=\_SB_.PCI0.IBRG.COM1
 dev.uart.0.%pnpinfo: _HID=PNP0501 _UID=1
 dev.uart.0.%parent: acpi0
 dev.uart.0.wake: 0
 dev.uart.1.%desc: 16550 or compatible
 dev.uart.1.%driver: uart
 dev.uart.1.%location: handle=\_SB_.PCI0.IBRG.COM2
 dev.uart.1.%pnpinfo: _HID=PNP0501 _UID=2
 dev.uart.1.%parent: acpi0
 dev.uart.1.wake: 0
 
 You are right, there is a cosmetic issue if acpi is loaded as a module,
 but uart is not. I'd say it is cosmetic, as the on-board UARTs (0 and
 1) have been working fine in either configuration, whether attached to
 acpi0 or to isa0.
 
 I have problems with the dual UART PCI board. These are still
 
 dev.uart.2.%desc: 16550 or compatible
 dev.uart.2.%driver: uart
 dev.uart.2.%parent: puc0
 dev.uart.3.%desc: 16550 or compatible
 dev.uart.3.%driver: uart
 dev.uart.3.%parent: puc0
 
 in either case.
 
 >It's not necessarily a problem if you have the right hints,
 
 The delta between my device.hints is this:
 
 --- device.hints~       Thu Jul 14 20:42:19 2005
 +++ device.hints        Mon Nov 27 07:30:37 2006
 @@ -34,13 +34,13 @@
  hint.vt.0.disabled="1"
  hint.apm.0.disabled="1"
  hint.apm.0.flags="0x20"
 -hint.sio.0.at="isa"
 -hint.sio.0.port="0x3F8"
 -hint.sio.0.flags="0x10"
 -hint.sio.0.irq="4"
 -hint.sio.1.at="isa"
 -hint.sio.1.port="0x2F8"
 -hint.sio.1.irq="3"
 +hint.uart.0.at="isa"
 +hint.uart.0.port="0x3F8"
 +hint.uart.0.flags="0x10"
 +hint.uart.0.irq="4"
 +hint.uart.1.at="isa"
 +hint.uart.1.port="0x2F8"
 +hint.uart.1.irq="3"
  hint.sio.2.at="isa"
  hint.sio.2.disabled="1"
  hint.sio.2.port="0x3E8"
 
 There are no specific hints for the puc-based UARTs. I understand that
 PCI devices don't need such hints. Actually, both the "sio kernel" and
 the "uart kernel" locate the device identically on the same IRQ and IO
 ports.
 
 Am I mistaken here?
 
 >Why do you have PUC_FASTINTR for sio, but not for uart?
 
 I had just been trying to play with the knobs that I have in the config
 file. PUC_FASTINTR reduces overruns somewhat for the "sio kernel" but it
 doesn't change behaviour at all. Specifically, no impact on this issue.
 
 Regards,
 Helge
 
 --ELM825927310-1201-0_
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Disposition: attachment; filename=HMO-UART.acpi-in-kernel.dmesg
 Content-Description: /tmp/HMO-UART.acpi-in-kernel.dmesg
 Content-Transfer-Encoding: 7bit
 
 Copyright (c) 1992-2006 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 is a registered trademark of The FreeBSD Foundation.
 FreeBSD 6.2-615 #1: Mon Nov 27 07:27:18 CET 2006
     toor@sep.oldach.net:/usr/obj/usr/src/sys/HMO-UART
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: Intel Pentium III (646.67-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
   Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
 real memory  = 402653184 (384 MB)
 avail memory = 384528384 (366 MB)
 kbd1 at kbdmux0
 acpi0: <COMPAQ CPQB0B5> on motherboard
 Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf808-0xf80b on acpi0
 cpu0: <ACPI CPU> on acpi0
 acpi_throttle0: <ACPI CPU Throttling> on cpu0
 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0x44000000-0x47ffffff at device 0.0 on pci0
 pcib1: <PCI-PCI bridge> at device 1.0 on pci0
 pci1: <PCI bus> on pcib1
 pci1: <display, VGA> at device 0.0 (no driver attached)
 fxp0: <Intel 82559 Pro/100 Ethernet> port 0x2040-0x207f mem 0x41300000-0x41300fff,0x41200000-0x412fffff irq 11 at device 13.0 on pci0
 miibus0: <MII bus> on fxp0
 inphy0: <i82555 10/100 media interface> on miibus0
 inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 fxp0: Ethernet address: 00:90:27:88:10:e6
 puc0: <Dolphin Peripherals 4036> port 0x2000-0x201f irq 10 at device 14.0 on pci0
 uart2: <16550 or compatible> on puc0
 uart3: <16550 or compatible> on puc0
 sym0: <810> port 0x2400-0x24ff mem 0x41100000-0x411000ff irq 11 at device 15.0 on pci0
 sym0: No NVRAM, ID 7, Fast-10, SE, parity checking
 sym0: [GIANT-LOCKED]
 cbb0: <TI1211 PCI-CardBus Bridge> at device 16.0 on pci0
 pccard0: <16-bit PCCard bus> on cbb0
 isab0: <PCI-ISA bridge> at device 20.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x20e0-0x20ef at device 20.1 on pci0
 ata0: <ATA channel 0> on atapci0
 ata1: <ATA channel 1> on atapci0
 uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x20c0-0x20df irq 11 at device 20.2 on pci0
 uhci0: [GIANT-LOCKED]
 usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
 usb0: USB revision 1.0
 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 pci0: <bridge> at device 20.3 (no driver attached)
 acpi_button0: <Power Button> on acpi0
 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: [GIANT-LOCKED]
 psm0: model MouseMan+, device ID 0
 ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77d irq 7 drq 3 on acpi0
 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
 ppc0: FIFO with 16/16/8 bytes threshold
 ppbus0: <Parallel port bus> on ppc0
 lpt0: <Printer> on ppbus0
 lpt0: Interrupt-driven port
 ppi0: <Parallel I/O> on ppbus0
 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
 uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
 fdc0: <floppy drive controller> port 0x3f0-0x3f5 irq 6 drq 2 on acpi0
 fdc0: [FAST]
 fd0: <1440-KB 3.5" drive> on fdc0 drive 0
 sbc0: <ESS ES1869> port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 on acpi0
 sbc0: [GIANT-LOCKED]
 pcm0: <ESS 18xx DSP> on sbc0
 pcm0: [GIANT-LOCKED]
 pmtimer0 on isa0
 orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xe0000-0xe7fff on isa0
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=0x300>
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
 ugen0: vendor 0x05a9 product 0xa511, rev 1.00/1.00, addr 2
 uhub1: vendor 0x04b4 product 0x6560, class 9/0, rev 2.00/0.08, addr 3
 uhub1: 4 ports with 4 removable, self powered
 ucom0: vendor 0x067b product 0x2303, rev 1.10/2.02, addr 4
 Timecounter "TSC" frequency 646666847 Hz quality 800
 Timecounters tick every 1.000 msec
 Fast IPsec: Initialized Security Association Processing.
 ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding enabled, default to deny, logging disabled
 Waiting 5 seconds for SCSI devices to settle
 wi0: <LG 11Mbps Wireless LAN PCI Card> at port 0x100-0x13f irq 11 function 0 config 1 on pccard0
 wi0: using RF:PRISM2.5 MAC:ISL3873
 wi0: Intersil Firmware: Primary (1.1.0), Station (1.4.9)
 wi0: Ethernet address: 00:04:47:50:15:3a
 ad0: 19595MB <MAXTOR 6L020L1 A93.0500> at ata0-master UDMA33
 ad3: 19470MB <IC35L020AVER07 0 ER2OA45A> at ata1-slave UDMA33
 cd0 at sym0 bus 0 target 3 lun 0
 cd0: <TOSHIBA CD-ROM XM-5201TA 3014> Removable CD-ROM SCSI-2 device 
 cd0: 4.237MB/s transfers (4.237MHz, offset 8)
 cd0: cd present [296339 x 2048 byte records]
 Trying to mount root from ufs:/dev/ad0s1a
 
 --ELM825927310-1201-0_
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Disposition: attachment; filename=HMO-UART.puc+uart-module.dmesg
 Content-Description: /tmp/HMO-UART.puc+uart-module.dmesg
 Content-Transfer-Encoding: 7bit
 
 Copyright (c) 1992-2006 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 is a registered trademark of The FreeBSD Foundation.
 FreeBSD 6.2-615 #3: Mon Nov 27 07:43:11 CET 2006
     root@:/usr/obj/usr/src/sys/HMO-UART
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: Intel Pentium III (646.67-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
   Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
 real memory  = 402653184 (384 MB)
 avail memory = 384520192 (366 MB)
 kbd1 at kbdmux0
 acpi0: <COMPAQ CPQB0B5> on motherboard
 Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf808-0xf80b on acpi0
 cpu0: <ACPI CPU> on acpi0
 acpi_throttle0: <ACPI CPU Throttling> on cpu0
 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0x44000000-0x47ffffff at device 0.0 on pci0
 pcib1: <PCI-PCI bridge> at device 1.0 on pci0
 pci1: <PCI bus> on pcib1
 pci1: <display, VGA> at device 0.0 (no driver attached)
 fxp0: <Intel 82559 Pro/100 Ethernet> port 0x2040-0x207f mem 0x41300000-0x41300fff,0x41200000-0x412fffff irq 11 at device 13.0 on pci0
 miibus0: <MII bus> on fxp0
 inphy0: <i82555 10/100 media interface> on miibus0
 inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 fxp0: Ethernet address: 00:90:27:88:10:e6
 puc0: <Dolphin Peripherals 4036> port 0x2000-0x201f irq 10 at device 14.0 on pci0
 uart2: <16550 or compatible> on puc0
 uart3: <16550 or compatible> on puc0
 sym0: <810> port 0x2400-0x24ff mem 0x41100000-0x411000ff irq 11 at device 15.0 on pci0
 sym0: No NVRAM, ID 7, Fast-10, SE, parity checking
 sym0: [GIANT-LOCKED]
 cbb0: <TI1211 PCI-CardBus Bridge> at device 16.0 on pci0
 pccard0: <16-bit PCCard bus> on cbb0
 isab0: <PCI-ISA bridge> at device 20.0 on pci0
 isa0: <ISA bus> on isab0
 atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x20e0-0x20ef at device 20.1 on pci0
 ata0: <ATA channel 0> on atapci0
 ata1: <ATA channel 1> on atapci0
 uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x20c0-0x20df irq 11 at device 20.2 on pci0
 uhci0: [GIANT-LOCKED]
 usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
 usb0: USB revision 1.0
 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 pci0: <bridge> at device 20.3 (no driver attached)
 acpi_button0: <Power Button> on acpi0
 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 psm0: <PS/2 Mouse> irq 12 on atkbdc0
 psm0: [GIANT-LOCKED]
 psm0: model MouseMan+, device ID 0
 ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77d irq 7 drq 3 on acpi0
 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
 ppc0: FIFO with 16/16/8 bytes threshold
 ppbus0: <Parallel port bus> on ppc0
 lpt0: <Printer> on ppbus0
 lpt0: Interrupt-driven port
 ppi0: <Parallel I/O> on ppbus0
 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
 uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
 fdc0: <floppy drive controller> port 0x3f0-0x3f5 irq 6 drq 2 on acpi0
 fdc0: [FAST]
 fd0: <1440-KB 3.5" drive> on fdc0 drive 0
 sbc0: <ESS ES1869> port 0x220-0x22f,0x388-0x38b,0x330-0x331 irq 5 drq 1,0 on acpi0
 sbc0: [GIANT-LOCKED]
 pcm0: <ESS 18xx DSP> on sbc0
 pcm0: [GIANT-LOCKED]
 pmtimer0 on isa0
 orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xe0000-0xe7fff on isa0
 sc0: <System console> at flags 0x100 on isa0
 sc0: VGA <16 virtual consoles, flags=0x300>
 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
 ugen0: vendor 0x05a9 product 0xa511, rev 1.00/1.00, addr 2
 uhub1: vendor 0x04b4 product 0x6560, class 9/0, rev 2.00/0.08, addr 3
 uhub1: 4 ports with 4 removable, self powered
 ucom0: vendor 0x067b product 0x2303, rev 1.10/2.02, addr 4
 Timecounter "TSC" frequency 646666756 Hz quality 800
 Timecounters tick every 1.000 msec
 Fast IPsec: Initialized Security Association Processing.
 ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding enabled, default to deny, logging disabled
 Waiting 5 seconds for SCSI devices to settle
 wi0: <LG 11Mbps Wireless LAN PCI Card> at port 0x100-0x13f irq 11 function 0 config 1 on pccard0
 wi0: using RF:PRISM2.5 MAC:ISL3873
 wi0: Intersil Firmware: Primary (1.1.0), Station (1.4.9)
 wi0: Ethernet address: 00:04:47:50:15:3a
 ad0: 19595MB <MAXTOR 6L020L1 A93.0500> at ata0-master UDMA33
 ad3: 19470MB <IC35L020AVER07 0 ER2OA45A> at ata1-slave UDMA33
 cd0 at sym0 bus 0 target 3 lun 0
 cd0: <TOSHIBA CD-ROM XM-5201TA 3014> Removable CD-ROM SCSI-2 device 
 cd0: 4.237MB/s transfers (4.237MHz, offset 8)
 cd0: cd present [296339 x 2048 byte records]
 Trying to mount root from ufs:/dev/ad0s1a
 
 --ELM825927310-1201-0_--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611270720.kAR7KChO068035>