Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3971844pxj; Mon, 24 May 2021 20:13:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzs10BHuAcsUjAZp39OMZzjPm1NfOA6zqtdZr9z2WWun+CkJAK20KKvC9Rt7VCkWgf4C1Rk X-Received: by 2002:a17:906:9155:: with SMTP id y21mr23910250ejw.148.1621912409753; Mon, 24 May 2021 20:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621912409; cv=none; d=google.com; s=arc-20160816; b=n6g7iRZqLs+8DCsJ0WydjiTQMBvHMRZM1LuIQBAYLaKmvdAphbvv2HbL9hKkZGb3Rz QAqoBCi6vfU7k9aYT5GFgcQze615Ph2Xz7QKvqrcgV2ZG6luBrXAjWH9No0NnZJp+bC0 c2BGEngeSiA6WPM617Xz7m9jNa6uqG32mEf1e7zh/ieRzVrPTSjm8aU5XceYIG4MqG+B bp2sSra211oltPkP126DZZV4C3YR0VvW1s69OyxvLA7R1+cpnDSCXQtTA6cHkcy1Iwab X3qddk6mervt4diSYzHjGm3kppFjHXNfBTtNIbN30emBLkfHObDCNqzsgmt/lA4qKOuf t7Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=UUICKcc/sKdAjzKNgq2l5eqYx+k5eTShYrWAkwN1nE8=; b=UQ2KdYnVaVufJGMvis3t/XBaiFaYDNte39iTL3k6VHZfvs6bkn7F9NMswItWC4wy68 HiQEsD4x2nLb2Ta7yXKd3DTd2LBfHlfDQHwOZngo6USb36rzsSo/BwnN8S0/VqMSzmKE SmyvLYop7Jgq6JBrQn2ZEmh9tyi83RWbuu7CxBEj7wVipJJ+HBYaW8dacbvdnYh31Jjh KKKa4pZ4G3sUqKWljXDA6+jkqdDadnoExkPmH0MFVRZVV0XIuy5TYguzQzaYho55KMLA S2D6EN3ckUEz7c2DQnPPENTdFiodyjCWf5+KxV0T6P7XYAOZ+lOzywivvGwtSrgwEjj2 iZpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TELw0+2U; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b1si16919360ejb.448.2021.05.24.20.13.06; Mon, 24 May 2021 20:13:29 -0700 (PDT) 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=@chromium.org header.s=google header.b=TELw0+2U; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229718AbhEYDKT (ORCPT + 99 others); Mon, 24 May 2021 23:10:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229551AbhEYDKT (ORCPT ); Mon, 24 May 2021 23:10:19 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41E04C061574 for ; Mon, 24 May 2021 20:08:49 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id j184so7047464qkd.6 for ; Mon, 24 May 2021 20:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UUICKcc/sKdAjzKNgq2l5eqYx+k5eTShYrWAkwN1nE8=; b=TELw0+2UEzjgBQgY3N9cHf7cvJQg4x1GF5jHbOj/Xhbu2EVYn5hJJdXJJYpk6Mpk8G l2k+90bOTlHqSiuws+ej9C6F14blJi9bSItZInf5oUYtu07o9RuIUrgGf8YFYR9loGpy S0ow3K1ouDjzn61e3PW37PZcm998eK6VcTTFc= 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=UUICKcc/sKdAjzKNgq2l5eqYx+k5eTShYrWAkwN1nE8=; b=A6T2Oi8MIGenP0//k3SntnETss3aDQyIh9k0Eud69jglH+K29JlNSUFzWV5gAhbZNH uFduLOKwJVKkxwvc9tR8D2DB8meoP0pwu1+FODPbdXduSCCplGq9Tm/aSTyPR4Cm5KQb PPS/HqwjO5GxlbwNKZc8vnGuZg+Q2MyHyRkRvYTauUm2QnwSNM/yWhB785+TeK9FQnox /uQdvapcWEWBcwfDRLnimhZYc/tLk0hFhdz70/GBHkaNWU0OOCQBB0W+4WIFLns38GCt 6q1NISyDn8li/J0hWyVf2QYgjbnKrRTyHPf/Lt05k/PZqacIY6jAlEaWPXBeMzW/mE46 KsMw== X-Gm-Message-State: AOAM532PzaZ4IrOsl+rrCK6lnSRRw0wCLd9ogSYhgjgFnLsYcFO+1jjb UUB5YBTj8DVKV+55xCwRP5yQyK9WxtqEeQ== X-Received: by 2002:a37:e205:: with SMTP id g5mr33222860qki.449.1621912127376; Mon, 24 May 2021 20:08:47 -0700 (PDT) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com. [209.85.222.170]) by smtp.gmail.com with ESMTPSA id t11sm12576232qkm.123.2021.05.24.20.08.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 20:08:46 -0700 (PDT) Received: by mail-qk1-f170.google.com with SMTP id j184so7047360qkd.6 for ; Mon, 24 May 2021 20:08:44 -0700 (PDT) X-Received: by 2002:a05:6638:22b4:: with SMTP id z20mr26846805jas.128.1621912112776; Mon, 24 May 2021 20:08:32 -0700 (PDT) MIME-Version: 1.0 References: <20210518064215.2856977-1-tientzu@chromium.org> <20210518064215.2856977-5-tientzu@chromium.org> In-Reply-To: From: Claire Chang Date: Tue, 25 May 2021 11:08:21 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 04/15] swiotlb: Add restricted DMA pool initialization To: Konrad Rzeszutek Wilk Cc: Rob Herring , mpe@ellerman.id.au, Joerg Roedel , Will Deacon , Frank Rowand , boris.ostrovsky@oracle.com, jgross@suse.com, Christoph Hellwig , Marek Szyprowski , benh@kernel.crashing.org, paulus@samba.org, "list@263.net:IOMMU DRIVERS" , sstabellini@kernel.org, Robin Murphy , grant.likely@arm.com, xypron.glpk@gmx.de, Thierry Reding , mingo@kernel.org, bauerman@linux.ibm.com, peterz@infradead.org, Greg KH , Saravana Kannan , "Rafael J . Wysocki" , heikki.krogerus@linux.intel.com, Andy Shevchenko , Randy Dunlap , Dan Williams , Bartosz Golaszewski , linux-devicetree , lkml , linuxppc-dev@lists.ozlabs.org, xen-devel@lists.xenproject.org, Nicolas Boichat , Jim Quinlan , Tomasz Figa , bskeggs@redhat.com, Bjorn Helgaas , chris@chris-wilson.co.uk, Daniel Vetter , airlied@linux.ie, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, jani.nikula@linux.intel.com, Jianxiong Gao , joonas.lahtinen@linux.intel.com, linux-pci@vger.kernel.org, maarten.lankhorst@linux.intel.com, matthew.auld@intel.com, rodrigo.vivi@intel.com, thomas.hellstrom@linux.intel.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 24, 2021 at 11:49 PM Konrad Rzeszutek Wilk wrote: > > On Tue, May 18, 2021 at 02:48:35PM +0800, Claire Chang wrote: > > I didn't move this to a separate file because I feel it might be > > confusing for swiotlb_alloc/free (and need more functions to be > > non-static). > > Maybe instead of moving to a separate file, we can try to come up with > > a better naming? > > I think you are referring to: > > rmem_swiotlb_setup > > ? Yes, and the following swiotlb_alloc/free. > > Which is ARM specific and inside the generic code? > > > > Christopher wants to unify it in all the code so there is one single > source, but the "you seperate arch code out from generic" saying > makes me want to move it out. > > I agree that if you move it out from generic to arch-specific we have to > expose more of the swiotlb functions, which will undo's Christopher > cleanup code. > > How about this - lets leave it as is now, and when there are more > use-cases we can revisit it and then if need to move the code? > Ok! Sounds good!