All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Walle <michael@walle.cc>
To: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: abailon@baylibre.com, anarsoul@gmail.com, baolin.wang7@gmail.com,
	bjorn.andersson@linaro.org, broonie@kernel.org,
	damien.lemoal@opensource.wdc.com, digetx@gmail.com,
	f.fainelli@gmail.com, glaroque@baylibre.com,
	hayashi.kunihiko@socionext.com, heiko@sntech.de,
	j-keerthy@ti.com, jonathanh@nvidia.com, khilman@baylibre.com,
	linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
	lukasz.luba@arm.com, matthias.bgg@gmail.com,
	mcoquelin.stm32@gmail.com, mhiramat@kernel.org,
	miquel.raynal@bootlin.com, niklas.soderlund@ragnatech.se,
	rafael@kernel.org, rui.zhang@intel.com, shawnguo@kernel.org,
	talel@amazon.com, thierry.reding@gmail.com,
	tiny.windzz@gmail.com, Guenter Roeck <linux@roeck-us.net>
Subject: Re: [PATCH v5 00/33] New thermal OF code
Date: Mon, 08 Aug 2022 12:55:15 +0200	[thread overview]
Message-ID: <5daf2b7ebba3a3227ac37643a919add2@walle.cc> (raw)
In-Reply-To: <9b6aea8b-23fb-a882-4c47-5cd70cf266bf@linaro.org>

Hi Daniel,

Am 2022-08-08 12:21, schrieb Daniel Lezcano:
> On 08/08/2022 11:42, Michael Walle wrote:
>>> The following changes are depending on:
>>> 
>>>   - 20220722200007.1839356-1-daniel.lezcano@linexp.org
>>> 
>>> which are present in the thermal/linux-next branch:
>>> 
>>> https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git/log/?h=thermal/linux-next
>>> 
>>> The series introduces a new thermal OF code. The patch description 
>>> gives
>>> a detailed explanation of the changes. Basically we write new OF 
>>> parsing
>>> functions, we migrate all the users of the old thermal OF API to the 
>>> new
>>> one and then we finish by removing the old OF code.
>>> 
>>> That is the second step to rework the thermal OF code. More patches 
>>> will
>>> come after that to remove the duplication of the trip definitions in 
>>> the
>>> different drivers which will result in more code duplication removed 
>>> and
>>> consolidation of the core thermal framework.
>>> 
>>> Thanks for those who tested the series on their platform and
>>> investigated the regression with the disabled by default thermal 
>>> zones.
>> I haven't looked closely yet, but this series is breaking two of my
>> boards.
>> 
>> There seems to be one mistake within the new thermal code:
>> 
>> [    2.030452] thermal_sys: Failed to find 'trips' node
>> [    2.033664] usb 1-1: new high-speed USB device number 2 using 
>> xhci-hcd
>> [    2.035434] thermal_sys: Failed to find trip points for tmu id=2
>> [    2.048010] qoriq_thermal 1f80000.tmu: Failed to register sensors
>> [    2.054128] qoriq_thermal: probe of 1f80000.tmu failed with error 
>> -22
>> [    2.060607] devm_thermal_of_zone_release:707 res=ffff002002377180
>> [    2.067044] Unable to handle kernel paging request at virtual 
>> address 01adadadadadad88
>> [    2.075003] Mem abort info:
>> [    2.077805]   ESR = 0x0000000096000004
>> [    2.081562]   EC = 0x25: DABT (current EL), IL = 32 bits
>> [    2.086893]   SET = 0, FnV = 0
>> [    2.089955]   EA = 0, S1PTW = 0
>> [    2.093100]   FSC = 0x04: level 0 translation fault
>> [    2.097993] Data abort info:
>> [    2.100876]   ISV = 0, ISS = 0x00000004
>> [    2.104724]   CM = 0, WnR = 0
>> [    2.107698] [01adadadadadad88] address between user and kernel 
>> address ranges
>> [    2.114863] Internal error: Oops: 96000004 [#1] SMP
>> [    2.119754] Modules linked in:
>> [    2.122815] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 
>> 5.19.0-next-20220808-00078-ga957a15f74fc-dirty #1694
>> [    2.132504] Hardware name: Kontron KBox A-230-LS (DT)
>> [    2.137568] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS 
>> BTYPE=--)
>> [    2.144554] pc : kfree+0x5c/0x3c0
>> [    2.147885] lr : thermal_of_zone_unregister+0x34/0x54
>> [    2.152954] sp : ffff80000a22bab0
>> [    2.156274] x29: ffff80000a22bab0 x28: 0000000000000000 x27: 
>> ffff800009960464
>> [    2.163438] x26: ffff800009a16960 x25: 0000000000000006 x24: 
>> ffff800009f09a40
>> [    2.170601] x23: ffff800009ab9008 x22: ffff800008d0d684 x21: 
>> 01adadadadadad80
>> [    2.177763] x20: 6b6b6b6b6b6b6b6b x19: ffff002002335000 x18: 
>> 00000000fffffffb
>> [    2.184925] x17: ffff800008d0d67c x16: ffff800008d072b4 x15: 
>> ffff800008d0c6c4
>> [    2.192087] x14: ffff800008d0c34c x13: ffff8000088d5034 x12: 
>> ffff8000088d46d4
>> [    2.199248] x11: ffff8000088d4624 x10: 0000000000000000 x9 : 
>> ffff800008d0d684
>> [    2.206410] x8 : ffff002000b1a158 x7 : bbbbbbbbbbbbbbbb x6 : 
>> ffff80000a0f53b8
>> [    2.213572] x5 : ffff80000a22b940 x4 : 0000000000000000 x3 : 
>> 0000000000000000
>> [    2.220733] x2 : fffffc0000000000 x1 : ffff002000838040 x0 : 
>> 01adb1adadadad80
>> [    2.227895] Call trace:
>> [    2.230342]  kfree+0x5c/0x3c0
>> [    2.233318]  thermal_of_zone_unregister+0x34/0x54
>> [    2.238036]  devm_thermal_of_zone_release+0x44/0x54
>> [    2.242931]  release_nodes+0x64/0xd0
>> [    2.246516]  devres_release_all+0xbc/0x350
>> [    2.250623]  device_unbind_cleanup+0x20/0x70
>> [    2.254905]  really_probe+0x1a0/0x2e4
>> [    2.258577]  __driver_probe_device+0x80/0xec
>> [    2.262859]  driver_probe_device+0x44/0x130
>> [    2.267055]  __driver_attach+0x104/0x1b4
>> [    2.270989]  bus_for_each_dev+0x7c/0xe0
>> [    2.274834]  driver_attach+0x30/0x40
>> [    2.278418]  bus_add_driver+0x160/0x210
>> [    2.281900] hub 1-1:1.0: USB hub found
>> [    2.282264]  driver_register+0x84/0x140
>> [    2.286109] hub 1-1:1.0: 7 ports detected
>> [    2.289859]  __platform_driver_register+0x34/0x40
>> [    2.289867]  qoriq_tmu_init+0x28/0x34
>> [    2.302258]  do_one_initcall+0x50/0x250
>> [    2.306104]  kernel_init_freeable+0x278/0x31c
>> [    2.310474]  kernel_init+0x30/0x140
>> [    2.313972]  ret_from_fork+0x10/0x20
>> [    2.317559] Code: b25657e2 d34cfc00 d37ae400 8b020015 (f94006a1)
>> [    2.323672] ---[ end trace 0000000000000000 ]---
>> [    2.328317] Kernel panic - not syncing: Attempted to kill init! 
>> exitcode=0x0000000b
>> [    2.335999] SMP: stopping secondary CPUs
>> [    2.339932] Kernel Offset: disabled
>> [    2.343425] CPU features: 0x2000,0800f021,00001086
>> [    2.348229] Memory Limit: none
>> [    2.351289] ---[ end Kernel panic - not syncing: Attempted to kill 
>> init! exitcode=0x0000000b ]---
>> 
>> This was seen a sl28 board
>> (arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts).
>> The same board in the KernelCI also have some more information:
>> https://lavalab.kontron.com/scheduler/job/151900#L1162
>> 
>> But I guess even if that is fixed, the driver will not probe due to 
>> the
>> missing trip points? Are they now mandatory? Does it mean we'd need to
>> update our device trees? But that will then mean older devices trees
>> don't work anymore.
> 
> Thanks for reporting, I'll investigate the issues you are reporting.
> 
> There is no need to update any device tree file. The code does not
> change the bindings, it is a rewrite of the implementation supposed to
> be without impact on the existing bindings, thus the existing device
> tree descriptions.
> 
> Why are you saying there are missing trip points ? The dts shows trip
> points for 'core-cluster' and 'ddr-controller' ?

You are right. I've just looked at the error message:

[    2.030452] thermal_sys: Failed to find 'trips' node
[    2.033664] usb 1-1: new high-speed USB device number 2 using 
xhci-hcd
[    2.035434] thermal_sys: Failed to find trip points for tmu id=2

So maybe the code just don't find em.

-michael

  reply	other threads:[~2022-08-08 10:55 UTC|newest]

Thread overview: 116+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-04 22:43 [PATCH v5 00/33] New thermal OF code Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 01/33] thermal/of: Rework the thermal device tree initialization Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-10-18 10:29   ` [PATCH v5 01/33] " Ido Schimmel
2022-10-18 10:33     ` Ido Schimmel
2022-10-19 19:53     ` Daniel Lezcano
2022-10-20 10:39       ` Ido Schimmel
2022-08-04 22:43 ` [PATCH v5 02/33] thermal/of: Make new code and old code co-exist Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 03/33] thermal/drivers/rockchip: Switch to new of API Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 04/33] thermal/drivers/uniphier: " Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-15 14:18   ` Kunihiko Hayashi
2022-08-15 14:18     ` Kunihiko Hayashi
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 05/33] thermal/drivers/generic-adc: " Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 06/33] thermal/drivers/mmio: " Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 07/33] thermal/drivers/tegra: " Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-09-06 13:11   ` [PATCH v5 07/33] " Dmitry Osipenko
2022-08-04 22:43 ` [PATCH v5 08/33] thermal/drivers/sun8i: " Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 09/33] thermal/drivers/sprd: " Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 10/33] thermal/drivers/broadcom: " Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 11/33] thermal/drivers/qcom: " Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 12/33] thermal/drivers/st: " Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 13/33] thermal/drivers/amlogic: " Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-08  8:07   ` Neil Armstrong
2022-08-08  8:07     ` Neil Armstrong
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 14/33] thermal/drivers/armada: " Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 15/33] thermal/drivers/db8500: " Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 16/33] thermal/drivers/imx: " Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 17/33] thermal/drivers/rcar: " Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 18/33] thermal/drivers/rzg2l: " Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 19/33] thermal/drivers/qoriq: " Daniel Lezcano
2022-08-23 12:43   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 20/33] thermal/drivers/mtk: " Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 21/33] thermal/drivers/banggap: " Daniel Lezcano
2022-08-04 23:30   ` Bryan Brattlof
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 22/33] thermal/drivers/maxim: " Daniel Lezcano
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 23/33] thermal/drivers/hisilicon: " Daniel Lezcano
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 24/33] thermal/drivers/ti-soc: " Daniel Lezcano
2022-08-05  1:19   ` J, KEERTHY
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 25/33] ata/drivers/ahci_imx: Switch to new of thermal API Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 26/33] hwmon/drivers/pm_bus: " Daniel Lezcano
2022-08-08 10:29   ` Guenter Roeck
2022-08-10 10:23     ` Daniel Lezcano
2022-08-10 12:41       ` Guenter Roeck
2022-08-23 12:42   ` [thermal: thermal/next] hwmon: pm_bus: core: " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 27/33] hwmon/drivers/core: " Daniel Lezcano
2022-08-08 10:27   ` Guenter Roeck
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 28/33] iio/drivers/sun4i_gpadc: " Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-14 10:11   ` Jernej Škrabec
2022-08-14 10:11     ` Jernej Škrabec
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 29/33] Input: sun4i-ts - switch " Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-14 10:12   ` Jernej Škrabec
2022-08-14 10:12     ` Jernej Škrabec
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 30/33] regulator/drivers/max8976: Switch " Daniel Lezcano
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 31/33] thermal/drivers/samsung: " Daniel Lezcano
2022-08-04 22:43   ` Daniel Lezcano
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 32/33] thermal/core: Move set_trip_temp ops to the sysfs code Daniel Lezcano
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-04 22:43 ` [PATCH v5 33/33] thermal/of: Remove old OF code Daniel Lezcano
2022-08-23 12:42   ` [thermal: thermal/next] " thermal-bot for Daniel Lezcano
2022-08-08  9:42 ` [PATCH v5 00/33] New thermal " Michael Walle
2022-08-08 10:21   ` Daniel Lezcano
2022-08-08 10:55     ` Michael Walle [this message]
2022-08-08 11:06       ` Daniel Lezcano
2022-08-08 10:26   ` Guenter Roeck
2022-08-09  8:53     ` Daniel Lezcano
2022-08-09 14:32       ` Guenter Roeck
2022-08-09 15:37         ` Daniel Lezcano
2022-08-10  8:34     ` Daniel Lezcano
2022-08-10  9:56       ` Guenter Roeck
2022-08-08 13:09   ` Daniel Lezcano
2022-08-08 13:24     ` Michael Walle
2022-08-08 13:31       ` Daniel Lezcano
2022-08-09  8:23   ` Daniel Lezcano
2022-08-10  8:01     ` Michael Walle
2022-08-10  8:26       ` Daniel Lezcano

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=5daf2b7ebba3a3227ac37643a919add2@walle.cc \
    --to=michael@walle.cc \
    --cc=abailon@baylibre.com \
    --cc=anarsoul@gmail.com \
    --cc=baolin.wang7@gmail.com \
    --cc=bjorn.andersson@linaro.org \
    --cc=broonie@kernel.org \
    --cc=damien.lemoal@opensource.wdc.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=digetx@gmail.com \
    --cc=f.fainelli@gmail.com \
    --cc=glaroque@baylibre.com \
    --cc=hayashi.kunihiko@socionext.com \
    --cc=heiko@sntech.de \
    --cc=j-keerthy@ti.com \
    --cc=jonathanh@nvidia.com \
    --cc=khilman@baylibre.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=lukasz.luba@arm.com \
    --cc=matthias.bgg@gmail.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=mhiramat@kernel.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=niklas.soderlund@ragnatech.se \
    --cc=rafael@kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=shawnguo@kernel.org \
    --cc=talel@amazon.com \
    --cc=thierry.reding@gmail.com \
    --cc=tiny.windzz@gmail.com \
    /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.