From patchwork Tue Apr 11 09:31:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yong Wu X-Patchwork-Id: 81848 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2449683vqo; Tue, 11 Apr 2023 02:53:32 -0700 (PDT) X-Google-Smtp-Source: AKy350bOvx1+tblGgCxhP13j5JtdP1ctEA7NE5hb3ggZY4yzAUpQrLfZfBghE3gUqYz7n/NsAxYg X-Received: by 2002:a17:907:7fab:b0:94a:8a80:3f4d with SMTP id qk43-20020a1709077fab00b0094a8a803f4dmr7358284ejc.50.1681206812413; Tue, 11 Apr 2023 02:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681206812; cv=none; d=google.com; s=arc-20160816; b=k9q4/kZj3aSQmRb+PbaKphih97cHeh+WjIEutZJYf3xlYoPW/jt5BNoPxwp7V26CnJ rdq0a6TFItk4TFnfbc2HkCNpdEZ5yiKFrofzjxEWAEkrb3cJyvKSeY4VHPrwOtsZTXmb XYXsI7zZSSvMLzD7TvjJ3DleBzn0FYXcaCJqCiJOi+0LmHLunSvxT6FvzQ4owGBku1Y2 vHjg64oYepGD6PqsOAS+UJb6UPQYkdymuqB+0qIvs89rvDug9xbcib6+92PZHBj8Z9C3 lsKzJKDyb+WZjHbXQYZUpMkwbv1jYeQ8k8AGOetmV9yrNT20QK37DoxAbLaZ+x+PSbts 2T2w== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h6-20020a1709060f4600b009475bf88f7dsi3241049ejj.910.2023.04.11.02.53.07; Tue, 11 Apr 2023 02:53:32 -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 S230113AbjDKJfG (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762873114539973667?= X-GMAIL-MSGID: =?utf-8?q?1762873114539973667?= 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";