From owner-freebsd-current Sat Dec 15 19:24:18 2001 Delivered-To: freebsd-current@freebsd.org Received: from patan.sun.com (patan.Sun.COM [192.18.98.43]) by hub.freebsd.org (Postfix) with ESMTP id 8E44E37B405 for ; Sat, 15 Dec 2001 19:24:09 -0800 (PST) Received: from sunsgp.Singapore.Sun.COM ([129.158.71.3]) by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id UAA09626 for ; Sat, 15 Dec 2001 20:23:50 -0700 (MST) Received: from nutty.singapore.sun.com (nutty [129.158.72.188]) by sunsgp.Singapore.Sun.COM (8.10.2+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id fBG3NSu21787 for ; Sun, 16 Dec 2001 11:23:28 +0800 (SGT) Received: (qmail 4061 invoked by uid 99407); Sun, 16 Dec 2001 11:24:06 +0800 (SGT) Date: Sun, 16 Dec 2001 11:24:06 +0800 From: KT Sin To: Jon Christopherson Cc: freebsd-current@FreeBSD.ORG Subject: Re: current doesnt see ps2 port with acpi enabled on intel vc820 Message-ID: <20011216032404.GA3951@nutty.Singapore.Sun.COM> References: <6529DF071451F545B92CD5CBCF61710284E3@nexus.jons.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline In-Reply-To: <6529DF071451F545B92CD5CBCF61710284E3@nexus.jons.org> User-Agent: Mutt/1.3.24i 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 --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi I'm seeing the same problem on my MSI bookpc. For some reasons, the psm device will fail to get an IRQ when ACPI is enabled. Can you try the attached patch and see if it helps? kt On Sat, Dec 15, 2001 at 09:16:07AM -0800, Jon Christopherson wrote: > Hello, > > I have just compiled and installed -current from this morning > 7AMPST, and have noticed that when acpi is enabled in loader.conf the OS > does not see the ps2 mouse port. When I turn off ACPI the mouse port > shows up fine. Other than not seeing the ps2 port when in ACPI enabled > mode, the OS works without a hitch on my motherboard. Any ideas? IF this > is a known problem please let me know, as I have been off this list for > a month or so. > > On another note .. when doing a make distribution in > /usr/src/etc, the process will fail when trying to install MAKEDEV and > MAKEDEV.local into /dev both in single user and multiuser. I got around > this by telling it to not install them. > > I have attached dmesg output from both ACPI and non ACPI enabled > boots. > > Thanks in advance, > > Jon Christopherson > > 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 5.0-CURRENT #1: Sat Dec 15 08:04:04 PST 2001 > jon@genesis.jons.org:/usr/obj/usr/src/sys/GENESIS > Preloaded elf kernel "/boot/kernel/kernel" at 0xc0438000. > Preloaded elf module "/boot/kernel/acpi.ko" at 0xc04380a8. > Timecounter "i8254" frequency 1193182 Hz > Timecounter "TSC" frequency 598476354 Hz > CPU: Pentium III/Pentium III Xeon/Celeron (598.48-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x673 Stepping = 3 > Features=0x383f9ff > real memory = 133955584 (130816K bytes) > avail memory = 125849600 (122900K bytes) > pnpbios: Bad PnP BIOS data checksum > Pentium Pro MTRR support enabled > VESA: v3.0, 16320k memory, flags:0x1, mode table:0xc03788a2 (1000022) > VESA: NVidia > Using $PIR table, 11 entries at 0xc00f2f60 > npx0: on motherboard > npx0: INT 16 interface > acpi0: on motherboard > acpi0: power button is handled as a fixed feature programming model. > Timecounter "ACPI" frequency 3579545 Hz > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 > acpi_cpu0: on acpi0 > acpi_button0: on acpi0 > acpi_pcib0: port 0xcf8-0xcff on acpi0 > pci0: on acpi_pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pci1: at device 0.0 (no driver attached) > pcib2: at device 30.0 on pci0 > pci2: on pcib2 > pcm0: port 0xdf00-0xdf3f irq 11 at device 7.0 on pci2 > fxp0: port 0xdf80-0xdf9f mem 0xfe900000-0xfe9fffff,0xf43ff000-0xf43fffff irq 10 at device 9.0 on pci2 > fxp0: Ethernet address 00:a0:c9:69:49:b4 > inphy0: on miibus0 > inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > ahc0: port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff irq 9 at device 10.0 on pci2 > aic7880: Ultra Wide Channel A, SCSI Id=7, 16/255 SCBs > pci2: at device 12.0 (no driver attached) > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port 0xffa0-0xffaf at device 31.1 on pci0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > uhci0: port 0xef80-0xef9f irq 11 at device 31.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 > pci0: at device 31.3 (no driver attached) > atkbdc0: port 0x64,0x60 irq 1 on acpi0 > atkbd0: flags 0x1 irq 1 on atkbdc0 > kbd0 at atkbd0 > fdc0: port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3,0x3f0-0x3f1 irq 6 on acpi0 > fdc0: FIFO enabled, 8 bytes threshold > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > sio0 port 0x3f8-0x3ff irq 4 on acpi0 > sio0: type 16550A > sio1 port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > ppc0 port 0x378-0x37f irq 7 on acpi0 > ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > ata-: ata0 already exists, skipping it > ata-: ata1 already exists, skipping it > atkbdc-: atkbdc0 already exists, skipping it > fdc-: fdc0 already exists, skipping it > ppc-: ppc0 already exists, skipping it > sio-: sio0 already exists, skipping it > sio-: sio1 already exists, skipping it > sc-: sc0 already exists, skipping it > vga-: vga0 already exists, skipping it > pmtimer0 on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > ad0: 39082MB [79406/16/63] at ata0-master UDMA66 > acd0: CDROM at ata1-master PIO4 > Waiting 5 seconds for SCSI devices to settle > Mounting root from ufs:/dev/ad0s1a > 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 5.0-CURRENT #1: Sat Dec 15 08:04:04 PST 2001 > jon@genesis.jons.org:/usr/obj/usr/src/sys/GENESIS > Preloaded elf kernel "/boot/kernel/kernel" at 0xc03f4000. > Timecounter "i8254" frequency 1193182 Hz > Timecounter "TSC" frequency 598476017 Hz > CPU: Pentium III/Pentium III Xeon/Celeron (598.48-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x673 Stepping = 3 > Features=0x383f9ff > real memory = 133955584 (130816K bytes) > avail memory = 126128128 (123172K bytes) > pnpbios: Bad PnP BIOS data checksum > Pentium Pro MTRR support enabled > VESA: v3.0, 16320k memory, flags:0x1, mode table:0xc03788a2 (1000022) > VESA: NVidia > Using $PIR table, 11 entries at 0xc00f2f60 > npx0: on motherboard > npx0: INT 16 interface > pcib0: at pcibus 0 on motherboard > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pci1: at device 0.0 (no driver attached) > pcib2: at device 30.0 on pci0 > pci2: on pcib2 > pcm0: port 0xdf00-0xdf3f irq 11 at device 7.0 on pci2 > pcm0: ac97 codec invalid or not present (id == 0) > device_probe_and_attach: pcm0 attach returned 6 > fxp0: port 0xdf80-0xdf9f mem 0xfe900000-0xfe9fffff,0xf43ff000-0xf43fffff irq 10 at device 9.0 on pci2 > fxp0: Ethernet address 00:a0:c9:69:49:b4 > inphy0: on miibus0 > inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > ahc0: port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff irq 9 at device 10.0 on pci2 > aic7880: Ultra Wide Channel A, SCSI Id=7, 16/255 SCBs > pci2: at device 12.0 (no driver attached) > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port 0xffa0-0xffaf at device 31.1 on pci0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > uhci0: port 0xef80-0xef9f irq 11 at device 31.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 > pci0: at device 31.3 (no driver attached) > ata-: ata0 already exists, skipping it > ata-: ata1 already exists, skipping it > sc-: sc0 already exists, skipping it > vga-: vga0 already exists, skipping it > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: flags 0x1 irq 1 on atkbdc0 > kbd0 at atkbd0 > psm0: irq 12 on atkbdc0 > psm0: model Generic PS/2 mouse, device ID 0 > fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 > fdc0: FIFO enabled, 8 bytes threshold > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > pmtimer0 on isa0 > ppc0: at port 0x378-0x37f irq 7 on isa0 > ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > sio0: type 16550A > sio1 at port 0x2f8-0x2ff irq 3 on isa0 > sio1: type 16550A > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > ad0: 39082MB [79406/16/63] at ata0-master UDMA66 > acd0: CDROM at ata1-master PIO4 > Waiting 5 seconds for SCSI devices to settle > Mounting root from ufs:/dev/ad0s1a --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-psm *** sys/isa/psm.c.orig Sat Oct 13 18:28:02 2001 --- sys/isa/psm.c Tue Nov 6 09:35:25 2001 *************** *** 928,933 **** --- 928,934 ---- int mask; int rid; int i; + int irq; #if 0 kbdc_debug(TRUE); *************** *** 935,940 **** --- 936,952 ---- /* see if IRQ is available */ rid = KBDC_RID_AUX; + + irq = bus_get_resource_start(dev, SYS_RES_IRQ, rid); + if (irq <= 0) { + if (resource_long_value(PSM_DRIVER_NAME, + device_get_unit(dev), "irq", &irq) != 0) + irq = 12; /* XXX */ + device_printf(dev, "irq resource info is missing; " + "assuming irq %ld\n", irq); + bus_set_resource(dev, SYS_RES_IRQ, rid, irq, 1); + } + sc->intr = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, RF_SHAREABLE | RF_ACTIVE); if (sc->intr == NULL) { --sm4nu43k4a2Rpi4c-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message