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

    iGPU PCI passthrough: new experimental packages need testers

    Scheduled Pinned Locked Moved Hardware
    14 Posts 2 Posters 90 Views 2 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.
    • Y
      yannsionneau Vates 🪐 XCP-ng Team @ovicz
      last edited by

      @ovicz in your case it seems the vbios is in the ROM BAR.
      You can dump the vbios by doing something like

      cd /sys/bus/pci/devices/0000:00:02.0/
      echo 1 > rom
      cat rom > /root/vbios.bin
      echo 0 > rom
      
      Y O 2 Replies Last reply
      Reply Quote 0
      • Y
        yannsionneau Vates 🪐 XCP-ng Team @yannsionneau
        last edited by

        Another possibility for you would be to yum downgrade qemu and the xapi packages, everything except edk2 and try again.

        O 1 Reply Last reply
        Reply Quote 0
        • O
          ovicz @yannsionneau
          last edited by

          @yannsionneau cd /sys/bus/pci/devices/0000:00:02.0/
          [11:55 xcp-ng-akz 0000:00:02.0]# echo 1 > rom
          [11:55 xcp-ng-akz 0000:00:02.0]# cat rom > /root/vbios.bin
          cat: rom: Input/output error
          [11:55 xcp-ng-akz 0000:00:02.0]# echo 0 > rom

          1 Reply Last reply
          Reply Quote 0
          • O
            ovicz @yannsionneau
            last edited by

            @yannsionneau Reverted to stable and I upgraded only that package from your repo. VMs start now. At what should i look for now ?

            Y O 2 Replies Last reply
            Reply Quote 0
            • Y
              yannsionneau Vates 🪐 XCP-ng Team @ovicz
              last edited by yannsionneau

              @ovicz with the new edk2 package it should help your VM access the vbios in the rom bar.
              Does the VM see the gpu?
              Can you share the VM dmesg as attached file?
              Also, are you trying to passthrough a sriov virtual function? or the entire physical gpu?
              Thanks

              1 Reply Last reply
              Reply Quote 0
              • O
                ovicz @ovicz
                last edited by

                Yes it does see it.
                dmesg.txt
                Passthrough was working and without that file from your repo.

                Y 1 Reply Last reply
                Reply Quote 0
                • Y
                  yannsionneau Vates 🪐 XCP-ng Team @ovicz
                  last edited by

                  @ovicz It seems your gpu works even without vbios since in your dmesg I can see

                  [    7.424250] i915 0000:00:08.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0x0000
                  [    7.424259] i915 0000:00:08.0: [drm] Failed to find VBIOS tables (VBT)
                  

                  So you're saying that anyway your setup was working even without all those new packages?
                  Thanks for testing anyway!

                  O 1 Reply Last reply
                  Reply Quote 0
                  • O
                    ovicz @yannsionneau
                    last edited by

                    @yannsionneau Yes it works with the stock packages.

                    Y 1 Reply Last reply
                    Reply Quote 0
                    • Y
                      yannsionneau Vates 🪐 XCP-ng Team @ovicz
                      last edited by

                      @ovicz Thanks a lot for the feedbacks and tests 🙂

                      O 1 Reply Last reply
                      Reply Quote 0
                      • O
                        ovicz @yannsionneau
                        last edited by

                        @yannsionneau No problem.

                        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