Accessing system RAM from linux driver

I have reserved memory using the device tree as follows:

list_reserved: list@0x1F028000 {
reg = <0x1F028000 0x12C000>;
no-map;
};

I am using ioremap to map the memory

ioremap_wt(mem->start,resource_size(mem));
  • For reading I use ioread32 and it works.
  • For writing I use iowrite32 but fails abruptly. After writing when I check the memory, I could see the data written in a patterned way. It writes in every 4th word which I could not understand why or find a way to solve it.
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum