Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp479599imd; Wed, 31 Oct 2018 23:57:01 -0700 (PDT) X-Google-Smtp-Source: AJdET5dmqlJ0VebFYanvMYbv1g86VON9JeWb3EL287J12C7/biaYe7bsTa2CBWrWkUJXYUaM/0Jl X-Received: by 2002:a62:cd47:: with SMTP id o68-v6mr6606565pfg.12.1541055421278; Wed, 31 Oct 2018 23:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541055421; cv=none; d=google.com; s=arc-20160816; b=pbfpe7HdVO+x+gHDAqpG4rJvoyUvbGRa87JS5E51qsdu48gahxz9FPwKjMp93ihhPh Qj4fTAm09NH+f0fHEleilwy5yH4M0yIZifCEyjgJ2dQtvBJqeUk5HomqL2q0qV86jeFh KmT0yXFN5AIooQRf9IUkOO6O8tMX7OMTOMw2pwEFGWdOZ9BZZ2rY5NdC18fN5uqk9PlU 5xCh6XgGbeoAsS0e4UeUlBSGj2Bs9m0WZEeleqGlutlAcgZcObIvp/4pJtc76/IGeHyc x6WMvT7rpVfR0hTksqH7uNtlUzcSWmontZ/EhqLBra4aamwI5ZS+PdZ/jFmaRUfiQ8UZ +OVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=L7pjiLKAAkIotQ282W5/hBG97JL9XoWNivu+3AJESS8=; b=J7JpDG0Jtl3bRhPKGk6j104/gJVZyQJxcjJx/fddz1yC7l02DzkNqyEvtmHWBBmjdg ydf6SBZDH7Gmj6mBkZ0wirKYsfC/+ChRrQTvnu5toXGSXSFmDOFdzBD0O1UtxegIUqTl WLiBt5zxDa7zdyHcOAPdMa0hDzq5zXwmZwVhv+44pPNFry8YqlnNGm+7M0UNwFx9b8nE mYHpw6A5FpnGA0xdl8G2D/5Nph+SZDRlvlfwaJO9N1IMBQpW0UMm7poT80vJ/ST6ISTJ 4QTB7C2I+Y5+Ysr8Pqmo2vYn8xi94xYDjWXDBUPmcjj7PJOcn4SVsnjBFcFFQBlOopwe 6BsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=default header.b=tCKWqKbM; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23si6795024pgu.359.2018.10.31.23.56.32; Wed, 31 Oct 2018 23:57:01 -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=@protonmail.com header.s=default header.b=tCKWqKbM; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727822AbeKAP5m (ORCPT + 99 others); Thu, 1 Nov 2018 11:57:42 -0400 Received: from mail-40130.protonmail.ch ([185.70.40.130]:22859 "EHLO mail-40130.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727774AbeKAP5m (ORCPT ); Thu, 1 Nov 2018 11:57:42 -0400 Date: Thu, 01 Nov 2018 06:55:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1541055358; bh=L7pjiLKAAkIotQ282W5/hBG97JL9XoWNivu+3AJESS8=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=tCKWqKbMvh3ptrsJ1NaxTrePQz4gxNsdaPna4h3vK9i1d8NGXyQ0QJWpj2WjLLBOh I1G8I1wNXVQzuQTOvCrQxkpFFZ3Sa2874gLUF5Y3x36Pp6TsirTW04EZi1FNlauojp dSMfQsPb+c/SiDVZ2uDuA4j+tyeOImBxP4XoWqV0= To: Hans de Goede From: Mogens Jensen Cc: Pierre-Louis Bossart , Dean Wallace , Andy Shevchenko , Stephen Boyd , Michael Turquette , linux-clk , Stable , Johannes Stezenbach , Carlo Caione , Andy Shevchenko , Linux Kernel Mailing List Reply-To: Mogens Jensen Subject: Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL) Message-ID: <3iO9ehQbZm_haTV0IuZ0qhsVHR0QLUbTgRJT8ZenGuRsnz2_uBvO93f0bHVYnsApibUT16JsJ0dgphLhUBd-u0t-lDBNsbvvlKWTgq8XOlw=@protonmail.com> In-Reply-To: References: <20181025232517.ywnw54qibemosjws@picard> <20181030143836.feo7zcxiestylxoo@picard> <2d429c87-24c5-4075-683e-b0d12c3eb1c2@linux.intel.com> Feedback-ID: 4dFv7M8pOtP7CMTtfNdOwXARWpF2vcQYB4dRuX1h9mb-6008qkzO2MVweOzrAYHEdkjJ6P5PUdgJEubk4l9Lhg==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.1 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Wednesday, October 31, 2018 9:29 AM, Hans de Goede = wrote: > Hi, > > On 31-10-18 07:02, Mogens Jensen wrote: > > > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Origina= l Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80= =90 > > On Tuesday, October 30, 2018 7:10 PM, Hans de Goede hdegoede@redhat.com= wrote: > > > > > Hi, > > > On 30-10-18 19:56, Mogens Jensen wrote: > > > > > > > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Ori= ginal Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90= =E2=80=90 > > > > On Tuesday, October 30, 2018 4:04 PM, Hans de Goede hdegoede@redhat= .com wrote: > > > > > > > > > Hi, > > > > > On 30-10-18 16:46, Hans de Goede wrote: > > > > > > > > > > > Hi, > > > > > > On 30-10-18 16:04, Pierre-Louis Bossart wrote: > > > > > > > > > > > > > In addition I am not aware of any baytrail device using plt_c= lk_0, so moving a common machine driver such a cht_bsw_max98090_ti to use p= lt_clk0 only would break other devices (e.g. Rambi/Orco). Asking for both c= locks to be on might work though, > > > > > > > > > > > > Ok, so we need to have a DMI based quirk for the Swanky and may= be also > > > > > > the clapper to use plt_clk_0 there. Asking for 2 clks if we onl= y need > > > > > > one does not seem like a good plan. > > > > > > > > > > Dean, Mogens, > > > > > To write a proper patch for this I'm going to need DMI strings > > > > > from your devices. > > > > > Can you please run (as normal user): > > > > > grep . /sys/class/dmi/id/* 2> /dev/null > > > > > And reply with the output of this command? > > > > > I have attached the output from a coreboot seabios based clapper. > > > > > > Thank you. > > > > > > > Should I still test 0001-ASoC-intel-cht_bsw_max98090_ti-Use-pmc_plt= _clk_0-ins.patch with SND_SOC_INTEL_CHT_BSW_MAX98090_TI_MACH and asoundrc f= rom Dean? There seems to have been some development in the case since that = request was made. > > > > > > Yes please test that, I expect that to also fix things for the > > > Clapper, but I need to have that confirmed before submitting a > > > patch upstream adding a quirk for the Clapper to use pmc_plt_clk_0 > > > instead of pmc_plt_clk_3. > > > Regards, > > > Hans > > > > Unfortunately I only have access to longterm kernel 4.14 for building/r= unning on this system, and 0001-ASoC-intel-cht_bsw_max98090_ti-Use-pmc_plt_= clk_0-ins.patch does not patch against 4.14.78. Can a test patch for 4.14 b= e created? > > Can you run (as root): > > for i in /sys/kernel/debug/clk/pmc_plt_clk_?; do echo -n "$i: "; cat $i/c= lk_flags; echo; done > > When running a kernel with working audio? > > Then I can confirm that the Clapper is also using pmc_plt_clk_0, so that = I can > fix this for the clapper for 4.18+ > > I've just checked the 4.14 sources and in 4.14 the SND_SOC_INTEL_CHT_BSW_= MAX98090_TI_MACH > driver does not support mclk control yet, so for the 4.14 kernel the only= way to > fix this is to revert the 648e921888ad ("clk: x86: Stop marking clocks as= CLK_IS_CRITICAL") > commit. > > Regards, > > Hans > Here is the output from the Clapper with 4.14.78 and working sound: /sys/kernel/debug/clk/pmc_plt_clk_0: 0x00000800 /sys/kernel/debug/clk/pmc_plt_clk_1: 0x00000000 /sys/kernel/debug/clk/pmc_plt_clk_2: 0x00000000 /sys/kernel/debug/clk/pmc_plt_clk_3: 0x00000000 /sys/kernel/debug/clk/pmc_plt_clk_4: 0x00000000 /sys/kernel/debug/clk/pmc_plt_clk_5: 0x00000000 Will 648e921888ad ("clk: x86: Stop marking clocks as CLK_IS_CRITICAL") be r= everted upstream for 4.14? Dean, Thank you, but I will see if I can change the build system to accept = a newer kernel, if I get some time later today.