[ELDK] TQM5200: IDE not in UDMA mode, hdparm not working

Marc Scherer marc.scherer at mp-ndt.de
Wed Aug 10 13:11:30 CEST 2011

Is it possible to use the IDE-Interface in UDMA2 mode with the TQM5200?

We have a Debian Lenny running on a TQM5200 on a STK52xx with a
Denx-Linux-Kernel 2.6.33 in the Denx default configuration (make
52xx/tqm5200_defconfig). We can do hdparm -I or hdparm -i (output see below)

However, all hdparm commands like

hdparm -d /dev/sda

fail with

 HDIO_GET_DMA failed: Inappropriate ioctl for device

In general, it is impossible to set anything, there is always the error
"Inappropriate ioctl for device".

Is this a kernel config issue, or a mismatch Denx-Kernel /
Debian-hdparm, or is it just not possible with the TQM5200?

Thank you for any comments,
Marc Scherer

Here is the output of the info commands:

hdparm -i /dev/sda


 Model=WDC WD1600BEVE-00A0HT0, FwRev=11.01A11, SerialNo=WD-WXS1E10KKJ69
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
 BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=off
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=312581808
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio3 pio4
 DMA modes:  mdma0 mdma1 *mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5
 AdvancedPM=yes: unknown setting WriteCache=enabled
 Drive conforms to: Unspecified:  ATA/ATAPI-1,2,3,4,5,6,7

 * signifies the current active mode

hdparm -I /dev/sda


ATA device, with non-removable media
	Model Number:       WDC WD1600BEVE-00A0HT0
	Serial Number:      WD-WXS1E10KKJ69
	Firmware Revision:  11.01A11
	Transport:          Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5
	Supported: 8 7 6 5
	Likely used: 8
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors:  312581808
	Logical/Physical Sector size:           512 bytes
	device size with M = 1024*1024:      152627 MBytes
	device size with M = 1000*1000:      160041 MBytes (160 GB)
	cache/buffer size  = 8192 KBytes
	Nominal Media Rotation Rate: 5400
	LBA, IORDY(can be disabled)
	Standby timer values: spec'd by Standard, with device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 0
	Advanced power management level: 128
	Recommended acoustic management value: 128, current value: 254
	DMA: mdma0 mdma1 *mdma2 udma0 udma1 udma2 udma3 udma4 udma5
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
	Enabled	Supported:
	   *	SMART feature set
	    	Security Mode feature set
	   *	Power Management feature set
	   *	Write cache
	   *	Look-ahead
	   *	Host Protected Area feature set
	   *	WRITE_BUFFER command
	   *	READ_BUFFER command
	   *	NOP cmd
	   *	Advanced Power Management feature set
	    	SET_MAX security extension
	    	Automatic Acoustic Management feature set
	   *	48-bit Address feature set
	   *	Device Configuration Overlay feature set
	   *	Mandatory FLUSH_CACHE
	   *	SMART error logging
	   *	SMART self-test
	   *	General Purpose Logging feature set
	   *	64-bit World wide name
	   *	SMART Command Transport (SCT) feature set
	   *	SCT Long Sector Access (AC1)
	   *	SCT LBA Segment Access (AC2)
	   *	SCT Features Control (AC4)
	   *	SCT Data Tables (AC5)
	    	unknown 206[13] (vendor specific)
	Master password revision code = 65534
	not	enabled
	not	locked
	not	frozen
	not	expired: security count
		supported: enhanced erase
Logical Unit WWN Device Identifier: 50014ee2aed95cda
	NAA		: 5
	IEEE OUI	: 0014ee
	Unique ID	: 2aed95cda
HW reset results:
	CBLID- below Vih
	Device num = 0 determined by the jumper
Checksum: correct

More information about the eldk mailing list