Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2001 11:24:06 +0800
From:      KT Sin <ktsin@acm.org>
To:        Jon Christopherson <jon@jons.org>
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>
In-Reply-To: <6529DF071451F545B92CD5CBCF61710284E3@nexus.jons.org>
References:  <6529DF071451F545B92CD5CBCF61710284E3@nexus.jons.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
> 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: <math processor> on motherboard
> npx0: INT 16 interface
> acpi0: <AMIOEM OEMRSDT > 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: <CPU> on acpi0
> acpi_button0: <Sleep Button> on acpi0
> acpi_pcib0: <Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <PCI bus> on acpi_pcib0
> 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)
> pcib2: <PCI-PCI bridge> at device 30.0 on pci0
> pci2: <PCI bus> on pcib2
> pcm0: <AudioPCI ES1373-B> port 0xdf00-0xdf3f irq 11 at device 7.0 on pci2
> fxp0: <Intel Pro 10/100B/100+ Ethernet> 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: <i82555 10/100 media interface> on miibus0
> inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> ahc0: <Adaptec 2940 Ultra SCSI adapter> 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: <multimedia, video> at device 12.0 (no driver attached)
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel ICH ATA66 controller> port 0xffa0-0xffaf at device 31.1 on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> uhci0: <Intel 82801AA (ICH) USB controller> port 0xef80-0xef9f irq 11 at device 31.2 on pci0
> usb0: <Intel 82801AA (ICH) 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: <serial bus, SMBus> at device 31.3 (no driver attached)
> atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
> atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
> kbd0 at atkbd0
> fdc0: <NEC 72065B or clone> 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: <Printer> on ppbus0
> lpt0: Interrupt-driven port
> ppi0: <Parallel I/O> 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: <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
> ad0: 39082MB <Maxtor 54098U8> [79406/16/63] at ata0-master UDMA66
> acd0: CDROM <CREATIVECD4831E> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
> 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: <math processor> on motherboard
> npx0: INT 16 interface
> pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
> pci0: <PCI bus> on pcib0
> 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)
> pcib2: <PCI-PCI bridge> at device 30.0 on pci0
> pci2: <PCI bus> on pcib2
> pcm0: <AudioPCI ES1373-B> 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: <Intel Pro 10/100B/100+ Ethernet> 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: <i82555 10/100 media interface> on miibus0
> inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> ahc0: <Adaptec 2940 Ultra SCSI adapter> 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: <multimedia, video> at device 12.0 (no driver attached)
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel ICH ATA66 controller> port 0xffa0-0xffaf at device 31.1 on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> uhci0: <Intel 82801AA (ICH) USB controller> port 0xef80-0xef9f irq 11 at device 31.2 on pci0
> usb0: <Intel 82801AA (ICH) 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: <serial bus, SMBus> 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: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
> atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
> kbd0 at atkbd0
> psm0: <PS/2 Mouse> irq 12 on atkbdc0
> psm0: model Generic PS/2 mouse, device ID 0
> fdc0: <NEC 72065B or clone> 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: <Parallel port> at port 0x378-0x37f irq 7 on isa0
> ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
> lpt0: <Printer> on ppbus0
> lpt0: Interrupt-driven port
> ppi0: <Parallel I/O> on ppbus0
> sc0: <System console> 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: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> ad0: 39082MB <Maxtor 54098U8> [79406/16/63] at ata0-master UDMA66
> acd0: CDROM <CREATIVECD4831E> 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




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