| 63990aeb | 11-Jan-2022 |
Bruce Richardson <[email protected]> |
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
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: 9459de4edc99 ("dma/idxd: add burst capacity") Cc: [email protected]
Reported-by: Sunil Pai G <[email protected]> Signed-off-by: Bruce Richardson <[email protected]> Tested-by: Sunil Pai G <[email protected]> Acked-by: Kevin Laatz <[email protected]>
show more ...
|
| 32776763 | 11-Jan-2022 |
Bruce Richardson <[email protected]> |
dma/idxd: fix paths to driver sysfs directory
Recent kernel changes[1][2] mean that we cannot guarantee that the paths in sysfs used for creating/binding a DSA or workqueue instance will be as given
dma/idxd: fix paths to driver sysfs directory
Recent kernel changes[1][2] mean that we cannot guarantee that the paths in sysfs used for creating/binding a DSA or workqueue instance will be as given in the utility script, since they are now "compatibility-mode only". Update script to support both new paths and compatibility ones.
[1] https://lore.kernel.org/all/162637445139.744545.6008938867943724701.stgit@djiang5-desk3.ch.intel.com/ [2] https://lore.kernel.org/all/162637468705.744545.4399080971745974435.stgit@djiang5-desk3.ch.intel.com/
Fixes: 01863b9d2354 ("raw/ioat: include example configuration script") Cc: [email protected]
Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Kevin Laatz <[email protected]>
show more ...
|
| 8bedc515 | 20-Oct-2021 |
Conor Walsh <[email protected]> |
dma/idxd: move config script from raw driver
Move the example script for configuring IDXD devices bound to the IDXD kernel driver from raw to dma, and create a symlink to still allow use from raw.
dma/idxd: move config script from raw driver
Move the example script for configuring IDXD devices bound to the IDXD kernel driver from raw to dma, and create a symlink to still allow use from raw.
Signed-off-by: Conor Walsh <[email protected]> Signed-off-by: Kevin Laatz <[email protected]> Acked-by: Bruce Richardson <[email protected]>
show more ...
|
| 5a23df34 | 20-Oct-2021 |
Kevin Laatz <[email protected]> |
dma/idxd: add vchan status
When testing dmadev drivers, it is useful to have the HW device in a known state. This patch adds the implementation of the function which will wait for the device to be i
dma/idxd: add vchan status
When testing dmadev drivers, it is useful to have the HW device in a known state. This patch adds the implementation of the function which will wait for the device to be idle (all jobs completed) before proceeding.
Signed-off-by: Kevin Laatz <[email protected]> Reviewed-by: Conor Walsh <[email protected]>
show more ...
|
| a42ac7e3 | 20-Oct-2021 |
Kevin Laatz <[email protected]> |
dma/idxd: add start and stop for PCI devices
Add device start/stop functions for DSA devices bound to vfio. For devices bound to the IDXD kernel driver, these are not required since the IDXD kernel
dma/idxd: add start and stop for PCI devices
Add device start/stop functions for DSA devices bound to vfio. For devices bound to the IDXD kernel driver, these are not required since the IDXD kernel driver takes care of this.
Signed-off-by: Bruce Richardson <[email protected]> Signed-off-by: Kevin Laatz <[email protected]> Reviewed-by: Conor Walsh <[email protected]>
show more ...
|
| 9449330a | 20-Oct-2021 |
Kevin Laatz <[email protected]> |
dma/idxd: create dmadev instances on PCI probe
When a suitable device is found during the PCI probe, create a dmadev instance for each HW queue. HW definitions required are also included.
Signed-of
dma/idxd: create dmadev instances on PCI probe
When a suitable device is found during the PCI probe, create a dmadev instance for each HW queue. HW definitions required are also included.
Signed-off-by: Bruce Richardson <[email protected]> Signed-off-by: Kevin Laatz <[email protected]> Reviewed-by: Conor Walsh <[email protected]>
show more ...
|
| 55dc0f60 | 20-Oct-2021 |
Kevin Laatz <[email protected]> |
dma/idxd: create dmadev instances on bus probe
When a suitable device is found during the bus scan/probe, create a dmadev instance for each HW queue. Internal structures required for device creation
dma/idxd: create dmadev instances on bus probe
When a suitable device is found during the bus scan/probe, create a dmadev instance for each HW queue. Internal structures required for device creation are also added.
Signed-off-by: Bruce Richardson <[email protected]> Signed-off-by: Kevin Laatz <[email protected]> Reviewed-by: Conor Walsh <[email protected]>
show more ...
|