Skip to content

sound: Use -EPROBE_DEFER instead of i915 module loading.

Maarten Lankhorst alsa-devel lkml 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest13 patches 4 repliesIn review
  2. v612 patches 7 repliesSuperseded
  3. v512 patches 6 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v411 patches14 repliesSuperseded
v39 patches14 repliesSuperseded
v29 patches24 repliesSuperseded
v17 patches13 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13ASoC: SOF: core: Ensure sof_ops_free() is still called when probe never ran.sound/soc/sof/core.c+5 -13 replies
2/13ASoC: SOF: core: Add probe_early and remove_late callbackssound/soc/sof/core.c sound/soc/sof/ops.h sound/soc/sof/sof-priv.h+29 -00 replies
3/13ASoC: SOF: Intel: hda: start splitting the probesound/soc/sof/intel/hda-common-ops.c sound/soc/sof/intel/hda.c sound/soc/sof/intel/hda.h+15 -30 replies
4/13ASoC: SOF: Intel: Fix error handling in hda_init()sound/soc/sof/intel/hda.c+11 -30 replies
5/13ALSA: hda: Intel: Fix error handling in azx_probe()sound/pci/hda/hda_intel.c+1 -00 replies
6/13ALSA: hda: i915: Allow override of gpu binding.sound/hda/hdac_i915.c+9 -00 replies
7/13ALSA: hda: i915: Add an allow_modprobe argument to snd_hdac_i915_initinclude/sound/hda_i915.h sound/hda/hdac_i915.c sound/pci/hda/hda_intel.c +3 more+10 -100 replies
8/13ALSA: hda: i915: Allow xe as match for i915_component_master_matchsound/hda/hdac_i915.c+2 -10 replies
9/13ASoC: Intel: avs: Move snd_hdac_i915_init to before probe_work.sound/soc/intel/avs/core.c+9 -40 replies
10/13ALSA: hda: Intel: Move snd_hdac_i915_init to before probe_work.sound/pci/hda/hda_intel.c+30 -290 replies
11/13ASoC: Intel: Skylake: Move snd_hdac_i915_init to before probe_work.sound/soc/intel/skylake/skl.c+9 -220 replies
12/13ASoC: SOF: Intel: Move binding to display driver outside of deferred probesound/soc/sof/intel/hda-common-ops.c sound/soc/sof/intel/hda.c sound/soc/sof/intel/hda.h+8 -120 replies
13/13ALSA: hda: i915: Remove extra argument from snd_hdac_i915_initinclude/sound/hda_i915.h sound/hda/hdac_i915.c sound/pci/hda/hda_intel.c +3 more+9 -170 replies

Reviews trailers per patch

12 of 13 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMark BrownKai VehmanenPierre-Louis BossartPeter UjfalusiAmadeusz Sławiński
SeriesR-b A-b
1/13A-b
2/13A-b
3/13A-b
4/13R-b
5/13R-b R-b R-b
6/13R-b R-b R-b
7/13R-b R-b
8/13R-b R-b R-b
9/13A-b R-b R-b
10/13R-b R-b
11/13A-b R-b R-b
12/13
13/13R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v7 thread

Cover letter [PATCH v7 00/13] sound: Use -EPROBE_DEFER instead of i915 module loading.

Explicitly loading i915 becomes a problem when upstreaming the new intel driver for Tiger Lake and higher graphics (xe). By loading i915, it doesn't wait for driver load of xe, and will fail completely before it loads.

-EPROBE_DEFER has to be returned before any device is created in probe(), otherwise the removal of the device will cause EPROBE_DEFER to try again in an infinite loop.

The conversion is done in gradual steps. First I add an argument to snd_hdac_i915_init to allow for -EPROBE_DEFER so I can convert each driver separately. Then I convert each driver to move snd_hdac_i915_init out of the workqueue. Finally I drop the ability to choose modprobe behavior after the last user is converted.

Compared to previous version, I added the patch "ASoC: SOF: Intel: Fix error handling in hda_init()"

Cc Jaroslav Kysela <[email protected]>
Cc Takashi Iwai <[email protected]>
Cc Cezary Rojewski <[email protected]>
Cc Pierre-Louis Bossart <[email protected]>
Cc Liam Girdwood <[email protected]>
Cc Peter Ujfalusi <[email protected]>
Cc Bard Liao <[email protected]>
Cc Ranjani Sridharan <[email protected]>
Cc Kai Vehmanen <[email protected]>
Cc Mark Brown <[email protected]>
Cc Daniel Baluta <[email protected]>

Maarten Lankhorst (11):
ASoC: SOF: core: Ensure sof_ops_free() is still called when probe
never ran.
ASoC: SOF: Intel: Fix error handling in hda_init()
ALSA: hda: Intel: Fix error handling in azx_probe()
ALSA: hda: i915: Allow override of gpu binding.
ALSA: hda: i915: Add an allow_modprobe argument to snd_hdac_i915_init
ALSA: hda: i915: Allow xe as match for i915_component_master_match
ASoC: Intel: avs: Move snd_hdac_i915_init to before probe_work.
ALSA: hda: Intel: Move snd_hdac_i915_init to before probe_work.
ASoC: Intel: Skylake: Move snd_hdac_i915_init to before probe_work.
ASoC: SOF: Intel: Move binding to display driver outside of deferred
probe
ALSA: hda: i915: Remove extra argument from snd_hdac_i915_init

Pierre-Louis Bossart (2):
ASoC: SOF: core: Add probe_early and remove_late callbacks
ASoC: SOF: Intel: hda: start splitting the probe

 sound/hda/hdac_i915.c                | 24 ++++++-----
 sound/pci/hda/hda_intel.c            | 60 ++++++++++++++--------------
 sound/soc/intel/avs/core.c           | 13 ++++--
 sound/soc/intel/skylake/skl.c        | 31 +++++---------
 sound/soc/sof/core.c                 | 17 +++++++-
 sound/soc/sof/intel/hda-common-ops.c |  2 +
 sound/soc/sof/intel/hda.c            | 46 +++++++++++++--------
 sound/soc/sof/intel/hda.h            |  2 +
 sound/soc/sof/ops.h                  | 16 ++++++++
 sound/soc/sof/sof-priv.h             |  2 +
 10 files changed, 129 insertions(+), 84 deletions(-)
Signature · 1 line
2.39.2