Re: mutual exclusion locks over PCI memory

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

 



On Fri, Feb 20, 2009 at 09:39:51PM +0800, arun c wrote:
> 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?

Looks like you want two kernels to communicate with each other thru
non-transparent PCI bridge.

You might want to look at this:
http://thread.gmane.org/gmane.linux.kernel/750865
and especially the comments from Arnd Bergmann :-)

And the author also published an updated patch using virtio-net this
month, you can find it on the lkml.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux