Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2946051pxb; Fri, 8 Oct 2021 20:14:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqGOsib/FijZikf23cL1WBbXMSBXpRZ72ext/ysmowo5ekv0AR06v999+kBmFILE0RCm3Z X-Received: by 2002:a17:906:3699:: with SMTP id a25mr8892803ejc.452.1633749276308; Fri, 08 Oct 2021 20:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633749276; cv=none; d=google.com; s=arc-20160816; b=bvdUWkTm4hW1f6ydLJHb2UCXepgZZM5bcrHGQiAbVejjQkV7Sa/3W/ODstaQi63cKO K164sj1f5G7K9b6ejtmIrkGk2ybKCZGvdi8EyS7zv+w8O91gB2J4os7ORL1nDxdfkYGZ KxKfQSGY61LPAkWZ1lgFFTMTmQkL+KDE4u/b/553ftJLzkkCXjPrrKKxRPGygwXpdoBV ijqz7XNSx3e4e2VStrqPv8xb0/3klSE0VZPEfe7rypUOyUYplHyE4M2dGxtXcDOmZf+7 r+FwNKtlRsd5zduhlOIDMb7nRdAFsUycZrLJGUjUhjjaMPR/II1awXjmnGBwPDxL1Vhw k6Kg== 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=uZJSKNQy7a8ovN2pCX/SIRQeSc/Um892V8g+28sH3XA=; b=owJ7PG95Gg4ZmH7QkN2KR6kTPmQ7Cttf/Z8IgEn/w37TQUObHyXdlpX4iL5ADO9HFv DD5b2T4kBXorqDCBTeIVwcimTK+8AjHHE+2d3YUDYNAXYddp3cDbUG3C4e6N9ohCoXbu SaYnWdu/gb/HU0v9VaXe++RATDbuBtSDXL/xnRxllzIHugdLI0iEx0moybBCM64T9hfW BKNaFNp/1Xad7o+yoB/FsDAkVZDKUkYs+PnwEM0GLDvTYUEBwQPslc2yaGDZYM1dbrTL OQmmM1qrBA44TsKvqsOyoI7X6oMS4VrC9pivVuFZVRL20b+A4VlI2JdVHxnl5Pq+ZzQr gATg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=lT0XHcI0; 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=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c30si1975033ejj.786.2021.10.08.20.14.12; Fri, 08 Oct 2021 20:14:36 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=lT0XHcI0; 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=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244176AbhJIDOp (ORCPT + 99 others); Fri, 8 Oct 2021 23:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230400AbhJIDOo (ORCPT ); Fri, 8 Oct 2021 23:14:44 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE3ADC061570 for ; Fri, 8 Oct 2021 20:12:47 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id a25so27344128edx.8 for ; Fri, 08 Oct 2021 20:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uZJSKNQy7a8ovN2pCX/SIRQeSc/Um892V8g+28sH3XA=; b=lT0XHcI0TpH/LmGXnyBS7lKQ0yndi6kYlSOIR9ohcRIAzMmzV4O7HFw6PRcyAFMJXV 35ArbQiNBCejnBog+t7kKjHoNrpR9NijO6og5azj8BPmFZm0NWz3j7C/nXtz3AouncSK G4fzggKwjqvLs1yoJXXIp4fkMaQOrdwALv6soCcVS1OyJjfH+AF2BFHM26n+9+5sUp4N LynSO2PuCTmHyMYlgsTcUcLZCjuTnPVTq+hTyWMMKV2D5FXufSXJxbnjIkAMD3d3Sx4l vexDI+c2w4AUuh56kwhKnK7GJsZ29iFUsxr/7pXEExZYf+H/2IbwzQ0UGhTqkxdGi46T Xkgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uZJSKNQy7a8ovN2pCX/SIRQeSc/Um892V8g+28sH3XA=; b=gevJO8b2Ey3f441uu9H6oGIlfsBX/uFz/+YN9j9JaqPUeU8c9DjwiEmVMj9WwiVQY+ fwEA5yY/c2vt8NBBN/TFNpi8oK5zBeSUiRJwAx45GICOKhb4jydIFo5Y9iQ7QMPN4SIw FAtY6PoD1xIoyn7N57bHR0YqSMboqJcG+RXIZIo6f+TZmvTq/5JCwajxtT90vR9sD7X7 BRfGTf6CDLTCdYUOrp3DQN+2JjGu1VDwj9X0/tqhyxtCdOQ0qR7tB4FD6t2ZyHJCdnZ+ Ik00ZW8ex5hVGXZ4ALeWmM6nf0pmlYdhFTuLRqgsnVAPo/r1YHa/CvJJ5HCIqpL3/4/W sbsg== X-Gm-Message-State: AOAM531g5xDKu+HA/4i4RlRN+L86L4Us5zzkxpm/rGFbz8Amu8WlY9kL EK8jOGAp+3vhh5qOuIo4xecPxpS8K0oIkYqmrqnC X-Received: by 2002:a17:906:5590:: with SMTP id y16mr8914091ejp.286.1633749165008; Fri, 08 Oct 2021 20:12:45 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Yongji Xie Date: Sat, 9 Oct 2021 11:12:34 +0800 Message-ID: Subject: Re: [PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast() To: John Garry Cc: Will Deacon , joro@8bytes.org, "Michael S. Tsirkin" , Jason Wang , Robin Murphy , linux-kernel , iommu@lists.linux-foundation.org, virtualization , linuxarm@huawei.com, thunder.leizhen@huawei.com, baolu.lu@linux.intel.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 9, 2021 at 12:17 AM John Garry wrote: > > 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? > Looks good to me. Reviewed-by: Xie Yongji Thanks, Yongji