Message ID | cover.1663894792.git.quic_asutoshd@quicinc.com |
---|---|
Headers | show |
Series | Add Multi Circular Queue Support | expand |
> > #define EXT_IID_CAP_SHIFT 10 > +#define MCQ_SUPP_SHIFT 30 > #define ufshcd_toggle_vreg(_dev, _vreg, _on) \ > ({ \ > int _ret; \ > @@ -2240,6 +2241,10 @@ static inline int ufshcd_hba_capabilities(struct > ufs_hba *hba) > if (err) > dev_err(hba->dev, "crypto setup failed\n"); > > + hba->mcq_sup = (hba->capabilities & MASK_MCQ_SUPPORT) >> > MCQ_SUPP_SHIFT; Since you are just testing for bit30, MASK_MCQ_SUPPORT is not really needed. Maybe just: hba->mcq_sup = (hba->capabilities >> MCQ_SUPP_SHIFT) & 1; Thanks, Avri
Hello Mani, Thanks for taking a look at the series. On Mon, Sep 26 2022 at 06:50 -0700, Manivannan Sadhasivam wrote: >On Thu, Sep 22, 2022 at 06:05:07PM -0700, Asutosh Das wrote: >> >> UFS Multi-Circular Queue (MCQ) has been added in UFSHCI v4.0 to improve storage performance. >> This patch series is a RFC implementation of this. > >This is no more an RFC series. Also, it would be good if you can provide a >summary on how the implementation has been done. > Sure, I will add it. I shall wait for more comments from others for some more time before pushing the next version. -asd
On Sat, Sep 24 2022 at 01:14 -0700, Avri Altman wrote: >> >> + hba->mcq_sup = (hba->capabilities & MASK_MCQ_SUPPORT) >> >> MCQ_SUPP_SHIFT; >Since you are just testing for bit30, MASK_MCQ_SUPPORT is not really needed. >Maybe just: >hba->mcq_sup = (hba->capabilities >> MCQ_SUPP_SHIFT) & 1; > Thanks. Yeah, Mani suggested FIELD* macros as an option too. Let me check that as well and address this in the next version. -asd
On 9/22/22 18:05, Asutosh Das wrote:
> Please take a look and let us know your thoughts.
Except for the comments I added this series looks good to me.
Thanks,
Bart.