diff options
| author | Zhenghao Gu <[email protected]> | 2023-12-20 20:33:08 +0200 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2024-01-11 13:18:49 +0200 |
| commit | aaf244141ed7195a9a56e03c2367f4a9d0b727a8 (patch) | |
| tree | 2bb66b0ab1f57f1fd892ac0eabee63f4ed7a0c10 /tools/perf/scripts/python/bin | |
| parent | e7ab40b733094dfc50dad58bbce81f544af1d8cc (diff) | |
wifi: ath11k: fix IOMMU errors on buffer rings
virt_to_phys() doesn't work on systems with IOMMU enabled, which have
non-identity physical-to-IOVA mappings. It leads to IO_PAGE_FAULTs like this:
[IO_PAGE_FAULT domain=0x0023 address=0x1cce00000 flags=0x0020]
And no association to the AP can be established.
This patch changes that to dma_map_single(), which works correctly. Even
virt_to_phys() documentation says device drivers should not use it:
This function does not give bus mappings for DMA transfers. In
almost all conceivable cases a device driver should not be using
this function
Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
Signed-off-by: Zhenghao Gu <[email protected]>
Acked-by: Jeff Johnson <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions