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 79264C11F66 for ; Wed, 14 Jul 2021 15:14:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 638806101D for ; Wed, 14 Jul 2021 15:14:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239545AbhGNPRb (ORCPT ); Wed, 14 Jul 2021 11:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239533AbhGNPRa (ORCPT ); Wed, 14 Jul 2021 11:17:30 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57C1BC06175F for ; Wed, 14 Jul 2021 08:14:39 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id 23so1934324qke.0 for ; Wed, 14 Jul 2021 08:14:39 -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=lQzjFNBm+UINiOMlBBF7TaPlBTNPBFx2LaFWoS0FAm6gVecqZxfgVKBiULRAnSO+mm AFSQSGusWG0wptWyGAWJ06mtF9CPPRQWhk9ihfcCZdpZ5FJ0xeoqZ1HL66obJTqPXgih IfpPrHdC17koQaYM2yFeAy4KFPtwbYhfny7GOOVEdLn/FJcecD+E76uwX0iBYarDQEqv QMRx1I5Ge78QXfw4CQ/yHIj7tRByhqurpcVvHKb1qPWCEwNm8Zrh49AI3JookRg3JFw5 gOsZpGpwfu+I1qKbzPDy3ywzclkXzK3b1jXTMSEFNsEPBA2L7XMCfQzxr7HwscjDYcKQ ARuw== X-Gm-Message-State: AOAM531JwvyX/YbqCN8pvl61hQLPGRCWaaCkDlkStsPoAYGU2ktQJYxS JsP6K4UF/+gMroCQFcckYdPw3gVUY9iFjg== X-Google-Smtp-Source: ABdhPJybKkiv3g9n+q6V0TXpgjZPJzSsdGUc7eURlcgiRji/RexD2P1phDFnaIDR+MC60+o2/lRGzg== X-Received: by 2002:ae9:dc82:: with SMTP id q124mr10618861qkf.387.1626275678396; Wed, 14 Jul 2021 08:14:38 -0700 (PDT) Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com. [209.85.219.169]) by smtp.gmail.com with ESMTPSA id b8sm881283qtr.77.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-f169.google.com with SMTP id v189so3751181ybg.3 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-mmc@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