Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5246477rwl; Tue, 11 Apr 2023 02:36:44 -0700 (PDT) X-Google-Smtp-Source: AKy350YlQbdXTzdCGfoFli8AyVGFwBSyqEymorKgguRaRBtebubUM4lKvM7/yrB3nvLAS0BVgMuf X-Received: by 2002:a17:906:c206:b0:948:112e:c49a with SMTP id d6-20020a170906c20600b00948112ec49amr11269319ejz.24.1681205804141; Tue, 11 Apr 2023 02:36:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681205804; cv=none; d=google.com; s=arc-20160816; b=S918t3aI7Em9b0EvkkZBeFR1tuS/QcXY2dplrec3RDdwXAhm3MJK/D4V3lPcmTdT+S Wv4uJ+qsrODzXv6Re+59/T/Wgfzqm6cU4sc3kiqwPS98Xhkb7kFefMRxEuEwS3MdSOEM M3eUcfOUJqM/3iSkXNcXro7WkqA+6dqyrXcCV/oR3RrbXFAGsqSEPXVrhEeMhinju9OE zJhKub/gjqnwxomylhxb6Xsjq6HAKpiPkcaC68emOM1NtWjtGJEGbk8gjj6a4DlHBd4s P3U8vvLrOM5KzGl3T1s12yLoitS8Tzf8Xlc1UVnmiU6euNssDrRE3qea90vbT5gatC88 61pA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w7h1+V4mSmpmxgEEvepRAQu3Berq17NW7THqwLhQ31g=; b=N1rps78cdofuja64PBvgHIQJoeV5l0ama6OgEzuuNqO38qTQhm978GgsIK/e82jaYX yJLtvBjE+lhfVVhOdPZY8NCMiK0e0fJfrQPWIlPFRHWQxmw/hr8a3C6EpYV7c19hCZiR /nZduAQqWMOimEIk7FNV0aPXDqjukQtC0kOuDeOyTwn+9bwD2ZzPsrJEE2fRD5qpOkaV lPjGssae8fBr9Hiu6aaMiPD04TuR3m6ESfXRuHnmg/uMFZaS2CLl2gCzXFYINPJtSNuQ MLa2DgE8xt7YEDxE7U1VsRQYWOeAg7DsTv95EmpVo8zcdSW93WjPb0CtnxFlCnYNuUma Giyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="LAtaM/fA"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd11-20020a170907628b00b0094a4b9c8b17si979079ejc.177.2023.04.11.02.36.19; Tue, 11 Apr 2023 02:36:44 -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=@mediatek.com header.s=dk header.b="LAtaM/fA"; 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 S230225AbjDKJfG (ORCPT + 99 others); Tue, 11 Apr 2023 05:35:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbjDKJeg (ORCPT ); Tue, 11 Apr 2023 05:34:36 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE6F9469D; Tue, 11 Apr 2023 02:34:11 -0700 (PDT) X-UUID: 01d9debed84c11edb6b9f13eb10bd0fe-20230411 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=w7h1+V4mSmpmxgEEvepRAQu3Berq17NW7THqwLhQ31g=; b=LAtaM/fAQzpqhL86UXiy+HcgUt9FEqXWWuSgPx6P3QSoS6iQz1cI4ufR715dVu4SZb8aViLnIKT3V00Z7ND7vQgrLaSrRJ2QdATcTY89UYLTigXYP/8THYhj3wB+V1fzylwyuyG+GaF82hfF1yzs32P6O3Fwg2B0rP2rERJmThk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.22,REQID:5aa54102-4d94-4abc-9e0c-ad842da9c9d0,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.22,REQID:5aa54102-4d94-4abc-9e0c-ad842da9c9d0,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:120426c,CLOUDID:d50f95ea-db6f-41fe-8b83-13fe7ed1ef52,B ulkID:230411173408ZZEMV5F7,BulkQuantity:0,Recheck:0,SF:48|38|29|28|17|19,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: 01d9debed84c11edb6b9f13eb10bd0fe-20230411 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2001983924; Tue, 11 Apr 2023 17:34:07 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) 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.1118.25; Tue, 11 Apr 2023 17:34:06 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Tue, 11 Apr 2023 17:34:05 +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 v7 13/14] arm64: dts: mt8195: Add dma-ranges for the parent "soc" node Date: Tue, 11 Apr 2023 17:31:43 +0800 Message-ID: <20230411093144.2690-14-yong.wu@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230411093144.2690-1-yong.wu@mediatek.com> References: <20230411093144.2690-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY autolearn=unavailable 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 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 89f469ba9f6c..7d87cbabc9f1 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -364,6 +364,7 @@ soc { #size-cells = <2>; compatible = "simple-bus"; ranges; + dma-ranges = <0x0 0x0 0x0 0x0 0x4 0x0>; gic: interrupt-controller@c000000 { compatible = "arm,gic-v3"; -- 2.25.1