* problems with pata_via, hangs after random time
@ 2011-11-10 12:47 Santiago Garcia Mantinan
2011-11-10 13:06 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: Santiago Garcia Mantinan @ 2011-11-10 12:47 UTC (permalink / raw)
To: linux-kernel
Hi!
As kernel 3.1.0 was released I decided to switch from legacy IDE drivers to
the new ones, thus activating CONFIG_PATA_VIA=y on my config and turning off
all the old IDE drivers, those where the only things I touched on my config.
The result was a 1 day uptime and then a total freeze with even the keyboard
not responding and the HD led on all the time. Then I rebooted the machine
and started to search for problems with pata_via and saw a few people
complaining about hangs on both fedora, ubuntu and red hat but everything
was old (early 2.6.30's) and they had not found the root of the problem,
even though some sugestions said that it was due to HPET but I don't have it
enabled.
Today, after an uptime of almost 15 days I got the second hang, again
everything dead with the keyboard not responding, the screen again showed
normal condition, no kernel messages or anything and again the led was on
all the time, again, I have just rebooted it.
Computer is a PIII 1Ghz with a via based motherboard with this ide chip:
00:07.1 0101: 1106:0571 (rev 10) (prog-if 8a [Master SecP PriP])
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 10) (prog-if 8a [Master SecP PriP])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32
Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
Region 4: I/O ports at e400 [size=16]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: pata_via
Right now for the first time as I switched to run lspci I got this error:
ata2: lost interrupt (Status 0x50)
ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
ata2.00: cmd ca/00:80:3f:9c:fe/00:00:00:00:00/e0 tag 0 dma 65536 out
res 40/00:00:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2: soft resetting link
ata2.00: configured for UDMA/66
ata2.00: device reported invalid CHS sector 0
ata2: EH complete
I had never seen this error before and running a grep on all logs looking for
"lost interrupt" only returned this error, no prior ones.
I'm thinking of this problems as via_pata based because of my changes on the
config, but I really don't know if this is the case or if the hardware is
starting to fail, so maybe the best thing to do for now is to go back to the
old IDE drivers and seek high uptimes there and if everything is ok then go
back to try to debug this, as we don't have much info right now.
I'm waiting for comments on what to do with this.
Regards...
--
Manty/BestiaTester -> http://manty.net
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: problems with pata_via, hangs after random time
2011-11-10 12:47 problems with pata_via, hangs after random time Santiago Garcia Mantinan
@ 2011-11-10 13:06 ` Alan Cox
2011-12-09 14:08 ` Santiago Garcia Mantinan
0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2011-11-10 13:06 UTC (permalink / raw)
To: Santiago Garcia Mantinan; +Cc: linux-kernel
> I'm thinking of this problems as via_pata based because of my changes on the
> config, but I really don't know if this is the case or if the hardware is
> starting to fail, so maybe the best thing to do for now is to go back to the
> old IDE drivers and seek high uptimes there and if everything is ok then go
> back to try to debug this, as we don't have much info right now.
I think it would be useful to see if it runs solidly with the exact same
configuration but the old IDE driver. The error dump you have is bizarre
to say the least so it'd hard to guess what is going on.
If it is reliable with the other drive then we can start doing close
comparisons of register settings and the like
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problems with pata_via, hangs after random time
2011-11-10 13:06 ` Alan Cox
@ 2011-12-09 14:08 ` Santiago Garcia Mantinan
0 siblings, 0 replies; 3+ messages in thread
From: Santiago Garcia Mantinan @ 2011-12-09 14:08 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
Hi!
I've been running the machine solidly for almost a month until today
it was turned off because of a power loss, the machine not to blame
this is my last recorded uptime:
28 days, 09:04:22 | Linux 3.1.0 Fri Nov 11 01:20:03 2011
> I think it would be useful to see if it runs solidly with the exact same
> configuration but the old IDE driver. The error dump you have is bizarre
> to say the least so it'd hard to guess what is going on.
This is the diff, config.vip.new is the "new" kernel, the one with the
new ata drivers and .config is the one I used for the last 28 days to
see if it could run stable, as you can see, the only thing I changed
was that I removed the new ata drivers to get back to the old ide
ones.
--- ../config.vip.new 2011-10-25 00:07:43.327519334 +0200
+++ .config 2011-11-11 00:49:32.070988433 +0100
@@ -677,7 +677,83 @@
# CONFIG_SENSORS_LIS3LV02D is not set
# CONFIG_MISC_DEVICES is not set
CONFIG_HAVE_IDE=y
-# CONFIG_IDE is not set
+CONFIG_IDE=y
+
+#
+# Please see Documentation/ide/ide.txt for help/info on IDE drives
+#
+CONFIG_IDE_XFER_MODE=y
+CONFIG_IDE_TIMINGS=y
+CONFIG_IDE_ATAPI=y
+# CONFIG_BLK_DEV_IDE_SATA is not set
+CONFIG_IDE_GD=y
+CONFIG_IDE_GD_ATA=y
+# CONFIG_IDE_GD_ATAPI is not set
+CONFIG_BLK_DEV_IDECD=y
+CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y
+# CONFIG_BLK_DEV_IDETAPE is not set
+# CONFIG_BLK_DEV_IDEACPI is not set
+# CONFIG_IDE_TASK_IOCTL is not set
+# CONFIG_IDE_PROC_FS is not set
+
+#
+# IDE chipset support/bugfixes
+#
+# CONFIG_IDE_GENERIC is not set
+# CONFIG_BLK_DEV_PLATFORM is not set
+# CONFIG_BLK_DEV_CMD640 is not set
+# CONFIG_BLK_DEV_IDEPNP is not set
+CONFIG_BLK_DEV_IDEDMA_SFF=y
+
+#
+# PCI IDE chipsets support
+#
+CONFIG_BLK_DEV_IDEPCI=y
+CONFIG_IDEPCI_PCIBUS_ORDER=y
+# CONFIG_BLK_DEV_GENERIC is not set
+# CONFIG_BLK_DEV_RZ1000 is not set
+CONFIG_BLK_DEV_IDEDMA_PCI=y
+# CONFIG_BLK_DEV_AEC62XX is not set
+# CONFIG_BLK_DEV_ALI15X3 is not set
+# CONFIG_BLK_DEV_AMD74XX is not set
+# CONFIG_BLK_DEV_ATIIXP is not set
+# CONFIG_BLK_DEV_CMD64X is not set
+# CONFIG_BLK_DEV_TRIFLEX is not set
+# CONFIG_BLK_DEV_CS5530 is not set
+# CONFIG_BLK_DEV_CS5535 is not set
+# CONFIG_BLK_DEV_CS5536 is not set
+# CONFIG_BLK_DEV_HPT366 is not set
+# CONFIG_BLK_DEV_JMICRON is not set
+# CONFIG_BLK_DEV_SC1200 is not set
+# CONFIG_BLK_DEV_PIIX is not set
+# CONFIG_BLK_DEV_IT8172 is not set
+# CONFIG_BLK_DEV_IT8213 is not set
+# CONFIG_BLK_DEV_IT821X is not set
+# CONFIG_BLK_DEV_NS87415 is not set
+# CONFIG_BLK_DEV_PDC202XX_OLD is not set
+# CONFIG_BLK_DEV_PDC202XX_NEW is not set
+# CONFIG_BLK_DEV_SVWKS is not set
+# CONFIG_BLK_DEV_SIIMAGE is not set
+# CONFIG_BLK_DEV_SIS5513 is not set
+# CONFIG_BLK_DEV_SLC90E66 is not set
+# CONFIG_BLK_DEV_TRM290 is not set
+CONFIG_BLK_DEV_VIA82CXXX=y
+# CONFIG_BLK_DEV_TC86C001 is not set
+
+#
+# Other IDE chipsets support
+#
+
+#
+# Note: most of these also require special kernel boot parameters
+#
+# CONFIG_BLK_DEV_4DRIVES is not set
+# CONFIG_BLK_DEV_ALI14XX is not set
+# CONFIG_BLK_DEV_DTC2278 is not set
+# CONFIG_BLK_DEV_HT6560B is not set
+# CONFIG_BLK_DEV_QD65XX is not set
+# CONFIG_BLK_DEV_UMC8672 is not set
+CONFIG_BLK_DEV_IDEDMA=y
#
# SCSI device support
@@ -717,92 +793,7 @@
# CONFIG_SCSI_LOWLEVEL is not set
# CONFIG_SCSI_DH is not set
# CONFIG_SCSI_OSD_INITIATOR is not set
-CONFIG_ATA=y
-# CONFIG_ATA_NONSTANDARD is not set
-# CONFIG_ATA_VERBOSE_ERROR is not set
-# CONFIG_ATA_ACPI is not set
-# CONFIG_SATA_PMP is not set
-
-#
-# Controllers with non-SFF native interface
-#
-# CONFIG_SATA_AHCI is not set
-# CONFIG_SATA_AHCI_PLATFORM is not set
-# CONFIG_SATA_INIC162X is not set
-# CONFIG_SATA_ACARD_AHCI is not set
-# CONFIG_SATA_SIL24 is not set
-CONFIG_ATA_SFF=y
-
-#
-# SFF controllers with custom DMA interface
-#
-# CONFIG_PDC_ADMA is not set
-# CONFIG_SATA_QSTOR is not set
-CONFIG_ATA_BMDMA=y
-
-#
-# SATA SFF controllers with BMDMA
-#
-# CONFIG_ATA_PIIX is not set
-# CONFIG_SATA_MV is not set
-# CONFIG_SATA_NV is not set
-# CONFIG_SATA_PROMISE is not set
-# CONFIG_SATA_SIL is not set
-# CONFIG_SATA_SIS is not set
-# CONFIG_SATA_SVW is not set
-# CONFIG_SATA_ULI is not set
-# CONFIG_SATA_VIA is not set
-# CONFIG_SATA_VITESSE is not set
-
-#
-# PATA SFF controllers with BMDMA
-#
-# CONFIG_PATA_ALI is not set
-# CONFIG_PATA_AMD is not set
-# CONFIG_PATA_ARTOP is not set
-# CONFIG_PATA_ATIIXP is not set
-# CONFIG_PATA_ATP867X is not set
-# CONFIG_PATA_CMD64X is not set
-# CONFIG_PATA_CS5520 is not set
-# CONFIG_PATA_CS5530 is not set
-# CONFIG_PATA_CS5536 is not set
-# CONFIG_PATA_EFAR is not set
-# CONFIG_PATA_HPT366 is not set
-# CONFIG_PATA_HPT37X is not set
-# CONFIG_PATA_HPT3X2N is not set
-# CONFIG_PATA_HPT3X3 is not set
-# CONFIG_PATA_IT821X is not set
-# CONFIG_PATA_JMICRON is not set
-# CONFIG_PATA_MARVELL is not set
-# CONFIG_PATA_NETCELL is not set
-# CONFIG_PATA_NINJA32 is not set
-# CONFIG_PATA_NS87415 is not set
-# CONFIG_PATA_OLDPIIX is not set
-# CONFIG_PATA_PDC2027X is not set
-# CONFIG_PATA_PDC_OLD is not set
-# CONFIG_PATA_RDC is not set
-# CONFIG_PATA_SC1200 is not set
-# CONFIG_PATA_SCH is not set
-# CONFIG_PATA_SERVERWORKS is not set
-# CONFIG_PATA_SIL680 is not set
-# CONFIG_PATA_SIS is not set
-# CONFIG_PATA_TRIFLEX is not set
-CONFIG_PATA_VIA=y
-# CONFIG_PATA_WINBOND is not set
-
-#
-# PIO-only SFF controllers
-#
-# CONFIG_PATA_ISAPNP is not set
-# CONFIG_PATA_MPIIX is not set
-# CONFIG_PATA_NS87410 is not set
-# CONFIG_PATA_QDI is not set
-# CONFIG_PATA_RZ1000 is not set
-
-#
-# Generic fallback / legacy drivers
-#
-# CONFIG_ATA_GENERIC is not set
+# CONFIG_ATA is not set
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_AUTODETECT=y
> If it is reliable with the other drive then we can start doing close
> comparisons of register settings and the like
Well, I'd say that it was stable, the only weird thing being that it
found out a couple of DMA problems during this time in one of the
disks but it handled them well:
Nov 15 06:54:40 vip kernel: hdc: lost interrupt
Nov 15 06:54:40 vip kernel: hdc: ide_dma_sff_timer_expiry: DMA status (0x21)
Nov 15 06:54:40 vip kernel: hdc: DMA timeout error
Nov 15 06:54:40 vip kernel: hdc: DMA disabled
Nov 15 06:54:40 vip kernel: ide1: reset: success
Nov 15 06:54:40 vip kernel: hdc: ide_dma_sff_timer_expiry: DMA status (0x21)
Nov 15 06:54:40 vip kernel: hdc: DMA timeout error
Nov 15 06:54:40 vip kernel: hdc: DMA disabled
Nov 15 06:54:40 vip kernel: ide1: reset: success
Nov 15 06:54:40 vip kernel: hdc: ide_dma_sff_timer_expiry: DMA status (0x21)
Nov 15 06:54:40 vip kernel: hdc: DMA timeout error
Nov 15 06:54:40 vip kernel: hdc: DMA disabled
Nov 15 06:54:40 vip kernel: ide1: reset: success
Nov 15 06:54:40 vip kernel: hdc: ide_dma_sff_timer_expiry: DMA status (0x21)
Nov 15 06:54:40 vip kernel: hdc: DMA timeout error
Nov 15 06:54:40 vip kernel: hdc: DMA disabled
Nov 15 06:54:40 vip kernel: ide1: reset: success
Nov 27 22:52:34 vip kernel: hdc: lost interrupt
Nov 27 22:52:35 vip kernel: ide1: reset: success
Nov 27 22:53:26 vip kernel: EXT4-fs warning (device md0):
empty_dir:1926: bad directory (dir #35228451) - no `.' or `..'
This last thing was the only problem I found out of all the time, md0
is a software raid0 across both ide disks on which I have among other
things my Debian mirror and things like that, I fscked it, found some
problems with some of the Debian mirror files, some ended up on
lost+found I removed then and mirrored again, that was all.
I don't know what else to add, it looks to me that the old driver did
at least behave better than the new one and that the new one stalls
hanging the machine on some errors where the old one would reset the
disk and continue to work. I can try to gatter the info you tell me to
try to diagnose this and get a better new driver if you want.
I'm still running 3.1.0 if you want me to go for the 3.2 rcs or some
other version just let me know.
Regards...
--
Manty/BestiaTester -> http://manty.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-09 14:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-10 12:47 problems with pata_via, hangs after random time Santiago Garcia Mantinan
2011-11-10 13:06 ` Alan Cox
2011-12-09 14:08 ` Santiago Garcia Mantinan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®