RE: [PATCH v6 03/10] scsi: ufshpb: Add region's reads counter

2021-03-27 Thread Avri Altman
> > > @@ -596,12 +615,43 @@ int ufshpb_prep(struct ufs_hba *hba, struct > > > ufshcd_lrb *lrbp) > > > ufshpb_set_ppn_dirty(hpb, rgn_idx, srgn_idx, srgn_offset, > > >transfer_len); > > > spin_unlock_irqrestore(>rgn_state_lock, flags); > >

RE: [PATCH v6 03/10] scsi: ufshpb: Add region's reads counter

2021-03-24 Thread Avri Altman
> > @@ -596,12 +615,43 @@ int ufshpb_prep(struct ufs_hba *hba, struct > > ufshcd_lrb *lrbp) > > ufshpb_set_ppn_dirty(hpb, rgn_idx, srgn_idx, srgn_offset, > >transfer_len); > > spin_unlock_irqrestore(>rgn_state_lock, flags); > > + > > +

Re: [PATCH v6 03/10] scsi: ufshpb: Add region's reads counter

2021-03-24 Thread Can Guo
On 2021-03-22 16:10, Avri Altman wrote: In host control mode, reads are the major source of activation trials. Keep track of those reads counters, for both active as well inactive regions. We reset the read counter upon write - we are only interested in "clean" reads. Keep those counters