IDE problem in 2.4.21-pre1 --> pre5
G'day all,
Just upgraded a system I am developing from 2.4.20 to 2.4.21-preX and noticed this 20 second hang with ide on bootup.
I am loading a system from a CF card using 2.4.19 as a bootstrap using two kernel monte to load the new kernel off the filesystem.
With 2.4.20 this was smooth and quick, with the new ide in 2.4.21-pre
it hangs for about 20 seconds while detecting the flash disk. It proceeds fine from here after resetting the interface, but it never used to do this. I have tried most combinations of config settings, and cmdline settings like ide=nodma hda=autotune hda=flash and whaterver else I could find in ide.c that looked like a likley suspect. Also tried with use Multimode by default and DMA by default.
Hardware is VIA EPIA800 Mini-ITX board with a homebrew ide-CF adapter. This has not been an issue previously.
Kernels 2.4.21-pre1 --> pre5 all behave the same.
dmesg snip and .config | grep ^[C] follow.
==================
Uniform Multi-Platform E-IDE driver Revision: 7.00beta-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hda: APACER_CF_32MB, CFA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: lost interrupt
hda: task_no_data_intr: status=0x58 { DriveReady SeekComplete DataRequest }
hda: 62976 sectors (32 MB) w/1KiB Cache, CHS=123/16/32 Partition check:
hda:hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
hda: drive not ready for command
hda1 hda2
NET4: Linux TCP/IP 1.0 for NET4.0
==================
CONFIG_X86=yCONFIG_UID16=yCONFIG_EXPERIMENTAL=yCONFIG_MODULES=yCONFIG_M486=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_L1_CACHE_SHIFT=4CONFIG_X86_USE_STRING_486=yCONFIG_X86_ALIGNMENT_16=yCONFIG_X86_PPRO_FENCE=yCONFIG_NOHIGHMEM=yCONFIG_MTRR=yCONFIG_NET=yCONFIG_PCI=yCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_ISA=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_KCORE_ELF=yCONFIG_BINFMT_ELF=yCONFIG_PM=yCONFIG_APM=yCONFIG_APM_DO_ENABLE=yCONFIG_APM_CPU_IDLE=yCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_SIZE=4096CONFIG_BLK_DEV_INITRD=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IDE=yCONFIG_BLK_DEV_IDE=yCONFIG_BLK_DEV_IDEDISK=yCONFIG_BLK_DEV_IDEPCI=yCONFIG_BLK_DEV_GENERIC=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_BLK_DEV_ADMA=yCONFIG_BLK_DEV_IDE_MODES=yCONFIG_NETDEVICES=yCONFIG_DUMMY=mCONFIG_NET_ETHERNET=yCONFIG_NET_VENDOR_3COM=yCONFIG_VORTEX=mCONFIG_NET_ISA=yCONFIG_NE2000=mCONFIG_NET_PCI=yCONFIG_TULIP=mCONFIG_EEPRO100=mCONFIG_NE2K_PCI=mCONFIG_VIA_RHINE=mCONFIG_NET_RADIO=yCONFIG_NET_WIRELESS=yCONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_SERIAL=yCONFIG_SERIAL_EXTENDED=yCONFIG_SERIAL_MANY_PORTS=yCONFIG_SERIAL_SHARE_IRQ=yCONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256CONFIG_I2C=mCONFIG_I2C_PROC=mCONFIG_MOUSE=yCONFIG_PSMOUSE=yCONFIG_RTC=yCONFIG_FAT_FS=yCONFIG_VFAT_FS=yCONFIG_TMPFS=yCONFIG_RAMFS=yCONFIG_PROC_FS=yCONFIG_DEVPTS_FS=yCONFIG_EXT2_FS=yCONFIG_MSDOS_PARTITION=yCONFIG_NLS=yCONFIG_NLS_DEFAULT="cp437"CONFIG_VGA_CONSOLE=yCONFIG_VIDEO_SELECT=yCONFIG_USB=mCONFIG_USB_UHCI=mCONFIG_USB_SERIAL=mCONFIG_USB_SERIAL_GENERIC=yCONFIG_USB_SERIAL_FTDI_SIO=m
Signature · 5 lines
Brad.... /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
Re: IDE problem in 2.4.21-pre1 --> pre6
Quoted 4 lines · Brad Campbell
G'day all,
Just upgraded a system I am developing from 2.4.20 to 2.4.21-preX and noticed this 20 second hang with ide on bootup.
Problem still exists in -pre6 (released about an hour before my previous E-mail)
I also tried ide0=reset to reset the ide bus in case the 2.4.19 kernel had left it in some strange state. Tried with the VIA driver compiled in also.. No joy..
Included hdparm -i /dev/hda ; hdparm -I /dev/hda and /proc/pci below.
/home/service # hdparm -i /dev/hda
/dev/hda:
Model=APACER_CF_32MB, FwRev=verB.65, SerialNo=02-86912507 Config={ HardSect NotMFM Removeable DTR>10Mbs nonMagnetic } RawCHS=123/16/32, TrkSize=16384, SectSize=512, ECCbytes=4 BuffType=DualPort, BuffSize=1kB, MaxMultSect=1, MultSect=off CurCHS=123/16/32, CurSects=62976, LBA=yes, LBAsects=62976 IORDY=no
PIO modes: pio0 pio1 pio2
AdvancedPM=no
/home/service # hdparm -I /dev/hda
/dev/hda:
CompactFlash ATA device, with removable media
Model Number: APACER_CF_32MB
Serial Number: 02-86912507
Firmware Revision: verB.65
Standards:
Likely used: 4
Configuration:
Logical max current
cylinders 123 123
heads 16 16
sectors/track 32 32
--
bytes/track: 16384 bytes/sector: 512
CHS current addressable sectors: 62976
LBA user addressable sectors: 62976
device size with M = 1024*1024: 30 MBytes
device size with M = 1000*1000: 32 MBytesCapabilities:
LBA, IORDY(may be)(cannot be disabled)
Buffer size: 1.0kB bytes avail on r/w long: 4 Queue
depth: 1
Standby timer values: spec'd by Vendor
R/W multiple sector transfer: Max = 1 Current = 0
DMA: not supported
PIO: pio0 pio1 pio2
/home/service # cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Host bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia] (rev 5).
Master Capable. Latency=8.
Prefetchable 32 bit memory at 0xd0000000 [0xdfffffff].
Bus 0, device 1, function 0:
PCI bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia AGP]
(rev 0).
Master Capable. No bursts. Min Gnt=12.
Bus 0, device 17, function 0:
ISA bridge: VIA Technologies, Inc. VT8231 [PCI-to-ISA Bridge] (rev 16).
Bus 0, device 17, function 1:
IDE interface: VIA Technologies, Inc. VT82C586B PIPC Bus Master IDE
(rev 6).
Master Capable. Latency=32.
I/O at 0xd000 [0xd00f].
Bus 0, device 17, function 2:
USB Controller: VIA Technologies, Inc. USB (rev 30).
IRQ 3.
Master Capable. Latency=32.
I/O at 0xd400 [0xd41f].
Bus 0, device 17, function 3:
USB Controller: VIA Technologies, Inc. USB (#2) (rev 30).
IRQ 3.
Master Capable. Latency=32.
I/O at 0xd800 [0xd81f].
Bus 0, device 17, function 4:
Bridge: VIA Technologies, Inc. VT8235 ACPI (rev 16).
Bus 0, device 17, function 5:
Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97
Audio Controller (rev 64).
IRQ 10.
I/O at 0xdc00 [0xdcff].
I/O at 0xe000 [0xe003].
I/O at 0xe400 [0xe403].
Bus 0, device 18, function 0:
Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 81).
IRQ 11.
Master Capable. Latency=32. Min Gnt=3.Max Lat=8.
I/O at 0xe800 [0xe8ff].
Non-prefetchable 32 bit memory at 0xe3000000 [0xe30000ff].
Bus 0, device 20, function 0:
Serial controller: Timedia Technology Co Ltd PCI2S550 (Dual 16550
UART) (rev 1).
IRQ 5.
I/O at 0xec00 [0xec1f].
Bus 1, device 0, function 0:
VGA compatible controller: Trident Microsystems CyberBlade/i1 (rev
106).
IRQ 11.
Master Capable. Latency=32.
Non-prefetchable 32 bit memory at 0xe1800000 [0xe1ffffff].
Non-prefetchable 32 bit memory at 0xe2000000 [0xe201ffff].
Non-prefetchable 32 bit memory at 0xe1000000 [0xe17fffff].Signature · 5 lines
Brad.... /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \