From owner-freebsd-usb@FreeBSD.ORG Mon Nov 10 03:12:31 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC3E0106567F; Mon, 10 Nov 2008 03:12:31 +0000 (UTC) (envelope-from kevinxlinuz@163.com) Received: from m12-13.163.com (m12-13.163.com [220.181.12.13]) by mx1.freebsd.org (Postfix) with SMTP id A4CC48FC0A; Mon, 10 Nov 2008 03:12:30 +0000 (UTC) (envelope-from kevinxlinuz@163.com) Received: from [127.0.0.1] (unknown [60.191.86.3]) by smtp9 (Coremail) with SMTP id DcCowLCbwlmYphdJqigSFQ--.457S2; Mon, 10 Nov 2008 11:12:24 +0800 (CST) Message-ID: <4917A695.3030903@163.com> Date: Mon, 10 Nov 2008 11:12:21 +0800 From: kevin User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Hans Petter Selasky References: <3a142e750811071229r6d452b28t7979ab08e1c90d71@mail.gmail.com> <20081107.132401.1622434515.imp@bsdimp.com> <15059493.193721226221296136.JavaMail.coremail@bj163app23.163.com> <200811091016.16934.hselasky@c2i.net> In-Reply-To: <200811091016.16934.hselasky@c2i.net> Content-Type: text/plain; charset=x-gbk; format=flowed Content-Transfer-Encoding: 7bit X-Coremail-Antispam: 1Uf129KBjvJXoW3JFWrXw15CFW5JFW7WrWfXwb_yoW3JFykpr 98GFnxJr4kKF1F9w1qqwn5CrWrJa1UAayfJa4kKw4rKw1jg34Yqr9FyFy3uwnIvrZ5uF17 ZFykAw4Iqw15WaUanT9S1TB71UUUUUUv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UU U8D7k0a2IF6F4UM7kC6x804xWl14x267AKxVWUJVW8JwAFxVCF77xC6IxKo4kEV4yl1I0E scIYIxCEI4klw4CSwwAFIxvE14AKwVWUJVWUGwAawVAYYI1S6c8GOVWUur45Jrylnx0Ec2 IEnICE548m6r1DJrWUZwAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_ Jrv_JF1lYx0Ex4A2jsIE14v26r4j6F4UM4IEnf9ElVAFpTB2q-sK649IAas0WaI_GwAC6x AIw28IcVAK0I8IjxAxMx02cVAKzwCY02Avz4vE14v_Gr4lc2IjII80xcxEwVWxJVW3JwCF 72vE52k0Y41lx4CE17CEb7AF67AKxVWUXVWUAbIYCTnIWIevJa73UjIFyTuYvjxUT5l1DU UUU Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB4BSD release candidate number 3 - request for review X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 03:12:32 -0000 Hans Petter Selasky wrote: > On Sunday 09 November 2008, kevin wrote: > >> It's a bug? >> /boot/loader.conf: >> zfs_load="YES" >> vm.kmem_size_max="2048M" >> vm.kmem_size="2048M" >> vfs.zfs.zil_disable=1 >> vfs.zfs.prefetch_disable=1 >> hw.psm.synaptics_support=1 >> legal.intel_iwn.license_ack=1 >> acpi_ibm_load="YES" >> snd_hda_load="YES" >> powerd_enable="YES" >> linux_load="YES" >> if_iwn_load="YES" >> ubtbcmfw_load="YES" >> usb2_bluetooth_load="YES" >> usb2_bluetooth_ng_load="YES" >> usb2_bluetooth_fw_load="YES" >> usb2_controller_uhci_load="YES" >> usb2_controller_ehci_load="YES" >> usb2_input_ms_load="YES" >> usb2_storage_mass_load="YES" >> usb2_image_load="YES" >> >> kldstat: >> Id Refs Address Size Name >> 1 82 0xffffffff80100000 756b28 kernel (/boot/kernel/kernel) >> 2 1 0xffffffff80857000 3a88f8 zfs.ko (/boot/kernel/zfs.ko) >> 3 2 0xffffffff80c00000 6670 opensolaris.ko >> (/boot/kernel/opensolaris.ko) 4 2 0xffffffff80c07000 a1dd8 linux.ko >> (/boot/kernel/linux.ko) 5 1 0xffffffff80ca9000 28470 snd_hda.ko >> (/boot/kernel/snd_hda.ko) 6 2 0xffffffff80cd2000 bc4d0 sound.ko >> (/boot/kernel/sound.ko) 7 1 0xffffffff80d8f000 7a38 acpi_ibm.ko >> (/boot/kernel/acpi_ibm.ko) 8 1 0xffffffff80d97000 24e80 if_iwn.ko >> (/boot/kernel/if_iwn.ko) 9 1 0xffffffff80dbc000 6c18 ubtbcmfw.ko >> (/boot/kernel/ubtbcmfw.ko) 10 2 0xffffffff80dc3000 27f88 usb.ko >> (/boot/kernel/usb.ko) >> 11 3 0xffffffff80deb000 be8 usb2_bluetooth.ko >> (/boot/kernel/usb2_bluetooth.ko) 12 12 0xffffffff80dec000 9c868 >> usb2_core.ko (/boot/kernel/usb2_core.ko) 13 1 0xffffffff80e89000 bbf8 >> usb2_bluetooth_ng.ko (/boot/kernel/usb2_bluetooth_ng.ko) 14 6 >> 0xffffffff80e95000 1ad00 netgraph.ko (/boot/kernel/netgraph.ko) 15 1 >> 0xffffffff80eb0000 a950 usb2_bluetooth_fw.ko >> (/boot/kernel/usb2_bluetooth_fw.ko) 16 1 0xffffffff80ebb000 15978 >> usb2_controller_uhci.ko (/boot/kernel/usb2_controller_uhci.ko) 17 3 >> 0xffffffff80ed1000 8780 usb2_controller.ko >> (/boot/kernel/usb2_controller.ko) 18 1 0xffffffff80eda000 19dd0 >> usb2_controller_ehci.ko (/boot/kernel/usb2_controller_ehci.ko) 19 1 >> 0xffffffff80ef4000 e128 usb2_input_ms.ko >> (/boot/kernel/usb2_input_ms.ko) 20 2 0xffffffff80f03000 bd0 >> usb2_input.ko (/boot/kernel/usb2_input.ko) 21 1 0xffffffff80f04000 15c28 >> usb2_storage_mass.ko (/boot/kernel/usb2_storage_mass.ko) 22 2 >> 0xffffffff80f1a000 bd8 usb2_storage.ko (/boot/kernel/usb2_storage.ko) >> 23 1 0xffffffff80f1b000 bd0 usb2_image.ko >> (/boot/kernel/usb2_image.ko) 24 4 0xffffffff81022000 1835 >> ng_bluetooth.ko (/boot/kernel/ng_bluetooth.ko) 25 1 0xffffffff81024000 >> 133a9 ng_hci.ko (/boot/kernel/ng_hci.ko) 26 1 0xffffffff81038000 >> 174b7 ng_l2cap.ko (/boot/kernel/ng_l2cap.ko) 27 1 0xffffffff81050000 >> 2de0a ng_btsocket.ko (/boot/kernel/ng_btsocket.ko) 28 1 >> 0xffffffff8107e000 535e ng_socket.ko (/boot/kernel/ng_socket.ko) 29 >> 1 0xffffffff81084000 8059 vkbd.ko (/boot/kernel/vkbd.ko) 30 1 >> 0xffffffff8108d000 6f4 rtc.ko (/usr/local/modules/rtc.ko) >> >> I build kernel without usb*.I notice usb.ko's refs is 2, after i run >> kldunload usb.ko, it is 1.when i try to kldunload usb.ko another time,it >> return "Device busy".Any thing still request usb.ko? >> >> > > Hi, > > Could you send me your kernel config file. Maybe there is still one USB config > entry left for the old USB stack. Else the following should do the trick: > rm /boot/kernel/usb.ko > > --HPS > > This is my kernel config file. cpu HAMMER ident G8laptop options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols options SCTP # Stream Control Transmission Protocol options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options NFSCLIENT # Network Filesystem Client options NFSLOCKD # Network Lock Manager options NTFS # NT File System options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options GEOM_PART_GPT # GUID Partition Tables. options GEOM_LABEL # Provides labelization options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!] options COMPAT_IA32 # Compatible with i386 binaries options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options STOP_NMI # Stop CPUS using NMI instead of IPI options AUDIT # Security event auditing options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4) options KDB # Enable kernel debugger support. options DDB # Support DDB. options KDTRACE_HOOKS options DDB_CTF options KDTRACE_FRAME options SMP # Symmetric MultiProcessor Kernel device cpufreq device coretemp device nvram device acpi device pci device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID # Static device numbering device scbus # SCSI bus (required for SCSI) device da # Direct Access (disks) device cd # CD device pass # Passthrough device (direct SCSI access) device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device kbdmux # keyboard multiplexer device vga # VGA video card driver device splash # Splash screen and screen saver support device sc device agp # support several AGP chipsets device cbb # cardbus (yenta) bridge device pccard # PC Card (16-bit) bus device cardbus # CardBus (32-bit) bus device em # Intel PRO/1000 Gigabit Ethernet Family device miibus # MII bus support device wlan # 802.11 support options IEEE80211_DEBUG # enable debug msgs options IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device loop # Network loopback device random # Entropy device device ether # Ethernet support device tun # Packet tunnel. device pty # BSD-style compatibility pseudo ttys device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) device firmware # firmware assist module device bpf # Berkeley packet filter device usb2_storage device usb2_storage_mass I don't think any thing request usb.ko. When i unload all usb2* and netgraph.ko related modules,i find i can unload usb.ko successful. Thanks, kevin