Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp513760pxb; Fri, 8 Jan 2021 10:33:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJwt6DPJQvndbZYgL/ZNppYRXiI05aClD36gfMnZGXWgB8btsn1M7Zdd0Vbjq1atoA+efue7 X-Received: by 2002:a17:907:b09:: with SMTP id h9mr3547621ejl.155.1610130832302; Fri, 08 Jan 2021 10:33:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610130832; cv=none; d=google.com; s=arc-20160816; b=PJ0QOLCm9tHdZZ3Y9473XOwZHh7bF24h8VvjzEhQ6nu+duqVVhr4wgfqpAYtRk2Gn1 uysLoQ9i0Weo6t7p8ZHompd+7KBQ27D5LMrA+3w40700Pu1jfSwbsYDfFcDCRq8TvQ6R XxpUnojXZ2QwsH/DDUHEcBgIHJ6vTpu+j3iedR3uPW4OcJB0tOkMwjxEcyWm419SlApu Wj1CPmPShCabQyLP6OypxJU3cQqRTbSFCTBCoufc3djQxWQt1OcsGrfdou3jEenpxxnY p4eEQ+mD20TaT9WcTm0AtwTLulCe4S0yp+EIS9Jz9jD5HQbi/t+fDP1tcJ/O2YxtyWjO wESQ== 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=0BlUHgKNMv9YrK7lCvnTL1WUMTl1HZQ3/mwN2WXhlmg=; b=MIvcL3RTLdN6+whUjdXyonDjG1rAQH+tAmgikY75ZyZLXmo1LuizkGRkAEmndlXVR5 N7Po2CArS+FLNRDzheuho3De5lnri2J7k26VSISQq/FJ4C+OQ7vFqk2LRK86raZUr6Hz COucgmL1dZ1BgBZuolE1lVwk6dozsfSBzlNQgwfZe2wwLKxHSSFyHEpr6hFCSYogcjt5 XKqEeEH8ZlDvI9Bs0wLu0LdTaW6klKwy/QcCC3PCkxfNNOPdedC+5jWbAEW1yQLTiEyF purw9UOyxqJW6ivW/FZFgJ+EmTFIRjKwARYRLBoSmrwAHlmwUpKmAOVvlPJnlm2tubmS kc8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eBuRcMON; 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 z23si3891820edx.444.2021.01.08.10.33.28; Fri, 08 Jan 2021 10:33:52 -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=eBuRcMON; 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 S1728719AbhAHSb4 (ORCPT + 99 others); Fri, 8 Jan 2021 13:31:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728519AbhAHSbz (ORCPT ); Fri, 8 Jan 2021 13:31:55 -0500 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C70FC061380; Fri, 8 Jan 2021 10:31:15 -0800 (PST) Received: by mail-il1-x12d.google.com with SMTP id 14so9920615ilq.2; Fri, 08 Jan 2021 10:31:15 -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=0BlUHgKNMv9YrK7lCvnTL1WUMTl1HZQ3/mwN2WXhlmg=; b=eBuRcMONqftbbi1g47dCr74dSvP5KHK0NxWks6LuFs5U/ceuKUhM8C7TgEg93zGZyh 3PozXU6Xwmh02whV9B4IpgtratvfABpTSl+0QAxFVCPTcY4MV3U5hSkEF0LbgG7dX4e7 fXkGwWs6wpeLnNZDgmZrMNkWVYtBLAKXcA6FkKYJsvnloiuuNIMstwqTKd9Vo+r949PB tMqIaY4Y4rcPdKkk9HUk2mRoe12WvmamnGvOg+yCTAfF3WHbpPwa7Pqu1qPqdfyE3NOz gaX+RWyj977R8V4Eomsgs4i7LUsKrFye1zwNGN/qXV8RdXBOaHZBlFtnwXHoHgvlWrKN wKuw== 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=0BlUHgKNMv9YrK7lCvnTL1WUMTl1HZQ3/mwN2WXhlmg=; b=okRHkhve+pJPMZMYb0HlAXVC+N0K1G9bxacm0BW7QyAbWVxmr6uyEzL1LfOrckD1zP cuOVJ7SSCyvnNQuF+RTvLr4Y46KE6FVQKydnm23kCAOmk7HLlHdCwm6SHdilh8Z6eL1d ImKQVvdj4aN1BNBCg7zMb+X76yoCEN+1Y3D3lL8QmkbCF2XO9ONwGIBqkBeSTdLyM3c5 6nvcXkVtZ6aC1p6Ac0cYEycvqzT45Rfo2vOV+3t4bE+wu3pwYVL0XEyA4bFHdsefi+0b xWh8RrHDpBthvooScayc0qpxoMw/pyMfgeisUArcGB12N7bJ5ejVIJ3tHvWJswu0odVH CcNA== X-Gm-Message-State: AOAM5318Cbjwt6C1WjObTO3e3FR4o8B+c/mhX9Q8MzVgN1Ff+PkJr+CC sQqWQMjstJ76VHR21Em7bXFv1TupbghIQYuD8UA= X-Received: by 2002:a92:c081:: with SMTP id h1mr4942286ile.46.1610130674387; Fri, 08 Jan 2021 10:31:14 -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 12:31:03 -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 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 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