From patchwork Tue Mar 7 02:35:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yong Wu X-Patchwork-Id: 65210 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2208996wrd; Mon, 6 Mar 2023 19:05:37 -0800 (PST) X-Google-Smtp-Source: AK7set8Q1AN5xhMV+zWmC77SpwaSF+vMnWTpeqEVN6/tx96YCFM/a2vCi7lf9KNdZJDSC7QH6So0 X-Received: by 2002:a17:902:d512:b0:19c:b3c9:5b16 with SMTP id b18-20020a170902d51200b0019cb3c95b16mr15455429plg.12.1678158336890; Mon, 06 Mar 2023 19:05:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678158336; cv=none; d=google.com; s=arc-20160816; b=HEEQJzg5wxXtfB/PmCR98o+/FgWXVeTJwSg4zVDemi+DKK60MthbxEFlyN0RUK8J1B 3bTmaVp1UFNndQDcHZgB9Ue9vP6RiHFfBJwxbKIjeQk7gGBfTbC7oqldIfpCIjJX/u/y 31BNR82jkMU+3cSOyR3ffVYsSbrOj4OSX6wVGILGYFozOAkPTvJaAS13QyqhVq37yWjV FlSMw0grDCL0d74FcnDCnUO1bD1Tw2pIoIw0Q2Bjk/iO1K+VVZEW6ZRlLdpRozp/wr1+ e7bfm90XL3imU2tS+hH/7KABl57CKk7x78t81FS118+msV2TSc+oTui2GY552Urc0Sjh FUZQ== 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=W/mmAj3ygBdEF86h3r4dVT7v4eaSbR96QC46mFmH3HQ=; b=gKDsnd2uaO5tk+SOZP81s061XwdvUpfH6Y4+iEV/O33o0CxUBwXaDp2vhwti1xOiDs Pznx0tJdIM9VyaYRJR0ajnkrd0hfMRKct1bUq2WkukFSj79nTfCyfrj9tPDINAvRLr/P 3xQKEi4QbHCUHaFRhxxegBSahO2p5IJBziORW+jCNQj2cjC2iFJfXwSPfDBis1wfHBFR eFk3OijiScCZ6yd1AHGstEf8ua/GZpl8wAK+b3YBMbQtjqp9eP6Vg5eEMLCJ73MXMVDs Q7t3zY+oFMi6Jx1jm6XARoftAuyRLOcnyFiL/BJkMzvaikzckndIJyceFluOZDrkbWx0 kkQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tbmolumL; 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 w14-20020a170902d70e00b0019ca3e987dbsi10190263ply.631.2023.03.06.19.05.24; Mon, 06 Mar 2023 19:05:36 -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=tbmolumL; 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 S230092AbjCGCih (ORCPT + 99 others); Mon, 6 Mar 2023 21:38:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjCGCie (ORCPT ); Mon, 6 Mar 2023 21:38:34 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B94B72C66B; Mon, 6 Mar 2023 18:38:01 -0800 (PST) X-UUID: fb0e4a88bc9011ed945fc101203acc17-20230307 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=W/mmAj3ygBdEF86h3r4dVT7v4eaSbR96QC46mFmH3HQ=; b=tbmolumLWnV2vNi5NBb9FUTKIojPD0VSKV6KixZrPdps5Vk077MScBeLMf04gncFpIbqucN0bfLJ5At3j7JW1wI5asJXQJC46f7eXq/2+B0vYsDP7RUqWX+IBHeYGaBSQd7KeFJkTr/BusoF2PqKRakdfVVibv+nNHdYHhxdGJs=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.20,REQID:59e53c22-9774-4db5-8de7-3da50d81b58a,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.20,REQID:59e53c22-9774-4db5-8de7-3da50d81b58a,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:25b5999,CLOUDID:962ef7f4-ddba-41c3-91d9-10eeade8eac7,B ulkID:230307103720VV1R2TFN,BulkQuantity:0,Recheck:0,SF:38|29|28|17|19|48,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-UUID: fb0e4a88bc9011ed945fc101203acc17-20230307 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 1453589498; Tue, 07 Mar 2023 10:37:19 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Tue, 7 Mar 2023 10:37:17 +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, 7 Mar 2023 10:37:16 +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 v5 09/11] arm64: dts: mt8195: Add dma-ranges for the parent "soc" node Date: Tue, 7 Mar 2023 10:35:05 +0800 Message-ID: <20230307023507.13306-10-yong.wu@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230307023507.13306-1-yong.wu@mediatek.com> References: <20230307023507.13306-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,URIBL_BLOCKED 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?1759676556104967530?= X-GMAIL-MSGID: =?utf-8?q?1759676556104967530?= 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 @@ soc { #size-cells = <2>; compatible = "simple-bus"; ranges; + dma-ranges = <0x0 0x0 0x0 0x0 0x4 0x0>; gic: interrupt-controller@c000000 { compatible = "arm,gic-v3";