Re: [dpdk-dev] [PATCH v2 1/6] dmadev: add device idle check for testing use

2021-09-02 Thread Bruce Richardson
On Thu, Sep 02, 2021 at 08:54:11PM +0800, fengchengwen wrote: > When some hardware is faulty, the error code cannot be set, and it just stops > working. > In addition, interrupts are generally not enabled. Therefore, for such > hardware, the > framework needs to have a mechanism to transmit the s

Re: [dpdk-dev] [PATCH v2 1/6] dmadev: add device idle check for testing use

2021-09-02 Thread fengchengwen
When some hardware is faulty, the error code cannot be set, and it just stops working. In addition, interrupts are generally not enabled. Therefore, for such hardware, the framework needs to have a mechanism to transmit the status so that applications can sense the status. So how about extend v

[dpdk-dev] [PATCH v2 1/6] dmadev: add device idle check for testing use

2021-09-01 Thread Bruce Richardson
Add in a function to check if a device or vchan has completed all jobs assigned to it, without gathering in the results. This is primarily for use in testing, to allow the hardware to be in a known-state prior to gathering completions. Signed-off-by: Bruce Richardson --- lib/dmadev/rte_dmadev.c