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 X-Spam-Level: X-Spam-Status: No, score=-6.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18450C07E9A for ; Wed, 14 Jul 2021 15:19:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0019C613C5 for ; Wed, 14 Jul 2021 15:19:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232406AbhGNPWk (ORCPT ); Wed, 14 Jul 2021 11:22:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232308AbhGNPWk (ORCPT ); Wed, 14 Jul 2021 11:22:40 -0400 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAD0CC06175F for ; Wed, 14 Jul 2021 08:19:47 -0700 (PDT) Received: by mail-ot1-x334.google.com with SMTP id f12-20020a056830204cb029048bcf4c6bd9so2822458otp.8 for ; Wed, 14 Jul 2021 08:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nA/s4q3xWQ1MrD5GGKsmBhEEWIQqKBBxr9yke92X18k=; b=mASXKz3d4VxWdnOhtRGY9xdrq/pnCp4byEIzOE6gDPLvnRfO+Yqrkf1jTieiwkodkW lFdpPmwssfHbKute20ufcT2hcU02WypCA1mZDs+33eSDPrKZlsQYs4fEQWY9YTV3uj5m oXPDRyB6DxUGa4iH1DK+CseeVPprdDb49bAbg= 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=nA/s4q3xWQ1MrD5GGKsmBhEEWIQqKBBxr9yke92X18k=; b=FNpcyDZLcIAqqH/RbbrWIxLD0vZMS89CNbftktKlmF4Jo1zHnTS7ou7CoMXD0vYDw8 NL4eKMPKTT95oSMoauICJGg+GWiqmcejniC+0/+vk64D8jQEVb+rZfBewvbhtw4jtUKd VLfvA1p2Q0HS4C5+IT6yRmlcNy4fH7GvBWYqvvAha7t4z7r43XNoQCEhaOTSmbq5wMMm eIwSqv94TcFP6nSrBUDsuFXYkGjyP7uxI2URt00c8xU+uUjJ7BmUZbVjPL8M93JEOUA3 WzgWqHztMvLP7PxrA+lcZ9CuFaRQ4wrGK3wds1HX0l0TefogMY2590ylraqvLPb4OLH+ cyFg== X-Gm-Message-State: AOAM5324r5h26HiNsK6/uLjKPnzORsG3uj8rfaw1UHdtnS9ZjCD3bxju WO+lwnZwPbvqe3tmAgd3ajHnMzVFi+TFzA== X-Google-Smtp-Source: ABdhPJzbBCJMoO5CfkJV90lh7WawD0mkB4PL9T9Ir06PTqG6TmkAoRRIc+YKPhugXLuBZQnGSmsc6A== X-Received: by 2002:a05:6830:447:: with SMTP id d7mr952497otc.253.1626275987205; Wed, 14 Jul 2021 08:19:47 -0700 (PDT) Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com. [209.85.210.47]) by smtp.gmail.com with ESMTPSA id a44sm469723ooj.12.2021.07.14.08.19.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jul 2021 08:19:46 -0700 (PDT) Received: by mail-ot1-f47.google.com with SMTP id 59-20020a9d0ac10000b0290462f0ab0800so2810355otq.11 for ; Wed, 14 Jul 2021 08:19:46 -0700 (PDT) X-Received: by 2002:a25:8082:: with SMTP id n2mr13261292ybk.79.1626275675582; Wed, 14 Jul 2021 08:14:35 -0700 (PDT) MIME-Version: 1.0 References: <20210624171759.4125094-1-dianders@chromium.org> In-Reply-To: From: Doug Anderson Date: Wed, 14 Jul 2021 08:14:24 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/3] iommu: Enable non-strict DMA on QCom SD/MMC To: Robin Murphy Cc: Joerg Roedel , Will Deacon , Bjorn Andersson , Ulf Hansson , Adrian Hunter , Bjorn Helgaas , John Garry , Rob Clark , quic_c_gdjako@quicinc.com, Saravana Kannan , Rajat Jain , Sai Prakash Ranjan , Veerabhadrarao Badiganti , Linux MMC List , linux-arm-msm , linux-pci@vger.kernel.org, "list@263.net:IOMMU DRIVERS" , Sonny Rao , Joel Fernandes , Andrew Morton , Jonathan Corbet , Jordan Crouse , Konrad Dybcio , Krishna Reddy , "Maciej W. Rozycki" , Nicolin Chen , "Paul E. McKenney" , Peter Zijlstra , Randy Dunlap , Thierry Reding , Viresh Kumar , Vlastimil Babka , Linux ARM , Linux Doc Mailing List , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Hi, On Tue, Jul 13, 2021 at 11:07 AM Robin Murphy wrote: > > On 2021-07-08 15:36, Doug Anderson wrote: > [...] > >> Or document for the users that want performance how to > >> change the setting, so that they can decide. > > > > Pushing this to the users can make sense for a Linux distribution but > > probably less sense for an embedded platform. So I'm happy to make > > some way for a user to override this (like via kernel command line), > > but I also strongly believe there should be a default that users don't > > have to futz with that we think is correct. > > FYI I did make progress on the "punt it to userspace" approach. I'm not > posting it even as an RFC yet because I still need to set up a machine > to try actually testing any of it (it's almost certainly broken > somewhere), but in the end it comes out looking surprisingly not too bad > overall. If you're curious to take a look in the meantime I put it here: > > https://gitlab.arm.com/linux-arm/linux-rm/-/commits/iommu/fq Being able to change this at runtime through sysfs sounds great and it fills all the needs I'm aware of, thanks! In Chrome OS we can just use this with some udev rules and get everything we need. I'm happy to give this a spin when you're ready for extra testing. -Doug