Re: [RFC PATCH 05/13] scsi: ufs: ufshpb: Disable HPB if no HPB-enabled luns

2020-05-15 Thread Bart Van Assche
On 2020-05-15 03:30, Avri Altman wrote: > @@ -368,6 +390,8 @@ int ufshpb_probe(struct ufs_hba *hba) > if (ret) > goto out; > > + INIT_DELAYED_WORK(&hba->hpb_disable_work, ufshpb_disable_work); > + schedule_delayed_work(&hba->hpb_disable_work, 60 * HZ); > out: >

[RFC PATCH 05/13] scsi: ufs: ufshpb: Disable HPB if no HPB-enabled luns

2020-05-15 Thread Avri Altman
We are disabling the feature altogether if reading the configuration fails, or there are no HPB-luns configured, or no active regions are configure. Still, after reading the configuration successfully, there can be no HBP-enabled luns, e.g. if their pinned regions allocation has failed. So to avo