Skip to contentSkip to conversation

scsi: ufs: Enable block layer runtime PM for well-known logical units

PATCH Applied Stanley Chu 2 participants 2 messages Mar 26, 2020 – Mar 27, 2020 1 message not in the archive SCSI

lore
Share & tools
lore

Stanley Chu

author Reviewed-by
#1 lore raw
In reply to a message not in the archive

Hi Can,

Quoted 12 lines · Can Guo

Block layer RPM is enabled for the genernal UFS SCSI devices when they are probed by their driver. However block layer RPM is not enabled for UFS well-known SCSI devices.

As UFS SCSI devices have their corresponding BSG char devices, accessing a BSG char device via IOCTL may send requests to its corresponding SCSI device through its request queue. If BSG IOCTL sends a request to a well-known SCSI device when hba is not runtime active, due to block layer RPM is not eanbled for the well-known SCSI devices, hba, which is at the top of a scsi device's parent chain, shall not be resumed, then unexpected error would happen.

Quoted 6 lines

This change enables block layer RPM for the well-known SCSI devices, so that block layer can handle RPM for the well-known SCSI devices just like for the general SCSI devices.

Looks good!
Thanks to make RPM for UFS completed!

#2 lore raw
In reply to a message not in the archive

Can,

Quoted 3 lines

Block layer RPM is enabled for the genernal UFS SCSI devices when they are probed by their driver. However block layer RPM is not enabled for UFS well-known SCSI devices.

Applied to 5.7/scsi-queue, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering