* [Intel-gfx] [PATCH] ALSA: hda: i915: Alays handle -EPROBE_DEFER
@ 2023-11-15 12:36 Maarten Lankhorst
2023-11-15 12:43 ` Takashi Iwai
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Maarten Lankhorst @ 2023-11-15 12:36 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, intel-gfx, intel-xe
It turns out that even if the comment says that the driver can load
fine, it's not really the case and no codecs are detected.
Specifically for -EPROBE_DEFER, always fail the probe.
This fixes a regression when HDA-intel is loaded before i915.
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tested-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Fixes: e6d0c13e9f46 ("ALSA: hda: i915: Remove extra argument from snd_hdac_i915_init")
Cc: Takashi Iwai <tiwai@suse.de>
---
Using Takashi's version, as I like the separate -EPROBE_DEFER if more.
---
sound/pci/hda/hda_intel.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 058f6e6491f9..8e9a003daa8d 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2140,6 +2140,9 @@ static int azx_probe(struct pci_dev *pci,
if (chip->driver_caps & AZX_DCAPS_I915_COMPONENT) {
err = snd_hdac_i915_init(azx_bus(chip));
if (err < 0) {
+ if (err == -EPROBE_DEFER)
+ goto out_free;
+
/* if the controller is bound only with HDMI/DP
* (for HSW and BDW), we need to abort the probe;
* for other chips, still continue probing as other
--
2.40.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Intel-gfx] [PATCH] ALSA: hda: i915: Alays handle -EPROBE_DEFER
2023-11-15 12:36 [Intel-gfx] [PATCH] ALSA: hda: i915: Alays handle -EPROBE_DEFER Maarten Lankhorst
@ 2023-11-15 12:43 ` Takashi Iwai
2023-11-15 20:33 ` Ville Syrjälä
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2023-11-15 12:43 UTC (permalink / raw)
To: Maarten Lankhorst; +Cc: alsa-devel, intel-gfx, intel-xe
On Wed, 15 Nov 2023 13:36:25 +0100,
Maarten Lankhorst wrote:
>
> It turns out that even if the comment says that the driver can load
> fine, it's not really the case and no codecs are detected.
> Specifically for -EPROBE_DEFER, always fail the probe.
>
> This fixes a regression when HDA-intel is loaded before i915.
>
> Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Tested-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
> Fixes: e6d0c13e9f46 ("ALSA: hda: i915: Remove extra argument from snd_hdac_i915_init")
> Cc: Takashi Iwai <tiwai@suse.de>
>
> ---
> Using Takashi's version, as I like the separate -EPROBE_DEFER if more.
Applied now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Intel-gfx] [PATCH] ALSA: hda: i915: Alays handle -EPROBE_DEFER
2023-11-15 12:36 [Intel-gfx] [PATCH] ALSA: hda: i915: Alays handle -EPROBE_DEFER Maarten Lankhorst
2023-11-15 12:43 ` Takashi Iwai
@ 2023-11-15 20:33 ` Ville Syrjälä
2023-11-15 23:41 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2023-11-16 0:01 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Ville Syrjälä @ 2023-11-15 20:33 UTC (permalink / raw)
To: Maarten Lankhorst; +Cc: alsa-devel, Takashi Iwai, intel-gfx, intel-xe
On Wed, Nov 15, 2023 at 01:36:25PM +0100, Maarten Lankhorst wrote:
> It turns out that even if the comment says that the driver can load
> fine, it's not really the case and no codecs are detected.
> Specifically for -EPROBE_DEFER, always fail the probe.
>
> This fixes a regression when HDA-intel is loaded before i915.
>
> Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Tested-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
> Fixes: e6d0c13e9f46 ("ALSA: hda: i915: Remove extra argument from snd_hdac_i915_init")
> Cc: Takashi Iwai <tiwai@suse.de>
Appears to work here as well. Thanks.
>
> ---
> Using Takashi's version, as I like the separate -EPROBE_DEFER if more.
> ---
> sound/pci/hda/hda_intel.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
> index 058f6e6491f9..8e9a003daa8d 100644
> --- a/sound/pci/hda/hda_intel.c
> +++ b/sound/pci/hda/hda_intel.c
> @@ -2140,6 +2140,9 @@ static int azx_probe(struct pci_dev *pci,
> if (chip->driver_caps & AZX_DCAPS_I915_COMPONENT) {
> err = snd_hdac_i915_init(azx_bus(chip));
> if (err < 0) {
> + if (err == -EPROBE_DEFER)
> + goto out_free;
> +
> /* if the controller is bound only with HDMI/DP
> * (for HSW and BDW), we need to abort the probe;
> * for other chips, still continue probing as other
> --
> 2.40.1
--
Ville Syrjälä
Intel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for ALSA: hda: i915: Alays handle -EPROBE_DEFER
2023-11-15 12:36 [Intel-gfx] [PATCH] ALSA: hda: i915: Alays handle -EPROBE_DEFER Maarten Lankhorst
2023-11-15 12:43 ` Takashi Iwai
2023-11-15 20:33 ` Ville Syrjälä
@ 2023-11-15 23:41 ` Patchwork
2023-11-16 0:01 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2023-11-15 23:41 UTC (permalink / raw)
To: Maarten Lankhorst; +Cc: intel-gfx
== Series Details ==
Series: ALSA: hda: i915: Alays handle -EPROBE_DEFER
URL : https://patchwork.freedesktop.org/series/126462/
State : warning
== Summary ==
Error: dim checkpatch failed
769a176100d3 ALSA: hda: i915: Alays handle -EPROBE_DEFER
-:15: WARNING:BAD_REPORTED_BY_LINK: Reported-by: should be immediately followed by Closes: with a URL to the report
#15:
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
total: 0 errors, 1 warnings, 0 checks, 9 lines checked
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Intel-gfx] ✗ Fi.CI.BAT: failure for ALSA: hda: i915: Alays handle -EPROBE_DEFER
2023-11-15 12:36 [Intel-gfx] [PATCH] ALSA: hda: i915: Alays handle -EPROBE_DEFER Maarten Lankhorst
` (2 preceding siblings ...)
2023-11-15 23:41 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
@ 2023-11-16 0:01 ` Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2023-11-16 0:01 UTC (permalink / raw)
To: Maarten Lankhorst; +Cc: intel-gfx
[-- Attachment #1: Type: text/plain, Size: 5086 bytes --]
== Series Details ==
Series: ALSA: hda: i915: Alays handle -EPROBE_DEFER
URL : https://patchwork.freedesktop.org/series/126462/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_13881 -> Patchwork_126462v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_126462v1 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_126462v1, please notify your bug team (lgci.bug.filing@intel.com) to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126462v1/index.html
Participating hosts (40 -> 36)
------------------------------
Missing (4): bat-mtlp-8 fi-bsw-n3050 fi-snb-2520m fi-pnv-d510
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_126462v1:
### IGT changes ###
#### Possible regressions ####
* igt@kms_pipe_crc_basic@hang-read-crc@pipe-c-dp-5:
- bat-adlp-11: [PASS][1] -> [FAIL][2] +1 other test fail
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13881/bat-adlp-11/igt@kms_pipe_crc_basic@hang-read-crc@pipe-c-dp-5.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126462v1/bat-adlp-11/igt@kms_pipe_crc_basic@hang-read-crc@pipe-c-dp-5.html
* igt@vgem_basic@unload:
- fi-hsw-4770: [PASS][3] -> [INCOMPLETE][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13881/fi-hsw-4770/igt@vgem_basic@unload.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126462v1/fi-hsw-4770/igt@vgem_basic@unload.html
Known issues
------------
Here are the changes found in Patchwork_126462v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s0@smem:
- bat-jsl-3: [PASS][5] -> [INCOMPLETE][6] ([i915#9275])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13881/bat-jsl-3/igt@gem_exec_suspend@basic-s0@smem.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126462v1/bat-jsl-3/igt@gem_exec_suspend@basic-s0@smem.html
* igt@i915_suspend@basic-s3-without-i915:
- bat-jsl-3: [PASS][7] -> [FAIL][8] ([fdo#103375])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13881/bat-jsl-3/igt@i915_suspend@basic-s3-without-i915.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126462v1/bat-jsl-3/igt@i915_suspend@basic-s3-without-i915.html
* igt@kms_pipe_crc_basic@hang-read-crc@pipe-b-dp-5:
- bat-adlp-11: [PASS][9] -> [DMESG-FAIL][10] ([i915#6868])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13881/bat-adlp-11/igt@kms_pipe_crc_basic@hang-read-crc@pipe-b-dp-5.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126462v1/bat-adlp-11/igt@kms_pipe_crc_basic@hang-read-crc@pipe-b-dp-5.html
* igt@kms_pipe_crc_basic@read-crc-frame-sequence:
- bat-dg2-11: NOTRUN -> [SKIP][11] ([i915#1845] / [i915#9197])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126462v1/bat-dg2-11/igt@kms_pipe_crc_basic@read-crc-frame-sequence.html
* igt@kms_pipe_crc_basic@read-crc@pipe-d-dp-6:
- bat-adlp-11: NOTRUN -> [ABORT][12] ([i915#8668])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126462v1/bat-adlp-11/igt@kms_pipe_crc_basic@read-crc@pipe-d-dp-6.html
#### Possible fixes ####
* igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1:
- bat-rplp-1: [ABORT][13] ([i915#8668]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13881/bat-rplp-1/igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126462v1/bat-rplp-1/igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#6868]: https://gitlab.freedesktop.org/drm/intel/issues/6868
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#9197]: https://gitlab.freedesktop.org/drm/intel/issues/9197
[i915#9275]: https://gitlab.freedesktop.org/drm/intel/issues/9275
Build changes
-------------
* Linux: CI_DRM_13881 -> Patchwork_126462v1
CI-20190529: 20190529
CI_DRM_13881: 36732395a74634a9ff9db10c79c4c52719cdab40 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7590: c484e1422184a3183d11f1595e53a6715574520f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_126462v1: 36732395a74634a9ff9db10c79c4c52719cdab40 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
bc2bb55efd93 ALSA: hda: i915: Alays handle -EPROBE_DEFER
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126462v1/index.html
[-- Attachment #2: Type: text/html, Size: 5976 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-11-16 0:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-15 12:36 [Intel-gfx] [PATCH] ALSA: hda: i915: Alays handle -EPROBE_DEFER Maarten Lankhorst
2023-11-15 12:43 ` Takashi Iwai
2023-11-15 20:33 ` Ville Syrjälä
2023-11-15 23:41 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2023-11-16 0:01 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox