Received: by 10.213.65.68 with SMTP id h4csp1864187imn; Mon, 19 Mar 2018 15:38:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELsiiJjPV8JS4lEETY5wPGOfd0EuOYw3Iu261U4v1dG/3Dw9uq3ua9X3Ugn7r38UiN18iJBS X-Received: by 10.98.30.66 with SMTP id e63mr11590944pfe.67.1521499084023; Mon, 19 Mar 2018 15:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521499083; cv=none; d=google.com; s=arc-20160816; b=zyj4M81afFyYl6QYlpINkurUy9OBkQkpjuQLLaczIP5HeIjNzIzvBenOCVCQfqwqJk cQ6Yf0X0qNQZUY5hbGyZVB893mFqANYaM4W9SuLbxAnd6qR6A/FH7+BCXxSnv/+2o0M6 dpn5chxyMUHZHgGjchlcCBJGpYLAKgTGY3TypXaxpltaPU5hFD4nC8PdDe9J0GKAZLNY uHfQZeI52riY13U7gDfE1fOnquvCtEIWFcbgtqzpiNJEJ0802CFYtlJa9jRlTkSXyqbO ukotOs2rSlvZF0dC50Efsg4wn+v6LO2DmlV7XforvJDHikqNwLQuMZVtIugf6s1J1ifl VKyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=6ezqMm3CEFjDaEBQMCFGO8ASNGlEeiM2Pnhe6X6ok08=; b=mAMzsWsxngjdliyEIQH1872l257P7jAQoJlA5MuTbQWu1+/iwzhPX3PHO0DC3vtRVG AeJcluv+Vy8nsFyialX11+CIvpgHZ+caqEe9+BilgUbnXw0HYNOq5DnK6IcWasd72xca 2JuO484WHzond9vVLaGm+4sdO5FoYXZueNCO7qtuZEI+5gnuLAYOl+1Ub0FnjBhX/Nb7 kSt+1TII1U1oAQD4xfaKMhoFu5SdjbD1jalwEblrPFccfYvDMJymk+g796QuI2DJG/xa /41deXrzU0YMhvDuo6fh+KB3NyPSq76ebMeHptr+gaEiMND4rxtja5zcIqhEWF0Ormn9 E5tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=eJJE/qsB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s20-v6si207159plp.340.2018.03.19.15.37.48; Mon, 19 Mar 2018 15:38:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=eJJE/qsB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936638AbeCSWcC (ORCPT + 99 others); Mon, 19 Mar 2018 18:32:02 -0400 Received: from mail-by2nam01on0106.outbound.protection.outlook.com ([104.47.34.106]:41792 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933745AbeCSPsV (ORCPT ); Mon, 19 Mar 2018 11:48:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6ezqMm3CEFjDaEBQMCFGO8ASNGlEeiM2Pnhe6X6ok08=; b=eJJE/qsBBA2PElBfwubIXZY4/4qooSmHtDjBSVocqEi9xJnSStzascqbIV6My886nIzuiSSg8oKysL5AG8NDttpU38PCTRbsHLnYJd3bMlOINGtCGqE5lPyVz9JHpOYe1UQ4qMyiVcOGIexKhYou6eTXGM4wTZVmj6YuAu0zyH8= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1030.namprd21.prod.outlook.com (52.132.128.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.1; Mon, 19 Mar 2018 15:48:04 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:48:04 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Pardha Saradhi K , Sanyog Kale , Guneshwor Singh , Mark Brown , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 036/124] ASoC: Intel: Skylake: Disable clock gating during firmware and library download Thread-Topic: [PATCH AUTOSEL for 4.15 036/124] ASoC: Intel: Skylake: Disable clock gating during firmware and library download Thread-Index: AQHTv5mau8zdsZy+vUGYb9Twz898fg== Date: Mon, 19 Mar 2018 15:47:36 +0000 Message-ID: <20180319154645.11350-36-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1030;7:tmRDbzO3Z9WSWsBOk9OSKnC46p9GijBsfmm6uifEexY6IfphM8C6vDVSQdAGt+2ooiBtttstIHURNapwNP6qauyz2gVD8z8UdYh6L3SO014vB2L3Xn4EpMVKT+Rt5gJYmsVeNQ9iP9WRkO4atsPF99GgriqMzG9M4qxjdXa+JwGExJLDtsWenE1bg5HPPr7cr5whPnXn3D+K1vmRxXdpiGuYM7Ah06PFVngGxf6Xz0yhfoj91iB09nG+dlG4eSlq;20:e2SVBS1d2cbSw5hzOdyMkr1JgFQYgVk6vY7nJRWxKVRB2o0YgFDBeOV5TwBpX3f5oMy/UcX6IklTUUjVh/VLZ+hjr/9yWUHuFB9uMdaoxkumxqwOvv78RVPSpGpdbX/jyUXs22vcCpCh6+L9o3tpLU33VkPO2XV4uILd9o4H/f8= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 04a001f8-60fb-4f32-a1c9-08d58db0cda0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1030; x-ms-traffictypediagnostic: DM5PR2101MB1030: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231221)(944501300)(52105095)(3002001)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:DM5PR2101MB1030;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1030; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(396003)(39380400002)(366004)(346002)(376002)(199004)(189003)(2501003)(6486002)(5250100002)(478600001)(86612001)(102836004)(1076002)(97736004)(575784001)(99286004)(72206003)(6436002)(2906002)(107886003)(66066001)(10090500001)(81166006)(6116002)(81156014)(305945005)(8676002)(86362001)(7736002)(68736007)(54906003)(110136005)(26005)(3846002)(105586002)(3280700002)(316002)(53936002)(8936002)(186003)(76176011)(2900100001)(59450400001)(6506007)(36756003)(10290500003)(2950100002)(22452003)(25786009)(5660300001)(106356001)(3660700001)(4326008)(14454004)(6512007)(6666003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1030;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: UIqHrJyzuqh+YAZ7gwASL9s8g6WfSYdasbBRnnvl+q4YGbQwhinutlziBoq+xacZvyyErK1357AOO3BEo3QUhKGs2UGxx2ukncvuSFryXKr5bgsz6QJpfhWlMUEuFSjr4YMceXsMq67ykEopVoBQza/V/YhExD9zGNrPDGDWpuh3aWdple0h+uVBZjELQDDwrIVzoHzG0t6yB9p1MyXykOmbU0ApSqW30D2Hh4OefDwLVaM5E8fxlfX/Av5FEjSpeXtT2eZv6T3WPQf81zB1ooiHz36UmWpPRmcIC4QzS4dRE+dKEfprdQ556SHEgmxG/w0/Y5bV4fm+NRbLsi+neg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04a001f8-60fb-4f32-a1c9-08d58db0cda0 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:47:36.3872 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1030 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pardha Saradhi K [ Upstream commit d5cc0a1fcbb5ddbef9fdd4c4a978da3254ddbf37 ] During firmware and library download, sometimes it is observed that firmware and library download is timed-out resulting into probe failure. This patch disables dynamic clock gating while firmware and library download. Signed-off-by: Pardha Saradhi K Signed-off-by: Sanyog Kale Signed-off-by: Guneshwor Singh Acked-By: Vinod Koul Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/skylake/skl-messages.c | 4 ++++ sound/soc/intel/skylake/skl-pcm.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skyla= ke/skl-messages.c index 61b5bfa79d13..97572fb38387 100644 --- a/sound/soc/intel/skylake/skl-messages.c +++ b/sound/soc/intel/skylake/skl-messages.c @@ -404,7 +404,11 @@ int skl_resume_dsp(struct skl *skl) if (skl->skl_sst->is_first_boot =3D=3D true) return 0; =20 + /* disable dynamic clock gating during fw and lib download */ + ctx->enable_miscbdcge(ctx->dev, false); + ret =3D skl_dsp_wake(ctx->dsp); + ctx->enable_miscbdcge(ctx->dev, true); if (ret < 0) return ret; =20 diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/sk= l-pcm.c index 1dd97479e0c0..32b30f99d2c8 100644 --- a/sound/soc/intel/skylake/skl-pcm.c +++ b/sound/soc/intel/skylake/skl-pcm.c @@ -1343,7 +1343,11 @@ static int skl_platform_soc_probe(struct snd_soc_pla= tform *platform) return -EIO; } =20 + /* disable dynamic clock gating during fw and lib download */ + skl->skl_sst->enable_miscbdcge(platform->dev, false); + ret =3D ops->init_fw(platform->dev, skl->skl_sst); + skl->skl_sst->enable_miscbdcge(platform->dev, true); if (ret < 0) { dev_err(platform->dev, "Failed to boot first fw: %d\n", ret); return ret; --=20 2.14.1