2399p6: umount ramfs weirdness / proc/ide/via confused

From: Meino Christian Cramer (mccramer@s.netic.de)
Date: Thu Apr 27 2000 - 02:52:23 EST


Hi!

 Two different errors are to be reported with linux-2.3.99-pre6

 ------------------------------------------------------------------------------------

 First one:
 As configuration I have set:

 CONFIG_BLK_DEV_IDEDMA_PCI=y
 CONFIG_IDEDMA_PCI_AUTO=y
 CONFIG_BLK_DEV_IDEDMA=y
 CONFIG_IDEDMA_PCI_EXPERIMENTAL=y
 CONFIG_BLK_DEV_VIA82CXXX=y
 CONFIG_IDEDMA_AUTO=y
 CONFIG_BLK_DEV_IDE_MODES=y

 While booting I saw:

 Uniform Multi-Platform E-IDE driver Revision: 6.30
 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
 VP_IDE: IDE controller on PCI bus 00 dev 21
 VP_IDE: not 100% native mode: will probe irqs later
 Split FIFO Configuration: 8 Primary buffers, threshold = 1/2
                            8 Second. buffers, threshold = 1/2
     ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio <<<!!!
 ide0: VIA Bus-Master (U)DMA Timing Config Success
     ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:pio, hdd:pio
 ide1: VIA Bus-Master (U)DMA Timing Config Success
 hda: ST313032A, ATA DISK drive
 hdc: Pioneer DVD-ROM ATAPIModel DVD-103S 011, ATAPI CDROM drive
 ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
 ide1 at 0x170-0x177,0x376 on irq 15
 hda: 25434228 sectors (13022 MB) w/512KiB Cache, CHS=25232/16/63
 hdc: ATAPI DVD-ROM drive, 512kB Cache, (U)DMA

 This said me, that /dev/hda is running with DMA enabled...

 Asking hdparm, it said the opposite and transferrates spoke for themselves.
 I included a call to hdparm -d1 (enable DMA) in my boot scripts.

 This works well, but now a `cat /proc/ide/via/` segfaults. Trace is:

 kernel: Oops: 0000
 kernel: CPU: 0
 kernel: EIP: 0010:[vsprintf+442/880]
 kernel: EFLAGS: 00010297
 kernel: eax: f87e016d ebx: c2ede211 ecx: f87e016d edx: fffffffe
 kernel: esi: c3595f34 edi: ffffffff ebp: f87e016d esp: c3595ef4
 kernel: ds: 0018 es: 0018 ss: 0018
 kernel: Process cat (pid: 494, stackpage=c3595000)
 kernel: Stack: c024b2a5 c024b2a9 c2ede1fa c3595f4f c3595f14 c01af60e ffffffff 00000000
 kernel: c0219894 c2ede1fa c024b398 c3595f30 c01af63d c2ede1fa c024b380 f87e016d
 kernel: f87e016d c2ede000 c2ede162 00000000 c2ede000 c024b680 3aede0d6 c01af97e
 kernel: Call Trace: [ApolloISAChipInfo+853/6096] [ApolloISAChipInfo+857/6096] [print_apollo_ide_config+174/448] [sprintf+20/5432] [ApolloISAChipInfo+1096/6096] [print_apollo_ide_config+221/448] [ApolloISAChipInfo+1072/6096]
 kernel: [<f87e016d>] [<f87e016d>] [ApolloISAChipInfo+1840/6096] [via_get_info+78/144] [proc_file_read+263/544] [sys_read+192/224] [system_call+52/56]
 kernel: Code: 80 38 00 74 07 40 4a 83 fa ff 75 f4 29 c8 89 44 24 10 8b 44
 

 This works before (without using hdparm)....

 ------------------------------------------------------------------------------------

 Secondly:
 (this one is really myterious...I think)

 Rebooting -- especially unmounting -- works well as long as I DO NOT the following:

 mount -t ramfs ramfs ./ramfs
 cd ./ramfs
 chown <username>.<username> .
 cp <some files> .
 rm -rf *
 cd ~

 after this, unmounting any partitions while rebooting end up in "device busy"
 and umounting fails (as in one of the previous 2.3.99-preX kernels).

 ONLY using ramfs is ok!!! But changing the ownership kills it.

 My software:
 modprobe version 2.3.11
 mount-2.10k
 glibc-2.1.3
 linux-2.3.99-pre6
 GNU ld version 2.9.5 (with BFD 2.9.5.0.37)

 My hardware:
 128MB RAM
 ASUS K7M motherboard
 Athlon 600MHz
  

 Please mail me, if I can help or give more infos.... :-)

 

 KEEP HACKING!
 Meino

--

--------------------------------------------------------------------------
Anyone sending unwanted advertising e-mail to this address will be charged
$25 for network traffic and computing time. By extracting my address from
this message or its header, you agree to these terms.
--------------------------------------------------------------------------

FBI CIA NSA IRS ATF BATF DOD WACO RUBY RIDGE OKC OKLAHOMA CITY MILITIA GUN
HANDGUN MILGOV ASSAULT RIFLE TERRORISM BOMB DRUG HORIUCHI KORESH DAVIDIAN KAHL
POSSE COMITATUS RANDY WEAVER VICKIE WEAVER SPECIAL FORCES LINDA THOMPSON SPECIAL
OPERATIONS GROUP SOG SOF DELTA FORCE CONSTITUTION BILL OF RIGHTS WHITEWATER POM
PARK ON METER ARKANSIDE IRAN CONTRAS OLIVER NORTH VINCE FOSTER PROMIS MOSSAD
NASA MI5 ONI CID AK47 M16 C4 MALCOLM X REVOLUTION CHEROKEE HILLARY BILL CLINTON
GORE GEORGE BUSH WACKENHUT TERRORIST TASK FORCE 160 SPECIAL OPS 12TH GROUP 5TH
GROUP SF

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:12 EST