Skip to contentSkip to conversation

Revert "HAX sound: Disable probing snd_hda with DG1"

PATCH In review Kai Vehmanen 3 participants 6 messages Feb 12, 2021 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "HAX sound: Disable probing snd_hda with DG1"

This reverts commit 3632610d38316bca9b0cd9d649ce3cefab58520a.

DG1 has been supported in upstream since v5.10 with commit 69b08bdfa818 ("ALSA: hda - add Intel DG1 PCI and HDMI ids").

---
 sound/hda/hdac_i915.c     | 23 -----------------------
 sound/pci/hda/hda_intel.c |  2 ++
 2 files changed, 2 insertions(+), 23 deletions(-)
sound/hda/hdac_i915.c +0 -23
index fbca4bf53a47..454474ac5716 100644
@@ -128,26 +128,6 @@ static bool i915_gfx_present(void)
 	return pci_dev_present(ids);
 }
 
-static bool dg1_gfx_present(void)
-{
-	static const struct pci_device_id ids[] = {
-		{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4905),
-		  .class = PCI_BASE_CLASS_DISPLAY << 16,
-		  .class_mask = 0xff << 16 },
-		{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4906),
-		  .class = PCI_BASE_CLASS_DISPLAY << 16,
-		  .class_mask = 0xff << 16 },
-		{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4907),
-		  .class = PCI_BASE_CLASS_DISPLAY << 16,
-		  .class_mask = 0xff << 16 },
-		{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4908),
-		  .class = PCI_BASE_CLASS_DISPLAY << 16,
-		  .class_mask = 0xff << 16 },
-		{}
-	};
-	return pci_dev_present(ids);
-}
-
 /**
  * snd_hdac_i915_init - Initialize i915 audio component
  * @bus: HDA core bus
@@ -168,9 +148,6 @@ int snd_hdac_i915_init(struct hdac_bus *bus)
 	if (!i915_gfx_present())
 		return -ENODEV;
 
-	if (dg1_gfx_present())
-		return -ENODEV;
-
 	err = snd_hdac_acomp_init(bus, NULL,
 				  i915_component_master_match,
 				  sizeof(struct i915_audio_component) - sizeof(*acomp));
sound/pci/hda/hda_intel.c +2 -0
index bdd5b01b0222..5a50d3a46445 100644
@@ -2293,6 +2293,8 @@ static int azx_probe_continue(struct azx *chip)
 			 * codecs can be on the same link.
 			 */
 			if (CONTROLLER_IN_GPU(pci)) {
+				dev_err(chip->card->dev,
+					"HSW/BDW HD-audio HDMI/DP requires binding with gfx driver\n");
 				goto out_free;
 			} else {
 				/* don't bother any longer */

base-commit: be9bde5a8b7b5cff58bd01c8ca094d571295c40b

Signature · 6 lines
2.29.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

Quoting Kai Vehmanen (2021-02-12 14:53:02)

Quoted 4 lines

This reverts commit 3632610d38316bca9b0cd9d649ce3cefab58520a.

DG1 has been supported in upstream since v5.10 with commit 69b08bdfa818 ("ALSA: hda - add Intel DG1 PCI and HDMI ids").

Exactly, otherwise this patch wouldn't have been required to stop CI from timing out upon snd probing the hdmi components. You need the other half to be supported as well before CI is ready.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

Quoting Chris Wilson (2021-02-12 15:22:13)

Quoted 9 lines

Quoting Kai Vehmanen (2021-02-12 14:53:02)

Quoted 4 lines

This reverts commit 3632610d38316bca9b0cd9d649ce3cefab58520a.

DG1 has been supported in upstream since v5.10 with commit 69b08bdfa818 ("ALSA: hda - add Intel DG1 PCI and HDMI ids").

Exactly, otherwise this patch wouldn't have been required to stop CI from timing out upon snd probing the hdmi components. You need the other half to be supported as well before CI is ready.

Just in case it isn't clear, this patch is only in the CI topic branch to hide known issues with CI that we simply aren't ready for. -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
In reply to Chris Wilson

Hi,

Quoted 9 lines · Chris Wilson

Quoting Kai Vehmanen (2021-02-12 14:53:02)

Quoted 4 lines

This reverts commit 3632610d38316bca9b0cd9d649ce3cefab58520a.

DG1 has been supported in upstream since v5.10 with commit 69b08bdfa818 ("ALSA: hda - add Intel DG1 PCI and HDMI ids").

Exactly, otherwise this patch wouldn't have been required to stop CI from timing out upon snd probing the hdmi components. You need the other half to be supported as well before CI is ready.

aa, got it, so this is there as i915 doesn't have DG1 in i915_pci.c id list. Right.

PS And indeed, the 60sec timeout in these cases is pretty annoying.

Br, Kai

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Revert "HAX sound: Disable probing snd_hda with DG1"

In reply to Kai Vehmanen
== Series Details ==

== Series Details ==

Series: Revert "HAX sound: Disable probing snd_hda with DG1"
URL : https://patchwork.freedesktop.org/series/87039/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
ef24b6852d1c Revert "HAX sound: Disable probing snd_hda with DG1"
-:9: ERROR:GIT_COMMIT_ID: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 69b08bdfa818 ("ALSA: hda - add Intel DG1 PCI and HDMI ids")'
#9: 
69b08bdfa818 ("ALSA: hda - add Intel DG1 PCI and HDMI ids").

total: 1 errors, 0 warnings, 0 checks, 43 lines checked

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#5 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for Revert "HAX sound: Disable probing snd_hda with DG1"

In reply to Kai Vehmanen
== Series Details ==

== Series Details ==

Series: Revert "HAX sound: Disable probing snd_hda with DG1"
URL : https://patchwork.freedesktop.org/series/87039/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_9771 -> Patchwork_19670
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_19670 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_19670, please notify your bug team 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_19670/index.html

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_19670:

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@live@gt_lrc:
- fi-bsw-n3050: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9771/fi-bsw-n3050/igt@i915_selftest@live@gt_lrc.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-bsw-n3050/igt@i915_selftest@live@gt_lrc.html

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@i915_pm_rpm@basic-pci-d3-state:
- {fi-dg1-1}: NOTRUN -> [SKIP][3] +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-dg1-1/igt@[email protected]

Known issues
------------

Here are the changes found in Patchwork_19670 that come from known issues:

### CI changes ###

#### Possible fixes ####

* boot:
- {fi-dg1-1}: [FAIL][4] ([i915#2788]) -> [PASS][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9771/fi-dg1-1/boot.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-dg1-1/boot.html

### IGT changes ###

#### Issues hit ####

* igt@amdgpu/amd_basic@userptr:
- fi-byt-j1900: NOTRUN -> [SKIP][6] ([fdo#109271]) +17 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-byt-j1900/igt@amdgpu/[email protected]

* igt@core_auth@basic-auth:
- fi-kbl-soraka: [PASS][7] -> [DMESG-WARN][8] ([i915#1982])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9771/fi-kbl-soraka/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-kbl-soraka/igt@[email protected]

* igt@debugfs_test@read_all_entries:
- fi-tgl-y: [PASS][9] -> [DMESG-WARN][10] ([i915#402]) +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9771/fi-tgl-y/igt@debugfs_test@read_all_entries.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-tgl-y/igt@debugfs_test@read_all_entries.html

* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [PASS][11] -> [FAIL][12] ([i915#1372])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9771/fi-kbl-7500u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-kbl-7500u/igt@[email protected]

* igt@runner@aborted:
- fi-bdw-5557u: NOTRUN -> [FAIL][13] ([i915#1602] / [i915#2029] / [i915#2369])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-bdw-5557u/igt@[email protected]
- fi-bsw-n3050: NOTRUN -> [FAIL][14] ([i915#1436])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-bsw-n3050/igt@[email protected]

#### Possible fixes ####

* igt@i915_pm_rpm@module-reload:
- fi-byt-j1900: [INCOMPLETE][15] ([i915#142] / [i915#2405]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9771/fi-byt-j1900/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-byt-j1900/igt@[email protected]

* igt@prime_self_import@basic-with_one_bo_two_files:
- fi-tgl-y: [DMESG-WARN][17] ([i915#402]) -> [PASS][18] +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9771/fi-tgl-y/igt@prime_self_import@basic-with_one_bo_two_files.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/fi-tgl-y/igt@prime_self_import@basic-with_one_bo_two_files.html

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1372]: https://gitlab.freedesktop.org/drm/intel/issues/1372
[i915#142]: https://gitlab.freedesktop.org/drm/intel/issues/142
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1602]: https://gitlab.freedesktop.org/drm/intel/issues/1602
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2029]: https://gitlab.freedesktop.org/drm/intel/issues/2029
[i915#2292]: https://gitlab.freedesktop.org/drm/intel/issues/2292
[i915#2369]: https://gitlab.freedesktop.org/drm/intel/issues/2369
[i915#2405]: https://gitlab.freedesktop.org/drm/intel/issues/2405
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2687]: https://gitlab.freedesktop.org/drm/intel/issues/2687
[i915#2788]: https://gitlab.freedesktop.org/drm/intel/issues/2788
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[k.org#204565]: https://bugzilla.kernel.org/show_bug.cgi?id=204565

Participating hosts (45 -> 40)
------------------------------

Missing (5): fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-ctg-p8600 fi-bdw-samus

Build changes
-------------

* Linux: CI_DRM_9771 -> Patchwork_19670

CI-20190529: 20190529
CI_DRM_9771: 1b095889c6780e40f6161bfb824b5e944fd69547 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6003: 627cc5353535d61fa33c5f7ff7e64f154c84f10a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_19670: ef24b6852d1c4e14a9388c46745c3801739c71b6 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

ef24b6852d1c Revert "HAX sound: Disable probing snd_hda with DG1"

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19670/index.html

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx