From owner-freebsd-arch@freebsd.org Tue Feb 12 04:52:12 2019 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D0E114D55FE for ; Tue, 12 Feb 2019 04:52:12 +0000 (UTC) (envelope-from jason.harmening@gmail.com) Received: from mail-it1-x131.google.com (mail-it1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E2D026FBE2; Tue, 12 Feb 2019 04:52:10 +0000 (UTC) (envelope-from jason.harmening@gmail.com) Received: by mail-it1-x131.google.com with SMTP id o131so838750itc.5; Mon, 11 Feb 2019 20:52:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NKeiTm0UaF7YOn2jng8efU2h1pXd9j5/SW1iHEJxMjU=; b=TtY1ZWeYie2FrXXhucI2Gbe9vDWv9EBWzb4sm3yMaJIo0IXAmdOZO4eqbXYefEH11t ueViKncOlBIyW6jZ+XtgQtDrH7D1+gnjYSz7DjHSHtSuUCqeIFm+vnUDsgAj/D/bcYmb YJKcLz5q13yYEVynJN0IkhQkIJBCaZ83dqFAdOgt/mpinMgDwpd37qHL4ZtLv9CsPNyY QtVmVbxb2Bo2hq16b3gQzu9xmpglk1a77W40Lbmn+kNG68gumU3Vn7kZcKL7UNQg4bUR 4Q8U1FroWZ+K/99rxiPc6S0Sg+gnSeYU8DCH0lLXac6WMg+0clIYAZzWRNWYu7OQunXh QIvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NKeiTm0UaF7YOn2jng8efU2h1pXd9j5/SW1iHEJxMjU=; b=CfxQkNdi/IXyN6Otx/RAEXQREuh1uKm2/nzD9FxZWtcmq99ImpeDOfTn5NvMgAigKV XB5n58PjsI0UBE059257eNEbzOznk36Us2ynlxFAnAa59rdChcK2/ukMTYswB7AJPY1O 6YxYdN2FEQSQoNGcQVm2tm+DpegzF6fOzC+Md16NDMpWXuVtdiLzQL0tUGgRcNDTCQ6P 5M+0uTDQ1DGcz1mWKrMkeWI5/yKDsupFAAHkbzBF7MJxdfA0BVXusxC2rSq0ubqf1g5U 992cPwc9i2tBcEKtC1o6Z0MWDUrNatXUv8LVVfyDDCA8JfsbprI36YiMr/CblYBHvQeg qHFA== X-Gm-Message-State: AHQUAubzueDg/p9rKEJNt4ZtMF4YmPrRBZs94IMmsUkljWzjmj8/L8BK MadXGQauXhCnTreIIGGKOT0SL54HqpHqmRA0RAIt X-Google-Smtp-Source: AHgI3IZGP9r7g1PU0pIpwMdACp6GTQoTD2XqlYZbuuEy6irtsIqNuID1H9qVXE0UDOqgZyWj5X/75bgB0ISOL2GrQ3A= X-Received: by 2002:a24:32c7:: with SMTP id j190mr921180ita.144.1549947129943; Mon, 11 Feb 2019 20:52:09 -0800 (PST) MIME-Version: 1.0 References: <7d214dbe-b873-e626-776a-efdf2ac693b7@FreeBSD.org> In-Reply-To: <7d214dbe-b873-e626-776a-efdf2ac693b7@FreeBSD.org> From: Jason Harmening Date: Mon, 11 Feb 2019 20:51:59 -0800 Message-ID: Subject: Re: Any desire for a more flexible bus_dmamem_alloc variant ? To: John Baldwin Cc: FreeBSD Arch X-Rspamd-Queue-Id: E2D026FBE2 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=TtY1ZWeY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of jasonharmening@gmail.com designates 2607:f8b0:4864:20::131 as permitted sender) smtp.mailfrom=jasonharmening@gmail.com X-Spamd-Result: default: False [-5.05 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.51)[-0.514,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(-2.52)[ip: (-8.08), ipnet: 2607:f8b0::/32(-2.50), asn: 15169(-1.96), country: US(-0.07)]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.3.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2019 04:52:12 -0000 On Mon, Feb 11, 2019 at 9:34 AM John Baldwin wrote: > On 2/10/19 1:13 AM, Jason Harmening wrote: > > I have this review I need to rebase and write the manpage bits for. While > it still ties the the size to the tag, it mostly hides the individual tag: > > https://reviews.freebsd.org/D5704 I like that. It doesn't fix my idealogical gripe about maxsize being a constraint vs. an allocation specifier. But I'm not sure that matters if it can get rid of most/all of the practical ramifications of the problem. Plus it kills off a bunch of other cruft too. Suggestion, maybe dumb: What if you added a flex array of segments at the end of struct bus_dmamem and a maxsegs argument in the args struct to allow multi-seg allocations? That would fix what might be the only real impediment to using this pretty much anywhere. > > > -- > John Baldwin > > > >