Apply two missing stable patches to fix eMMC timeouts#23
Open
calvin-quilt wants to merge 2 commits intonxp-imx:lf-6.6.yfrom
Open
Apply two missing stable patches to fix eMMC timeouts#23calvin-quilt wants to merge 2 commits intonxp-imx:lf-6.6.yfrom
calvin-quilt wants to merge 2 commits intonxp-imx:lf-6.6.yfrom
Conversation
commit 0cdfe5b upstream. Commit 4d0c8d0 ("mmc: core: Use mrq.sbc in close-ended ffu") adds flags uint to struct mmc_blk_ioc_data, but it does not get initialized for RPMB ioctls which now fails. Let's fix this by always initializing the struct and flags to zero. Fixes: 4d0c8d0 ("mmc: core: Use mrq.sbc in close-ended ffu") Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218587 Link: https://lore.kernel.org/all/20231129092535.3278-1-avri.altman@wdc.com/ Cc: stable@vger.kernel.org Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Reviewed-by: Avri Altman <avri.altman@wdc.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Tested-by: Francesco Dolcini <francesco.dolcini@toradex.com> Link: https://lore.kernel.org/r/20240313133744.2405325-1-mikko.rapeli@linaro.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 35ee852) Signed-off-by: Calvin Owens <calvin@quilt.com>
commit cf55a7a upstream. Commit 4d0c8d0 ("mmc: core: Use mrq.sbc in close-ended ffu") assigns prev_idata = idatas[i - 1], but doesn't check that the iterator i is greater than zero. Let's fix this by adding a check. Fixes: 4d0c8d0 ("mmc: core: Use mrq.sbc in close-ended ffu") Link: https://lore.kernel.org/all/20231129092535.3278-1-avri.altman@wdc.com/ Cc: stable@vger.kernel.org Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Reviewed-by: Avri Altman <avri.altman@wdc.com> Tested-by: Francesco Dolcini <francesco.dolcini@toradex.com> Link: https://lore.kernel.org/r/20240313133744.2405325-2-mikko.rapeli@linaro.org Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 4466677) Signed-off-by: Calvin Owens <calvin@quilt.com>
Overdr0ne
pushed a commit
to Overdr0ne/linux-imx
that referenced
this pull request
Jul 28, 2025
* Initial sound card integration * Added reserved memory space for Cortex-M4 * Added corrections to SAI clock pads and removed unnecessary IO settings * Override the ALSA slot width. reset it to 32-bit * Fixed wrong bus clock setting * Corrected the clock sync setting of SAI 1,3 so that the RX follows the bit clock of the TX * Reactivated HW Crypto accelerator * Reactivated CAAM * Ethernet reset line deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The eMMC on imx93 systems will randomly stop responding to all requests when any program is running "mmc rpmb read-block".
It is extremely easy to reproduce, as follows:
This happens because of a bug in a patch from upstream stable. It is fixed by later patches in stable, but because linux-imx is very far behind upstream stable, it is missing those fixes.
This is the buggy patch, from v6.6.15:
These are the two patches which fix it, from v6.6.24:
Please apply 35ee852 and 4466677 as soon as possible. This PR contains those two patches.
Thanks,
Calvin