5.5.6 regression (stuck at boot) on devices using the sof_hda audio driver + fix
Hans de Goede
Reviewed-by Pierre-Louis BossartHi All,
I and various other Fedora users have noticed that Fedora's 5.5.6 build gets stuck at boot on a Lenovo X1 7th gen, see:
https://bugzilla.redhat.com/show_bug.cgi?id=1772498
This is caused by the addition of this commit to 5.5.6:
24c259557c45 ("ASoC: SOF: Intel: hda: Fix SKL dai count")
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.5.y&id=24c259557c45e817941d3843f82331a477c86a7e
###
ASoC: SOF: Intel: hda: Fix SKL dai count
[ Upstream commit a6947c9d86bcfd61b758b5693eba58defe7fd2ae ]
With fourth pin added for iDisp for skl_dai, update SOF_SKL_DAI_NUM to account for the change. Without this, dais from the bottom of the list are skipped. In current state that's the case for 'Alt Analog CPU DAI'.
###
Notice the "Fixes: ac42b142cd76 (...)", that commit-id actually does not exist, the correct commit-id which this fixes is:
e68d6696575e ("ASoC: SOF: Intel: hda: Add iDisp4 DAI") and that commit is not in 5.5.6, which is causing the problem, the missing commit makes an array one larger and the fix for the missing fix which did end up in 5.5.6 and bumps a define which is used to walk over the array in some places by one so now the walking is going over the array boundary.
For the Fedora kernels I've fixed this by adding the "ASoC: SOF: Intel: hda: Add iDisp4 DAI" commit as a downstream patch for our kernels. I believe that this is probably the best fix for 5.5.z too.
Regards,
Hans
p.s.
I know that the stable series are partly based on automatically picking patches now. I wonder if the scripts doing that could be made smarter wrt rejecting patches with a Fixes tag where the fixed patch is not present, so where in essence a pre-requisite of the patch being added is missing ?
+Kai
Quoted 61 lines
-----Original Message-----
From: Hans de Goede <[email protected]>
Sent: Thursday, February 27, 2020 11:39 AM
To: [email protected]; Nujella, Sathyanarayana <[email protected]>; Rojewski, Cezary <[email protected]>; Jaroslav Kysela <[email protected]>
Subject: 5.5.6 regression (stuck at boot) on devices using thesof_hdaaudio driver + fixHi All,
I and various other Fedora users have noticed that Fedora's 5.5.6 build gets stuck at boot on a Lenovo X1 7th gen, see:
https://bugzilla.redhat.com/show_bug.cgi?id=1772498This is caused by the addition of this commit to 5.5.6:
24c259557c45("ASoC: SOF: Intel: hda: Fix SKL dai count")
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=li
nux-5.5.y&id=24c259557c45e817941d3843f82331a477c86a7e###
ASoC: SOF: Intel: hda: Fix SKL dai count [ Upstream commita6947c9d86bcfd61b758b5693eba58defe7fd2ae]With fourth pin added for iDisp for
skl_dai, updateSOF_SKL_DAI_NUMto account for the change. Without this, dais from the bottom of the list are skipped. In current state that's the case for 'Alt Analog CPU DAI'.Fixes ac42b142cd76 ("ASoC: SOF: Intel: hda: Add iDisp4 DAI")Signed-off-by Cezary Rojewski <[email protected]>Reviewed-by Pierre-Louis Bossart <[email protected]>Signed-off-by Mark Brown <[email protected]>Signed-off-by Sasha Levin <[email protected]> ###Notice the "Fixes:
ac42b142cd76(...)", that commit-id actually does not exist, the correct commit-id which this fixes is:
e68d6696575e("ASoC: SOF: Intel: hda: Add iDisp4 DAI") and that commit is not in 5.5.6, which is causing the problem, the missing commit makes an array one larger and the fix for the missing fix which did end up in 5.5.6 and bumps a define which is used to walk over the array in some places by one so now the walking is going over the array boundary.For the Fedora kernels I've fixed this by adding the
"ASoC: SOF: Intel: hda: Add iDisp4 DAI" commit as a downstream patch for our kernels. I believe that this is probably the best fix for 5.5.z too.Regards,
Hans
p.s.
I know that the stable series are partly based on automatically picking patches now. I wonder if the scripts doing that could be made smarter wrt rejecting patches with a Fixes tag where the fixed patch is not present, so where in essence a pre-requisite of the patch being added is missing ?
Quoted 37 lines · Hans de Goede
Hi All,
I and various other Fedora users have noticed that Fedora's 5.5.6 build gets stuck at boot on a Lenovo X1 7th gen, see:
https://bugzilla.redhat.com/show_bug.cgi?id=1772498This is caused by the addition of this commit to 5.5.6:
24c259557c45("ASoC: SOF: Intel: hda: Fix SKL dai count")
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.5.y&id=24c259557c45e817941d3843f82331a477c86a7e###
ASoC: SOF: Intel: hda: Fix SKL dai count
[ Upstream commita6947c9d86bcfd61b758b5693eba58defe7fd2ae]With fourth pin added for iDisp for
skl_dai, updateSOF_SKL_DAI_NUMto account for the change. Without this, dais from the bottom of the list are skipped. In current state that's the case for 'Alt Analog CPU DAI'.Fixes ac42b142cd76 ("ASoC: SOF: Intel: hda: Add iDisp4 DAI")Signed-off-by Cezary Rojewski <[email protected]>Reviewed-by Pierre-Louis Bossart <[email protected]>Signed-off-by Mark Brown <[email protected]>Signed-off-by Sasha Levin <[email protected]>###
Notice the "Fixes:
ac42b142cd76(...)", that commit-id actually does not exist, the correct commit-id which this fixes is:
e68d6696575e("ASoC: SOF: Intel: hda: Add iDisp4 DAI") and that commit is not in 5.5.6, which is causing the problem, the missing commit makes an array one larger and the fix for the missing fix which did end up in 5.5.6 and bumps a define which is used to walk over the array in some places by one so now the walking is going over the array boundary.
Quoted 4 lines
For the Fedora kernels I've fixed this by adding the "ASoC: SOF: Intel: hda: Add iDisp4 DAI" commit as a downstream patch for our kernels. I believe that this is probably the best fix for 5.5.z too.
I've done that now too, thanks for catching this.
Quoted 7 lines
p.s.
I know that the stable series are partly based on automatically picking patches now. I wonder if the scripts doing that could be made smarter wrt rejecting patches with a Fixes tag where the fixed patch is not present, so where in essence a pre-requisite of the patch being added is missing ?
Looks like Sasaha's scripts has a bug in it :(
Sasha Levin
maintainerQuoted 5 lines · Hans de Goede
I know that the stable series are partly based on automatically picking patches now. I wonder if the scripts doing that could be made smarter wrt rejecting patches with a Fixes tag where the fixed patch is not present, so where in essence a pre-requisite of the patch being added is missing ?
The scripts actually look at the fixes tag and try to do that, but it looks like they didn't handle the case where the commit id pointed to by the fixes tag doesn't exist at all.
I'll go fix that, sorry :(
Signature · 2 lines
Thanks, Sasha