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 95681C07E9A for ; Wed, 14 Jul 2021 15:14:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 73821613B6 for ; Wed, 14 Jul 2021 15:14:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239570AbhGNPRa (ORCPT ); Wed, 14 Jul 2021 11:17:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239533AbhGNPR2 (ORCPT ); Wed, 14 Jul 2021 11:17:28 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 405F6C06175F for ; Wed, 14 Jul 2021 08:14:37 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id 23so1934195qke.0 for ; Wed, 14 Jul 2021 08:14:37 -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=J70CFhTh7WE5QNVqTbky+t2DQahZ0uxhnZ/rRLWz9jNmSZxHyDIof+HLZZGa9jZGfu CjxJl2eqTw0/Qqvq49t4XOnO1PFMFbgAVYc38q3uabejyFsFtFGzqj6oQKmnkzHcfkC9 lIQHf0NzUDeAFROVNxjri5i3e83RijhXdwMvw5FIZOKeQ1qLvRdMBJak/CiMMJ4GxyL7 bTZDlk/Ow5rpaSw3M0VREdgBzyWwLC4/n+vKGUxQjaypVCx2RgEmuqtFcwpSK2y9gfWY KtRz6Na4+sPFf4orIsAzSWZKXW7b+ugzYvC0pGVSa3Pbf9TlOWa4il66KQ1DhVn0xSSa fmPA== X-Gm-Message-State: AOAM533A7P9ESITJtp1+EjkriLwqgksE4ciOi7KbWF+SDdE+64HB4nuE XMQ/c/bWcG7p4Um9gSqOFnZXHutj4MnBWQ== X-Google-Smtp-Source: ABdhPJzy7PLG+ZyvE3pELRiF/wLqJRm+Rdmd5HxyeV2+e6azC9AxFXTmzF51UwY3geHx+8KkpgDelA== X-Received: by 2002:a05:620a:15b9:: with SMTP id f25mr10639375qkk.242.1626275676473; Wed, 14 Jul 2021 08:14:36 -0700 (PDT) Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com. [209.85.219.180]) by smtp.gmail.com with ESMTPSA id x22sm897124qto.34.2021.07.14.08.14.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jul 2021 08:14:36 -0700 (PDT) Received: by mail-yb1-f180.google.com with SMTP id k184so3685595ybf.12 for ; Wed, 14 Jul 2021 08:14:36 -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-arm-msm@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