mutual exclusion locks over PCI memory

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

 



Hi all,

I am writing a software to implement communication
over PCI.

PCI host machine (PPC cpu) writes commands to
the PCI memory space of the (Coldfire CPU)
target device. Target device takes the command
and executes it.

Target devices SDRAM is exposed over PCI to host.
A circular buffer residing on target memory is used
for command exchange.

I should not allow host and target to play on the
buffer simultaneously in order to avoid corruption.

Does anybody know how to implement a lock
suitable for this issue?

or any lock less algorithm exists for communication
over PCI?

Regards,
Arun C
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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