lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <44e18f49-bd98-b772-0527-f4c71d86ea4f@monstr.eu>
Date:   Tue, 16 May 2023 13:07:46 +0200
From:   Michal Simek <monstr@...str.eu>
To:     Michal Simek <michal.simek@....com>, linux-kernel@...r.kernel.org,
        michal.simek@...inx.com, git@...inx.com
Cc:     Amit Kumar Mahapatra <amit.kumar-mahapatra@...inx.com>,
        Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
        Parth Gajjar <parth.gajjar@....com>,
        Rob Herring <robh+dt@...nel.org>,
        Srinivas Neeli <srinivas.neeli@...inx.com>,
        Vishal Sagar <vishal.sagar@....com>,
        devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH 12/23] arm64: zynqmp: Add mtd partition for secure OS
 storage area



On 5/2/23 15:35, Michal Simek wrote:
> From: Amit Kumar Mahapatra <amit.kumar-mahapatra@...inx.com>
> 
> Update MTD partitions of Kria device trees to allocate 128KB of QSPI
> memory for secure OS. Increased "SHA256" partition size & changed
> starting address of "User" partition to accommodate the new partition
> "Secure OS Storage"
> 
> Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@...inx.com>
> Signed-off-by: Michal Simek <michal.simek@....com>
> ---
> 
>   arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts | 12 ++++++++----
>   1 file changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts
> index d3c6a9feb114..5fbc2fbd2638 100644
> --- a/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts
> +++ b/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts
> @@ -83,7 +83,7 @@ &uart1 { /* MIO36/MIO37 */
>   
>   &qspi { /* MIO 0-5 - U143 */
>   	status = "okay";
> -	flash@0 { /* MT25QU512A */
> +	spi_flash: flash@0 { /* MT25QU512A */
>   		compatible = "mt25qu512a", "jedec,spi-nor"; /* 64MB */
>   		#address-cells = <1>;
>   		#size-cells = <1>;
> @@ -161,13 +161,17 @@ partition@...0000 {
>   		};
>   		partition@...0000 {
>   			label = "SHA256";
> -			reg = <0x2240000 0x10000>; /* 256B but 64KB sector */
> +			reg = <0x2240000 0x40000>; /* 256B but 256KB sector */
>   			read-only;
>   			lock;
>   		};
> -		partition@...0000 {
> +		partition@...0000 {
> +			label = "Secure OS Storage";
> +			reg = <0x2280000 0x20000>; /* 128KB */
> +		};
> +		partition@...0000 {
>   			label = "User";
> -			reg = <0x2250000 0x1db0000>; /* 29.5 MB */
> +			reg = <0x22A0000 0x1d60000>; /* 29.375 MB */
>   		};
>   	};
>   };

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP/Versal ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal/Versal NET SoCs
TF-A maintainer - Xilinx ZynqMP/Versal/Versal NET SoCs

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ