[KOP]:: L2 fails to boot with vfio passed through device and memory > 128G

Bug #2107396 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Ubuntu-power-systems project
New
Medium
Ubuntu on IBM Power Systems Bug Triage
qemu (Ubuntu)
New
Medium
Unassigned

Bug Description

== Comment: #0 - SEETEENA THOUFEEK <email address hidden> - 2025-04-15 09:03:28 ==
+++ This bug was initially created as a clone of Bug #212409 +++

---Problem Description---
---Problem Description---
An L2 fails to boot inside an L1 when booted with a memory more than 128G and a VFIO device passthrough.

The issue is seen with both, when guest booted with virsh and as well as with a direct qemu cmdline.

Error:
------
[ 4.708646] tg3 0001:00:01.0: enabling device (0140 -> 0142)
[ 4.734333] tg3 0001:00:01.0: ibm,query-pe-dma-windows(2026) 800 8000000 20000001 returned 0, lb=2000000000 ps=100 wn=1
qemu-system-ppc64: Failed to create a window, ret = -1 (Invalid argument)
qemu-system-ppc64: Failed to create SPAPR window: Invalid argument
qemu: hardware error: vfio: DMA mapping failed, unable to continue

Contact Information = <email address hidden>

---uname output---
na

Machine Type = na

---Debugger---
A debugger is not configured

The patches are now in vfio-next branch in Cedric's tree:

  d7ee6466d4ab ("vfio/spapr: Fix L2 crash with PCI device passthrough and memory > 128G")
  ce07cf682e54 ("vfio/spapr: Enhance error handling in vfio_spapr_create_window()")

Links to commits:

  https://github.com/legoater/qemu/commit/ce07cf682e54eba1360e1546c248f1485016bb79
  https://github.com/legoater/qemu/commit/d7ee6466d4ab2515f57f41e1ee6015704d7938d3

~Amit

Machine Type = na

---Debugger---
A debugger is not configured

Contact Information = <email address hidden>

---uname output---
na

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-212410 severity-medium targetmilestone-inin2510
Changed in ubuntu:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
affects: ubuntu → qemu (Ubuntu)
Revision history for this message
Frank Heimes (fheimes) wrote :

Hello Seeteena, that for having raised this.
May I ask which Ubuntu releases are affected? Is it only 25.04 or 24.04 and newer (up to 25.04)?
(Tag 'targetmilestone-inin2510' is set, but release 25.10 is not open for development yet.)

Changed in ubuntu-power-systems:
assignee: nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
Changed in qemu (Ubuntu):
assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → nobody
Changed in ubuntu-power-systems:
importance: Undecided → Medium
Changed in qemu (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.