Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2516433pxb; Fri, 8 Oct 2021 09:18:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz1vHoL2mVEt5rM7eDt02WqSaGj9qXmP8nw49I7sgQ+isn4Xii98aaDFaBCVwFA28Cudsn X-Received: by 2002:a62:6544:0:b0:44b:508b:d05c with SMTP id z65-20020a626544000000b0044b508bd05cmr11320971pfb.56.1633709933953; Fri, 08 Oct 2021 09:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633709933; cv=none; d=google.com; s=arc-20160816; b=cMYEJISJGuF5DnuVdnUhFd1VR60uoyG92foKykBAnk5QyNxMcWzSdsrV18pDHD46nL JY/P3m17xmGd6RgTY7l7XOaEjsmvBifsC9qGKBxq1u1ycDCUpmVsWRZH9gtRptgKwB// a91407X3C+cX+oUxNRVjk0t1EXLQHninE4Z1xQPBZmZnbgiz/8Y9Kx1ap75MrPpxY5wf 9eSnel8tGfKzKBVrBXNyKh8w9T7JAHP/S21505PDGxrFDIdn8cbeAm/jxTwUSt0RVdDI ZgOsxvWx06/H2Pu2in+j2HSck7vO61Zg7UBFUqVpUnd9w/Ik7lP+LrhNdlWpjTYpI8bH rCAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=b+5+kBtwfDRburQzspNIhEoyzvyJZxbyGMP/rskqQDI=; b=Mu4VVwgVh38SQrIkdxmX4+kF/oeY8leJvipAVkpwEpnKvMkfXJlCxCRWZ/nwx0X2LU kD4FYzdQywh3vWiWpp/b8TPLLKp2TUX+2f+hc9hDDa+Y9rMre3NkTpbRBZ3C+nATJ8lK HSzlWnDRfLQ2LpR48faMXPcbQeiMk2Eh52BgQlAwhi/LBAUKKxQGEOppZ3QR585pi+3y r8brEoYY76i2kyuWfX/yfglzXZTv3k1O6T+7kbjJO32crsb66ojnd+TfE0d42DJJpmbl 9k1q/i84A4RLOd6o8K1Wnajt1zmGkqNHZKU8++Z6mEnrMOE0nz97D9jx++0sm7JudtPB t9fQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k189si3447761pgd.496.2021.10.08.09.18.35; Fri, 08 Oct 2021 09:18:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230282AbhJHQTf (ORCPT + 99 others); Fri, 8 Oct 2021 12:19:35 -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