Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755928AbXJ3QC5 (ORCPT ); Tue, 30 Oct 2007 12:02:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752928AbXJ3QCt (ORCPT ); Tue, 30 Oct 2007 12:02:49 -0400 Received: from srv5.dvmed.net ([207.36.208.214]:34106 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751958AbXJ3QCs (ORCPT ); Tue, 30 Oct 2007 12:02:48 -0400 Message-ID: <472755A1.5080703@garzik.org> Date: Tue, 30 Oct 2007 12:02:41 -0400 From: Jeff Garzik User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Daniel Drake CC: Alan Cox , linux list , linux-ide@vger.kernel.org Subject: Re: "Fix ATAPI transfer lengths" causes CD writing regression References: <47274A5F.6070409@gentoo.org> In-Reply-To: <47274A5F.6070409@gentoo.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) X-Spam-Report: SpamAssassin version 3.1.9 on srv5.dvmed.net summary: Content analysis details: (-4.4 points, 5.0 required) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1883 Lines: 55 Daniel Drake wrote: > Hi Alan, > > In 2.6.23 and previous, CD writing works fine on my system. I'm using > ata_piix on: > > 00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA > IDE Controller (rev 01) > > When I'm running CD writing utilities, I sometimes see this message in > the kernel logs: > ata2.00: 66 bytes trailing data > Things do work fine though. > > With 2.6.24-rc1, I can't write CDs. Instead of the above message, I get: > ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen > ata2.00: cmd a0/00:00:00:0a:00/00:00:00:00:00/a0 tag 0 cdb 0x5a data 10 in > res 58/00:02:00:0a:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) > ata2.00: status: { DRDY DRQ } > ata2: soft resetting link > ata2.00: configured for UDMA/33 > ata2: EH complete > > and the software acts oddly - for example Brasero tells me that the > blank CD I have inserted has a capacity of 17,179,869,184gb and it > doesn't let me write CDs as it says the medium is not writable. > > git bisect lead me to commit 2db78dd302d26d242d3e8e5c4c5024b6c3ea93c2 as > the culprit. > > Author: Alan Cox > Date: Tue Oct 2 13:53:04 2007 -0700 > > libata_scsi: Fix ATAPI transfer lengths > > Some controller variants snoop the ATAPI length value for Packet > transfers to do state machine and FIFO management. Thus we want to > set it properly, even for cases where it is otherwise meaningless. > > Any ideas? hrm we may need to make that controller-specific, given that the code prior to 2db78dd302d26d242d3e8e5c4c5024b6c3ea93c2 was working for most... Jeff - 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/