PCIe: readl()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

We have a free-running counter on x86 PCIe bus and plan to use it as a
clocksource. The 'read' field of the clocksource structure reads from
this free-running counter and returns this value.

Since PCIe reads are synchronous, is it safe to use readl() API to
read this free-running counter value in struct clocksource.read()? If
not, what's the best way to read the counter value from the struct
clocksource read field?

Is there any other faster method to read from PCIe device memory?


-- 
Thanks,
Sekhar



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux