All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Query on patch "7ff2760 mmc: core: Add a facility to "pause" re-tuning"
       [not found] <AM7PR04MB6885850EAB3307DDA0C4FDC3F8B90@AM7PR04MB6885.eurprd04.prod.outlook.com>
@ 2020-05-19 10:57 ` Adrian Hunter
  2020-05-22  2:01   ` Y.b. Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Hunter @ 2020-05-19 10:57 UTC (permalink / raw)
  To: Y.b. Lu, Ulf Hansson, linux-mmc; +Cc: Sachin Miglani

On 19/05/20 1:42 pm, Y.b. Lu wrote:
> Hi Uffe and Adrian,
> 
>  
> 
> May I have a query on below patch. Do we really need re-tuning before
> switching to RPMB partition each time per eMMC spec, especially for HS400
> mode with auto-tuning?

It was to ensure tuning would not be needed while accessing RPMB since RPMB
does not support tuning.

> 
> What’s the impact if no re-tuning here?

Increased risk of CRC errors.

> 
>  
> 
> 7ff2760 mmc: core: Add a facility to "pause" re-tuning
> 
>  
> 
> +/*
> 
> + * Pause re-tuning for a small set of operations.  The pause begins after the
> 
> + * next command and after first doing re-tuning.
> 
> + */
> 
> +void mmc_retune_pause(struct mmc_host *host)
> 
> +{
> 
> +       if (!host->retune_paused) {
> 
> +               host->retune_paused = 1;
> 
> +               mmc_retune_needed(host);
> 
> +               mmc_retune_hold(host);
> 
> +       }
> 
> +}
> 
>  
> 
> Thanks a lot.
> 
>  
> 
> Best regards,
> 
> Yangbo Lu
> 
>  
> 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Query on patch "7ff2760 mmc: core: Add a facility to "pause" re-tuning"
  2020-05-19 10:57 ` Query on patch "7ff2760 mmc: core: Add a facility to "pause" re-tuning" Adrian Hunter
@ 2020-05-22  2:01   ` Y.b. Lu
  0 siblings, 0 replies; 2+ messages in thread
From: Y.b. Lu @ 2020-05-22  2:01 UTC (permalink / raw)
  To: Adrian Hunter; +Cc: Sachin Miglani, Ulf Hansson, linux-mmc

Hi Adrian,

Thanks for your quick explaining.
Auto tuning mode make sure tuning would not be needed as hardware will automatically take care of drift for data transfer.
And the chances of drift on response line (48 cycles) is very less.

Ok. The retuning can reduce the risk of CRC errors even the risk is very low for auto tuning mode.
I have no question now:)

Thanks a lot.

Best regards,
Yangbo Lu

> -----Original Message-----
> From: linux-mmc-owner@vger.kernel.org <linux-mmc-owner@vger.kernel.org>
> On Behalf Of Adrian Hunter
> Sent: Tuesday, May 19, 2020 6:57 PM
> To: Y.b. Lu <yangbo.lu@nxp.com>; Ulf Hansson <ulf.hansson@linaro.org>;
> linux-mmc@vger.kernel.org
> Cc: Sachin Miglani <sachin.miglani@nxp.com>
> Subject: Re: Query on patch "7ff2760 mmc: core: Add a facility to "pause"
> re-tuning"
> 
> On 19/05/20 1:42 pm, Y.b. Lu wrote:
> > Hi Uffe and Adrian,
> >
> >
> >
> > May I have a query on below patch. Do we really need re-tuning before
> > switching to RPMB partition each time per eMMC spec, especially for HS400
> > mode with auto-tuning?
> 
> It was to ensure tuning would not be needed while accessing RPMB since
> RPMB
> does not support tuning.
> 
> >
> > What's the impact if no re-tuning here?
> 
> Increased risk of CRC errors.
> 
> >
> >
> >
> > 7ff2760 mmc: core: Add a facility to "pause" re-tuning
> >
> >
> >
> > +/*
> >
> > + * Pause re-tuning for a small set of operations.  The pause begins after the
> >
> > + * next command and after first doing re-tuning.
> >
> > + */
> >
> > +void mmc_retune_pause(struct mmc_host *host)
> >
> > +{
> >
> > +       if (!host->retune_paused) {
> >
> > +               host->retune_paused = 1;
> >
> > +               mmc_retune_needed(host);
> >
> > +               mmc_retune_hold(host);
> >
> > +       }
> >
> > +}
> >
> >
> >
> > Thanks a lot.
> >
> >
> >
> > Best regards,
> >
> > Yangbo Lu
> >
> >
> >


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-22  2:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AM7PR04MB6885850EAB3307DDA0C4FDC3F8B90@AM7PR04MB6885.eurprd04.prod.outlook.com>
2020-05-19 10:57 ` Query on patch "7ff2760 mmc: core: Add a facility to "pause" re-tuning" Adrian Hunter
2020-05-22  2:01   ` Y.b. Lu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.