]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: PCI: add counter for linux_dma_map_phys_common() errors
authorBjoern A. Zeeb <bz@FreeBSD.org>
Wed, 30 Mar 2022 17:38:23 +0000 (17:38 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 3 Apr 2022 23:05:47 +0000 (23:05 +0000)
commite86707418c8e84e1ebf8b4c5f35ff641c234d067
tree48f4c364c6640b39e3dc168eed88ac18e6538abd
parent0a21252adf11f7e839eabeb530e75cd1f9cd5386
LinuxKPI: PCI: add counter for linux_dma_map_phys_common() errors

LinuxKPI is asking for single-segment mappings.  Some (wireless) drivers
are using this to map multi-pages and our busdma framework is not very
friendly to that as single-segments [D31823].  Add a counter so we can
track when this happens to gather more information.

Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D34715
sys/compat/linuxkpi/common/src/linux_pci.c