From 218e773a97eae7eda8534bd4da390e659db513fd Mon Sep 17 00:00:00 2001 From: Ashish Trivedi Date: Mon, 16 Sep 2024 11:02:11 -0700 Subject: [PATCH 1/2] @FIR-151: Enable /dev/mem to facilitate troubleshooting --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index cdba832e5ac93..6737d1550bf24 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1595,3 +1595,5 @@ CONFIG_CORESIGHT_STM=m CONFIG_CORESIGHT_CPU_DEBUG=m CONFIG_CORESIGHT_CTI=m CONFIG_MEMTEST=y +CONFIG_STRICT_DEVMEM=n +CONFIG_IO_STRICT_DEVMEM=n From e49ce9d66476f8b81582a039bc857152860ea143 Mon Sep 17 00:00:00 2001 From: Ashish Trivedi Date: Tue, 24 Sep 2024 16:19:16 -0700 Subject: [PATCH 2/2] @FIR-165: Making changes to Linux to have a TXE reserved memory The changes consist of 1. Reserved memory area from 0x7F00_0000 to 0x7F1F_FFFF for TXE 2. Enabling the flag to turn on HUGETLB --- .../dts/intel/socfpga_agilex_bittware.dts | 32 +++++++++++++++++-- arch/arm64/configs/defconfig | 1 + 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex_bittware.dts b/arch/arm64/boot/dts/intel/socfpga_agilex_bittware.dts index 92307404588e1..6b1419d91474a 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex_bittware.dts +++ b/arch/arm64/boot/dts/intel/socfpga_agilex_bittware.dts @@ -41,6 +41,34 @@ /* 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 { @@ -181,8 +209,8 @@ }; }; -&pcie_0_pcie_aglx { +/*&pcie_0_pcie_aglx { status = "okay"; compatible = "altr,pcie-root-port-3.0-f-tile"; -}; +};*/ diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 6737d1550bf24..c6da56166e359 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1597,3 +1597,4 @@ CONFIG_CORESIGHT_CTI=m CONFIG_MEMTEST=y CONFIG_STRICT_DEVMEM=n CONFIG_IO_STRICT_DEVMEM=n +CONFIG_HUGETLB_PAGE=y