Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484556 - kernel-3.10.7 Unable to enumerate USB device on port...
Summary: kernel-3.10.7 Unable to enumerate USB device on port...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 484558 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-11 07:13 UTC by Alex Weiss
Modified: 2014-05-01 18:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Weiss 2013-09-11 07:13:33 UTC
I am presently having trouble getting my external USB 2.0 drive to be recognized. No device is created and my dmesg is filled to the brim with messages stating:

[ 1425.109621] usb 1-2: new high-speed USB device number X using ehci-pci

Where "X" is some number.

In 3.8.13 it would say that it was "unable to enumerate USB device..."

I am fairly certain that this is not a hardware issue, namely as compiling a new kernel, in some cases, cleared it up. Moreover, this typically happened when the PC was turned off due to a power outage.

However, I have run the system for a very long time in the pre-3.8 days without there being any problem.

I can also make the problem vanish by not compiling or including ehci support in the kernel. However, the USB drive would then operate too slowly to be of any use and it is a 2.0 device.

Other things of possible use in finding this out. When this problem is present, on shutdown, the system hangs at "remounting / read only" and goes no further until I turn off the USB drive. I also get an error at boot-up when it's trying to initialize "uevents"

udevadm settle - timeout of 60 seconds reached, the event queue contains:
  /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4 (1199)
  /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4:1.0 (1200)            [ !! ]

Here's my emerge --info results.

Portage 2.2.1 (default/linux/x86/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.10.7-gentoo i686)
=================================================================
System uname: Linux-3.10.7-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_2.60GHz-with-gentoo-2.2
KiB Mem:     3764784 total,   3229072 free
KiB Swap:     506040 total,    506040 free
Timestamp of tree: Sun, 08 Sep 2013 06:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="X a52 aac accessibility acl acpi alsa asf audiofile avi berkdb bitmap-fonts branding bzip2 bzlib cairo cdda cdparanoia cdr cli consolekit cracklib crypt cups curl curlwrappers custom-optimization cxx dbus declarative divx4linux dri dts dvd dvdnav dvdr dvdread emboss encode exif fam ffmpeg firefox flac fortran freetype freewnn gdbm gif glib gnutls gphoto2 gpm gtk gtk2 gtkstyle iconv imagemagick imlib jpeg jpeg2k kde kpathsea lcms ldap libnotify mad matroska mbox mime mmx mmxext mng modules mp3 mp4 mpeg mudflap ncurses network nls nptl nptlonly nsplugins nvidia ogg oggvorbis opengl openmp pam pango pcre pdf pdflib perl png policykit ppds preview-latex qt qt-static qt3support qt4 quicktime readline sdl semantic-desktop session sox spell sql sqlite sse sse2 ssl startup-notification svg tcltk tcpd texlive tiff truetype truetype-fonts type1-fonts udev udisks unicode upower usb vorbis webkit win32codecs wxwidgets x264 x86 xcb xine xml xv xvid yahoo zlib" ABI_X86="32" ALSA_CARDS="intel8x0" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC, USE_PYTHON

Attached is the output of dmesg stripped of the annoying error message that I described above.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-09-11 08:23:30 UTC
*** Bug 484558 has been marked as a duplicate of this bug. ***
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-09-13 16:37:15 UTC
Please try the latest sys-kernel/git-sources first before proceeding with the rest of this comment to ensure the problem hasn't already been fixed.

Okay, so we know that before 3.8 it worked and somewhere in 3.8 it broke. That are a ~15000 commits that happened between those moment, figuring out which commit did with that amount of commits can take some item. That would require you to build 13 kernels or so and test all of them to find the bad commit.

But that's the entire kernel, if we focus on the changes happened to the drivers/usb/ directory (which contains EHCI and relevant files) we we get ~400 commits, which leaves you with 8 or 9 tries to find the bad commit.

So, I would suggest you to follow http://wiki.gentoo.org/wiki/Kernel_git-bisect but instead of the start bisect there you will want to do:

`git bisect start vBAD vGOOD -- drivers/usb`

Here you replace BAD and GOOD by the versions you know are bad and good, eg:

`git bisect start v3.8.13 v3.7.10 -- drivers/usb` 

(Assuming v3.7.10 is confirmed to work and v3.8.13 is broken)

I haven't found related reports on a report and the log contains a bit too much commits to get a guess at which commit might be bad; so, I would appreciate it if you could do a git bisect to find the bad commit.
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-14 17:28:55 UTC
(In reply to Tom Wijsman (TomWij) from comment #2)
> Please try the latest sys-kernel/git-sources first before proceeding with
> the rest of this comment to ensure the problem hasn't already been fixed.
> 
> [ ... See rest of comment #2 too ... ]
Comment 4 Alex Weiss 2013-10-14 21:19:43 UTC
(In reply to Tom Wijsman (TomWij) from comment #3)
> (In reply to Tom Wijsman (TomWij) from comment #2)
> > Please try the latest sys-kernel/git-sources first before proceeding with
> > the rest of this comment to ensure the problem hasn't already been fixed.
> > 
> > [ ... See rest of comment #2 too ... ]

I recently upgraded to 3.10.7-r1. For a while, all was going well, but now the same problem has come back. I know it's not the hardware, either, as it often goes away after I compile a fresh kernel. It's frustrating as I never know when to expect it and when not to. Sorry if I am not able to be more helpful at this stage.

Best,

Alex
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-10-14 23:18:01 UTC
Hmm, is an external USB hub or device perhaps faulty?

If it doesn't happen often; then yes, a bisect is not really possible that way.
Comment 6 Mike Pagano gentoo-dev 2014-05-01 17:46:48 UTC
Please let us know if this is still an issue with later kernels or if you attempted the bisect request awhile ago.
Comment 7 Alex Weiss 2014-05-01 18:08:57 UTC
Sorry for not getting back to everybody on this. The problem seems to be resolved with more recent kernels. I'm not sure what the problem was.