From patchwork Tue Mar 7 13:17:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13163483 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C5C4C678D5 for ; Tue, 7 Mar 2023 13:23:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oXjJ+bKEo5BenVtLiUQVDVC0/zIRHxmidvZmYrCiTvI=; b=UM3PBrIB0wl/Ty YZ9YCSzrq9udb3JcgPRNS7yw41rpRT9LBFUUZetN+nyP4KA/tijoGGPmuX6uRGsE2ELGG+lEuW5Ag EgbVRn1zat8mpal9VCkvOG6QQ5pLX8Mr2Qe22r6b7kb/VcnkPRle3nOLppRTEL/kqZECMbSH7Wx0q kCKnA24rJCEo1oOAy/qAGz6GCAheuFb21+l/m73h/rIs+cXiVYlqLu/sJI/+jMfUGc5tUv8UltTh+ BurBMcWRkSqH13VyhCGqsxrtDal4YSzbR89tJPyQ7hQDg3cH6D6qTUd9MVziLPEjPqE+WijXuOi7W r6fYbmwwz+RxzUn7wynA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXGM-000LRr-9O; Tue, 07 Mar 2023 13:21:54 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZXCg-000Jfs-Pb for linux-arm-kernel@lists.infradead.org; Tue, 07 Mar 2023 13:18:10 +0000 Received: by mail-wm1-x332.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so7175511wmq.2 for ; Tue, 07 Mar 2023 05:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678195083; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=aJjJi/jD7zoJ80j1NB2hsX8d3IFWB26lCfmvanobgFc=; b=km89PlWfqZbqxuCY96wokhG3NILnYs1FkpKTahAPUtPzn/JrO4yBxMuWb4ZuYyFQTb s0DXPoDXxPC1BU3j9F+FatxADKGJsFZgAf0BnF21eKSENwG0EVihHkruXlR4qYF3KD9a JC1VxafgACDTDBmNOPUS+rk6KlKDKEUQtkilHwF1WYAWNvm44/DK85/zL4G6mLdxvBaL lyNSynI8MLl8xqtZB626a5HEzo69wKXa69sQ5z1HILYAR6fwki9/LzKDwmceP6VumkXF XNRZxNFqbPKbUkz+9r87lYFQ1VM/k9cUJboo7FLVojRD4fE1QmCfAalC/8mvWeFF3mQj 6o+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195083; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aJjJi/jD7zoJ80j1NB2hsX8d3IFWB26lCfmvanobgFc=; b=HB9aCxpWDLmTtueVSoT9TjDNsDVnsJJ/1qDaEt2/hNv9aNvN9O5SkgKAS1dFRKGjza n18XcFmqCZrU5gHu9Rwz2ABXhBEoylDKVaTVQanvX6khIS5LvAwl+Yabrk6oNjziOQKw /I1BguPM53gWYSC+IbsRKmhiY0rQXR5Dgi6H795ryRjDtadnepfxasDS7Pdfj//B1DXc r50fUQes9yK/NwLuqSWCDM5fSUMIJsij8CR3/OuYZ0nw1vAe6sKuj9uu8OG1q6vyJlK5 qbpiik2R/Bk6TfZqpeHB2Ge/oEa3Th6As0UrEwLXddnEsP6dvJNawmmMZe2zDhGYRkOK ttkQ== X-Gm-Message-State: AO0yUKUxISymjdwWLuL4CYHt8I2DPXGo+kIDt+OBkbD4eRmpM/2shelO Ri+eB2aVndR/dcPenM3NPoxwlA== X-Google-Smtp-Source: AK7set8DDYX66nG0msdQYq6P9pgzNizADGbWf1Lun3UGPnZzP5PHZH7wcfDGsZnzzX3hkBZafVadbA== X-Received: by 2002:a05:600c:4687:b0:3e2:201a:5bcc with SMTP id p7-20020a05600c468700b003e2201a5bccmr12836559wmo.33.1678195082918; Tue, 07 Mar 2023 05:18:02 -0800 (PST) Received: from [127.0.1.1] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id hu21-20020a05600ca29500b003eaee9e0d22sm12986242wmb.33.2023.03.07.05.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:18:02 -0800 (PST) From: Alexandre Mergnat Date: Tue, 07 Mar 2023 14:17:33 +0100 Subject: [PATCH v2 04/18] arm64: dts: mediatek: Increase the size BL31 reserved memory MIME-Version: 1.0 Message-Id: <20230203-evk-board-support-v2-4-6ec7cdb10ccf@baylibre.com> References: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> In-Reply-To: <20230203-evk-board-support-v2-0-6ec7cdb10ccf@baylibre.com> To: =?unknown-8bit?q?Zhiyong_Tao_=3Czhiyong=2Etao=40mediatek=2Ecom=3E=2C_Gue?= =?unknown-8bit?q?nter_Roeck_=3Clinux=40roeck-us=2Enet=3E=2C_Linus_Walleij_?= =?unknown-8bit?q?=3Clinus=2Ewalleij=40linaro=2Eorg=3E=2C?= =?unknown-8bit?q?_Bernhard_Rosenkr=C3=A4nzer_=3Cbero=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?AngeloGioacchino_Del_Regno_=3Cangelogioacchino=2Edelregno?= =?unknown-8bit?q?=40collabora=2Ecom=3E=2C?= =?unknown-8bit?q?_Ulf_Hansson_=3Culf=2Ehansson=40linaro=2Eorg=3E=2C_Wim_Van_?= =?unknown-8bit?q?Sebroeck_=3Cwim=40linux-watchdog=2Eorg=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Chaotian_Jing_=3Cchaotian=2Ejing=40mediatek?= =?unknown-8bit?q?=2Ecom=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Wenbin_Mei_=3C?= =?unknown-8bit?q?wenbin=2Emei=40mediatek=2Ecom=3E=2C_Matthias_Brugger_=3Cma?= =?unknown-8bit?q?tthias=2Ebgg=40gmail=2Ecom=3E?= Cc: linux-mmc@vger.kernel.org, Alexandre Bailon , devicetree@vger.kernel.org, Amjad Ouled-Ameur , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org, Alexandre Mergnat , linux-mediatek@lists.infradead.org, Fabien Parent X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1061; i=amergnat@baylibre.com; h=from:subject:message-id; bh=jc8O8Cu6v6QK5aTt3UJ8M0QNPMTHLmcDIgeyPjVKMdw=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkBzmEcV1JZ2uiyH7wxNfPDxn+nJ3BFTjExeREhmqw BgZZ9ImJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAc5hAAKCRArRkmdfjHURWSuD/ 92Qh8UtfdeQJyr1MWsUBmjifPfD2epW/4/7M09tz/7AnUQzg37eUDlGwKcfAzE4qFj6sSjoXgcg+Cr zpdF1rPt8PBPlejX8Ip96rMH/y8XKYlymgGJksKVy5JSC2C0hTKc9BN44dLXbldIoPmyYPOrfjtj6u /y3dhS+4JFNpWOJdzVM3+AEqGbkuPkrBwyCQKP9taXIm8y4zEg5vFw7OWSgyyJg4CNnRzC1qYzMuIu AwDjKJ/d0sftGU1I7XLX0TOpKogejBzluwsOVI1Ds6wWYOYcv7ZcKf63Ittd86W2bmRuH5STE/Fg5P Z1Pmhtpzkz7VVxYQ05G932yiL+K0ln8vvRCFIXRXANDUVi75pNnfJMcmf6QJ1APSnKEQkZJWqOaGV/ JoplZ3/D0H36llyfQF1sGbHipXHP+nu0+OZno05YfHpSpMOwjG/4fDot3vvll6fHgqPiPztmaw2UXs 66W3bzcSWIej6f4ZGb0FtSZXE3h/+5YYMqa5StnoTkM0igFHuqMYrtBPljD3ZU9dNVDiPHABCgDU6/ kzbvpODQQaBMoRcOtlSgpoQ53KMqC9jWbrMTw9SuUj3MVx66S+OBvnphZRvg7+w89HwOn2Wo+OPPY3 us/kHbjKFvUHmeKqPBDTU07HJMh8J/b8Oh18T9DfjtU6+iOzLHC5YFTEuZUg== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230307_051806_928640_AA203C6E X-CRM114-Status: GOOD ( 13.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Alexandre Bailon The reserved size for BL31 is too small. This has been highlighted by the MPU that now restrict access to BL31 memory to secure world only. This increase the size of the reserved memory. Signed-off-by: Alexandre Bailon Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index b68aee8f229f..fc7f6d8ae173 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -65,10 +65,10 @@ reserved-memory { #size-cells = <2>; ranges; - /* 128 KiB reserved for ARM Trusted Firmware (BL31) */ + /* 192 KiB reserved for ARM Trusted Firmware (BL31) */ bl31_secmon_reserved: secmon@43000000 { no-map; - reg = <0 0x43000000 0 0x20000>; + reg = <0 0x43000000 0 0x30000>; }; /* 12 MiB reserved for OP-TEE (BL32)