From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mx.groups.io with SMTP id smtpd.web10.11933.1676286830691938632 for ; Mon, 13 Feb 2023 03:13:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EcH60C53; spf=pass (domain: kernel.org, ip: 145.40.68.75, mailfrom: ardb@kernel.org) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3E9DCB80D26; Mon, 13 Feb 2023 11:13:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3F47C4339C; Mon, 13 Feb 2023 11:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676286828; bh=D89lucWmZXJootoW96POM6m72nJ1MKfosqQbhkkfo9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EcH60C53ITy8dkYxJixNStiasSKa/YHyPdzWRogRi0idZ1EUevG8ZlgaiIGjDLzUv cV6GNF1z5h0cskZ959K8jYwi4MeyGPpnuIUCQtSlIn7Q9lbRBAsztj+wbIrJa1b9B2 WyaAdK9ogYCB3IsEVbc3ItWjlmtDIuXqXhMvsoyovFX95S8VYIPaoRJquIlo4a7C0a RJvHheUd1L+8oSMXYLVkWNXMPLE0H2zZ1pt4K7s/Rxe7kGffZdsm1BmTG4fHHxbQU6 SYPfWchVh/uJzEYTJGSSsWQqH7/CwEn/9YnvUYrNvCTTwYuFQlQ1jpe0BOA5XBZ/JV qAxLaMGfZm4yw== From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Rebecca Cran Subject: [PATCH edk2-platforms 2/2] Silicon/Marvell: Drop use of NONSECURE ARM memory region type Date: Mon, 13 Feb 2023 12:13:39 +0100 Message-Id: <20230213111339.2239876-3-ardb@kernel.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230213111339.2239876-1-ardb@kernel.org> References: <20230213111339.2239876-1-ardb@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The ARM memory region types with the NONSECURE qualification should only be used in places where this makes a difference, i.e., in the secure world. The Marvell firmware generally runs at EL2, which is non-secure only (in ARM v8.0) so the NONSECURE marking is unnecessary here, and should be dropped. Signed-off-by: Ard Biesheuvel --- Silicon/Marvell/Armada7k8k/Library/Armada7k8kLib/Armada7k8kLibMem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Silicon/Marvell/Armada7k8k/Library/Armada7k8kLib/Armada7k8kLib= Mem.c b/Silicon/Marvell/Armada7k8k/Library/Armada7k8kLib/Armada7k8kLibMem.c index 43aacb7a1133..026947c1077e 100644 --- a/Silicon/Marvell/Armada7k8k/Library/Armada7k8kLib/Armada7k8kLibMem.c +++ b/Silicon/Marvell/Armada7k8k/Library/Armada7k8kLib/Armada7k8kLibMem.c @@ -25,7 +25,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 16=0D =0D // DDR attributes=0D -#define DDR_ATTRIBUTES_CACHED ARM_MEMORY_REGION_ATTRIBUTE_NONSEC= URE_WRITE_BACK=0D +#define DDR_ATTRIBUTES_CACHED ARM_MEMORY_REGION_ATTRIBUTE_WRITE_= BACK=0D #define DDR_ATTRIBUTES_UNCACHED ARM_MEMORY_REGION_ATTRIBUTE_UNCACH= ED_UNBUFFERED=0D =0D STATIC ARM_MEMORY_REGION_DESCRIPTOR mVirtualMemoryTable[MAX_VIRTUAL_MEMORY= _MAP_DESCRIPTORS];=0D --=20 2.39.1