From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: Infinite loop on MODE-SENSE with a removable ATAPI sata device on VIA chipset Date: Thu, 11 May 2006 00:25:19 +0900 Message-ID: <446205DF.3050706@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from wx-out-0102.google.com ([66.249.82.192]:13682 "EHLO wx-out-0102.google.com") by vger.kernel.org with ESMTP id S1751143AbWEJPZZ (ORCPT ); Wed, 10 May 2006 11:25:25 -0400 Received: by wx-out-0102.google.com with SMTP id t16so1270037wxc for ; Wed, 10 May 2006 08:25:24 -0700 (PDT) In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Dario Oliva Cc: jgarzik@pobox.com, linux-ide@vger.kernel.org Dario Oliva wrote: > Tejun Heo wrote: > >> None attached. :) > > Oops. > >> I asked the model because plexstor list some of their drives as PIO > only with VIA controllers. I don't know why. But >> VIA + plextor combination seems to have some problems and your problem > might be a similar one. >> Have you tried the drive with other controllers? > > Yes, we have tried other controllers, mainly Intel and nvidia. No > problems with either one. Only the motherboard with the VIA controller > gives the problem. > Seems to be the same problem. You can force PIO mode by adding your device's ID to ata_dma_list[] in libata-core.c. It will force PIO mode on all controllers, though. Proper way would be to implement ops->filter_mode() in sata_via.c and force PIO for ATAPI devices, but I'm not sure whether the 'force PIO' approach is the correct one. -- tejun