Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1318357rwd; Thu, 1 Jun 2023 13:47:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4On4WMi7SJQT0cJyLMtt65NrmBvUKdmC5OzVMvLMrLI06YbVtraKft/FQRtgOkflV9dyFy X-Received: by 2002:a05:6a20:918b:b0:111:1c17:3fc6 with SMTP id v11-20020a056a20918b00b001111c173fc6mr8810141pzd.10.1685652465469; Thu, 01 Jun 2023 13:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685652465; cv=none; d=google.com; s=arc-20160816; b=bvclu1c8WY5K4uyMtHpc/2bmd6yGm/Gxy9mVJZAx1JplC2lOn3eUYaveNBGykvuabh cv/fbtOburGC9NGdXSXihepJ+iHScUJ2ezx0Rus/p5COzBRks+A0TDlMO2G+vvrHtxhw gJIJWw31Rd5JVcqMcmzOeLZT+GsOAnNfXpv2tjXlfTdXrdeghINpX9bUPySPbqALRhGj Ao3/GziwnDI0HOlLq37yePQSPjmDwA9gvcwE3jVppm0ET16TpptZSuTbvTk3PlQomfP9 n93TVrsw6eiydYgORbnJpXoza/jrqtfe3v5//nIgVkS+S5j6luRCUfpRy1H+T6439cSU /hWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=KoLlcWRHitZo6BJrrJwli9/MLgex7K5fSuGyfDAOY2o=; b=AP6Lhza4t0WYP1NMsr4WdWpzymi2pPOCEMSbepHpJvxoAT4uAFV5hZ4Z/LHx/76e9W IX4LkHQqRhTNgDLHrb/0iJ7K9pJuLuuFd64lOHQZjsvsacx4qRoDv870vSZW17PQj8Rh NyaBBr05+7rCTGqMbiEfLEvT7y8bPrOg7MBSy8R5jGRSiNKkzAX7XYz/sdpIrz27y+7m IWOapz/2uGjj94oa330KY8beXND9v/3O+xOHI84rl/HZOWPTmx3aFChl0BuCHj1vEsNh jAlAnZachuGVjX+8jG4O2Et19OhwGrs5AxsRGnUMdOnK+xz6iGvJ9nXUhne+pb3aQGx2 TANg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XZFdNEPR; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p124-20020a622982000000b006436002d796si2642766pfp.1.2023.06.01.13.47.32; Thu, 01 Jun 2023 13:47:45 -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=@collabora.com header.s=mail header.b=XZFdNEPR; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231790AbjFAUck (ORCPT + 99 others); Thu, 1 Jun 2023 16:32:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231284AbjFAUci (ORCPT ); Thu, 1 Jun 2023 16:32:38 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D37A134; Thu, 1 Jun 2023 13:32:35 -0700 (PDT) Received: from notapiano.myfiosgateway.com (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id DF4F16605838; Thu, 1 Jun 2023 21:32:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1685651553; bh=5WpcqO9ifnLpSK4823RMglaY7WU6LjX8KXsVqXcIo4s=; h=From:To:Cc:Subject:Date:From; b=XZFdNEPRwzkK2c5Oc4RvBoc0pm4d2VDuObQZiOdl+YUlaUSGN3S3wjtBaWk7E2myv ToqDaqY3d+NW969Pl+e/oZQbpuNQ+18gHeB1Z4xzy6JAODnKrRCssCfoz5aIQD4Smt 1fXf/2iLWd6Q+HqkZxVvG4TAVe0bQ2U0pCwq+s/dq1aqap29BbfbXpiYTbftZFmzNz cPpMl8Jf984hJL4GyH5DwY2I6Icb18pdJ4W0Qco5/LfTpNKAcSpBXVAC4ym1r0C+OC xGMWFCVov/SMe2PVuLhNdsVFNv6Dsy60sYtzDJ5QI6cOHYgHH4UkSKmQe5h9Yn+bX7 gD7pFqr85ZPCA== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Yong Wu , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH] arm64: dts: mediatek: mt8192: Add missing dma-ranges to soc node Date: Thu, 1 Jun 2023 16:32:21 -0400 Message-Id: <20230601203221.3675915-1-nfraprado@collabora.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 In the series "Adjust the dma-ranges for MTK IOMMU", the mtk-iommu driver was adapted to separate the iova range based on the larb used, and a dma-ranges property was added to the soc node in the devicetree of the affected SoCs allowing the whole 16GB iova range to be used. Except that for mt8192, there was no patch adding dma-ranges. Add the missing dma-ranges property to the soc node like was done for mt8195 and mt8186. This fixes the usage of the vcodec, which would otherwise trigger iommu faults. Signed-off-by: NĂ­colas F. R. A. Prado --- Matthias, this is a very simple but important fix for the vcodec functionality. Since the vcodec node for mt8192 was just merged, can we please get this in in this merge window as well? Thanks, NĂ­colas arch/arm64/boot/dts/mediatek/mt8192.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 7ff183c35494..a3612de8e9d1 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi @@ -401,6 +401,7 @@ soc { #address-cells = <2>; #size-cells = <2>; compatible = "simple-bus"; + dma-ranges = <0x0 0x0 0x0 0x0 0x4 0x0>; ranges; gic: interrupt-controller@c000000 { -- 2.40.1