Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1937569rwb; Fri, 11 Nov 2022 02:40:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+aw7SmrAHydMrET+6/MUZRB7qY0UCufKmQLAr1HbkgfBt14++O6kkL1/eOTDnX5iHUkOp X-Received: by 2002:a50:baab:0:b0:461:e2ab:912d with SMTP id x40-20020a50baab000000b00461e2ab912dmr984040ede.93.1668163235932; Fri, 11 Nov 2022 02:40:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668163235; cv=none; d=google.com; s=arc-20160816; b=An0+9IZh404/NTxOV/e6b9D6oYsrv+6C8rLVACzmGDKEgxMLODB90MkDYdCKAsE61o Ks0eJzmLLfytTDsM1Ri6es6P6WEXbQFDDNHgUEV8m10evyuP0yhsNAe/NUPajbiwKPES o2GjW5TGbxbQVPqWAAKMQNA6D2W83SO/6jirc3Qk8c4hVS8hBo2xiakbbHfxn2I/zWcv FGyKbm/jZpceAW3ffTm8jWc6bXMJobreDC7eylOEBRQ3JPrgagsYLXGukKIRZ5pv855E EaBWQHd0mlVgT+9MQK2sJodyJ4qmvhlEJFbhIT2W3wLvrxm79oA5hiuc58kb4mNpkfHw pQkg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=WYHMETprlxCSlcsR6AUgF7th2hMnQkiMFVz9edPawAU=; b=dJcTmjnHsQj4WCqGXtS8j0DhEPCgvYHhp+yq04dKqW8VdINozUSqt8YzGNKQpiZtg6 HR3K727eb0wvCPmGzzKp7/+ZDMjxa1m1aWRo+m8NPf9UFr4yrySrNf6KS4eZponVZU+s CSWeSIpXgpaQye00NZXmVJH5SIPQsUwAy63OxQeP+5mjoZq7NSOmVLSw7s0MYxMIDFyX vDagVCWRawhWnaqgJQb7v6A4zoqK0+xwWRTrtVZlY7mV0+8JI0jCIGWK6Dv0DChcGsaB AAIIMK4Md36oVt671+p+BP9V1HH055axDuVaWA+WN0xAfjHvR93LvlPJH4UIa0gdy9oF QGwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UazhOKB5; 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 nc30-20020a1709071c1e00b0078ddd8656d9si1538823ejc.9.2022.11.11.02.40.12; Fri, 11 Nov 2022 02:40:35 -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=UazhOKB5; 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 S233520AbiKKJ4H (ORCPT + 92 others); Fri, 11 Nov 2022 04:56:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233553AbiKKJ4A (ORCPT ); Fri, 11 Nov 2022 04:56:00 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 395A16B208; Fri, 11 Nov 2022 01:55:51 -0800 (PST) X-UUID: f4880840bb9e4fa1a65cd1a1d51b530b-20221111 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:Message-ID:Date:Subject:CC:To:From; bh=WYHMETprlxCSlcsR6AUgF7th2hMnQkiMFVz9edPawAU=; b=UazhOKB5LMJvccjZCX6GBrBbx8ii+zIZkRh5FLladuoNhWm/NR2DOxMImstDXev90h+/NWAIls3PkQ9bqPakcE7lxsQjqWvnyXUzFaCrILE7Arb13rYL9gnm42ZpY/QAIp7r/y8vZcHbwGG3oxUqyrokNGM5LPwagEgWoWKQi/k=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:11b83696-ee39-4d0f-9bbc-38251b04272a,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.12,REQID:11b83696-ee39-4d0f-9bbc-38251b04272a,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:62cd327,CLOUDID:64634b5d-100c-4555-952b-a62c895efded,B ulkID:221111175546Z5DHPA1F,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: f4880840bb9e4fa1a65cd1a1d51b530b-20221111 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 1973218470; Fri, 11 Nov 2022 17:55:44 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Fri, 11 Nov 2022 17:55:43 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 11 Nov 2022 17:55:43 +0800 From: Macpaul Lin To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Fabien Parent , , , , CC: Miles Chen , Bear Wang , Pablo Sun , Mediatek WSD Upstream , Macpaul Lin , "Macpaul Lin" , , Subject: [RESEND PATCH v2] arm64: dts: mediatek: mt8195-demo: fix the memory size of node secmon Date: Fri, 11 Nov 2022 17:55:40 +0800 Message-ID: <20221111095540.28881-1-macpaul.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,RDNS_NONE, SPF_HELO_PASS,T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=no 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 The size of device tree node secmon (bl31_secmon_reserved) was incorrect. It should be increased to 2MiB (0x200000). The origin setting will cause some abnormal behavior due to trusted-firmware-a and related firmware didn't load correctly. The incorrect behavior may vary because of different software stacks. For example, it will cause build error in some Yocto project because it will check if there was enough memory to load trusted-firmware-a to the reserved memory. When mt8195-demo.dts sent to the upstream, at that time the size of BL31 was small. Because supported functions and modules in BL31 are basic sets when the board was under early development stage. Now BL31 includes more firmwares of coprocessors and maturer functions so the size has grown bigger in real applications. According to the value reported by customers, we think reserved 2MiB for BL31 might be enough for maybe the following 2 or 3 years. Cc: stable@vger.kernel.org # v5.19 Fixes: 6147314aeedc ("arm64: dts: mediatek: Add device-tree for MT8195 Demo board") Signed-off-by: Macpaul Lin Reviewed-by: Miles Chen --- Changes for v2 - Add more information about the size difference for BL31 in commit message. Thanks for Miles's review. arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts index 4fbd99eb496a..dec85d254838 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts +++ b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts @@ -56,10 +56,10 @@ #size-cells = <2>; ranges; - /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ + /* 2 MiB reserved for ARM Trusted Firmware (BL31) */ bl31_secmon_reserved: secmon@54600000 { no-map; - reg = <0 0x54600000 0x0 0x30000>; + reg = <0 0x54600000 0x0 0x200000>; }; /* 12 MiB reserved for OP-TEE (BL32) -- 2.18.0