RE: Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-08 Thread Daejun Park
> @@ -342,13 +1208,14 @@ void ufshpb_suspend(struct ufs_hba *hba) > > struct scsi_device *sdev; > > > > shost_for_each_device(sdev, hba->host) { > > -hpb = sdev->hostdata; > > +hpb = ufshpb_get_hpb_data(sdev); > >

RE: Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-08 Thread Daejun Park
>>> @@ -342,13 +1208,14 @@ void ufshpb_suspend(struct ufs_hba *hba) >>> > struct scsi_device *sdev; >>> > >>> > shost_for_each_device(sdev, hba->host) { >>> > -hpb = sdev->hostdata; >>> > +hpb = ufshpb_get_hpb_data(sdev); >>> > if (

RE: Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-08 Thread Daejun Park
> @@ -342,13 +1208,14 @@ void ufshpb_suspend(struct ufs_hba *hba) > > struct scsi_device *sdev; > > > > shost_for_each_device(sdev, hba->host) { > > - hpb = sdev->hostdata; > > + hpb = ufshpb_get_hpb_data(sdev); > > if (!hpb) > > continue

RE: Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-08 Thread Daejun Park
> + > > +static void ufshpb_kick_map_work(struct ufshpb_lu *hpb) > > +{ > > +bool ret = true; > > -> ret = false; > > > +unsigned long flags; > > + > > +spin_lock_irqsave(&hpb->rsp_list_lock, flags); > > +if (!list_empty(&hpb->lh_inact_rgn) || > > !list_empty(&h

RE: Re: [PATCH v19 2/3] scsi: ufs: L2P map management for HPB read

2021-02-08 Thread Daejun Park
> > >"If the requested field of the HPB Region or HPB Sub-Region is out > > > of > > > range, then the device shall terminate the command by sending > > > RESPONSE > > > UPIU with CHECK CONDITION status, with the SENSE KEY set to ILLEGAL > > > REQUEST, and the additional sense code set to INVALID F