From owner-freebsd-stable Thu Jul 27 12:27:22 2000 Delivered-To: freebsd-stable@freebsd.org Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62]) by hub.freebsd.org (Postfix) with ESMTP id AC15E37BB0F for ; Thu, 27 Jul 2000 12:27:13 -0700 (PDT) (envelope-from fanf@hand.dotat.at) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 13HtIw-0000GN-00 for stable@freebsd.org; Thu, 27 Jul 2000 19:26:50 +0000 From: Tony Finch To: stable@freebsd.org Subject: PNPBIOS and atkbd Message-Id: Date: Thu, 27 Jul 2000 19:26:50 +0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Since someone clued me in about using the PNPBIOS option to automate some isa resource allocations I have been experimenting with it. I've managed to remove most of the irq stuff from my kernel configuration file, apart from a few culprits. The main one is the keyboard and mouse. The minimum working config I have found is: device atkbdc device atkbd0 at atkbdc? irq 1 device psm0 at atkbdc? irq 12 If I remove the irq statements the kernel panics when probing the keyboard "nexus_setup_intr: NULL irq resource!" which is a bit of a shame. IWBNI the driver could get that information from PNP. Hmm, but the PNP probe messages don't seem to have the necessary information. The other annoyance is that I have to tell vga and syscons to find themselves on the ISA bus. Does PNP not inform the OS about them either? My config and dmesg are included. Any comments welcome! Tony. -- f.a.n.finch fanf@covalent.net dot@dotat.at 438 the wet carpet treatment ------------------------------------------------------------------------ # $Header: /cvs/fanf/conf/DELL-Latitude-CPx,v 1.24 2000/07/27 18:24:36 fanf Exp $ ident DELL-Latitude-CPx machine i386 cpu I686_CPU maxusers 256 makeoptions DEBUG=-g # increase process limits options MAXDSIZ="(256*1024*1024)" options DFLDSIZ="(256*1024*1024)" options PQ_NORMALCACHE # color for 256k/16k cache options NO_F00F_HACK options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options PERFMON # pentium performance support options KTRACE # ktrace(1) syscall trace support options VESA # support for VESA video modes options INCLUDE_CONFIG_FILE # Include this file in kernel options INVARIANT_SUPPORT # extra sanity checking options INVARIANTS options DIAGNOSTIC # debug messages options DDB # built-in debugger options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options P1003_1B # POSIX Real time extensions options _KPOSIX_PRIORITY_SCHEDULING options INET # InterNETworking options INET6 # ...t.n.g. options IPSEC # IP security options IPSEC_ESP # IP security (crypto; define w/ IPSEC) options ICMP_BANDLIM options FFS # Berkeley Fast Filesystem options FFS_ROOT # FFS usable as root device [keep this!] options NFS # Network Filesystem options NFS_NOSERVER options CD9660 # ISO 9660 Filesystem options MSDOSFS # MSDOS Filesystem options PROCFS # Process filesystem options SOFTUPDATES # better performance options SYNCER_MAXDELAY=256 # allow 5 minutes between syncs device pci device isa options AUTO_EOI_1 # faster interrupt handling #options AUTO_EOI_2 options PNPBIOS # for better isa device configuration # Floating point support device npx # Power management support device apm0 at nexus? flags 0x20 # Floppy drives device fdc0 device fd0 at fdc0 drive 0 # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID # Static device numbering options ATA_ENABLE_ATAPI_DMA # Enable DMA on ATAPI devices # Keyboard and mouse device atkbdc device atkbd0 at atkbdc? irq 1 device psm0 at atkbdc? irq 12 options PSM_HOOKRESUME #hook the system resume event options PSM_RESETAFTERSUSPEND #reset the device at the resume event # Screen device vga0 at isa? # video support device sc0 at isa? # default SCO-like console driver options SC_HISTORY_SIZE=256 # number of history buffer lines options SC_DISABLE_REBOOT # disable reboot key sequence options SC_PIXEL_MODE # enable raster console # Serial ports device sio # Parallel port device ppc # Parallel port controller device ppbus # Parallel port bus device lpt # Printer device ppi # Geek port # PC Card support device pcic device card options PCIC_RESUME_RESET # reset after resume # USB support device uhci # hardware controller device usb # generic controller device ugen # generic device device uhid # buttons and dials device ukbd # keyboard device ulpt # printer device ums # mouse device umass # disks # SCSI support (for umass) device scbus # base SCSI code device da # SCSI direct access devices (aka disks) device pass # CAM passthrough driver # the ESS Maestro driver isn't here yet #device pcm # sound support # Network interfaces device miibus # MII bus support device xl # 3Com 3c90x (in docking station) device ed0 # NE2000 (D-Link pccard ether) pseudo-device loop # Network loopback pseudo-device ether # Ethernet support pseudo-device tun # Packet tunnel, for ppp(8) pseudo-device bpf # Berkeley packet filter pseudo-device vn # Vnode turns files into devices pseudo-device pty # Pseudo-ttys (xterm, telnet etc.) pseudo-device speaker # blips and beeps ------------------------------------------------------------------------ Copyright (c) 1992-2000 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.1-STABLE-20000727 #5: Thu Jul 27 18:20:50 UTC 2000 root@hand.dotat.at:/other/src/sys/compile/DELL-Latitude-CPx Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III/Pentium III Xeon/Celeron (498.47-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383f9ff real memory = 134152192 (131008K bytes) avail memory = 126631936 (123664K bytes) Preloaded elf kernel "test5" at 0xc0360000. module_register_init: MOD_LOAD (vesa, c026db34, 0) error 6 Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 pcic-pci0: irq 11 at device 3.0 on pci0 pcic-pci0: TI12XX PCI Config Reg: [ring enable][speaker enable][FUNC pci int + CSC serial isa irq] pcic-pci1: irq 11 at device 3.1 on pci0 pcic-pci1: TI12XX PCI Config Reg: [ring enable][speaker enable][FUNC pci int + CSC serial isa irq] isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x860-0x86f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 uhci0: port 0xdce0-0xdcff irq 11 at device 7.2 on pci0 usb0: 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 uhub0: port 1 power on failed, IOERROR uhub0: port 2 power on failed, IOERROR chip1: port 0x840-0x84f at device 7.3 on pci0 pci0: (vendor=0x125d, dev=0x1998) at 8.0 irq 5 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x200> unknown0: at port 0xcf8-0xcff on isa0 unknown1: at port 0x800-0x83f,0x840-0x84f,0x880-0x88f,0x3f0-0x3f1,0xe0-0xe1 iomem 0-0x9ffff,0x100000-0x7ffffff,0xf0000-0xfffff,0xfffe0000-0xffffffff,0x100a0000-0x100fffff on isa0 unknown2: at port 0xf400-0xf4fe iomem 0xed000000-0xedffffff on isa0 unknown: can't assign resources unknown3: at port 0x40-0x5f irq 0 on isa0 unknown4: at port 0x80-0x9f,0-0x1f,0xc0-0xdf drq 4 on isa0 atkbdc0: at port 0x60,0x64 irq 1 on isa0 atkbd0: irq 1 on atkbdc0 psm0: irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 unknown: can't assign resources unknown5: at port 0x61 on isa0 unknown6: at port 0x70-0x7f irq 8 on isa0 unknown7: at port 0xf0-0xff irq 13 on isa0 pcic0: at port 0x3e0-0x3e1 irq 9 on isa0 pcic0: management irq 9 pccard0: on pcic0 pccard1: on pcic0 sio0: <16550A-compatible COM port> at port 0x3f8-0x3ff irq 4 on isa0 sio0: type 16550A ppc0: at port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppi0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port fdc0: at port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 IPsec: Initialized Security Association Processing. ad0: 11513MB [23392/16/63] at ata0-master using UDMA33 Mounting root from ufs:/dev/ad0s1a pccard: card inserted, slot 0 ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message