Enabling CONFIG_PCIE_TEGRA_DW_DMA_TEST jetson xavior

Currently we are having a setup like one jetson xavier acts as RC and another jetson xavior acts as Endpoint.

In that, I want to try the dma test code provided in the nvidia/drivers/pci/dwc/pcie-tegra.c.
I understood from the code we can test the dma engine using the debugfs from userspace
But when i try to enable CONFIG_PCIE_TEGRA_DW_DMA_TEST thru make menuconfig command, i couldn’t found CONFIG_PCIE_TEGRA_DW_DMA_TEST options.

When i try to search

but inside bus support feature there is no Nvidia Tegra PCIe host controller option.

Can you please help us?

looks like some basic issue with the defconfig file itself? Are you using tegra_defconfig or a different one?

I’m using tegra_defconfig.

what is the L4T BSP version being used here?

Hi ,
I have added a macro directly to source file itself. Now debugfs files available related to dma in /sys/kernel/debug/pcie-5 directory.

I tried to test the dma by writing 0xc0000000(This is the address printed when memory allocated using dma_alloc_coherent) as src address, 0x1f40000000(This is the address mapped for bar0) as dst address , channel number as 0 and size as 0x100.

I tried in polling method by adding dma-poll in device tree.

after performing write operation by opening write file, i checked the dmesg log, it printed DMA write passed.

But when i checked the data from userspace using devmem application, the data present in location 0x1f40000000 and 0xc0000000 are different.

Can you please check what im doing wrong here?

Could you please tell me the BSP version being used here?

Jetpack 4.4

Is there any update on this?