Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 29 Oct 2001 23:58:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 29 Oct 2001 23:57:53 -0500 Received: from chmls05.mediaone.net ([24.147.1.143]:48598 "EHLO chmls05.mediaone.net") by vger.kernel.org with ESMTP id ; Mon, 29 Oct 2001 23:57:33 -0500 Message-Id: <200110300458.f9U4w6N17353@chmls05.mediaone.net> From: Skip Gaede To: linux-kernel@vger.kernel.org Subject: [PATCH] driver: ide-floppy.c kernel >=2.4.7 Date: Tue, 30 Oct 2001 00:00:42 -0500 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_6X5021CIXDOZNMXZM83K" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --------------Boundary-00=_6X5021CIXDOZNMXZM83K Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit This patch fixes a lost interrupt problem with the Iomega ATAPI Zip 100 drive on an Asus A7V133 board (uses South Bridge VIA VT82C686 chip). The problem occurs when trying to format the drive using mke2fs /dev/hdx1. The patch introduces an adjustable delay between the time the drive asserts DRQ and deasserts BSY after issuing the packet command and before transferring the 12 byte packet.. With delays of 3-5 ticks, the filesystem creation occurs without retries/resets. The delay can be adjusted through the proc interface by adjusting the value assigned to the parameter ticks. (Without the patch, I experienced 111 lost interrupts, resulting in an elapsed time of over 2 hours to format the drive. With the patch, mke2fs completed in <15 seconds.) I am looking for testing, by others who have the internal Zip drive and may have experienced the same problem, as well as comments. Thanks, --Skip --------------Boundary-00=_6X5021CIXDOZNMXZM83K Content-Type: application/x-bzip2; name="ide-floppy-p7.patch.bz2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="ide-floppy-p7.patch.bz2" QlpoOTFBWSZTWc1QI8QAA5//gHwwDAB5/////////r////9gDH94dzoGoXVwODuc6FNKA7tQbrLq 5wq2i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ZMYSRLkN3XO5des0icY3nex0lJLfMDbLMtXud/LM YGpAYu0O4RAjvk83LhTpOyGztvx2eexdzEQi4sO8yYuS0QjtZq1NMEGGGhggmKWgGSFECqRRz9nj 2LQG1DHjIlESfQWILed6Mjog6UAmtKCaOBy8O+axF0Sa03oqJQUgZEqaPIaz7dhi/C+GydEmkLVu CpS5WasYlJSi4HLYBRo30JSZNAsZpwb+2UGkfTwWpEsLuFugJJmWntS88aE2lz4pKlKs+zRuGDVB cBq4dgmNrJMh0VRkF/E6vOB2DN9gp3EgZY0M9CtkCR1wV426J74A4r8i61vOK3Wj0eUUXI9GfDTM TnDDFmzeAbkaB72oSoTTLVZ8qKgVAO5E3sLwhopZLhAqbCzWJDYfTQZpbkfXorPrA2wMuIblC4KQ b0cAF4ZYNNFqQ2Nt1I1GHGBCDZoUIMK2DMFXNTbZ85+Vjxv+17TLWum5ruDTwCYL4g/uN/zUIWqg ZgmnFREC+uqZAHjol+OtRcv1MiptYShAU1vm3scA5nQqh82uwdTE9mglFeObjjMu00B4h0QTLaXF brl4qpZ9ZC/2xSRIai7/4u5IpwoSGaoEeIA= --------------Boundary-00=_6X5021CIXDOZNMXZM83K Content-Type: text/plain; charset="iso-8859-1"; name="README" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="README" TG9zdCBpbnRlcnJ1cHQgcGF0Y2ggZm9yIGlkZS1mbG9wcHkuYyBieSBTa2lwIEdhZWRlIDxzZ2Fl ZGVAbWVkaWFvbmUubmV0Pgo= --------------Boundary-00=_6X5021CIXDOZNMXZM83K-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/