hwrng: virtio - add an internal buffer
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 8 repliesIn review
- v14 patches 8 repliesSuperseded
Changes in v2 from the cover letter
fixes issue reported by [email protected] by reseting data_idx to 0 when the buffer is submitted not when it is received as the consumer checks for data_avail, not only for the completion.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | hwrng: virtio - add an internal bufferdrivers/ | +33 | 0 replies | |
| 2/4 | hwrng: virtio - don't wait on cleanupdrivers/ | +6 | 0 replies | |
| 3/4 | hwrng: virtio - don't waste entropydrivers/ | +35 | 0 replies | |
| 4/4 | hwrng: virtio - always add a pending requestdrivers/ | +12 | 8 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/4] hwrng: virtio - add an internal buffer
hwrng core uses two buffers that can be mixed in the virtio-rng queue.
This series fixes the problem by adding an internal buffer in virtio-rng.
Once the internal buffer is added, we can fix two other problems:
- to be able to release the driver without waiting the device releases the buffer
- actually returns some data when wait=0 as we can have some already available data
It also tries to improve the performance by always having a buffer in the queue of the device.
v2:
fixes issue reported by [email protected] by reseting data_idx to 0 when the buffer is submitted not when it is received as the consumer checks for data_avail, not only for the completion.
Laurent Vivier (4):
hwrng: virtio - add an internal buffer
hwrng: virtio - don't wait on cleanup
hwrng: virtio - don't waste entropy
hwrng: virtio - always add a pending request
drivers/char/hw_random/virtio-rng.c | 86 ++++++++++++++++++++++------- 1 file changed, 65 insertions(+), 21 deletions(-)
Signature · 1 line
2.31.1