From patchwork Wed Feb 15 06:25:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yong Wu X-Patchwork-Id: 57384 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp31343wrn; Tue, 14 Feb 2023 22:29:08 -0800 (PST) X-Google-Smtp-Source: AK7set/yDwiQXBac3ui/RncrsKpubf7edMxmgo2+1anyHupMKBiaq2CZMfm1xufct0x2AUA3MkZk X-Received: by 2002:a17:90b:1b04:b0:234:6a1:635d with SMTP id nu4-20020a17090b1b0400b0023406a1635dmr1511945pjb.49.1676442548340; Tue, 14 Feb 2023 22:29:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676442548; cv=none; d=google.com; s=arc-20160816; b=I8T5Lef4VILN7NPiDGZxoG4PmJsDNUM2kgi1HIF3I13JGyAldwBO9m2s0ZrwNt/mRm V10SScQ5FVra7Ix+Klf1qkd617P97lUoVACb7IMKYr0oD3/y51JoSo/wILF3feqT234n GiJXe+ZeRbfccANT2ftUNYaOT5iokFZwRQXP54e4m+3FFPBKeeaS/lUdJpyb+wfgkjSC IC6L4vxm3UEN8VY/QDHz/lrZ7ZCTgULsZqJxD6Gug9rFu4jUJ5VP7Ui/D/gUvASJ9LnR Xudkm/116FzLMGmHXghJ2/EFcXdmSX81gTK01UtFEjfR59jmIUKGQr5StbGfPPSgUung N+Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PyGFaiQpYwvJRNsu5FUdDc+UhFlL928fq4ghNZboUsU=; b=c2QMJnQqhSl3nBixr6zYh/5j9KPOuwAxCjK3hkZqE1TQXxInGQ9+QJTx2slYdY+KqP GNVSG/8pH5Y8oaSaavQWVIHWJ9KkpJ5iGv0oCP6rxB1nJzJ94p717iTBLK5fKyQhIcpc jEZ6vhcwqU8F79wCUTHI/q0EkQn23aBYhCfWDfUS3SvakiLYK/xc9n+hPe7Yhp+8G1Cc JzKzDiciZRA/AKqv24ir4wPumLxuyERzDbrLKAwf/Ber12SFfYdnQZwbqzVh0x6vY1ej iibTeFcJW73q9dXwRW/sQ/8foulE3CRQ6Wj0REDXR63XzKAXK5jYgxRgDPDTCEHAw7S8 TMzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Ut3xO7Pl; 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=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x20-20020a17090a531400b00230ba341251si1093845pjh.82.2023.02.14.22.28.55; Tue, 14 Feb 2023 22:29:08 -0800 (PST) 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=@mediatek.com header.s=dk header.b=Ut3xO7Pl; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233345AbjBOG2g (ORCPT + 99 others); Wed, 15 Feb 2023 01:28:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233329AbjBOG2c (ORCPT ); Wed, 15 Feb 2023 01:28:32 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCD3931E0E; Tue, 14 Feb 2023 22:28:11 -0800 (PST) X-UUID: de9aa03cacf911eda06fc9ecc4dadd91-20230215 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=PyGFaiQpYwvJRNsu5FUdDc+UhFlL928fq4ghNZboUsU=; b=Ut3xO7PlofUlK56RkypAIDi+Ih3I9OZJqUKWOt/Jlr7FJ2AUpm61oOgQJvUyVRbHGiDnro9BTuXFIQm9T0aU+O0HVcIQ/Sjd9dw9kj3TCrHmr4AGfZgJyC68FAS7sN2cjNPS8LYD5b5+3/TmOMoURICSsaiWjasbIOdf7227wt0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.19,REQID:a1059094-fcaf-4b22-8b51-cbf51cd335e7,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:885ddb2,CLOUDID:70f67fb0-beed-4dfc-bd9c-e1b22fa6ccc4,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-UUID: de9aa03cacf911eda06fc9ecc4dadd91-20230215 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 628930939; Wed, 15 Feb 2023 14:27:49 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.194) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Wed, 15 Feb 2023 14:27:48 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Wed, 15 Feb 2023 14:27:47 +0800 From: Yong Wu To: Joerg Roedel , Matthias Brugger , Mauro Carvalho Chehab , Rob Herring CC: Will Deacon , Robin Murphy , Krzysztof Kozlowski , Hans Verkuil , , , , , , , , AngeloGioacchino Del Regno , , , , Yunfei Dong , kyrie wu , , , , Yong Wu Subject: [PATCH v4 09/11] arm64: dts: mt8195: Add dma-ranges for the parent "soc" node Date: Wed, 15 Feb 2023 14:25:42 +0800 Message-ID: <20230215062544.8677-10-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230215062544.8677-1-yong.wu@mediatek.com> References: <20230215062544.8677-1-yong.wu@mediatek.com> MIME-Version: 1.0 X-MTK: N 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_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757877421825173137?= X-GMAIL-MSGID: =?utf-8?q?1757877421825173137?= After commit f1ad5338a4d5 ("of: Fix "dma-ranges" handling for bus controllers"), the dma-ranges property is not allowed for the leaf node. But our iommu/dma-ranges is 16GB, we still expect separate the 16GB dma-range like: a) display is in 0 - 4GB; b) vcodec is in 4GB - 8GB; c) camera is in 8GB - 12GB. We can not expect all the masters add a parent node for them, especial for the existed drivers/nodes. Thus, we add whole the 16GB dma-ranges in the parent "soc" node. Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 8f1264d5290b..0f5a31ca1b70 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -364,6 +364,7 @@ #size-cells = <2>; compatible = "simple-bus"; ranges; + dma-ranges = <0x0 0x0 0x0 0x0 0x4 0x0>; gic: interrupt-controller@c000000 { compatible = "arm,gic-v3";