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]
Date:   Fri, 2 Jun 2023 14:23:09 +0530
From:   Kathiravan T <quic_kathirav@...cinc.com>
To:     Anusha Rao <quic_anusha@...cinc.com>, <agross@...nel.org>,
        <andersson@...nel.org>, <konrad.dybcio@...aro.org>,
        <robh+dt@...nel.org>, <krzysztof.kozlowski+dt@...aro.org>,
        <conor+dt@...nel.org>, <linux-arm-msm@...r.kernel.org>,
        <devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC:     <quic_srichara@...cinc.com>, <quic_gokulsri@...cinc.com>,
        <quic_sjaganat@...cinc.com>, <quic_arajkuma@...cinc.com>,
        <quic_poovendh@...cinc.com>
Subject: Re: [PATCH] arm64: dts: qcom: ipq9574: add few more reserved memory
 region


On 6/2/2023 2:14 PM, Anusha Rao wrote:
> In IPQ SoCs, bootloader will collect the system RAM contents upon crash
> for post-morterm analysis. If we don't reserve the memory region used
> by bootloader, obviously linux will consume it and upon next boot on
> crash, bootloader will be loaded in the same region, which will lead to
> loss of some data, sometimes we may miss out critical information.
> So lets reserve the region used by the bootloader.
>
> Similarly SBL copies some data into the reserved region and it will be
> used in the crash scenario. So reserve 1MB for SBL as well.
>
> While at it, drop the size padding in the reserved memory region,
> wherever applicable


LGTM.

Reviewed-by: Kathiravan T <quic_kathirav@...cinc.com>


>
> Signed-off-by: Anusha Rao <quic_anusha@...cinc.com>
> ---
>   arch/arm64/boot/dts/qcom/ipq9574.dtsi | 12 +++++++++++-
>   1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
> index 0baeb10bbdae..7d21ec0909fb 100644
> --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi
> +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
> @@ -156,6 +156,16 @@
>   		#size-cells = <2>;
>   		ranges;
>   
> +		bootloader@...00000 {
> +			reg = <0x0 0x4a100000 0x0 0x400000>;
> +			no-map;
> +		};
> +
> +		sbl@...00000 {
> +			reg = <0x0 0x4a500000 0x0 0x100000>;
> +			no-map;
> +		};
> +
>   		tz_region: tz@...00000 {
>   			reg = <0x0 0x4a600000 0x0 0x400000>;
>   			no-map;
> @@ -163,7 +173,7 @@
>   
>   		smem@...00000 {
>   			compatible = "qcom,smem";
> -			reg = <0x0 0x4aa00000 0x0 0x00100000>;
> +			reg = <0x0 0x4aa00000 0x0 0x100000>;
>   			hwlocks = <&tcsr_mutex 0>;
>   			no-map;
>   		};

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ