Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336654 - sys-power/pm-utils-1.4.1 causes the kde login to reinitialize the sata port
Summary: sys-power/pm-utils-1.4.1 causes the kde login to reinitialize the sata port
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 22:03 UTC by Bernhard Witte
Modified: 2011-05-27 08:45 UTC (History)
4 users (show)

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 Bernhard Witte 2010-09-09 22:03:33 UTC
after having installed a new gentoo-system to my pc, i recognized the login into kde4 lasting longer than normal. dmesg told me, that the sata controller is being reinitialized. after reinitializing the sata port, the login proceeded as expected a i never had a problem with the sata port being reinitialized again. except logging into kde4 again (user independent). i am using kde-4.4.5 and gentoo-sources-2.6.35-r4.

downgrading to pm-utils-1.3.0-r2 fixed the problem.

Reproducible: Always

Steps to Reproduce:
1. start pc.
2. log into kde4




dmesg excerpt:
--
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
ata1.00: cmd ef/c2:00:00:00:00/00:00:00:00:00/40 tag 0
         res 40/00:fe:00:00:00/00:00:00:00:00/40 Emask 0x4 (timeout)
ata1: hard resetting link
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: configured for UDMA/133
ata1: EH complete
ata1.00: configured for UDMA/133
ata1: EH complete
EXT4-fs (sda3): re-mounted. Opts: commit=0
EXT4-fs (sda4): re-mounted. Opts: commit=0
--
Comment 1 Bernhard Witte 2010-09-09 22:04:12 UTC
   1.
      Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.35-gentoo-r5 i686)
   2.
      =================================================================
   3.
      System uname: Linux-2.6.35-gentoo-r5-i686-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-1.12.13
   4.
      Timestamp of tree: Wed, 08 Sep 2010 21:15:01 +0000
   5.
      app-shells/bash:     4.1_p7
   6.
      dev-java/java-config: 2.1.11
   7.
      dev-lang/python:     2.6.5-r3, 3.1.2-r4
   8.
      dev-util/cmake:      2.8.1-r2
   9.
      sys-apps/baselayout: 1.12.13
  10.
      sys-apps/sandbox:    1.6-r2
  11.
      sys-devel/autoconf:  2.13, 2.65
  12.
      sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
  13.
      sys-devel/binutils:  2.20.1-r1
  14.
      sys-devel/gcc:       4.4.3-r2
  15.
      sys-devel/gcc-config: 1.4.1
  16.
      sys-devel/libtool:   2.2.6b
  17.
      sys-devel/make:      3.81-r2
  18.
      virtual/os-headers:  2.6.30-r1
  19.
      ACCEPT_KEYWORDS="x86"
  20.
      ACCEPT_LICENSE="*"
  21.
      CBUILD="i686-pc-linux-gnu"
  22.
      CFLAGS="-march=native -O2 -pipe"
  23.
      CHOST="i686-pc-linux-gnu"
  24.
      CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
  25.
      CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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"
  26.
      CXXFLAGS="-march=native -O2 -pipe"
  27.
      DISTDIR="/usr/portage/distfiles"
  28.
      FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
  29.
      GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
  30.
      LANG="en_US.utf-8"
  31.
      LC_ALL="en_US.utf-8"
  32.
      LDFLAGS="-Wl,-O1 -Wl,--as-needed"
  33.
      LINGUAS="de en"
  34.
      MAKEOPTS="-j5"
  35.
      PKGDIR="/usr/portage/packages"
  36.
      PORTAGE_CONFIGROOT="/"
  37.
      PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
  38.
      PORTAGE_TMPDIR="/var/tmp"
  39.
      PORTDIR="/usr/portage"
  40.
      SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage/"
  41.
      USE="3dnow 3dnowext X acl alsa bash-completion berkdb bzip2 cjk cli cracklib crypt cups cxx dbus dri dvd encode ffmpeg fortran gdbm gif gnutls gstreamer hal iconv java java6 jpeg jpeg2k ldap mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl phonon php png ppds pppd python qt3support qt4 quicktime readline reflection samba schroedinger sdl session smp sse sse2 ssl ssse3 startup-notification svg symlink sysfs tcpd theora threads thumbnail tiff truetype unicode usb utils v4l2 vdpau vim-syntax vorbis wicd win32codecs wma wma-fixed wmf x264 x86 xcomposite xine xml xorg xpm xvid zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="de en" NETBEANS_MODULES="*" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
  42.
      Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-04-08 18:49:29 UTC
What's the status here, does this still happen?
More important, does it still happen with kde-4.6.2?
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-08 19:01:18 UTC
Yeah it still does so, and we should fix it, Add it to block the stablereq, it is quite annoying but i didnt figure how to solve it.
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-21 15:00:44 UTC
Fixed in 1.4.1-r2.
Comment 5 Matěj Laitl 2011-05-27 08:45:14 UTC
I don't think that the link reset is caused by SATA ALPM - in my tests it is `hdparm -W 0/1` (enabling respectively disabling drive write cache) that causes it and it is rather in power.d/harddrive.

This can be fixed by setting default DRIVE_WRITE_CACHE_{AC,BAT} to empty string in power.d/harddrive - hdparm then just prints current value and it can be still configured by user in /etc/pm/config.d.

(by the way, other defaults in power.d/harddrive also do not seem safe, but that would be another bug)