From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Koenig, Christian" Subject: Re: PCIe P2P access to GPU memory Date: Sat, 29 Sep 2018 07:27:03 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0185177104==" Return-path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0080.outbound.protection.outlook.com [104.47.37.80]) by gabe.freedesktop.org (Postfix) with ESMTPS id E545F6E01B for ; Sat, 29 Sep 2018 07:27:08 +0000 (UTC) In-Reply-To: Content-Language: de-DE List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Dirk Eibach Cc: "dri-devel@lists.freedesktop.org" List-Id: dri-devel@lists.freedesktop.org --===============0185177104== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_fd8be09e37c84f47a5dc10fbccf15ed6emailandroidcom_" --_000_fd8be09e37c84f47a5dc10fbccf15ed6emailandroidcom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable This is work in progress. I published patches to enable DMA_buf P2P a few months ago, but now I'm wai= ting 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 yo= u want to test this. Regards, Christian. Am 29.09.2018 09:01 schrieb 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 infrastructure in place for doing this? If not, what would be the right way to implement this? Add another callback to the dmabuf struct? Cheers Dirk --_000_fd8be09e37c84f47a5dc10fbccf15ed6emailandroidcom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
This is work in progress.

I published patches to enable DMA_buf P2P a few months ag= o, but now I'm waiting for the PCI subsystem to pick up core support for th= is.

I can prepare you a branch based on current upstream kern= el next week if you want to test this.

Regards,
Christian.

Am 29.09.2018 09:01 schrieb Dirk Eibach <di= rk.eibach@googlemail.com>:
I want to access GPU VRAM via PCIe P2P access, lik= e 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
infrastructure in place for doing this? If not, what would be the
right way to implement this? Add another callback to the dmabuf
struct?

Cheers
Dirk
--_000_fd8be09e37c84f47a5dc10fbccf15ed6emailandroidcom_-- --===============0185177104== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0185177104==--