Date: Sat, 21 Dec 2002 17:42:49 -0800 (PST) From: Maksim Yevmenkin <m_evmenkin@yahoo.com> To: "M. Warner Losh" <imp@bsdimp.com> Cc: current@freebsd.org Subject: Re: NEWCARD, devd, sio and PCCARD_FUNCTION_SERIAL cards Message-ID: <20021222014249.29623.qmail@web40310.mail.yahoo.com> In-Reply-To: <20021221.155343.71086588.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0-1031175929-1040521369=:28439 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Dear Warner and Hackers, --- "M. Warner Losh" <imp@bsdimp.com> wrote: > In message: <20021221222756.11203.qmail@web40310.mail.yahoo.com> > Maksim Yevmenkin <m_evmenkin@yahoo.com> writes: > : Dear Warner and Hackers, > : > : Is there any way (on -current with NEWCARD) "devd" can > : prevent "sio" driver from attaching to *ANY* pc-card > : that has PCCARD_FUNCTION_SERIAL? > > Sure. Just have sio_pccard_match return -100. I've just committed > the change to do this. No need to do anything else, I think. Nope :( It does not work. I applied patch to /sys/dev/sio/sio_pccard.c and recompile my kernel with NEWCARD. It seems devd pays no attention when i plug or unplug the 3COM card. I have attached dmesg output and my devd.conf file. I was trying to get devd to kldload ng_bt3c module, but it did not work. Am i missing something obvious here? thanks, max __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --0-1031175929-1040521369=:28439 Content-Type: text/plain; name="dmesg.txt" Content-Description: dmesg.txt Content-Disposition: inline; filename="dmesg.txt" Copyright (c) 1992-2002 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 #64: Sat Dec 21 16:19:17 PST 2002 max@beetle.digisle.com:/usr/src/sys/i386/compile/BEETLE Preloaded elf kernel "/boot/kernel/kernel" at 0xc0463000. Preloaded elf module "/boot/kernel/nmdm.ko" at 0xc04630a8. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0463154. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 597786166 Hz CPU: Pentium III/Pentium III Xeon/Celeron (597.79-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x681 Stepping = 1 Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> real memory = 201195520 (191 MB) avail memory = 190681088 (181 MB) Initializing GEOMetry subsystem Pentium Pro MTRR support enabled npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <TOSHIB 750 > on motherboard Using $PIR table, 10 entries at 0xc00f4ee0 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-safe" frequency 3579545 Hz can't fetch resources for \\_SB_.PCI0.FNC0.PRT1 - AE_BAD_DATA acpi_timer0: <24-bit timer at 3.579545MHz> port 0xfe08-0xfe0b on acpi0 acpi_cpu0: <CPU> on acpi0 acpi_tz0: <thermal zone> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 ---- initial configuration ------------------------ \\_SB_.LNKA irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.11.0 \\_SB_.LNKB irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.11.1 \\_SB_.LNKC irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.9.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.13.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.12.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.5.3 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.15.0 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.16.0 ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- \\_SB_.LNKA irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.11.0 \\_SB_.LNKB irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.11.1 \\_SB_.LNKC irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.9.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.13.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.12.0 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.5.3 \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.15.0 \\_SB_.LNKA irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 0.16.0 pci0: <ACPI PCI bus> on pcib0 pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0 ---- initial configuration ------------------------ \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 1.0.0 ---- before setting priority for links ------------ ---- before fixup boot-disabled links ------------- ---- after fixup boot-disabled links -------------- ---- arbitrated configuration --------------------- \\_SB_.LNKD irq 11: [ 3 4 5 6 7 10 11 12] low,level,sharable 1.0.0 pci1: <ACPI PCI bus> on pcib1 pci1: <display, VGA> at device 0.0 (no driver attached) isab0: <PCI-ISA bridge> at device 5.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel PIIX4 ATA33 controller> port 0xfff0-0xffff at device 5.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xff80-0xff9f irq 11 at device 5.2 on pci0 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, PCI-unknown> at device 5.3 (no driver attached) pci0: <unknown> at device 9.0 (no driver attached) cbb0: <ToPIC100 PCI-CardBus Bridge> at device 11.0 on pci0 cardbus0: <CardBus bus> on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pcib0: slot 11 INTA is routed to irq 11 cbb1: <ToPIC100 PCI-CardBus Bridge> at device 11.1 on pci0 cardbus1: <CardBus bus> on cbb1 pccard1: <16-bit PCCard bus> on cbb1 pcib0: slot 11 INTB is routed to irq 11 pci0: <multimedia, audio> at device 12.0 (no driver attached) acpi_lid0: <Control Method Lid Switch> on acpi0 acpi_cmbat0: <Control method Battery> on acpi0 acpi_cmbat1: <Control method Battery> on acpi0 acpi_acad0: <AC adapter> on acpi0 atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A pmtimer0 on isa0 orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0 sc0: <System console> on isa0 sc0: VGA <16 virtual consoles, flags=0x200> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to deny, logging disabled ata1-slave: timeout waiting for interrupt ata1-slave: ATAPI identify failed ad0: 11513MB <IBM-DARA-212000> [23392/16/63] at ata0-master UDMA33 acd0: DVD-ROM <TOSHIBA DVD-ROM SD-C2302> at ata1-master PIO4 Mounting root from ufs:/dev/ad0s2a /dev/vmmon: Module vmmon: registered with major=200 minor=0 tag=$Name: build-570 $ /dev/vmmon: Module vmmon: initialized cbb0: card inserted: event=0x00000000, state=30000411 pccard0: chip_socket_enable cbb_pcic_socket_enable: cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: cbb_power: CARD_VCC_5V and CARD_VPP_VCC [15] pccard0: read_cis cis mem map cb5e1000 pccard0: CIS tuple chain: CISTPL_DEVICE type=null speed=null 01 03 00 00 ff CISTPL_VERS_1 15 24 05 00 33 43 4f 4d 00 33 43 52 57 42 36 30 2d 41 00 42 6c 75 65 74 6f 6f 74 68 20 50 43 20 43 61 72 64 00 ff CISTPL_MANFID 20 04 01 01 40 00 CISTPL_FUNCID 21 02 02 01 CISTPL_CONFIG 1a 06 05 30 20 03 17 00 CISTPL_CFTABLE_ENTRY 1b 09 f0 41 18 a0 40 07 30 ff ff unhandled CISTPL 80 80 0a 02 01 40 00 2d 00 00 00 00 ff CISTPL_NO_LINK 14 00 CISTPL_END ff pccard0: check_cis_quirks pccard0: CIS version PC Card Standard 5.0 pccard0: CIS info: 3COM, 3CRWB60-A, Bluetooth PC Card pccard0: Manufacturer code 0x101, product 0x40 pccard0: function 0: serial port, ccr addr 320 mask 17 pccard0: function 0, config table entry 48: I/O card; irq mask ffff; iomask 0, iospace 0-7; rdybsy_active io8 irqlevel pccard0: functions scanning pccard0: Card has 1 functions. pccard_mfc is 0 pccard0: I/O rid 0 start 0 end ffffffff cbb_pcic_socket_enable: cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: cbb_power: CARD_VCC_5V and CARD_VPP_VCC [15] pccard0: ccr_res == 88002000-880023ff, base=320 pccard0: function 0 CCR at 0 offset 320: 70 20 2 0, 0 0 0 6f, 7e sio1 at port 0x100-0x107 irq 11 function 0 config 48 on pccard0 device_probe_and_attach: sio1 attach returned 6 pwrevent occured: 0x30000007 cbb_pcic_socket_disable cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: card inserted: event=0x00000000, state=30000411 pccard0: chip_socket_enable cbb_pcic_socket_enable: cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: cbb_power: CARD_VCC_5V and CARD_VPP_VCC [15] pccard0: read_cis cis mem map cb5ea000 pccard0: CIS tuple chain: CISTPL_DEVICE type=null speed=null 01 03 00 00 ff CISTPL_VERS_1 15 24 05 00 33 43 4f 4d 00 33 43 52 57 42 36 30 2d 41 00 42 6c 75 65 74 6f 6f 74 68 20 50 43 20 43 61 72 64 00 ff CISTPL_MANFID 20 04 01 01 40 00 CISTPL_FUNCID 21 02 02 01 CISTPL_CONFIG 1a 06 05 30 20 03 17 00 CISTPL_CFTABLE_ENTRY 1b 09 f0 41 18 a0 40 07 30 ff ff unhandled CISTPL 80 80 0a 02 01 40 00 2d 00 00 00 00 ff CISTPL_NO_LINK 14 00 CISTPL_END ff pccard0: check_cis_quirks pccard0: CIS version PC Card Standard 5.0 pccard0: CIS info: 3COM, 3CRWB60-A, Bluetooth PC Card pccard0: Manufacturer code 0x101, product 0x40 pccard0: function 0: serial port, ccr addr 320 mask 17 pccard0: function 0, config table entry 48: I/O card; irq mask ffff; iomask 0, iospace 0-7; rdybsy_active io8 irqlevel pccard0: functions scanning pccard0: Card has 1 functions. pccard_mfc is 0 pccard0: I/O rid 0 start 0 end ffffffff cbb_pcic_socket_enable: cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: cbb_power: CARD_VCC_5V and CARD_VPP_VCC [15] pccard0: ccr_res == 88002000-880023ff, base=320 pccard0: function 0 CCR at 0 offset 320: 70 20 2 0, 0 0 0 6f, 7e sio1 at port 0x100-0x107 irq 11 function 0 config 48 on pccard0 device_probe_and_attach: sio1 attach returned 6 pwrevent occured: 0x30000007 cbb_pcic_socket_disable cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: card inserted: event=0x00000000, state=30000411 pccard0: chip_socket_enable cbb_pcic_socket_enable: cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: cbb_power: CARD_VCC_5V and CARD_VPP_VCC [15] pccard0: read_cis cis mem map cb5ea000 pccard0: CIS tuple chain: CISTPL_DEVICE type=null speed=null 01 03 00 00 ff CISTPL_VERS_1 15 24 05 00 33 43 4f 4d 00 33 43 52 57 42 36 30 2d 41 00 42 6c 75 65 74 6f 6f 74 68 20 50 43 20 43 61 72 64 00 ff CISTPL_MANFID 20 04 01 01 40 00 CISTPL_FUNCID 21 02 02 01 CISTPL_CONFIG 1a 06 05 30 20 03 17 00 CISTPL_CFTABLE_ENTRY 1b 09 f0 41 18 a0 40 07 30 ff ff unhandled CISTPL 80 80 0a 02 01 40 00 2d 00 00 00 00 ff CISTPL_NO_LINK 14 00 CISTPL_END ff pccard0: check_cis_quirks pccard0: CIS version PC Card Standard 5.0 pccard0: CIS info: 3COM, 3CRWB60-A, Bluetooth PC Card pccard0: Manufacturer code 0x101, product 0x40 pccard0: function 0: serial port, ccr addr 320 mask 17 pccard0: function 0, config table entry 48: I/O card; irq mask ffff; iomask 0, iospace 0-7; rdybsy_active io8 irqlevel pccard0: functions scanning pccard0: Card has 1 functions. pccard_mfc is 0 pccard0: I/O rid 0 start 0 end ffffffff cbb_pcic_socket_enable: cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: cbb_power: CARD_VCC_5V and CARD_VPP_VCC [15] pccard0: ccr_res == 88002000-880023ff, base=320 pccard0: function 0 CCR at 0 offset 320: 70 20 2 0, 0 0 0 6f, 7e sio1 at port 0x100-0x107 irq 11 function 0 config 48 on pccard0 device_probe_and_attach: sio1 attach returned 6 system power profile changed to 'economy' pwrevent occured: 0x30000007 cbb_pcic_socket_disable cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: card inserted: event=0x00000000, state=30000411 pccard0: chip_socket_enable cbb_pcic_socket_enable: cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: cbb_power: CARD_VCC_5V and CARD_VPP_VCC [15] pccard0: read_cis cis mem map cb5ea000 pccard0: CIS tuple chain: CISTPL_DEVICE type=null speed=null 01 03 00 00 ff CISTPL_VERS_1 15 24 05 00 33 43 4f 4d 00 33 43 52 57 42 36 30 2d 41 00 42 6c 75 65 74 6f 6f 74 68 20 50 43 20 43 61 72 64 00 ff CISTPL_MANFID 20 04 01 01 40 00 CISTPL_FUNCID 21 02 02 01 CISTPL_CONFIG 1a 06 05 30 20 03 17 00 CISTPL_CFTABLE_ENTRY 1b 09 f0 41 18 a0 40 07 30 ff ff unhandled CISTPL 80 80 0a 02 01 40 00 2d 00 00 00 00 ff CISTPL_NO_LINK 14 00 CISTPL_END ff pccard0: check_cis_quirks pccard0: CIS version PC Card Standard 5.0 pccard0: CIS info: 3COM, 3CRWB60-A, Bluetooth PC Card pccard0: Manufacturer code 0x101, product 0x40 pccard0: function 0: serial port, ccr addr 320 mask 17 pccard0: function 0, config table entry 48: I/O card; irq mask ffff; iomask 0, iospace 0-7; rdybsy_active io8 irqlevel pccard0: functions scanning pccard0: Card has 1 functions. pccard_mfc is 0 pccard0: I/O rid 0 start 0 end ffffffff cbb_pcic_socket_enable: cbb0: cbb_power: CARD_VCC_0V and CARD_VPP_0V [44] cbb0: cbb_power: CARD_VCC_5V and CARD_VPP_VCC [15] pccard0: ccr_res == 88002000-880023ff, base=320 pccard0: function 0 CCR at 0 offset 320: 70 20 2 0, 0 0 0 6f, 7e sio1 at port 0x100-0x107 irq 11 function 0 config 48 on pccard0 device_probe_and_attach: sio1 attach returned 6 --0-1031175929-1040521369=:28439 Content-Type: application/x-unknown; name="devd.conf" Content-Transfer-Encoding: base64 Content-Description: devd.conf Content-Disposition: attachment; filename="devd.conf" b3B0aW9ucyB7CglkaXJlY3RvcnkgIi9ldGMvZGV2ZCI7CglkaXJlY3Rvcnkg Ii91c3IvbG9jYWwvZXRjL2RldmQiOwoJcGlkLWZpbGUgIi92YXIvcnVuL2Rl dmQucGlkIjsKfTsKCm5vbWF0Y2ggMCB7CgltYXRjaCAiYnVzIiAicGNjYXJk WzAtOV0rIjsKCW1hdGNoICJtYW51ZmFjdHVyZXIiICIweDEwMSI7CgltYXRj aCAicHJvZHVjdCIgIjB4NDAiOwoJYWN0aW9uICJrbGRsb2FkIG5nX2J0M2Mi Owp9OwoKYXR0YWNoIDAgewoJZGV2aWNlLW5hbWUgImJ0Y2NjWzAtOV0rIjsK CW1hdGNoICJidXMiICJwY2NhcmRbMC05XSsiOwoJbWF0Y2ggIm1hbnVmYWN0 dXJlciIgIjB4MTAxIjsKCW1hdGNoICJwcm9kdWN0IiAiMHg0MCI7CglhY3Rp b24gImtsZGxvYWQgbmdfYnQzYyI7Cn07CgoK --0-1031175929-1040521369=:28439-- 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?20021222014249.29623.qmail>