Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp558199pxb; Fri, 8 Jan 2021 11:45:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9NC4ABL5Y5bNVjFVJqWB3YsjdrSTfL9mBPmX+eCPwtwu/E7+BJlSs5qeblhJLv2bSLpJn X-Received: by 2002:a17:906:2612:: with SMTP id h18mr3683516ejc.469.1610135158711; Fri, 08 Jan 2021 11:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610135158; cv=none; d=google.com; s=arc-20160816; b=hUMO9eyDY1/t/9scJwp799CuDvHbVxwuxqjN0XIK0xrlxoVc7CfLpBTOZXgGGB1GhP SH6UyfqLYN+O0uzCQA/CqvApH9qdDqo2dGM7AnedtrpX25axeCISSh6hXrYjSAEVbYcg Ids/CZ/PjEDob48U7VLSjc1b/OcFnPQRTFb88Kaq3DYYoElDwl7Z6qQEFaAFiQdTNuKK uh+/+WdO3hXIXkLlnbNHazV7CmuHTlWZVA4gcKj3ua6eBT4sFs7/AWuAIODazzjh2u2P ICvhlfaic9Vlmp5xO+E3vkyXfmvZlkHX+pchqyrBNRJOzRZhPD2Ee1rHKeQW1oi/qbB3 YzTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zSmK740YSdua1TBiaZGc3pU7A4XjUf+hqO+Eu7pIgDI=; b=rli0u2s8dYbbGxXvsMxZUAeMEAKzfony6+IhFJwD+l1HI4mZnuDotu8fc4LgLe1hl9 v71TB55TOTzmPtmBnD/h8SnlZUhFVuqCuEXntMN08PEUXb9bkmVKEQc8CMdh16DA+FwG vcVjth3daFM/hGfKuXv3fwCeJo8ayc73u30G/LmT2zdbfbQJr+IplL9wDG0sQZu8zXOC yQAQS5jYoI4Qwk7B38s1qq3OMDKKv0DZbfV+EkXGS7pITPCddp8jhyeCMGXr2bWgDxg6 ON90p9w0mUjcSgBupukDYltkYX3vidK/F7h1j3/0VjxiDeyqaVsnSpN5tWaZx4tIEP/1 KPTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="LW6/Fu2o"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si3806594ejc.592.2021.01.08.11.45.34; Fri, 08 Jan 2021 11:45:58 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b="LW6/Fu2o"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729030AbhAHTmg (ORCPT + 99 others); Fri, 8 Jan 2021 14:42:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727102AbhAHTmg (ORCPT ); Fri, 8 Jan 2021 14:42:36 -0500 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02432C061381; Fri, 8 Jan 2021 11:41:56 -0800 (PST) Received: by mail-io1-xd36.google.com with SMTP id t8so10881709iov.8; Fri, 08 Jan 2021 11:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zSmK740YSdua1TBiaZGc3pU7A4XjUf+hqO+Eu7pIgDI=; b=LW6/Fu2oT4YXtfLepXFJm6iCV4xwMhI8o0+4ymU9z0ZZhfz0bHubL5e/n0vVs9C1DD OfqvuNTha/IcdyfYhNfDvqYmqp3n/nZhU8nJ/+fDuaqCDIeTiby1x8eZf2wwXGFQr0p5 S6oNr3FTpIETmHLW+AI56KVw+ZuNKFafn3+YYZs88E5s0281PKCBQ9B8AtzSkoX7lYPn PTnfRhFqMHqXYi1UZ0fw38Fs8Rda9m2GwSkmD92yI2xQWz9m4io0dQlsuHKfY6HqfTps ZetEqqVa/j94gAns0YWmalgVswJErJaqZ1fX92ES0o+PJClXex8JBYGrkYwdUiAGBItN tUcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zSmK740YSdua1TBiaZGc3pU7A4XjUf+hqO+Eu7pIgDI=; b=awma8rxQWEy46NL4IuEzt+c5O9N590ZA9nOHRRBSDvCA6iYuLM15VGSLdK/QmKj/yP 3gKzyazhzLkGaZOURIEr2WNv+T06QL6Qouz8JLkw3A3HH+wC36qQOz/+2hj8tz0b80h4 PscU2Qujoi4IhSA7EHNUC5T3t1M/u5uU253ObT7wt13pUIbGvjSQS8ZKQl/h/n2e8NDC jnYzS6o4xHVWCgjdn8kvw878hizfohO61RAioZgxBOBs+kfV5XJk/WjQ0ei05z85lcz0 +glgjClUMRT3FBzgU6GYyLqtqzd3YVtIit5Qu4jfLbs5boRqKQCgGyoPWlQDxLQIL7RR 9vXQ== X-Gm-Message-State: AOAM531XAzEqbgaQSIHVxZIcyVGo8Vfy5c/ViA877PNhPPL8VtcNDkjG iGgcWSfYDVBQl5h2obpOM+5lXKYWBtabNJRBr00= X-Received: by 2002:a05:6638:296:: with SMTP id c22mr4786311jaq.65.1610134915220; Fri, 08 Jan 2021 11:41:55 -0800 (PST) MIME-Version: 1.0 References: <20201230084338.19410-1-tony@atomide.com> <7C9106E0-FC75-4056-AD5F-16CCFA9C24E5@goldelico.com> In-Reply-To: From: Adam Ford Date: Fri, 8 Jan 2021 13:41:44 -0600 Message-ID: Subject: Re: [PATCH 1/3] thermal: ti-soc-thermal: Fix stuck sensor with continuous mode for 4430 To: Tony Lindgren Cc: "H. Nikolaus Schaller" , Amit Kucheria , Daniel Lezcano , Zhang Rui , Eduardo Valentin , Keerthy , linux-pm@vger.kernel.org, Linux Kernel Mailing List , Linux-OMAP , Carl Philipp Klemm , Merlijn Wajer , Pavel Machek , Peter Ujfalusi , Sebastian Reichel , Andreas Kemnade Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 8, 2021 at 12:31 PM Adam Ford wrote: > > On Fri, Jan 8, 2021 at 7:45 AM Adam Ford wrote: > > > > On Fri, Jan 8, 2021 at 1:22 AM Tony Lindgren wrote: > > > > > > * H. Nikolaus Schaller [201230 13:29]: > > > > > Am 30.12.2020 um 13:55 schrieb Adam Ford : > > > > > On Wed, Dec 30, 2020 at 2:43 AM Tony Lindgren wrote: > > > > >> > > > > >> At least for 4430, trying to use the single conversion mode eventually > > > > >> hangs the thermal sensor. This can be quite easily seen with errors: > > > > >> > > > > >> thermal thermal_zone0: failed to read out thermal zone (-5) > > > ... > > > > > > > > I don't have an OMAP4, but if you want, I can test a DM3730. > > > > > > > > Indeed I remember a similar discussion from the DM3730 [1]. temp values were > > > > always those from the last measurement. E.g. the first one was done > > > > during (cold) boot and the first request after 10 minutes did show a > > > > quite cold system... The next one did show a hot system independent > > > > of what had been between (suspend or high activity). > > > > > > > > It seems as if it was even reproducible with a very old kernel on a BeagleBoard. > > > > So it is quite fundamental. > > > > > > > > We tried to fix it but did not come to a solution [2]. So we opened an issue > > > > in our tracker [3] and decided to stay with continuous conversion although this > > > > raises idle mode processor load. > > > > > > Hmm so maybe eocz high always times out in single mode since it also > > > triggers at least on dra7? > > > > > > Yes it would be great if you guys can the $subject patch a try at > > > least on your omap36xx and omap5 boards and see if you see eocz > > > time out warnings in dmesg. I do see chatter. [ 15.531005] ti-soc-thermal 48002524.bandgap: eocz timed out waiting low [ 16.571075] ti-soc-thermal 48002524.bandgap: eocz timed out waiting low [ 17.610961] ti-soc-thermal 48002524.bandgap: eocz timed out waiting low and it repeats quite often. I would say this patch series would cause a regression on the DM3730. adam > > > > I should be able to try it on the dm3730 logicpd-torpedo kit this weekend. > > I am going to be a bit delayed testing this. I cannot boot omap2plus > using Linux version 5.11.0-rc2. > > [ 2.666748] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xbc > [ 2.673309] nand: Micron MT29F4G16ABBDA3W > [ 2.677368] nand: 512 MiB, SLC, erase size: 128 KiB, page size: > 2048, OOB size: 64 > [ 2.685119] nand: using OMAP_ECC_BCH8_CODE_HW_DETECTION_SW > [ 2.693237] Invalid ECC layout > [ 2.696350] omap2-nand 30000000.nand: unable to use BCH library > [ 2.702575] omap2-nand: probe of 30000000.nand failed with error -22 > [ 2.716094] 8<--- cut here --- > [ 2.719207] Unable to handle kernel NULL pointer dereference at > virtual address 00000018 > [ 2.727600] pgd = (ptrval) > ... > [ 3.050933] ---[ end trace 59640c7399a80a07 ]--- > [ 3.055603] Kernel panic - not syncing: Attempted to kill init! > exitcode=0x0000000b > [ 3.063323] ---[ end Kernel panic - not syncing: Attempted to kill > init! exitcode=0x0000000b ]--- > > Once I get past this, I'll try to test the thermal stuff. > > adam > > > > > adam > > > > > > Regards, > > > > > > Tony