Panic:Can not allocate SWIOTLB buffer earlier, When we set iommu=off intel_iommu=on at cmdline[ubuntu22 kernel-5.15.0-72-generic]

Asked by Kyle

Hi, All.
Kernel panic - not syncing: Can not allocate SWIOTLB buffer earlier and can't now provide you with the DMA bounce buffer

uname -a:inux bytedance 5.15.0-72-generic #79-Ubuntu SMP Wed Apr 19 08:22:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

cmdline:BOOT_IMAGE=/boot/vmlinuz-5.15.0-72-generic root=UUID=8e57dfb2-fbde-4670-bb0f-2809e09d5423 ro intel_iommu=on iommu=off net.ifnames=0 biosdevname=0 clocksource=tsc tsc=reliable transparent_hugepage=always console=tty0 console=ttyS0,115200

Err log:
[340527.990957] reboot: Restarting system
[ 0.000000] Linux version 5.15.0-72-generic (buildd@lcy02-amd64-035) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #79-Ubuntu SMP Wed Apr 19 08:22:18 UTC 2023 (Ubuntu 5.15.0-72.79-generic 5.15.98)
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-72-generic root=UUID=8e57dfb2-fbde-4670-bb0f-2809e09d5423 ro net.ifnames=0 biosdevname=0 clocksource=tsc tsc=reliable transparent_hugepage=always intel_iommu=on iommu=off console=tty0 console=ttyS0,115200
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] signal: max sigframe size: 1776
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000bffd6fff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000bffd7000-0x00000000bfffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000023fffffff] usable
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 53801001, primary cpu clock
[ 0.000002] kvm-clock: using sched offset of 340530812476315 cycles
[ 0.000007] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000015] tsc: Detected 2199.996 MHz processor
[ 0.001009] last_pfn = 0x240000 max_arch_pfn = 0x400000000
[ 0.001045] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
[ 0.001060] last_pfn = 0xbffd7 max_arch_pfn = 0x400000000
[ 0.012074] found SMP MP-table at [mem 0x000f5a30-0x000f5a3f]
[ 0.012104] Using GB pages for direct mapping
[ 0.012337] RAMDISK: [mem 0x2b08b000-0x3183cfff]
[ 0.012353] ACPI: Early table checksum verification disabled
[ 0.012367] ACPI: RSDP 0x00000000000F5800 000014 (v00 BOCHS )
[ 0.012378] ACPI: RSDT 0x00000000BFFE151E 00002C (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)
[ 0.012393] ACPI: FACP 0x00000000BFFE142A 000074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)
[ 0.012403] ACPI: DSDT 0x00000000BFFE0040 0013EA (v01 BOCHS BXPCDSDT 00000001 BXPC 00000001)
[ 0.012409] ACPI: FACS 0x00000000BFFE0000 000040
[ 0.012415] ACPI: APIC 0x00000000BFFE149E 000080 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)
[ 0.012419] ACPI: Reserving FACP table memory at [mem 0xbffe142a-0xbffe149d]
[ 0.012422] ACPI: Reserving DSDT table memory at [mem 0xbffe0040-0xbffe1429]
[ 0.012424] ACPI: Reserving FACS table memory at [mem 0xbffe0000-0xbffe003f]
[ 0.012425] ACPI: Reserving APIC table memory at [mem 0xbffe149e-0xbffe151d]
[ 0.012792] No NUMA configuration found
[ 0.012794] Faking a node at [mem 0x0000000000000000-0x000000023fffffff]
[ 0.012808] NODE_DATA(0) allocated [mem 0x23ffd4000-0x23fffdfff]
[ 0.013299] Zone ranges:
[ 0.013301] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.013304] DMA32 [mem 0x0000000001000000-0x00000000ffffffff]
[ 0.013306] Normal [mem 0x0000000100000000-0x000000023fffffff]
[ 0.013309] Device empty
[ 0.013311] Movable zone start for each node
[ 0.013314] Early memory node ranges
[ 0.013316] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.013318] node 0: [mem 0x0000000000100000-0x00000000bffd6fff]
[ 0.013320] node 0: [mem 0x0000000100000000-0x000000023fffffff]
[ 0.013323] Initmem setup node 0 [mem 0x0000000000001000-0x000000023fffffff]
[ 0.013341] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.013421] On node 0, zone DMA: 97 pages in unavailable ranges
[ 0.041095] On node 0, zone Normal: 41 pages in unavailable ranges
[ 0.041487] ACPI: PM-Timer IO Port: 0x608
[ 0.041515] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[ 0.041566] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.041572] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.041575] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 0.041577] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.041583] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 0.041585] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 0.041591] ACPI: Using ACPI (MADT) for SMP configuration information
[ 0.041594] TSC deadline timer available
[ 0.041596] smpboot: Allowing 2 CPUs, 0 hotplug CPUs
[ 0.041629] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.041632] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.041634] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.041636] PM: hibernation: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.041638] PM: hibernation: Registered nosave memory: [mem 0xbffd7000-0xbfffffff]
[ 0.041640] PM: hibernation: Registered nosave memory: [mem 0xc0000000-0xfeffbfff]
[ 0.041641] PM: hibernation: Registered nosave memory: [mem 0xfeffc000-0xfeffffff]
[ 0.041643] PM: hibernation: Registered nosave memory: [mem 0xff000000-0xfffbffff]
[ 0.041645] PM: hibernation: Registered nosave memory: [mem 0xfffc0000-0xffffffff]
[ 0.041648] [mem 0xc0000000-0xfeffbfff] available for PCI devices
[ 0.041650] Booting paravirtualized kernel on KVM
[ 0.041656] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[ 0.041670] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
[ 0.042113] percpu: Embedded 60 pages/cpu s208896 r8192 d28672 u1048576
[ 0.042158] kvm-guest: stealtime: cpu 0, msr 237c32080
[ 0.042162] kvm-guest: PV spinlocks disabled, no host support
[ 0.042169] Built 1 zonelists, mobility grouping on. Total pages: 2064087
[ 0.042172] Policy zone: Normal
[ 0.042174] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.15.0-72-generic root=UUID=8e57dfb2-fbde-4670-bb0f-2809e09d5423 ro net.ifnames=0 biosdevname=0 clocksource=tsc tsc=reliable transparent_hugepage=always intel_iommu=on iommu=off console=tty0 console=ttyS0,115200
[ 0.042316] DMAR: IOMMU enabled
[ 0.042358] Unknown kernel command line parameters "BOOT_IMAGE=/boot/vmlinuz-5.15.0-72-generic biosdevname=0", will be passed to user space.
[ 0.043700] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.044368] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.044439] mem auto-init: stack:off, heap alloc:on, heap free:off
[ 0.067519] Memory: 8091784K/8388052K available (16393K kernel code, 4383K rwdata, 10840K rodata, 3244K init, 6548K bss, 296008K reserved, 0K cma-reserved)
[ 0.067904] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.067930] Kernel/User page tables isolation: enabled
[ 0.067957] ftrace: allocating 50604 entries in 198 pages
[ 0.099121] ftrace: allocated 198 pages with 4 groups
[ 0.099290] rcu: Hierarchical RCU implementation.
[ 0.099293] rcu: RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=2.
[ 0.099295] Rude variant of Tasks RCU enabled.
[ 0.099296] Tracing variant of Tasks RCU enabled.
[ 0.099298] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.099300] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.104443] NR_IRQS: 524544, nr_irqs: 440, preallocated irqs: 16
[ 0.104640] random: crng init done
[ 0.104675] Console: colour dummy device 80x25
[ 0.104874] printk: console [tty0] enabled
[ 0.196248] printk: console [ttyS0] enabled
[ 0.196779] ACPI: Core revision 20210730
[ 0.197306] APIC: Switch to symmetric I/O mode setup
[ 0.198235] x2apic enabled
[ 0.198868] Switched APIC routing to physical x2apic.
[ 0.200542] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x1fb62f12e8c, max_idle_ns: 440795238402 ns
[ 0.201829] Calibrating delay loop (skipped) preset value.. 4399.99 BogoMIPS (lpj=8799984)
[ 0.202840] pid_max: default: 32768 minimum: 301
[ 0.203430] LSM: Security Framework initializing
[ 0.204013] landlock: Up and running.
[ 0.204470] Yama: becoming mindful.
[ 0.204961] AppArmor: AppArmor initialized
[ 0.205529] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.205826] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.205826] x86/cpu: User Mode Instruction Prevention (UMIP) activated
[ 0.205826] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.205826] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.205826] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[ 0.205826] Spectre V2 : Mitigation: Retpolines
[ 0.205826] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.205826] Spectre V2 : Spectre v2 / SpectreRSB : Filling RSB on VMEXIT
[ 0.205826] RETBleed: WARNING: Spectre v2 mitigation leaves CPU vulnerable to RETBleed attacks, data leaks possible!
[ 0.205826] RETBleed: Vulnerable
[ 0.205826] Speculative Store Bypass: Vulnerable
[ 0.205826] MDS: Vulnerable: Clear CPU buffers attempted, no microcode
[ 0.205826] TAA: Vulnerable: Clear CPU buffers attempted, no microcode
[ 0.205826] MMIO Stale Data: Vulnerable: Clear CPU buffers attempted, no microcode
[ 0.205826] SRBDS: Unknown: Dependent on hypervisor status
[ 0.205826] Freeing SMP alternatives memory: 44K
[ 0.205826] smpboot: CPU0: Intel Core Processor (Skylake) (family: 0x6, model: 0x5e, stepping: 0x3)
[ 0.205826] Performance Events: unsupported p6 CPU model 94 no PMU driver, software events only.
[ 0.205826] rcu: Hierarchical SRCU implementation.
[ 0.205826] NMI watchdog: Perf NMI watchdog permanently disabled
[ 0.205897] smp: Bringing up secondary CPUs ...
[ 0.206599] x86: Booting SMP configuration:
[ 0.207121] .... node #0, CPUs: #1
[ 0.101194] kvm-clock: cpu 1, msr 53801041, secondary cpu clock
[ 0.101194] smpboot: CPU 1 Converting physical 0 to logical die 1
[ 0.209339] kvm-guest: stealtime: cpu 1, msr 237d32080
[ 0.209850] smp: Brought up 1 node, 2 CPUs
[ 0.210374] smpboot: Max logical packages: 2
[ 0.210900] smpboot: Total of 2 processors activated (8799.98 BogoMIPS)
[ 0.212263] devtmpfs: initialized
[ 0.212263] x86/mm: Memory block size: 128MB
[ 0.214334] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.215159] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.216045] pinctrl core: initialized pinctrl subsystem
[ 0.216846] PM: RTC time: 08:23:58, date: 2023-07-21
[ 0.218000] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.219100] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[ 0.220587] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.221770] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.221836] audit: initializing netlink subsys (disabled)
[ 0.222543] audit: type=2000 audit(1689927837.868:1): state=initialized audit_enabled=0 res=1
[ 0.222543] thermal_sys: Registered thermal governor 'fair_share'
[ 0.222887] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.223649] thermal_sys: Registered thermal governor 'step_wise'
[ 0.224386] thermal_sys: Registered thermal governor 'user_space'
[ 0.225837] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.226596] EISA bus registered
[ 0.227794] cpuidle: using governor ladder
[ 0.228315] cpuidle: using governor menu
[ 0.228918] ACPI: bus type PCI registered
[ 0.229420] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.229943] PCI: Using configuration type 1 for base access
[ 0.232279] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[ 0.233396] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.233836] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.234705] fbcon: Taking over console
[ 0.234705] ACPI: Added _OSI(Module Device)
[ 0.234959] ACPI: Added _OSI(Processor Device)
[ 0.237832] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.238422] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.239090] ACPI: Added _OSI(Linux-Dell-Video)
[ 0.239638] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 0.240293] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[ 0.242038] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.243380] ACPI: Interpreter enabled
[ 0.243855] ACPI: PM: (supports S0 S5)
[ 0.244330] ACPI: Using IOAPIC for interrupt routing
[ 0.244978] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.245836] PCI: Using E820 reservations for host bridge windows
[ 0.246702] ACPI: Enabled 2 GPEs in block 00 to 0F
[ 0.250396] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.251181] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI EDR HPX-Type3]
[ 0.252183] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[ 0.253902] acpiphp: Slot [3] registered
[ 0.254421] acpiphp: Slot [5] registered
[ 0.254932] acpiphp: Slot [6] registered
[ 0.255435] acpiphp: Slot [7] registered
[ 0.255946] acpiphp: Slot [8] registered
[ 0.256451] acpiphp: Slot [9] registered
[ 0.256964] acpiphp: Slot [10] registered
[ 0.257478] acpiphp: Slot [11] registered
[ 0.257847] acpiphp: Slot [12] registered
[ 0.258359] acpiphp: Slot [13] registered
[ 0.258880] acpiphp: Slot [14] registered
[ 0.259394] acpiphp: Slot [15] registered
[ 0.259914] acpiphp: Slot [16] registered
[ 0.260428] acpiphp: Slot [17] registered
[ 0.260946] acpiphp: Slot [18] registered
[ 0.261459] acpiphp: Slot [19] registered
[ 0.261848] acpiphp: Slot [20] registered
[ 0.262361] acpiphp: Slot [21] registered
[ 0.262882] acpiphp: Slot [22] registered
[ 0.263403] acpiphp: Slot [23] registered
[ 0.263917] acpiphp: Slot [24] registered
[ 0.264435] acpiphp: Slot [25] registered
[ 0.264949] acpiphp: Slot [26] registered
[ 0.265471] acpiphp: Slot [27] registered
[ 0.265848] acpiphp: Slot [28] registered
[ 0.266404] acpiphp: Slot [29] registered
[ 0.266920] acpiphp: Slot [30] registered
[ 0.267441] acpiphp: Slot [31] registered
[ 0.267948] PCI host bridge to bus 0000:00
[ 0.268464] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.269134] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.269829] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.270664] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 0.271578] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xfebfffff window]
[ 0.272495] pci_bus 0000:00: root bus resource [mem 0x240000000-0x2bfffffff window]
[ 0.273568] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[ 0.274399] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
[ 0.275587] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
[ 0.279844] pci 0000:00:01.1: reg 0x20: [io 0xc180-0xc18f]
[ 0.281845] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
[ 0.282728] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[ 0.283524] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
[ 0.284397] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[ 0.285478] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000
[ 0.286109] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by PIIX4 ACPI
[ 0.287216] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB
[ 0.288525] pci 0000:00:02.0: [1b36:0100] type 00 class 0x030000
[ 0.291681] pci 0000:00:02.0: reg 0x10: [mem 0xf4000000-0xf7ffffff]
[ 0.295883] pci 0000:00:02.0: reg 0x14: [mem 0xf8000000-0xfbffffff]
[ 0.299508] pci 0000:00:02.0: reg 0x18: [mem 0xfc0d0000-0xfc0d1fff]
[ 0.301862] pci 0000:00:02.0: reg 0x1c: [io 0xc080-0xc09f]
[ 0.311439] pci 0000:00:02.0: reg 0x30: [mem 0xfc0c0000-0xfc0cffff pref]
[ 0.312378] pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[ 0.313949] pci 0000:00:03.0: [1af4:1000] type 00 class 0x020000
[ 0.316141] pci 0000:00:03.0: reg 0x10: [io 0xc0a0-0xc0bf]
[ 0.317830] pci 0000:00:03.0: reg 0x14: [mem 0xfc0d2000-0xfc0d2fff]
[ 0.322500] pci 0000:00:03.0: reg 0x20: [mem 0xfebe8000-0xfebebfff 64bit pref]
[ 0.325366] pci 0000:00:03.0: reg 0x30: [mem 0xfc000000-0xfc03ffff pref]
[ 0.326482] pci 0000:00:04.0: [8086:2934] type 00 class 0x0c0300
[ 0.329559] pci 0000:00:04.0: reg 0x20: [io 0xc0c0-0xc0df]
[ 0.330980] pci 0000:00:04.1: [8086:2935] type 00 class 0x0c0300
[ 0.334055] pci 0000:00:04.1: reg 0x20: [io 0xc0e0-0xc0ff]
[ 0.336399] pci 0000:00:04.2: [8086:2936] type 00 class 0x0c0300
[ 0.339541] pci 0000:00:04.2: reg 0x20: [io 0xc100-0xc11f]
[ 0.341454] pci 0000:00:04.7: [8086:293a] type 00 class 0x0c0320
[ 0.342324] pci 0000:00:04.7: reg 0x10: [mem 0xfc0d3000-0xfc0d3fff]
[ 0.346755] pci 0000:00:05.0: [1af4:1001] type 00 class 0x010000
[ 0.348788] pci 0000:00:05.0: reg 0x10: [io 0xc000-0xc03f]
[ 0.350457] pci 0000:00:05.0: reg 0x14: [mem 0xfc0d4000-0xfc0d4fff]
[ 0.355179] pci 0000:00:05.0: reg 0x20: [mem 0xfebec000-0xfebeffff 64bit pref]
[ 0.358542] pci 0000:00:06.0: [1af4:1002] type 00 class 0x00ff00
[ 0.360156] pci 0000:00:06.0: reg 0x10: [io 0xc120-0xc13f]
[ 0.364047] pci 0000:00:06.0: reg 0x20: [mem 0xfebf0000-0xfebf3fff 64bit pref]
[ 0.367090] pci 0000:00:07.0: [1af4:1001] type 00 class 0x010000
[ 0.369146] pci 0000:00:07.0: reg 0x10: [io 0xc040-0xc07f]
[ 0.371052] pci 0000:00:07.0: reg 0x14: [mem 0xfc0d5000-0xfc0d5fff]
[ 0.375135] pci 0000:00:07.0: reg 0x20: [mem 0xfebf4000-0xfebf7fff 64bit pref]
[ 0.378549] pci 0000:00:08.0: [1af4:1000] type 00 class 0x020000
[ 0.380524] pci 0000:00:08.0: reg 0x10: [io 0xc140-0xc15f]
[ 0.381830] pci 0000:00:08.0: reg 0x14: [mem 0xfc0d6000-0xfc0d6fff]
[ 0.387046] pci 0000:00:08.0: reg 0x20: [mem 0xfebf8000-0xfebfbfff 64bit pref]
[ 0.389114] pci 0000:00:08.0: reg 0x30: [mem 0xfc040000-0xfc07ffff pref]
[ 0.390551] pci 0000:00:09.0: [1af4:1000] type 00 class 0x020000
[ 0.392514] pci 0000:00:09.0: reg 0x10: [io 0xc160-0xc17f]
[ 0.393830] pci 0000:00:09.0: reg 0x14: [mem 0xfc0d7000-0xfc0d7fff]
[ 0.398439] pci 0000:00:09.0: reg 0x20: [mem 0xfebfc000-0xfebfffff 64bit pref]
[ 0.400491] pci 0000:00:09.0: reg 0x30: [mem 0xfc080000-0xfc0bffff pref]
[ 0.405899] ACPI: PCI: Interrupt link LNKA configured for IRQ 10
[ 0.406987] ACPI: PCI: Interrupt link LNKB configured for IRQ 10
[ 0.407850] ACPI: PCI: Interrupt link LNKC configured for IRQ 11
[ 0.408713] ACPI: PCI: Interrupt link LNKD configured for IRQ 11
[ 0.409514] ACPI: PCI: Interrupt link LNKS configured for IRQ 9
[ 0.410271] iommu: Default domain type: Translated
[ 0.410453] iommu: DMA domain TLB invalidation policy: lazy mode
[ 0.411456] SCSI subsystem initialized
[ 0.411976] pci 0000:00:02.0: vgaarb: setting as boot VGA device
[ 0.411976] pci 0000:00:02.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[ 0.413832] pci 0000:00:02.0: vgaarb: bridge control possible
[ 0.414543] vgaarb: loaded
[ 0.414926] ACPI: bus type USB registered
[ 0.415452] usbcore: registered new interface driver usbfs
[ 0.416140] usbcore: registered new interface driver hub
[ 0.416811] usbcore: registered new device driver usb
[ 0.417466] pps_core: LinuxPPS API ver. 1 registered
[ 0.417831] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <email address hidden>
[ 0.418955] PTP clock support registered
[ 0.419492] EDAC MC: Ver: 3.0.0
[ 0.419492] NetLabel: Initializing
[ 0.419492] NetLabel: domain hash size = 128
[ 0.419492] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.421855] NetLabel: unlabeled traffic allowed by default
[ 0.422565] PCI: Using ACPI for IRQ routing
[ 0.422929] clocksource: Switched to clocksource kvm-clock
[ 0.439531] VFS: Disk quotas dquot_6.6.0
[ 0.440052] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.441041] AppArmor: AppArmor Filesystem Enabled
[ 0.441660] pnp: PnP ACPI init
[ 0.442581] pnp: PnP ACPI: found 5 devices
[ 0.449544] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.450710] NET: Registered PF_INET protocol family
[ 0.451574] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.454344] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.455469] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.456529] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.457779] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[ 0.458779] TCP: Hash tables configured (established 65536 bind 65536)
[ 0.459725] MPTCP token hash table entries: 8192 (order: 5, 196608 bytes, linear)
[ 0.460711] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.461635] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 0.462602] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.463335] NET: Registered PF_XDP protocol family
[ 0.464121] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
[ 0.464958] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window]
[ 0.465723] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[ 0.466575] pci_bus 0000:00: resource 7 [mem 0xc0000000-0xfebfffff window]
[ 0.467421] pci_bus 0000:00: resource 8 [mem 0x240000000-0x2bfffffff window]
[ 0.468333] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 0.469051] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.469791] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.498066] ACPI: \_SB_.LNKD: Enabled at IRQ 11
[ 0.526301] pci 0000:00:04.0: quirk_usb_early_handoff+0x0/0x160 took 54414 usecs
[ 0.554582] ACPI: \_SB_.LNKA: Enabled at IRQ 10
[ 0.582799] pci 0000:00:04.1: quirk_usb_early_handoff+0x0/0x160 took 54263 usecs
[ 0.611081] ACPI: \_SB_.LNKB: Enabled at IRQ 10
[ 0.639229] pci 0000:00:04.2: quirk_usb_early_handoff+0x0/0x160 took 54194 usecs
[ 0.667512] ACPI: \_SB_.LNKC: Enabled at IRQ 11
[ 0.695578] pci 0000:00:04.7: quirk_usb_early_handoff+0x0/0x160 took 54120 usecs
[ 0.696576] PCI: CLS 0 bytes, default 64
[ 0.697133] Trying to unpack rootfs image as initramfs...
[ 0.705975] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1fb62f12e8c, max_idle_ns: 440795238402 ns
[ 0.707363] clocksource: Switched to clocksource tsc
[ 0.710312] Initialise system trusted keyrings
[ 0.710899] Key type blacklist registered
[ 0.713868] workingset: timestamp_bits=36 max_order=21 bucket_order=0
[ 0.716054] zbud: loaded
[ 0.716664] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.717899] fuse: init (API version 7.34)
[ 0.718825] integrity: Platform Keyring initialized
[ 0.733864] Key type asymmetric registered
[ 0.734394] Asymmetric key parser 'x509' registered
[ 0.735016] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 0.735982] io scheduler mq-deadline registered
[ 0.736798] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 0.737783] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[ 0.738764] ACPI: button: Power Button [PWRF]
[ 0.908846] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 0.932920] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.935522] Linux agpgart interface v0.103
[ 0.937705] loop: module loaded
[ 0.938778] scsi host0: ata_piix
[ 0.939338] scsi host1: ata_piix
[ 0.939780] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc180 irq 14
[ 0.940624] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc188 irq 15
[ 0.941647] tun: Universal TUN/TAP device driver, 1.6
[ 0.942540] PPP generic driver version 2.4.2
[ 0.943122] VFIO - User Level meta-driver version: 0.3
[ 0.944072] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.944895] ehci-pci: EHCI PCI platform driver
[ 0.975906] ehci-pci 0000:00:04.7: EHCI Host Controller
[ 0.976566] ehci-pci 0000:00:04.7: new USB bus registered, assigned bus number 1
[ 0.977658] ehci-pci 0000:00:04.7: irq 11, io mem 0xfc0d3000
[ 0.993865] ehci-pci 0000:00:04.7: USB 2.0 started, EHCI 1.00
[ 0.994630] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 0.995600] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.996448] usb usb1: Product: EHCI Host Controller
[ 0.997020] usb usb1: Manufacturer: Linux 5.15.0-72-generic ehci_hcd
[ 0.997768] usb usb1: SerialNumber: 0000:00:04.7
[ 0.998456] hub 1-0:1.0: USB hub found
[ 0.998915] hub 1-0:1.0: 6 ports detected
[ 0.999621] ehci-platform: EHCI generic platform driver
[ 1.000263] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.000989] ohci-pci: OHCI PCI platform driver
[ 1.001577] ohci-platform: OHCI generic platform driver
[ 1.002224] uhci_hcd: USB Universal Host Controller Interface driver
[ 1.030621] uhci_hcd 0000:00:04.0: UHCI Host Controller
[ 1.031290] uhci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 2
[ 1.032165] uhci_hcd 0000:00:04.0: detected 2 ports
[ 1.032801] uhci_hcd 0000:00:04.0: irq 11, io base 0x0000c0c0
[ 1.033563] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.15
[ 1.034570] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.035426] usb usb2: Product: UHCI Host Controller
[ 1.036017] usb usb2: Manufacturer: Linux 5.15.0-72-generic uhci_hcd
[ 1.036770] usb usb2: SerialNumber: 0000:00:04.0
[ 1.037421] hub 2-0:1.0: USB hub found
[ 1.037911] hub 2-0:1.0: 2 ports detected
[ 1.066208] uhci_hcd 0000:00:04.1: UHCI Host Controller
[ 1.066863] uhci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 3
[ 1.067746] uhci_hcd 0000:00:04.1: detected 2 ports
[ 1.068396] uhci_hcd 0000:00:04.1: irq 10, io base 0x0000c0e0
[ 1.069159] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.15
[ 1.070152] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.071015] usb usb3: Product: UHCI Host Controller
[ 1.071602] usb usb3: Manufacturer: Linux 5.15.0-72-generic uhci_hcd
[ 1.072351] usb usb3: SerialNumber: 0000:00:04.1
[ 1.072992] hub 3-0:1.0: USB hub found
[ 1.073470] hub 3-0:1.0: 2 ports detected
[ 1.101638] uhci_hcd 0000:00:04.2: UHCI Host Controller
[ 1.102526] uhci_hcd 0000:00:04.2: new USB bus registered, assigned bus number 4
[ 1.103437] uhci_hcd 0000:00:04.2: detected 2 ports
[ 1.104071] uhci_hcd 0000:00:04.2: irq 10, io base 0x0000c100
[ 1.104865] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.15
[ 1.105885] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.106758] usb usb4: Product: UHCI Host Controller
[ 1.107345] usb usb4: Manufacturer: Linux 5.15.0-72-generic uhci_hcd
[ 1.108111] usb usb4: SerialNumber: 0000:00:04.2
[ 1.108781] hub 4-0:1.0: USB hub found
[ 1.109283] hub 4-0:1.0: 2 ports detected
[ 1.110090] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[ 1.111839] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 1.112480] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 1.113212] mousedev: PS/2 mouse device common for all mice
[ 1.114189] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[ 1.115448] rtc_cmos 00:00: RTC can wake from S4
[ 1.116411] rtc_cmos 00:00: registered as rtc0
[ 1.117019] rtc_cmos 00:00: setting system clock to 2023-07-21T08:23:58 UTC (1689927838)
[ 1.118103] rtc_cmos 00:00: alarms up to one day, y3k, 114 bytes nvram
[ 1.118914] i2c_dev: i2c /dev entries driver
[ 1.119476] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
[ 1.120982] device-mapper: uevent: version 1.0.3
[ 1.121665] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: <email address hidden>
[ 1.122718] platform eisa.0: Probing EISA bus 0
[ 1.123275] platform eisa.0: EISA: Cannot allocate resource for mainboard
[ 1.124118] platform eisa.0: Cannot allocate resource for EISA slot 1
[ 1.124901] platform eisa.0: Cannot allocate resource for EISA slot 2
[ 1.125683] platform eisa.0: Cannot allocate resource for EISA slot 3
[ 1.126472] platform eisa.0: Cannot allocate resource for EISA slot 4
[ 1.127330] platform eisa.0: Cannot allocate resource for EISA slot 5
[ 1.128103] platform eisa.0: Cannot allocate resource for EISA slot 6
[ 1.128885] platform eisa.0: Cannot allocate resource for EISA slot 7
[ 1.129675] platform eisa.0: Cannot allocate resource for EISA slot 8
[ 1.130460] platform eisa.0: EISA: Detected 0 cards
[ 1.131053] intel_pstate: CPU model not supported
[ 1.131840] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.132604] vesafb: mode is 640x480x32, linelength=2560, pages=0
[ 1.133324] vesafb: scrolling: redraw
[ 1.133783] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[ 1.134516] vesafb: framebuffer at 0xf4000000, mapped to 0x000000002c4b8ab5, using 1216k, total 1216k
[ 1.135776] Console: switching to colour frame buffer device 80x30
[ 1.137639] fb0: VESA VGA frame buffer device
[ 1.138290] drop_monitor: Initializing network drop monitor service
[ 1.139263] NET: Registered PF_INET6 protocol family
[ 1.333840] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 1.334674] Kernel panic - not syncing: Can not allocate SWIOTLB buffer earlier and can't now provide you with the DMA bounce buffer
[ 1.337012] CPU: 0 PID: 17 Comm: kworker/0:1 Not tainted 5.15.0-72-generic #79-Ubuntu
[ 1.337832] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 1.337832] Workqueue: usb_hub_wq hub_event
[ 1.337832] Call Trace:
[ 1.337832] <TASK>
[ 1.337832] show_stack+0x52/0x5c
[ 1.337832] dump_stack_lvl+0x4a/0x63
[ 1.337832] dump_stack+0x10/0x16
[ 1.337832] panic+0x15c/0x334
[ 1.337832] swiotlb_tbl_map_single.cold+0x5a/0xc3
[ 1.337832] swiotlb_map+0x62/0x250
[ 1.337832] dma_direct_map_page+0x8c/0x1e0
[ 1.337832] dma_map_page_attrs+0x35/0x60
[ 1.337832] usb_hcd_map_urb_for_dma+0x19d/0x4f0
[ 1.337832] usb_hcd_submit_urb+0x16c/0x300
[ 1.337832] usb_submit_urb+0x254/0x6d0
[ 1.337832] usb_start_wait_urb+0x71/0x180
[ 1.337832] usb_control_msg+0xe3/0x150
[ 1.337832] hub_port_init+0x2d5/0xa10
[ 1.337832] hub_port_connect+0x2af/0x8f0
[ 1.337832] hub_port_connect_change+0xa1/0x3b0
[ 1.337832] ? hub_ext_port_status+0xba/0x110
[ 1.337832] port_event+0x5bb/0x700
[ 1.337832] hub_event+0x1eb/0x430
[ 1.337832] process_one_work+0x22b/0x3d0
[ 1.337832] worker_thread+0x53/0x420
[ 1.337832] ? process_one_work+0x3d0/0x3d0
[ 1.337832] kthread+0x12a/0x150
[ 1.337832] ? set_kthread_struct+0x50/0x50
[ 1.337832] ret_from_fork+0x22/0x30
[ 1.337832] </TASK>
[ 1.337832] Kernel Offset: 0x2e800000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 1.337832] ---[ end Kernel panic - not syncing: Can not allocate SWIOTLB buffer earlier and can't now provide you with the DMA bounce buffer ]-

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Kyle (kyle-0206) said :
#1

Has anyone ever been in a situation like this?

Revision history for this message
Mark Lehrer (pyite) said (last edit ):
#2

Yes, I am seeing this on a SuperMicro H12DSU-iN when using the 5.15 kernel.

The 1124US-TNRP chassis has a USB port in the front that works, but the two on the motherboard fail.

With the 6.2 kernel, it doesn't panic, but the USB subsystem can't find the port:

[ 7.052204] usb 1-1: new full-speed USB device number 4 using xhci_hcd
[ 7.088202] usb 1-1: device descriptor read/8, error -11
[ 7.220202] usb 1-1: device descriptor read/8, error -11

I believe the -11 error is a power error. I'm not sure if SWIOTLB is still involved somehow.

Can you help with this problem?

Provide an answer of your own, or ask Kyle for more information if necessary.

To post a message you must log in.