Thread (3 messages) flat view 3 messages, 2 authors, 2020-08-04

Re: [PATCH] net: vmxnet3: avoid accessing the data mapped to streaming DMA

From: David Miller <davem@davemloft.net>
Date: 2020-08-03 22:59:52
Also in: lkml

From: Jia-Ju Bai <redacted>
Date: Sun,  2 Aug 2020 21:11:07 +0800
In vmxnet3_probe_device(), "adapter" is mapped to streaming DMA:
  adapter->adapter_pa = dma_map_single(..., adapter, ...);

Then "adapter" is accessed at many places in this function.

Theses accesses may cause data inconsistency between CPU cache and 
hardware.

To fix this problem, dma_map_single() is called after these accesses.

Signed-off-by: Jia-Ju Bai <redacted>
'adapter' is accessed everywhere, in the entire driver, not just here
in the probe function.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help