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=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 994A8C64E8A for ; Mon, 30 Nov 2020 14:37:10 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 00FF920684 for ; Mon, 30 Nov 2020 14:37:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 00FF920684 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 51195203F3; Mon, 30 Nov 2020 14:37:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NW-nf+9G5HZQ; Mon, 30 Nov 2020 14:37:06 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id E2DE020116; Mon, 30 Nov 2020 14:37:06 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C48A3C163C; Mon, 30 Nov 2020 14:37:06 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 25E1CC0052 for ; Mon, 30 Nov 2020 14:37:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 06C43860AE for ; Mon, 30 Nov 2020 14:37:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id slQODmxw7FuV for ; Mon, 30 Nov 2020 14:37:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8B92E86078 for ; Mon, 30 Nov 2020 14:37:03 +0000 (UTC) Received: from localhost (91-175-115-186.subs.proxad.net [91.175.115.186]) (Authenticated sender: gregory.clement@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 55CA5240019; Mon, 30 Nov 2020 14:36:58 +0000 (UTC) From: Gregory CLEMENT To: Tomasz Nowicki , will@kernel.org, robin.murphy@arm.com, joro@8bytes.org, robh+dt@kernel.org, hannah@marvell.com Subject: Re: [PATCH 1/1] arm64: dts: marvell: keep SMMU disabled by default for Armada 7040 and 8040 In-Reply-To: <20201105112602.164739-1-tn@semihalf.com> References: <20201105112602.164739-1-tn@semihalf.com> Date: Mon, 30 Nov 2020 15:36:57 +0100 Message-ID: <87tut6j4hi.fsf@BL-laptop> MIME-Version: 1.0 Cc: devicetree@vger.kernel.org, catalin.marinas@arm.com, d.odintsov@traviangames.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org, nadavh@marvell.com, iommu@lists.linux-foundation.org, mw@semihalf.com, linux-arm-kernel@lists.infradead.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" Hi, > FW has to configure devices' StreamIDs so that SMMU is able to lookup > context and do proper translation later on. For Armada 7040 & 8040 and > publicly available FW, most of the devices are configured properly, > but some like ap_sdhci0, PCIe, NIC still remain unassigned which > results in SMMU faults about unmatched StreamID (assuming > ARM_SMMU_DISABLE_BYPASS_BY_DEFAUL=y). > > Since there is dependency on custom FW let SMMU be disabled by default. > People who still willing to use SMMU need to enable manually and > use ARM_SMMU_DISABLE_BYPASS_BY_DEFAUL=n (or via kernel command line) > with extra caution. > > Fixes: 83a3545d9c37 ("arm64: dts: marvell: add SMMU support") > Cc: # 5.9+ > Signed-off-by: Tomasz Nowicki Applied on mvebu/dt64 Thanks, Gregory > --- > arch/arm64/boot/dts/marvell/armada-7040.dtsi | 4 ---- > arch/arm64/boot/dts/marvell/armada-8040.dtsi | 4 ---- > 2 files changed, 8 deletions(-) > > diff --git a/arch/arm64/boot/dts/marvell/armada-7040.dtsi b/arch/arm64/boot/dts/marvell/armada-7040.dtsi > index 7a3198cd7a07..2f440711d21d 100644 > --- a/arch/arm64/boot/dts/marvell/armada-7040.dtsi > +++ b/arch/arm64/boot/dts/marvell/armada-7040.dtsi > @@ -15,10 +15,6 @@ / { > "marvell,armada-ap806"; > }; > > -&smmu { > - status = "okay"; > -}; > - > &cp0_pcie0 { > iommu-map = > <0x0 &smmu 0x480 0x20>, > diff --git a/arch/arm64/boot/dts/marvell/armada-8040.dtsi b/arch/arm64/boot/dts/marvell/armada-8040.dtsi > index 79e8ce59baa8..22c2d6ebf381 100644 > --- a/arch/arm64/boot/dts/marvell/armada-8040.dtsi > +++ b/arch/arm64/boot/dts/marvell/armada-8040.dtsi > @@ -15,10 +15,6 @@ / { > "marvell,armada-ap806"; > }; > > -&smmu { > - status = "okay"; > -}; > - > &cp0_pcie0 { > iommu-map = > <0x0 &smmu 0x480 0x20>, > -- > 2.25.1 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu