Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754295AbZAJPds (ORCPT ); Sat, 10 Jan 2009 10:33:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751997AbZAJPdj (ORCPT ); Sat, 10 Jan 2009 10:33:39 -0500 Received: from h155.mvista.com ([63.81.120.155]:64776 "EHLO imap.sh.mvista.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751952AbZAJPdi (ORCPT ); Sat, 10 Jan 2009 10:33:38 -0500 Message-ID: <4968BFF5.2090707@ru.mvista.com> Date: Sat, 10 Jan 2009 18:34:13 +0300 From: Sergei Shtylyov Organization: MontaVista Software Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803 X-Accept-Language: ru, en-us, en-gb MIME-Version: 1.0 To: James Bottomley Cc: Alan Cox , Christian Borntraeger , linux-ide@vger.kernel.org, Jeff Garzik , lkml Subject: Re: todays git: WARNING: at drivers/ata/libata-sff.c:1017 ata_sff_hsm_move+0x45e/0x750() References: <200901091334.55823.borntraeger@de.ibm.com> <200901101009.13699.borntraeger@de.ibm.com> <20090110104114.633cacd8@lxorguk.ukuu.org.uk> <200901101242.05203.borntraeger@de.ibm.com> <49688B63.5030105@ru.mvista.com> <20090110122130.318cf168@lxorguk.ukuu.org.uk> <1231598170.3642.12.camel@localhost.localdomain> <20090110151248.063199d2@lxorguk.ukuu.org.uk> <1231600972.3642.22.camel@localhost.localdomain> In-Reply-To: <1231600972.3642.22.camel@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 979 Lines: 26 Hello. James Bottomley wrote: >>>not divisible by four. If you want to use word based PIO, you'll have >>>to fall back to collecting bytes for the last two. Alternatively, you >>Nope.. you can't do that with ATA block transfers - it isn't the same as >>SCSI > Well, in that case you'll have to do byte PIO for all ATAPI devices, > because this is an expected device to host transfer length. Byte PIO doesn't work in the ATA world unless the device supports it (I guess only CFA devices really support it) and the driver has enabled it (which I think isn't really worth it unless you have some h/w constaints). What you can do is read the whole 16-bit (or 32-bit) word and ignore the bytes you don't need. MBR, Sergei -- 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/