From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A22AC2D0DB for ; Thu, 30 Jan 2020 14:40:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6F65920658 for ; Thu, 30 Jan 2020 14:40:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727260AbgA3Okq (ORCPT ); Thu, 30 Jan 2020 09:40:46 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:57271 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbgA3Okq (ORCPT ); Thu, 30 Jan 2020 09:40:46 -0500 Received: from localhost (lfbn-lyo-1-1670-129.w90-65.abo.wanadoo.fr [90.65.102.129]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 5D16D200009; Thu, 30 Jan 2020 14:40:44 +0000 (UTC) Date: Thu, 30 Jan 2020 15:40:44 +0100 From: Alexandre Belloni To: JH Cc: linux-rtc@vger.kernel.org Subject: Re: rtc rtc0: Timeout trying to get valid LPSRT Counter read Message-ID: <20200130144044.GG3583@piout.net> References: <20200112110353.GC1253990@piout.net> <20200130104756.GC3583@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org On 30/01/2020 22:27:37+1100, JH wrote: > Hi Alexandre, > > On 1/30/20, Alexandre Belloni wrote: > > On 30/01/2020 13:36:26+1100, JH wrote: > >> Hi Alexandre, > >> > >> Thanks for your response. > >> > >> On 1/12/20, Alexandre Belloni wrote: > >> > Hi, > >> > > >> > On 02/01/2020 19:40:10+1100, JH wrote: > >> >> Hi, > >> >> > >> >> I am running kernel 4.19 on imx6, could anyone help for clues what > >> >> that error is about? What I could be missing and how to fix it? > >> >> > >> > > >> > I'd say that you have an issue with the 32k clock or tamper detection, > >> > have a look at this commit: > >> > > >> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cd7f3a249dbed2858e6c2f30e5be7f1f7a709ee2 > >> > >> Is that a patch for 4.19.75? Or where can I download the patch for > >> 4.19.75? > >> > > > > This patch was included in 4.19. It introduced the message you are > > seeing and the commit message explains why you are seeing it. > > So it was already included in 4.19, I don't need to patch it, that is > good :-). Sorry I am still not clear how to stop that error message of > "rtc rtc0: Timeout trying to get valid LPSRT Counter read", the > message says "To avoid kernel hangs, put in timeouts", I am running > kernel 4.19.75 on iMX6, where should I put in timeouts? > The patch is adding the timeouts, without them, your kernel would be freezing. I'd say your issue is the 32k clock. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com