kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux |
Confirmed
|
Medium
|
|||
linux (Ubuntu) |
Confirmed
|
Medium
|
Unassigned | ||
Bionic |
Confirmed
|
Medium
|
Unassigned | ||
Cosmic |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
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 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:/
and https:/
---
ApportVersion: 2.20.8-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CurrentDesktop: KDE
DistroRelease: Ubuntu 18.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2018-01-31 (4 days ago)
InstallationMedia: Kubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180131)
IwConfig:
lo no wireless extensions.
enp3s0 no wireless extensions.
MachineType: BIOSTAR Group B350GT5
Package: linux (not installed)
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
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.
dmi.board.name: B350GT5
dmi.board.vendor: BIOSTAR Group
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: None
dmi.product.name: B350GT5
dmi.sys.vendor: BIOSTAR Group
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
summary: |
- kernel crashes unless IOMMU is disabled on Ryzen 1800X + kernel crashes during boot unless IOMMU is disabled on Ryzen 1800X |
description: | updated |
description: | updated |
Changed in linux (Ubuntu): | |
assignee: | nobody → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu Bionic): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in linux (Ubuntu Cosmic): | |
status: | Confirmed → Triaged |
Changed in linux (Ubuntu Bionic): | |
assignee: | nobody → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu Bionic): | |
status: | Triaged → Incomplete |
Changed in linux (Ubuntu Cosmic): | |
status: | Triaged → Incomplete |
Changed in linux: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in linux (Ubuntu): | |
assignee: | Joseph Salisbury (jsalisbury) → nobody |
Changed in linux (Ubuntu Bionic): | |
assignee: | Joseph Salisbury (jsalisbury) → nobody |
Changed in linux (Ubuntu Cosmic): | |
assignee: | Joseph Salisbury (jsalisbury) → nobody |
Created attachment 254611
crash logged using netconsole
I bought my daughter a notebook HP 15-ba062nc support. hp.com/ us-en/product/ HP-15-ba000- Notebook- PC-series/ 10862317/ model/11792430).
(http://
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.