Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967751AbWLDXNA (ORCPT ); Mon, 4 Dec 2006 18:13:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S967752AbWLDXNA (ORCPT ); Mon, 4 Dec 2006 18:13:00 -0500 Received: from srv5.dvmed.net ([207.36.208.214]:39115 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967751AbWLDXM7 (ORCPT ); Mon, 4 Dec 2006 18:12:59 -0500 Message-ID: <4574AB78.40102@garzik.org> Date: Mon, 04 Dec 2006 18:12:56 -0500 From: Jeff Garzik User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: "Darrick J. Wong" CC: linux-scsi , Linux Kernel Mailing List , "linux-ide@vger.kernel.org" , Alan Cox Subject: Re: libata: Simulate REPORT LUNS for ATAPI devices when not supported References: <4574A90E.5010801@us.ibm.com> In-Reply-To: <4574A90E.5010801@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.3 (----) X-Spam-Report: SpamAssassin version 3.1.7 on srv5.dvmed.net summary: Content analysis details: (-4.3 points, 5.0 required) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1247 Lines: 31 Darrick J. Wong wrote: > The Quantum GoVault SATAPI removable disk device returns ATA_ERR in > response to a REPORT LUNS packet. If this happens to an ATAPI device > that is attached to a SAS controller (this is the case with sas_ata), > the device does not load because SCSI won't touch a "SCSI device" > that won't report its LUNs. If we see this command fail, we should > simulate a response that indicates the presence of LUN 0. > > Signed-off-by: Darrick J. Wong I think the answer to this issue lies in the behavior of the majority of ATAPI devices when responding to REPORT LUNS. Regardless of SAS or SATA or whatever bus the device is using. ISTR that REPORT LUNS can make ATAPI devices croak, so it might be wise and more safe to simply simulate REPORT LUNS by default for all ATAPI devices. Then readdress the issue if someone has a burning need to support the rare multi-LUN ATAPI devices. I have one, but I'm not highly motivated to dig it out. 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/