All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Bug 1809684] [NEW] amdgpu passthrough on POWER9 (ppc64el) not working
Date: Mon, 24 Dec 2018 23:26:15 -0000	[thread overview]
Message-ID: <154569397586.26258.18132613460124027534.malonedeb@chaenomeles.canonical.com> (raw)

Public bug reported:

When attempting to pass a Vega 56 GPU to a virtualized guest using QEMU
3.1 on ppc64el (POWER9), the guest is unable to initialize the GPU.
Further digging reveals the driver attempting to allocate a large BAR,
which then fails:

[    6.058544] [drm] PCI I/O BAR is not found.
<snip uninteresting bits>
[    6.679193] amdgpu 0000:00:03.0: BAR 2: releasing [mem 0x210400000000-0x2104001fffff pref]
[    6.679306] amdgpu 0000:00:03.0: BAR 0: releasing [mem 0x210200000000-0x2103ffffffff pref]
[    6.679361] amdgpu 0000:00:03.0: BAR 0: no space for [mem size 0x200000000 pref]
[    6.679403] amdgpu 0000:00:03.0: BAR 0: failed to assign [mem size 0x200000000 pref]
[    6.679444] amdgpu 0000:00:03.0: BAR 2: assigned [mem 0x200080200000-0x2000803fffff pref]
[    6.681420] amdgpu 0000:00:03.0: VRAM: 8176M 0x000000F400000000 - 0x000000F5FEFFFFFF (8176M used)
[    6.681507] amdgpu 0000:00:03.0: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[    6.681594] amdgpu 0000:00:03.0: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[    6.681653] [drm] Detected VRAM RAM=8176M, BAR=0M
[    6.681688] [drm] RAM width 2048bits HBM
[    6.681885] [TTM] Zone  kernel: Available graphics memory: 4176288 kiB
[    6.681978] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[    6.682043] [TTM] Initializing pool allocator
[    6.682159] [drm] amdgpu: 8176M of VRAM memory ready
[    6.682249] [drm] amdgpu: 6117M of GTT memory ready.
[    6.682387] [drm] GART: num cpu pages 8192, num gpu pages 131072
[    6.682466] amdgpu 0000:00:03.0: (-22) kernel bo map failed
[    6.682539] [drm:amdgpu_device_init [amdgpu]] *ERROR* amdgpu_vram_scratch_init failed -22
[    6.682592] amdgpu 0000:00:03.0: amdgpu_device_ip_init failed
[    6.682636] amdgpu 0000:00:03.0: Fatal error during GPU init

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1809684

Title:
  amdgpu passthrough on POWER9 (ppc64el) not working

Status in QEMU:
  New

Bug description:
  When attempting to pass a Vega 56 GPU to a virtualized guest using
  QEMU 3.1 on ppc64el (POWER9), the guest is unable to initialize the
  GPU.  Further digging reveals the driver attempting to allocate a
  large BAR, which then fails:

  [    6.058544] [drm] PCI I/O BAR is not found.
  <snip uninteresting bits>
  [    6.679193] amdgpu 0000:00:03.0: BAR 2: releasing [mem 0x210400000000-0x2104001fffff pref]
  [    6.679306] amdgpu 0000:00:03.0: BAR 0: releasing [mem 0x210200000000-0x2103ffffffff pref]
  [    6.679361] amdgpu 0000:00:03.0: BAR 0: no space for [mem size 0x200000000 pref]
  [    6.679403] amdgpu 0000:00:03.0: BAR 0: failed to assign [mem size 0x200000000 pref]
  [    6.679444] amdgpu 0000:00:03.0: BAR 2: assigned [mem 0x200080200000-0x2000803fffff pref]
  [    6.681420] amdgpu 0000:00:03.0: VRAM: 8176M 0x000000F400000000 - 0x000000F5FEFFFFFF (8176M used)
  [    6.681507] amdgpu 0000:00:03.0: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
  [    6.681594] amdgpu 0000:00:03.0: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
  [    6.681653] [drm] Detected VRAM RAM=8176M, BAR=0M
  [    6.681688] [drm] RAM width 2048bits HBM
  [    6.681885] [TTM] Zone  kernel: Available graphics memory: 4176288 kiB
  [    6.681978] [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
  [    6.682043] [TTM] Initializing pool allocator
  [    6.682159] [drm] amdgpu: 8176M of VRAM memory ready
  [    6.682249] [drm] amdgpu: 6117M of GTT memory ready.
  [    6.682387] [drm] GART: num cpu pages 8192, num gpu pages 131072
  [    6.682466] amdgpu 0000:00:03.0: (-22) kernel bo map failed
  [    6.682539] [drm:amdgpu_device_init [amdgpu]] *ERROR* amdgpu_vram_scratch_init failed -22
  [    6.682592] amdgpu 0000:00:03.0: amdgpu_device_ip_init failed
  [    6.682636] amdgpu 0000:00:03.0: Fatal error during GPU init

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1809684/+subscriptions

             reply	other threads:[~2018-12-24 23:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-24 23:26 Timothy Pearson [this message]
2021-04-20  8:02 ` [Bug 1809684] Re: amdgpu passthrough on POWER9 (ppc64el) not working Thomas Huth
2021-06-20  4:17 ` Launchpad Bug Tracker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=154569397586.26258.18132613460124027534.malonedeb@chaenomeles.canonical.com \
    --to=kb9vqf@pearsoncomputing.net \
    --cc=1809684@bugs.launchpad.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.