Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756178AbZDVJYY (ORCPT ); Wed, 22 Apr 2009 05:24:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755555AbZDVJX7 (ORCPT ); Wed, 22 Apr 2009 05:23:59 -0400 Received: from srv5.dvmed.net ([207.36.208.214]:38866 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756294AbZDVJX6 (ORCPT ); Wed, 22 Apr 2009 05:23:58 -0400 Message-ID: <49EEE225.3010700@garzik.org> Date: Wed, 22 Apr 2009 05:23:49 -0400 From: Jeff Garzik User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org CC: 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> In-Reply-To: <20090422090929.GA14928@havoc.gtf.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.2.5 on srv5.dvmed.net summary: Content analysis details: (-4.4 points, 5.0 required) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1577 Lines: 36 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. BTW note the above, with regards to the libata SCSI->block conversion. libata currently relies on SCSI for some amount of generic device arbitration, in several situations (see ->qc_defer, SCSI_MLQUEUE_.*_BUSY). libata expects SCSI to be intelligent and not starve devices, etc. > I was able to successfully boot the following patch on > AHCI/x86-64/Fedora. > > 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 -- 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/