Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4428273ybz; Mon, 20 Apr 2020 23:55:13 -0700 (PDT) X-Google-Smtp-Source: APiQypIvOLZjZxcaUzNw9lYg7QalmSfIv8Hz5Zil887qzH1E83CL4qXI3v9yK8qxKDZcpWCVQKbo X-Received: by 2002:a50:da05:: with SMTP id z5mr5172953edj.287.1587452112861; Mon, 20 Apr 2020 23:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587452112; cv=none; d=google.com; s=arc-20160816; b=aIY5bnVkPVSmWBWAwiIdL6cD7aW5gKRD+EEPy9esMkqnhUnxKBZ4SSJesCJN80+5Ow pMrdSFzb5R8jQhhK0O1e64823M1C3x2NFKJwgfurrswBt4ZSKg0z0ku6ZegRcXMvc6oH u0OXiGLkciZzFC1wmz0FFbMFEPynnMF3P5uilak2DsIp6NJkA/1WYGV5+tL9OgmxL2rr JVTaZvrY1JKY2nsc4ED5KSwxF+MPhB3dzoLXttHuyvBNKNYojv7KJ1NzEaFFYewPV3We su2tiVu6o3etOIX3+vpl0ektlWV73JtTkxC+N7/6WRXT7VH5XniFmae6BAfx0kZFBHkl 4eRQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=fR1NqAKRcDcvju0ewc8DInHgEpyMK6T3//JWLHgIwrs=; b=Lkgx5N8Z0WPtBJJiNxQZUOe0Wf8nHBooW9eIxh4znUUpkS4eaxt4XZUeXZd4dtYjvm IWbqHPHK1FyYJIroiRiGQW+06ZRCHVCgco8FeYyQH3oiriLbvr/BC7RY7flVx/6hpJQn zk2JsRdOxa39PJaDGsIOPCz0K8GJ+9KH/alFIerdPJLz0v5Z4dWFS8rFMYmUkgQ7u36k frVKj1O+s98uMCRlx+1OrNdKMvJxe5vgUwMXXd4QW/qn9UZBgoiZhP5sp0f4e74ZZdwb IS3JO/M3ju1ldhYZQjCBfANr4fZ83tUPRAvzFeb0xGqPi9CMew966QSgJIxoftgXoY0O 2K/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=E5nwg9HR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si996877eje.323.2020.04.20.23.54.45; Mon, 20 Apr 2020 23:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=E5nwg9HR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726511AbgDUGxp (ORCPT + 99 others); Tue, 21 Apr 2020 02:53:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725926AbgDUGxo (ORCPT ); Tue, 21 Apr 2020 02:53:44 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C826C061A0F; Mon, 20 Apr 2020 23:53:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fR1NqAKRcDcvju0ewc8DInHgEpyMK6T3//JWLHgIwrs=; b=E5nwg9HRQ3wDFu/t/mct+wWJRS iBQv0E1ZY9dliaFMIvhkeU8OQkTnw+6p49qika7cyI5o/LXwjGbXxmXEjGO5m6nCDenrw8cpjxcOq juKAyLj4nLjF2Jn8ngSNcZJ9umIRFTN0cK4tbYAkUKNd+n4FCMWODNQDiFrp/btU76oI=; Received: from p200300ccff1389001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff13:8900:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jQmmn-0005R2-Jg; Tue, 21 Apr 2020 08:53:38 +0200 Date: Tue, 21 Apr 2020 08:53:36 +0200 From: Andreas Kemnade To: "H. Nikolaus Schaller" Cc: Tony Lindgren , Evgeniy Polyakov , Greg Kroah-Hartman , Linux Kernel Mailing List , linux-omap , Adam Ford , "Andrew F . Davis" , Vignesh R Subject: Re: [PATCHv3] w1: omap-hdq: Simplify driver with PM runtime autosuspend Message-ID: <20200421085336.32cf8ffe@aktux> In-Reply-To: References: <20191217004048.46298-1-tony@atomide.com> <7B8C7DD9-095B-48FC-9642-695D07B79E97@goldelico.com> <20200416184638.GI37466@atomide.com> <3197C3F0-DEB9-4221-AFBD-4F2A08C84C4C@goldelico.com> <20200417164340.3d9043d1@aktux> <6430AF54-849E-456B-8DB0-B4478BBDB78D@goldelico.com> <20200417150721.GL37466@atomide.com> <8E062482-5D5D-4837-9980-D6C708DD24D4@goldelico.com> <20200420150802.GR37466@atomide.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Apr 2020 23:11:18 +0200 "H. Nikolaus Schaller" wrote: > Hi Tony, > > > Am 20.04.2020 um 17:08 schrieb Tony Lindgren : > > > > * H. Nikolaus Schaller [200417 21:04]: > >> To me it looks as if reading hqd too quickly after omap_hdq_runtime_resume() > >> may be part of the problem, although it is 0.4 seconds between [ 18.355163] > >> and [ 18.745269]. So I am not sure about my interpretation. > >> > >> A different attempt for interpretation may be that trying to read the > >> slave triggers omap_hdq_runtime_resume() just before doing the > >> first hdq_read_byte(). > > > > Hmm so I wonder if adding msleep(100) at the end of > > omap_hdq_runtime_resume() might help? > > I have tried and initially it did boot and work once. > But after the second boot/reboot the effect was back. > > This is something I have observed previously, that the issue > is there in ca. 9 or 10 boot attempts. So I would assume > some race condition with udev reading the uevent file of the > bq27xxx bus client and hence through hdq. > > I already had noticed some hqd_read activity right after probing > success. > > I had also tried to change pm_runtime_set_autosuspend_delay(, 1000) > with no success. And I tried to call omap_hdq_runtime_resume() at the > end of probe. > > The only maybe important observation was when I disabled all > kernel modules except *hdq*.ko and *bq27*.ko. Then I did only > get an emergency shell so that it is quite similar to the > scenario Andreas has tested. With this setup it did work. > So I guess without idling uarts? > I then tried to reenable other kernel modules but the result > wasn't convincing that it gives a reliable result. > > So I have still no clear indication when the problem occurs and > when not. > Hmm, last summer I had problems even without that patch reading temperature while doing umts transfers. Maybe there are some connections, maybe not. For that scenario we might have emc issues, thermal problems or a real kernel problem. Regards, Andreas