Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp835283lko; Tue, 13 Jul 2021 11:08:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxb8+5wtG0dy+1Na5wtNtr/CzH15fwXpXvfHDeEm3i8wOzQlfY60aYubxhkY8UoT+iih9qd X-Received: by 2002:a5d:9c4a:: with SMTP id 10mr4138227iof.23.1626199705768; Tue, 13 Jul 2021 11:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626199705; cv=none; d=google.com; s=arc-20160816; b=PD7Ok4kvg2/uso2AiH77SmHS1uE7BjKZvyYdQxCpXPpGk8yTV/DuRfgdsNPgA7iTaG XrCU+8YcHbAwqPwlEeRGOY4C2N09XIXbH7A7wRgzcrGh7GnoRvzReo09vryfXmEbMFXY QzKgh5MSO2XQJjnW994Q+PRCG1nkl+SXMlv3qu/6LdlAvRGTzl+s0ESRrBmfonR0lnmp mGvsEuyvfi1vwY6k+Ks5L7KZ/PrUiZg5+rl0xFp9WwEn3h2FZcoKi7EV+jiXEhoIBVbQ NYapOu8eBu4G26EryUeXOSmHyX38AcDJvqPIT831DStphWEi6+1QRmQb9jC09BpyFWXC hgpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=EMMK9Tcmojf9j1le5RAWiqoF6/2cQn9sgHoRycVAGGQ=; b=rlwqMWU2BiRpIpwwBCWMII1WLcau2x/Ne8WBuMKdezFN716Fho6jn/C8hrOjTk3Lke 65/O60cZzAVdOUj/7GXAFBW52TzXaoEgJ+5MZkPh91wbzRBJd5kr+Yw1+2r7YydOa6MH Hng7fUAk3C2DB9PjZGaEWkdJ3NiZw4yP+p9gzSbNoGke9+CV2uSmay2KzOlt5+WeCDHC LlOXrQEyCkmP2sCYfj+UgiHWA84svADvSr3CSJA1DYRGvfVjhHqAJ5rKWWk1+D6B+0KJ ODqAuBEVFEAxj4fbjIsnILaD8oZJ8zgRr/FUemBCBP8l8JzRVfnuYt2Mmc403zDOiyNx LUvQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si24516887iov.48.2021.07.13.11.08.12; Tue, 13 Jul 2021 11:08:25 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233686AbhGMSKC (ORCPT + 99 others); Tue, 13 Jul 2021 14:10:02 -0400 Received: from foss.arm.com ([217.140.110.172]:48602 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbhGMSKB (ORCPT ); Tue, 13 Jul 2021 14:10:01 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 243A61FB; Tue, 13 Jul 2021 11:07:11 -0700 (PDT) Received: from [10.57.36.240] (unknown [10.57.36.240]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C0FC43F7D8; Tue, 13 Jul 2021 11:07:05 -0700 (PDT) Subject: Re: [PATCH v2 0/3] iommu: Enable non-strict DMA on QCom SD/MMC To: Doug Anderson , Joerg Roedel Cc: 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" , Joerg Roedel , iommu@lists.linux-foundation.org, 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 References: <20210624171759.4125094-1-dianders@chromium.org> From: Robin Murphy Message-ID: Date: Tue, 13 Jul 2021 19:07:00 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cheers, Robin.