From owner-freebsd-arch@FreeBSD.ORG Fri Apr 9 14:57:07 2010 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFF05106566B; Fri, 9 Apr 2010 14:57:07 +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 6FF0B8FC12; Fri, 9 Apr 2010 14:57:07 +0000 (UTC) Received: from [127.0.0.1] (pooker.samsco.org [168.103.85.57]) (authenticated bits=0) by pooker.samsco.org (8.14.3/8.14.3) with ESMTP id o39Ev4q1086706; Fri, 9 Apr 2010 08:57:04 -0600 (MDT) (envelope-from scottl@samsco.org) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Scott Long In-Reply-To: <4BBF3CA1.1040001@freebsd.org> Date: Fri, 9 Apr 2010 08:57:04 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <998F1648-E06E-49C3-A5B8-802B8B6D64F9@samsco.org> References: <4BBEE2DD.3090409@freebsd.org> <07A7155D-0836-4D8C-BCF4-70FC16C77B69@samsco.org> <4BBF39C7.4050308@freebsd.org> <682A6F1E-31E3-4920-A66E-452221866945@samsco.org> <4BBF3CA1.1040001@freebsd.org> To: Andriy Gapon X-Mailer: Apple Mail (2.1078) X-Spam-Status: No, score=-1.0 required=3.8 tests=ALL_TRUSTED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on pooker.samsco.org Cc: arch@freebsd.org, Rick Macklem Subject: Re: (in)appropriate uses for MAXBSIZE X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2010 14:57:07 -0000 On Apr 9, 2010, at 8:41 AM, Andriy Gapon wrote: > on 09/04/2010 17:35 Scott Long said the following: >> On Apr 9, 2010, at 8:29 AM, Andriy Gapon wrote: >>=20 >>> on 09/04/2010 16:52 Scott Long said the following: >>>> Storage drivers are insulated from the details of MAXBSIZE by GEOM = honoring >>>> the driver's advertised max-i/o-size attribute. What I see when I = grep through the >>>> sources are mostly uses in busdma attributes, which themselves = probably came >>>> via cut-n-paste from prior drivers. I can't come up with any = explanation for that >>>> which makes good design sense, so I'll agree that storage drivers = shouldn't >>>> reference MAXBSIZE. >>> Should DFLTPHYS be used there? >>> Or is there a better DMA-specific constant? >>> Or, perhaps, each driver should just use its won private constant = based on its >>> hardware capabilities? >>=20 >> Each driver should be advertising its own maxio attribute, with the = exception >> of CAM drivers. Advertising is optional in CAM, and is defaulted to = 64k. But >> yes, each driver should define and use its own constants here. >=20 > I actually meant not what drivers advertise but what they use in = busdma. > Or are those directly related? >=20 Yes, the should normally be directly related except in maybe a few very = rare cases. Scott