numam-dpdk/drivers/dma/idxd
Bruce Richardson 63990aeb08 dma/idxd: fix wrap-around in burst capacity calculation
The burst capacity calculation code assumes that the write and read
(i.e. ids_returned) values both wrap at the ring-size, but the read
value instead wraps as UINT16_MAX. Therefore, instead of just adding
ring-size to the write value in case the read is greater, we need to
just always mask the result to ensure a correct, in-range, value.

Fixes: 9459de4edc ("dma/idxd: add burst capacity")
Cc: stable@dpdk.org

Reported-by: Sunil Pai G <sunil.pai.g@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Sunil Pai G <sunil.pai.g@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
2022-01-20 14:05:14 +01:00
..
dpdk_idxd_cfg.py dma/idxd: fix paths to driver sysfs directory 2022-01-20 14:04:40 +01:00
idxd_bus.c dma/idxd: add vchan status 2021-10-22 22:40:59 +02:00
idxd_common.c dma/idxd: fix wrap-around in burst capacity calculation 2022-01-20 14:05:14 +01:00
idxd_hw_defs.h dma/idxd: fix build on Windows 2021-10-23 08:52:25 +02:00
idxd_internal.h dma/idxd: add burst capacity 2021-10-22 22:40:59 +02:00
idxd_pci.c dma/idxd: fix truncated error code in status check 2021-10-27 17:01:56 +02:00
meson.build dma/idxd: add data path job submission 2021-10-22 22:40:59 +02:00
version.map dma/idxd: add skeleton for VFIO based DSA device 2021-10-22 22:40:58 +02:00