Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5516537rwb; Mon, 14 Nov 2022 05:57:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf4kV4ZNC2aIlz8IAr15zElBcchcB4+xYPzWVkRY8GLTVvcHmZc2LX/WwAE+ZjDr/g5MB6/3 X-Received: by 2002:aa7:cd15:0:b0:458:5987:7203 with SMTP id b21-20020aa7cd15000000b0045859877203mr10750625edw.161.1668434235547; Mon, 14 Nov 2022 05:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668434235; cv=none; d=google.com; s=arc-20160816; b=X1kIiMm1YU5aLUiZ1gewIQS/Wk3j/4TnYCz/drvC1T1frNtQjkpINqHnA2PefZLwV+ 3bon++TPWiqaoq8zwdqID6Vo3/COQCfI0aUD9yNa3rWy0MNieRPbX80LFpF6rq0Kq2lz nLW3oZNa/AWqpMlkRXygPEY/ZuDU4TdnfvACgzX712oQREOLL0s4LVhE2PXrFhltPQFC bWQ2oHk5jIzfsawZO0l8IfCb6GewAaQfd5AWjFaFplheXTlVgUaT7eHQftK38VCSILq2 sycw28tP1tf4VwNT/Km/KxaGxsUwBuTsak1VXpH1OE9JZVnTMmHo7WffCWdVPctT/KJs HSKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xQD3SyOrq0tQHoASJSDpLXxeml485/o3lnFNLOQH9/k=; b=kz6QivQP9S1oSRVNdf3Bn1QEPevOidp0MyyEpa9xqxz0sYm+3rJSjdoJe2HP60NQ+U htIiGcTYfpKXHyaLmautFRQEpsF3vtr8CilVRAquyM9c4/fVYCrjuKxguOdEYSmMJYlI IaDqQWCrsJ7audVgPZq09x5mnV2IqDlIy1tA9ka5USEfp06R7DKaw9pMvkojjXzpU9oQ 3/SIIXDW1WEZmTvhfrijnxobiRRP7AjrWHlnJbfsx5hxaWz1JISyx5h5fG1965GsD54N i5jKsuYZuEaV9sj2GPRO2z4L1f5z7aiOEmch1r25v6AJBH5tJmLE2/QO/OzXOsM9foIp Gekw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CuXf2ZA1; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz17-20020a1709077d9100b0078d8bd255d4si9703640ejc.949.2022.11.14.05.56.53; Mon, 14 Nov 2022 05:57:15 -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=@collabora.com header.s=mail header.b=CuXf2ZA1; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235995AbiKNL4x (ORCPT + 88 others); Mon, 14 Nov 2022 06:56:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236888AbiKNL4e (ORCPT ); Mon, 14 Nov 2022 06:56:34 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E86BC2529E; Mon, 14 Nov 2022 03:52:37 -0800 (PST) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id CF4FC66016A3; Mon, 14 Nov 2022 11:52:35 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1668426756; bh=UqXyw29d9gHmZnTaWA17qjx/3BT/it1DZWozqZjgUvE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CuXf2ZA1/Pk4AOO7DSTFEFFFgfULvaPQy0MLLwqgYUgWYqGetFd62NuDx0rNIJDTA lF4Pe54GLAHRsaUIrgKFVdfrXJO8QefoOFcJYzZrEx/Ou0of7YUyCcUXHTyGmt1fAI EfyEBvzDKFjyMgpZ9ohUJj2NysUq7yqqOXF0WESNaBNCAYBUGon6cqukg/LGeFP3U6 lGe3MIDd4cvUJBSMWIw2sQdgxdTmJyDKZPQZmLQtOGv7W/Y1bqrj1ZkcuEbE78qAKc 1x8l5sguUYXjAIimfVCztPTnQB1SFYyNqjxAJvA9X8votiJRbDLjaE6b/ztyJ0T6qM KJ7XuFKE63m0A== Message-ID: <70108911-4934-170f-8e66-ed2ff7d63be5@collabora.com> Date: Mon, 14 Nov 2022 12:52:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [RESEND PATCH v2] arm64: dts: mediatek: mt8195-demo: fix the memory size of node secmon Content-Language: en-US To: Macpaul Lin , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Fabien Parent , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Miles Chen , Bear Wang , Pablo Sun , Mediatek WSD Upstream , Macpaul Lin , linux-usb@vger.kernel.org, stable@vger.kernel.org References: <20221111095540.28881-1-macpaul.lin@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20221111095540.28881-1-macpaul.lin@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 Il 11/11/22 10:55, Macpaul Lin ha scritto: > 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 Reviewed-by: AngeloGioacchino Del Regno