Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167021881
D49569.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
872 B
Referenced Files
None
Subscribers
None
D49569.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c
--- a/sys/compat/linuxkpi/common/src/linux_pci.c
+++ b/sys/compat/linuxkpi/common/src/linux_pci.c
@@ -1471,14 +1471,19 @@
}
nseg = -1;
- if (_bus_dmamap_load_phys(obj->dmat, obj->dmamap, phys, len,
- BUS_DMA_NOWAIT, &seg, &nseg) != 0) {
+ error = _bus_dmamap_load_phys(obj->dmat, obj->dmamap, phys, len,
+ BUS_DMA_NOWAIT, &seg, &nseg);
+ if (error != 0) {
bus_dmamap_destroy(obj->dmat, obj->dmamap);
DMA_PRIV_UNLOCK(priv);
uma_zfree(linux_dma_obj_zone, obj);
counter_u64_add(lkpi_pci_nseg1_fail, 1);
- if (linuxkpi_debug)
+ if (linuxkpi_debug) {
+ device_printf(dev->bsddev, "%s: _bus_dmamap_load_phys "
+ "error %d, phys %#018jx len %zu\n", __func__,
+ error, (uintmax_t)phys, len);
dump_stack();
+ }
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 3:32 PM (1 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36941128
Default Alt Text
D49569.diff (872 B)
Attached To
Mode
D49569: LinuxKPI: be more verbose on _bus_dmamap_load_phys failures if debug is on
Attached
Detach File
Event Timeline
Log In to Comment