RE: [PATCH] scsi: ufs: Allow RTT negotiation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Avri,
> 
> On 02.05.24 3:19 PM, Avri Altman wrote:
> > +     /* RTT override makes sense only for UFS-4.0 and above */
> > +     if (dev_info->wspecversion < 0x400)
> > +             return;
> > +
> > +     rtt = min_t(int, desc_buf[DEVICE_DESC_PARAM_RTT_CAP], hba->nortt);
> > +     /* rtt is 2 after manufacturing */
> > +     if (rtt < 3)
> > +             return;
> > +
> > +     if (ufshcd_query_attr_retry(hba, UPIU_QUERY_OPCODE_WRITE_ATTR,
> > +                                 QUERY_ATTR_IDN_MAX_NUM_OF_RTT, 0, 0, &rtt))
> > +             dev_err(hba->dev, "failed writing bMaxNumOfRTT\n"); }
> 
> bMaxNumOfRTT is Persistent Property,  do we need to re-write every time
> power cycle?
Correct.
Moreover, don't want to override use-space should it was written.
Will fix.

Thanks,
Avri

> 
> Kind regards,
> 
> Bean
> 





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux