mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* nvidia pata driver hangs on fsync
@ 2011-01-08 11:22 Thomas Richter
  0 siblings, 0 replies; only message in thread
From: Thomas Richter @ 2011-01-08 11:22 UTC (permalink / raw)
  To: linux-kernel; +Cc: Alan Cox

Hi folks,

this is a bug report on drivers/ata/pata_amd.c for at least the kernel 
versions 2.6.32.27 and 2.6.35.10. It might affect other kernels.

Configuration is as follows:

Asus M2N-SLI board with Nforce4 chipset. lspci reports the following:

00:00.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a1)
00:01.0 ISA bridge: nVidia Corporation MCP55 LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation MCP55 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation MCP55 USB Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation MCP55 USB Controller (rev a2)
00:04.0 IDE interface: nVidia Corporation MCP55 IDE (rev a1)
00:05.0 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
00:05.1 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
00:05.2 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a2)
00:06.0 PCI bridge: nVidia Corporation MCP55 PCI bridge (rev a2)
00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio 
(rev a2)
00:08.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a2)
00:09.0 Bridge: nVidia Corporation MCP55 Ethernet (rev a2)
00:0e.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a2)
00:0f.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Miscellaneous Control
01:06.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
01:06.1 Input device controller: Creative Labs SB Live! Game Port (rev 07)
01:07.0 Parallel controller: Timedia Technology Co Ltd Device 7268 (rev 01)
01:08.0 SCSI storage controller: Tekram Technology Co.,Ltd. TRM-S1040 
(rev 01)
01:0b.0 FireWire (IEEE 1394): Texas Instruments TSB43AB22/A 
IEEE-1394a-2000 Controller (PHY/Link)
03:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600 
GT] (rev a2)


Two CD/DVD/DVD-RAM drivers (master/slave) are connected to the PATA 
interface of the chipset and accessed via udma2 according to hdparm.
The PATA interface is accessed through drivers/ata/pata_amd.c.

Problem:

mke2fs hangs reliably on formatting a filing system on DVD-RAM(!), for 
either drive. Specifically, running mke2fs through strace shows that the 
writes and seeks go to the drive fine, but after writing inode 
information, mke2fs issues an fsync, and in that fsync the driver just 
hangs. The drives show no further activity, and the system must be 
rebooted to regain access. The issued command is:

mke2fs -t ext2 -b 2048 /dev/srX with X = 0 or 1 (hangs for master or 
slave, always reproducible)

The problem does not appear with the legacy IDE driver, i.e. through 
drivers/ide/amd74xx.c on which the cdroms work correctly and mke2fs 
works fine. Drives are here also configured for udma2:
/dev/hda:

ATAPI CD-ROM, with removable media
         Model Number:       _NEC DVD_RW ND-4571A
         Serial Number:
         Firmware Revision:  1-01
Standards:
         Likely used CD-ROM ATAPI-1
Configuration:
         DRQ response: 3ms.
         Packet size: 12 bytes
Capabilities:
         LBA, IORDY(cannot be disabled)
         DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2
              Cycle time: min=120ns recommended=120ns
         PIO: pio0 pio1 pio2 pio3 pio4
              Cycle time: no flow control=120ns  IORDY flow control=120ns

ATAPI CD-ROM, with removable media
         Model Number:       HL-DT-ST DVDRAM GSA-4040B
         Serial Number:      K2938AC0452
         Firmware Revision:  A304
Standards:
         Likely used CD-ROM ATAPI-1
Configuration:
         DRQ response: 50us.
         Packet size: 12 bytes
Capabilities:
         LBA, IORDY(can be disabled)
         DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2
              Cycle time: min=120ns recommended=120ns
         PIO: pio0 pio1 pio2 pio3 pio4
              Cycle time: no flow control=120ns  IORDY flow control=120ns
HW reset results:
         CBLID- above Vih
         Device num = 1

Greetings,

Thomas Richter


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-08 11:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-08 11:22 nvidia pata driver hangs on fsync Thomas Richter

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®