Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754220AbZDVPLQ (ORCPT ); Wed, 22 Apr 2009 11:11:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752150AbZDVPK5 (ORCPT ); Wed, 22 Apr 2009 11:10:57 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:60319 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbZDVPKz (ORCPT ); Wed, 22 Apr 2009 11:10:55 -0400 X-Auth-Info: wD74mW/PYt1fLfwNjg/xppagjD0vIxHLb/xFf6+5k0I= Message-ID: <49EF337F.1030804@ngrt.de> Date: Wed, 22 Apr 2009 17:10:55 +0200 From: Daniela Engert User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090403 SeaMonkey/1.1.15 not(Firefox/3.2) MIME-Version: 1.0 To: Boaz Harrosh CC: Jeff Garzik , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, LKML , Jens Axboe , Tejun Heo Subject: Re: [PATCH] libata: rewrite SCSI host scheme to be one per ATA host References: <20090422090929.GA14928@havoc.gtf.org> <49EEE225.3010700@garzik.org> <49EF0A92.1070400@panasas.com> In-Reply-To: <49EF0A92.1070400@panasas.com> Content-Type: text/plain; charset=UTF-8; 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: 1683 Lines: 37 Boaz Harrosh wrote: > On 04/22/2009 12:23 PM, Jeff Garzik wrote: >> Jeff Garzik wrote: >>> Currently, libata creates a Scsi_Host per port. This was originally >>> done to leverage SCSI's infrastructure to arbitrate among master/slave >>> devices, but is not needed for most modern SATA controllers. And I >>> _think_ it is not needed for master/slave if done properly, either. >>> It may work with other controllers -- TRY AT YOUR OWN RISK. It will >>> probably fail for master/slave configurations, and SAS & PMP also >>> need looking at. It yielded this lsscsi output on my AHCI box: >>> >>> [0:0:0:0] disk ATA ST3500320AS SD15 /dev/sda >>> [0:2:0:0] disk ATA G.SKILL 128GB SS 02.1 /dev/sdb >>> [0:5:0:0] cd/dvd PIONEER BD-ROM BDC-202 1.04 /dev/sr0 >> For comparison, here is unmodified 2.6.30-rc3: >> >> [jgarzik@bd ~]$ lsscsi >> [0:0:0:0] disk ATA ST3500320AS SD15 /dev/sda >> [2:0:0:0] disk ATA G.SKILL 128GB SS 02.1 /dev/sdb >> [5:0:0:0] cd/dvd PIONEER BD-ROM BDC-202 1.04 /dev/sr0 >> > > Could the master/slave be simply solved by emulating a SCSI LUN Don't forget, there are ATAPI devices (some Sony CD burners and old phase-changers come into mind) which *do* have multiple LUNs sitting beyond the PATA port. I don't know if libata supports such setups (my old OS/2 driver does) but one shouldn't hijack LUNs to emulate targets. Ciao, Dani -- 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/