Re: PCIe P2P access to GPU memory

2018-10-03 Thread Christian König
Am 03.10.2018 um 11:06 schrieb Daniel Vetter: On Wed, Oct 03, 2018 at 08:54:44AM +, Koenig, Christian wrote: Am 03.10.2018 um 09:14 schrieb Daniel Vetter: On Sat, Sep 29, 2018 at 9:27 AM Koenig, Christian wrote: This is work in progress. I published patches to enable DMA_buf P2P a few

Re: PCIe P2P access to GPU memory

2018-10-03 Thread Daniel Vetter
On Wed, Oct 03, 2018 at 08:54:44AM +, Koenig, Christian wrote: > Am 03.10.2018 um 09:14 schrieb Daniel Vetter: > > On Sat, Sep 29, 2018 at 9:27 AM Koenig, Christian > > wrote: > >> This is work in progress. > >> > >> I published patches to enable DMA_buf P2P a few months ago, but now I'm >

Re: PCIe P2P access to GPU memory

2018-10-03 Thread Koenig, Christian
Am 03.10.2018 um 09:14 schrieb Daniel Vetter: > On Sat, Sep 29, 2018 at 9:27 AM Koenig, Christian > wrote: >> This is work in progress. >> >> I published patches to enable DMA_buf P2P a few months ago, but now I'm >> waiting for the PCI subsystem to pick up core support for this. >> >> I can

Re: PCIe P2P access to GPU memory

2018-10-03 Thread Daniel Vetter
On Sat, Sep 29, 2018 at 9:27 AM Koenig, Christian wrote: > > This is work in progress. > > I published patches to enable DMA_buf P2P a few months ago, but now I'm > waiting for the PCI subsystem to pick up core support for this. > > I can prepare you a branch based on current upstream kernel

Re: PCIe P2P access to GPU memory

2018-10-01 Thread Dirk Eibach
Hi Christian, Could I simply force it by overwriting peer2peer after the attach call? Cheers Dirk > Hi Dirk, > > > Any ideas? > Could be anything. Most likely cause is that some function things the > two device can't communicate directly with each other. > > Please provide a full dmesg and

Re: PCIe P2P access to GPU memory

2018-10-01 Thread Christian König
Hi Dirk, Any ideas? Could be anything. Most likely cause is that some function things the two device can't communicate directly with each other. Please provide a full dmesg and "lspci -t -nn -v" as attachment and note which devices should communicate with which. I'm currently on vacation

Re: PCIe P2P access to GPU memory

2018-10-01 Thread Dirk Eibach
Hi Christian, I took the repository Dieter suggested and gave it a spin. I am not sure, if I got the API right. In userspace I create a bo and get a fd. bo = gbm_bo_create(gbm, w, h, GBM_FORMAT_ARGB, GBM_BO_USE_LINEAR); dmabuf_fd = gbm_bo_get_fd(bo); Then I pass the fd to the grabber

Re: PCIe P2P access to GPU memory

2018-09-29 Thread Dieter Nützel
Hello Dirk, I think Christian is talking about this branch: https://cgit.freedesktop.org/~deathsimple/linux/log/?h=p2p His 'home' is, here: https://cgit.freedesktop.org/~deathsimple/linux/ Happy hacking! ;-) Dieter Am 29.09.2018 10:17, schrieb Dirk Eibach: This is work in progress. I

Re: PCIe P2P access to GPU memory

2018-09-29 Thread Dirk Eibach
> This is work in progress. > > I published patches to enable DMA_buf P2P a few months ago, but now I'm > waiting for the PCI subsystem to pick up core support for this. Great news! Can you give me a link to this series so I can already have a look? > I can prepare you a branch based on current

Re: PCIe P2P access to GPU memory

2018-09-29 Thread Koenig, Christian
This is work in progress. I published patches to enable DMA_buf P2P a few months ago, but now I'm waiting for the PCI subsystem to pick up core support for this. I can prepare you a branch based on current upstream kernel next week if you want to test this. Regards, Christian. Am 29.09.2018

PCIe P2P access to GPU memory

2018-09-29 Thread Dirk Eibach
I want to access GPU VRAM via PCIe P2P access, like DirectGMA but with mainline drivers. I can acquire a dmabuf from the GPU and pass it to my PCIe framegrabber. But I don't see a way to get the PCIe bus address of the video memory which I need for the P2P transfer. Is there already any