From patchwork Wed Feb 8 05:36:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yong Wu X-Patchwork-Id: 54198 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3271818wrn; Tue, 7 Feb 2023 21:39:34 -0800 (PST) X-Google-Smtp-Source: AK7set9NqX/g76+i+B16URnO2pcoDCAxSQXjidiXKaNaRHVZkQJ4P2bC1xQVrBuAKfENo/YMYLc2 X-Received: by 2002:a05:6a21:29c6:b0:b8:c6ec:a269 with SMTP id tv6-20020a056a2129c600b000b8c6eca269mr4538746pzb.16.1675834774270; Tue, 07 Feb 2023 21:39:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675834774; cv=none; d=google.com; s=arc-20160816; b=Y1hp6XnR5QJTznb3B1pP/vwk9pXZVbHycq1WAStcDH9QOVFf30CtxzsZA3aLTInO/l kxDi2Tt8rqrobjR5qOT6XwAyaapUE7ZjDxnPg3NG3mlFPYdwAiE0/cev9oKjRhZME+KF WZKyZgPdV5jUevaFj0/RSxJVHOgAXObhs7AEnBdqzNaIbczfCVjb6VgCJ/iQ0T3efaZd u3WSW8Q95Y0XwLYvzNRfwYFLy3l9wFWkMlYK/FmqPbOUF5LRF6CXcUIXAk8OTxQz7PVr N3WZJgMI/NsTrPKMCGjZcrHSQJ7Fl/HZ/kSNu7IXeLq0hwq7mVPWCj/EB0ROL6SdqCl0 OvRw== 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=XoUSz9jxgcWhnPoz02XTBB/MNxrXOPEiUVrNO+9lUjtK0nweIuOUlWiV1ms9Du/Ol+ RDFx17+/HviSEYO3wXQyil08uYBcKqfa9Zv/nV2rc/dJ6mnYugFlvnf/+euWPTWMSSdK uq1iMVHkzjfvUl7ioToapztYonn7WEA5BRzTDIxF2wP+0myiGWWkxS/u9BQqX1jI6x4R PZg/NDsuCgvI/JKdVfpoSdJk3YZMKiR7LvokQKYKGFtXPOzE0dXQrdx9qETtNWPtZC5m 8e7C2EDJd/BtKwycyhwrRlqW56NyBlkixCu4JJex6/YmbaME23J7jrHOOT1MUAp3FqIY c1ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=LVPmaJCa; 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 a65-20020a639044000000b004ba031995f2si18530614pge.26.2023.02.07.21.39.21; Tue, 07 Feb 2023 21:39:34 -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=LVPmaJCa; 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 S230352AbjBHFjA (ORCPT + 99 others); Wed, 8 Feb 2023 00:39:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230312AbjBHFit (ORCPT ); Wed, 8 Feb 2023 00:38:49 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E16F442E9; Tue, 7 Feb 2023 21:38:41 -0800 (PST) X-UUID: d5a2e07aa77211eda06fc9ecc4dadd91-20230208 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=LVPmaJCagWVrdUTOIGC0RYk+ilj7TUvv0LTLOQ5F5cdHaS0QPK3ravJoG48806ky59/4SCLWR12DTiAPFUFazEZujMKgkOZlHBUU08KYUuZUuDYpOhWaQAOiUQgwImFe/JrAzCQyLIV49mhUUWWqnAOBD10pctZGs8NkMeTfoAY=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.19,REQID:c882f954-0690-42ee-b5ba-140a26998967,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:3121cdf7-ff42-4fb0-b929-626456a83c14,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: d5a2e07aa77211eda06fc9ecc4dadd91-20230208 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1396741238; Wed, 08 Feb 2023 13:38:37 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Wed, 8 Feb 2023 13:38:35 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Wed, 8 Feb 2023 13:38:34 +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 v2 08/10] arm64: dts: mt8195: Add dma-ranges for the parent "soc" node Date: Wed, 8 Feb 2023 13:36:41 +0800 Message-ID: <20230208053643.28249-9-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230208053643.28249-1-yong.wu@mediatek.com> References: <20230208053643.28249-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?1757240124174360212?= X-GMAIL-MSGID: =?utf-8?q?1757240124174360212?= 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";