mmc: sdhci-of-esdhc: fix P2020 errata handling
Hi,
We got your patch from stable. On p2020 we had mmc issues, and bisected the issue to your patch.
Both prior patches seems to modify quirks2.
Fixes: 05cb6b2a66fa ("mmc: sdhci-of-esdhc: add erratum eSDHC-A001 and A-008358 support")
Fixes: a46e42712596 ("mmc: sdhci-of-esdhc: add erratum eSDHC5 support")So I'm not sure if your changes were done correctly.
Daniel
Hi Daniel,
Sorry for the trouble.
I think you were saying below patch introduced issue for you. fe0acab mmc: sdhci-of-esdhc: fix P2020 errata handling
Actually it looked fine from code. Probably it resolved its own issue but caused another.
I don't know which kernel you were using. Could you have a check whether my other fix-up patches which may be related to P2020 in your kernel after that one? I remembered P2020 should work.
80c7482 mmc: sdhci-of-esdhc: fix serious issue clock is always disabled 429d939 mmc: sdhci-of-esdhc: fix transfer mode register reading 1b21a70 mmc: sdhci-of-esdhc: fix clock setting for different controller versions 2aa3d82 mmc: sdhci-of-esdhc: fix esdhc_reset() for different controller versions f667216 mmc: sdhci-of-esdhc: re-implement erratum A-009204 workaround
Thanks a lot.
Best regards,
Yangbo Lu
Quoted 26 lines
-----Original Message-----
From: Daniel Walker (danielwa) <[email protected]>
Sent: Wednesday, April 1, 2020 4:50 AM
To: Y.b. Lu <[email protected]>
Cc: [email protected]; Shyam More (shymore) <[email protected]>; xe-linux-external(mailer list) <[email protected]>; Ulf Hansson <[email protected]>
Subject: Re: mmc: sdhci-of-esdhc: fix P2020 errata handlingHi,
We got your patch from stable. On p2020 we had mmc issues, and bisected the
issue to your patch.Both prior patches seems to modify quirks2.
Fixes: 05cb6b2a66fa ("mmc: sdhci-of-esdhc: add erratum eSDHC-A001 and A-008358 support") Fixes: a46e42712596 ("mmc: sdhci-of-esdhc: add erratum eSDHC5support")
So I'm not sure if your changes were done correctly.
Daniel
Quoted 5 lines · Y.b. Lu
Hi Daniel,
Sorry for the trouble.
I think you were saying below patch introduced issue for you. fe0acab mmc: sdhci-of-esdhc: fix P2020 errata handling
Yes, this patch cased mmc to stop functioning on p2020.
Quoted 3 lines
Actually it looked fine from code. Probably it resolved its own issue but caused another.
I don't know which kernel you were using. Could you have a check whether my other fix-up patches which may be related to P2020 in your kernel after that one? I remembered P2020 should work.
We are using 4.9 stable. Your patch changes from quirks2 to quirks, but the original patches all use quirks2.
Quoted 5 lines
80c7482 mmc: sdhci-of-esdhc: fix serious issue clock is always disabled 429d939 mmc: sdhci-of-esdhc: fix transfer mode register reading 1b21a70 mmc: sdhci-of-esdhc: fix clock setting for different controller versions 2aa3d82 mmc: sdhci-of-esdhc: fix
esdhc_reset()for different controller versions f667216 mmc: sdhci-of-esdhc: re-implement erratum A-009204 workaround
These are all 5.5 time frame patches, unless it's in stable we don't have them.
Daniel
Quoted 9 lines · Daniel Walker (danielwa)
Quoted 5 lines · Y.b. Lu
Hi Daniel,
Sorry for the trouble.
I think you were saying below patch introduced issue for you. fe0acab mmc: sdhci-of-esdhc: fix P2020 errata handlingYes, this patch cased mmc to stop functioning on p2020.
Have you investigated this ?
Daniel
Hi Daniel,
Quoted 13 lines
-----Original Message-----
From: Daniel Walker (danielwa) <[email protected]>
Sent: Wednesday, April 8, 2020 12:35 AM
To: Y.b. Lu <[email protected]>
Cc: [email protected]; Shyam More (shymore) <[email protected]>; xe-linux-external(mailer list) <[email protected]>; Ulf Hansson <[email protected]>
Subject: Re: mmc: sdhci-of-esdhc: fix P2020 errata handlingQuoted 3 lines · Daniel Walker (danielwa)
Quoted 2 lines · Y.b. Lu
Hi Daniel,
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Sorry for the trouble.
I think you were saying below patch introduced issue for you. fe0acab mmc: sdhci-of-esdhc: fix P2020 errata handlingYes, this patch cased mmc to stop functioning on p2020.
Have you investigated this ?
As I said, this patch was proper fix-up, fixing mistake which used host->quirks2. It was host->quirks that should be used. But after this patch, the other potential issues for P2020 appeared.
I had shared you all other related fix-ups for P2020. If your linux doesn't not have, you need to cherry-pick by yourself.
80c7482 mmc: sdhci-of-esdhc: fix serious issue clock is always disabled 429d939 mmc: sdhci-of-esdhc: fix transfer mode register reading 1b21a70 mmc: sdhci-of-esdhc: fix clock setting for different controller versions 2aa3d82 mmc: sdhci-of-esdhc: fix esdhc_reset() for different controller versions f667216 mmc: sdhci-of-esdhc: re-implement erratum A-009204 workaround
At least, if you try to cherry-pick the two patches, P2020 eSDHC would work again.
2aa3d82 mmc: sdhci-of-esdhc: fix esdhc_reset() for different controller versions f667216 mmc: sdhci-of-esdhc: re-implement erratum A-009204 workaround
Thanks.
Quoted 2 lines
Daniel
Quoted 19 lines · Y.b. Lu
Hi Daniel,
Quoted 17 lines
-----Original Message-----
From: Daniel Walker (danielwa) <[email protected]>
Sent: Wednesday, April 8, 2020 12:35 AM
To: Y.b. Lu <[email protected]>
Cc: [email protected]; Shyam More (shymore) <[email protected]>; xe-linux-external(mailer list) <[email protected]>; Ulf Hansson <[email protected]>
Subject: Re: mmc: sdhci-of-esdhc: fix P2020 errata handlingQuoted 7 lines · Daniel Walker (danielwa)
Quoted 5 lines · Y.b. Lu
Hi Daniel,
Sorry for the trouble.
I think you were saying below patch introduced issue for you. fe0acab mmc: sdhci-of-esdhc: fix P2020 errata handling
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Yes, this patch cased mmc to stop functioning on p2020.
Have you investigated this ?
As I said, this patch was proper fix-up, fixing mistake which used
host->quirks2. It washost->quirksthat should be used. But after this patch, the other potential issues for P2020 appeared.
Your including a change into stable which breaks p2020, that's not acceptable. If more changes are needed to make p2020 stable can you send those additional patches to stable also ?
Otherwise we need to revert your current patch.
Daniel
Thanks Daniel for pointing out it.
Hi Uffe,
As Daniel reported, below commit introduced issue on P2020 platform. fe0acab mmc: sdhci-of-esdhc: fix P2020 errata handling
And the fix-up for the issue is,
2aa3d82 mmc: sdhci-of-esdhc: fix esdhc_reset() for different controller versions
It seemed fe0acab was applied to linux-stable for 5.5, 5.4, 4.19, 4.14, 4.9, and 4.4, without the fix-up 2aa3d82. I tried to cherry-pick the fix-up to all these stable branches, but got many conflicts except 5.5 and 5.4.
May I have your suggestion from safe perspective should I rework the fix-up for these branches, or request to just revert fe0acab. The patch fe0acab is just for errata handling while the errata are hard to trigger. It is not strongly required.
Thanks a lot.
Best regards,
Yangbo Lu
Quoted 48 lines
-----Original Message-----
From: Daniel Walker (danielwa) <[email protected]>
Sent: Wednesday, April 8, 2020 11:31 PM
To: Y.b. Lu <[email protected]>
Cc: [email protected]; Shyam More (shymore) <[email protected]>; xe-linux-external(mailer list) <[email protected]>; Ulf Hansson <[email protected]>
Subject: Re: mmc: sdhci-of-esdhc: fix P2020 errata handlingQuoted 7 lines · Y.b. Lu
Hi Daniel,
Quoted 5 lines
-----Original Message-----
From: Daniel Walker (danielwa) <[email protected]>
Sent: Wednesday, April 8, 2020 12:35 AM
To: Y.b. Lu <[email protected]>
Cc: [email protected]; Shyam More (shymore)Quoted 5 lines
Quoted 5 lines
xe-linux-external(mailer list) <[email protected]>; Ulf Hansson <[email protected]>
Subject: Re: mmc: sdhci-of-esdhc: fix P2020 errata handlingOn Wed, Apr 01, 2020 at 03:26:35PM +0000, Daniel Walker (danielwa)
Quoted 7 lines · wrote:
Quoted 7 lines
Quoted 7 lines · Y.b. Lu
Quoted 5 lines
Hi Daniel,
Sorry for the trouble.
I think you were saying below patch introduced issue for you. fe0acab mmc: sdhci-of-esdhc: fix P2020 errata handlingQuoted 6 lines
Quoted 4 lines
Quoted 2 lines
Yes, this patch cased mmc to stop functioning on p2020.
Have you investigated this ?
As I said, this patch was proper fix-up, fixing mistake which used
host->quirks2. It washost->quirksthat should be used.Quoted 1 line
But after this patch, the other potential issues for P2020 appeared.
Your including a change into stable which breaks p2020, that's not acceptable. If
more changes are needed to make p2020 stable can you send those additional patches to stable also ?Otherwise we need to revert your current patch.
Daniel
Quoted 8 lines · Y.b. Lu
Thanks Daniel for pointing out it.
Hi Uffe,
As Daniel reported, below commit introduced issue on P2020 platform. fe0acab mmc: sdhci-of-esdhc: fix P2020 errata handling
Quoted 8 lines
And the fix-up for the issue is,
2aa3d82 mmc: sdhci-of-esdhc: fixesdhc_reset()for different controller versionsIt seemed fe0acab was applied to linux-stable for 5.5, 5.4, 4.19, 4.14, 4.9, and 4.4, without the fix-up 2aa3d82. I tried to cherry-pick the fix-up to all these stable branches, but got many conflicts except 5.5 and 5.4.
May I have your suggestion from safe perspective should I rework the fix-up for these branches, or request to just revert fe0acab. The patch fe0acab is just for errata handling while the errata are hard to trigger. It is not strongly required.
It sounds to me, like a revert may be the best option, at least for 4.19 and backwards.
Perhaps from 5.4 and onwards, you can send the needed additional patches as plain backports to stable, as they should be easy to apply, right!?
[...]
Kind regards
Uffe
Quoted 30 lines
-----Original Message-----
From: Ulf Hansson <[email protected]>
Sent: Thursday, April 9, 2020 6:42 PM
To: Y.b. Lu <[email protected]>
Cc: Daniel Walker (danielwa) <[email protected]>; [email protected]; Shyam More (shymore) <[email protected]>; xe-linux-external(mailer list) <[email protected]>
Subject: Re: mmc: sdhci-of-esdhc: fix P2020 errata handlingQuoted 10 lines · Y.b. Lu
Thanks Daniel for pointing out it.
Hi Uffe,
As Daniel reported, below commit introduced issue on P2020 platform. fe0acab mmc: sdhci-of-esdhc: fix P2020 errata handling
And the fix-up for the issue is,
2aa3d82 mmc: sdhci-of-esdhc: fixesdhc_reset()for different controllerversions
Quoted 2 lines
It seemed fe0acab was applied to linux-stable for 5.5, 5.4, 4.19, 4.14, 4.9,
and 4.4, without the fix-up 2aa3d82.
Quoted 1 line
I tried to cherry-pick the fix-up to all these stable branches, but got many
conflicts except 5.5 and 5.4.
Quoted 2 lines
May I have your suggestion from safe perspective should I rework the fix-up
for these branches, or request to just revert fe0acab.
Quoted 1 line
The patch fe0acab is just for errata handling while the errata are hard to
Quoted 8 lines
trigger. It is not strongly required.
It sounds to me, like a revert may be the best option, at least for 4.19 and backwards.
Perhaps from 5.4 and onwards, you can send the needed additional patches as plain backports to stable, as they should be easy to apply, right!?
Thanks a lot for your suggestion, Uffe.
Sent out the fix-up to kernel 5.5. and 5.4. And requested help to revert the issue patch on other kernel versions.
Quoted 5 lines
[...]
Kind regards
Uffe