From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartlomiej Zolnierkiewicz Date: Sat, 10 Mar 2007 15:52:09 +0000 Subject: Re: Again problems with PDC20268 and vol_id Message-Id: <200703101652.09442.bzolnier@gmail.com> List-Id: References: <4964.131.211.80.61.1173446203.squirrel@hammerhead.dyndns.org> <20070309190856.c86efd73.vsu@altlinux.ru> <200703101057.32631.guido@jcwodan.nl> In-Reply-To: <200703101057.32631.guido@jcwodan.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Guido Diepen Cc: Jens Axboe , linux-ide@vger.kernel.org, linux-hotplug-devel@lists.sourceforge.net, Sergey Vlasov [ added Jens to cc: ] Hi, On Saturday 10 March 2007, Guido Diepen wrote: > Hi Sergey, >=20 > > Is the partition table correct? Maybe the partition extends beyond > > the end of physical disk for some reason, and when the kernel tries to > > access last blocks of the partition, it actually tries to read sectors > > beyond the actual drive capacity, which fails and exposes broken error > > handling in the Promise IDE driver. > > > > I have added the linux-ide mailing list to Cc: - problems related to > > IDE/ATA drivers (both old IDE, which you are using currently, and > > newer libata) should be discussed there. >=20 > Last night I copied all data on the /dev/hdg2 partition to other partitio= ns,=20 > removed the /dev/hdg2 partition and recreated it. Currently everything wo= rks=20 > flawless !!! Thanks for testing this (and reporting the bug in the first place). Also big thanks to Sergey for digging out the source of the issue. > Apparently there is a bug in the promise IDE pdc202xx_new.c driver :) IDE error recovery code needs improvements (people are working at it) but there is no wonder that it failed miserably first in DMA mode and later during PIO retries - it just couldn't read the sector which doesn't exist. Probably the final steps of error recovery procedure were unsuccessful beca= use it is using the older method for putting the drive into the "good" idle sta= te which confuses newer disks (there is a patch - to be merged - from Suleiman Souhlal addressing this). However it seems that the root source of the problem was that IDE subsystem got the request for sector outside the valid sector range and it should _ne= ver_ happen for requests originating from the block layer (a lot of code - not o= nly in the IDE subsystem - assumes this)... Thanks, Bart ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel