Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966043AbWKNPqu (ORCPT ); Tue, 14 Nov 2006 10:46:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S966130AbWKNPqt (ORCPT ); Tue, 14 Nov 2006 10:46:49 -0500 Received: from s1.mailresponder.info ([193.24.237.10]:59400 "EHLO s1.mailresponder.info") by vger.kernel.org with ESMTP id S966043AbWKNPqs (ORCPT ); Tue, 14 Nov 2006 10:46:48 -0500 Subject: Re: READ SCSI cmd seems to fail on SATA optical devices... From: Mathieu Fluhr To: Arjan van de Ven Cc: Phillip Susi , jgarzik@pobox.com, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1163446372.15249.190.camel@laptopd505.fenrus.org> References: <1163434776.2984.21.camel@de-c-l-110.nero-de.internal> <4558BE57.4020700@cfl.rr.com> <1163444160.27291.2.camel@de-c-l-110.nero-de.internal> <1163446372.15249.190.camel@laptopd505.fenrus.org> Content-Type: text/plain Organization: Nero AG Date: Tue, 14 Nov 2006 16:45:25 +0100 Message-Id: <1163519125.2998.8.camel@de-c-l-110.nero-de.internal> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1794 Lines: 44 On Mon, 2006-11-13 at 20:32 +0100, Arjan van de Ven wrote: > On Mon, 2006-11-13 at 19:56 +0100, Mathieu Fluhr wrote: > > On Mon, 2006-11-13 at 13:49 -0500, Phillip Susi wrote: > > > Mathieu Fluhr wrote: > > > > Hello, > > > > > > > > I recently tried to burn some datas on CDs and DVD using a SATA burner > > > > and the latest 2.6.18.2 kernel... using NeroLINUX. (It is controlling > > > > the device by sending SCSI commands over the 'sg' driver) > > > > > > > > > > Please note that the sg interface is depreciated. It is now recommended > > > that you send the CCBs directly to the normal device, i.e. /dev/hdc. > > > > Of course for native IDE devices, we are using the /dev/hdXX device, but > > for SATA devices controlled by the libata, this is not possible ;) > > for those there is /dev/scd0 etc... > (usually nicely symlinked to /dev/cdrom) Hummm as we are _writing_ to devices, I think that using /dev/sgXX with SG_IO is better no? ... and the problem is not in accessing the device itself (this is working like a charm) but understanding why a SCSI READ(10) cmd sometimes fails as a ATA-padded READ(10) cmd - as discribed in the Annex A of the MMC-5 spec - ALWAYS works. -> I would suspect somehow a synchronisation problem somehow in the translation of SCSI to ATA command... Another point: When I say that a READ(10) fails, it does NOT mean that the command execution itself fails. Everything works as if the command exectution succeeds, but the resulting buffer contains garbage (i.e. not only 1 or 2 bytes differs) > > - 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/