I am using a pcie device which has a BAR1 size of 4MB.
In the device driver I’m using ‘ioremap’ to map this 4MB to kernel virtual address.
ioremap is succeeding and is not returning any failure.
However If I write any data beyond 1MB into the BAR1 space, and read back the same
I’m reading only 0xffff. Any data written/read in the first 1MB of BAR1 space is fine.
Is there any limitation in VIM3L or the amlogic-v2 pcie driver where only 1MB of BAR1 mapping is allowed ?
I’m using the 4.9 kernel checked out using the instructions from - https://docs.khadas.com/vim3/DownloadAndroidSourceCode.html