From owner-freebsd-mobile@FreeBSD.ORG Tue Jul 14 19:23:13 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A29D106567E for ; Tue, 14 Jul 2009 19:23:13 +0000 (UTC) (envelope-from fab@math.univ-paris13.fr) Received: from mailhost.math.cnrs.fr (lmargaux.math.cnrs.fr [134.206.83.10]) by mx1.freebsd.org (Postfix) with ESMTP id F35A28FC1F for ; Tue, 14 Jul 2009 19:23:12 +0000 (UTC) (envelope-from fab@math.univ-paris13.fr) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailhost.math.cnrs.fr (Postfix) with ESMTP id 8FC8B7724F for ; Tue, 14 Jul 2009 21:23:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at math.cnrs.fr Received: from mailhost.math.cnrs.fr ([127.0.0.1]) by localhost (lmargaux.math.cnrs.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P6Wm5mUuX7cN for ; Tue, 14 Jul 2009 21:22:57 +0200 (CEST) Received: from localhost (gob75-3-82-224-123-147.fbx.proxad.net [82.224.123.147]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "Fabrice Planchon", Issuer "CNRS-Standard" (verified OK)) by mailhost.math.cnrs.fr (Postfix) with ESMTP id 74210FDC0A for ; Tue, 14 Jul 2009 21:22:57 +0200 (CEST) Date: Tue, 14 Jul 2009 21:22:57 +0200 From: Fabrice Planchon To: freebsd-mobile@freebsd.org Message-ID: <20090714192255.GE2174@Orphee.local> References: <20090712194622.GB1553@Orphee.local> <20090713150327.R4783@apu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090713150327.R4783@apu> User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Re: thinkpad 560X and pcmcia X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 19:23:14 -0000 Hi, I finally booted a linux floppy distro to check whether the pcmcia slot was ok or not: it *is* working, as the dmesg output shows. So it seems like I only have an IRQ assignement problem, which I don't see how to solve. None of my attempts were sucessful (through /boot/device.hints or /boot/loader.conf). So far, I have tried On Mon Jul 13 2009 at 03:16:42PM +0200, Vicknesan AYADURAI wrote: > I've had similar weirdness with IBM ThinkPad PCMCIA slots before. The > first was with a ThinkPad 600, in going from FBSD5.4R->6.1R. I > eventually managed to get both ethernet cards on the two slots working, > and posted what I did here: > > http://arkiv.freebsd.se/?ml=freebsd-hardware&a=2006-08&t=2305543 which means having hw.pci.link.LNKA.irq=11 hw.pci.link.LNKB.irq=11 hw.pci.link.LNKC.irq=11 hw.pci.link.LNKD.irq=11 in the appropriate file. However, the "link.LNK" syntax appears to be ACPI related, and the thinkpad 560X does not support acpi. I also tried this, http://lists.freebsd.org/pipermail/freebsd-mobile/2007-July/009950.html which means hw.pci0.2.INTB.irq="10" but again the syntax does not seem to be recognized (10 or 11 or anything else is irrelevant for that matter). sysctl with the previous hw.* statement returns sysctl: unknown oid 'hw.pci0.2.INTB.irq' out of boredom, I even tried recompiling a kernel with the http://monkey.org/freebsd/archive/freebsd-mobile/200403/msg00130.html patch, but it didn't make a difference.... So, how can I re-assign IRQs on my thinkpad 560X ? (since my previous message I have enabled apm, which seems to work ok). the linux boot below appears to assign IRQ 3 to the bottom pcmcia slot. As mentioned by Vicknesan, I could always re-install freebsd 4.6, but that strikes me as not being "the Right solution (tm)". I am willing to experiment further, but any hints will be appreciated ! F. ---------------------linux dmesg--------------------------------- Linux version 2.4.36.2-rescue (root@debian) (gcc-Version 3.3.6 (Debian 1:3.3.6-15)) #1 Di 26. Feb 18:55:43 CET 2008 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000005fd0000 (usable) BIOS-e820: 0000000005fd0000 - 0000000005fdf000 (ACPI data) BIOS-e820: 0000000005fdf000 - 0000000005fe0000 (ACPI NVS) BIOS-e820: 00000000fffe0000 - 0000000100000000 (reserved) 95MB LOWMEM available. On node 0 totalpages: 24528 zone(0): 4096 pages. zone(1): 20432 pages. zone(2): 0 pages. IBM machine detected. Enabling interrupts during APM calls. Kernel command line: vga=normal noinitrd load_ramdisk=1 prompt_ramdisk=1 root=/dev/fd0 BOOT_IMAGE=vmlinuz Initializing CPU#0 Detected 231.778 MHz processor. Console: colour VGA+ 80x25 Calibrating delay loop... 462.02 BogoMIPS Memory: 92952k/98112k available (2418k kernel code, 4772k reserved, 849k data, 124k init, 0k highmem) Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) Inode cache hash table entries: 8192 (order: 4, 65536 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) Intel Pentium with F0 0F bug - workaround enabled. CPU: After generic, caps: 008001bf 00000000 00000000 00000000 CPU: Common caps: 008001bf 00000000 00000000 00000000 CPU: Intel Mobile Pentium MMX stepping 01 Checking 'hlt' instruction... OK. Checking for popad bug... OK. POSIX conformance testing by UNIFIX PCI: PCI BIOS revision 2.10 entry at 0xfd880, last bus=0 PCI: Using configuration type 1 PCI: Probing PCI hardware PCI: Probing PCI hardware (bus 00) PCI: Using IRQ router PIIX/ICH [8086/7110] at 00:01.0 PCI: Found IRQ 11 for device 00:02.0 PCI: Sharing IRQ 11 with 00:03.0 PCI: Found IRQ 11 for device 00:02.1 Limiting direct PCI/PCI transfers. isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16) Starting kswapd Journalled Block Device driver loaded devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x1 NTFS driver 2.1.6b [Flags: R/W]. udf: registering filesystem SGI XFS with no debug enabled parport0: PC-style at 0x3bc [PCSPP,TRISTATE] Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI ISAPNP enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A lp0: using parport0 (polling). Floppy drive(s): fd0 is 1.44M FDC 0 is a National Semiconductor PC87306 RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 256 devices) cloop: Initializing cloop v2.01 cloop: loaded (max 8 devices) Intel(R) PRO/1000 Network Driver - version 7.3.20-k4 Copyright (c) 1999-2006 Intel Corporation. plip: parport0 has no IRQ. Using IRQ-less mode,which is fairly inefficient! NET3 PLIP version 2.4-parport gniibe@mri.co.jp plip0: Parallel port at 0x3bc, not using IRQ. pcnet32.c:v1.30h 06.24.2004 tsbogend@alpha.franken.de ThunderLAN driver v1.15 TLAN: 0 devices installed, PCI: 0 EISA: 0 dmfe: Davicom DM9xxx net driver, version 1.36.4 (2002-01-17) forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.50. work_mode -> Autoselect <6>Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx PIIX4: IDE controller at PCI slot 00:01.1 PIIX4: chipset revision 1 PIIX4: not 100% native mode: will probe irqs later ide0: BM-DMA at 0xfcf0-0xfcf7, BIOS settings: hda:DMA, hdb:pio hda: IBM-DTCA-24090, ATA DISK drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hda: attached ide-disk driver. hda: 8007552 sectors (4100 MB) w/468KiB Cache, CHS=993/128/63 Partition check: /dev/ide/host0/bus0/target0/lun0: p1 Promise Fasttrak(tm) Softwareraid driver 0.03beta: No raid array found Highpoint HPT370 Softwareraid driver for linux version 0.03 SCSI subsystem driver Revision: 1.00 libata version 1.20 loaded. kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 usb.c: registered new driver usbdevfs usb.c: registered new driver hub host/usb-uhci.c: $Revision: 1.275 $ time 18:56:51 Feb 26 2008 host/usb-uhci.c: High bandwidth mode enabled PCI: Found IRQ 11 for device 00:01.2 host/usb-uhci.c: USB UHCI at I/O 0x9000, IRQ 11 host/usb-uhci.c: Detected 2 ports usb.c: new USB bus registered, assigned bus number 1 hub.c: USB hub found hub.c: 2 ports detected host/usb-uhci.c: v1.275:USB Universal Host Controller Interface driver usb.c: registered new driver usbkbd usbkbd.c: :USB HID Boot Protocol keyboard driver pegasus.c: v0.4.32 (2003/06/06):Pegasus/Pegasus II USB Ethernet driver usb.c: registered new driver pegasus rtl8150.c: rtl8150 based usb-ethernet driver v0.4.3 (2002/12/31) usb.c: registered new driver rtl8150 catc.c: v2.8 CATC EL1210A NetMate USB Ethernet driver usb.c: registered new driver catc kaweth.c: Driver loading usb.c: registered new driver kaweth CDCEther.c: CDCEther.c: 0.98.6 7 Jan 2002 Brad Hards and another usb.c: registered new driver CDCEther usb.c: registered new driver usbnet Initializing USB Mass Storage driver... usb.c: registered new driver usb-storage USB Mass Storage support registered. md: linear personality registered as nr 1 md: raid0 personality registered as nr 2 md: raid1 personality registered as nr 3 md: raid5 personality registered as nr 4 raid5: measuring checksumming speed 8regs : 254.400 MB/sec 32regs : 200.000 MB/sec pII_mmx : 354.000 MB/sec p5_mmx : 416.000 MB/sec raid5: using function: p5_mmx (416.000 MB/sec) md: multipath personality registered as nr 7 md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. LVM version 1.0.8(17/11/2003) NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 8192 bind 16384) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. VFS: Insert inittar floppy disk to be loaded into RAM disk and press ENTER VFS: Mounted root (tmpfs filesystem). INITTAR: lzma compressed image found RAMDISK: LZMA lc=3,lp=0,pb=2,dictSize=8388608,origSize=3911680 LZMA initrd by Ming-Ching Tiew ............................................................<5>TAR: extracted 7640 blocks Mounted devfs on /dev Freeing unused kernel memory: 124k freed fuse init (API version 7.5) fuse distribution version: 2.5.3 Linux Kernel Card Services 3.1.22 options: [pci] [cardbus] [pm] PCI: Found IRQ 11 for device 00:02.0 PCI: Sharing IRQ 11 with 00:03.0 PCI: Found IRQ 11 for device 00:02.1 Yenta ISA IRQ mask 0x0698, PCI irq 11 Socket status: 30000006 Yenta ISA IRQ mask 0x0698, PCI irq 11 Socket status: 30000010 cs: IO port probe 0x0c00-0x0cff: clean. cs: IO port probe 0x0800-0x08ff: clean. cs: IO port probe 0x0100-0x04ff: excluding 0x200-0x207 0x220-0x22f 0x388-0x38f 0x4d0-0x4d7 cs: IO port probe 0x0a00-0x0aff: clean. cs: memory probe 0xa0000000-0xa0ffffff: clean. eth0: NE2000 Compatible: io 0x300, irq 3, hw_addr 00:80:C8:8C:5B:39