RE: Re: [PATCH v18 3/3] scsi: ufs: Prepare HPB read for cached sub-region

2021-01-15 Thread Daejun Park
Hi Can Guo, > > On 2021-01-13 09:36, Daejun Park wrote: > > Hi Can Guo, > > > >> > +static void > >> > +ufshpb_set_hpb_read_to_upiu(struct ufshpb_lu *hpb, struct ufshcd_lrb > >> > *lrbp, > >> > + u32 lpn, u64 ppn, unsigned int > >> > transfer_len) > >> > +{ >

Re: [PATCH v18 3/3] scsi: ufs: Prepare HPB read for cached sub-region

2021-01-13 Thread Can Guo
Hi Daejun, On 2021-01-13 09:36, Daejun Park wrote: Hi Can Guo, > +static void > +ufshpb_set_hpb_read_to_upiu(struct ufshpb_lu *hpb, struct ufshcd_lrb > *lrbp, > +u32 lpn, u64 ppn, unsigned int transfer_len) > +{ > + unsigned char *cdb = lrbp->ucd_req_ptr->sc.cdb;

RE: Re: [PATCH v18 3/3] scsi: ufs: Prepare HPB read for cached sub-region

2021-01-12 Thread Daejun Park
Hi Can Guo, > > +static void > > +ufshpb_set_hpb_read_to_upiu(struct ufshpb_lu *hpb, struct ufshcd_lrb > > *lrbp, > > + u32 lpn, u64 ppn, unsigned int transfer_len) > > +{ > > + unsigned char *cdb = lrbp->ucd_req_ptr->sc.cdb; > > + > > + cdb[0] = UFSHPB_READ; >

Re: [PATCH v18 3/3] scsi: ufs: Prepare HPB read for cached sub-region

2021-01-10 Thread Can Guo
On 2020-12-22 09:58, Daejun Park wrote: This patch changes the read I/O to the HPB read I/O. If the logical address of the read I/O belongs to active sub-region, the HPB driver modifies the read I/O command to HPB read. It modifies the UPIU command of UFS instead of modifying the existing

[PATCH v18 3/3] scsi: ufs: Prepare HPB read for cached sub-region

2020-12-21 Thread Daejun Park
This patch changes the read I/O to the HPB read I/O. If the logical address of the read I/O belongs to active sub-region, the HPB driver modifies the read I/O command to HPB read. It modifies the UPIU command of UFS instead of modifying the existing SCSI command. In the HPB version 1.0, the