From owner-freebsd-current@FreeBSD.ORG Mon Apr 26 12:51:21 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BE80106564A; Mon, 26 Apr 2010 12:51:21 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by mx1.freebsd.org (Postfix) with ESMTP id 95B088FC0A; Mon, 26 Apr 2010 12:51:20 +0000 (UTC) Received: by ewy24 with SMTP id 24so3405787ewy.33 for ; Mon, 26 Apr 2010 05:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=Pnnr3KtMJEqenHrrQr3cArJah/TlZ0SkTkpzdfp6wWo=; b=FVHCrkR60fxhnIFwwZaHRxfG6mTt5QAhuZTWMDR2ngfCNOo3rH4X1tjlVkZnfq6ubX ahPLMZUwyPzfv8ZFpB53WRgQZv3jPrtixjC5CW+GPWbefR6sTo5hS98kjVxgZrDv3IdE HS8aDBOIZkoxkgg55tOgOfxakbknUfih8T2W4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=MNsos9322zVxi/xZQDbm76lHFv7cCu4KS50yjtmcbK+hdiPm0WyGvEujBVhLGDvI7v Y7zNIsMmTGDVyLUnb5YYlEXUdusPilp3KaAWgbDKcVF6FYg0ZrnOYojO7gBhsVZpPNca Z1PYagx1pkfbmEwLmww3D1wRtJfvmvH4EQ24E= Received: by 10.102.16.36 with SMTP id 36mr2220042mup.124.1272286276496; Mon, 26 Apr 2010 05:51:16 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id y2sm16181453mug.21.2010.04.26.05.51.14 (version=SSLv3 cipher=RC4-MD5); Mon, 26 Apr 2010 05:51:15 -0700 (PDT) Sender: Alexander Motin Message-ID: <4BD58C35.2010305@FreeBSD.org> Date: Mon, 26 Apr 2010 15:51:01 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Marius Strobl References: <4BD06BD9.6030401@FreeBSD.org> <20100424193034.GA9853@alchemy.franken.de> In-Reply-To: <20100424193034.GA9853@alchemy.franken.de> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Current , freebsd-geom@freebsd.org Subject: Re: Switchover to CAM ATA? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2010 12:51:21 -0000 Marius Strobl wrote: > As noted earlier, pc98 and sparc64 need ada(4)/CAM ATA to perform > geometry translation as done by ad_firmware_geom_adjust() for ad(4), > which the following patch hooks up to both: > http://people.freebsd.org/~marius/ata_disk_firmware_geom_adjust.diff > You preferred to implement such functionality via XPT_CALC_GEOMETRY > though (I'm still not convinced that it makes sense to put this > functionality into every ATA SIM the same way it is done for SCSI > rather than letting ada(4) handle it the same way for all SIMs > however). Have you looked into implementing XPT_CALC_GEOMETRY for > ATA CAM or is it okay to commit the above patch? Sorry, I have forgotten about this. I don't have better idea. For ATA translation seems indeed more platform- then controller-specific. May be I would just preferred to see this hack to be done inside XPT_CALC_GEOMETRY handler, as it is done now for PC98 SCSI. But looking that whole this topic is quite crappy and hopefully going to die sometimes, I won't argue much against committing this as-is for now. -- Alexander Motin