From owner-freebsd-current@FreeBSD.ORG Sat Jun 27 18:06:10 2009 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 5E615106564A; Sat, 27 Jun 2009 18:06:10 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 130388FC18; Sat, 27 Jun 2009 18:06:09 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.local (pooker.samsco.org [168.103.85.57]) by pooker.samsco.org (8.14.2/8.14.2) with ESMTP id n5RI64nt036076; Sat, 27 Jun 2009 12:06:04 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <4A465F8C.4030901@samsco.org> Date: Sat, 27 Jun 2009 12:06:04 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Alexander Motin References: <4A4517BE.9040504@FreeBSD.org> <200906271419.49329.pieter@degoeje.nl> <4A464EED.3070700@FreeBSD.org> In-Reply-To: <4A464EED.3070700@FreeBSD.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=3.8 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: Pieter de Goeje , freebsd-current@FreeBSD.org, scottl@FreeBSD.org Subject: Re: RFC: ATA to CAM integration patch 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: Sat, 27 Jun 2009 18:06:10 -0000 Alexander Motin wrote: > Pieter de Goeje wrote: >> However there is a problem with camcontrol: >> >> nox# camcontrol devlist >> cam_periph_mapmem: attempt to map 79200 bytes, which is greater than >> DFLTPHYS(65536) >> camcontrol: error sending CAMIOCOMMAND ioctl: Argument list too long > > Thank you for report. I have missed this due to increased DFLTPHYS value > in my kernel. Attached trivial patch fixes that. > This should be addressed via multi-part transfers at some point. Probably ok to leave for now. >> nox# camcontrol inquiry ada0 >> ahcich1: ahci_ch_intr ERROR is 48000000 cs 00000100 ss 00000000 rs >> 00000100 tfd 451 serr 00000000 >> >> nox# camcontrol inquiry ada1 >> ahcich7: ahci_ch_intr ERROR is 40000001 cs 00002000 ss 00000000 rs >> 00002000 tfd 451 serr 00000000 > > This is not a problem. ATA disks does not have SCSI INQUIRY command. > They use own IDENTIFY instead. inquiry should work for ATAPI devices, as > they are SCSI deep inside. > This is really the big missing piece in camcontrol; we need to add support for getting the IDENT info and getting/setting various attributes, as well as sending ATA commands over passthrough. Scott