Could you please test once after disabling iommu for Pcie on jetpack 4.2.1 kernel 32.2 and share the dts files to me and steps followed to update the new dtb file
Thanks for your information. I am able to boot the tegra with PCIE IOMMU disabled .
We confirmed it by looking into ls /sys/kernel/debug/12000000.iommu/masters/
I don’t have much insight into what your driver is doing exactly, but, it looks like you are trying to access user space memory without getting necessary permissions/without converting properly in kernel space. I think you have to just read the kernel Documentation and do it in a proper way. Well, the fact that it was working in Jetpack 3.3 doesn’t help here much as we keep upgrading kernel with patches from upstream. So, unless we write drivers following kernel guidelines, things may break at any time.
Thanks for your information.
With the 3 config params changed in default tegra_defconfig iam able to solve this error
“Internal error: Accessing user space memory outside uaccess.h routines: 96000005 [#1] PREEMPT SMP”.
CONFIG_ARM64_SW_TTBR0_PAN is not set
CONFIG_ARM64_LSE_ATOMICS is not set
CONFIG_ARM64_UAO is not set
If we enable this then what driver code need to be modified i will check later.