Bug 1046
Summary: | igb_uio fails to build with kernel 5.19 | ||
---|---|---|---|
Product: | DPDK | Reporter: | Ferruh YIGIT (ferruh.yigit) |
Component: | other | Assignee: | dev |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | georgmueller |
Priority: | Normal | ||
Version: | 22.03 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Patch to use dma_ functions instead of removed pci_ functions |
Description
Ferruh YIGIT
2022-06-30 20:05:41 CEST
Created attachment 220 [details]
Patch to use dma_ functions instead of removed pci_ functions
pci_set_dma_mask() and pci_set_consistent_dma_mask() were removed with kernel 5.18 (commit 7968778914e5). They both were just wrappers for dma_set_mask() and dma_set_coherent_mask().
There is a function dma_set_mask_and_coherent() which calls both dma_set_mask() and dma_set_coherent_mask().
This patch uses this combining function dma_set_mask_and_coherent(). It was introduced with kernel 3.13 (commit 4aa806b771d1).
If this is not backward-compatible enough, it would be possible to use the split functions dma_set_mask() and dma_set_coherent_mask() and keep it as two calls in igb_uio.c. These were introduced in kernel 2.6.34 (commit 6a1961f49ee8).
|