Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1285582pxb; Fri, 21 Jan 2022 14:22:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXv2ybO7DfcAGEV51dCwc0NMJxr3TDS9hiIrqc/e5ykHBVYNfc0gjhMwqGk9ez02ziTNTa X-Received: by 2002:a63:1d7:: with SMTP id 206mr4269406pgb.111.1642803731727; Fri, 21 Jan 2022 14:22:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642803731; cv=none; d=google.com; s=arc-20160816; b=h0dSg6MxJSDXu4ZR/EWUXNs2/Gqz20Yb7M5c2P64LlkteHdi/PQOjpxWRHBXsKkt5i wO+UiOMvDoDMGIc/iuk/AnY/4jZznc/B3KJznVaV0Eb/95YERWNDtvLOJVuHc3DSATxV We4Ah/okB1xKxra1d8vNLWy2cWzmOeHWjDHk9QelILa6djInCR/b2u1r6/QKZTTfWmqH NsTNeXdFwXOdLo/4pLMb2Q+bT3lNrvzNop4STVTQ8DyJQS/uMO/gXcriPfNxUYRcPaY/ 3yerCEbZELuI85WjB1Hs8DapzpocfXIOAPTDnZkUoyW/cMxq7KzhH79BSWd/NxcJIdY4 T/VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lk4Ljw8GlLW88pVkE9qURLIq4yhPYEprsiuDBetWsdU=; b=Dc3mZL8YDTxOpKjF9JCc4oPqjY13QKhNscTCK89q0yk13nDLdiOfS1cSsyiS/PJpkf CuoXeesi52+L1yVBhxGcXHxeeINH1UncV/sZzG4+C+wSa0LFoj8/ciqNS/7pzxPoK98F aGnWvRMuaTrrn1tVgv49A6BxbDckhnXoE5rlp0yQBvK4o6gCN8o2nLma3nQXZ+nJDrnS 1bHcJgqz7cazf8iOE3CpAtDIOiHuvAla4ySKFtejri9jwmtv6oH+liE5po+U7rOzksoU xBchUP4Z5DkCb3Tf3229+47XQWd9XqrmHHAZNOXv6Yga0dsMb+TVEUt/b2uIBKb5E7pa Wtag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pOKuNzyO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q21si7019206plr.217.2022.01.21.14.21.59; Fri, 21 Jan 2022 14:22:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pOKuNzyO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376637AbiATP1l (ORCPT + 99 others); Thu, 20 Jan 2022 10:27:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231738AbiATP1k (ORCPT ); Thu, 20 Jan 2022 10:27:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A146C061574; Thu, 20 Jan 2022 07:27:40 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DBD2861840; Thu, 20 Jan 2022 15:27:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F58CC340E0; Thu, 20 Jan 2022 15:27:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642692459; bh=Pw9woOKfBVJV94yKFOUNOSr0Qw3ODqyl0O2HtAePtz0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pOKuNzyOrqoltMx1Os0/MBtmr/0Xb8E2I3GsmntkfouHLWh2rc+3eAmcf3brDY4+t Fbmu+22jcLD8zPsoLRItEYBxaFP/LmFrM+ZNY+7Hu6v4pDwNmCdQmOBa84URMALXbP t0P5+cQEQdYOBsE97ZNpat/tAti3jxnQ18Y+zs6Ym7qyCTeHef5hOeQzXZcVJInPwz /GVflmj6mwk/B0emQh9mlNzIvE/iVZ0lh8yVxwGOrRE3cwmSIjCH0KPcw3OPiUydMC Ey4aZayhMg8op0x5rg+6sjZW9YF+bJzBfJCR6vCSv/xPMKQ/4LpvFwVvlVpa42q4+2 EQV2Hzq9pBsJA== Date: Thu, 20 Jan 2022 07:27:36 -0800 From: Keith Busch To: Christoph Hellwig Cc: Jason Gunthorpe , Matthew Wilcox , linux-kernel@vger.kernel.org, Joao Martins , John Hubbard , Logan Gunthorpe , Ming Lei , linux-block@vger.kernel.org, netdev@vger.kernel.org, linux-mm@kvack.org, linux-rdma@vger.kernel.org, dri-devel@lists.freedesktop.org, nvdimm@lists.linux.dev Subject: Re: Phyr Starter Message-ID: <20220120152736.GB383746@dhcp-10-100-145-180.wdc.com> References: <20220111004126.GJ2328285@nvidia.com> <20220120135602.GA11223@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220120135602.GA11223@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2022 at 02:56:02PM +0100, Christoph Hellwig wrote: > - on the input side to dma mapping the bio_vecs (or phyrs) are chained > as bios or whatever the containing structure is. These already exist > and have infrastructure at least in the block layer > - on the output side I plan for two options: > > 1) we have a sane IOMMU and everyting will be coalesced into a > single dma_range. This requires setting the block layer > merge boundary to match the IOMMU page size, but that is > a very good thing to do anyway. It doesn't look like IOMMU page sizes are exported, or even necessarily consistently sized on at least one arch (power).