From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00B49C433DF for ; Thu, 23 Jul 2020 11:45:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C09D02080D for ; Thu, 23 Jul 2020 11:45:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XHXAB6QN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C09D02080D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:Reply-To:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=inMQqVkFUFfU8rhPQBYfz9AhoyRIhVm05slR3iCMkX0=; b=XHXAB6QNrRB7koMJ/mZCl+csR/ rIo3CGefCrtKqrnLl58ZYy0f8j2tEyI4ARA551rlQIBgFSCrZkWvkA5etZljuQjSwGu89w8OAUuBI Xzz6MBzzDGDLr8V5VffHzYDJblf2rf1lpKBXwXaFD+KWjW40i0LExwcE0DYUgZ8x8jgEqKDQD/RWW u7oN/0mKjPFq3c3lbtwKqRNF3wGoVbRYJYfmigF2bt5nCQYiPbgLdgI2Xpa23XvjWPvsIUTXuxoZj Y0WOTAdvskI5VLvUKKxGrKJMCYXFW+8cCFzAzn4sGLWa0I1I5wlWUeVr4FmTmyFLX3CpGCXQJ1y1A HeVylqIQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyZe8-0004WK-Pw; Thu, 23 Jul 2020 11:44:20 +0000 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jyZe6-0004VR-B4 for linux-arm-kernel@lists.infradead.org; Thu, 23 Jul 2020 11:44:19 +0000 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R101e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04394; MF=baolin.wang@linux.alibaba.com; NM=1; PH=DS; RN=20; SR=0; TI=SMTPD_---0U3a0ySa_1595504212; Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0U3a0ySa_1595504212) by smtp.aliyun-inc.com(127.0.0.1); Thu, 23 Jul 2020 19:36:52 +0800 Date: Thu, 23 Jul 2020 19:36:52 +0800 From: Baolin Wang To: Will Deacon Subject: Re: [PATCH v2 2/2] iommu: Add gfp parameter to io_pgtable_ops->map() Message-ID: <20200723113652.GA104096@VM20190228-100.tbsite.net> References: <3093df4cb95497aaf713fca623ce4ecebb197c2e.1591930156.git.baolin.wang@linux.alibaba.com> <20200714082821.GC4516@willie-the-truck> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200714082821.GC4516@willie-the-truck> User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200723_074418_613362_586471AF X-CRM114-Status: GOOD ( 15.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Baolin Wang Cc: robh@kernel.org, linux-kernel@vger.kernel.org, tomeu.vizoso@collabora.com, airlied@linux.ie, linux-arm-msm@vger.kernel.org, joro@8bytes.org, iommu@lists.linux-foundation.org, dri-devel@lists.freedesktop.org, bjorn.andersson@linaro.org, baolin.wang7@gmail.com, robdclark@gmail.com, agross@kernel.org, linux-mediatek@lists.infradead.org, alyssa.rosenzweig@collabora.com, daniel@ffwll.ch, matthias.bgg@gmail.com, steven.price@arm.com, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jul 14, 2020 at 09:28:21AM +0100, Will Deacon wrote: > On Fri, Jun 12, 2020 at 11:39:55AM +0800, Baolin Wang wrote: > > Now the ARM page tables are always allocated by GFP_ATOMIC parameter, > > but the iommu_ops->map() function has been added a gfp_t parameter by > > commit 781ca2de89ba ("iommu: Add gfp parameter to iommu_ops::map"), > > thus io_pgtable_ops->map() should use the gfp parameter passed from > > iommu_ops->map() to allocate page pages, which can avoid wasting the > > memory allocators atomic pools for some non-atomic contexts. > > > > Signed-off-by: Baolin Wang > > --- > > drivers/gpu/drm/panfrost/panfrost_mmu.c | 2 +- > > drivers/iommu/arm-smmu-v3.c | 2 +- > > drivers/iommu/arm-smmu.c | 2 +- > > drivers/iommu/io-pgtable-arm-v7s.c | 18 +++++++++--------- > > drivers/iommu/io-pgtable-arm.c | 18 +++++++++--------- > > drivers/iommu/ipmmu-vmsa.c | 2 +- > > drivers/iommu/msm_iommu.c | 2 +- > > drivers/iommu/mtk_iommu.c | 2 +- > > drivers/iommu/qcom_iommu.c | 2 +- > > include/linux/io-pgtable.h | 2 +- > > 10 files changed, 26 insertions(+), 26 deletions(-) > > I was a bit nervous about us passing GFP_KERNEL with a spinlock held, but > it looks like you've checked all the callsites and it looks fine to me, so: > > Acked-by: Will Deacon > > Joerg -- not sure what you want to do with this one, as it's likely to > conflict (trivially) with unrelated driver changes. Thanks Will. Joerg, could you apply this 2 patches if no objection from your side? Thanks. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel