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=-4.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 51F27C07E9A for ; Wed, 14 Jul 2021 15:17:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1A66C6101D for ; Wed, 14 Jul 2021 15:17:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1A66C6101D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=a/p01Vzk8xNtxGU8jCe9E4H4djfBhvtkhulYeKOoZzQ=; b=YbBtJe4bqK0y3K R41LlEAzwhKxp6EoyqK0utg4ZuIoZ/kGk9l8y2BJzzWRq0UVaT+hdNdod27B6jkMMjmDatHrS/YnS 3utMRo8EslwOxeDT/vl/k8r9Pw07Rkk1KkcbL+skbBmB/988R2QPCMnt9o1/uvcmoS0SaQiM/Su/l pcJ0BJXj4h0VtjQ5XF5vcsD5U37gXZyuhKepcUphGn+i0GxjvW4fcmCi9SWCLirLY0JIBgVk6/S1v jKc5VIsquwJ42u0wczv6C8RNFCCxmpnrF4gVEkTNYVQYpZK5aCKT7PQtNEhZSJVtTsEy2Tprp5Edl 3inZgYGjBXzI8lJb38eg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3gbA-00Dwju-BI; Wed, 14 Jul 2021 15:14:56 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3gb3-00Dwii-2F for linux-arm-kernel@lists.infradead.org; Wed, 14 Jul 2021 15:14:50 +0000 Received: by mail-ot1-x336.google.com with SMTP id w8-20020a0568304108b02904b3da3d49e5so2852933ott.1 for ; Wed, 14 Jul 2021 08:14: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=SK5ol9tD8Cyos/BSEgRGBoZCY7rLNve44ubFBe8BFRreW3Joq7+tKv1dACdASQaF9U nz3kT4Wti1xuWaPzcuhezZB8tRuwM4dmRdVLhCyi0/RhxtTZV5p5Sti9KJZ45cHmKvPQ KIpFppftuMjLvdK+d2Te1EXcuaJkhhdElmRjh15GhqXnRUPZmfUJUGsYyco+TQ3eTxDB OVhu9zBgtEX/qCU1CNiDhMTq3SU5tvCbi1NJPHwHN8F4FS9u4uvRNFCNHETnpx69xh8t B6429BfklHURMzl3Plu+5rXqRLLVc92itcjh60LNSRUDYKGoDOt8TZ1ccNkFEhdPoLv3 FF7Q== X-Gm-Message-State: AOAM5327TVPkSrCC0B0oDFR48dYBEX5TNJeEHdSUuQelylJDxVgCfBmG l5TLTc0boYI1pLxCxc3m57NngljbGEnL8Q== X-Google-Smtp-Source: ABdhPJxdOPk8LKx1bLGUDYIAb1/YkJy4rOvmmtpiNHn3Kw1CxWCt7IpBoN5Zj4I/TrQA1NLnvB4dxA== X-Received: by 2002:a9d:7f14:: with SMTP id j20mr913630otq.82.1626275687215; Wed, 14 Jul 2021 08:14:47 -0700 (PDT) Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com. [209.85.210.53]) by smtp.gmail.com with ESMTPSA id 68sm466447ooj.19.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-f53.google.com with SMTP id f93-20020a9d03e60000b02904b1f1d7c5f4so2788447otf.9 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210714_081449_135194_02FA79D1 X-CRM114-Status: GOOD ( 24.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulf Hansson , Linux Doc Mailing List , Peter Zijlstra , linux-pci@vger.kernel.org, Konrad Dybcio , Jordan Crouse , Thierry Reding , Joel Fernandes , Rajat Jain , Will Deacon , Rob Clark , Sai Prakash Ranjan , Saravana Kannan , Jonathan Corbet , Joerg Roedel , quic_c_gdjako@quicinc.com, Linux ARM , Viresh Kumar , Veerabhadrarao Badiganti , "Paul E. McKenney" , linux-arm-msm , John Garry , Nicolin Chen , Bjorn Helgaas , Bjorn Andersson , Sonny Rao , Vlastimil Babka , Randy Dunlap , Linux MMC List , Adrian Hunter , LKML , "list@263.net:IOMMU DRIVERS" , Andrew Morton , "Maciej W. Rozycki" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel