Re: UPDATE4: ATA/ATAPI driver new version available.
Ladavac Marino mlada...@metropolitan.at writes: [ML] Also, is there any swapping area on that slice? Because if there is and kernel has been told to use it (AFAIR swapon happens even in single user mode) Not unless you run it manually. you have just obliterated the kernel pages (kernel is pageable these days IIRC, at least the data if not the code). It's not, as far as I know. DES -- Dag-Erling Smorgrav - d...@flood.ping.uio.no To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
Hi Soren, New ata driver (cvsup'ed several minutes ago) locks my box solid (only reset button can help). Bug is fully reproducible on my machine (Toshiba Satellite Pro 445). I using the following command: dd if=/dev/zero of=/dev/ad0s2 bs=1024k. It works several minutes then IDE led turns off and box freezes. Interesting that when I looking at systat -vm measures, performance constantly degrades from 3.3MB/s to 2.5MB/s. Bug exist either in single-user and in multi-user mode. Following is relevant dmesg pieces from my dmesg output: --- ad0: TOSHIBA MK1403MAV/D3.06 A ATA-? disk at ata0 as master ad0: 1376MB (2818368 sectors), 2796 cyls, 16 heads, 63 S/T, 512 B/S ad0: piomode=4, dmamode=2, udmamode=-1 ad0: 16 secs/int, 0 depth queue, PIO mode ad0s1: type 0xa5, start 63, end = 1433375, size 1433313 : OK ad0s2: type 0xa5, start 1433376, end = 2818367, size 1384992 : OK Sincerely, Maxim Sobolev ? To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
It seems Maxim Sobolev wrote: New ata driver (cvsup'ed several minutes ago) locks my box solid (only reset but ton can help). Bug is fully reproducible on my machine (Toshiba Satellite Pro 445). I using the following command: dd if=/dev/zero of=/dev/ad0s2 bs=1024k. It works several minutes then IDE led turns off and box freezes. Interesting that when I looking at systat -vm measures, performance constantly degrades from 3.3MB/s to 2.5MB/s. Bug exist either in single-user and in multi-user mode. Following is relevant dmesg pieces from my dmesg output: Hmm, are you sure you want to WRITE all those zeros to your disk ?? However it should not hang before the end of disk is reached that is. Have you tried reading all of the disk instead, does that hang ?? The degradation is probably becuse the transferrate of the disk slows down as you get closer to the center of the disk. Have you anu idea on how much data is transferred ?? how long is it running ?? -Søren To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
RE: UPDATE4: ATA/ATAPI driver new version available.
-Original Message- From: Soren Schmidt [SMTP:s...@freebsd.dk] Sent: Tuesday, March 30, 1999 1:29 PM To: sobo...@altavista.net Cc: curr...@freebsd.org Subject: Re: UPDATE4: ATA/ATAPI driver new version available. It seems Maxim Sobolev wrote: New ata driver (cvsup'ed several minutes ago) locks my box solid (only reset but ton can help). Bug is fully reproducible on my machine (Toshiba Satellite Pro 445). I using the following command: dd if=/dev/zero of=/dev/ad0s2 bs=1024k. It works several minutes then IDE led turns off and box freezes. Interesting that when I looking at systat -vm measures, performance constantly degrades from 3.3MB/s to 2.5MB/s. Bug exist either in single-user and in multi-user mode. Following is relevant dmesg pieces from my dmesg output: Hmm, are you sure you want to WRITE all those zeros to your disk ?? However it should not hang before the end of disk is reached that is. Have you tried reading all of the disk instead, does that hang ?? The degradation is probably becuse the transferrate of the disk slows down as you get closer to the center of the disk. Have you anu idea on how much data is transferred ?? how long is it running ?? [ML] Also, is there any swapping area on that slice? Because if there is and kernel has been told to use it (AFAIR swapon happens even in single user mode) you have just obliterated the kernel pages (kernel is pageable these days IIRC, at least the data if not the code). /Marino -Søren To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
It seems Soren Schmidt wrote: It seems Maxim Sobolev wrote: New ata driver (cvsup'ed several minutes ago) locks my box solid (only reset but ton can help). Bug is fully reproducible on my machine (Toshiba Satellite Pro 445). I using the following command: dd if=/dev/zero of=/dev/ad0s2 bs=1024k. It works several minutes then IDE led turns off and box freezes. Interesting that when I looking at systat -vm measures, performance constantly degrades from 3.3MB/s to 2.5MB/s. Bug exist either in single-user and in multi-user mode. Following is relevant dmesg pieces from my dmesg output: Hmm, are you sure you want to WRITE all those zeros to your disk ?? However it should not hang before the end of disk is reached that is. Have you tried reading all of the disk instead, does that hang ?? The degradation is probably becuse the transferrate of the disk slows down as you get closer to the center of the disk. Have you anu idea on how much data is transferred ?? how long is it running ?? OH, I forgot to ask if you have any powersaving stuff enabled too, as the new driver dont know about that yet, if the disk goes to sleep under its feet it will die, but given access to the disk thats probably not likely... -Søren To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
Dear Soren, Following is answers on your (and other folks) questions concerning hang mentioned above. 1. Yes I have powersaving enabled, but as long as disk being accessed it should not to go sleep. 2. Don't mind why I need to zeroing my disk - leave it as it is. 3. Swapping on this partition was disabled (really it is not swap space it just empty partition). 4. Reading out of this partition working perfectly (dd if=/dev/... of=/dev/null bs=1024k). 5. Hang doesn't depend on partition type - I observed it on 165 (FreeBSD) and on 6 (FAT) partitions. 6. As long I can approximate - system hangs somewhere at the end of partition (I used reading time to approximate it). Sincerely, Maxim Sobolev Soren Schmidt wrote: It seems Soren Schmidt wrote: It seems Maxim Sobolev wrote: New ata driver (cvsup'ed several minutes ago) locks my box solid (only reset but ton can help). Bug is fully reproducible on my machine (Toshiba Satellite Pro 445). I using the following command: dd if=/dev/zero of=/dev/ad0s2 bs=1024k. It works several minutes then IDE led turns off and box freezes. Interesting that when I looking at systat -vm measures, performance constantly degrades from 3.3MB/s to 2.5MB/s. Bug exist either in single-user and in multi-user mode. Following is relevant dmesg pieces from my dmesg output: Hmm, are you sure you want to WRITE all those zeros to your disk ?? However it should not hang before the end of disk is reached that is. Have you tried reading all of the disk instead, does that hang ?? The degradation is probably becuse the transferrate of the disk slows down as you get closer to the center of the disk. Have you anu idea on how much data is transferred ?? how long is it running ?? OH, I forgot to ask if you have any powersaving stuff enabled too, as the new driver dont know about that yet, if the disk goes to sleep under its feet it will die, but given access to the disk thats probably not likely... -S?ren To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
On 30-Mar-99 Soren Schmidt wrote: It seems Maxim Sobolev wrote: New ata driver (cvsup'ed several minutes ago) locks my box solid (only reset but ton can help). Bug is fully reproducible on my machine (Toshiba Satellite Pro 445). I using the following command: dd if=/dev/zero of=/dev/ad0s2 bs=1024k. It works several minutes then IDE led turns off and box freezes. Interesting that when I looking at systat -vm measures, performance constantly degrades from 3.3MB/s to 2.5MB/s. Bug exist either in single-user and in multi-user mode. Following is relevant dmesg pieces from my dmesg output: Hmm, are you sure you want to WRITE all those zeros to your disk ?? However it should not hang before the end of disk is reached that is. Have you tried reading all of the disk instead, does that hang ?? The degradation is probably becuse the transferrate of the disk slows down as you get closer to the center of the disk. Have you anu idea on how much data is transferred ?? how long is it running ?? -Søren To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message I had similar problems in -stable with the old ATA drivers. I was having weird swap errors, so I booted w/o swap and dd'd my swap partitions to check for read or write errors. I could do a dd if=/dev/wd0s3b of=/dev/null fine. But, when I tried a write from /dev/zero (dd if=/dev/zero of=/dev/wd0s3b) it locked up. If I specified the number of blocks to write, including enough blocks for the entire slice, the dd finished without a problem. If I let it figure out how much to write it locked the machine and I had to reset. However, that is with the old drivers on -stable, so I don't think it is your new stuff, Søren. ... Ok, I just checked on a -stable system built from sources dated March 28 and here is what I found: I can read and write from the raw devices (e.g. /dev/rwd0s3b) perfectly fine. I can read from the block devices (e.g. /dev/wd0s3b) fine. If I write to them with a specific count of blocks it works. The only problems are from writing without blockcounts. Here's the output (approx.) dd if=/dev/zero of=/dev/rwd0s3b bs=64k warning /dev/rwd0s3b: data overflows device (or something similar) 1216+0 records in 1216+0 recorsd out 76xx bytes blah blah blah.. dd if=/dev/zero of=/dev/wd0s3b bs=64k Disk activity for a while (i think it actually goes long enough to finish the write), and then the machine locks up. --- John Baldwin jobal...@vt.edu -- http://members.freedomnet.com/~jbaldwin/ PGP Key: http://members.freedomnet.com/~jbaldwin/pgpkey.asc Power Users Use the Power to Serve! - http://www.freebsd.org To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
I had similar problems in -stable with the old ATA drivers. I was having weird swap errors, so I booted w/o swap and dd'd my swap partitions to check for read or write errors. I could do a dd if=/dev/wd0s3b of=/dev/null fine. But, when I tried a write from /dev/zero (dd if=/dev/zero of=/dev/wd0s3b) it locked up. Writing beyond EOF to a buffered disk device hangs both 3.x and -current. The failing writes are retried forever. dd if=/dev/zero of=/dev/wd0s3b bs=64k Disk activity for a while (i think it actually goes long enough to finish the write), and then the machine locks up. The easiest fix is: don't do that. Unbuffered disk devices are slower than buffered ones. Buffered disk devices are only useful for: - mounting on - finding bugs in the buffer cache. Bruce To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
It seems Tugrul Galatali wrote: There seems to be an oopsie with the includes on a system without PCI in ata-dma.c: #include ata.h +#include sys/types.h + #if NATA 0 -#include pci.h #if NPCI 0 +#include pci.h #include sys/param.h #include sys/systm.h #include sys/kernel.h The pci.h should be before the if NPCI or it will never be defined :) My 486 still spits this out tho: [...] ata0 at 0x1f0-0x1f7 irq 14 on isa [...] ad0: WDC AC2850F/28.25E40 ATA-? disk at ata0 as master ad0: 814MB (1667232 sectors), 1654 cyls, 16 heads, 63 S/T, 512 B/S ad0: piomode=3, dmamode=1, udmamode=-1 ad0: 16 secs/int, 0 depth queue, PIO mode changing root device to wd0s1a ad0: invalid primary partition table: no magic changing root device to wd0a ad0: invalid primary partition table: no magic error 22: panic: cannot mount root (2) Hmm, I'll bet the disk doesn't grok the 16 secs/int or the controller doesn't support 32bit transfers... This I really should check for... My PIIX3 box isn't happy with this update either: [...] ata-pci0: Intel PIIX3 IDE controller rev 0x00 on pci0.7.1 ata-pci0: Busmastering DMA supported [...] ata0 at 0x01f0 irq 14 on ata-pci0 [...] ata0: master: settting up WDMA2 mode on PIIX3/4 chip OK ad0: WDC AC22100H/11.09I14 ATA-? disk at ata0 as master ad0: 2014MB (4124736 sectors), 4092 cyls, 16 heads, 63 S/T, 512 B/S ad0: piomode=4, dmamode=2, udmamode=-1 ad0: 16 secs/int, 0 depth queue, DMA mode acd0: HITACHI CDR-8330/0007 CDROM drive at ata0 as slave acd0: drive speed 1779 - 4134KB/sec, 128KB cache acd0: supported read types: CD-R, CD-RW, CD-DA, packet track acd0: Audio: play, 255 volume levels acd0: Mechanism: ejectable tray acd0: Medium: no/blank disc inside, unlocked changing root device to wd0s1a [...] acd0: rezero failed -- Whenever I try to mount my cdrom drive. With or without a cd in there. mount gives me mount: Input/output error You should only get the rezero when you are WRITING to the CD, really wierd... I can't eject the cd tray either after I mount the drive. Its fine after boot but before I attempt to mount something. If you open the device and mount it, the driver will lock the CD in the drive, if something goes wrong it might be stuck in there... Granted I should do something about that too... -Søren To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
Soren Schmidt said: DMA support has been added to the ATA disk driver. This only works on Intel PIIX3/4, Acer Aladdin and Promise controllers. The promise support works without the BIOS on the board, and timing modes are set to support up to UDMA speed. This solves the problems with having more than one promise controller in the same system. Excellent!!! -- John | Never try to teach a pig to sing, dy...@iquest.net | it makes one look stupid jdy...@nc.com | and it irritates the pig. To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
It seems John S. Dyson wrote: Soren Schmidt said: DMA support has been added to the ATA disk driver. This only works on Intel PIIX3/4, Acer Aladdin and Promise controllers. The promise support works without the BIOS on the board, and timing modes are set to support up to UDMA speed. This solves the problems with having more than one promise controller in the same system. Excellent!!! Yeah, except there is a bug in the code that always makes the promise use PIO mode :), fix coming as soon as I get home from work in an hour or so... -Søren To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
UPDATE4: ATA/ATAPI driver new version available.
Fourth update to the new ATA/ATAPI driver: Well, better late than newer, but things has been hectic around here, sorry for the long delay. DMA support has been added to the ATA disk driver. This only works on Intel PIIX3/4, Acer Aladdin and Promise controllers. The promise support works without the BIOS on the board, and timing modes are set to support up to UDMA speed. This solves the problems with having more than one promise controller in the same system. There is support for generic DMA, that might work on other controllers, but now you have been warned :) More chipset specific code will come soon, I have to find testers with the approbiate HW, more on that when I have it ready. The system now uses its own major numbers, please run MAKEDEV with the devices you need (ad?, acd?, afd?, ast?). For now the disk driver will also attach to the old wd major so one can at least boot without this step, but be warned, this will eventually go away. The bootblocks will have to be changed before one can boot directly from an ad device though. Fixed problems: All known hang problems should be solved The probe code has been sligthly changed, this should solve the reports I have lying around (I hope). Hangs when accessing ata atapi device on the same channel simultaniously. A real braino in ata_start caused this, fixed. As usual USE AT YOUR OWN RISK!!, this is still pre alpha level code. Especially the DMA support can hose your disk real bad if anything goes wrong, agaiin you have been warned :) But please tell me how it works for you! Enjoy! -Søren To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
I tried this out just as soon as I saw the announcement! Your driver is really coming along well. I have three basic problems with it: 1. A hard reset is necessary to get the CD-ROM drive to work with acd. wdc0: unit 1 (atapi): NEC CD-ROM DRIVE:285/3.04, removable, dma, iordy wcd0: drive speed 2067KB/sec, 128KB cache wcd0: supported read types: CD-R, CD-DA wcd0: Audio: play, 16 volume levels wcd0: Mechanism: ejectable tray wcd0: Medium: no/blank disc inside, unlocked 2. My LS-120 still has no reliability with the driver, as reads are corrupted extremely often. wdc1: unit 0 (atapi): LS-120 COSM 02 UHD Floppy/0271C09T, removable, iordy wfd0: medium type unknown (no disk) 3. DMA is ineffective with file-system use. I can read from the raw device rad0 at 4.5MB/s with a 1mb block size, but when I use iozone performance is around 2.5MB/s. Mounting wd shouldn't affect that, should it? I used the same device special files to mount as before, with ATA_STATIC being used, and noticed this. Better yet, I'll try this with a corrected fstab then report back. Brian Feldman_ __ ___ ___ ___ gr...@unixhelp.org _ __ ___ | _ ) __| \ http://www.freebsd.org/ _ __ ___ | _ \__ \ |) | FreeBSD: The Power to Serve! _ __ ___ _ |___/___/___/ To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
On Sun, 28 Mar 1999, Brian Feldman wrote: I tried this out just as soon as I saw the announcement! Your driver is really coming along well. I have three basic problems with it: 1. A hard reset is necessary to get the CD-ROM drive to work with acd. wdc0: unit 1 (atapi): NEC CD-ROM DRIVE:285/3.04, removable, dma, iordy wcd0: drive speed 2067KB/sec, 128KB cache wcd0: supported read types: CD-R, CD-DA wcd0: Audio: play, 16 volume levels wcd0: Mechanism: ejectable tray wcd0: Medium: no/blank disc inside, unlocked 2. My LS-120 still has no reliability with the driver, as reads are corrupted extremely often. wdc1: unit 0 (atapi): LS-120 COSM 02 UHD Floppy/0271C09T, removable, iordy wfd0: medium type unknown (no disk) 3. DMA is ineffective with file-system use. I can read from the raw device rad0 at 4.5MB/s with a 1mb block size, but when I use iozone performance is around 2.5MB/s. Mounting wd shouldn't affect that, should it? I used the same device special files to mount as before, with ATA_STATIC being used, and noticed this. Better yet, I'll try this with a corrected fstab then report back. Didn't think it would help... I corrected fstab, but the slow speed is still there. (And I notice it's time to fix my sig.) Brian Feldman _ __ ___ ___ ___ gr...@unixhelp.org _ __ ___ | _ ) __| \ http://www.freebsd.org/ _ __ ___ | _ \__ \ |) | FreeBSD: The Power to Serve!_ __ ___ _ |___/___/___/ To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message Brian Feldman_ __ ___ ___ ___ gr...@unixhelp.org _ __ ___ | _ ) __| \ http://www.freebsd.org/ _ __ ___ | _ \__ \ |) | FreeBSD: The Power to Serve! _ __ ___ _ |___/___/___/ To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
There seems to be an oopsie with the includes on a system without PCI in ata-dma.c: #include ata.h +#include sys/types.h + #if NATA 0 -#include pci.h #if NPCI 0 +#include pci.h #include sys/param.h #include sys/systm.h #include sys/kernel.h My 486 still spits this out tho: [...] ata0 at 0x1f0-0x1f7 irq 14 on isa [...] ad0: WDC AC2850F/28.25E40 ATA-? disk at ata0 as master ad0: 814MB (1667232 sectors), 1654 cyls, 16 heads, 63 S/T, 512 B/S ad0: piomode=3, dmamode=1, udmamode=-1 ad0: 16 secs/int, 0 depth queue, PIO mode changing root device to wd0s1a ad0: invalid primary partition table: no magic changing root device to wd0a ad0: invalid primary partition table: no magic error 22: panic: cannot mount root (2) My PIIX3 box isn't happy with this update either: [...] ata-pci0: Intel PIIX3 IDE controller rev 0x00 on pci0.7.1 ata-pci0: Busmastering DMA supported [...] ata0 at 0x01f0 irq 14 on ata-pci0 [...] ata0: master: settting up WDMA2 mode on PIIX3/4 chip OK ad0: WDC AC22100H/11.09I14 ATA-? disk at ata0 as master ad0: 2014MB (4124736 sectors), 4092 cyls, 16 heads, 63 S/T, 512 B/S ad0: piomode=4, dmamode=2, udmamode=-1 ad0: 16 secs/int, 0 depth queue, DMA mode acd0: HITACHI CDR-8330/0007 CDROM drive at ata0 as slave acd0: drive speed 1779 - 4134KB/sec, 128KB cache acd0: supported read types: CD-R, CD-RW, CD-DA, packet track acd0: Audio: play, 255 volume levels acd0: Mechanism: ejectable tray acd0: Medium: no/blank disc inside, unlocked changing root device to wd0s1a [...] acd0: rezero failed -- Whenever I try to mount my cdrom drive. With or without a cd in there. mount gives me mount: Input/output error I can't eject the cd tray either after I mount the drive. Its fine after boot but before I attempt to mount something. Tugrul Galatali To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message
Re: UPDATE4: ATA/ATAPI driver new version available.
It seems Brian Feldman wrote: I tried this out just as soon as I saw the announcement! Your driver is really coming along well. I have three basic problems with it: 1. A hard reset is necessary to get the CD-ROM drive to work with acd. wdc0: unit 1 (atapi): NEC CD-ROM DRIVE:285/3.04, removable, dma, iordy wcd0: drive speed 2067KB/sec, 128KB cache wcd0: supported read types: CD-R, CD-DA wcd0: Audio: play, 16 volume levels wcd0: Mechanism: ejectable tray wcd0: Medium: no/blank disc inside, unlocked Ugh, one of those NEC's again, it seems there are many problems with their CDROM's, I'll try to get ahold of some... 2. My LS-120 still has no reliability with the driver, as reads are corrupted extremely often. wdc1: unit 0 (atapi): LS-120 COSM 02 UHD Floppy/0271C09T, removable, iordy wfd0: medium type unknown (no disk) Hmm, my ZIP works just fine, I'll see what I can come up with.. 3. DMA is ineffective with file-system use. I can read from the raw device rad0 at 4.5MB/s with a 1mb block size, but when I use iozone performance is around 2.5MB/s. Mounting wd shouldn't affect that, should it? I used the same device special files to mount as before, with ATA_STATIC being used, and noticed this. Better yet, I'll try this with a corrected fstab then report back. This is more likely due to the last changes Julian/Matt has committed to vfs_bio.c et all, it hoses our I/O performance pretty badly. There is work underways to fix it though. -Søren To Unsubscribe: send mail to majord...@freebsd.org with unsubscribe freebsd-current in the body of the message