Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3710519imd; Mon, 29 Oct 2018 11:06:54 -0700 (PDT) X-Google-Smtp-Source: AJdET5duXwjhjtIczm1VibamKyLrCRQ93Ks2Lu51wbPiZdOtwgZekhp+2CRQ14tpIOPu1o5/2+Kh X-Received: by 2002:a17:902:650f:: with SMTP id b15-v6mr15260247plk.2.1540836414611; Mon, 29 Oct 2018 11:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540836414; cv=none; d=google.com; s=arc-20160816; b=Ha8eiu3hDTRUaU38D4sTemORpybfUbJhuIic15rAEfjd8Qui3RmM10aGWb6WXE/ZPx hejC4R13ulZMQnubvqVem4aj6cDfPNxQakedRFOZHKFbgQ/vYGQFIFbB15NDUXbYqZqp 14zrn796i8Wpa9navBQjJj3RbJDbPSxld23TkHC9It4m1Zvt9viLtwQcqlsbgQP89szd ekOcJrWxYKa2IPEF8IaABEB6rLzQmha2C2MzPauss82r7knmKlBbKhE+NndwAV4KqJii Va554WH3xPtEJY0dMIaxwF6tq9F4UKuQCTJ1ccTyCC+ksD6EBXu7ckKuvD1kHk6NbRXk BkOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3iDI9uNcgbd4WeSkgPK2jFWjSLsx2JhiA7S0p38mNzw=; b=g1bFZFRITNFpcQT1j/URTxkUBR+QqpChvBDJP2Ci65JXdaPcOYP5CsA6J7oyJ6fLRm Q8yh6P8U55fE8NrWM0x1TMY1LjtIpk8k8hzV2DNAis1cbslJOcGdM1d2Ckw5CD7Dp4ak vXZcG11ER2c96FcCnGQKfh+4CcmvcQfDcQvvO4p68LpxDPKLuouHzJgpH9iJNaFXgF9u AhYH4dOwYSCEAz2L0TgW8+dF+VQkgqd1X5Hl7QJsKqDXbVu8O+dJR81Yw2pno/yQK0ap Do5lu4Xix53gFhLtPamcqgD/R9zP90wwnkZVmyk2skHHtN+GPxmqjFy4+bEK5V2as8S7 Gsxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c52Ze7da; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k33-v6si20588677pld.151.2018.10.29.11.06.38; Mon, 29 Oct 2018 11:06:54 -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=@gmail.com header.s=20161025 header.b=c52Ze7da; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728281AbeJ3Cyc (ORCPT + 99 others); Mon, 29 Oct 2018 22:54:32 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33889 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726532AbeJ3Cyc (ORCPT ); Mon, 29 Oct 2018 22:54:32 -0400 Received: by mail-qt1-f194.google.com with SMTP id z2-v6so10372855qts.1; Mon, 29 Oct 2018 11:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3iDI9uNcgbd4WeSkgPK2jFWjSLsx2JhiA7S0p38mNzw=; b=c52Ze7daZNSqDKJB3rUMiggb7JxImdR+XlDvq5IAA1DKf80aTS9crO9F9GKpt6oLqP jiZP19FMVUwcfl+dJxuAwMqNH7tuYP2EAKjP+gIOEr9px8g7ohWnSAPaCW1aVw28C3+G 075tjn8+X8XEdz7Vb5ZvNToSz2+W38z0CPNkmm06Y9r+yGGOnltf3MhlIbMl2Hm4U6mF Ou+QDKPm4JZeV7efn13KeIn0v5a3/D/D7RRKFr/0X6b6mQHsjcVn3aU6XW06iWLGQXB9 ERVMtS+NTBfa5mOpq7ltvdKy768NUQTZZxOMGSXIn6nK4bLfpJa6o3jZtbqumpexnmvu 9AIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3iDI9uNcgbd4WeSkgPK2jFWjSLsx2JhiA7S0p38mNzw=; b=SVbNqOe3Wrd55WixSQFDCLWlUEsa5hPLOUyW4kmmKgAbgkcKQ5UnU2c+GPjefNxqtW jtTJwAdjuT3xKw+stMsapU8C1AmT3q4vr04tERJvptIjnia46GHKtakBVRAGZu1qkDBE euatNoKJ4Vm37oIfSfOFhVWxj0z8ESY/+Mp5kPwuwiSZtVSd9IcrEod9VcIwmIEAjWy+ cZvf4756ShnsD6qbmAa5+bmJ7Qs65zSZXQbz/HIV7JFAKm1f+dao9tZqiMhg62RQi8wE uVjugtgnY9RC1CXlm2vX5X7XLEKeftfidTe/4teEtDNnHgkJ5/mHHs7LmfXYN8Ol06oJ fGYw== X-Gm-Message-State: AGRZ1gJe3/C59dTrSLCFKd5cGYHdEbBgLTS1sSR/RsH17vZ2ScAR/FG7 dLtMYZ72oilsm3b7lj1vc6Xfc3Xd1YxuJKWefLU= X-Received: by 2002:aed:3e56:: with SMTP id m22-v6mr4345349qtf.99.1540836289189; Mon, 29 Oct 2018 11:04:49 -0700 (PDT) MIME-Version: 1.0 References: <20181025232517.ywnw54qibemosjws@picard> <154083512089.98144.9141070901932719147@swboyd.mtv.corp.google.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 29 Oct 2018 20:04:38 +0200 Message-ID: Subject: Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL) To: Stephen Boyd , Pierre-Louis Bossart Cc: duffydack73@gmail.com, Hans de Goede , Michael Turquette , linux-clk , Stable , Johannes Stezenbach , Carlo Caione , Andy Shevchenko , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 29, 2018 at 7:52 PM Andy Shevchenko wrote: > > Cc: Pierre as well. > > On Mon, Oct 29, 2018 at 7:48 PM Stephen Boyd wrote: > > > > Quoting Dean Wallace (2018-10-25 16:25:17) > > > I have found a regression in 4.18.15 that means I lose sound on my old > > > Toshiba Chromebook 2 (Swanky). My system details are:- > > > > > > Toshiba Chromebook (Swanky) > > > MrChromebox UEFI coreboot > > > Arch Linux running latest alsa/pulseaudio > > > > > > Upgraded kernel from 4.18.14 to 4.18.15 and lost all sound output. By > > > output I mean, the card is still detected, the module loaded, all apps > > > showing sound is being playing, but no actual audible sound comes > > > through. Upgraded to 4.18.16 same issue. > > > > > > Dug around and found Upstream commit 648e921888ad96ea3dc922739e96716ad3225d7f > > > clk: x86: Stop marking clocks as CLK_IS_CRITICAL > > > "This commit removes the CLK_IS_CRITICAL marking, fixing Cherry Trail > > > devices not being able to reach S0i3 greatly decreasing their battery > > > drain when suspended." > > > > > > I reverted it and compiled 4.18.16 and have sound back again. Could > > > this be looked into, with possibility of fix. > > > > > > > Thanks for the bug report. I'm adding some people involved in the commit > > you mention is causing audio regressions. The best plan is to probably > > revert the commit from the 4.18 linux stable tree. Or there may be > > another patch missing that would be useful to make this backported patch > > work. Hopefully Hans or Andy knows. > > Hans has been investigating S0ix issues on Baytrail and Cherrytrail machines. > I have a feeling that the problem can be fixed by properly handling > clock in ASoC driver(s). Perhaps Hans and Pierre can figure this out > better than me. Looking to sound/soc/intel/boards/cht_bsw_rt5672.c I see no suspend-resume hooks. Perhaps, adding them like in the commit ac8bd9e13be2 ("r8169: Disable clk during suspend / resume") would help. Btw, what the drivers are in use for the machine you have? It's better you run alsa-info.sh or alike to collect necessary information along with output of `lsmod`, `dmesg`, etc. -- With Best Regards, Andy Shevchenko