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=-10.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 F18C1C433E0 for ; Sun, 28 Jun 2020 18:10:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 C7E6A20775 for ; Sun, 28 Jun 2020 18:10:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LqnDBX+v"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=cerno.tech header.i=@cerno.tech header.b="JmCJzFdo"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="pqyUtCt3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C7E6A20775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=TBs8FdzEsPFPjNSe7FW61FNagI8InSk5/JxrIcC+AYM=; b=LqnDBX+vLwY7IJcLL58BLbqcXL pIsk8idA4GtkBGh50uyG7Pwz8JrjTGf+vBn7saT7c5XmI1wBzFL3gn+D9z2Xl0dFUrwlwsvee8rP0 2ndUR57ko7+xwS124VE1R6vI3Q0xdVHH0vsPfJhnvWlKI+RQ7pbrt6awWFNlTKCdvhJdJY892Su0t rZpkqLDoGG2OjmgVgDw/rv8IpcdXsivTzzrkQUI7k5i1DKTBEdI0EAAKHAft5kIO/dcXkUbCaQt30 BfWE8DlB83jiPnmANuwLfjGUC/vBaHWKCZGB3wwh7D14tb1U0lkkIGrI3MKObxq+OWPH7bCvLllGH c91NDDdw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpbj4-0000aR-HG; Sun, 28 Jun 2020 18:08:22 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpbj2-0000Zr-Jq for linux-arm-kernel@lists.infradead.org; Sun, 28 Jun 2020 18:08:21 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 3CF05B6C; Sun, 28 Jun 2020 14:08:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 28 Jun 2020 14:08:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= from:to:subject:date:message-id:mime-version :content-transfer-encoding; s=fm3; bh=taIlQ08WCNxscK4isLyZDzcavG amCX/rsyMIfothcNw=; b=JmCJzFdoEZDGhw3C1BLyGBB13bmrgwQ4Xb04OBmpPU TV4EJ3yMsvBjFxaurP6G9065hlo2dsWvs0+Q9OKODfWokr3qQoqMhyEsQkmVl9Yn yJOu8hkftkWMa4h2cJUQM8drBKbufjiKWZdO0GfSZM2jrX5tgwdHW36SJB7WC9JN A2PcCIP4cZbQJiPbZy2FZTQfWFK6Op0nPnf7wBziXUaEILc8dPked7yOzbbu56VK IaqvewbU/X4EYQTzuKAd7wm7zoajss+CQktpGZP8YnQol1RnPopvAppE1ITUXc1m vXuQJlDeXF02f0mQesznsxUhnUfR9QQBoIyTsYRYbWpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=taIlQ08WCNxscK4is LyZDzcavGamCX/rsyMIfothcNw=; b=pqyUtCt3iTB7tDPU6yOV6ptzyQOiyOWqQ p67FUe6CE3QBe98AApKZXtdtbISvF/GJ6nCDb5s6enUqQCf5KejoGw9j8T6VQm4I M+07sjuhKYKLuz/3n1ypfXBzeI7npZxzzAWDfwK5DimiTK1DL9Y8kBH/68yB4deE 6h12BbX13xdAWT/tuogaU+u/xgDqeksbF81ZHXOxZe6e1AIlqd/2iwwmpPYRg6hH 99up/yRn2ZijFxSgXIARkbdL78MkOv40eiT6UVYhF7ViJ8zAWflXJ2ngjQEdWTEH QALpebZ8I5VuT2cdf9SFpi6f+5t7H37At3t1Kd8o9cyMtFD+BZl1g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeliedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpeforgigihhmvgcutfhiphgrrhguuceomhgrgihimhgvsegtvghr nhhordhtvggthheqnecuggftrfgrthhtvghrnhepjeffheduvddvvdelhfegleelfffgie ejvdehgfeijedtieeuteejteefueekjeegnecukfhppeeltddrkeelrdeikedrjeeinecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimh gvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 27BCD3280059; Sun, 28 Jun 2020 14:08:11 -0400 (EDT) From: Maxime Ripard To: linux-arm-kernel@lists.infradead.org, Chen-Yu Tsai , Maxime Ripard Subject: [PATCH] arm64: dts: allwinner: h6: Fix Cedrus IOMMU usage Date: Sun, 28 Jun 2020 20:08:04 +0200 Message-Id: <20200628180804.79026-1-maxime@cerno.tech> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Now that the IOMMU driver has been introduced, it prevents any access from a DMA master going through it that hasn't properly mapped the pages, and that link is set up through the iommus property. Unfortunately we forgot to add that property to the video engine node when adding the IOMMU node, so now any DMA access is broken. Fixes: b3a0a2f910c7 ("arm64: dts: allwinner: h6: Add IOMMU") Signed-off-by: Maxime Ripard --- .../bindings/display/allwinner,sun8i-a83t-de2-mixer.yaml | 3 +++ arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 1 + 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/display/allwinner,sun8i-a83t-de2-mixer.yaml b/Documentation/devicetree/bindings/display/allwinner,sun8i-a83t-de2-mixer.yaml index 1dee641e3ea1..ef624327e33e 100644 --- a/Documentation/devicetree/bindings/display/allwinner,sun8i-a83t-de2-mixer.yaml +++ b/Documentation/devicetree/bindings/display/allwinner,sun8i-a83t-de2-mixer.yaml @@ -39,6 +39,9 @@ properties: resets: maxItems: 1 + iommus: + maxItems: 1 + ports: type: object description: | diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 78b1361dfbb9..9ce78a7b117d 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -161,6 +161,7 @@ video-codec@1c0e000 { resets = <&ccu RST_BUS_VE>; interrupts = ; allwinner,sram = <&ve_sram 1>; + iommus = <&iommu 3>; }; gpu: gpu@1800000 { -- 2.26.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel