Re: Looking for way to program external MMU from userspace (or viable alternative)

2018-04-06 Thread Alan Cox
> The current kernel driver code looks up the physical address of a page of > user-allocated memory by traversing the page table, and then writing the > physical address to the external MMU. If we were to move the driver to > userspace, this procedure would require exposing the physical address to

Re: Looking for way to program external MMU from userspace (or viable alternative)

2018-04-06 Thread Alan Cox
> The current kernel driver code looks up the physical address of a page of > user-allocated memory by traversing the page table, and then writing the > physical address to the external MMU. If we were to move the driver to > userspace, this procedure would require exposing the physical address to

Re: Looking for way to program external MMU from userspace (or viable alternative)

2018-04-03 Thread Jerome Glisse
On Tue, Apr 03, 2018 at 01:27:36AM +, Simon Que wrote: > Hi kernel community, > > We have an external PCIe board with a custom coprocessor on it. We also > have code for a kernel driver for it. We have thought about upstreaming it, > but we realized that we can instead convert the driver to a

Re: Looking for way to program external MMU from userspace (or viable alternative)

2018-04-03 Thread Jerome Glisse
On Tue, Apr 03, 2018 at 01:27:36AM +, Simon Que wrote: > Hi kernel community, > > We have an external PCIe board with a custom coprocessor on it. We also > have code for a kernel driver for it. We have thought about upstreaming it, > but we realized that we can instead convert the driver to a

Looking for way to program external MMU from userspace (or viable alternative)

2018-04-02 Thread Simon Que
Hi kernel community, We have an external PCIe board with a custom coprocessor on it. We also have code for a kernel driver for it. We have thought about upstreaming it, but we realized that we can instead convert the driver to a userspace driver using UIO. However, there's one aspect of the

Looking for way to program external MMU from userspace (or viable alternative)

2018-04-02 Thread Simon Que
Hi kernel community, We have an external PCIe board with a custom coprocessor on it. We also have code for a kernel driver for it. We have thought about upstreaming it, but we realized that we can instead convert the driver to a userspace driver using UIO. However, there's one aspect of the