[PATCH 08/16] clocksource/drivers/timer-atmel-tcb: Allow selecting first divider

2020-07-23 Thread Daniel Lezcano
From: Alexandre Belloni The divider selection algorithm never allowed to get index 0. It was also continuing to look for dividers, trying to find the slow clock selection. This is not necessary anymore. Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano Link: https

[PATCH 07/16] clocksource/drivers/timer-atmel-tcb: Stop using the 32kHz for clockevents

2020-07-23 Thread Daniel Lezcano
From: Alexandre Belloni Stop using the slow clock as the clock source for 32 bit counters because even at 10MHz, they are able to handle delays up to two minutes. This provides a way better resolution. Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano Link: https

[PATCH 13/16] clocksource/drivers/nomadik-mtu: Handle 32kHz clock

2020-07-23 Thread Daniel Lezcano
to the registers. Signed-off-by: Linus Walleij Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200628220153.67011-1-linus.wall...@linaro.org --- drivers/clocksource/nomadik-mtu.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/nomadik

[PATCH 16/16] clocksource/drivers/ingenic: Add support for the Ingenic X1000 OST.

2020-07-23 Thread Daniel Lezcano
Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200722171804.97559-3-zhouyan...@wanyeetech.com --- drivers/clocksource/Kconfig | 12 +- drivers/clocksource/Makefile | 1 + drivers/clocksource

[PATCH 11/16] clocksource/drivers/imx: Add support for i.MX TPM driver with ARM64

2020-07-23 Thread Daniel Lezcano
From: Anson Huang Allows building and compile-testing the i.MX TPM driver for ARM64. Signed-off-by: Anson Huang Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/1594178168-13007-1-git-send-email-anson.hu...@nxp.com --- drivers/clocksource/Kconfig | 3 ++- 1 file changed, 2

[PATCH 14/16] clocksource/drivers: Replace HTTP links with HTTPS ones

2020-07-23 Thread Daniel Lezcano
ob Herring Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200708165856.15322-1-grandmas...@al2klimov.de --- Documentation/devicetree/bindings/timer/ti,keystone-timer.txt | 2 +- drivers/clocksource/timer-ti-32k.c| 2 +- drivers/clocksource/tim

[PATCH 15/16] dt-bindings: timer: Add Ingenic X1000 OST bindings.

2020-07-23 Thread Daniel Lezcano
From: 周琰杰 (Zhou Yanjie) Add the OST bindings for the X1000 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil Reviewed-by: Rob Herring Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200722171804.97559-2-zhouyan

[PATCH 06/16] clocksource/drivers/timer-atmel-tcb: Fill tcb_config

2020-07-23 Thread Daniel Lezcano
From: Alexandre Belloni Use the tcb_config and struct atmel_tcb_config to get the timer counter width. This is necessary because atmel_tcb_config will be extended later on. Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200710230813.1005150-7

[PATCH 10/16] clocksource/drivers/ingenic: Add high resolution timer support for SMP/SMT.

2020-07-23 Thread Daniel Lezcano
Schaller Tested-by: Paul Boddie Signed-off-by: Paul Cercueil Signed-off-by: 周琰杰 (Zhou Yanjie) Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200624170749.31762-2-zhouyan...@wanyeetech.com --- drivers/clocksource/ingenic-timer.c | 182 +++- 1 file changed

[PATCH 12/16] clocksource/drivers/sh_cmt: Use "kHz" for kilohertz

2020-07-23 Thread Daniel Lezcano
From: Geert Uytterhoeven "K" stands for "kelvin". Signed-off-by: Geert Uytterhoeven Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200618080212.16560-1-geert+rene...@glider.be --- drivers/clocksource/sh_cmt.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH 03/16] ARM: dts: at91: sama5d2: add TCB GCLK

2020-07-23 Thread Daniel Lezcano
From: Alexandre Belloni The sama5d2 tcbs take an extra input clock, their gclk. Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200710230813.1005150-4-alexandre.bell...@bootlin.com --- arch/arm/boot/dts/sama5d2.dtsi | 12 ++-- 1 file

[PATCH 01/16] dt-bindings: atmel-tcb: convert bindings to json-schema

2020-07-23 Thread Daniel Lezcano
From: Alexandre Belloni Convert Atmel Timer Counter Blocks bindings to DT schema format using json-schema. Also move it out of mfd as it is not and has never been related to mfd. Signed-off-by: Alexandre Belloni Reviewed-by: Rob Herring Signed-off-by: Daniel Lezcano Link: https

[PATCH 02/16] dt-bindings: microchip: atmel,at91rm9200-tcb: add sama5d2 compatible

2020-07-23 Thread Daniel Lezcano
From: Alexandre Belloni The sama5d2 TC block TIMER_CLOCK1 is different from the at91sam9x5 one. Instead of being MCK / 2, it is the TCB GCLK. Reviewed-by: Rob Herring Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200710230813.1005150-3

[PATCH 09/16] clocksource/drivers/timer-atmel-tcb: Add sama5d2 support

2020-07-23 Thread Daniel Lezcano
From: Alexandre Belloni The first divisor for the sama5d2 is actually the gclk selector. Because the currently remaining divisors are fitting the use case, currently ensure it is skipped. Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r

[PATCH 05/16] clocksource/drivers/timer-atmel-tcb: Rework 32khz clock selection

2020-07-23 Thread Daniel Lezcano
From: Alexandre Belloni On all the supported SoCs, the slow clock is always ATMEL_TC_TIMER_CLOCK5, avoid looking it up and pass it directly to setup_clkevents. Signed-off-by: Alexandre Belloni Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200710230813.1005150-6

[GIT PULL] timer drives for v5.9

2020-07-23 Thread Daniel Lezcano
The following changes since commit 809eb4e9bf9d84eb5b703358afd0d564d514f6d2: dt-bindings: timer: Add renesas,em-sti bindings (2020-05-23 00:03:37 +0200) are available in the Git repository at: https://git.linaro.org/people/daniel.lezcano/linux.git tags/timers-v5.9 for you to fetch changes

Re: [PATCH v5 3/4] RISC-V: Remove CLINT related code from timer and arch

2020-07-23 Thread Daniel Lezcano
timer driver. > > Signed-off-by: Anup Patel > Tested-by: Emil Renner Berhing > --- For drivers/clocksource/* Acked-by: Daniel Lezcano > arch/riscv/Kconfig | 2 +- > arch/riscv/Kconfig.socs | 2 + > arch/riscv/configs/nommu_virt_d

Re: [PATCH v5 2/4] clocksource/drivers: Add CLINT timer driver

2020-07-23 Thread Daniel Lezcano
sted-by: Emil Renner Berhing > --- Acked-by: Daniel Lezcano -- <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

Re: [PATCH v11 0/2] Add support for the OST in Ingenic X1000.

2020-07-22 Thread Daniel Lezcano
On 22/07/2020 19:18, 周琰杰 (Zhou Yanjie) wrote: > v10->v11: > Fix typos. > > 周琰杰 (Zhou Yanjie) (2): > dt-bindings: timer: Add Ingenic X1000 OST bindings. > clocksource: Ingenic: Add support for the Ingenic X1000 OST. > > .../devicetree/bindings/timer/ingenic,sysost.yaml | 63 +++ >

Re: [PATCH v10 0/2] Add support for the OST in Ingenic X1000.

2020-07-22 Thread Daniel Lezcano
On 22/07/2020 18:47, Zhou Yanjie wrote: > Hello Daniel, > > 在 2020/7/21 下午8:53, Daniel Lezcano 写道: >> On 20/07/2020 19:31, 周琰杰 (Zhou Yanjie) wrote: >>> v9->v10: >>> Fix errors which case "make dt_binding_check" failed. >>> >>> 周琰杰

Re: [PATCH v3 0/2] Selftest for cpuidle latency measurement

2020-07-21 Thread Daniel Lezcano
On 21/07/2020 14:42, Pratik Rajesh Sampat wrote: > v2: https://lkml.org/lkml/2020/7/17/369 > Changelog v2-->v3 > Based on comments from Gautham R. Shenoy adding the following in the > selftest, > 1. Grepping modules to determine if already loaded > 2. Wrapper to enable/disable states > 3.

[GIT PULL] timer drivers fix for 5.8-rc7

2020-07-21 Thread Daniel Lezcano
Hi Thomas, The following changes since commit 30c66fc30ee7a98c4f3adf5fb7e213b61884474f: timer: Prevent base->clk from moving backward (2020-07-09 11:56:57 +0200) are available in the Git repository at: https://git.linaro.org/people/daniel.lezcano/linux.git tags/timers-v5.8-rc7 for you

Re: [PATCH] clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4

2020-07-21 Thread Daniel Lezcano
On 21/07/2020 15:11, Carlos Hernandez wrote: > > On 7/17/20 6:29 AM, Daniel Lezcano wrote: >> On 13/07/2020 18:26, Tony Lindgren wrote: >>> Carlos Hernandez reported that we now have a suspend and >>> resume regresssion on am3 and am4 compared to the earlier kernels

Re: [PATCH] thermal: ti-soc-thermal: Fix reversed condition in ti_thermal_expose_sensor()

2020-07-21 Thread Daniel Lezcano
On 16/06/2020 11:19, Dan Carpenter wrote: > This condition is reversed and will cause breakage. > > Fixes: 7440f518dad9 ("thermal/drivers/ti-soc-thermal: Avoid dereferencing > ERR_PTR") > Signed-off-by: Dan Carpenter > --- Applied. -- Linaro.org │ Open source

Re: [PATCH v10 0/2] Add support for the OST in Ingenic X1000.

2020-07-21 Thread Daniel Lezcano
On 20/07/2020 19:31, 周琰杰 (Zhou Yanjie) wrote: > v9->v10: > Fix errors which case "make dt_binding_check" failed. > > 周琰杰 (Zhou Yanjie) (2): > dt-bindings: timer: Add Ingenic X1000 OST bindings. > clocksource: Ingenic: Add support for the Ingenic X1000 OST. > >

Re: [PATCH v4 2/4] clocksource/drivers: Add CLINT timer driver

2020-07-21 Thread Daniel Lezcano
On 21/07/2020 13:49, Anup Patel wrote: > On Tue, Jul 21, 2020 at 4:32 PM Daniel Lezcano > wrote: >> >> On 17/07/2020 09:50, Anup Patel wrote: >>> We add a separate CLINT timer driver for Linux RISC-V M-mode (i.e. >>> RISC-V NoMMU kernel). >>> >>&

Re: [PATCH v4 2/4] clocksource/drivers: Add CLINT timer driver

2020-07-21 Thread Daniel Lezcano
On 17/07/2020 09:50, Anup Patel wrote: > We add a separate CLINT timer driver for Linux RISC-V M-mode (i.e. > RISC-V NoMMU kernel). > > The CLINT MMIO device provides three things: > 1. 64bit free running counter register > 2. 64bit per-CPU time compare registers > 3. 32bit per-CPU

Re: [PATCH] Replace HTTP links with HTTPS ones: CLOCKSOURCE, CLOCKEVENT DRIVERS

2020-07-21 Thread Daniel Lezcano
On 08/07/2020 18:58, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't contain

Re: [PATCH v2] dt-bindings: thermal: Get rid of thermal.txt and replace references

2020-07-21 Thread Daniel Lezcano
On 20/07/2020 13:53, Amit Kucheria wrote: > Now that we have yaml bindings for the thermal subsystem, get rid of the > old bindings (thermal.txt). > > Replace all references to thermal.txt in the Documentation with a link > to the appropriate YAML bindings using the following search and replace >

Re: [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64

2020-07-20 Thread Daniel Lezcano
On 08/07/2020 05:16, Anson Huang wrote: > Allows building and compile-testing the i.MX TPM driver for ARM64. > > Signed-off-by: Anson Huang > --- > Changes since V1: > - select TIMER_OF for CLKSRC_IMX_TPM. > --- > drivers/clocksource/Kconfig | 3 ++- > 1 file changed, 2 insertions(+), 1

Re: [PATCH v4 08/16] thermal: sun8i: add TEMP_CALIB_MASK for calibration data in sun50i_h6_ths_calibrate

2020-07-20 Thread Daniel Lezcano
On 20/07/2020 11:27, Frank Lee wrote: > HI, > On Fri, Jul 17, 2020 at 3:56 PM Daniel Lezcano > wrote: >> >> On 17/07/2020 09:35, Frank Lee wrote: >>> On Fri, Jul 17, 2020 at 12:26 PM Daniel Lezcano >>> wrote: >>>> >>>&g

Re: [PATCH v8 1/2] dt-bindings: timer: Add Ingenic X1000 OST bindings.

2020-07-20 Thread Daniel Lezcano
On 19/07/2020 13:42, 周琰杰 (Zhou Yanjie) wrote: > Add the OST bindings for the X1 SoC from Ingenic. Description: [v8,1/2] dt-bindings: timer: Add Ingenic X1000 OST bindings. Applying: dt-bindings: timer: Add Ingenic X1000 OST bindings. .git/rebase-apply/patch:91: space before tab in indent.

Re: [PATCH] net: genetlink: Move initialization to core_initcall

2020-07-17 Thread Daniel Lezcano
On 17/07/2020 19:34, David Miller wrote: > From: Daniel Lezcano > Date: Wed, 15 Jul 2020 09:43:00 +0200 > >> if you agree with this change, is it possible I merge it through the >> thermal tree in order to fix the issue ? > > No problem: > > Acked-by: Davi

[PATCH 2/2] thermal: core: Move initialization after core initcall

2020-07-17 Thread Daniel Lezcano
. Move the thermal core initialization to postcore level which is very close to core level. Reported-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 1/2] thermal: netlink: Improve the initcall ordering

2020-07-17 Thread Daniel Lezcano
for the thermal-netlink, let's initialize directly from the thermal-core init routine, so we have full control of the init ordering. Reported-by: Marek Szyprowski Tested-by: Marek Szyprowski Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c| 4 drivers/thermal/thermal_netlink.c

Re: [PATCH] clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4

2020-07-17 Thread Daniel Lezcano
On 13/07/2020 18:26, Tony Lindgren wrote: > Carlos Hernandez reported that we now have a suspend and > resume regresssion on am3 and am4 compared to the earlier kernels. While > suspend and resume works with v5.8-rc3, we now get errors with rtcwake: > > pm33xx pm33xx: PM: Could not transition

Re: [PATCH v6 2/2] clocksource: Ingenic: Add support for the Ingenic X1000 OST.

2020-07-17 Thread Daniel Lezcano
On 17/07/2020 08:13, Zhou Yanjie wrote: > Hi Daniel, > > 在 2020/7/17 下午12:20, Daniel Lezcano 写道: >> On 10/07/2020 19:02, 周琰杰 (Zhou Yanjie) wrote: >>> X1000 and SoCs after X1000 (such as X1500 and X1830) had a separate >>> OST, it no longer belongs to TC

Re: [PATCH v4 08/16] thermal: sun8i: add TEMP_CALIB_MASK for calibration data in sun50i_h6_ths_calibrate

2020-07-17 Thread Daniel Lezcano
On 17/07/2020 09:35, Frank Lee wrote: > On Fri, Jul 17, 2020 at 12:26 PM Daniel Lezcano > wrote: >> >> On 14/07/2020 09:13, Frank Lee wrote: >>> From: Yangtao Li >>> >>> For sun50i_h6_ths_calibrate(), the data read from nvmem needs a round of >>

Re: [PATCH v3 2/4] clocksource/drivers: Add CLINT timer driver

2020-07-16 Thread Daniel Lezcano
On 17/07/2020 07:21, Anup Patel wrote: > On Fri, Jul 17, 2020 at 2:57 AM Daniel Lezcano > wrote: >> >> >> Hi Anup, >> >> >> On 15/07/2020 09:15, Anup Patel wrote: >>> The TIME CSR and SBI calls are not available in RISC-V M-mode so we >>

Re: [PATCH 03/20] thermal: rcar_gen3_thermal: Add r8a774e1 support

2020-07-16 Thread Daniel Lezcano
On 15/07/2020 13:08, Lad Prabhakar wrote: > From: Marian-Cristian Rotariu > > Add r8a774e1 specific compatible string. > > Signed-off-by: Marian-Cristian Rotariu > > Signed-off-by: Lad Prabhakar --- Applied, thanks -- Linaro.org │ Open source software for ARM

Re: [PATCH v5 6/6] MAINTAINERS: Add maintainers for MIPS core drivers

2020-07-16 Thread Daniel Lezcano
On 14/07/2020 14:57, Serge Semin wrote: > Add Thomas and myself as maintainers of the MIPS CPU and GIC IRQchip, MIPS > GIC timer and MIPS CPS CPUidle drivers. > > Signed-off-by: Serge Semin > Acked-by: Marc Zyngier Acked-by: Daniel Lezcano > --- > > Changelog v3:

Re: [PATCH v4 00/16] Allwinner A100 Initial support

2020-07-16 Thread Daniel Lezcano
On 14/07/2020 08:55, Frank Lee wrote: > From: Yangtao Li Do you expect me to pick patches 7,8,9 or ack them ? > v4: > -drop "dt-bindings: pinctrl: sunxi: make gpio banks supplies required" > -fix dcdc1 regulator name > -get rid of underscore in dts node name > -Some trivial things in yaml files

Re: [PATCH v4 08/16] thermal: sun8i: add TEMP_CALIB_MASK for calibration data in sun50i_h6_ths_calibrate

2020-07-16 Thread Daniel Lezcano
On 14/07/2020 09:13, Frank Lee wrote: > From: Yangtao Li > > For sun50i_h6_ths_calibrate(), the data read from nvmem needs a round of > calculation. On the other hand, the newer SOC may store other data in > the space other than 12bit sensor data. Add mask operation to read data > to avoid

Re: [PATCH v6 2/2] clocksource: Ingenic: Add support for the Ingenic X1000 OST.

2020-07-16 Thread Daniel Lezcano
On 10/07/2020 19:02, 周琰杰 (Zhou Yanjie) wrote: > X1000 and SoCs after X1000 (such as X1500 and X1830) had a separate > OST, it no longer belongs to TCU. This driver will register both a > clocksource and a sched_clock to the system. > > Tested-by: 周正 (Zhou Zheng) > Co-developed-by: 漆鹏振 (Qi

Re: [PATCH v6 0/9] clocksource/drivers/timer-atmel-tcb: add sama5d2 support

2020-07-16 Thread Daniel Lezcano
On 11/07/2020 01:08, Alexandre Belloni wrote: > Hello, > > This series mainly adds sama5d2 support where we need to avoid using > clock index 0 because that clock is never enabled by the driver. > > There is also a rework of the 32khz clock handling so it is not used for > clockevents on 32 bit

Re: [PATCH V2 2/2] arm64: imx: Select TPM driver by default

2020-07-16 Thread Daniel Lezcano
On 08/07/2020 05:16, Anson Huang wrote: > Select CLKSRC_IMX_TPM for ARCH_MXC by default. > > Signed-off-by: Anson Huang > --- > No change. > --- > arch/arm64/Kconfig.platforms | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms >

Re: [PATCH] clocksource: nomadik-mtu: Handle 32kHz clock

2020-07-16 Thread Daniel Lezcano
On 29/06/2020 00:01, Linus Walleij wrote: > It happens on the U8420-sysclk Ux500 PRCMU firmware > variant that the MTU clock is just 32768 Hz, and in this > mode the minimum ticks is 5 rather than two. > > I think this is simply so that there is enough time > for the register write to propagate

Re: [PATCH 1/1] clocksource: Ingenic: Add high resolution timer support for SMP/SMT.

2020-07-16 Thread Daniel Lezcano
On 26/05/2020 18:21, 周琰杰 (Zhou Yanjie) wrote: > Enable clock event handling on per CPU core basis. Make sure that > interrupts raised on the first core execute event handlers on the > correct CPU core. This driver is required by Ingenic processors > that support SMP/SMT, such as JZ4780 and X2000.

Re: [PATCH v3 2/4] clocksource/drivers: Add CLINT timer driver

2020-07-16 Thread Daniel Lezcano
Hi Anup, On 15/07/2020 09:15, Anup Patel wrote: > The TIME CSR and SBI calls are not available in RISC-V M-mode so we > separate add CLINT driver for Linux RISC-V M-mode (i.e. RISC-V NoMMU > kernel). The description is confusing, please reword it and give a bit more information about the

Re: [PATCH v3 4/4] dt-bindings: timer: Add CLINT bindings

2020-07-16 Thread Daniel Lezcano
Hi Anup, On 16/07/2020 14:32, Anup Patel wrote: > On Wed, Jul 15, 2020 at 11:20 PM Rob Herring wrote: [ ... ] > Thanks for these steps. I will fix and send v4. Please take the opportunity to clarify how you want the series to be merged. -- Linaro.org │ Open

[GIT PULL] thermal fixes for v5.8-rc6

2020-07-16 Thread Daniel Lezcano
The following changes since commit 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68: Linux 5.8-rc3 (2020-06-28 15:00:24 -0700) are available in the Git repository at: ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git tags/thermal-v5.8-rc6 for you to fetch changes up to

Re: [PATCH] Revert "thermal: mediatek: fix register index error"

2020-07-15 Thread Daniel Lezcano
On 07/07/2020 12:34, Enric Balletbo i Serra wrote: > This reverts commit eb9aecd90d1a39601e91cd08b90d5fee51d321a6 > > The above patch is supposed to fix a register index error on mt2701. It > is not clear if the problem solved is a hang or just an invalid value > returned, my guess is the second.

Re: [PATCH] net: genetlink: Move initialization to core_initcall

2020-07-15 Thread Daniel Lezcano
Hi Dave, if you agree with this change, is it possible I merge it through the thermal tree in order to fix the issue ? Thanks -- Daniel On 15/07/2020 09:41, Daniel Lezcano wrote: > The generic netlink is initialized far after the netlink protocol > itself at subsys_initcall. The d

[PATCH] net: genetlink: Move initialization to core_initcall

2020-07-15 Thread Daniel Lezcano
tion as soon as possible. Moving it to postcore_initcall is acceptable. This patch changes the initialization level for the generic netlink family to the core_initcall and comes after the netlink protocol initialization. Signed-off-by: Daniel Lezcano --- net/netlink/genetlink.c | 2 +- 1 file changed,

Re: [PATCH v4 4/4] thermal: core: Add notifications call in the framework

2020-07-14 Thread Daniel Lezcano
On 13/07/2020 22:32, Daniel Lezcano wrote: > On 13/07/2020 11:31, Marek Szyprowski wrote: >> Hi >> >> On 07.07.2020 11:15, Marek Szyprowski wrote: >>> On 06.07.2020 15:46, Daniel Lezcano wrote: >>>> On 06/07/2020 15:17, Marek Szyprowski wrote: >&

Re: [PATCH v4 4/4] thermal: core: Add notifications call in the framework

2020-07-13 Thread Daniel Lezcano
On 13/07/2020 11:31, Marek Szyprowski wrote: > Hi > > On 07.07.2020 11:15, Marek Szyprowski wrote: >> On 06.07.2020 15:46, Daniel Lezcano wrote: >>> On 06/07/2020 15:17, Marek Szyprowski wrote: >>>> On 06.07.2020 12:55, Daniel Lezcano wrote: >>>&

Re: [RFC PATCH 1/4] dt-bindings:thermal:Add cold trip point type

2020-07-13 Thread Daniel Lezcano
On 13/07/2020 19:01, Thara Gopinath wrote: > > > On 7/13/20 11:05 AM, Daniel Lezcano wrote: >> On 10/07/2020 15:51, Thara Gopinath wrote: >>> Extend thermal trip point type property to include "cold" trip type >>> indicating point in the temperature d

Re: [RFC PATCH 1/4] dt-bindings:thermal:Add cold trip point type

2020-07-13 Thread Daniel Lezcano
On 10/07/2020 15:51, Thara Gopinath wrote: > Extend thermal trip point type property to include "cold" trip type > indicating point in the temperature domain below which a warming action > must be intiated. > > Signed-off-by: Thara Gopinath > --- >

Re: [RFC PATCH 0/4] thermal: Introduce support for monitoring falling temperature

2020-07-13 Thread Daniel Lezcano
On 10/07/2020 15:51, Thara Gopinath wrote: > Thermal framework today supports monitoring for rising temperatures and > subsequently initiating cooling action in case of a thermal trip point > being crossed. There are scenarios where a SoC need some warming action to > be activated if the

Re: [PATCH v4 4/4] thermal: core: Add notifications call in the framework

2020-07-13 Thread Daniel Lezcano
On 13/07/2020 11:31, Marek Szyprowski wrote: > Hi > > On 07.07.2020 11:15, Marek Szyprowski wrote: >> On 06.07.2020 15:46, Daniel Lezcano wrote: >>> On 06/07/2020 15:17, Marek Szyprowski wrote: >>>> On 06.07.2020 12:55, Daniel Lezcano wrote: >>>&

Re: [PATCH v4 4/4] thermal: core: Add notifications call in the framework

2020-07-13 Thread Daniel Lezcano
Added Arnd in Cc. On 13/07/2020 11:31, Marek Szyprowski wrote: > Hi > > On 07.07.2020 11:15, Marek Szyprowski wrote: >> On 06.07.2020 15:46, Daniel Lezcano wrote: >>> On 06/07/2020 15:17, Marek Szyprowski wrote: >>>> On 06.07.2020 12:55, Daniel Lezcano wrote

Re: [PATCH] Revert "thermal: mediatek: fix register index error"

2020-07-12 Thread Daniel Lezcano
On 12/07/2020 18:55, Matthias Brugger wrote: > On 10/07/2020 15:58, Matthias Brugger wrote: >> >> >> On 07/07/2020 12:34, Enric Balletbo i Serra wrote: >>> This reverts commit eb9aecd90d1a39601e91cd08b90d5fee51d321a6 >>> >>> The above patch is supposed to fix a register index error on mt2701. It

[PATCH RFC] powercap/drivers/energy_model: protocode: Add powercap energy model based

2020-07-07 Thread Daniel Lezcano
needs more power. The algorithm was presented during the ELC: https://ossna2020.sched.com/event/c3Wf/ideas-for-finer-grained-control-over-your-heat-budget-amit-kucheria-daniel-lezcano-linaro Given the complexity of the code, it sounds reasonable to provide a first stone of the edifice allowing

Re: [PATCH] thermal: netlink: Fix compilation error when CONFIG_NET=n

2020-07-07 Thread Daniel Lezcano
On 07/07/2020 17:47, Randy Dunlap wrote: > On 7/7/20 2:01 AM, Daniel Lezcano wrote: >> When the network is not configured, the netlink are disabled on all >> the system. The thermal framework assumed the netlink are always >> opt-in. >> >> Fix this by adding

[PATCH] thermal: netlink: Fix compilation error when CONFIG_NET=n

2020-07-07 Thread Daniel Lezcano
and in order to not pollute the internal thermal header, the thermal_nelink.h has been added and included in the thermal_core.h, so this one regain some kind of clarity. Reported-by: Randy Dunlap Signed-off-by: Daniel Lezcano --- drivers/thermal/Kconfig | 10 drivers/thermal/Makefile

Re: [v4,7/7] thermal: mediatek: use spinlock to protect PTPCORESEL

2020-07-07 Thread Daniel Lezcano
On 05/06/2020 05:50, Michael Kao wrote: > On Fri, 2020-05-22 at 17:36 +0200, Daniel Lezcano wrote: >> On 23/03/2020 13:15, Michael Kao wrote: >>> From: "michael.kao" >>> >>> The driver of thermal and svs will use the >>> same register for

Re: [v4,7/7] thermal: mediatek: use spinlock to protect PTPCORESEL

2020-07-07 Thread Daniel Lezcano
On 07/07/2020 04:57, Michael Kao wrote: [ ... ] > Gently ping. Michael, it is impossible to have this series merged if there is a so big delay between the comments / questions and the answers (or no answers at all). -- Linaro.org │ Open source software for ARM SoCs

Re: linux-next: Tree for Jul 6 (thermal/thermal_netlink.c)

2020-07-06 Thread Daniel Lezcano
Hi, thanks for reporting that, I'll fix it. On 06/07/2020 18:53, Randy Dunlap wrote: > On 7/6/20 12:40 AM, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20200703: >> > > on i386 or x86_64: > > when CONFIG_NET is not set/enabled: > > thermal_netlink.c:(.text+0x34): undefined

Re: [PATCH v4 4/4] thermal: core: Add notifications call in the framework

2020-07-06 Thread Daniel Lezcano
On 06/07/2020 15:17, Marek Szyprowski wrote: > Hi Daniel, > > On 06.07.2020 12:55, Daniel Lezcano wrote: >> The generic netlink protocol is implemented but the different >> notification functions are not yet connected to the core code. >> >> These c

[PATCH v4 2/4] thermal: core: Get thermal zone by id

2020-07-06 Thread Daniel Lezcano
. This change provides a function returning back a thermal zone pointer corresponding to the identifier passed as parameter. Signed-off-by: Daniel Lezcano Reviewed-by: Amit Kucheria --- drivers/thermal/thermal_core.c | 14 ++ drivers/thermal/thermal_core.h | 2 ++ 2 files changed

[PATCH v4 1/4] thermal: core: Add helpers to browse the cdev, tz and governor list

2020-07-06 Thread Daniel Lezcano
to be called for each thermal entity. We keep the self-encapsulation and ensure the locks are correctly taken when looking at the list. Acked-by: Zhang Rui Reviewed-by: Amit Kucheria Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c | 51

[PATCH v4 3/4] thermal: core: genetlink support for events/cmd/sampling

2020-07-06 Thread Daniel Lezcano
pling when the thermal zone is updated and another one for the events, so the user can get the events only without the thermal zone temperature sampling. Also, a list of commands to discover the thermal setup is added and can be extended when needed. Reviewed-by: Amit Kucheria Signed-off-by: Dani

[PATCH v4 4/4] thermal: core: Add notifications call in the framework

2020-07-06 Thread Daniel Lezcano
The generic netlink protocol is implemented but the different notification functions are not yet connected to the core code. These changes add the notification calls in the different corresponding places. Reviewed-by: Amit Kucheria Signed-off-by: Daniel Lezcano --- v4: - Fixed missing

Re: [PATCH v3 3/4] thermal: core: genetlink support for events/cmd/sampling

2020-07-06 Thread Daniel Lezcano
On 05/07/2020 08:03, Zhang Rui wrote: > On Fri, 2020-07-03 at 10:53 +0200, Daniel Lezcano wrote: >> Initially the thermal framework had a very simple notification >> mechanism to send generic netlink messages to the userspace. >> >> The notification function was

Re: [PATCH v3 3/4] thermal: core: genetlink support for events/cmd/sampling

2020-07-05 Thread Daniel Lezcano
On 05/07/2020 08:03, Zhang Rui wrote: > On Fri, 2020-07-03 at 10:53 +0200, Daniel Lezcano wrote: >> Initially the thermal framework had a very simple notification >> mechanism to send generic netlink messages to the userspace. >> >> The notification function was

Re: [PATCH v6 3/6] thermal: Add generic power domain warming device driver.

2020-07-03 Thread Daniel Lezcano
Hi Thara, sorry for the delay. Added Lukasz. On 04/06/2020 03:53, Thara Gopinath wrote: > Resources modeled as power domains in linux kernel can be used to warm the > SoC(eg. mx power domain on sdm845). To support this feature, introduce a > generic power domain warming device driver that

[PATCH v3 3/4] thermal: core: genetlink support for events/cmd/sampling

2020-07-03 Thread Daniel Lezcano
pling when the thermal zone is updated and another one for the events, so the user can get the events only without the thermal zone temperature sampling. Also, a list of commands to discover the thermal setup is added and can be extended when needed. Signed-off-by: Daniel Lezcano --- v3: - Fixed

[PATCH v3 1/4] thermal: core: Add helpers to browse the cdev, tz and governor list

2020-07-03 Thread Daniel Lezcano
to be called for each thermal entity. We keep the self-encapsulation and ensure the locks are correctly taken when looking at the list. Acked-by: Zhang Rui Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c | 51 ++ drivers/thermal/thermal_core.h

[PATCH v3 4/4] thermal: core: Add notifications call in the framework

2020-07-03 Thread Daniel Lezcano
The generic netlink protocol is implemented but the different notification functions are not yet connected to the core code. These changes add the notification calls in the different corresponding places. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c| 21

[PATCH v3 2/4] thermal: core: Get thermal zone by id

2020-07-03 Thread Daniel Lezcano
. This change provides a function returning back a thermal zone pointer corresponding to the identifier passed as parameter. Signed-off-by: Daniel Lezcano Reviewed-by: Amit Kucheria --- drivers/thermal/thermal_core.c | 14 ++ drivers/thermal/thermal_core.h | 2 ++ 2 files changed

Re: [PATCH v2 4/5] thermal: core: genetlink support for events/cmd/sampling

2020-07-01 Thread Daniel Lezcano
On 01/07/2020 17:49, Srinivas Pandruvada wrote: > > [...] > >> Then I'd prefer we only introduce the events that are used or will be >> used soon, like the tz disable/enable, to avoid some potential dead >> code. >> We can easily add more events when they are needed. >> >> Srinivas, do you have

Re: [PATCH v2 3/5] thermal: core: Remove old uapi generic netlink

2020-07-01 Thread Daniel Lezcano
On 01/07/2020 14:10, Amit Kucheria wrote: > On Wed, Jul 1, 2020 at 3:15 PM Daniel Lezcano > wrote: >> >> On 01/07/2020 11:33, Amit Kucheria wrote: >>> On Wed, Jul 1, 2020 at 2:56 PM Daniel Lezcano >>> wrote: >>>> >>>> On 30/06/2020 13

Re: [PATCH v2 1/5] thermal: core: Add helpers to browse the cdev, tz and governor list

2020-07-01 Thread Daniel Lezcano
On 01/07/2020 11:26, Amit Kucheria wrote: > On Wed, Jul 1, 2020 at 1:27 PM Zhang Rui wrote: [ ... ] >> Then no. I don't have any objection of removing thermal_helper.c, so >> you can just leave these functions in thermal_core.c > > In that case, Daniel, please find attached a patch to move the

Re: [PATCH v2 1/5] thermal: core: Add helpers to browse the cdev, tz and governor list

2020-07-01 Thread Daniel Lezcano
On 01/07/2020 09:57, Zhang Rui wrote: [ ... ] >> Do you want to move them out? > > Then no. I don't have any objection of removing thermal_helper.c, so > you can just leave these functions in thermal_core.c Shall I consider that as an ack for this patch ? --

Re: [PATCH v2 3/5] thermal: core: Remove old uapi generic netlink

2020-07-01 Thread Daniel Lezcano
On 01/07/2020 11:33, Amit Kucheria wrote: > On Wed, Jul 1, 2020 at 2:56 PM Daniel Lezcano > wrote: >> >> On 30/06/2020 13:47, Amit Kucheria wrote: >>> On Thu, Jun 25, 2020 at 8:15 PM Daniel Lezcano >>> wrote: >>>> >>>> I

Re: [PATCH v2 3/5] thermal: core: Remove old uapi generic netlink

2020-07-01 Thread Daniel Lezcano
On 30/06/2020 13:47, Amit Kucheria wrote: > On Thu, Jun 25, 2020 at 8:15 PM Daniel Lezcano > wrote: >> >> In order to set the scene for the new generic netlink thermal >> management and notifications, let remove the old dead code remaining > > s/management/ma

Re: [PATCH v2 4/5] thermal: core: genetlink support for events/cmd/sampling

2020-07-01 Thread Daniel Lezcano
On 01/07/2020 09:41, Zhang Rui wrote: > Hi, Daniel, > > On Tue, 2020-06-30 at 20:32 +0200, Daniel Lezcano wrote: >> Hi Zhang, >> >> thanks for taking the time to review >> >> >> On 30/06/2020 18:12, Zhang Rui wrote: >> >> [ ... ] &g

Re: [PATCH v2 1/5] thermal: core: Add helpers to browse the cdev, tz and governor list

2020-07-01 Thread Daniel Lezcano
On 30/06/2020 17:09, Zhang Rui wrote: > Hi, Daniel, > > seems that you forgot to cc linux-pm mailing list. > > On Tue, 2020-06-30 at 17:16 +0530, Amit Kucheria wrote: >> On Thu, Jun 25, 2020 at 8:15 PM Daniel Lezcano >> wrote: >>> >>> The cdev, tz a

Re: [PATCH v2 1/5] thermal: core: Add helpers to browse the cdev, tz and governor list

2020-07-01 Thread Daniel Lezcano
On 30/06/2020 20:46, Amit Kucheria wrote: > On Tue, Jun 30, 2020 at 8:40 PM Zhang Rui wrote: >> >> Hi, Daniel, >> >> seems that you forgot to cc linux-pm mailing list. >> >> On Tue, 2020-06-30 at 17:16 +0530, Amit Kucheria wrote: >>> On Thu, J

Re: [PATCH v4 6/6] MAINTAINERS: Add maintainers for MIPS core drivers

2020-07-01 Thread Daniel Lezcano
-timer for the timer stability ? git shortlog --numbered --summary drivers/cpuidle/cpuidle-cps.c 4 Paul Burton 1 Daniel Lezcano 1 Marcin Nowakowski 1 Matt Redfearn 1 Thomas Gleixner git shortlog --numbered --summary drivers/clocksource/mips-gic-timer.c 11 Andrew Bresticker

Re: [PATCH] cpuidle: change enter_s2idle() prototype

2020-06-30 Thread Daniel Lezcano
On 01/07/2020 04:39, Neal Liu wrote: > On Mon, 2020-06-29 at 17:17 +0200, Rafael J. Wysocki wrote: >> On Monday, June 29, 2020 11:05:40 AM CEST Neal Liu wrote: >>> Control Flow Integrity(CFI) is a security mechanism that disallows >>> changes to the original control flow graph of a compiled

Re: [PATCH v2 4/5] thermal: core: genetlink support for events/cmd/sampling

2020-06-30 Thread Daniel Lezcano
RMAL_NAME_LENGTH]; >> diff --git a/drivers/thermal/thermal_netlink.c >> b/drivers/thermal/thermal_netlink.c >> new file mode 100644 >> index ..a8d6a815a21d >> --- /dev/null >> +++ b/drivers/thermal/thermal_netlink.c >> @@ -0,0 +1,645 @@ >> +

Re: [PATCH v2 5/5] thermal: core: Add notifications call in the framework

2020-06-30 Thread Daniel Lezcano
On 30/06/2020 13:49, Amit Kucheria wrote: > On Thu, Jun 25, 2020 at 8:15 PM Daniel Lezcano > wrote: >> >> The generic netlink protocol is implemented but the different >> notification functions are not yet connected to the core code. >> >> These changes add the

[GIT PULL] thermal fixes for v5.8-rc4

2020-06-29 Thread Daniel Lezcano
The following changes since commit 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68: Linux 5.8-rc3 (2020-06-28 15:00:24 -0700) are available in the Git repository at: ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git tags/thermal-v5.8-rc4 for you to fetch changes up to

[PATCH v2 3/5] thermal: core: Remove old uapi generic netlink

2020-06-25 Thread Daniel Lezcano
In order to set the scene for the new generic netlink thermal management and notifications, let remove the old dead code remaining in the uapi headers. Signed-off-by: Daniel Lezcano --- include/linux/thermal.h | 5 - include/uapi/linux/thermal.h | 12 +--- 2 files changed, 1

[PATCH v2 2/5] thermal: core: Get thermal zone by id

2020-06-25 Thread Daniel Lezcano
. This change provides a function returning back a thermal zone pointer corresponding to the identifier passed as parameter. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c | 14 ++ drivers/thermal/thermal_core.h | 2 ++ 2 files changed, 16 insertions(+) diff --git

[PATCH v2 1/5] thermal: core: Add helpers to browse the cdev, tz and governor list

2020-06-25 Thread Daniel Lezcano
to be called for each thermal entity. We keep the self-encapsulation and ensure the locks are correctly taken when looking at the list. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c | 51 ++ drivers/thermal/thermal_core.h | 9 ++ 2 files

[PATCH v2 4/5] thermal: core: genetlink support for events/cmd/sampling

2020-06-25 Thread Daniel Lezcano
rmal setup is given and can be extended on purpose. Signed-off-by: Daniel Lezcano --- drivers/thermal/Makefile | 2 +- drivers/thermal/thermal_core.h| 19 + drivers/thermal/thermal_netlink.c | 645 ++ include/linux/thermal.h | 12 - include/

[PATCH v2 5/5] thermal: core: Add notifications call in the framework

2020-06-25 Thread Daniel Lezcano
The generic netlink protocol is implemented but the different notification functions are not yet connected to the core code. These changes add the notification calls in the different corresponding places. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c| 21

Re: [PATCH v5 1/2] thermal: add support for the MCU controlled FAN on Khadas boards

2020-06-24 Thread Daniel Lezcano
> Reviewed-by: Amit Kucheria > --- > Hi Daniel, > > Is it ok Lee applies this patch via the MFD tree since it depends on > the linux/mfd/khadas-mcu.h header ? Acked-by: Daniel Lezcano [ ... ] -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM S

<    1   2   3   4   5   6   7   8   9   10   >