dmaengine: idxd: Clear PRS disable flag when disabling IDXD device
Subsystems (2)
PATCH 1/1 dmaengine: idxd: Clear PRS disable flag when disabling IDXD device
Disabling IDXD device doesn't reset Page Request Service (PRS) disable flag to its initial value 0. This may cause user confusion because once PRS is disabled user will see PRS still remains the previous setting (i.e. disabled) via sysfs interface even after the device is disabled.
To eliminate the confusion, reset PRS disable flag when the device is disabled.
Tested-by Tony Zhu <[email protected]>
Signed-off-by Fenghua Yu <[email protected]>
--- drivers/dma/idxd/device.c | 1 + 1 file changed, 1 insertion(+)
drivers/dma/idxd/device.c +1 -0
@@ -387,6 +387,7 @@ static void idxd_wq_disable_cleanup(struct idxd_wq *wq)clear_bit (WQ_FLAG_DEDICATED , &wq->flags);clear_bit (WQ_FLAG_BLOCK_ON_FAULT , &wq->flags);clear_bit (WQ_FLAG_ATS_DISABLE , &wq->flags); +clear_bit (WQ_FLAG_PRS_DISABLE , &wq->flags);memset (wq->name,0 ,WQ_NAME_SIZE ); wq->max_xfer_bytes =WQ_DEFAULT_MAX_XFER ;idxd_wq_set_max_batch_size (idxd->data->type, wq,WQ_DEFAULT_MAX_BATCH );
Signature · 1 line
2.37.1