Date: Mon, 20 Dec 2010 23:38:57 +0200 From: Ivan Klymenko <fidaj@ukr.net> To: John Baldwin <jhb@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: dev/psm0 not found Message-ID: <20101220233857.762cabc8@ukr.net> In-Reply-To: <201012201602.46538.jhb@freebsd.org> References: <20101218203020.1cec8dc7@ukr.net> <201012201451.15057.jhb@freebsd.org> <20101220220336.6a8beb79@ukr.net> <201012201602.46538.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] В Mon, 20 Dec 2010 16:02:46 -0500 John Baldwin <jhb@freebsd.org> пишет: > On Monday, December 20, 2010 3:03:36 pm Ivan Klymenko wrote: > > В Mon, 20 Dec 2010 14:51:15 -0500 > > John Baldwin <jhb@freebsd.org> пишет: > > > > > On Monday, December 20, 2010 1:14:35 pm Ivan Klymenko wrote: > > > > В Mon, 20 Dec 2010 12:49:53 -0500 > > > > John Baldwin <jhb@freebsd.org> пишет: > > > > > > > > > On Monday, December 20, 2010 11:53:34 am Ivan Klymenko wrote: > > > > > > В Mon, 20 Dec 2010 09:58:57 -0500 > > > > > > John Baldwin <jhb@freebsd.org> пишет: > > > > > > > > > > > > > On Saturday, December 18, 2010 1:30:20 pm Ivan Klymenko > > > > > > > wrote: > > > > > > > > > > > http://svn.freebsd.org/viewvc/base/head/sys/dev/atkbdc/psm.c?view=log > > > > > > > > > > > > > > > > after updating svn revision => 216491 system is not > > > > > > > > detecting the device psm > > > > > > > > http://svn.freebsd.org/viewvc/base?view=revision&revision=216491 > > > > > > > > > > > > > > Can you please get verbose dmesg's from before and after? > > > > > > > > > > > > > > > > > > > Voila. > > /usr/src/sys/dev/atkbdc/psm.c: In function 'psmidentify': > > /usr/src/sys/dev/atkbdc/psm.c:1116: error: void value not ignored > > as it ought to be *** Error code 1 > > Ok, try this: > > Index: psm.c > =================================================================== > --- psm.c (revision 216591) > +++ psm.c (working copy) > @@ -1080,7 +1080,7 @@ > device_t psmc; > device_t psm; > u_long irq; > - int unit; > + int error, unit; > > unit = device_get_unit(parent); > > @@ -1090,8 +1090,10 @@ > return; > > irq = bus_get_resource_start(psm, SYS_RES_IRQ, KBDC_RID_AUX); > - if (irq > 0) > + if (irq > 0) { > + printf("psm%d: already has an IRQ?\n", unit); > return; > + } > > /* > * If the PS/2 mouse device has already been reported by > ACPI or @@ -1100,13 +1102,24 @@ > */ > psmc = device_find_child(device_get_parent(parent), > PSMCPNP_DRIVER_NAME, unit); > - if (psmc == NULL) > + if (psmc == NULL) { > + printf("psm%d: could not find %s%d\n", unit, > + PSMCPNP_DRIVER_NAME, unit); > return; > + } > irq = bus_get_resource_start(psmc, SYS_RES_IRQ, 0); > - if (irq <= 0) > + if (irq <= 0) { > + printf("psm%d: no IRQ from %s\n", unit, > + device_get_nameunit(psmc)); > return; > + } > bus_delete_resource(psmc, SYS_RES_IRQ, 0); > - bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, irq, 1); > + error = bus_set_resource(psm, SYS_RES_IRQ, KBDC_RID_AUX, > irq, 1); > + if (error) > + printf("psm%d: failed to add IRQ %lu: %d\n", unit, > irq, > + error); > + else > + printf("psm%d: added IRQ %lu\n", unit, irq); > } > > #define endprobe(v) do { \ > Not working :( [-- Attachment #2 --] Copyright (c) 1992-2010 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 9.0-CURRENT #0 r216524M: Mon Dec 20 23:19:25 EET 2010 ivan@nonamehost:/usr/obj/usr/src/sys/mk9 amd64 CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (1994.48-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x6fd Family = 6 Model = f Stepping = 13 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM> AMD Features=0x20100800<SYSCALL,NX,LM> AMD Features2=0x1<LAHF> TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 2039611392 (1945 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: <DELL M08 > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 <Version 2.0> irqs 0-23 on motherboard Cuse4BSD v0.1.13 @ /dev/cuse kbd1 at kbdmux0 acpi0: <DELL M08 > on motherboard hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 Event timer "HPET" frequency 14318180 Hz quality 550 Event timer "HPET1" frequency 14318180 Hz quality 440 acpi0: reservation of 0, 9f000 (3) failed acpi0: reservation of 100000, 7fd6d800 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: <ACPI CPU> on acpi0 cpu1: <ACPI CPU> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0 pci1: <ACPI PCI bus> on pcib1 vgapci0: <VGA-compatible display> port 0xef00-0xef7f mem 0xfd000000-0xfdffffff,0xe0000000-0xefffffff,0xfa000000-0xfbffffff irq 16 at device 0.0 on pci1 acpi_video0: <ACPI video extension> on vgapci0 nvidia0: <GeForce 8400M GS> on vgapci0 vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io vgapci0: child nvidia0 requested pci_enable_io uhci0: <Intel 82801H (ICH8) USB controller USB-D> port 0x6f20-0x6f3f irq 20 at device 26.0 on pci0 usbus0: <Intel 82801H (ICH8) USB controller USB-D> on uhci0 uhci1: <Intel 82801H (ICH8) USB controller USB-E> port 0x6f00-0x6f1f irq 21 at device 26.1 on pci0 usbus1: <Intel 82801H (ICH8) USB controller USB-E> on uhci1 ehci0: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> mem 0xfed1c400-0xfed1c7ff irq 22 at device 26.7 on pci0 usbus2: EHCI version 1.0 usbus2: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> on ehci0 hdac0: <Intel 82801H High Definition Audio Controller> mem 0xfebfc000-0xfebfffff irq 21 at device 27.0 on pci0 hdac0: HDA Driver Revision: 20100226_0142 pcib2: <ACPI PCI-PCI bridge> at device 28.0 on pci0 pci11: <ACPI PCI bus> on pcib2 pcib3: <ACPI PCI-PCI bridge> at device 28.1 on pci0 pci12: <ACPI PCI bus> on pcib3 pci12: <network> at device 0.0 (no driver attached) pcib4: <ACPI PCI-PCI bridge> at device 28.3 on pci0 pci13: <ACPI PCI bus> on pcib4 pcib5: <ACPI PCI-PCI bridge> at device 28.5 on pci0 pci9: <ACPI PCI bus> on pcib5 bge0: <Broadcom BCM5906 A2, ASIC rev. 0x00c002> mem 0xf9bf0000-0xf9bfffff irq 17 at device 0.0 on pci9 bge0: CHIP ID 0x0000c002; ASIC REV 0x0c; CHIP REV 0xc0; PCI-E miibus0: <MII bus> on bge0 brgphy0: <BCM5906 10/100baseTX PHY> PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow bge0: Ethernet address: 00:1c:23:f9:bb:5f uhci2: <Intel 82801H (ICH8) USB controller USB-A> port 0x6f80-0x6f9f irq 20 at device 29.0 on pci0 usbus3: <Intel 82801H (ICH8) USB controller USB-A> on uhci2 uhci3: <Intel 82801H (ICH8) USB controller USB-B> port 0x6f60-0x6f7f irq 21 at device 29.1 on pci0 usbus4: <Intel 82801H (ICH8) USB controller USB-B> on uhci3 uhci4: <Intel 82801H (ICH8) USB controller USB-C> port 0x6f40-0x6f5f irq 22 at device 29.2 on pci0 usbus5: <Intel 82801H (ICH8) USB controller USB-C> on uhci4 ehci1: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> mem 0xfed1c000-0xfed1c3ff irq 20 at device 29.7 on pci0 usbus6: EHCI version 1.0 usbus6: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> on ehci1 pcib6: <ACPI PCI-PCI bridge> at device 30.0 on pci0 pci3: <ACPI PCI bus> on pcib6 fwohci0: <1394 Open Host Controller Interface> mem 0xf9aff800-0xf9afffff irq 19 at device 1.0 on pci3 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 32:4f:c0:00:1c:e5:20:70 fwohci0: Phy 1394a available S400, 1 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: <IEEE1394(FireWire) bus> on fwohci0 dcons_crom0: <dcons configuration ROM> on firewire0 dcons_crom0: bus_addr 0x3814000 fwe0: <Ethernet over FireWire> on firewire0 if_fwe0: Fake Ethernet address: 32:4f:c0:e5:20:70 fwe0: Ethernet address: 32:4f:c0:e5:20:70 fwip0: <IP over FireWire> on firewire0 fwip0: Firewire address: 32:4f:c0:00:1c:e5:20:70 @ 0xfffe00000000, S400, maxrec 2048 sbp0: <SBP-2/SCSI over FireWire> on firewire0 fwohci0: Initiate bus reset fwohci0: fwohci_intr_core: BUS reset fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, CYCLEMASTER mode pci3: <base peripheral, SD host controller> at device 1.1 (no driver attached) pci3: <base peripheral> at device 1.2 (no driver attached) pci3: <base peripheral> at device 1.3 (no driver attached) pci3: <base peripheral> at device 1.4 (no driver attached) isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH8M UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x6fa0-0x6faf irq 16 at device 31.1 on pci0 ata0: <ATA channel 0> on atapci0 ahci0: <Intel ICH8M AHCI SATA controller> port 0x6eb0-0x6eb7,0x6eb8-0x6ebb,0x6ec0-0x6ec7,0x6ec8-0x6ecb,0x6ee0-0x6eff mem 0xfebfb800-0xfebfbfff irq 17 at device 31.2 on pci0 ahci0: AHCI v1.10 with 3 3Gbps ports, Port Multiplier not supported ahcich0: <AHCI channel> at channel 0 on ahci0 ahcich1: <AHCI channel> at channel 2 on ahci0 pci0: <serial bus, SMBus> at device 31.3 (no driver attached) acpi_lid0: <Control Method Lid Switch> on acpi0 acpi_button0: <Power Button> on acpi0 acpi_button1: <Sleep Button> on acpi0 acpi_acad0: <AC Adapter> on acpi0 battery0: <ACPI Control Method Battery> on acpi0 acpi_tz0: <Thermal Zone> on acpi0 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64,0x62,0x66 irq 1 on acpi0 psm0: already has an IRQ? atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x77 irq 8 on acpi0 attimer0: <AT timer> port 0x40-0x43,0x50-0x53 irq 2 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 orm0: <ISA Option ROMs> at iomem 0xc0000-0xcd7ff,0xcd800-0xcffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <12 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 est0: <Enhanced SpeedStep Frequency Control> on cpu0 p4tcc0: <CPU Frequency Thermal Control> on cpu0 est1: <Enhanced SpeedStep Frequency Control> on cpu1 p4tcc1: <CPU Frequency Thermal Control> on cpu1 Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me) firewire0: bus manager 0 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 480Mbps High Speed USB v2.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 480Mbps High Speed USB v2.0 ugen0.1: <Intel> at usbus0 uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ugen1.1: <Intel> at usbus1 uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1 ugen2.1: <Intel> at usbus2 uhub2: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2 ugen3.1: <Intel> at usbus3 uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3 ugen4.1: <Intel> at usbus4 uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4 ugen5.1: <Intel> at usbus5 uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5 ugen6.1: <Intel> at usbus6 uhub6: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus6 acd0: DVDR <PBDS DVD+/-RW DS-8W1P/BD1B> at ata0-master UDMA33 hdac0: HDA Codec #0: Sigmatel STAC9228X hdac0: HDA Codec #1: Conexant (Unknown) pcm0: <HDA Sigmatel STAC9228X PCM #0 Analog> at cad 0 nid 1 on hdac0 pcm1: <HDA Sigmatel STAC9228X PCM #1 Analog> at cad 0 nid 1 on hdac0 pcm2: <HDA Sigmatel STAC9228X PCM #2 Digital> at cad 0 nid 1 on hdac0 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub5: 2 ports with 2 removable, self powered uhub2: 4 ports with 4 removable, self powered uhub6: 6 ports with 6 removable, self powered ugen6.2: <Mobile> at usbus6 umass0: <Mobile disk by philips, class 0/0, rev 2.00/1.03, addr 2> on usbus6 ada0 at ahcich0 bus 0 scbus1 target 0 lun 0 ada0: <ST9320325AS 0001SDM1> ATA-8 SATA 2.x device ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 305245MB (625142448 512 byte sectors: 16H 63S/T 16383C) da0 at umass-sim0 bus 0 scbus3 target 0 lun 0 da0: <Mobile disk by philips 1.03> Fixed Direct Access SCSI-4 device da0: 40.000MB/s transfers da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C) SMP: AP CPU #1 Launched! ugen6.3: <OmniVision Technologies, Inc. -2640-07.07.20.3> at usbus6 ugen4.2: <A4Tech> at usbus4 ums0: <A4Tech PS2+USB Mouse, class 0/0, rev 1.10/0.02, addr 2> on usbus4 ums0: 8 buttons and [XYZ] coordinates ID=0 Trying to mount root from ufs:/dev/ada0s1a [rw,noatime]...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101220233857.762cabc8>
