Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35756628rwd; Mon, 10 Jul 2023 12:06:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlEt89j6stJiPluXV4mJkuL5a4031LyVwPzCReSMydmlBqSQdaR6CNaGLFiSPT3L+798sTaP X-Received: by 2002:a17:902:f94e:b0:1b0:6038:2982 with SMTP id kx14-20020a170902f94e00b001b060382982mr12607598plb.41.1689015982503; Mon, 10 Jul 2023 12:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689015982; cv=none; d=google.com; s=arc-20160816; b=PsLzerBuq5DPFT2/5cip+29ne0Kxc5i+pIfXQZJeeYwHLEag21fSSBlK421SHDtsk4 2hqqcWeS+yttONHUE9Px7w/G6HDYjsaOmYtCs/v3Ns8YmT45iFdSjD5VI5JCELwYoii6 EBvH9edCeVmr0qrPSI9nwkvOafsBcFnnLSRKpi8aDuBY9FCt3V823JXS/WWCMEhuKKuG SBWLy7xtDz4af4LrT/xtyNlyMvYD3/BB1VHPzkcCQixzrcMITThGFYRAcDgt0nFrCteh kd0UVmOBHc3wouedgp7ZrqbP6xsJ33o3DKfIcGBBcQPjvR8ijl2sV6wxLQjvqyijoQuC Hbbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Zp4+jo/0AHmLulNuvIh/KwLGCyw4HNK3R4SueheNcGY=; fh=NlBBfgbUoQ4twNkTk1xJIMkMXdMvxmCoCYaeFBtt5NU=; b=wBAVVNAK2zzncpCSfAAYgLqszKUillrgUcFsv68qMiXrH3elJqT42XL4HrZ9If++Vm sXiAwjmA6b7jfxBYrRhOTANEzrTv/9F6SORQI0MXhZi4RwEOKLi9xK2GQYX7uWuMr8Fp CzSRduGLke7OwM5I1id6DG1sJLvr7li1wqaE9uevZztyPitjHfW8/CJSvze14tcoiCbG rl0EYdfZkxs07/pRIk8dJeuuZrFyf+3zPDbm/cfOUqEXwy5gXwcIE01Ehg0wmaDKCdCj 8qOwViyL75fv6UedaMDJVgJr0+se0P32vIk8vZJlNtYgL58EVsWXexv02WmemixwiymQ frgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=lYxf8rgh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a170902a40300b001b8a8f7af21si206733plq.557.2023.07.10.12.06.10; Mon, 10 Jul 2023 12:06:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=lYxf8rgh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231540AbjGJSkx (ORCPT + 99 others); Mon, 10 Jul 2023 14:40:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230308AbjGJSkw (ORCPT ); Mon, 10 Jul 2023 14:40:52 -0400 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BF60E6D for ; Mon, 10 Jul 2023 11:40:30 -0700 (PDT) Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-7658752ce2fso346368585a.1 for ; Mon, 10 Jul 2023 11:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1689014429; x=1691606429; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Zp4+jo/0AHmLulNuvIh/KwLGCyw4HNK3R4SueheNcGY=; b=lYxf8rghghWJv0Q/vA+V23rYsyKhY8pOyeUVCpJjWaQeoVTTwwX5NsHIOYN6eF/d5q 1OzslYw7Mew3LXDQCKkepu0Mk88a/7qtxxHvKbssn1FyLQ7dc10gcdJv6dtWSE51dqeq EBE4968gpBAofOVhg3FiKpizWNQgR7ux/JcfgP37z0nzpjyNHw/6MYL38g/Aj1kfytSS A8QlNgghxoMgCo26xqlUi3iXl8p7ENNY9Ev6lhCIkFPIiEAhJUJvX/icgklDaLGZ772+ GjDzmwjFSJsSnlH2SGmSoJi7KBvTF5JRBpQok9/rdqRbYvqTwGN2tDW0hQY2kjtQhndb +h3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689014429; x=1691606429; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Zp4+jo/0AHmLulNuvIh/KwLGCyw4HNK3R4SueheNcGY=; b=Rl2NTlg5smnlit/u9gLo4lTz0l5iy25DYNIgLvaKCzmGGS75v6sA2aqlBS4ASkX5FR Jh+zVBuhZyuqgg3BG5+0txZaPW5+2463/6Vh3WGGZ6PImnJ4o0NLzzA8QfWhMjRDDZP2 8DGNYAHeoRQB4SkLp2EzMD19TQyOiayoQR7ERrXxPi7fjH/XWkwdlhzC+bxxC05BcJgO kC3sGROlnTiaiqy8keYj1PoYI1TcwFm9Qk5/wgaWtyIP+AisWB07o7DBVzHBirAW6D1M 8MFGLzyXqS8lEdZYSRuaKgo7UmHZFRGy0gQDbVrWe1R8eddVuyj+if2/3szTFgeDVZk6 FutA== X-Gm-Message-State: ABy/qLZOqyWYVIrAPgCaGZOfhdCJ5gYajSWgg6pU7UCBPF/9RgaSqKpC CiP4fxSV6Mi7lC25o6q2ywycow== X-Received: by 2002:a05:620a:45a1:b0:767:3771:f770 with SMTP id bp33-20020a05620a45a100b007673771f770mr13588204qkb.40.1689014429364; Mon, 10 Jul 2023 11:40:29 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-25-194.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.25.194]) by smtp.gmail.com with ESMTPSA id 20-20020a05620a079400b0075772c756e0sm119355qka.101.2023.07.10.11.40.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jul 2023 11:40:29 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qIvoC-0004j8-Gp; Mon, 10 Jul 2023 15:40:28 -0300 Date: Mon, 10 Jul 2023 15:40:28 -0300 From: Jason Gunthorpe To: Stanimir Varbanov Cc: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Thierry Reding , Krishna Reddy , Will Deacon , Robin Murphy , Joerg Roedel Subject: Re: [RFC PATCH] iommu: arm-smmu-nvidia: Add default domain type implementation op Message-ID: References: <20230710082252.9702-1-svarbanov@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230710082252.9702-1-svarbanov@suse.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 10, 2023 at 11:22:52AM +0300, Stanimir Varbanov wrote: > Add def_domain_type implementation op and override default IOMMU > domain Kconfig option (CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y), which > could be enabled on some distros. The current quirk has been done > for Tegra234 machine, because I found the issue on it. The issue > itself appears on USB host controller which cannot be initialized > without IOMMU translation. Something more, we proved that IOMMU > translation is needed for display and GPU drivers as well. Generically, if you find HW combinations where certain end points cannot work with passthrough (which is really weird in the first place) it should be narrowly quirked - not just an entire platform. Also we don't really have a way to force non-passthrough, ARM32 systems will always run in passthrough, for instance. Broadly the kernel expects it to work. Jason