Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jun 2013 20:03:13 +0300
From:      Lena@lena.kiev.ua
To:        freebsd-stable@freebsd.org
Subject:   8.4 and EHCI - regression?
Message-ID:  <20130609170313.GA784@lena.kiev>

next in thread | raw e-mail | index | archive | help
After upgrade from 8.3 to 8.4, ehci (USB 2.0) disappeared from `dmesg`.
Details:

Motherboard: ASUS M2NPV-MX ACPI BIOS Revision 1101

Before upgrade, 8.3-RELEASE-p2 i386:

~ $ egrep -i 'usb|hci' dmesg.yesterday
ohci0: <OHCI (generic) USB controller> mem 0xfe02f000-0xfe02ffff irq 21 at device 11.0 on pci0
ohci0: [ITHREAD]
usbus0: <OHCI (generic) USB controller> on ohci0
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe02e000-0xfe02e0ff irq 22 at device 11.1 on pci0
ehci0: [ITHREAD]
usbus1: EHCI version 1.0
usbus1: <EHCI (generic) USB 2.0 controller> on ehci0
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <nVidia> at usbus0
uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <nVidia> at usbus1
uhub1: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
Root mount waiting for: usbus1 usbus0
Root mount waiting for: usbus1
Root mount waiting for: usbus1
Root mount waiting for: usbus1
ugen0.2: <vendor 0x055f> at usbus0

(the last line - a scanner).

After upgrade to 8.4-RELEASE - no EHCI:

~ $ dmesg | egrep -i 'usb|hci'
ohci0: <OHCI (generic) USB controller> mem 0xfe02f000-0xfe02ffff irq 21 at device 11.0 on pci0
ohci0: [ITHREAD]
usbus0 on ohci0
usbus0: 12Mbps Full Speed USB v1.0
ugen0.1: <nVidia> at usbus0
uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
Root mount waiting for: usbus0
Root mount waiting for: usbus0
ugen0.2: <vendor 0x055f> at usbus0

~ $ pciconf -l | grep hci
ohci0@pci0:0:11:0:      class=0x0c0310 card=0x81c01043 chip=0x026d10de rev=0xa3
hdr=0x00
ehci0@pci0:0:11:1:      class=0x0c0320 card=0x81c01043 chip=0x026e10de rev=0xa3
hdr=0x00
~ $ kldstat
Id Refs Address    Size     Name
 1   33 0xc0400000 58ae60   kernel
 2    2 0xc098b000 57964    sound.ko
 3    1 0xc09e3000 2abe8    snd_hda.ko
 4    1 0xc0a0e000 3288     speaker.ko
 5    1 0xc0a12000 a91200   nvidia.ko
 6    1 0xc14a4000 308c     aibs.ko
 7    1 0xc6169000 8000     linprocfs.ko
 8    1 0xc6175000 4000     fdescfs.ko
 9    1 0xc62eb000 2000     linux_adobe.ko
10    1 0xc6497000 2000     rtc.ko
~ $ kldstat -v | grep hci
                131 ohci/usbus
                130 uhci/usbus
                129 ehci/usbus
                128 xhci/usbus
                124 pci/uhci
                123 pci/ohci
                42 pci/ata_ahci
                122 pci/ehci
                41 atapci/ata_ahci_ata
~ # kldload ehci
module_register: module pci/ehci already exists!
Module pci/ehci failed to register: 17
kldload: can't load ehci: File exists

How I upgraded:

rm -rf /usr/src
svn export svn://svn0.us-east.FreeBSD.org/base/releng/8.4 /usr/src
(created custom kernel config from GENERIC)
cd /usr/obj
chflags -R noschg *
rm -rf *
cd /usr/src
make buildworld kernel
shutdown -p now
(boot in single user)
fsck -p
mount -a
swapon -a
cd /usr/src
adjkerntz -i
mergemaster -p
make installworld
make delete-old
mergemaster -Fi
shutdown -p now
cd /usr/src
make delete-old-libs

In /etc/make.conf :

KERNCONF=BEDSIDE
INSTALL_NODEBUG="yes"
CPUTYPE?=athlon64

Custom kernel config in /usr/src/sys/i386/conf/BEDSIDE
(I edited from GENERIC 8.4):

#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the config(5) manual page,
# and/or the handbook section on Kernel Configuration Files:
#
#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: sys/i386/conf/GENERIC 247909 2013-03-07 07:28:05Z bryanv $

#lena cpu		I486_CPU
#lena cpu		I586_CPU
cpu		I686_CPU
ident		BEDSIDE #lena was GENERIC

# To statically compile in device wiring instead of /boot/device.hints
#hints		"GENERIC.hints"		# Default places to look for devices.

# Use the following to compile in values accessible to the kernel
# through getenv() (or kenv(1) in userland). The format of the file
# is 'variable=value', see kenv(1)
#
# env		"GENERIC.env"

#lena makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols

options 	SCHED_ULE		# ULE scheduler
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
#lena options 	INET6			# IPv6 communications protocols
#lena 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
#lena options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
#lena options 	MD_ROOT			# MD is a potential root device
#lena:load-as-module options 	NFSCLIENT		# Network Filesystem Client
#lena:load-as-module options 	NFSSERVER		# Network Filesystem Server
#lena options 	NFSLOCKD		# Network Lock Manager
#lena options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT
options 	MSDOSFS			# MSDOS Filesystem
#lena:load-as-module options 	CD9660			# ISO 9660 Filesystem
options 	PROCFS			# Process filesystem (requires PSEUDOFS)
options 	PSEUDOFS		# Pseudo-filesystem framework
#lena options 	GEOM_PART_GPT		# GUID Partition Tables.
#lena options 	GEOM_LABEL		# Provides labelization
options 	COMPAT_43TTY		# BSD 4.3 TTY compat (sgtty)
#lena 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 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
options 	KTRACE			# ktrace(1) support
#lena options 	STACK			# stack(9) support
options 	SYSVSHM			# SYSV-style shared memory
options 	SYSVMSG			# SYSV-style message queues
options 	SYSVSEM			# SYSV-style semaphores
options 	P1003_1B_SEMAPHORES	# POSIX-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
#lena options 	AUDIT			# Security event auditing
options 	MAC			# TrustedBSD MAC Framework
#options 	KDTRACE_HOOKS		# Kernel DTrace hooks
#lena options 	INCLUDE_CONFIG_FILE     # Include this file in kernel

#lena options 	KDB			# Kernel debugger related code
#lena options 	KDB_TRACE		# Print a stack trace for a panic

# To make an SMP kernel, the next two lines are needed
#lena options 	SMP			# Symmetric MultiProcessor Kernel
device		apic			# I/O APIC

# CPU frequency control
device		cpufreq

# Bus support.
device		acpi
#lena device		eisa
device		pci

# Floppy drives
device		fdc

# ATA and ATAPI devices
device		ata
device		atadisk		# ATA disk drives
#lena device		ataraid		# ATA RAID drives
device		atapicd		# ATAPI CDROM drives
#lena device		atapifd		# ATAPI floppy drives
#lena device		atapist		# ATAPI tape drives
options 	ATA_STATIC_ID	# Static device numbering

# SCSI Controllers
#lena device		ahb		# EISA AHA1742 family
#lena device		ahc		# AHA2940 and onboard AIC7xxx devices
#lena options 	AHC_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~128k to driver.
#lena device		ahd		# AHA39320/29320 and onboard AIC79xx devices
#lena options 	AHD_REG_PRETTY_PRINT	# Print register bitfields in debug
					# output.  Adds ~215k to driver.
#lena device		esp		# AMD Am53C974 (Tekram DC-390(T))
#lena device		hptiop		# Highpoint RocketRaid 3xxx series
#lena device		isp		# Qlogic family
#device		ispfw		# Firmware for QLogic HBAs- normally a module
#lena device		mpt		# LSI-Logic MPT-Fusion
#device		ncr		# NCR/Symbios Logic
#lena device		sym		# NCR/Symbios Logic (newer chipsets + those of `ncr')
#lena device		trm		# Tekram DC395U/UW/F DC315U adapters

#lena device		adv		# Advansys SCSI adapters
#lena device		adw		# Advansys wide SCSI adapters
#lena device		aha		# Adaptec 154x SCSI adapters
#lena device		aic		# Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
#lena device		bt		# Buslogic/Mylex MultiMaster SCSI adapters

#lena device		ncv		# NCR 53C500
#lena device		nsp		# Workbit Ninja SCSI-3
#lena device		stg		# TMC 18C30/18C50
#lena device		isci		# Intel C600 SAS controller

# SCSI peripherals
device		scbus		# SCSI bus (required for SCSI)
#lena device		ch		# SCSI media changers
device		da		# Direct Access (disks)
#lena device		sa		# Sequential Access (tape etc)
#lena device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)
#lena device		ses		# SCSI Environmental Services (and SAF-TE)

# RAID controllers interfaced to the SCSI subsystem
#lena device		amr		# AMI MegaRAID
#lena device		arcmsr		# Areca SATA II RAID
#lena device		asr		# DPT SmartRAID V, VI and Adaptec SCSI RAID
#lena device		ciss		# Compaq Smart RAID 5*
#lena device		dpt		# DPT Smartcache III, IV - See NOTES for options
#lena device		hptmv		# Highpoint RocketRAID 182x
#lena device		hptrr		# Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx
#lena device		hpt27xx		# Highpoint RocketRAID 27xx
#lena device		iir		# Intel Integrated RAID
#lena device		ips		# IBM (Adaptec) ServeRAID
#lena device		mly		# Mylex AcceleRAID/eXtremeRAID
#lena device		twa		# 3ware 9000 series PATA/SATA RAID
#lena device		tws		# LSI 3ware 9750 SATA+SAS 6Gb/s RAID controller

# RAID controllers
#lena device		aac		# Adaptec FSA RAID
#lena device		aacp		# SCSI passthrough for aac (requires CAM)
#lena device		ida		# Compaq Smart RAID
#lena device		mfi		# LSI MegaRAID SAS
#lena device		mlx		# Mylex DAC960 family
#lena device		pst		# Promise Supertrak SX6000
#lena device		twe		# 3ware ATA RAID

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

device		kbdmux		# keyboard multiplexer

device		vga		# VGA video card driver

#lena device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

device		agp		# support several AGP chipsets

# Power management support (see NOTES for more options)
#device		apm
# Add suspend/resume support for the i8254.
device		pmtimer

# PCCARD (PCMCIA) support
# PCMCIA and cardbus bridge support
#lena device		cbb		# cardbus (yenta) bridge
#lena device		pccard		# PC Card (16-bit) bus
#lena device		cardbus		# CardBus (32-bit) bus

# Serial (COM) ports
device		uart		# Generic UART driver

# Parallel port
device		ppc
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
#lena device		plip		# TCP/IP over parallel
#lena device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da

#lena device		puc		# Multi I/O cards and multi-channel UARTs

# PCI Ethernet NICs.
#lena device		de		# DEC/Intel DC21x4x (``Tulip'')
#lena device		em		# Intel PRO/1000 Gigabit Ethernet Family
#lena device		igb		# Intel PRO/1000 PCIE Server Gigabit Family
#lena device		ixgb		# Intel PRO/10GbE Ethernet Card
#lena device		le		# AMD Am7900 LANCE and Am79C9xx PCnet
#lena device		ti		# Alteon Networks Tigon I/II gigabit Ethernet
#lena device		txp		# 3Com 3cR990 (``Typhoon'')
#lena device		vx		# 3Com 3c590, 3c595 (``Vortex'')

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
#lena device		ae		# Attansic/Atheros L2 FastEthernet
#lena device		age		# Attansic/Atheros L1 Gigabit Ethernet
#lena device		alc		# Atheros AR8131/AR8132 Ethernet
#lena device		ale		# Atheros AR8121/AR8113/AR8114 Ethernet
#lena device		bce		# Broadcom BCM5706/BCM5708 Gigabit Ethernet
#lena device		bfe		# Broadcom BCM440x 10/100 Ethernet
#lena device		bge		# Broadcom BCM570xx Gigabit Ethernet
#lena device		cas		# Sun Cassini/Cassini+ and NS DP83065 Saturn
device		dc		# DEC/Intel 21143 and various workalikes
#lena device		et		# Agere ET1310 10/100/Gigabit Ethernet
#lena device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)
#lena device		gem		# Sun GEM/Sun ERI/Apple GMAC
#lena device		hme		# Sun HME (Happy Meal Ethernet)
#lena device		jme		# JMicron JMC250 Gigabit/JMC260 Fast Ethernet
#lena device		lge		# Level 1 LXT1001 gigabit Ethernet
#lena device		msk		# Marvell/SysKonnect Yukon II Gigabit Ethernet
device		nfe		# nVidia nForce MCP on-board Ethernet
#lena device		nge		# NatSemi DP83820 gigabit Ethernet
#device		nve		# nVidia nForce MCP on-board Ethernet Networking
#lena device		pcn		# AMD Am79C97x PCI 10/100 (precedence over 'le')
#lena device		re		# RealTek 8139C+/8169/8169S/8110S
#lena device		rl		# RealTek 8129/8139
#lena device		sf		# Adaptec AIC-6915 (``Starfire'')
#lena device		sge		# Silicon Integrated Systems SiS190/191
#lena device		sis		# Silicon Integrated Systems SiS 900/SiS 7016
#lena device		sk		# SysKonnect SK-984x & SK-982x gigabit Ethernet
#lena device		ste		# Sundance ST201 (D-Link DFE-550TX)
#lena device		stge		# Sundance/Tamarack TC9021 gigabit Ethernet
#lena device		tl		# Texas Instruments ThunderLAN
#lena device		tx		# SMC EtherPower II (83c170 ``EPIC'')
#lena device		vge		# VIA VT612x gigabit Ethernet
device		vr		# VIA Rhine, Rhine II
#lena device		vte		# DM&P Vortex86 RDC R6040 Fast Ethernet
#lena device		wb		# Winbond W89C840F
#lena device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')

# ISA Ethernet NICs.  pccard NICs included.
#lena device		cs		# Crystal Semiconductor CS89x0 NIC
# 'device ed' requires 'device miibus'
#lena device		ed		# NE[12]000, SMC Ultra, 3c503, DS8390 cards
#lena device		ex		# Intel EtherExpress Pro/10 and Pro/10+
#lena device		ep		# Etherlink III based cards
#lena device		fe		# Fujitsu MB8696x based cards
#lena device		ie		# EtherExpress 8/16, 3C507, StarLAN 10 etc.
#lena device		sn		# SMC's 9000 series of Ethernet chips
#lena device		xe		# Xircom pccard Ethernet

# Wireless NIC cards
#lena device		wlan		# 802.11 support
#lena options 	IEEE80211_DEBUG	# enable debug msgs
#lena options 	IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
#lena options 	IEEE80211_SUPPORT_MESH	# enable 802.11s draft support
#lena device		wlan_wep	# 802.11 WEP support
#lena device		wlan_ccmp	# 802.11 CCMP support
#lena device		wlan_tkip	# 802.11 TKIP support
#lena device		wlan_amrr	# AMRR transmit rate control algorithm
#lena device		an		# Aironet 4500/4800 802.11 wireless NICs.
#lena device		ath		# Atheros pci/cardbus NIC's
#lena device		ath_hal		# pci/cardbus chip support
#lena options 	AH_SUPPORT_AR5416	# enable AR5416 tx/rx descriptors
#lena device		ath_rate_sample	# SampleRate tx rate control for ath
#lena device		ral		# Ralink Technology RT2500 wireless NICs.
#lena device		wi		# WaveLAN/Intersil/Symbol 802.11 wireless NICs.
#lena #device		wl		# Older non 802.11 Wavelan wireless NIC.

# Pseudo devices.
device		loop		# Network loopback
device		random		# Entropy device
#lena options 	PADLOCK_RNG	# VIA Padlock RNG
options 	RDRAND_RNG	# Intel Bull Mountain RNG
device		ether		# Ethernet support
#lena device		vlan		# 802.1Q VLAN support
#lena device		tun		# Packet tunnel.
device		pty		# BSD-style compatibility pseudo ttys
#lena:load-as-module device		md		# Memory "disks"
#lena device		gif		# IPv6 and IPv4 tunneling
#lena device		faith		# IPv6-to-IPv4 relaying (translation)
#lena device		firmware	# firmware assist module

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device		bpf		# Berkeley packet filter

# USB support
options 	USB_DEBUG	# enable debug msgs
device		uhci		# UHCI PCI->USB interface
device		ohci		# OHCI PCI->USB interface
device		ehci		# EHCI PCI->USB interface (USB 2.0)
device		usb		# USB Bus (required)
#device		udbp		# USB Double Bulk Pipe devices
device		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
#lena device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
#lena:load-as-module device		ums		# Mouse
#lena device		urio		# Diamond Rio 500 MP3 player
# USB Serial devices
#lena device		u3g		# USB-based 3G modems (Option, Huawei, Sierra)
#lena device		uark		# Technologies ARK3116 based serial adapters
#lena device		ubsa		# Belkin F5U103 and compatible serial adapters
#lena device		uftdi		# For FTDI usb serial adapters
#lena device		uipaq		# Some WinCE based devices
#lena device		uplcom		# Prolific PL-2303 serial adapters
#lena device		uslcom		# SI Labs CP2101/CP2102 serial adapters
#lena device		uvisor		# Visor and Palm devices
#lena device		uvscom		# USB serial support for DDI pocket's PHS
# USB Ethernet, requires miibus
#lena device		aue		# ADMtek USB Ethernet
#lena device		axe		# ASIX Electronics USB Ethernet
#lena device		cdce		# Generic USB over Ethernet
#lena device		cue		# CATC USB Ethernet
#lena device		kue		# Kawasaki LSI USB Ethernet
#lena device		rue		# RealTek RTL8150 USB Ethernet
#lena device		udav		# Davicom DM9601E USB
# USB Wireless
#lena device		rum		# Ralink Technology RT2501USB wireless NICs
#lena device		uath		# Atheros AR5523 wireless NICs
#lena device		ural		# Ralink Technology RT2500USB wireless NICs
#lena device		zyd		# ZyDAS zd1211/zd1211b wireless NICs

# FireWire support
#lena device		firewire	# FireWire bus code
#device		sbp		# SCSI over FireWire (Requires scbus and da)
#lena device		fwe		# Ethernet over FireWire (non-standard!)
#lena device		fwip		# IP over FireWire (RFC 2734,3146)
#lena device		dcons		# Dumb console driver
#lena device		dcons_crom	# Configuration ROM for dcons

# VirtIO support
device		virtio		# Generic VirtIO bus (required)
device		virtio_pci	# VirtIO PCI device
device		vtnet		# VirtIO Ethernet device
device		virtio_blk	# VirtIO Block device
device		virtio_scsi	# VirtIO SCSI device
device		virtio_balloon	# VirtIO Memory Balloon device

#lenab
# from /sys/conf/NOTES:

# Optional character code conversion support with LIBICONV.
# Each option requires their base file system and LIBICONV.

options         MSDOSFS_ICONV

# Kernel side iconv library
options         LIBICONV

# Set the amount of time (in seconds) the system will wait before
# rebooting automatically when a kernel panic occurs.  If set to (-1),
# the system will wait indefinitely until a key is pressed on the
# console.
options         PANIC_REBOOT_WAIT_TIME=60   #lena was 16

# from /sys/i386/conf/NOTES:

# Enable Linux ABI emulation
options         COMPAT_LINUX

#lenae



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130609170313.GA784>