Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp982867imd; Thu, 1 Nov 2018 08:30:27 -0700 (PDT) X-Google-Smtp-Source: AJdET5csn9y0ss/MG66VMPNDmoA6xdC79WFUbGi12grMgJo+13uwJLJ+XysRO7x3JA0ccCU5BO8h X-Received: by 2002:a17:902:7e0d:: with SMTP id b13-v6mr611207plm.246.1541086227491; Thu, 01 Nov 2018 08:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541086227; cv=none; d=google.com; s=arc-20160816; b=U47XXaarxQCuOpdjjbNSMf0uK35B0FyuWzNiPJKcSpKdnUGssjkCXxJbIJN4oIQoeP AzteL7lz15ArcM47Et8/SK45YS1012wb4jl7z83s2IcpUMGDqLEJhbthq2Nf0ULCdzd2 A1jpn/ACVfM7ImSP3VlET3K6dRW4yVGqOwOdEBvhv4qrK+zQF3p6rYxJeH8kq17A3Xzy ksDEL8hWmKp6PMhgjqNXMPvieH2dq4S0Cfb2tZhXtCVgytjSFFinVDo6MwIRI3asY1xl QNNNTmuwTQMogESn6USjSaS6lDE49IeoZM18rBKvxEOJkYm3TS6E2J5HiHBlq/W3INhL YyWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qkip5qLR+KvGv/K81heC6OjvVKGGVTkT71nBtb3m2EQ=; b=WIyG4ZILU9iwtZ7Y1ysdfDvhduwc1pp3aBgQzd+qgKO6bsFniYm+Y4urWYXRw6p9ir mzGeFSSNPqlAIImStQHVR3jcQQdODKoMKTcSAfgEHFMdFnmvvwcaTlC3zxgHeg2qVc2i YyRJk8jQBkzK7tpfejhWoG0NAV5MZU9+tVOSroHaArxccx1PM9MRDGb9V+wtXMnInbY9 glc4JeEv9yRMDdmuqhhTKGgAlabh88RxhVWb86csG2XUdB9/o5s05NRaAgooFTfANiz6 v4VmkRASJo02z7bl6S0SAP+SjjgEkA3j8hLaplSkD38RwB+yjZCsMJNdDaEMIvc3Visp iF4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bsdhbVK8; 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 p3-v6si8467601pff.272.2018.11.01.08.30.12; Thu, 01 Nov 2018 08:30:27 -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=bsdhbVK8; 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 S1728958AbeKBAc5 (ORCPT + 99 others); Thu, 1 Nov 2018 20:32:57 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39486 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728117AbeKBAc5 (ORCPT ); Thu, 1 Nov 2018 20:32:57 -0400 Received: by mail-wm1-f68.google.com with SMTP id u13-v6so1667365wmc.4; Thu, 01 Nov 2018 08:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=qkip5qLR+KvGv/K81heC6OjvVKGGVTkT71nBtb3m2EQ=; b=bsdhbVK8tHZZL1HekUZN/e3ntRkbYnIctluvVobWGLSb7Yf+tRzK5W4Z/fN9mSe4bC XxcIPVpB/agtHCgqMN/2htZIx4oGzIMtH4hztwYEJOXLNPufhLLsEXWVVtefNLU8q/W+ Is7P4dy2YCSfCptlDzPwEINPktLnWiDTJlaU0Egq8bK1QHQ11IuOG3rM+QR/JK3OwJqy WrBMIgX86uKryqHoXpmRhXb4DO0dkZ0befCpB2bSLPcu3N1fp2shu6ICWhnr6vxCiVNM EImZCfoobUNd4luSS90wy67f2xtGj7jV3l8uDmG4Xw9yVBOxKtStfUgFW3T6TkIKhfn0 yn/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qkip5qLR+KvGv/K81heC6OjvVKGGVTkT71nBtb3m2EQ=; b=TfjpsKMrQcAn946AmyfczdRdPkt9KpML7wU5IEgDraJv9FojP/+K3HErZfTrt9j0Go 5fUYfeZGEWMaymiZb9ieQbliIr9dOWO9AmXukkuIWnF0FqAbIH4BOouumIF2tNxxRrOs GXW/PchX659EJL7UCSfWYDrsk352gyxuEBov5z8QuzW1hHZoc6Xp0XThsRQ7NlAgvCQd zIOGlVTYTv3M4cGUwICgwwyAq9IFJS3xI72zb1CAeFuIWca5DC3p3yJsJ2NlwnkMCzvQ ckDWcA2qNAi27SN8HZsaX1h9mqGcfSqtx78hfhiT6gX7HxBx2VGOJtr9LdNUlAgEBY3U M9Qw== X-Gm-Message-State: AGRZ1gKMdyIp/uWLcDuo3v+CVd/EP9zlfMCH1Byjl1IV1mqRvPLBmnM3 beqU4hNVr4FSBBFOJQvgerQE8C1IxIxYlA== X-Received: by 2002:a1c:1c0c:: with SMTP id c12-v6mr5676716wmc.18.1541086168373; Thu, 01 Nov 2018 08:29:28 -0700 (PDT) Received: from picard ([194.207.103.1]) by smtp.gmail.com with ESMTPSA id c14-v6sm24289844wmh.44.2018.11.01.08.29.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Nov 2018 08:29:26 -0700 (PDT) Date: Thu, 1 Nov 2018 15:29:25 +0000 From: Dean Wallace To: Hans de Goede Cc: Pierre-Louis Bossart , Andy Shevchenko , Stephen Boyd , Michael Turquette , linux-clk , Stable , Johannes Stezenbach , Andy Shevchenko , Linux Kernel Mailing List , Mogens Jensen Subject: Re: Regression found (Stop-marking-clocks-as-CLK_IS_CRITICAL) Message-ID: <20181101152925.gdmscgg7275md3km@picard> References: <20181030161534.wk5cf7nxbwhp2far@picard> <307c2074-d268-a87a-6040-1240a2091a4d@redhat.com> <20181031200709.xrmu6wsdel7dtcjq@picard> <20181101103705.ay36te4qr5pxtgop@picard> <37e44480-44d3-9355-6119-ae46bb38678a@redhat.com> <20181101142859.oxtuhbwtt44h2u3r@picard> <67a7d54b-49cc-aa4e-fe47-bb6277f02bc8@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <67a7d54b-49cc-aa4e-fe47-bb6277f02bc8@redhat.com> X-Info: Keep It Simple, Stupid. X-Operating-System: Linux, kernel 4.19.0-arch1-1-ARCH-dirty X-Message-Flag: WARNING!! Outlook sucks User-Agent: Every email client sucks, this one just sucks less. Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-11-18, Hans de Goede wrote: > Hi, > > On 01-11-18 15:28, Dean Wallace wrote: > > On 01-11-18, Hans de Goede wrote: > > > Hi, > > > > > > On 01-11-18 11:37, Dean Wallace wrote: > > > > On 31-10-18, Pierre-Louis Bossart wrote: > > > > > > > > > > > Just thought it worth mentioning, this new patch that fixes sound > > > > > > again, seems to have ressurected an old issue with PLL unlock. I'm > > > > > > seeing journal entries after fresh boot ...... > > > > > > > > > > > > ``` > > > > > > picard kernel: max98090 i2c-193C9890:00: PLL unlocked > > > > > > picard systemd[462]: Started Sound Service. > > > > > > picard kernel: max98090 i2c-193C9890:00: PLL unlocked > > > > > > picard kernel: max98090 i2c-193C9890:00: PLL unlocked > > > > > > picard kernel: max98090 i2c-193C9890:00: PLL unlocked > > > > > > picard kernel: max98090 i2c-193C9890:00: PLL unlocked > > > > > > picard kernel: max98090 i2c-193C9890:00: PLL unlocked > > > > > > picard kernel: max98090 i2c-193C9890:00: PLL unlocked > > > > > > picard kernel: max98090 i2c-193C9890:00: PLL unlocked > > > > > > picard kernel: max98090 i2c-193C9890:00: PLL unlocked > > > > > > picard kernel: max98090_pll_work: 141 callbacks suppressed > > > > > > picard kernel: max98090 i2c-193C9890:00: PLL unlocked > > > > > > ``` > > > > > > > > > > > > sound is ok, but sometimes plugging in headphones spams journal with > > > > > > those PLL messages, and sound turns into "daleks", and I have to > > > > > > remove/insert headphones few times or stop/start audio to fix it. > > > > > > It's a very old issue, maybe you'd know more about it. > > > > > > > > > > I noticed this error on my Orco device used for tests many moons ago, but I > > > > > could never find out what led to this error case, it wasn't deterministic > > > > > and didn't impact the audio quality. All I could do is rate_limit it... If > > > > > we have an A vs. B situation it'd be really helpful to diagnose further. > > > > > > > > > > Is there really a causality between the changes from Hans and this PLL > > > > > unlock error? Are you 100% sure this was not present in the previous install > > > > > you used (4.18.14 as mentioned earlier in the thread)? > > > > > > > > > > Thanks > > > > > > > > > > -Pierre > > > > > > > > > Well, numerous boots, kernels, headphone inserting - no PLL or > > > > 'Daleks'. My laptop must have been haunted that day (halloween). > > > > I'll put it to bed. > > > > > > So you can no longer reproduce. Bummer. Note this might be caused by > > > the temperature of the laptop when you were running the tests... > > > > > > Anyways if you hit this again and you can reproduce it, please > > > give adding a msleep(10) after code mucking with the clk a try. > > > > > > Regards, > > > > > > Hans > > > > > Right then, I can make it unlock and 'daleks' by going into > > pavucontrol and switching the Profile back and forth from Stereo > > Output to Stereo Output+Analog Mono Input, which is actually something > > I've done to make it correct itself as well. I don't use the mic or > > anything so I've had it set to Stereo Ouput only which I 'think' has > > somehow made it more stable for me. With all my playing around, one > > of the things I did was clean out my .config/pulse folder which meant > > by default the 'Profile' in pavucontrol was set to Output+Input, which > > seems to help trigger the PLL issue when inserting headphones. > > > > So what would you like me to do, as I can trigger it on demand it > > seems. > > Please give the attached patch a try (on top of my patch for the clk quirk) > and let us know if that fixes these errors. > > Regards, > > Hans > Ok Hans, I tried your patch on top of the quirk, and sound is immediately garbled (daleks again), and switching pulseuadio profiles or inserting headphones doesn't make it correct itself, whereas before sound would be fine, UNTIL, I did something like insert earphone etc. -Dean