Skip to contentSkip to conversation

Bind amdgpu to SR-IOV virtual function

DISCUSSION Dennis Schridde 2 participants 4 messages Aug 25, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello!

I investigating the virtualisation abilities of current AMD FirePro hardware; specifically how to securely pass a share of a GPU to one application (a Rkt/ Docker container). I already read vfio.txt and pci-iov-howto.txt, but they do not answer my questions. I was unable to find documentation on the process online, either.

1. How do I create VFs from a AMD FirePro PF? I saw an example using VMWare ESXi tools, where it is possible to specify RAM size and time-share, but I have not seen how that translates to modifying /sys/bus/pci/..., which is the method recommended for SR-IOV devices in pci-iov-howto.txt.

2. After having created VFs, is it possible to bind these to the host's amdgpu driver, so that I get multiple /dev/dri/card* device nodes?

3. Will passing these /dev/dri/card* device nodes into a Rkt/Docker container be enough for the AMD Radeon Pro OpenGL runtime to be able to use that card?

Best regards,
Dennis Schridde

Signature · 11 lines
Heidelberg University Computing Centre
Service division: Future IT - Research & Education

Tel. +49 6221 54-4519, Fax +49 6221 54-5581
dennis.schridde-axtXthT+lymYbFdUjOg7S7NAH6kLmebB@public.gmane.org

http://www.urz.uni-heidelberg.de/

Ruprecht-Karls-Universität Heidelberg
Universitätsrechenzentrum
Im Neuenheimer Feld 293, 69120 Heidelberg, Germany

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#1 lore raw
Quoted 13 lines · Dennis Schridde

Hello!

I investigating the virtualisation abilities of current AMD FirePro hardware; specifically how to securely pass a share of a GPU to one application (a Rkt/ Docker container). I already read vfio.txt and pci-iov-howto.txt, but they do not answer my questions. I was unable to find documentation on the process online, either.

1. How do I create VFs from a AMD FirePro PF? I saw an example using VMWare ESXi tools, where it is possible to specify RAM size and time-share, but I have not seen how that translates to modifying /sys/bus/pci/..., which is the method recommended for SR-IOV devices in pci-iov-howto.txt.

Quoted 5 lines

2. After having created VFs, is it possible to bind these to the host's amdgpu driver, so that I get multiple /dev/dri/card* device nodes?

3. Will passing these /dev/dri/card* device nodes into a Rkt/Docker container be enough for the AMD Radeon Pro OpenGL runtime to be able to use that card?

SR-IOV support is not yet upstream for Linux.

Alex

Quoted 12 lines

Best regards,
Dennis Schridde
--
Heidelberg University Computing Centre Service division: Future IT - Research & Education

Tel. +49 6221 54-4519, Fax +49 6221 54-5581
[email protected]

http://www.urz.uni-heidelberg.de/

Quoted 8 lines

Ruprecht-Karls-Universität Heidelberg Universitätsrechenzentrum
Im Neuenheimer Feld 293, 69120 Heidelberg, Germany
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): CADnq5_PFpcM78ZtcfmDMdXboriz7MeLq7Ob+ZFWSOyVcNvoevQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw
Quoted 5 lines · Dennis Schridde
Quoted 1 line · On Thursday, 25 August 2016 11:44:08 CEST Alex Deucher wrote:

SR-IOV support is not yet upstream for Linux.

Where do I ask about the abilities of the binary driver? Is there another mailinglist?

There is no binary kernel driver. The Pro stack uses the open source amdgpu kernel driver and just adds closed source usermode components like OpenGL. We haven't released SR-IOV support yet on Linux.

Alex
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx