Please consider this rewrite: On 17/11/2021 02:45, chenxiang wrote: scsi: hisi_sas: Use autosuspend for the host controller
From: Xiang Chen<chenxiang66@xxxxxxxxxxxxx> For some scenarios, it may send many IOs in a short time, then SAS controller will enter suspend and resume frequently which is invalid. To avoid it, use autosuspend mode for SAS controller and set default autosuspend delay time to 5s.
The controller may frequently enter and exit suspend for each IO which we need to deal with. This is inefficient and may cause too much suspend+resume activity for the controller.
To avoid this, use a default 5s autosuspend for the controller to stop frequently suspending and resuming. This value may still be still modified via sysfs.
Signed-off-by: Xiang Chen<chenxiang66@xxxxxxxxxxxxx> Signed-off-by: John Garry<john.garry@xxxxxxxxxx>
Acked-by please Thanks, John