Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213431 - kernel - driver sd/sr needs updating - please use bus_type methods
Summary: kernel - driver sd/sr needs updating - please use bus_type methods
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High trivial (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-14 18:58 UTC by Robert Golding
Modified: 2008-07-24 14:26 UTC (History)
0 users

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


Attachments
dmesg (dmesg,37.61 KB, text/plain)
2008-03-14 19:01 UTC, Robert Golding
Details
/usr/src/linux-2.6.24-gentoo-r3 .config (.config,51.59 KB, text/plain)
2008-03-14 19:04 UTC, Robert Golding
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Golding 2008-03-14 18:58:41 UTC
When checking dmesg for something else came accross theis error message:
Driver 'sr' needs updating - please use bus_type methods.


Reproducible: Always

Steps to Reproduce:
1.boot machine
2.check dmesg where drives added
3.

Actual Results:  
dmesg shows the error but everything works OK.  I just don't like to see error messages.


I was checking for ACPI changes after getting the acpid to work and found the above error message.  I do not understand how the latest release of a kernel can be asking for the driver (sr) to be updated when it is working properly.
I also am not sure where the 'sr' driver is, is it part of the libata sub-system?  I am using only the new libata stuff and have the older generic ide stuff all as 'NO'.

Following is my 'emerge --info', I will attach dmesg and the .config

rob@one ~ $ emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686)
=================================================================
System uname: 2.6.24-gentoo-r3 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
Timestamp of tree: Thu, 13 Mar 2008 02:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -falign-functions=64"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.isp.net.au/ftp/pub/gentoo http://ftp.swin.edu.au/gentoo http://distfiles.gentoo.org http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_AU.UTF-8"
LC_ALL="en_AU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_AU"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/gfxboot_overlay /usr/portage/local/layman/armagetron /usr/portage/local/layman/voyageur /usr/portage/local/layman/desktop-effects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa arts asf audacious avi bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 bzlib cairo cdparanoia cdr cli cracklib crypt cups dca dlloader dri dv dvd dvdr dvdread eds emboss encode esd fam ffmpeg firefox flac fortran freetype gdbm gif gimp glitz gnome gpm gstreamer gtk gtk2 hal iconv imlib imlib2 isdnlog java javascript jpeg kde ldap libg++ mad midi mikmod mjpeg mmx mmxext mp3 mpeg mpg mplayer mudflap ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl openmp oss pam pcre pdf pdflib perl png ppds pppd print python qt3 qt4 quicktime readline real reflection remote sane scanner sdl session smp spell spl sse ssl svg svga tcpd tga tiff totem truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vorbis win32codecs wmf wmv x86 xine xml xorg xsane xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_AU" USERLAND="GNU" VIDEO_CARDS="nvidia nv v4l vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Robert Golding 2008-03-14 19:01:46 UTC
Created attachment 146146 [details]
dmesg
Comment 2 Robert Golding 2008-03-14 19:04:02 UTC
Created attachment 146148 [details]
/usr/src/linux-2.6.24-gentoo-r3 .config
Comment 3 Thomas Juerges 2008-03-15 01:01:44 UTC
(In reply to comment #0)
> I was checking for ACPI changes after getting the acpid to work and found the
> above error message.  I do not understand how the latest release of a kernel
> can be asking for the driver (sr) to be updated when it is working properly.
> I also am not sure where the 'sr' driver is, is it part of the libata
> sub-system?  I am using only the new libata stuff and have the older generic
> ide stuff all as 'NO'.

When the SCSI CD-ROM driver (Linux kernel, file sr.c) calls "int scsi_register_driver(struct device_driver *drv)" (file scsi_sysfs.c) this function then calls "int driver_register(struct device_driver * drv)" (file driver.c). And here this warning message is printed. I assume that there was a clean-up in the kernel and the SCSI subsystem guys have not caught up yet. So this is not really a bug but a temporary annoyance.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-03-15 07:59:19 UTC
This needs to go upstream and not to Gentoo.
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2008-03-16 20:08:02 UTC
Yep. If it bothers you, see if it's fixed in 2.6.25-rc and if not, send a mail to the linux-scsi mailing list. It's not an error message. Thanks for reporting anyway!
Comment 6 Shane Macaulay 2008-04-08 14:29:28 UTC
A workaround is to enable CONFIG_PM_LEGACY.  My system this bug is much more severe as it causes a panic and the / not to mount.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2008-04-08 14:56:34 UTC
must be a different bug where this harmless and unrelated message appears approximately at the same time, feel feel to open a new bug report
Comment 8 Rahul Jain 2008-07-24 14:26:57 UTC
http://bugzilla.kernel.org/show_bug.cgi?id=9872