Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1409262pxk; Fri, 25 Sep 2020 14:06:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4AvWcF+q1zDTvz9AcKs4jFzaTtFNSei1E4/7OvE5GwnqURiYWBNNzvJvEFU4d/J3FQkxY X-Received: by 2002:a17:906:37c6:: with SMTP id o6mr4833140ejc.404.1601067993817; Fri, 25 Sep 2020 14:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601067993; cv=none; d=google.com; s=arc-20160816; b=eWwbKAlFebApSNQP2UeYTXcPLcAnPrsmA7L8ILghKpk3RKjxG6GCgqfjRzHkmoqZc1 32inBnlCUOiXLOHFEwxWRimZajR+o6NlfSI8/tzTGG5KX8vUm6I0kpZmcY3H3haosX7M k9ls3Ly5xAJovhz+2nPQ4/A0SDxQRLKiprwFhmrb6mmvPKQci2P7NvjJ/spKxqrLLWPx AyqLpJnd+BskWO23E7LGr8bmLe3MwVgrCN5iJ+yWO4hh7SytxBfJFYZYGFAn4m8aSa8Q fBeDkgURgHs7A2NUQ1PsB3ONibd0HFJZ1EyE5f4v7TSLGPxg3Uw8lO0hF4RCVevbvll7 mZ9g== 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=3JF4yPnp4JTi+/MHrKogyuI7nkofHddgH0FgyoYHlHs=; b=Cq/mF8Tc9Y2wSPzIw43R1HqTvyKpMUPL+LNjlSFRXMpbt1bi2raiND+egh45KCuQoY DAlM1RaiN+1Bf/Zx2n6nq5vwEVbSpPeKWUcEcN7yGsU3rFFhhI89bH0wDFEnzN1TkxYQ t89ZfNLbZqTCStPpmLz7QCjoVbhOlZV4qQp65YZTjw1rq3KSHUR8RwcFtVqn/QISo324 gc9F2tJnRh2Lv2tjZSdUjctb+hpnL1ivegVL9sXRM1GEO3WVSrv5e2MS2aXTxWhnLYGX c0UXBbS5W+hQHJoKnu2bvB0XDWkjd1x/lB3R2GK32YfkcE6ym6wVgRgUboUvtv4kUnoS b8Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XOq9Hu0z; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc16si2839742edb.65.2020.09.25.14.06.10; Fri, 25 Sep 2020 14:06:33 -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=@gmail.com header.s=20161025 header.b=XOq9Hu0z; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727201AbgIYVDg (ORCPT + 99 others); Fri, 25 Sep 2020 17:03:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbgIYVDf (ORCPT ); Fri, 25 Sep 2020 17:03:35 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 045EFC0613A5 for ; Fri, 25 Sep 2020 12:26:41 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id y13so4113508iow.4 for ; Fri, 25 Sep 2020 12:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3JF4yPnp4JTi+/MHrKogyuI7nkofHddgH0FgyoYHlHs=; b=XOq9Hu0z7Nxjy9g8sQ2fSc81MwUTKAUr3ZzhcXAWaeHtwyEvMCnbKn72/LcWYkQcfe WsFKuG5/1Btxz1BOkSskKM2EUzlfjsIZputb/hZzGyVMUGFjsufth7k91D5pYMbn+jgm rmzwLTK5Jq05XvjHfLhpwPNgIBlxUoKEWE82cvI+MjdA8BhKcOBFUg/GTFcLnMtIjJVz KLW2QrDkW0SZaY9fsSZ8StcvjR+jBxLmcL22m0n1KoSRIgwQ50TsN4w9mBEjqh8toatD JqiOLsaSCa+2cQGBWWCUtsuRQEI73oolekAdIVvtXNdXC+HJIooD+ctlAkc12y5KcaUH o5ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3JF4yPnp4JTi+/MHrKogyuI7nkofHddgH0FgyoYHlHs=; b=M007k0btQy8eT7ezfmgFPnVzfwX8ftTys4rgYh9bAv0Q9tN9YnLcGC4v+/3ewd04rF sg/KLmIrxw7mueT+FvgPiI59JaurKbllbvrnjkotV8G+63vEfnde3yHvkbPsStT0644V wTFyinwBOF0ZWKsfup2B8H3EAybZMjQA8bKkosxrZJDbUUJ1Eq2kx5Fe/LFqLnH1xudb DY6ny+6d4BWloAihM7ysHtfoIbavUyY0/GiEQxAAqHgC9xXApQ6ND82f2AGGGTBdfKTh G8QhEAqnXc9OHqXZPC+2fTc3UXNQH1J8rS2CGlMpI2bwoMAuP7XzWC2yU0QsPhWOmZg4 KUQQ== X-Gm-Message-State: AOAM530dV11gHaAEjSuH8ctHbvKq8uXI3bITd0TOWSAD03df4kX7AJ3O 2tnRMFqn6MDSHHPy8IbN6oY6NluOsQYjazi8Ff8= X-Received: by 2002:a02:b199:: with SMTP id t25mr494691jah.124.1601062000321; Fri, 25 Sep 2020 12:26:40 -0700 (PDT) MIME-Version: 1.0 References: <1601027469-221812-1-git-send-email-john.garry@huawei.com> In-Reply-To: <1601027469-221812-1-git-send-email-john.garry@huawei.com> From: Cong Wang Date: Fri, 25 Sep 2020 12:26:28 -0700 Message-ID: Subject: Re: [PATCH 0/2] iommu/iova: Solve longterm IOVA issue To: John Garry Cc: Joerg Roedel , Robin Murphy , iommu@lists.linux-foundation.org, LKML , chenxiang , linuxarm@huawei.com, thunder.leizhen@huawei.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 25, 2020 at 2:56 AM John Garry wrote: > > This series contains a patch to solve the longterm IOVA issue which > leizhen originally tried to address at [0]. > > I also included the small optimisation from Cong Wang, which never seems > to be have been accepted [1]. There was some debate of the other patches > in that series, but this one is quite straightforward. > > @Cong Wang, Please resend your series if prefer I didn't upstream your > patch. Thanks for letting me know. But I still don't think it is worth any effort, given it is hard to work with Robin. Users who care about latency here should just disable IOMMU, it is really hard to optimize IOVA cache performance to catch up with !IOMMU case. So, please feel free to carry it on your own, I have no problem with it. Thanks.