Summary: | sys-apps/sdparm-0.94 is broken on AMD64 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joshua Hoblitt <j_gentoo> |
Component: | Current packages | Assignee: | Joshua Kinard <kumba> |
Status: | VERIFIED TEST-REQUEST | ||
Severity: | normal | CC: | amd64 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Joshua Hoblitt
2005-08-21 16:23:30 UTC
Works for me: (on amd64 too) aw ~ # sdparm --all /dev/sda /dev/sda: ATA ST3300831AS 3.01 Read write error recovery mode page: AWRE 1 [ sav: 1] ARRE 1 [ sav: 1] TB 0 [ sav: 0] RC 0 [ sav: 0] EER 0 [ sav: 0] PER 0 [ sav: 0] DTE 0 [ sav: 0] DCR 0 [ sav: 0] RRC 0 [ sav: 0] WRC 0 [ sav: 0] RTL 0 [ sav: 0] Caching (SBC) mode page: IC 0 [ sav: 0] ABPF 0 [ sav: 0] CAP 0 [ sav: 0] DISC 0 [ sav: 0] SIZE 0 [ sav: 0] WCE 1 [ sav: 1] MF 0 [ sav: 0] RCD 0 [ sav: 0] DRRP 0 [ sav: 0] WRP 0 [ sav: 0] DPTL 0 [ sav: 0] MIPF 0 [ sav: 0] MAPF 0 [ sav: 0] MAPFC 0 [ sav: 0] FSW 0 [ sav: 0] LBCSS 0 [ sav: 0] DRA 0 [ sav: 0] NV_DIS 0 [ sav: 0] NCS 0 [ sav: 0] CSS 0 [ sav: 0] Control mode page: TST 0 [ sav: 0] TMF_ONLY 0 [ sav: 0] D_SENSE 1 [ sav: 1] GLTSD 1 [ sav: 1] RLEC 0 [ sav: 0] QAM 0 [ sav: 0] QERR 0 [ sav: 0] RAC 0 [ sav: 0] UA_INTLCK 0 [ sav: 0] SWP 0 [ sav: 0] ATO 0 [ sav: 0] TAS 0 [ sav: 0] AUTOLOAD 0 [ sav: 0] BTP -1 [ sav: -1] ESTCT 30 [ sav: 30] Allan, can you post your `emerge info`? Also works here. darktama@disoft-dc ~ $ emerge info Portage 2.0.51.22-r2 (!/usr/portage/profiles/default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-rc6 x86_64) ================================================================= System uname: 2.6.13-rc6 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.0_pre6 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O3 -pipe" DISTDIR="/home/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks multilib-strict sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.iinet.net.au/pub/Gentoo/ http://mirror.pacific.net.au/linux/Gentoo/" LINGUAS="en de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/home/portage" PORTDIR_OVERLAY="/usr/local/overlays/scratch /usr/local/overlays/gnome_2_11" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="amd64 3dnowex X a52 aac aalib acl acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts bonobo bzlib cairo calendar cdparanoia cdr crypt cups curl dbus dlloader dri dvd dvdr dvdread eds encode esd exif expat fam fbcon ffmpeg flac foomaticdb fortran ftp gd gif glitz glut gnome gpm gstreamer gtk gtk2 guile hal imagemagick imlib inotify ipv6 ithreads jack java javascript jikes jpeg junit kde kerberos krb4 lcms ldap libwww lm_sensors lzw lzw-tiff mad mmap mng mono motif mozilla mp3 mpeg mpi msn mysql ncurses nls nocd nptl nptlonly nvidia offensive ogg oggvorbis openal opengl oss pam pdflib perl png python qt quicktime readline recode samba sasl sdl session speex spell sqlite ssl subversion sysvipc szip tcltk tcpd theora threads tiff truetype truetype-fonts type1 type1-fonts unicode usb userlocales vcd videos vorbis wmf wxwindows xine xinerama xml xml2 xmms xosd xpm xprint xsl xv xvid xvmc yahoo zlib linguas_en linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS It looks to me like sdparm is spitting out invalid areas in memory...sounds like bad code somewheres, maybe. I'll fire an email to the upstream maintainer for info. Joshua: could you do a few things: 1) Gather the following information about your /dev/sda drive from these locations: * cat /proc/scsi/scsi * dmesg * /var/log/messages 2) Past the info into a comment or attach it as a file if the output is too big. 3) Try the sdparm-0.95 beta here and see if it causes the same problems from http://sg.torque.net/sg/sdparm.html I thought I had stated this but it looks like I left it out of the original bug report. This is a 3Ware SATA controller. I don't expect sdparm to be able to set any parameters on it but I don't expect it to spew garbage either. Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: 3ware Model: Logical Disk 0 Rev: 1.2 Type: Direct-Access ANSI SCSI revision: ffffffff 3ware Storage Controller device driver for Linux v1.26.02.001. ACPI: PCI Interrupt 0000:01:04.0[A] -> GSI 16 (level, low) -> IRQ 16 scsi0 : 3ware Storage Controller 3w-xxxx: scsi0: Found a 3ware Storage Controller at 0xa880, IRQ: 16. Vendor: 3ware Model: Logical Disk 0 Rev: 1.2 Type: Direct-Access ANSI SCSI revision: 00 3ware 9000 Storage Controller device driver for Linux v2.26.02.002. SCSI device sda: 488395120 512-byte hdwr sectors (250058 MB) SCSI device sda: drive cache: write back SCSI device sda: 488395120 512-byte hdwr sectors (250058 MB) SCSI device sda: drive cache: write back /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 Joshua, I just added 0.95 to CVS, so it should sync out to the mirrors shortly. Try that on your box and see if it solves the problem. Communicating with the sdparm author, he added some defensive code to the region in sdparm which may be triggering this particular issue. This is is resolved as of at least v1.01 if not earlier. Sorry for taking 2 years to test this, I wasn't CC'd on the last comment. |