Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3541730pxb; Mon, 4 Oct 2021 04:42:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHAMmsmI6lAoZ20c/JOmXMKwOsxA0HsaLsdl37PJFhmXglUYERgOEFTtkttQc/s7ZLsvJL X-Received: by 2002:a17:906:645:: with SMTP id t5mr16730548ejb.163.1633347763949; Mon, 04 Oct 2021 04:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633347763; cv=none; d=google.com; s=arc-20160816; b=Y/b+CaMN3vi4Sgvj4v+f7SMIe7kMxHfa0rXk5ehWNVQo8t17lkbUwtok9o5v93enGX FrvfCEf/JqdqLE9ocbO65LktJ7cqMkoR9xKSG9C5sMjxOQU8iRrnfgmPxX/J5eQc/f/H bpNuR5H1I6ZSUxn2S1ZE6mfiWYCKPfCcSO3Ug4abjskP4fNefcfo732Y44O836xGOpaE jZljuKQk2rlkEusTFT7BCMuNAmNbyNPB/yPMVlZPnbu84IN/WpYP9VHfLidALaR1LRZK slOSLc1LqksHmzA1m65Y0cEvGM6Lvh6PPF7r3tAUN7GvlcAxj7Yq7lscbnj8GCdAsUK4 BVyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cSSFfZKrjXxTRuI38Y0yKT35q0BONWBo8gILK0l1z9o=; b=J7ICMoFXm99RsKXoPDasFkHdeyCWb0aFp5R+hkeywcizEK1AMx+u7Y4oQfnwGY8Saw pKWOHVQtwSKp2oG9RqXrBL8f+7itdViQobiS4UAE9Yke0JHDZ4iq6kP8fxuBLWIsBfoG n2Qed+4Rg6aK3xGJC/77wj5waOU5XtYjZx5oRxXmb9EI83jnEQodR+Vm7wmiL0aeMO8R RyQE2fKuAJUiybocSrNM2I8nKbCS4nQSaqx6lBpIH7ZPDzgYOb5TF0YEmBeSUEEDiPuh 2LYiB5Jt9NJuDzt4oxzR1vN71FyGKnvIawWENXAO37s3lgWZFyfTuns32JEWnibUIq02 b00A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jhFX7IxC; 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 f22si16903129ejj.770.2021.10.04.04.42.20; Mon, 04 Oct 2021 04:42:43 -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=@kernel.org header.s=k20201202 header.b=jhFX7IxC; 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 S232995AbhJDLdQ (ORCPT + 99 others); Mon, 4 Oct 2021 07:33:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:36500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232978AbhJDLdP (ORCPT ); Mon, 4 Oct 2021 07:33:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 389166126A; Mon, 4 Oct 2021 11:31:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633347087; bh=9eIlIsfHP4knhIwYLjRza2zeq4D4+bTC9yyALw6VTm8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jhFX7IxCrBvKVHXdciM4UfP5k4cacZRr1l06EUPGJXrcOuYunFNiT4xMiLyuZCT42 KDxOue4JEnyYteWXJmd0fWgHOj9NdG+vEp/JiJn9DVWVmvSQf+gEnpGN8TdRwYmEtZ K/Gw5H5WxgrKuM1LBoIj8H/j+0alUyW4rbigV0ZMFx+s66MgILJQ/bT9xf7oeItxeh 81Ix7t4dclBKnzEmOPGgs+HZT6BHPhVefzfHy+Q+JuobaPA/wy2AiRq7o8EyE2YYiD 0RDRy2AA046P+g1nby14u6nUPJSMLI2ovH/0SnWjPj8nxB1hsPIpW33g7nChVl2zWA p6lOfMXB3P2wQ== Date: Mon, 4 Oct 2021 12:31:21 +0100 From: Will Deacon To: John Garry Cc: joro@8bytes.org, mst@redhat.com, jasowang@redhat.com, robin.murphy@arm.com, xieyongji@bytedance.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, virtualization@lists.linux-foundation.org, linuxarm@huawei.com, thunder.leizhen@huawei.com, baolu.lu@linux.intel.com Subject: Re: [PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast() Message-ID: <20211004113121.GA27373@willie-the-truck> References: <1632477717-5254-1-git-send-email-john.garry@huawei.com> <1632477717-5254-2-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1632477717-5254-2-git-send-email-john.garry@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 24, 2021 at 06:01:53PM +0800, John Garry wrote: > It really is a property of the IOVA rcache code that we need to alloc a > power-of-2 size, so relocate the functionality to resize into > alloc_iova_fast(), rather than the callsites. > > Signed-off-by: John Garry > --- > drivers/iommu/dma-iommu.c | 8 -------- > drivers/iommu/iova.c | 9 +++++++++ > drivers/vdpa/vdpa_user/iova_domain.c | 8 -------- > 3 files changed, 9 insertions(+), 16 deletions(-) Acked-by: Will Deacon Will