From owner-freebsd-drivers@FreeBSD.ORG Sun May 13 21:46:16 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 689CA16A402 for ; Sun, 13 May 2007 21:46:16 +0000 (UTC) (envelope-from e.petenev@arcor.de) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mx1.freebsd.org (Postfix) with ESMTP id EDFE513C4B7 for ; Sun, 13 May 2007 21:46:15 +0000 (UTC) (envelope-from e.petenev@arcor.de) Received: from mail-in-01-z2.arcor-online.net (mail-in-10-z2.arcor-online.net [151.189.8.27]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id AAC631D316E for ; Sun, 13 May 2007 23:46:14 +0200 (CEST) Received: from mail-in-11.arcor-online.net (mail-in-11.arcor-online.net [151.189.21.51]) by mail-in-01-z2.arcor-online.net (Postfix) with ESMTP id 9428423D320 for ; Sun, 13 May 2007 23:46:14 +0200 (CEST) Received: from bigtower (dslb-088-070-053-000.pools.arcor-ip.net [88.70.53.0]) by mail-in-11.arcor-online.net (Postfix) with ESMTP id 3CB0B11CD4 for ; Sun, 13 May 2007 23:46:14 +0200 (CEST) From: "Evgeny Petenev" To: Date: Sun, 13 May 2007 23:46:00 -0700 MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AceV84hPS9Lnnm/FS9yPuISszLKp8Q== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Message-Id: <20070513214614.3CB0B11CD4@mail-in-11.arcor-online.net> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Ricoh R5C843 Card bus Controller on FreeBSD 6.2 Release X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 21:46:16 -0000 Hi, The Problem is that when I attach my WLAN-Card, nothing happens. I use adapted kernel with support for Atheros Cards. LED's are off and I get no message that the new one device were tied up. man 4 pccbb says also that only Ricoh RL4C47X Controllers are supports. Which details do you need, to understand what the problem is? Best regard, Evgenij Petenev From owner-freebsd-drivers@FreeBSD.ORG Sun May 13 22:37:25 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1A3516A400 for ; Sun, 13 May 2007 22:37:25 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 62A5913C458 for ; Sun, 13 May 2007 22:37:25 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l4DMY0JX025570; Sun, 13 May 2007 16:34:00 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 13 May 2007 16:34:07 -0600 (MDT) Message-Id: <20070513.163407.-1956305328.imp@bsdimp.com> To: e.petenev@arcor.de From: "M. Warner Losh" In-Reply-To: <20070513214614.3CB0B11CD4@mail-in-11.arcor-online.net> References: <20070513214614.3CB0B11CD4@mail-in-11.arcor-online.net> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 13 May 2007 16:34:00 -0600 (MDT) Cc: freebsd-drivers@freebsd.org Subject: Re: Ricoh R5C843 Card bus Controller on FreeBSD 6.2 Release X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 22:37:25 -0000 In message: <20070513214614.3CB0B11CD4@mail-in-11.arcor-online.net> "Evgeny Petenev" writes: : Which details do you need, to understand what the problem is? I think I know what's going on, but rather than jump to the answer, let's look at the steps along the way. You need to set the following sysctls/tunables: hw.cardbus.debug=1 hw.cardbus.cis_debug=1 hw.cbb.debug=1 and provide me with the info that's printed in the dmesg buffer. devinfo -v with the card inserted would also be useful. This will give me a clue as to what to look at next. I'm guessing it is the infamous bus numbering problem, but I'd like to reserve judgement. It could be something else. I should update the cbb man page to include the R5C84x family. Warner From owner-freebsd-drivers@FreeBSD.ORG Mon May 14 13:44:35 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8332016A40A for ; Mon, 14 May 2007 13:44:35 +0000 (UTC) (envelope-from e.petenev@arcor.de) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mx1.freebsd.org (Postfix) with ESMTP id C7F9613C455 for ; Mon, 14 May 2007 13:44:34 +0000 (UTC) (envelope-from e.petenev@arcor.de) Received: from mail-in-02-z2.arcor-online.net (mail-in-02-z2.arcor-online.net [151.189.8.14]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id 650893266C2 for ; Mon, 14 May 2007 15:44:33 +0200 (CEST) Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id 4BAE31151A3 for ; Mon, 14 May 2007 15:44:33 +0200 (CEST) Received: from webmail13 (webmail13.arcor-online.net [151.189.8.66]) by mail-in-06.arcor-online.net (Postfix) with ESMTP id 2D07017F41 for ; Mon, 14 May 2007 15:44:33 +0200 (CEST) Received: from 193.25.183.52 by webmail13 (151.189.8.66) with HTTP (Arcor Webmail); Mo, 14 Mai 2007 15:44:33 +0200 Message-ID: <27733017.1179150273174.JavaMail.ngmail@webmail13> Date: Mon, 14 May 2007 15:44:33 +0200 (CEST) From: e.petenev@arcor.de To: freebsd-drivers@freebsd.org In-Reply-To: <20070513.163407.-1956305328.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <20070513.163407.-1956305328.imp@bsdimp.com> <20070513214614.3CB0B11CD4@mail-in-11.arcor-online.net> X-ngMessageSubType: MessageSubType_MAIL X-WebmailclientIP: 193.25.183.52 Subject: Re: Ricoh R5C843 Card bus Controller on FreeBSD 6.2 Release X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 13:44:35 -0000 Hi, > I think I know what's going on, but rather than jump to the answer, > let's look at the steps along the way. > > You need to set the following sysctls/tunables: > > hw.cardbus.debug=1 > hw.cardbus.cis_debug=1 > hw.cbb.debug=1 > Have done, now if I inserting my WLAN-Card i get following messege: ------------------------------------------------------------------------------------------------------------ Status is 0x30000820 cbb0: card inserted: event=0x00000000, state=30000820 cbb0: cbb_power=3V cbb0: cbb_power=0V ------------------------------------------------------------------------------------------------------------ > and provide me with the info that's printed in the dmesg buffer. > The complete dmesge is: ------------------------------------------------------------------------------------------------------------ Copyright (c) 1992-2007 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 6.2-RELEASE-p4 #0: Wed May 9 21:40:38 UTC 2007 root@r55.local:/usr/obj/usr/src/sys/herexx ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 CPU T5200 @ 1.60GHz (1596.01-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6f6 Stepping = 6 Features=0xbfebfbff Features2=0xe39d,CX16,,> AMD Features=0x20000000 AMD Features2=0x1 Cores per package: 2 real memory = 2145976320 (2046 MB) avail memory = 2086494208 (1989 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 nvidia0: mem 0xdd000000-0xddffffff,0xc0000000-0xcfffffff,0xdc000000-0xdcffffff irq 16 at device 0.0 on pci1 nvidia0: [GIANT-LOCKED] pci0: at device 27.0 (no driver attached) pcib2: irq 17 at device 28.0 on pci0 pci2: on pcib2 pcib3: irq 16 at device 28.1 on pci0 pci3: on pcib3 pcib4: irq 18 at device 28.2 on pci0 pci4: on pcib4 pci4: at device 0.0 (no driver attached) pcib5: irq 19 at device 28.3 on pci0 pci6: on pcib5 uhci0: port 0x1800-0x181f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] 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 uhci1: port 0x1820-0x183f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1840-0x185f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x1860-0x187f irq 16 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] usb3: on uhci3 usb3: USB revision 1.0 uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xde304000-0xde3043ff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: 8 ports with 8 removable, self powered pcib6: at device 30.0 on pci0 pci9: on pcib6 bfe0: mem 0xde000000-0xde001fff irq 22 at device 5.0 on pci9 miibus0: on bfe0 bmtphy0: on miibus0 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bfe0: Ethernet address: 00:13:77:29:7b:fc cbb0: at device 9.0 on pci9 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fwohci0: mem 0xde002000-0xde0027ff at device 9.1 on pci9 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:00:f0:41:01:04:fa:7c fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:00:f0:04:fa:7c fwe0: Ethernet address: 02:00:f0:04:fa:7c fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pci9: at device 9.2 (no driver attached) pci9: at device 9.3 (no driver attached) pci9: at device 9.4 (no driver attached) pci9: at device 9.5 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1880-0x188f at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 acpi_tz1: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcefff,0xdc000-0xdffff 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 ugen0: Broadcom Corp BCM92045NMD, rev 2.00/1.00, addr 2 Timecounters tick every 1.000 msec ad0: 114473MB at ata0-master UDMA100 acd0: DVDR at ata0-slave UDMA33 SMP: AP CPU #1 Launched! cd0 at ata0 bus 0 target 1 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad0s1a Status is 0x30000820 cbb0: card inserted: event=0x00000000, state=30000820 cbb0: cbb_power: 3V cbb0: cbb_power: 0V umass0: USB Flash Disk, rev 2.00/1.10, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 3936MB (8060928 512 byte sectors: 255H 63S/T 501C) > devinfo -v with the card inserted would also be useful. > > This will give me a clue as to what to look at next. I'm guessing it > is the infamous bus numbering problem, but I'd like to reserve > judgement. It could be something else. > > I should update the cbb man page to include the R5C84x family. > > Warner > And at least devinfo -v ------------------------------------------------------------------------------------------------------------ nexus0 legacy0 npx0 acpi0 cpu0 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU0 cpu1 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU1 acpi_acad0 pnpinfo _HID=ACPI0003 _UID=0 at handle=\_SB_.ADP1 battery0 pnpinfo _HID=PNP0C0A _UID=1 at handle=\_SB_.BAT1 acpi_lid0 pnpinfo _HID=PNP0C0D _UID=0 at handle=\_SB_.LID0 acpi_button0 pnpinfo _HID=PNP0C0C _UID=0 at handle=\_SB_.PWRB acpi_button1 pnpinfo _HID=PNP0C0E _UID=0 at handle=\_SB_.SLPB pcib0 pnpinfo _HID=PNP0A08 _UID=0 at handle=\_SB_.PCI0 pci0 hostb0 pnpinfo vendor=0x8086 device=0x27a0 subvendor=0x144d subdevice=0xb03c class=0x060000 at slot=0 function=0 pcib1 pnpinfo vendor=0x8086 device=0x27a1 subvendor=0x0088 subdevice=0x0000 class=0x060400 at slot=1 function=0 handle=\_SB_.PCI0.PEGP pci1 nvidia0 pnpinfo vendor=0x10de device=0x01d8 subvendor=0x144d subdevice=0xb03c class=0x030000 at slot=0 function=0 handle=\_SB_.PCI0.PEGP.NVID unknown pnpinfo vendor=0x8086 device=0x27d8 subvendor=0x144d subdevice=0xb03c class=0x040300 at slot=27 function=0 handle=\_SB_.PCI0.HDEF pcib2 pnpinfo vendor=0x8086 device=0x27d0 subvendor=0x0040 subdevice=0x0000 class=0x060400 at slot=28 function=0 handle=\_SB_.PCI0.RP01 pci2 pcib3 pnpinfo vendor=0x8086 device=0x27d2 subvendor=0x0040 subdevice=0x0000 class=0x060400 at slot=28 function=1 handle=\_SB_.PCI0.RP02 pci3 pcib4 pnpinfo vendor=0x8086 device=0x27d4 subvendor=0x0040 subdevice=0x0000 class=0x060400 at slot=28 function=2 handle=\_SB_.PCI0.RP03 pci4 unknown pnpinfo vendor=0x8086 device=0x4222 subvendor=0x8086 subdevice=0x1001 class=0x028000 at slot=0 function=0 handle=\_SB_.PCI0.RP03.PXS3 pcib5 pnpinfo vendor=0x8086 device=0x27d6 subvendor=0x0040 subdevice=0x0000 class=0x060400 at slot=28 function=3 handle=\_SB_.PCI0.RP04 pci6 uhci0 pnpinfo vendor=0x8086 device=0x27c8 subvendor=0x144d subdevice=0xb03c class=0x0c0300 at slot=29 function=0 handle=\_SB_.PCI0.USB1 usb0 uhub0 uhci1 pnpinfo vendor=0x8086 device=0x27c9 subvendor=0x144d subdevice=0xb03c class=0x0c0300 at slot=29 function=1 handle=\_SB_.PCI0.USB2 usb1 uhub1 uhci2 pnpinfo vendor=0x8086 device=0x27ca subvendor=0x144d subdevice=0xb03c class=0x0c0300 at slot=29 function=2 handle=\_SB_.PCI0.USB3 usb2 uhub2 ugen0 pnpinfo vendor=0x0a5c product=0x2101 devclass=0xe0 devsubclass=0x01 release=0x0100 sernum="" at port=0 uhci3 pnpinfo vendor=0x8086 device=0x27cb subvendor=0x144d subdevice=0xb03c class=0x0c0300 at slot=29 function=3 handle=\_SB_.PCI0.USB4 usb3 uhub3 ehci0 pnpinfo vendor=0x8086 device=0x27cc subvendor=0x144d subdevice=0xb03c class=0x0c0320 at slot=29 function=7 handle=\_SB_.PCI0.USB7 usb4 uhub4 pcib6 pnpinfo vendor=0x8086 device=0x2448 subvendor=0x0050 subdevice=0x0000 class=0x060401 at slot=30 function=0 handle=\_SB_.PCI0.PCIB pci9 bfe0 pnpinfo vendor=0x14e4 device=0x170c subvendor=0x144d subdevice=0xb03c class=0x020000 at slot=5 function=0 handle=\_SB_.PCI0.PCIB.LANC miibus0 bmtphy0 pnpinfo oui=0x1018 model=0x36 rev=0x0 at phyno=1 cbb0 pnpinfo vendor=0x1180 device=0x0476 subvendor=0x144d subdevice=0xb03c class=0x060700 at slot=9 function=0 handle=\_SB_.PCI0.PCIB.CDB0 cardbus0 pccard0 fwohci0 pnpinfo vendor=0x1180 device=0x0552 subvendor=0x144d subdevice=0xb03c class=0x0c0010 at slot=9 function=1 handle=\_SB_.PCI0.PCIB.OHCI firewire0 fwe0 sbp0 unknown pnpinfo vendor=0x1180 device=0x0822 subvendor=0x144d subdevice=0xb03c class=0x080500 at slot=9 function=2 handle=\_SB_.PCI0.PCIB.SDHC unknown pnpinfo vendor=0x1180 device=0x0843 subvendor=0x144d subdevice=0xb03c class=0x088000 at slot=9 function=3 handle=\_SB_.PCI0.PCIB.MMHC unknown pnpinfo vendor=0x1180 device=0x0592 subvendor=0x144d subdevice=0xb03c class=0x088000 at slot=9 function=4 handle=\_SB_.PCI0.PCIB.MSHC unknown pnpinfo vendor=0x1180 device=0x0852 subvendor=0x144d subdevice=0xb03c class=0x088000 at slot=9 function=5 handle=\_SB_.PCI0.PCIB.XDHC isab0 pnpinfo vendor=0x8086 device=0x27b9 subvendor=0x144d subdevice=0xb03c class=0x060100 at slot=31 function=0 handle=\_SB_.PCI0.LPCB isa0 adv0 aha0 aic0 bt0 cs0 ed0 fdc0 fe0 ie0 lnc0 ppc0 sc0 sio0 sio1 sio2 sio3 sn0 vga0 vt0 orm0 pmtimer0 atapci0 pnpinfo vendor=0x8086 device=0x27df subvendor=0x144d subdevice=0xb03c class=0x01018a at slot=31 function=1 handle=\_SB_.PCI0.PATA ata0 ad0 subdisk0 acd0 atapicam0 ata1 atapicam1 unknown pnpinfo vendor=0x8086 device=0x27da subvendor=0x144d subdevice=0xb03c class=0x0c0500 at slot=31 function=3 handle=\_SB_.PCI0.SBUS acpi_sysresource0 pnpinfo _HID=PNP0C02 _UID=1 at handle=\_SB_.PCI0.PDRC unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PEGP.NVID.CRT1 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PEGP.NVID.LCD_ unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PEGP.NVID.TV__ unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PEGP.NVID.DVI_ unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0.DD01 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0.DD02 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0.DD03 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0.DD04 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.GFX0.DD05 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.RP01.PXS1 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.RP02.PXS2 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.RP04.PXS4 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.AUD0 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.MODM pci_link0 pnpinfo _HID=PNP0C0F _UID=1 at handle=\_SB_.PCI0.LPCB.LNKA pci_link1 pnpinfo _HID=PNP0C0F _UID=2 at handle=\_SB_.PCI0.LPCB.LNKB pci_link2 pnpinfo _HID=PNP0C0F _UID=3 at handle=\_SB_.PCI0.LPCB.LNKC pci_link3 pnpinfo _HID=PNP0C0F _UID=4 at handle=\_SB_.PCI0.LPCB.LNKD pci_link4 pnpinfo _HID=PNP0C0F _UID=5 at handle=\_SB_.PCI0.LPCB.LNKE pci_link5 pnpinfo _HID=PNP0C0F _UID=6 at handle=\_SB_.PCI0.LPCB.LNKF pci_link6 pnpinfo _HID=PNP0C0F _UID=7 at handle=\_SB_.PCI0.LPCB.LNKG pci_link7 pnpinfo _HID=PNP0C0F _UID=8 at handle=\_SB_.PCI0.LPCB.LNKH acpi_ec0 pnpinfo _HID=PNP0C09 _UID=1 at handle=\_SB_.PCI0.LPCB.H_EC unknown pnpinfo _HID=PNP0C32 _UID=1 at handle=\_SB_.PCI0.LPCB.H_EC.MBTN atdma0 pnpinfo _HID=PNP0200 _UID=0 at handle=\_SB_.PCI0.LPCB.DMAC unknown pnpinfo _HID=INT0800 _UID=0 at handle=\_SB_.PCI0.LPCB.FWHD unknown pnpinfo _HID=PNP0103 _UID=0 at handle=\_SB_.PCI0.LPCB.HPET atpic0 pnpinfo _HID=PNP0000 _UID=0 at handle=\_SB_.PCI0.LPCB.IPIC npxisa0 pnpinfo _HID=PNP0C04 _UID=0 at handle=\_SB_.PCI0.LPCB.MATH acpi_sysresource1 pnpinfo _HID=PNP0C02 _UID=2 at handle=\_SB_.PCI0.LPCB.LDRC attimer0 pnpinfo _HID=PNP0B00 _UID=0 at handle=\_SB_.PCI0.LPCB.RTC_ attimer1 pnpinfo _HID=PNP0100 _UID=0 at handle=\_SB_.PCI0.LPCB.TIMR unknown pnpinfo _HID=IFX0102 _UID=1 at handle=\_SB_.PCI0.LPCB.TPM_ atkbdc0 pnpinfo _HID=PNP0303 _UID=0 at handle=\_SB_.PCI0.LPCB.PS2K atkbd0 psm0 psmcpnp0 pnpinfo _HID=PNP0F13 _UID=0 at handle=\_SB_.PCI0.LPCB.PS2M unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PATA.PRID unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PATA.PRID.P_D0 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PATA.PRID.P_D1 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.SATA unknown pnpinfo _HID=none _UID=0 at handle=\_TZ_.FN00 unknown pnpinfo _HID=PNP0C0B _UID=0 at handle=\_TZ_.FAN0 acpi_tz0 pnpinfo _HID=none _UID=0 at handle=\_TZ_.TZ00 acpi_tz1 pnpinfo _HID=none _UID=0 at handle=\_TZ_.TZ01 acpi_timer0 pnpinfo unknown at unknown ------------------------------------------------------------------------------------------------------------ I hope you can help me. best regards, Evgenij Petenev From owner-freebsd-drivers@FreeBSD.ORG Tue May 15 14:53:03 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE53616A407 for ; Tue, 15 May 2007 14:53:03 +0000 (UTC) (envelope-from die.gestalt@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.238]) by mx1.freebsd.org (Postfix) with ESMTP id 6C8B813C45B for ; Tue, 15 May 2007 14:53:03 +0000 (UTC) (envelope-from die.gestalt@gmail.com) Received: by nz-out-0506.google.com with SMTP id s1so185613nze for ; Tue, 15 May 2007 07:53:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=oB1kPl34dcUYfvrSxVgsv41S77TznEOl6EsaBhPzr4UUkZT0uZpuAjIVYtewhtP3DsRegJaqX/TLWLjr9o6dxaD241oH/LCX9yHwhZ4bOOJQqRs4Q/EBhuKzrozMeBterVUjoSHw7NA/2BrLZ95X4pJHUJ7RJRBcKJu0mkQMbjA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=t8BsR2IhbswBWejmeRhinsfRMDbe3l6f2NV5UgH/eVWjHr6TB2oAJqEU+wjXGDowZgInBUtL6+zJzBTN4QdmHMxTkfO12Z7h7ZiD9bOXs35o9069pYM9LUCtT8xBNYKvdlD9aC0dI/RgmAsagozMZzVt31GAuVRG5xN51fGolF0= Received: by 10.64.181.12 with SMTP id d12mr923615qbf.1179239093069; Tue, 15 May 2007 07:24:53 -0700 (PDT) Received: by 10.64.184.8 with HTTP; Tue, 15 May 2007 07:24:52 -0700 (PDT) Message-ID: <5bf3e10d0705150724q3f0fd25fq89094bd02d8f9d29@mail.gmail.com> Date: Tue, 15 May 2007 16:24:52 +0200 From: "Die Gestalt" To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Generic int 13h driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2007 14:53:03 -0000 Hi gurus, As the subject implies I'm currently doing the most unholy thing ever. I'm writing a driver that accesses hard disks through BIOS int13h. The reasons why I'm doing this are many, but mainly I will be in a situation where I will not be able to update my kernel and where I want to support as much devices as possible. I know this will be slow and I know this will only work on the i386 platform, I accept that. So far so good, I have a skeleton which is able to query the drive parameters and some basic stuff. But when I want to read, this doesn't work, except in QEmu (http://www.qemu.org). I've tried on a VMWare and a real machine, what I get is a stall for maybe 10 s (sometimes not) and the operations returns saying it's successful but my buffer is actually left untouched. I get no kernel message. My code makes use of the vm86_datacall() API to make requests to the int 13h. I've tried both function 02h and 42h without success. Of course I only attempt this on devices where support has been removed from the kernel (to avoid all conflict). No X server is running on the test machine. I've compiled a kernel without APIC and ACPI support and removed as many devices as possible same problem. So my questions are : - Why does it work in QEmu and not in VMWare or on my laptop ? - Is there something in the VM86 monitor that would prevent this from working ? Thanks in advance any help or hint would be greatly appreciated. From owner-freebsd-drivers@FreeBSD.ORG Wed May 16 09:19:21 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A7D9516A400 for ; Wed, 16 May 2007 09:19:21 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 6902713C44B for ; Wed, 16 May 2007 09:19:21 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id BE7EE20AA; Wed, 16 May 2007 10:50:04 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 415BC20A7; Wed, 16 May 2007 10:50:04 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 2521E525D; Wed, 16 May 2007 10:50:04 +0200 (CEST) From: des@des.no (Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?=) To: "Die Gestalt" References: <5bf3e10d0705150724q3f0fd25fq89094bd02d8f9d29@mail.gmail.com> Date: Wed, 16 May 2007 10:50:03 +0200 In-Reply-To: <5bf3e10d0705150724q3f0fd25fq89094bd02d8f9d29@mail.gmail.com> (Die Gestalt's message of "Tue\, 15 May 2007 16\:24\:52 +0200") Message-ID: <86veetgnk4.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-drivers@freebsd.org Subject: Re: Generic int 13h driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 09:19:21 -0000 "Die Gestalt" writes: > As the subject implies I'm currently doing the most unholy thing ever. I'm > writing a driver that accesses hard disks through BIOS int13h. The reasons > why I'm doing this are many, but mainly I will be in a situation where I > will not be able to update my kernel and where I want to support as much > devices as possible. I know this will be slow and I know this will only w= ork > on the i386 platform, I accept that. It won't work nearly as universally as you intend; for some devices (particularly USB devices), the BIOS tries to enter protected mode when servicing requests. > So far so good, I have a skeleton which is able to query the drive > parameters and some basic stuff. But when I want to read, this doesn't wo= rk, > except in QEmu (http://www.qemu.org). I've tried on a VMWare and a real > machine, what I get is a stall for maybe 10 s (sometimes not) and the > operations returns saying it's successful but my buffer is actually left > untouched. I get no kernel message. Have you verified that the buffer you write from or read into is mapped correctly in virtual 8086 mode, and that you pass the correct address to the BIOS? DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-drivers@FreeBSD.ORG Wed May 16 16:17:53 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7C3AF16A404 for ; Wed, 16 May 2007 16:17:53 +0000 (UTC) (envelope-from freebsdworld@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by mx1.freebsd.org (Postfix) with ESMTP id 3D9FD13C448 for ; Wed, 16 May 2007 16:17:53 +0000 (UTC) (envelope-from freebsdworld@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so231700wxc for ; Wed, 16 May 2007 09:17:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=twbOJXAmdTtZf6jm5qR4yoGGn/SADl8MefIyzRJik+Q28JI6xZRCRm8IsnNSGxk+ERb8aifuVp8pjCX2/AMUGxWqCbKsp1eIeNr41pn2bo4mEy8+0rHBw2aX0jIuhvlJnmLCKs0SR+hfLcZIBueHYSl8T9FwfmgabXpmPjk9SWA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=N9Xy0GkVecQXtCazPXmIQCC6/Nz5nPyaC4t456GyfkAdU98H7FgUbxKqJL/vEWXewDBUoh1DI4nNF2+WK/G6gkLUYEA/avdqSYN+z5jWQ1WA3rl5CISmi0MWJMLfusQTxWx3F2Q59DfLslvSM6FVubncPBaVUigKsPQwO2/sMNo= Received: by 10.90.83.14 with SMTP id g14mr8228609agb.1179330517533; Wed, 16 May 2007 08:48:37 -0700 (PDT) Received: from ?192.168.1.4? ( [24.213.219.145]) by mx.google.com with ESMTP id 36sm1191334aga.2007.05.16.08.48.35; Wed, 16 May 2007 08:48:36 -0700 (PDT) From: Benjamin Adams To: freebsd-drivers@freebsd.org Content-Type: text/plain Date: Wed, 16 May 2007 11:44:36 -0400 Message-Id: <1179330277.885.2.camel@Laptop.freebsd-world.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: hdac sound driver not working on 7.0 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 16:17:53 -0000 This driver I have for my IBM T60, http://www.benjamindadams.com/hdac.tar I believe was working on 6.x but it is not working on when I upgraded to 7.0. Can someone take a look at it for me, thanks!! (I didn't create the driver) Ben Adams From owner-freebsd-drivers@FreeBSD.ORG Wed May 16 19:06:51 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0184916A400 for ; Wed, 16 May 2007 19:06:51 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id B75F113C447 for ; Wed, 16 May 2007 19:06:50 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id E2FE920A7; Wed, 16 May 2007 21:06:46 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id CB64C20A6; Wed, 16 May 2007 21:06:46 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id AF8745320; Wed, 16 May 2007 21:06:46 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Benjamin Adams References: <1179330277.885.2.camel@Laptop.freebsd-world.com> Date: Wed, 16 May 2007 21:06:46 +0200 In-Reply-To: <1179330277.885.2.camel@Laptop.freebsd-world.com> (Benjamin Adams's message of "Wed\, 16 May 2007 11\:44\:36 -0400") Message-ID: <86tzucio55.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-drivers@freebsd.org Subject: Re: hdac sound driver not working on 7.0 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 19:06:51 -0000 Benjamin Adams writes: > This driver I have for my IBM T60, > > http://www.benjamindadams.com/hdac.tar > > I believe was working on 6.x but it is not working on when I upgraded to > 7.0. Umm, both 6-STABLE and 7 have snd_hda in base. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-drivers@FreeBSD.ORG Wed May 16 19:14:07 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AFBA016A57C for ; Wed, 16 May 2007 19:14:07 +0000 (UTC) (envelope-from freebsdworld@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.229]) by mx1.freebsd.org (Postfix) with ESMTP id 5781713C45E for ; Wed, 16 May 2007 19:14:07 +0000 (UTC) (envelope-from freebsdworld@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so292683wxc for ; Wed, 16 May 2007 12:14:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=VY85RDJbgb2AE0YIaNfvZTaQ4FSH1zxcQa+KW8jd58d8RFErXevPzixACkj/owgPtdLlD6zaruRgQ8PP97MX5b14kdkQ1r94TglxVgDavgcJ0hr57RX2SmJJtnXOggj9DvLL/bXG7bPvkJAryQOVEUi2cJJqM4Vb5OR28CJlPzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=kqZvOd9y4PVim8vzT3curNsw5ykkevLDlE64yHimhHAk2HxIiUmHN1snL+hQDMlrBTITPPfzfQeBnojF50TmIEoAkVMksufuv4tU7ySxzCBjimfO5kuRo2FZsuhFdJCibcKdLqtL6wsJJanhyv90/TNbFzEvOrAaoWli3ugDU7I= Received: by 10.70.130.8 with SMTP id c8mr14024108wxd.1179342845878; Wed, 16 May 2007 12:14:05 -0700 (PDT) Received: from ?192.168.1.4? ( [24.213.219.145]) by mx.google.com with ESMTP id h14sm7662885wxd.2007.05.16.12.14.03; Wed, 16 May 2007 12:14:03 -0700 (PDT) From: Benjamin Adams To: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= In-Reply-To: <86tzucio55.fsf@dwp.des.no> References: <1179330277.885.2.camel@Laptop.freebsd-world.com> <86tzucio55.fsf@dwp.des.no> Content-Type: text/plain; charset=ISO-8859-1 Date: Wed, 16 May 2007 15:13:20 -0400 Message-Id: <1179342800.852.1.camel@Laptop.freebsd-world.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: freebsd-drivers@freebsd.org Subject: Re: hdac sound driver not working on 7.0 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 19:14:07 -0000 oh, my messup. Didn't noticed. On Wed, 2007-05-16 at 21:06 +0200, Dag-Erling Smørgrav wrote: > Benjamin Adams writes: > > This driver I have for my IBM T60, > > > > http://www.benjamindadams.com/hdac.tar > > > > I believe was working on 6.x but it is not working on when I upgraded to > > 7.0. > > Umm, both 6-STABLE and 7 have snd_hda in base. > > DES