From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 54ADD3EAB0 for ; Tue, 21 Jan 2003 19:22:49 -0500 (EST) Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id h0M0MfH01721 for axp-list@listman.redhat.com; Tue, 21 Jan 2003 19:22:41 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id h0M0Mfa01717 for ; Tue, 21 Jan 2003 19:22:41 -0500 Received: from iris.s3.kth.se (iris.s3.kth.se [130.237.43.24]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id h0LNs0f14771 for ; Tue, 21 Jan 2003 18:54:00 -0500 Received: from baronyx.s3.kth.se (localhost.localdomain [127.0.0.1]) by iris.s3.kth.se (Postfix) with ESMTP id DFEE761AAC; Wed, 22 Jan 2003 01:22:41 +0100 (CET) Subject: Re: IDE disk problems with RH7.2 on DPW500a From: Magnus =?ISO-8859-1?Q?Lindstr=F6m?= To: axp-list@redhat.com In-Reply-To: <00B62B16-2D12-11D7-BEB0-000393A395B4@ves.com> References: <00B62B16-2D12-11D7-BEB0-000393A395B4@ves.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 22 Jan 2003 01:22:42 +0100 Message-Id: <1043194962.11096.171.camel@baronyx.s3.kth.se> Mime-Version: 1.0 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Hi Tim, On Tue, 2003-01-21 at 08:28, Tim Pugh wrote: > I'm looking for experiences from people using RH7.2 and IDE drives on a > Digital Personal Workstation 500a. My own experiences have been mixed. > I had that same ordeal with a PWS 433 about a year ago. Not with RH7.2, because the problem isn't really with RH, but with the hardware. Was struggling with it for several months before I was satisfied with the explanation. The problem with the Miatas (PWS 433 and 500) is that the 21174 Core Logic ("Pyxis") chipset has a bug that corrupts DMA transfers that crosses a page boundary. It really only happens on DMA reads and on the primary PCI bus, but that is where the IDE controller is located. Thus, DMA disk writes are vulnerable. Ivan Kokshaysky, Kurt Garloff and Jay Estabrook (there may have been more people involved) developed a software workaround for this bug. There were several flavors of the workaround, but they all basically tried to avoid DMA reads crossing page boundaries. With the patch applied the problems were thought to be history. However, occasionally errors were still observed. On my Miata I had one or two bits in error about every 8GB written or so. Previously, the errors had a pattern that was related to the DMA transfer, but now there was no longer a pattern. Nevertheless, falling back to PIO always resulted in the problem going away. Thus, I was convinced that the errors were related to DMA. Some further investigation showed, however, that the spurious errors are most likely electrical, noise related errors. The higher data rate when using DMA compared to PIO, makes the transfers over the IDE cable more susceptible to crosstalk and noise. Replacing the old 40-conductor cable with a 80-conductor cable, the spurious bit error were gone! Now, even though a 80-conductor cable may fix the problem (in conjunction with the DMA bug workaround of course), one should be aware that old DMA (non-Ultra) transfer modes don't employ checksums to verify that data was transfered OK. Hence, if a transfer is corrupted during a disk write, it will not be discovered until the data is read back. Then, it is probably to late to fix the error. Therefore, with all the trouble associated with getting the Miata to behave, I wouldn't recommend using the on-board IDE controller in DMA mode. Even if it appears to work, there are no guarantees that you won't be bit at some point. An easier way to get your Miata running with IDE drives is to install an add-on IDE controller in one of the free 32-bit PCI-slots. Don't use a 64-bit slot. IIRC the 32-bit slots are sitting on a secondary PCI bus located behind a bridge which effectively removes the DMA page cross problem. The 64-bit slots are on the primary bus and, thus, exposed to the bug. Further, if you use a IDE adapter that supports UltraDMA your data transfers are protected with checksums. Unfortunately, only the data is protected, not the commands, but still, I think you should stand a better chance than with no checksums at all. There have been reports of failures with high rate modes, but lower rates should work fine. As mentioned previously in this thread, Promise controllers work fine as long as you don't need to boot the machine from it. SRM doesn't recognise Promise controllers. As a final note, it should be mentioned that not all Miatas have the DMA read bug. There are two flavours of the Miata: the old MX5 with the CMD646 IDE controller and a newer MiataGL with a Cypress 82C693 IDE controller. The MiataGL doesn't have the DMA bug, it was fixed with a factory installed hardware patch. As the IDE controller is also different on the MiataGL, what has been said about spurious bit errors above may not apply to the MiataGL. /magnus > Under RH7.0 for alpha, I was running the OS on a scsi disk connected to > QLogic board. I needed more disk space for user files, so I installed > an IDE drive which worked, and filesystem checks (e2fsck) worked as > well. There were some filesystem corruption at times, but the > filesystem check always seemed to fix it. > > Looking for a better filesystem and OS, I upgrade to RH7.2 alpha. Here > starts my problems. > > After installing RH7.2 on a new SCSI disk (no problems) from an IDE > CDROM (no problems), the system reports filesystem problems with my IDE > disk drive. After running a filesystem check, it was evident from the > endless number of inode and other fixes to the drive, the system had > just corrupted the IDE's filesystem beyond repair. The filesystem check > failed me in a major way! > > Having a backup of the IDE data on an external SCSI disk, I reformatted > the IDE disk. (Well "reformat" isn't what I would call it. Where is a > format command for SCSI and IDE disks under linux?) I used fdisk to > remake the disk partitions and mkfs to install the filesystem. > > I installed an ext3 filesystem on the IDE drive and did an extensive > badblock check, writing patterns. After the badblock check, the mkfs > command aborted, reporting bad blocks at block 0, the super block > location. I tried it again, same message. (I also installed a new IDE > drive and cable, same problem. It's not a disk or cable problem, it > must be something else. ) > > Ok, maybe the problem is with the badblock check program. I do it > again, but only with the read-only badblock check, and the filesystem is > built successfully. > > I mount the drive, and now begin to transfer the backup from an external > scsi disk to the IDE disk. Shortly into the file transfer ( attempted > transfer with gtar and cp), the kernel freezes/panics and I have to > reset the machine. Here's the message: > > kernel: Assertion failure in journal_bmap_Rb5b0f71f() at journal.c:602: > "ret != 0" > > After doing a hard reset to the machine and it comes up, restoring scsi > ext3 filesystems, I run fsck on the IDE disk. I see fsck trying to fix > many inodes, file sizes and ... fsck has again failed to bring sanity > to the IDE filesystem. The filesystem is beyond repair. Start over > again. Partition drive, make filesystem, transfer files, boom...kernel > freeze, same message. Is there an ext3 filesystem problem? > > As a test, I performed the same file transfers to another scsi disk with > an ext3 filesystem in the system, no problems. The problems only occur > to the IDE drive. The IDE hardware and cable are fine. The IDE CDROM > does not seem to have problems, as there are no messages in the logs, > and the file transfers from the CDROM are fine. > > I believe the IDE controller chips are working because the IDE disk > worked in RH7.0, but not in RH7.2. The journal filesystem appears to > work fine except when it's getting bad I/O transfer results. I believe > the problem is in the kernel driver for the IDE controller (maybe due to > flaky hardware, but I'm not convinced.) As a test,the IDE disk and > CDROM were configured as master/slave on a single channel, then > configured as single devices on seperate IDE channels. Same problems > occurred under both configurations. > > Conclusion, don't use IDE disk drives with RH7.2 alpha on a DPW500a. > Would an PCI EIDE controller board fix the problem? Maybe...would it > use different IDE drivers? Any experiences before I try it? > > Any feedback, experiences, crystal balls would be appreciated. > > Thanks in advance. > > - Tim Pugh - > > > > _______________________________________________ > Axp-list mailing list > Axp-list@redhat.com > https://listman.redhat.com/mailman/listinfo/axp-list