[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
Ubuntu 18.10 (Cosmic Cuttlefish) has reached end of life, so this bug will not be fixed for that specific release. ** Changed in: linux (Ubuntu Cosmic) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
No, only pci=noats works -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
I have the same issue on Radeon 570 4gb, Ryzen 1700, MSI Tomahawk on 18.04. The only way to boot is to use IOMMU=soft. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
** Bug watch added: freedesktop.org Bugzilla #110360 https://bugs.freedesktop.org/show_bug.cgi?id=110360 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
I have also had this problem - MSI Tomahawk Arctic B350, ryzen 1700, vega 56 gpu ubuntu 19.04 - ignores bios setting, attempts to boot, kernel panic with lots of AMD-Vi: Completion-Wait loop timed out Reboot to find grub in rescue mode, and all ext4 partitions wiped. Can't boot live disc either, unless swap to an nvidia graphics card Only work around is to add the kernel parameters, but booting ubuntu shouldn't wipe my OS? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
** Changed in: linux (Ubuntu) Assignee: Joseph Salisbury (jsalisbury) => (unassigned) ** Changed in: linux (Ubuntu Bionic) Assignee: Joseph Salisbury (jsalisbury) => (unassigned) ** Changed in: linux (Ubuntu Cosmic) Assignee: Joseph Salisbury (jsalisbury) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
I have the same issue, but with a Ryzen 7 1700 with the following setups: Setup 1: Motherboard: Gigabyte B450 Aorus M (Latest BIOS installed) RAM: 32 GB DDR4 Crucial 3000 Mhz GPU1: Sapphire Radeon RX 580 Nitro+ Special Edition 8GB GDDR5 GPU2: Asus Mining Radeon RX 470 4G GDDR5 SSD: 240 GB WD Green Setup 2: Motherboard: ASRock AB350M Pro4 (Latest BIOS installed) RAM: 32 GB DDR4 Crucial 3000 Mhz GPU1: Sapphire Radeon RX 580 Nitro+ Special Edition 8GB GDDR5 GPU2: Sapphire Radeon RX 550 2G GDDR5 SSD: 240 GB WD Green The issue first started after installing the second GPU on each of the systems. I can't even boot the system, as the errors appear right after BIOS initialization. The errors are like: [exerpt] AMD-Vi: Completion-Wait loop timed out AMD-Vi: Completion-Wait loop timed out AMD-Vi: Completion-Wait loop timed out ... AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=22:00.0 address=0x000174bb7560] Entering emergecy mode. Exit the shell to continue. Type "journalctl" to view system logs. AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=22:00.0 address=0x000174bb75d0] AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=22:00.0 address=0x000174bb7700] AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=22:00.0 address=0x000174bb7630] AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=22:00.0 address=0x000174bb7660] AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=22:00.0 address=0x000174bb7690] AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=22:00.0 address=0x000174bb76c0] AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=22:00.0 address=0x000174bb76f0] ... AMD-Vi: Completion-Wait loop timed out AMD-Vi: Event logged [IO_PAGE_FAULT device=23:00.3 domain=0x000 address=0xfffd3990 flags=0x0070] ... Buffer I/O error on dev dm-0, logical block 104857472, async page read Buffer I/O error on dev dm-0, logical block 104857473, async page read Buffer I/O error on dev dm-0, logical block 104857474, async page read Buffer I/O error on dev dm-0, logical block 104857475, async page read Buffer I/O error on dev dm-0, logical block 104857476, async page read Buffer I/O error on dev dm-0, logical block 104857477, async page read . After some research I discovered that it is a IOMMU issue. I turned IOMMU off on both motherboards, and I managed to boot the system. I am an architect and I use blender for GPU rendering (this is the idea of having two), but the AMDGPU-Pro driver from the AMD's website (the only one that Blender uses for GPU rendering, as it can't use the open one) affects the way Gnome works on Xorg. It affects in the way that it doesn't start at all, it keeps restarting to the GDM screen... Any ideas? Thanks. ** Attachment added: "the screen photos when the errors appeared" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5253632/+files/Photos.zip -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
Launchpad has imported 21 comments from the remote bug at https://bugzilla.kernel.org/show_bug.cgi?id=194521. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2017-02-08T20:32:58+00:00 vaclav.ovsik wrote: Created attachment 254611 crash logged using netconsole I bought my daughter a notebook HP 15-ba062nc (http://support.hp.com/us-en/product/HP-15-ba000-Notebook-PC-series/10862317/model/11792430). Installed is Debian Stretch/Sid with kernel 4.9.6. Successful boot without crash is possible with - disabled amdgpu (e.g. old nomodeset) - or disabled iommu (iommu=off) otherwise the kernel crashes and the file-system is corrupted. iommu=off is much better way now, because the notebook runs in energy efficient manner - the fan is quiet or stopped. Attached are kernel messages using netconsle. Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/0 On 2017-02-08T20:35:58+00:00 vaclav.ovsik wrote: Created attachment 254621 nomodeset - no crash Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/1 On 2017-02-08T20:37:02+00:00 vaclav.ovsik wrote: Created attachment 254631 iommu=off - no crash Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/2 On 2017-02-08T20:48:42+00:00 vaclav.ovsik wrote: Created attachment 254641 lspci -vvv Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/3 On 2017-02-08T20:52:17+00:00 vaclav.ovsik wrote: Created attachment 254651 /proc/cpuinfo Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/4 On 2017-02-08T21:09:53+00:00 vaclav.ovsik wrote: Created attachment 254661 crash logged using netconsole Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/5 On 2017-02-09T12:07:28+00:00 fin4478 wrote: Do you have the amdgpu firmware installed? When you create bugs against amdgpu driver, use the latest kernel and mesa code: https://cgit.freedesktop.org/~agd5f/linux/?h=drm-next-4.11-wip https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers Problems might be fixed in the latest code. Latest polaris firmware: https://people.freedesktop.org/~agd5f/radeon_ucode/polaris/ How to create a custom kernel, see: https://bugzilla.kernel.org/show_bug.cgi?id=193651 Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/6 On 2017-02-09T23:34:15+00:00 vaclav.ovsik wrote: Doubt the problem is in the amdgpu driver. What about bug in the amd_iommu? I think this because I tried to switch off external GPU using acpi_call module. The following command was successful: echo '\_SB_.PCI0.VGA.PX02' > /proc/acpi/call while running kernel with no KMS (no amdgpu). Fan really went silent after this, but kernel crashed in several seconds in similar way like with amdgpu and active iommu. The filesystem is after every crash corrupted. I'm afraid that storage controller goes through iommu too and crash causes some random writes to disk :(. But may be I am wrong and this ACPI call is illegal in reality and amdgpu does something wrong regarding iommu to. Nevertheless amdgpu works with iommu=off fine. Maybe the problem is with some buggy BIOS/firmware from vendor. I will try a newer kernel. Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/7 On 2017-02-10T18:36:11+00:00 vaclav.ovsik wrote: I tried kernel 4.10.0-rc6-amd64 from Debian experimental archive and the result is very similar. To minimize harm on filesystem I booted into emergency mode with read-only file-system and tried to switch off GPU using ACPI call. There is some warning during call, but something happened :) ACPI Warning: \_SB.PCI0.VGA.PX02: Insufficient arguments - Caller passed 0, method requires 1 (20160930/nsarguments-256) I did this twice - one time with and one time without iommu=off. I'm attaching netconsole logs... Is this a proof the problem is in the amd_iommu.c? Reply at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/comments/8 On 2017-02-10T18:37:59+00:00 vaclav.ovsik wrote
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
All the tests were done with iommu turned off and SVE turned on in the bios, and it does not boot without iommu=soft When booting with SVE and IOMMU enabled in the bios I got an endless screen of text and I couldn't make up anything from it. booting with iommu turned on in the kernel and SVE turned off gives the screenshot below ** Attachment added: "IMG_20180621_204111.jpg" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5155273/+files/IMG_20180621_204111.jpg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
4.18 rc1 + mem_encrypt=off ** Attachment added: "early boot" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5155268/+files/IMG_20180621_200328.jpg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
4.18 rc1 + mem_encrypt=off ** Attachment added: "initramfs" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5155269/+files/IMG_20180621_200451.jpg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
4.18 rc1 + mem_encrypt=off ** Attachment added: "exit initramfs" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5155270/+files/IMG_20180621_200545.jpg ** Changed in: linux (Ubuntu Bionic) Status: Incomplete => Confirmed ** Changed in: linux (Ubuntu Cosmic) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
4.18 rc1 ** Attachment added: "part 2" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5155267/+files/IMG_20180621_195717.jpg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
The attached screenshots are the result of booting 4.18 rc1 kernel ** Attachment added: "part 1" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5155266/+files/IMG_20180621_195656.jpg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
** Changed in: linux (Ubuntu Bionic) Status: Triaged => Incomplete ** Changed in: linux (Ubuntu Cosmic) Status: Triaged => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
@Peridot, Request from Upstream: For the original 4.13 kernel, I don't see any attachments that have the AMD-Vi messages in question. Were they completion timeouts (like in the later mainline kernel test, which I'll get to in a bit) or I/O page fault messages? Without that information it is hard to determine what the issue really is. (Just as an FYI, if the IOMMU is disabled in BIOS, then iommu=soft is not necessary on the kernel command line). For the upstream kernel test, since this is a Ryzen system, it's possible that the BIOS does not have a requisite fix for SME and IOMMU (see [1]). On the upstream kernel, if memory encryption is active by default without this BIOS fix, then the result is AMD-Vi completion-wait timeout messages. Try booting with mem_encrypt=off on the kernel command line or build a kernel with CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=n and see if that allows the kernel to boot. Thanks, Tom [1] https://bugzilla.kernel.org/show_bug.cgi?id=199513 ** Bug watch added: Linux Kernel Bug Tracker #199513 https://bugzilla.kernel.org/show_bug.cgi?id=199513 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
I tested with 4.17 rc4 and the problem persists -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
@Peridot, I know you responded that the current mainline kernel still exhibits the bug on IRC. However, could you also add that test result to this bug report for upstream tracking? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
Can you see if this bug still exists in current mainline: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17-rc5/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
The patch mentioned in the upstream bug report and comment #25 never landed in mainline. I tried to apply it to Bionic, but it does not apply cleanly. I'll work on back porting it. I'll post a test kernel shortly. We can then update upstream with testing results. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
** Changed in: linux (Ubuntu) Assignee: (unassigned) => Joseph Salisbury (jsalisbury) ** Also affects: linux (Ubuntu Cosmic) Importance: Medium Assignee: Joseph Salisbury (jsalisbury) Status: Confirmed ** Also affects: linux (Ubuntu Bionic) Importance: Undecided Status: New ** Changed in: linux (Ubuntu Bionic) Importance: Undecided => Medium ** Changed in: linux (Ubuntu Bionic) Status: New => Triaged ** Changed in: linux (Ubuntu Cosmic) Status: Confirmed => Triaged ** Changed in: linux (Ubuntu Bionic) Assignee: (unassigned) => Joseph Salisbury (jsalisbury) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
I agree, I just meant that that bug might also be useful with debugging. It was closed because zesty reached EOL. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
I don't see the patch is in upstream Linux though, so still worth a try. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
The upstream bug https://bugs.freedesktop.org/show_bug.cgi?id=101029 makes reference to https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1683184 which is marked as fix released, just a heads up. ** Bug watch added: freedesktop.org Bugzilla #101029 https://bugs.freedesktop.org/show_bug.cgi?id=101029 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
Looks like there's a patch but not upstreamed yet, https://patchwork.freedesktop.org/patch/157327/ ** Bug watch added: Linux Kernel Bug Tracker #194521 https://bugzilla.kernel.org/show_bug.cgi?id=194521 ** Also affects: linux via https://bugzilla.kernel.org/show_bug.cgi?id=194521 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
AMD-v was not enabled but with it enabled booting without iommu=soft results in a crash that only lasts about a second and then loses HDMI connection. This is with the Ubuntu Kernel ** Attachment added: "amdv and iommu enabled ubuntu kernel" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5052073/+files/ubuntukernel.jpg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
And with the mainline kernel ** Attachment added: "amdv and iommu enabled mainline kernel" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5052087/+files/mainland.jpg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
Though with iommu=soft it boots on both kernels with IOMMU and AMD-v enabled in the BIOS -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
Is AMD-V enabled in BIOS? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
I found it also boots with IOMMU turned on in the bios as long as you set iommu=soft, both with the ubuntu kernel and the mainline kernel. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
When I exit the above pictured initram prompt I get a full crash. ** Attachment added: "upstream kernel iommu segfault" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5051784/+files/IMG_20180209_115216.jpg ** Tags added: kernel-bug-exists-upstream ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
this is the result of booting with the upstream kernel with IOMMU turned on in the bios ** Attachment added: "upstream kernel with iommu" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+attachment/5051781/+files/IMG_20180209_115100.jpg -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem? Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.15 kernel[0]. If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'. If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'. Once testing of the upstream kernel is complete, please mark this bug as "Confirmed". Thanks in advance. [0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15 ** Changed in: linux (Ubuntu) Importance: Undecided => Medium ** Changed in: linux (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1747463 Title: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1747463/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1747463] Re: kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
** Summary changed: - kernel crashes unless IOMMU is disabled on Ryzen 1800X + kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X ** Description changed: I'm on a Ryzen 1800X and Biostar B350GT5 on bionic kubuntu. - Lots of AMD-Vi logged events and I get irq crashes or acpi hangups with - a normal boot. How I it to work is to disable IOMMU in the BIOS and add - "iommu=soft" to the kernel booting options in grub. + There are lots of AMD-Vi logged events and I get irq crashes or acpi + hangups with a 'normal' boot. I got it to boot by disabling IOMMU in the + BIOS and adding "iommu=soft" to the kernel booting options in grub. linux can then detect everything properly (all cores) and I've had zero crashes. The only issue is that it's using software IOMMU. Alternatively it boots with the kernel option "acpi=off" but only detects a single core/thread. I attached a kernel log. I believe(d) this might be related to https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1671360 and https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1690085 - --- + --- ApportVersion: 2.20.8-0ubuntu8 Architecture: amd64 AudioDevicesInUse: - USERPID ACCESS COMMAND - /dev/snd/controlC1: fixme 1487 F pulseaudio - /dev/snd/controlC0: fixme 1487 F pulseaudio + USERPID ACCESS COMMAND + /dev/snd/controlC1: fixme 1487 F pulseaudio + /dev/snd/controlC0: fixme 1487 F pulseaudio CurrentDesktop: KDE DistroRelease: Ubuntu 18.04 HibernationDevice: RESUME=UUID=bc971fcc-8e63-4fa5-a149-af4af6c8eece InstallationDate: Installed on 2018-01-31 (4 days ago) InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180131) IwConfig: - lono wireless extensions. - - enp3s0no wireless extensions. + lono wireless extensions. + + enp3s0no wireless extensions. MachineType: BIOSTAR Group B350GT5 Package: linux (not installed) ProcFB: 0 amdgpudrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-32-generic.efi.signed root=/dev/mapper/kubuntu--vg-root ro iommu=soft quiet splash vt.handoff=1 ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13 RelatedPackageVersions: - linux-restricted-modules-4.13.0-32-generic N/A - linux-backports-modules-4.13.0-32-generic N/A - linux-firmware 1.170 + linux-restricted-modules-4.13.0-32-generic N/A + linux-backports-modules-4.13.0-32-generic N/A + linux-firmware 1.170 RfKill: - + Tags: bionic Uname: Linux 4.13.0-32-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True dmi.bios.date: 11/30/2017 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 5.13 dmi.board.asset.tag: None dmi.board.name: B350GT5 dmi.board.vendor: BIOSTAR Group dmi.chassis.asset.tag: Default string dmi.chassis.type: 3 dmi.chassis.vendor: Default string dmi.chassis.version: Default string dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr5.13:bd11/30/2017:svnBIOSTARGroup:pnB350GT5:pvr:rvnBIOSTARGroup:rnB350GT5:rvr:cvnDefaultstring:ct3:cvrDefaultstring: dmi.product.family: None dmi.product.name: B350GT5 dmi.sys.vendor: BIOSTAR Group ** Description changed: I'm on a Ryzen 1800X and Biostar B350GT5 on bionic kubuntu. There are lots of AMD-Vi logged events and I get irq crashes or acpi hangups with a 'normal' boot. I got it to boot by disabling IOMMU in the BIOS and adding "iommu=soft" to the kernel booting options in grub. linux can then detect everything properly (all cores) and I've had zero - crashes. The only issue is that it's using software IOMMU. + crashes. The only issue is that it's using software IOMMU which could + have a performance penalty because it has to copy all the data of some + PCI devices to sub 4G regions. Alternatively it boots with the kernel option "acpi=off" but only detects a single core/thread. I attached a kernel log. I believe(d) this might be related to https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1671360 and https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1690085 --- ApportVersion: 2.20.8-0ubuntu8 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC1: fixme 1487 F pulseaudio /dev/snd/controlC0: fixme 1487 F pulseaudio CurrentDesktop: KDE DistroRelease: Ubuntu 18.04 HibernationDevice: RESUME=UUID=bc971fcc-8e63-4fa5-a149-af4af6c8eece InstallationDate: Installed on 2018-01-31 (4 days ago) InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180131) IwConfig: lono wireless extensions. enp3s0no wireless extensions. MachineType: BIOSTAR Group B350GT5 Package: linux (not installed) ProcFB: 0 amdgpudrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-32-g