Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77620 - VIA sata driver in kernel gentoo-dev-sources doesn't flush disk buffers on reboot
Summary: VIA sata driver in kernel gentoo-dev-sources doesn't flush disk buffers on re...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-11 19:42 UTC by Ricardo Correia
Modified: 2005-01-17 16:28 UTC (History)
0 users

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


Attachments
Kernel .config (config,28.49 KB, text/plain)
2005-01-11 19:45 UTC, Ricardo Correia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Correia 2005-01-11 19:42:16 UTC
Sometimes, when I reboot, I notice the following messages on boot:

Starting XFS recovery on filesystem: sda2 (dev: sda2)
Ending XFS recovery on filesystem: sda2 (dev: sda2)

This happens even with a clean shutdown, so it seems the driver is not flushing buffers to disk on shutdown. The system is otherwise very stable, no problems whatsoever.
Never noticed any disk corruption while running, but xfs_check/xfs_repair does find some errors when I run it with a LiveCD (but I never lost any important files).
Curiously, the same thing was happening in Windows XP Pro, but I think it's fixed now.


Reproducible: Sometimes
Steps to Reproduce:
1. Reboot
2. Wait
3. Voil
Comment 1 Ricardo Correia 2005-01-11 19:42:16 UTC
Sometimes, when I reboot, I notice the following messages on boot:

Starting XFS recovery on filesystem: sda2 (dev: sda2)
Ending XFS recovery on filesystem: sda2 (dev: sda2)

This happens even with a clean shutdown, so it seems the driver is not flushing buffers to disk on shutdown. The system is otherwise very stable, no problems whatsoever.
Never noticed any disk corruption while running, but xfs_check/xfs_repair does find some errors when I run it with a LiveCD (but I never lost any important files).
Curiously, the same thing was happening in Windows XP Pro, but I think it's fixed now.


Reproducible: Sometimes
Steps to Reproduce:
1. Reboot
2. Wait
3. Voilà

Actual Results:  
Starting XFS recovery on filesystem: sda2 (dev: sda2)
Ending XFS recovery on filesystem: sda2 (dev: sda2)


Expected Results:  
XFS mounting filesystem sda2
Ending clean XFS mount for filesystem: sda2


My current kernel is gentoo-dev-sources-2.6.9-r12 in x86_64 mode, the system
board is an Asus K8V SE Deluxe with a VIA chipset (running latest BIOS), cpu is
an AMD Athlon 64 3000+, the SATA disk is a Seagate Barracuda 120 GB.
The driver is compiled in the kernel, it is not in module.

emerge info output:

wizy root # emerge info
PORTAGE_GPG_DIR is invalid. Removing gpg from FEATURES.
PORTAGE_GPG_DIR is invalid. Removing gpg from FEATURES.
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r12 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r12 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks gpg sandbox strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 2 X aac aalib acpi adns alsa apache2 arts audiofile avi berkdb
bitmap-fonts bzlib cdparanoia cdr crypt cups curl dga divx4linux dvd dvdr
dvdread edl emul-linux-x86 encode ex exif f77 fastcgi flac fortran ftp gd gdbm
gif gmp gnutls gphoto2 gpm gtk gtk2 hotplug icq imagemagick imap imlib ipv6
jabber java javascript jp2 jpeg kde lesstif libwww lirc live lzo lzw lzw-tiff
mad maildir maildrop mbox md5sum mikmod mime mmap mng motif mozilla mp3 mpeg msn
multilib ncurses nptl ntlm nut offensive oggvorbis openal opengl oscar oss pam
pdflib php plotutils png postgres ppds python qt quicktime readline real remote
rtc samba sasl scanner sdl slang slp sockets socks5 ssl stats svg tcltk theora
tiff timidity transcode truetype truetype-fonts type1-fonts unicode uptimed usb
userlocalesv4l v4l2 wmf wxwindows xine xinerama xml xml2 xmms xosd xpm xrandr xv
xvid zlib"
Comment 2 Ricardo Correia 2005-01-11 19:45:29 UTC
Created attachment 48268 [details]
Kernel .config
Comment 3 Ricardo Correia 2005-01-12 11:12:57 UTC
Just a link to a similar report with a fix for Win XP:

http://forums.viaarena.com/messageview.cfm?catid=15&threadid=53400

Apparently this fixes the problem in Windows by adding a 10 second delay on shutdown.

It would be great to have a patch that produces the same effect in Linux, even if there's a better way to fix it..
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-01-12 15:57:08 UTC
Could you please test with 2.6.10?
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-01-13 10:15:33 UTC
2.6.11-rc1 may also be worth testing
Comment 6 Ricardo Correia 2005-01-16 17:21:55 UTC
I'm using gentoo-dev-sources-2.6.10-r5 now. So far I only rebooted once with the new kernel, and there was no problem. That doesn't necessarily mean it's fixed, of course.

Unfortunately, I can't reboot more often, but when/if the problem shows up again, I'll let you know.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2005-01-17 16:28:03 UTC
Ok, thanks. Please reopen if you get the issue again and I'll tell you what you can do next.