Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp477320pxv; Wed, 14 Jul 2021 08:15:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH7eHXKFDF+xwseNEyzZLwXe8KQhVi6xjYUNCpoOL8UifRNTU7KJWJ2DCwiLQ5SJL2hRAL X-Received: by 2002:a05:6602:26d2:: with SMTP id g18mr4848317ioo.194.1626275727492; Wed, 14 Jul 2021 08:15:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626275727; cv=none; d=google.com; s=arc-20160816; b=DH6FgeO9mqUON3jmLFM8r47k++8+ogWTvApvYTsOTDdXMMXEzJXoN65uMsqQZz8s6w 14XtTlsW2orGihjg+GwENp07Sfgxe4abPohy6Jo/CgJfmLf0WajWHtXRKXIWyzKe5rdB I9z5Hq298Wyt7sqG37M163UFRDW0CQXkaKgyRO76clBgGXOhgJkh6CmXUdc1UMn5FBjS ppgLekIZjpFFv3vl/c9vatzH//stdsQ1xzEUY2lZfAiboSMtl2htSIqxl8ARGkM5Ug8V inBTdWI0p6xwAx8zIZH0WC0TOrpPun1qDpKakRLXqOFW/P9YUIBF8M/qw+qY1a4Hqu3g hGUw== 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=nA/s4q3xWQ1MrD5GGKsmBhEEWIQqKBBxr9yke92X18k=; b=hlyrUKVhQ9CUoQOgPc+S7/7rhNqD3NOCXG3Mp2XsZynxgi87SzQGMDTMpvqwQ37ako Cjb1ETBi0frVuPb//WIK6P61kt7qbHJtfuUGpCHEdbP41wa57q84iqYHq3SzWC8ICnZS FqMYpEPRNxAlThesY4h5tX15IMLo2G2FVcN3frx/cuJtQr6Rz9eXWbtwqHt1/QeXksZo 54tizCqunHtV8ZcDuQBgIeO+TCrdDHutVgu06ZioX0B2US8kGLNwug4IZfx+sq5acqMp lZY5AK54+z1iThehCLs1UKTMpcrtq975L3jQz8Wla+YMqYMWXdO7qeFlkOLayB6hU84x IyDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mASXKz3d; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si3074910jav.18.2021.07.14.08.15.15; Wed, 14 Jul 2021 08:15:27 -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=@chromium.org header.s=google header.b=mASXKz3d; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232373AbhGNPRk (ORCPT + 99 others); Wed, 14 Jul 2021 11:17:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232308AbhGNPRk (ORCPT ); Wed, 14 Jul 2021 11:17:40 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C35C061760 for ; Wed, 14 Jul 2021 08:14:48 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id l26so2620454oic.7 for ; Wed, 14 Jul 2021 08:14:48 -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=MeaDMARNRSRxf4q9auojEiE9yEH+RQ+oHCoVFiR92ZIAn++Vtf3Dkc2fEfh7JN4AmM Y98OLQO372lPlV4FwkR1jKBniTZjX5X+O8T33e7BarnmYN7TYaJKx/EQ8SV6PgRliSdc qK+59HMC+L0WcqqGDsiK1a+TSu2Z3OHHSVgIYPm6m7QeBhMwhJ2SAH/Jel1SrutP9bRH /9zq7C2JZrJ34JFVto3ZvfNxwCT+ANlbb7qS3ZRRWFn1fAHjQhSu2L75aVDrlhuezLdD PRA3hB0uOv1LQKzI6/s7fbpqAWuh4i13QJNZx+rtKtr+P28VnyIs4U9dImVuaNbBPRz4 i6fQ== X-Gm-Message-State: AOAM533CmgJcncuRvv5d9leUoPSIZVXZLgoSs7ZehxKJ8JRfFjtXyAAG EUlZr/ZmqsNpD9WMFf1UfzxhmVfMf1Tq0Q== X-Received: by 2002:a05:6808:138c:: with SMTP id c12mr7690704oiw.144.1626275687833; Wed, 14 Jul 2021 08:14:47 -0700 (PDT) Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com. [209.85.210.45]) by smtp.gmail.com with ESMTPSA id v3sm473396ood.16.2021.07.14.08.14.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jul 2021 08:14:46 -0700 (PDT) Received: by mail-ot1-f45.google.com with SMTP id 75-20020a9d08510000b02904acfe6bcccaso2778906oty.12 for ; Wed, 14 Jul 2021 08:14: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-kernel@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