This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TDA2SX: late attach latea_pagetbl

Part Number: TDA2SX

Tool/software: Code Composer Studio

Hi all,

       we do earlyboot late attach refer to section "3.4 Build Linux Vision SDK for fast boot (Early boot and late attach of remote cores)" in <VSDK_DIR>/vision_sdk/docs/Linux/VisionSDK_Linux_UserGuide.pdf.

       but we found "Memory reserved for IOMMU table carveout in u-boot " is neer to our personal vsdk_sr3_mem memory.As follow shown:

/* Memory reserved for IOMMU table carveout in u-boot */
latea_pagetbl: late_pgtbl@bfc00000 {
reg = <0x0 0xbfc00000 0x0 0x100000>;
no-map;
status = "okay";
};
/*
* reserved 0xAB000000~0XAFFFFFFF space (80MB) for linux kernel lowmem
* IPU only access 1G DDR (0x80000000~0xBFFFFFFF)
* so, sr3 size is 256MB
*/
vsdk_sr3_mem: vsdk_sr3_mem@B0000000 {
compatible = "shared-dma-pool";
reg = <0x0 0xB0000000 0x0 0xfc00000>;
status = "okay";
};
vsdk_dsp_local_ddr_mem: vsdk_dsp_local_ddr_mem@C0000000 {
compatible = "shared-dma-pool";
reg = <0x0 0xC0000000 0x0 0x2000000>;
status = "okay";
};

quickly we found that vsdk_dsp_local_ddr_mem is abnormal used in earlyboot mode when it exceed 0xC0000000, so we had to change the memory as follow:

/* Memory reserved for IOMMU table carveout in u-boot */
latea_pagetbl: late_pgtbl@bfc00000 {
reg = <0x0 0xb0000000 0x0 0x100000>;
no-map;
status = "okay";
};
/*
* reserved 0xAB000000~0XAFFFFFFF space (80MB) for linux kernel lowmem
* IPU only access 1G DDR (0x80000000~0xBFFFFFFF)
* so, sr3 size is 256MB
*/
vsdk_sr3_mem: vsdk_sr3_mem@B0000000 {
compatible = "shared-dma-pool";
reg = <0x0 0xB0100000 0x0 0xDF00000>;
status = "okay";
};
vsdk_dsp_local_ddr_mem: vsdk_dsp_local_ddr_mem@C0000000 {
compatible = "shared-dma-pool";
reg = <0x0 0xBE000000 0x0 0x2000000>;
status = "okay";
};

and lateattach.c must be changed like this:

#define DRA7_PGTBL_BASE_ADDR 0xb0000000
but I don't know if there are other places that need to be modified about the latea_pagetbl address?

Regards

Jason