From 764eaba02cf9dc2841d2d313d7f22b9df7188456 Mon Sep 17 00:00:00 2001 From: Ashish Trivedi Date: Tue, 1 Oct 2024 10:59:57 -0700 Subject: [PATCH] @FIR-172: Move the Memory reservation to DTSI file 1. These changes move the memory reservation to DTSI file 2. Remove the commented out memroy reservation from DTS file --- arch/arm64/boot/dts/intel/socfpga_agilex.dtsi | 6 ++++ .../dts/intel/socfpga_agilex_bittware.dts | 28 ------------------- 2 files changed, 6 insertions(+), 28 deletions(-) diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi index f0aadd977efb..ad0f8565d374 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi +++ b/arch/arm64/boot/dts/intel/socfpga_agilex.dtsi @@ -25,6 +25,12 @@ alignment = <0x1000>; no-map; }; + service_reserved1: svcbuffer@1 { + compatible = "shared-dma-pool"; + reg = <0x0 0x7F000000 0x0 0x7FFFFFFF>; + alignment = <0x1000>; + no-map; + }; }; cpus { diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_bittware.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_bittware.dts index 63cf533430b4..6e06d5491f38 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_bittware.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_bittware.dts @@ -41,34 +41,6 @@ /* We expect the bootloader to fill in the reg */ reg = <0 0 0 0>; }; - - /*reserved-memory { - #address-cells = <1>; - #size-cells = <1>; - ranges;*/ - /* global autoconfigured region for contiguous allocations */ - /*linux,cma { - compatible = "shared-dma-pool"; - reusable; - size = <0x200000>; - alignment = <0x2000>; - linux,cma-default; - };*/ - - /* current allocation is 2 MB from 0x7F00_0000 to 0x7F1F_FFFF - * these allocaiton will change when we add more TXEs and standardize on - * the space every TXE needs - */ - /* display_reserved: framebuffer@7F000000 { - reg = <0x7F000000 0x100000>; - }; - - restricted_dma_reserved: restricted-dma-pool@FF1000000 { - compatible = "restricted-dma-pool"; - reg = <0x7F100000 0x100000>; - }; - };*/ - }; &gpio1 {