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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44776C433EF for ; Fri, 8 Oct 2021 16:17:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C6926101E for ; Fri, 8 Oct 2021 16:17:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230312AbhJHQTg (ORCPT ); Fri, 8 Oct 2021 12:19:36 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3950 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbhJHQTf (ORCPT ); Fri, 8 Oct 2021 12:19:35 -0400 Received: from fraeml742-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4HQtYS34TPz67LYX; Sat, 9 Oct 2021 00:14:20 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml742-chm.china.huawei.com (10.206.15.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Fri, 8 Oct 2021 18:17:36 +0200 Received: from [10.47.80.141] (10.47.80.141) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Fri, 8 Oct 2021 17:17:35 +0100 Subject: Re: [PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast() To: Will Deacon CC: , , , , , , , , , , References: <1632477717-5254-1-git-send-email-john.garry@huawei.com> <1632477717-5254-2-git-send-email-john.garry@huawei.com> <20211004113121.GA27373@willie-the-truck> From: John Garry Message-ID: Date: Fri, 8 Oct 2021 17:20:05 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20211004113121.GA27373@willie-the-truck> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.80.141] X-ClientProxiedBy: lhreml744-chm.china.huawei.com (10.201.108.194) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/10/2021 12:31, Will Deacon wrote: > 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 Cheers > Any chance of an ack from the vdpa guys on the change to their code? Thanks, John