Re: [PATCH net 2/9] net: hns3: add sync command to sync io-pgtable

From: Jijie Shao
Date: Wed Oct 16 2024 - 07:54:57 EST



on 2024/10/16 9:19, Jakub Kicinski wrote:
On Fri, 11 Oct 2024 17:45:14 +0800 Jijie Shao wrote:
To avoid errors in pgtable prefectch, add a sync command to sync
io-pagtable.
I've never seen net drivers call iommu_iotlb functions.
Could you provide more context on what this is doing and
why such unusual handling is necessary?

Follow the reply of the previous patch.

In the case of large traffic, the TX bounce buffer may be used up.
At this point, we go to mapping/unmapping on TX path again.
So we added the sync command in driver to avoid hardware issue.

Thanks
Jijie Shao