* regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks @ 2023-08-31 9:25 Frank Wunderlich 2023-08-31 9:53 ` Bagas Sanjaya 2023-08-31 13:34 ` Aw: " Frank Wunderlich 0 siblings, 2 replies; 8+ messages in thread From: Frank Wunderlich @ 2023-08-31 9:25 UTC (permalink / raw) To: Markus Schneider-Pargmann, Fabien Parent, Amjad Ouled-Ameur Cc: Daniel Golle, linux-mediatek, linux-kernel, Alex Riabchenko, AngeloGioacchino Del Regno, Matthias Brugger, Daniel Lezcano Hi, The commit 33140e668b10 "thermal/drivers/mediatek: Control buffer enablement tweaks" is merged between 6.3 and 6.4 and causes a regression where temperature cannot be read correctly at least for mt7986/Bpi-R3. bpi-r3 ~ # cat /sys/class/thermal/thermal_zone0/temp -274000 after reverting the commit and fixing some build-errors in 6.5-rc7 because new members used in mt8365_thermal_data too, we can read temperature on mt7986 again. i guess reverting the commit is not the right way, so i ask here for a better solution regards Frank ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks 2023-08-31 9:25 regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks Frank Wunderlich @ 2023-08-31 9:53 ` Bagas Sanjaya 2023-09-12 12:23 ` Linux regression tracking #update (Thorsten Leemhuis) 2023-08-31 13:34 ` Aw: " Frank Wunderlich 1 sibling, 1 reply; 8+ messages in thread From: Bagas Sanjaya @ 2023-08-31 9:53 UTC (permalink / raw) To: Frank Wunderlich, Markus Schneider-Pargmann, Fabien Parent, Amjad Ouled-Ameur Cc: Daniel Golle, linux-mediatek, linux-kernel, Alex Riabchenko, AngeloGioacchino Del Regno, Matthias Brugger, Daniel Lezcano, Linux Regressions [-- Attachment #1: Type: text/plain, Size: 771 bytes --] On Thu, Aug 31, 2023 at 11:25:11AM +0200, Frank Wunderlich wrote: > Hi, > > The commit 33140e668b10 "thermal/drivers/mediatek: Control buffer enablement tweaks" is merged between 6.3 and 6.4 and causes a regression where temperature cannot be read correctly at least for mt7986/Bpi-R3. > > bpi-r3 ~ # cat /sys/class/thermal/thermal_zone0/temp > -274000 > > after reverting the commit and fixing some build-errors in 6.5-rc7 because new members used in mt8365_thermal_data too, we can read temperature on mt7986 again. > Thanks for the regression report. I'm adding it to regzbot: #regzbot ^introduced: 33140e668b1020 #regzbot title: incorrect temperature on MT7986 due to tweaking buffer -- An old man doll... just what I always wanted! - Clara [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks 2023-08-31 9:53 ` Bagas Sanjaya @ 2023-09-12 12:23 ` Linux regression tracking #update (Thorsten Leemhuis) 2023-11-01 11:03 ` Linux regression tracking #update (Thorsten Leemhuis) 0 siblings, 1 reply; 8+ messages in thread From: Linux regression tracking #update (Thorsten Leemhuis) @ 2023-09-12 12:23 UTC (permalink / raw) To: Bagas Sanjaya, Frank Wunderlich Cc: linux-mediatek, linux-kernel, Linux Regressions [TLDR: This mail in primarily relevant for Linux regression tracking. A change or fix related to the regression discussed in this thread was posted or applied, but it did not use a Closes: tag to point to the report, as Linus and the documentation call for. Things happen, no worries -- but now the regression tracking bot needs to be told manually about the fix. See link in footer if these mails annoy you.] On 31.08.23 11:53, Bagas Sanjaya wrote: > On Thu, Aug 31, 2023 at 11:25:11AM +0200, Frank Wunderlich wrote: >> >> The commit 33140e668b10 "thermal/drivers/mediatek: Control buffer enablement tweaks" is merged between 6.3 and 6.4 and causes a regression where temperature cannot be read correctly at least for mt7986/Bpi-R3. >> >> bpi-r3 ~ # cat /sys/class/thermal/thermal_zone0/temp >> -274000 >> >> after reverting the commit and fixing some build-errors in 6.5-rc7 because new members used in mt8365_thermal_data too, we can read temperature on mt7986 again. >> > > Thanks for the regression report. I'm adding it to regzbot: > > #regzbot ^introduced: 33140e668b1020 > #regzbot title: incorrect temperature on MT7986 due to tweaking buffer #regzbot monitor: https://lore.kernel.org/all/20230907112018.52811-1-linux@fw-web.de/ #regzbot fix: thermal/drivers/mediatek: Fix control buffer enablement on MT7896 #regzbot ignore-activity Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks 2023-09-12 12:23 ` Linux regression tracking #update (Thorsten Leemhuis) @ 2023-11-01 11:03 ` Linux regression tracking #update (Thorsten Leemhuis) 0 siblings, 0 replies; 8+ messages in thread From: Linux regression tracking #update (Thorsten Leemhuis) @ 2023-11-01 11:03 UTC (permalink / raw) To: Bagas Sanjaya, Frank Wunderlich Cc: linux-mediatek, linux-kernel, Linux Regressions [TLDR: This mail in primarily relevant for Linux regression tracking. A change or fix related to the regression discussed in this thread was posted or applied, but it did not use a Closes: tag to point to the report, as Linus and the documentation call for. Things happen, no worries -- but now the regression tracking bot needs to be told manually about the fix. See link in footer if these mails annoy you.] On 12.09.23 14:23, Linux regression tracking #update (Thorsten Leemhuis) wrote: > > On 31.08.23 11:53, Bagas Sanjaya wrote: >> On Thu, Aug 31, 2023 at 11:25:11AM +0200, Frank Wunderlich wrote: >>> >>> The commit 33140e668b10 "thermal/drivers/mediatek: Control buffer enablement tweaks" is merged between 6.3 and 6.4 and causes a regression where temperature cannot be read correctly at least for mt7986/Bpi-R3. >>> >>> bpi-r3 ~ # cat /sys/class/thermal/thermal_zone0/temp >>> -274000 >>> >>> after reverting the commit and fixing some build-errors in 6.5-rc7 because new members used in mt8365_thermal_data too, we can read temperature on mt7986 again. >>> >> >> Thanks for the regression report. I'm adding it to regzbot: >> >> #regzbot ^introduced: 33140e668b1020 >> #regzbot title: incorrect temperature on MT7986 due to tweaking buffer > > > #regzbot monitor: > https://lore.kernel.org/all/20230907112018.52811-1-linux@fw-web.de/ > #regzbot fix: thermal/drivers/mediatek: Fix control buffer enablement on > MT7896 > #regzbot ignore-activity patch title changed, hence: #regzbot fix: 5055fadfa7e16f242 #regzbot ignore-activity Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Aw: regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks 2023-08-31 9:25 regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks Frank Wunderlich 2023-08-31 9:53 ` Bagas Sanjaya @ 2023-08-31 13:34 ` Frank Wunderlich 2023-09-12 12:57 ` Daniel Lezcano 1 sibling, 1 reply; 8+ messages in thread From: Frank Wunderlich @ 2023-08-31 13:34 UTC (permalink / raw) To: Frank Wunderlich Cc: Markus Schneider-Pargmann, Fabien Parent, Amjad Ouled-Ameur, Daniel Golle, linux-mediatek, linux-kernel, Alex Riabchenko, AngeloGioacchino Del Regno, Matthias Brugger, Daniel Lezcano Hi, looked a bit deeper into it and it looks like i only need to add the fields in the mtk_thermal_data struct --- a/drivers/thermal/mediatek/auxadc_thermal.c +++ b/drivers/thermal/mediatek/auxadc_thermal.c @@ -690,6 +690,9 @@ static const struct mtk_thermal_data mt7986_thermal_data = { .adcpnp = mt7986_adcpnp, .sensor_mux_values = mt7986_mux_values, .version = MTK_THERMAL_V3, + .apmixed_buffer_ctl_reg = APMIXED_SYS_TS_CON1, + .apmixed_buffer_ctl_mask = GENMASK(31, 6) | BIT(3), + .apmixed_buffer_ctl_set = BIT(0), }; in my quick test the temprature can be read again and i'm near room temperature...i though it was a bit higher before, but as far as i understand the code, the values were fixed before and only made it configurable. if someone can confirm that i'm right, i can send official patch. regards Frank > Gesendet: Donnerstag, 31. August 2023 um 11:25 Uhr > Von: "Frank Wunderlich" <frank-w@public-files.de> > Hi, > > The commit 33140e668b10 "thermal/drivers/mediatek: Control buffer enablement tweaks" is merged between 6.3 and 6.4 and causes a regression where temperature cannot be read correctly at least for mt7986/Bpi-R3. > > bpi-r3 ~ # cat /sys/class/thermal/thermal_zone0/temp > -274000 > > after reverting the commit and fixing some build-errors in 6.5-rc7 because new members used in mt8365_thermal_data too, we can read temperature on mt7986 again. > > i guess reverting the commit is not the right way, so i ask here for a better solution > > regards Frank ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Aw: regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks 2023-08-31 13:34 ` Aw: " Frank Wunderlich @ 2023-09-12 12:57 ` Daniel Lezcano 2023-09-12 13:46 ` Markus Schneider-Pargmann 0 siblings, 1 reply; 8+ messages in thread From: Daniel Lezcano @ 2023-09-12 12:57 UTC (permalink / raw) To: Frank Wunderlich Cc: Markus Schneider-Pargmann, Fabien Parent, Amjad Ouled-Ameur, Daniel Golle, linux-mediatek, linux-kernel, Alex Riabchenko, AngeloGioacchino Del Regno, Matthias Brugger Hi Frank, thanks for reporting and investigating the issue. On 31/08/2023 15:34, Frank Wunderlich wrote: > Hi, > > looked a bit deeper into it and it looks like i only need to add the fields in the mtk_thermal_data struct > > --- a/drivers/thermal/mediatek/auxadc_thermal.c > +++ b/drivers/thermal/mediatek/auxadc_thermal.c > @@ -690,6 +690,9 @@ static const struct mtk_thermal_data mt7986_thermal_data = { > .adcpnp = mt7986_adcpnp, > .sensor_mux_values = mt7986_mux_values, > .version = MTK_THERMAL_V3, > + .apmixed_buffer_ctl_reg = APMIXED_SYS_TS_CON1, > + .apmixed_buffer_ctl_mask = GENMASK(31, 6) | BIT(3), > + .apmixed_buffer_ctl_set = BIT(0), > }; > > in my quick test the temprature can be read again and i'm near room temperature...i though it was a bit higher before, but as far as i understand the code, the values were fixed before and only made it configurable. > > if someone can confirm that i'm right, i can send official patch. At the first glance, it seems the proposed change is correct and could be proposed as a hot fix. However, the conditions with the version and the apmixed_buffer_ctl_reg looks a bit fuzzy. Markus, can you revisit this part of code and consolidate the configurable approach ? -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks 2023-09-12 12:57 ` Daniel Lezcano @ 2023-09-12 13:46 ` Markus Schneider-Pargmann 2023-09-12 20:38 ` Frank Wunderlich 0 siblings, 1 reply; 8+ messages in thread From: Markus Schneider-Pargmann @ 2023-09-12 13:46 UTC (permalink / raw) To: Daniel Lezcano Cc: Alex Riabchenko, linux-kernel, Daniel Golle, Fabien Parent, linux-mediatek, Amjad Ouled-Ameur, Matthias Brugger, AngeloGioacchino Del Regno Hi Frank and Daniel, On Tue, Sep 12, 2023 at 02:57:45PM +0200, Daniel Lezcano wrote: > > Hi Frank, > > thanks for reporting and investigating the issue. > > > On 31/08/2023 15:34, Frank Wunderlich wrote: > > Hi, > > > > looked a bit deeper into it and it looks like i only need to add the fields in the mtk_thermal_data struct > > > > --- a/drivers/thermal/mediatek/auxadc_thermal.c > > +++ b/drivers/thermal/mediatek/auxadc_thermal.c > > @@ -690,6 +690,9 @@ static const struct mtk_thermal_data mt7986_thermal_data = { > > .adcpnp = mt7986_adcpnp, > > .sensor_mux_values = mt7986_mux_values, > > .version = MTK_THERMAL_V3, > > + .apmixed_buffer_ctl_reg = APMIXED_SYS_TS_CON1, > > + .apmixed_buffer_ctl_mask = GENMASK(31, 6) | BIT(3), > > + .apmixed_buffer_ctl_set = BIT(0), > > }; > > > > in my quick test the temprature can be read again and i'm near room temperature...i though it was a bit higher before, but as far as i understand the code, the values were fixed before and only made it configurable. > > > > if someone can confirm that i'm right, i can send official patch. Sorry for the delay, this was in my inbox but somehow not on my todo list. The patch looks correct. I think I simply missed adding the fields for MTK_THERMAL_V3 chips. Sorry! > > At the first glance, it seems the proposed change is correct and could be > proposed as a hot fix. > > However, the conditions with the version and the apmixed_buffer_ctl_reg > looks a bit fuzzy. > > Markus, can you revisit this part of code and consolidate the configurable > approach ? Yes, it indeed looks like I broke another condition there. I will give it another close look and send a fix. Best, Markus ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks 2023-09-12 13:46 ` Markus Schneider-Pargmann @ 2023-09-12 20:38 ` Frank Wunderlich 0 siblings, 0 replies; 8+ messages in thread From: Frank Wunderlich @ 2023-09-12 20:38 UTC (permalink / raw) To: Markus Schneider-Pargmann, Daniel Lezcano Cc: Fabien Parent, Amjad Ouled-Ameur, Daniel Golle, linux-mediatek, linux-kernel, Alex Riabchenko, AngeloGioacchino Del Regno, Matthias Brugger Am 12. September 2023 15:46:17 MESZ schrieb Markus Schneider-Pargmann <msp@baylibre.com>: >Hi Frank and Daniel, > >On Tue, Sep 12, 2023 at 02:57:45PM +0200, Daniel Lezcano wrote: >> >> Hi Frank, >> >> thanks for reporting and investigating the issue. >> >> >> On 31/08/2023 15:34, Frank Wunderlich wrote: >> > Hi, >> > >> > looked a bit deeper into it and it looks like i only need to add the fields in the mtk_thermal_data struct >> > >> > --- a/drivers/thermal/mediatek/auxadc_thermal.c >> > +++ b/drivers/thermal/mediatek/auxadc_thermal.c >> > @@ -690,6 +690,9 @@ static const struct mtk_thermal_data mt7986_thermal_data = { >> > .adcpnp = mt7986_adcpnp, >> > .sensor_mux_values = mt7986_mux_values, >> > .version = MTK_THERMAL_V3, >> > + .apmixed_buffer_ctl_reg = APMIXED_SYS_TS_CON1, >> > + .apmixed_buffer_ctl_mask = GENMASK(31, 6) | BIT(3), >> > + .apmixed_buffer_ctl_set = BIT(0), >> > }; >> > >> > in my quick test the temprature can be read again and i'm near room temperature...i though it was a bit higher before, but as far as i understand the code, the values were fixed before and only made it configurable. >> > >> > if someone can confirm that i'm right, i can send official patch. > >Sorry for the delay, this was in my inbox but somehow not on my todo >list. > >The patch looks correct. I think I simply missed adding the fields for >MTK_THERMAL_V3 chips. Sorry! > >> >> At the first glance, it seems the proposed change is correct and could be >> proposed as a hot fix. >> >> However, the conditions with the version and the apmixed_buffer_ctl_reg >> looks a bit fuzzy. >> >> Markus, can you revisit this part of code and consolidate the configurable >> approach ? > >Yes, it indeed looks like I broke another condition there. I will give >it another close look and send a fix. > >Best, >Markus Hi I already sent the Patch below https://patchwork.kernel.org/project/linux-mediatek/patch/20230907112018.52811-1-linux@fw-web.de/ If it is correct (handled the same way as mt7622 before) you have not to send a patch. But you should maybe check condition !=V2 is correct when loocking on v3. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/thermal/mediatek/auxadc_thermal.c?id=33140e668b10200b775779f302b143b32e6ae7ca Regards Frank ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-11-01 11:03 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-08-31 9:25 regression with 33140e668b10 thermal/drivers/mediatek: Control buffer enablement tweaks Frank Wunderlich 2023-08-31 9:53 ` Bagas Sanjaya 2023-09-12 12:23 ` Linux regression tracking #update (Thorsten Leemhuis) 2023-11-01 11:03 ` Linux regression tracking #update (Thorsten Leemhuis) 2023-08-31 13:34 ` Aw: " Frank Wunderlich 2023-09-12 12:57 ` Daniel Lezcano 2023-09-12 13:46 ` Markus Schneider-Pargmann 2023-09-12 20:38 ` Frank Wunderlich
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.