[Bug 719858] New: pci=resource_alignment fails to reassign memory with kernel 2.6.37, works with 2.6.31
https://bugzilla.novell.com/show_bug.cgi?id=719858 https://bugzilla.novell.com/show_bug.cgi?id=719858#c0 Summary: pci=resource_alignment fails to reassign memory with kernel 2.6.37, works with 2.6.31 Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: jdouglas@suse.com ReportedBy: sk-public@revenant.org QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=452546) --> (http://bugzilla.novell.com/attachment.cgi?id=452546) dmesg output with 2.6.37.6-0.7.1 kernel User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 VM with PCI passthrough that works under OS 11.2 fails after upgrade to 11.4 with a "non-page-aligned MMIO" error, despite passing the pci=resource_alignment= kernel command for the passed-through devices to Dom0. It appears that the memory isn't actually remapped. The PCI device is a firewire/USB card using IDs 04:00.0 (USB), 04:00.1 (USB 2), and 04:01.0 (firewire). I reinstalled the 11.2 2.6.31.14-0.8 xen kernel on top of 11.4 to test the regression. Under that kernel, the VM boots successfully if Dom0 is given the same commands that worked with 11.2: root=/dev/sys/root elevator=deadline swiotlb=force,256 iommu=soft pciback.permissive pciback.hide=(00:14.2)(04:00.0)(04:00.1)(04:01.0)pci=resource_alignment=00:14.2;04:00.0;04:00.1;04:01.0 radeon.modeset=0 vga=0x317 Using that same kernel command line on xen kernel 2.6.37.6-0.7.1, xm create and starting the DomU from virt-manager fail with the error "0000:04:00.1: non-page-aligned MMIO BAR found." I've attached the dmesg output, which includes the following error: " [ 0.228516] pci 0000:04:00.1: BAR 0: can't assign mem (size 0x1000)". The BIOS is AMI v1.7 (9/7/10) on an MSI 890GXM-G65. Reproducible: Always Steps to Reproduce: 1. Boot with 11.4 OS with 2.6.37 kernel and pci=resource_alignment=<PCI DEVICE WITH NON-ALIGNED MEMORY> kernel command 2. Create DomU with passed-through virtual device Actual Results: DomU creation fails with non-page-aligned MMIO error Expected Results: DomU successfully created. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719858 https://bugzilla.novell.com/show_bug.cgi?id=719858#c1 Jan Beulich <jbeulich@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Found By|--- |Community User AssignedTo|jdouglas@suse.com |jbeulich@suse.com --- Comment #1 from Jan Beulich <jbeulich@suse.com> 2011-09-23 12:38:19 UTC --- arch_remove_reservations(), introduced in 2.6.37, clips available resource regions using the physical (rather than machine) E820 memory map. With sufficiently much memory available to Dom0, this makes re-assigning resources completely impossible. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719858 https://bugzilla.novell.com/show_bug.cgi?id=719858#c2 Jan Beulich <jbeulich@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High --- Comment #2 from Jan Beulich <jbeulich@suse.com> 2011-09-23 14:50:35 UTC --- Until the fix makes it into a maintenance update, using "dom0_mem=2G" (the actual number doesn't have to be 2G, but what a safe upper limit is depends on the hardware) on the Xen command line should allow getting around this problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719858 https://bugzilla.novell.com/show_bug.cgi?id=719858#c3 --- Comment #3 from Shanti Kulkarni <sk-public@revenant.org> 2011-09-23 15:41:55 UTC --- My system has 8G. This workaround (passing dom0_mem=512M to the xen kernel) works for me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=719858 https://bugzilla.novell.com/show_bug.cgi?id=719858#c4 Jan Beulich <jbeulich@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Jan Beulich <jbeulich@suse.com> 2011-11-18 08:16:01 UTC --- The fix was committed earlier this week, to appear in a future kernel maintenance update. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com