XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    PCIe Pass-through lanes and lane performance

    Scheduled Pinned Locked Moved Compute
    43 Posts 12 Posters 4.8k Views 10 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      JamesG @JamesG
      last edited by

      Yep...

      Stripped it all out....Rebooted...

      Set the pcihideback for dom0...Rebooted.

      Verified all devices were assignable.

      Assigned to guest VM, booted...No go.

      Initially the log said it couldn't assign 82:02.0
      So I removed it.
      Then it couldn't assign 82:01.0
      So I removed it.
      Then it couldn't assign 81:00.0
      So I removed it.

      Now the VM works...But we're effectively back to just passing through the GPU itself, and I guess the audio device.

      No functional change.

      TeddyAstieT 1 Reply Last reply Reply Quote 0
      • TeddyAstieT Online
        TeddyAstie Vates 🪐 XCP-ng Team Xen Guru @JamesG
        last edited by

        @JamesG

        You can't PCI Passthrough a PCI bridge (and even if you could, it wouldn't be very useful), as it's a part of PCI internals and not really something the guest requires to use the device.

        As I asked previously, is there any issue (aside display like PCIe 1.0 1x) with the device, is it behavior correctly or having the expected performance ?

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JamesG @TeddyAstie
          last edited by

          @TeddyAstie From what I've tried...It won't work at all in Linux.

          It kind of works in Windows, and while I do see some load on the GPU when running something, there's as much if not more load on the CPU. It's not what I expected at least.

          I've never really gamed on PC, and definitely never Linux. My only uses for GPU's have been in media composition which was always on dedicated systems and Nvidia GPUs. More recently I've been doing some AI tasks, again with passed-through NVidia GPUs.

          Side tangent...
          I ran into another workload last night where the app wanted OpenGL...But OpenGL doesn't work with the "normal" VGA adapter in XCP-ng, and I don't have a GPU on that particular pool to try a pass-through. That lead me to VirGL, but it doesn't look like that's gone anywhere.

          1 Reply Last reply Reply Quote 0
          • pandusenP Offline
            pandusen @andriy.sultanov
            last edited by pandusen

            @andriy.sultanov said:
            I'll try to see why other devices are omitted and how this can be fixed.

            Any news on this?
            I have been fighting with getting an Intel Arc Pro B50 to work on Linux for months and i suspect that, the fact that the audio device isn't present, is what makes Linux fail to load the driver correctly.

            Going the xen-cmdline way, seams to disable xe passthrough both in command line and in XO gui, causing all kinds of issues.

            Windows seems to be able to initialise the GPU driver without the audio device, but it is in some kind of borked state. You can send workload to the GPU but the drivers are complaining about "no-pci compatibility".

            XCP-ng 8.3 (latest patches)
            Fedora server 44 - Kernel 7.1.5-201
            on latest Arc firmware as well.

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              andriy.sultanov Vates 🪐 XAPI & Network Team @pandusen
              last edited by

              @pandusen As Teddy said above, you can't passthrough a PCI bridge, so there's no PCI devices xapi shouldn't omit here.

              But "going the xen-cmdline way" shouldn't break anything, that's what xe pci-disable-dom0-access does behind the scenes. What issues did you see? Which steps did you follow?

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                JamesG @andriy.sultanov
                last edited by

                @andriy.sultanov It's possible that this is just a fundamental issue with trying to use (maybe just Battlemage) Intel GPU's in XCP-ng.

                The card itself appears to be a PCIe bridge in front of the actual GPU hardware on the card. If the driver on the guest requires "the whole thing" sent to it, and you can't pass-through the whole bridge and everything behind it, then there's no real way to use these GPU's in a guest on XCP-ng.

                The lack of recent kernel or sufficient backports in the XCP-ng kernel, means the SRIOV features of Intel GPU's are lost as well.

                All of this stuff works in Proxmox with seemingly little issues.

                James

                1 Reply Last reply Reply Quote 0
                • TeddyAstieT Online
                  TeddyAstie Vates 🪐 XCP-ng Team Xen Guru
                  last edited by

                  FYI I will get my hands on a Intel Arc Pro B50 to make various tests with it (in the next weeks). If something don't behave as expected, I will try to find a solution.

                  J 2 Replies Last reply Reply Quote 0
                  • J Offline
                    JamesG @TeddyAstie
                    last edited by

                    @TeddyAstie I think there's alot of interest in the Intel platform because of the lack of ridiculous licensing for virtualization features. The problem is that you need a pretty current 6.x kernel to use them and XCP-ng/XenServer is just stuck on a really aging kernel right now.

                    As exposed in this thread, the PCIe pass-through isn't really working properly under XCP-ng.

                    Even if pass-through worked, that's kinda lame because the real purpose would be to chop up the GPU into SR-IOV instances so multiple workloads could have a GPU.

                    The Proxmox community is already rockin' and rollin' with this. I watched a video a couple of days ago where a B70 was chopped up into Qty.4, 8GB GPU's via SR-IOV and passed to clients.

                    No ridiculous mega-$$$$ licensing. It just worked.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JamesG @TeddyAstie
                      last edited by

                      @TeddyAstie

                      Thought...If you want access to a server with a B50, I think I could setup VPN access and put a host online with IPMI access for you to do whatever you want with.

                      You will have an AMD Epyc 7302 with 64GB of ram some flash and HDD storage, and an Intel B50. PM me and we can work out the details of what you need to experiment with, and I can setup some remote access for you to get into the system.

                      I will gladly work with you guys any which way I can to move this forward.

                      TeddyAstieT 1 Reply Last reply Reply Quote 0
                      • TeddyAstieT Online
                        TeddyAstie Vates 🪐 XCP-ng Team Xen Guru @JamesG
                        last edited by

                        @JamesG Don't bother, I'm in PTO next week; so I may get access to hardware when I'm back.

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post