Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716246 - sys-kernel/gentoo-sources-5.6.2 - [nvme] DMA-API: device driver tries to free DMA memory it has not allocated
Summary: sys-kernel/gentoo-sources-5.6.2 - [nvme] DMA-API: device driver tries to free...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: RISCV project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-05 06:14 UTC by Skylar
Modified: 2020-08-21 04:10 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
.config (hifive-unleashed.config,84.00 KB, text/plain)
2020-04-06 18:56 UTC, Skylar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Skylar 2020-04-05 06:14:26 UTC
Just encountered this error running the latest kernel on RISCV.

[  413.938823] ------------[ cut here ]------------
[  413.938838] DMA-API: nvme 0000:05:00.0: device driver tries to free DMA memory it has not allocated [device address=0x00000000fc0bf000] [size=4096 bytes]
[  413.938881] WARNING: CPU: 0 PID: 220 at kernel/dma/debug.c:1010 check_unmap+0x4ee/0x5f8
[  413.938885] Modules linked in:
[  413.938896] CPU: 0 PID: 220 Comm: btrfs-transacti Not tainted 5.6.2 #1
[  413.938903] epc: ffffffe000093c32 ra : ffffffe000093c32 sp : ffffffe1f563b220
[  413.938909]  gp : ffffffe000a414b0 tp : ffffffe1f61dca00 t0 : ffffffe000a61fc0
[  413.938914]  t1 : 0000000000000001 t2 : 2065657266206f74 s0 : ffffffe1f563b270
[  413.938919]  s1 : 00000000fc0bf000 a0 : 000000000000008d a1 : 0000000000000000
[  413.938925]  a2 : 0000000000000001 a3 : 0000000000000000 a4 : ffffffe000ad4218
[  413.938931]  a5 : fffffffffffffff8 a6 : ffffffe000a51c78 a7 : 000000000000029a
[  413.938936]  s2 : ffffffe1f563b280 s3 : ffffffe000aa2bb8 s4 : 0000000200000022
[  413.938942]  s5 : ffffffe000a40e84 s6 : ffffffe000a41b78 s7 : 6db6db6db6db6db7
[  413.938948]  s8 : ffffffe000a42418 s9 : ffffffe1f563b280 s10: ffffffe1b7bbf000
[  413.938953]  s11: 0000000000000000 t3 : 0000000000000000 t4 : 6168207469207972
[  413.938957]  t5 : 6c6120746f6e2073 t6 : ffffffe000a61fbd
[  413.938963] status: 0000000200000120 badaddr: 0000000000000000 cause: 0000000000000003
[  413.938967] ---[ end trace e6da251bf9c89f90 ]---
[  442.600678] nvme nvme0: controller is down; will reset: CSTS=0x3, PCI_STATUS=0x10

Reproducible: Always
Comment 1 Jonas Stein gentoo-dev 2020-04-06 17:10:13 UTC
Please add the kernel config.
Comment 2 Skylar 2020-04-06 18:56:06 UTC
Created attachment 630884 [details]
.config
Comment 3 Skylar 2020-08-21 04:10:01 UTC
Resolved by changes to the PCIe bus.