All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Merlijn Wajer <merlijn@wizzup.org>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>,
	"Merlijn B.W. Wajer" <merlijn@archive.org>,
	Andreas Kemnade <andreas@kemnade.info>,
	Pavel Machek <pavel@ucw.cz>,
	linux-omap <linux-omap@vger.kernel.org>,
	Dev Null <devnull@uvos.xyz>,
	Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>,
	Sebastian Reichel <sre@kernel.org>,
	"H. Nikolaus Schaller" <hns@goldelico.com>
Subject: Re: Oops while booting 5.15.2 on Nokia N900
Date: Sat, 18 Dec 2021 09:34:22 +0200	[thread overview]
Message-ID: <Yb2O/m4wMYdMgZbh@atomide.com> (raw)
In-Reply-To: <aaf5d01a-4e31-67cc-7312-4449a30a0de8@wizzup.org>

[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]

* Merlijn Wajer <merlijn@wizzup.org> [211216 11:34]:
> Hi,
> 
> On 13/12/2021 14:50, Tony Lindgren wrote:
> > * Merlijn Wajer <merlijn@wizzup.org> [211213 10:45]:
> >
> >> and I am no longer seeing the oopses or resets when running "sleep 30;
> >> blkid" from minimal userspace.
> > 
> > If disabling the cpu_thermal makes things behave, chances are we have wrong
> > thermal values in the dts for n900 and possible all 34xx devices. The 36xx
> > values are behaving AFAIK.
> 
> Just disabling the bandgap doesn't seem to be enough. I also tried
> disabling just the bandgap and thermal_zones, but that is also isn't
> enough. However, *just* disabling cpu_thermal also isn't enough.
> 
> Disabling both cpu_thermal and bandgap is enough to stop the oopses [1].
> So it sounds like there might potentially be some problems in
> cpu_thermal as well then?

Not sure what's wrong..

But meanwhile, looks like the patch below produces thermal values, so
maybe check if it allows idling with thermal enabled on n900. It might
just leave out all the extra polling.

Regards,

Tony

[-- Attachment #2: test.patch --]
[-- Type: text/plain, Size: 639 bytes --]

diff --git a/drivers/thermal/ti-soc-thermal/omap3-thermal-data.c b/drivers/thermal/ti-soc-thermal/omap3-thermal-data.c
--- a/drivers/thermal/ti-soc-thermal/omap3-thermal-data.c
+++ b/drivers/thermal/ti-soc-thermal/omap3-thermal-data.c
@@ -66,7 +66,8 @@ omap34xx_adc_to_temp[128] = {
 
 /* OMAP34XX data */
 const struct ti_bandgap_data omap34xx_data = {
-	.features = TI_BANDGAP_FEATURE_CLK_CTRL | TI_BANDGAP_FEATURE_UNRELIABLE,
+	.features = TI_BANDGAP_FEATURE_CLK_CTRL | TI_BANDGAP_FEATURE_UNRELIABLE |
+		    TI_BANDGAP_FEATURE_CONT_MODE_ONLY,
 	.fclock_name = "ts_fck",
 	.div_ck_name = "ts_fck",
 	.conv_table = omap34xx_adc_to_temp,

      reply	other threads:[~2021-12-18  7:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-26 23:11 Oops while booting 5.15.2 on Nokia N900 Merlijn B.W. Wajer
2021-11-27 15:40 ` Merlijn B.W. Wajer
2021-12-08 14:12   ` Merlijn B.W. Wajer
2021-12-08 15:04     ` Merlijn B.W. Wajer
2021-12-08 20:57       ` Pavel Machek
2021-12-08 21:04         ` Andreas Kemnade
2021-12-08 22:34           ` Merlijn B.W. Wajer
2021-12-10 11:13             ` Aaro Koskinen
2021-12-10 23:43               ` Merlijn Wajer
2021-12-10 23:46               ` Merlijn Wajer
2021-12-11  6:57                 ` Tony Lindgren
2021-12-11 11:10                   ` Merlijn Wajer
2021-12-13  5:47                     ` Tony Lindgren
2021-12-13 10:36                       ` Merlijn Wajer
2021-12-13 10:50                         ` Merlijn Wajer
2021-12-13 13:50                           ` Tony Lindgren
2021-12-16 11:38                             ` Merlijn Wajer
2021-12-18  7:34                               ` Tony Lindgren [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Yb2O/m4wMYdMgZbh@atomide.com \
    --to=tony@atomide.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=andreas@kemnade.info \
    --cc=devnull@uvos.xyz \
    --cc=hns@goldelico.com \
    --cc=ivo.g.dimitrov.75@gmail.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=merlijn@archive.org \
    --cc=merlijn@wizzup.org \
    --cc=pavel@ucw.cz \
    --cc=sre@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.