History

ASoC: SOF: Intel: hda-loader: Clarify the cl_dsp_init() flow

Update the comment for the cl_dsp_init() to clarify what is done by the function and use the chip->init_core_mask instead of BIT(0) when unstalling/running the init core.

Peter Ujfalusi committed 4 years ago

Commit bbfef041 parent c31691e1 file · +4 −4Browse files

Unified · Split

sound/soc/sof/intel/hda-loader.c+4−4
@@ -95,9 +95,9 @@ out_put: · 94 unmodified lines
9595 }
9696
9797 /*
98− * first boot sequence has some extra steps. core 0 waits for power
99− * status on core 1, so power up core 1 also momentarily, keep it in
100− * reset/stall and then turn it off
98+ * first boot sequence has some extra steps.
99+ * power on all host managed cores and only unstall/run the boot core to boot the
100+ * DSP then turn off all non boot cores (if any) is powered on.
101101 */
102102 static int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot)
103103 {
@@ -127,7 +127,7 @@ static int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot) · 23 unmodified lines
127127 snd_sof_dsp_write(sdev, HDA_DSP_BAR, chip->ipc_req, ipc_hdr);
128128
129129 /* step 3: unset core 0 reset state & unstall/run core 0 */
130− ret = hda_dsp_core_run(sdev, BIT(0));
130+ ret = hda_dsp_core_run(sdev, chip->init_core_mask);
131131 if (ret < 0) {
132132 if (hda->boot_iteration == HDA_FW_BOOT_ATTEMPTS)
133133 dev_err(sdev->dev,