Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4372931imw; Tue, 19 Jul 2022 05:33:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u9UVLRdROIWJHhpTpTKqXf1j6YfL1mOKn2f7l8p3IHsf+ItXS5dM44kvtE+TKHgKrl6H8R X-Received: by 2002:a05:6870:c08c:b0:10c:94ff:adb1 with SMTP id c12-20020a056870c08c00b0010c94ffadb1mr17511116oad.157.1658234017957; Tue, 19 Jul 2022 05:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658234017; cv=none; d=google.com; s=arc-20160816; b=ltXkldrecR3gIMAdLWCV7MGhtgS38mf4oczQ/PccHKeBM2iHYWPtEfBy+IyB/ucHKT qrngz+rPHJbFRlsfBkDwn0Ni2DmllL/nNDO/d1NNOgLYprgHbPEGgG42EwP3dp6aoeua /6/rCkGBNA5aE7+O5hCLjzwAdXdehzO+RgkBPI7s+ePZ2nAZXhJldND+9dLCVEbcKqKD nThnKozBSBkvfBdMg0cFioS3UJbvFJWPrkV4sSnKmva6QKdDpBecHoVxp+PYwIVin7/X +7lshmBpkEC0Ol9KJ0OTszzPfop/IFPRRP3oHCTXwc/Q2YwNyUW7xFAtxB3zF7zzlAK/ MykQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FyCMS8MnPJFViklIA/aGzAHV4dlPHZjyAwopybWmSHo=; b=P+wxgOeoC6eTZuCQVjOKqSf6pVE3O3i+KDAVjI+AUh5Dg4y5HJSAywXP1JAzx2fnil Gqe7SizL/zmUzlNx/67W0pdfdpQ1EIchjRCB4hP+J041+xHjrDqxkzdxt2GCjOS0l8Ev al6cHWf1jw5BrxAvPJ4ZHeDTuof18m88ZsN+aIP6Fewq9eMJqunQpVTtWNTePPndIv7y Rre9Cy4TFReSFksLc4ZnyNbt4b1zY1cWevH8EUDAnzOeipji2dMNn5cnqQ8TFvI79X4x pYIRtDXPjOpW1D2lh8a1uX+w9QBlkM/SsqOi2eW4tmmf0/G2p836MLjW7LOIVm4RyBa2 bmUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rNCnSwnj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a056808209500b00337d1d29d36si16392918oiw.144.2022.07.19.05.33.25; Tue, 19 Jul 2022 05:33:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rNCnSwnj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239816AbiGSMZ6 (ORCPT + 99 others); Tue, 19 Jul 2022 08:25:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240064AbiGSMYb (ORCPT ); Tue, 19 Jul 2022 08:24:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBD3361D70; Tue, 19 Jul 2022 05:09:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1A83A61760; Tue, 19 Jul 2022 12:08:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 012CDC341CA; Tue, 19 Jul 2022 12:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232536; bh=usq1USsPcREg76HCj1sGznaYjx2GHtOqnMyOyEcvLbo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rNCnSwnj2KLAEsHUGlgf7G2kXORf7cH8ff1sSwUdKpvfS8dNO0bZ9GesdCGU9mK1i 0qDNrzTCLHcoGNkfkABqdFQbZ0nBIu/uUgoS+JGg//w8r0lfJ9Z0F/8mxOrZsYX+EI eCNYdekxO4azincLkJfFRp6IITWNcmq9eey6EJj4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Ujfalusi , Pierre-Louis Bossart , Bard Liao , Ranjani Sridharan , Mark Brown , Sasha Levin Subject: [PATCH 5.10 090/112] ASoC: SOF: Intel: hda-loader: Clarify the cl_dsp_init() flow Date: Tue, 19 Jul 2022 13:54:23 +0200 Message-Id: <20220719114635.424142243@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114626.156073229@linuxfoundation.org> References: <20220719114626.156073229@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Ujfalusi [ Upstream commit bbfef046c6613404c01aeb9e9928bebb78dd327a ] 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. Complements: 2a68ff846164 ("ASoC: SOF: Intel: hda: Revisit IMR boot sequence") Signed-off-by: Peter Ujfalusi Reviewed-by: Pierre-Louis Bossart Reviewed-by: Bard Liao Reviewed-by: Ranjani Sridharan Link: https://lore.kernel.org/r/20220609085949.29062-4-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sof/intel/hda-loader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/sof/intel/hda-loader.c b/sound/soc/sof/intel/hda-loader.c index 347636a80b48..4012097a9d60 100644 --- a/sound/soc/sof/intel/hda-loader.c +++ b/sound/soc/sof/intel/hda-loader.c @@ -79,9 +79,9 @@ static struct hdac_ext_stream *cl_stream_prepare(struct snd_sof_dev *sdev, unsig } /* - * first boot sequence has some extra steps. core 0 waits for power - * status on core 1, so power up core 1 also momentarily, keep it in - * reset/stall and then turn it off + * first boot sequence has some extra steps. + * power on all host managed cores and only unstall/run the boot core to boot the + * DSP then turn off all non boot cores (if any) is powered on. */ static int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag) { @@ -115,7 +115,7 @@ static int cl_dsp_init(struct snd_sof_dev *sdev, int stream_tag) ((stream_tag - 1) << 9))); /* step 3: unset core 0 reset state & unstall/run core 0 */ - ret = hda_dsp_core_run(sdev, BIT(0)); + ret = hda_dsp_core_run(sdev, chip->init_core_mask); if (ret < 0) { if (hda->boot_iteration == HDA_FW_BOOT_ATTEMPTS) dev_err(sdev->dev, -- 2.35.1