readl and raw_readl

211 views
Skip to first unread message

Kotteeswaran GS

unread,
Feb 23, 2016, 1:37:31 AM2/23/16
to inside...@googlegroups.com
Hi,

I need a kind of explanation regarding readl/__raw_readl/readl_relaxed.

1) In what circumstances , Do I have to use raw_readl or readl or readl_relaxed?
2) which one is using memory barrier?

Please let me know.

Thanks,

Regards,
Kotteeswaran G S

Anil Kumar Pugalia

unread,
Feb 23, 2016, 2:26:04 AM2/23/16
to inside...@googlegroups.com
Check out this similar question on stackoverflow:
http://stackoverflow.com/questions/9818657/whats-the-difference-b-w-raw-readl-raw-writel-and-readl-writel-in-linux-ker

However, note that in latest kernels all these are discouraged, as there
are better replacements.

Regards
Anil

Passion: http://sysplay.in (Playing with Systems)

Kotteeswaran GS

unread,
Feb 23, 2016, 6:18:45 AM2/23/16
to inside...@googlegroups.com
Hi Anil,

Thanks for the information.
I would like to know about the replacement of readl in the latest
kernel,,can you point ut some links.

Thanks,

Regards,
Kotteeswaran G S

> --
> You received this message because you are subscribed to the Google Groups
> "SysPlay's Inside Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to inside_linux...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Anil Kumar Pugalia

unread,
Feb 23, 2016, 11:36:26 PM2/23/16
to inside...@googlegroups.com
Check out the following link: http://www.makelinux.net/ldd3/chp-9-sect-4

Regards
Anil

Passion: http://sysplay.in (Playing with Systems)

Reply all
Reply to author
Forward
0 new messages