Revert "ALSA: hda: call runtime_allow() for all hda controllers"
Subsystems (2)
PATCH 1/1 Revert "ALSA: hda: call runtime_allow() for all hda controllers"
This reverts commit 9a6418487b56 ("ALSA: hda: call runtime_allow() for all hda controllers").
The reverted patch already introduced some regressions on some machines:
- on gemini-lake machines, the error of "azx_get_response timeout" happens in the hda driver.
- on the machines with alc662 codec, the audio jack detection doesn't work anymore.
--- sound/pci/hda/hda_intel.c | 1 - 1 file changed, 1 deletion(-)
sound/pci/hda/hda_intel.c +0 -1
@@ -2352,7 +2352,6 @@ static int azx_probe_continue(struct azx *chip)if (azx_has_pm_runtime (chip)) {pm_runtime_use_autosuspend (&pci->dev); -pm_runtime_allow (&pci->dev);pm_runtime_put_autosuspend (&pci->dev); }
Signature · 1 line
2.17.1
Takashi Iwai
AppliedQuoted 11 lines · Hui Wang
This reverts commit
9a6418487b56("ALSA: hda: callruntime_allow()for all hda controllers").The reverted patch already introduced some regressions on some machines:
- on gemini-lake machines, the error of "azx_get_responsetimeout" happens in the hda driver.
- on the machines with alc662 codec, the audio jack detection doesn't work anymore.
Quoted 3 lines
Cc <[email protected]>Signed-off-by Hui Wang <[email protected]>
Thanks, applied.
Takashi
Quoted 22 lines · Hui Wang
This reverts commit
9a6418487b56("ALSA: hda: callruntime_allow()for all hda controllers").The reverted patch already introduced some regressions on some machines:
- on gemini-lake machines, the error of "azx_get_responsetimeout" happens in the hda driver.
- on the machines with alc662 codec, the audio jack detection doesn't work anymore.Cc <[email protected]>Signed-off-by Hui Wang <[email protected]>--- sound/pci/hda/hda_intel.c | 1 - 1 file changed, 1 deletion(-)sound/pci/hda/hda_intel.c +0
-0
sound/pci/hda/hda_intel.c static int azx_probe_continue(struct azx *chip) · line 2356
Quoted 6 lines
sound/pci/hda/hda_intel.c +0
-1@@ -2352,7 +2352,6 @@ static int azx_probe_continue(struct azx *chip)if (azx_has_pm_runtime (chip)) {pm_runtime_use_autosuspend (&pci->dev); -pm_runtime_allow (&pci->dev);pm_runtime_put_autosuspend (&pci->dev); }
Do I get this right that this permanently disables pm_runtime on all Intel HDaudio controllers?
Quoted 21 lines · Pierre-Louis Bossart
Quoted 17 lines · Hui Wang
This reverts commit
9a6418487b56("ALSA: hda: callruntime_allow()for all hda controllers").The reverted patch already introduced some regressions on some machines:
- on gemini-lake machines, the error of "azx_get_responsetimeout" happens in the hda driver.
- on the machines with alc662 codec, the audio jack detection doesn't work anymore.Cc <[email protected]>Signed-off-by Hui Wang <[email protected]>--- sound/pci/hda/hda_intel.c | 1 - 1 file changed, 1 deletion(-)
Quoted 13 lines
sound/pci/hda/hda_intel.c static int azx_probe_continue(struct azx *chip) · line 2355
Quoted 10 lines
sound/pci/hda/hda_intel.c +0
-1@@ -2352,7 +2352,6 @@ static int azx_probe_continue(struct azx *chip)if (azx_has_pm_runtime (chip)) {pm_runtime_use_autosuspend (&pci->dev); -pm_runtime_allow (&pci->dev);pm_runtime_put_autosuspend (&pci->dev); }Do I get this right that this permanently disables
pm_runtimeon all Intel HDaudio controllers?
It just drops the unconditional enablement of runtime PM. It can be enabled via sysfs, and that's the old default (let admin enabling it via udev or whatever).
thanks,
Takashi
Quoted 37 lines · Takashi Iwai
Quoted 21 lines · Pierre-Louis Bossart
Quoted 17 lines · Hui Wang
This reverts commit
9a6418487b56("ALSA: hda: callruntime_allow()for all hda controllers").The reverted patch already introduced some regressions on some machines:
- on gemini-lake machines, the error of "azx_get_responsetimeout" happens in the hda driver.
- on the machines with alc662 codec, the audio jack detection doesn't work anymore.Cc <[email protected]>Signed-off-by Hui Wang <[email protected]>--- sound/pci/hda/hda_intel.c | 1 - 1 file changed, 1 deletion(-)Quoted 13 lines
sound/pci/hda/hda_intel.c static int azx_probe_continue(struct azx *chip) · line 2355
Quoted 10 lines
sound/pci/hda/hda_intel.c +0
-1@@ -2352,7 +2352,6 @@ static int azx_probe_continue(struct azx *chip)if (azx_has_pm_runtime (chip)) {pm_runtime_use_autosuspend (&pci->dev); -pm_runtime_allow (&pci->dev);pm_runtime_put_autosuspend (&pci->dev); }Do I get this right that this permanently disables
pm_runtimeon all Intel HDaudio controllers?
Quoted 3 lines
It just drops the unconditional enablement of runtime PM. It can be enabled via sysfs, and that's the old default (let admin enabling it via udev or whatever).
Sorry I am confused now.
Kai seemed to suggest in the Bugzilla comments that this would be temporary, until these problems with i915 and ALC662 get fixed?
Quoted 41 lines · Pierre-Louis Bossart
Quoted 37 lines · Takashi Iwai
Quoted 34 lines · Pierre-Louis Bossart
Quoted 22 lines · Hui Wang
This reverts commit
9a6418487b56("ALSA: hda: callruntime_allow()for all hda controllers").The reverted patch already introduced some regressions on some machines:
- on gemini-lake machines, the error of "azx_get_responsetimeout" happens in the hda driver.
- on the machines with alc662 codec, the audio jack detection doesn't work anymore.Cc <[email protected]>Signed-off-by Hui Wang <[email protected]>--- sound/pci/hda/hda_intel.c | 1 - 1 file changed, 1 deletion(-)sound/pci/hda/hda_intel.c +0
-0sound/pci/hda/hda_intel.c static int azx_probe_continue(struct azx *chip) · line 2355
Quoted 5 lines
sound/pci/hda/hda_intel.c +0
-1@@ -2352,7 +2352,6 @@ static int azx_probe_continue(struct azx *chip)if (azx_has_pm_runtime (chip)) {pm_runtime_use_autosuspend (&pci->dev); -pm_runtime_allow (&pci->dev);pm_runtime_put_autosuspend (&pci->dev); }Do I get this right that this permanently disables
pm_runtimeon all Intel HDaudio controllers?
Quoted 7 lines
Quoted 3 lines
It just drops the unconditional enablement of runtime PM. It can be enabled via sysfs, and that's the old default (let admin enabling it via udev or whatever).
Sorry I am confused now.
Kai seemed to suggest in the Bugzilla comments that this would be temporary, until these problems with i915 and ALC662 get fixed?
Right, that's the plan. This patch revert to the old state before the forced-all-enable call we've taken in 5.7. On 5.7 and onwards, all HD-audio controllers are enforced to use the runtime PM. Before that version, the runtime PM was enabled *as default* only for limited devices (typically the ones bound with GPU); for other devices, the runtime PM is manually enabled from user-space via sysfs (and many distros enable them in anyway).
The forced enablement was merged with a hope that now all HD-audio controllers behave nicely, but it turned out to cause a regression, so it was reverted. Once when we find out the real cause, we can flip the flag again.
Takashi
Quoted 20 lines
Quoted 11 lines
Quoted 7 lines
Quoted 3 lines
Do I get this right that this permanently disables
pm_runtimeon all Intel HDaudio controllers?It just drops the unconditional enablement of runtime PM. It can be enabled via sysfs, and that's the old default (let admin enabling it via udev or whatever).
Sorry I am confused now.
Kai seemed to suggest in the Bugzilla comments that this would be temporary, until these problems with i915 and ALC662 get fixed?Right, that's the plan. This patch revert to the old state before the forced-all-enable call we've taken in 5.7. On 5.7 and onwards, all HD-audio controllers are enforced to use the runtime PM. Before that version, the runtime PM was enabled *as default* only for limited devices (typically the ones bound with GPU); for other devices, the runtime PM is manually enabled from user-space via sysfs (and many distros enable them in anyway).
Quoted 4 lines
The forced enablement was merged with a hope that now all HD-audio controllers behave nicely, but it turned out to cause a regression, so it was reverted. Once when we find out the real cause, we can flip the flag again.
ok, sounds good. I was concerned mainly because on the SOF driver side we enable pm_runtime by default, so that's a difference in configuration we need to be aware of when dealing with 'my speaker is silent' support questions.
Quoted 40 lines · Pierre-Louis Bossart
Quoted 37 lines · Takashi Iwai
Quoted 34 lines · Pierre-Louis Bossart
Quoted 22 lines · Hui Wang
This reverts commit
9a6418487b56("ALSA: hda: callruntime_allow()for all hda controllers").The reverted patch already introduced some regressions on some machines:
- on gemini-lake machines, the error of "azx_get_responsetimeout" happens in the hda driver.
- on the machines with alc662 codec, the audio jack detection doesn't work anymore.Cc <[email protected]>Signed-off-by Hui Wang <[email protected]>---
sound/pci/hda/hda_intel.c| 1 -1 file changed, 1 deletion(-)sound/pci/hda/hda_intel.c +0
-0sound/pci/hda/hda_intel.c static int azx_probe_continue(struct azx *chip) · line 2355
Quoted 5 lines
sound/pci/hda/hda_intel.c +0
-1@@ -2352,7 +2352,6 @@ static int azx_probe_continue(struct azx *chip) if (azx_has_pm_runtime(chip)) { pm_runtime_use_autosuspend(&pci->dev); - pm_runtime_allow(&pci->dev); pm_runtime_put_autosuspend(&pci->dev); }Do I get this right that this permanently disables
pm_runtimeon all Intel HDaudio controllers?
Quoted 6 lines
Quoted 3 lines
It just drops the unconditional enablement of runtime PM. It can be enabled via sysfs, and that's the old default (let admin enabling it via udev or whatever).
Sorry I am confused now.
Kai seemed to suggest in the Bugzilla comments that this would be temporary, until these problems with i915 and ALC662 get fixed?
I planed to debug the issue of ALC662, but so far, I haven't got the machine, It is difficult to debug power issues without a physical machine. Once I get the machine, I will debug it and try to find the root cause.
Thanks,
Hui.