Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5827635imu; Sun, 2 Dec 2018 04:27:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/VAqkb1es2UQnrfLux7UTMB0HPcIVIwt4USn2DIgiu8BRXGtmnlp6EeQd6J7cvWrXycjXch X-Received: by 2002:a63:cc4e:: with SMTP id q14mr3968041pgi.291.1543753624204; Sun, 02 Dec 2018 04:27:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543753624; cv=none; d=google.com; s=arc-20160816; b=vhonzwdhHS3coIL+fZPlHeK2SVzxV1cu8sbe0CUQQRvHuZPn+hX0Z7zJiXPfzlNXG/ CD9lM/raLQ26inphf+3gZFkTfR7ajRP10psydBckO450hDZ9FbCG2qUuggqarmvJVqK3 i0C/XSvW8Or2n3gxC7PVzkFKiJAMbx1EupYhsQ31rOcCWogZ00sor1HZHLRzcjgy1d2c AHGVmGCghGdim3aXidOYuwemExHE0qBTsEvm7Hui+ruGfdnSIrhug9iK4BvqsT7inHPe vKrht6DmYoPnKzSYGUyCxxWSIK4GzO5HaM1anWR63naK6omg0Y5BLL7Mfz3bY64Te5BG hosg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=z/rcIo0VlNcTpCi1nNOj3vKciFxUK8im07qbOJ3nXHU=; b=ajJIyEu+ZngZIKwCIoV9jXjjOvuBsuik6W2zZVi9tTjf8S3Eee9W/kE7uuZB2Oj8ks ZS0THpQH2bNc6uTpIMVOLZ/orr3c+I+JnjcnmAFIeF7liAPA40UEViCl0jhcNKgneZ1m HGkVFXy9gmLKwVTYjgCINqcisBMs9MJnPB5U8eC2q0kEyUMfRgMgfKleWy7NfwkpdKuC g5kq4L0M9JSMnooDenckm0gO/wCKM3ifFl7D6H47jIahHweGcQliLTbQsfMUuLV9EagV Mbl22Cd54H2+k5ymsGF2Q8+TvYqGMtv0eyr0CKVnEm96RYHK/Iq58lKSAlxQYJf+tG8N /tAw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x191si11214382pfd.220.2018.12.02.04.26.34; Sun, 02 Dec 2018 04:27:04 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725834AbeLBMZg (ORCPT + 99 others); Sun, 2 Dec 2018 07:25:36 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:33634 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbeLBMZg (ORCPT ); Sun, 2 Dec 2018 07:25:36 -0500 Received: by mail-wm1-f67.google.com with SMTP id r24so4927589wmh.0 for ; Sun, 02 Dec 2018 04:25:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=z/rcIo0VlNcTpCi1nNOj3vKciFxUK8im07qbOJ3nXHU=; b=YvZCzA8BCHoLS8voz4a5hWC+PvKXst5UJ+cU+EXUoGsG4PyCs++GM7XyOQm03XEIih CejhutsTQEfQ8CanYWEQUUTBdUBpumg6JhQhFjvtLMfTMi4G5yv/1jYLbE+Xc+wb3bv6 v5UbumPOjcXVvENdwN2NUfmIzVuAqvkdmlnUU2bXbjtv9fZYHiIVtFBbVrDylgBMHFTr txzkjxEHop7yfXhmCW9oNkFcMPH/9g5bUy3/WXxuuLlZmQum8p/rMvUeLC9U8C3igPVI Y52X1bn4BsqEPh5qs3zX+WbSEk0nBj2tvmmoYxFUWB8BXB3UDq7KHY7UFlkc8ye6Lq7Y mBfQ== X-Gm-Message-State: AA+aEWavx5rGWLLpX7fwF9JF8yE/uvxB4Iuw0aoK6zNoFePFBE4r/PB0 vbkC56+FmW2+morAImdvtQ/7bUKmXz0= X-Received: by 2002:a1c:a485:: with SMTP id n127mr1484505wme.15.1543753531176; Sun, 02 Dec 2018 04:25:31 -0800 (PST) Received: from shalem.localdomain (546A5441.cm-12-3b.dynamic.ziggo.nl. [84.106.84.65]) by smtp.gmail.com with ESMTPSA id l2sm11886162wma.33.2018.12.02.04.25.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Dec 2018 04:25:30 -0800 (PST) Subject: Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL) To: 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 References: <20181025232517.ywnw54qibemosjws@picard> <20181030143836.feo7zcxiestylxoo@picard> <2d429c87-24c5-4075-683e-b0d12c3eb1c2@linux.intel.com> <3iO9ehQbZm_haTV0IuZ0qhsVHR0QLUbTgRJT8ZenGuRsnz2_uBvO93f0bHVYnsApibUT16JsJ0dgphLhUBd-u0t-lDBNsbvvlKWTgq8XOlw=@protonmail.com> From: Hans de Goede Message-ID: <3e12e051-b874-187d-d4f5-e146f59c659b@redhat.com> Date: Sun, 2 Dec 2018 13:25:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <3iO9ehQbZm_haTV0IuZ0qhsVHR0QLUbTgRJT8ZenGuRsnz2_uBvO93f0bHVYnsApibUT16JsJ0dgphLhUBd-u0t-lDBNsbvvlKWTgq8XOlw=@protonmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 01-11-18 07:55, Mogens Jensen wrote: > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > On Wednesday, October 31, 2018 9:29 AM, Hans de Goede wrote: > >> Hi, >> >> On 31-10-18 07:02, Mogens Jensen wrote: >> >>> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ >>> 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: >>>> >>>>> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ >>>>> 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_clk_0, so moving a common machine driver such a cht_bsw_max98090_ti to use plt_clk0 only would break other devices (e.g. Rambi/Orco). Asking for both clocks to be on might work though, >>>>>>> >>>>>>> Ok, so we need to have a DMI based quirk for the Swanky and maybe also >>>>>>> the clapper to use plt_clk_0 there. Asking for 2 clks if we only 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 from 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/running 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 be created? >> >> Can you run (as root): >> >> for i in /sys/kernel/debug/clk/pmc_plt_clk_?; do echo -n "$i: "; cat $i/clk_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 Ok, so your Clapper model indeed is also using clk 0 and not clk 3 as expected. I've just submitted a patch upstream adding a quirk for this. As for what the plan is with 4.14, I don't know. I believe that reverting the commit causing the issue there is fine. Regards, Hans