• Seraj Alijan's avatar
    dmaengine: dmatest: Add support for multi channel testing · d53513d5
    Seraj Alijan authored
    Add support for running tests on multiple channels simultaneously as the
    driver currently limits to 1 channel per test run. This will add support
    for stress testing DMA controllers with multi channel capabilities.
    
    This is done by adding a callback function to the "channel" parameter
    that registers the requested channel prior to the "run" parameter being
    set to 1. Each time the "channel" parameter is populated with a new
    dma channel, a new test is appended to the thread queue. Once the "run"
    parameter is set to 1, the test will kick start all pending threads.
    Signed-off-by: default avatarSeraj Alijan <seraj.alijan@sondrel.com>
    Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
    d53513d5
dmatest.c 32.5 KB