Re: [PATCH v2] powerpc: fix alignment bug whithin the init sections

2021-01-10 Thread Christophe Leroy
Le 02/01/2021 à 21:11, Ariel Marcovitch a écrit : This is a bug that causes early crashes in builds with a .exit.text section smaller than a page and a .init.text section that ends in the beginning of a physical page (this is kinda random, which might explain why this wasn't really

Re: [PATCH v1 06/15] powerpc: Remove address and errorcode arguments from do_break()

2021-01-10 Thread Christophe Leroy
Le 27/12/2020 à 04:25, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of December 22, 2020 11:28 pm: Let do_break() retrieve address and errorcode from regs. This simplifies the code and shouldn't impeed performance as address and errorcode are likely still hot in the

[PATCH] powerpc/64s: fix scv entry fallback flush vs interrupt

2021-01-10 Thread Nicholas Piggin
The L1D flush fallback functions are not recoverable vs interrupts, yet the scv entry flush runs with MSR[EE]=1. This can result in a timer (soft-NMI) or MCE or SRESET interrupt hitting here and overwriting the EXRFI save area, which ends up corrupting userspace registers for scv return. Fix this

[PATCH 17/17] rtc: tps65910: remove tps65910_rtc_ops_noirq

2021-01-10 Thread Alexandre Belloni
Clear RTC_FEATURE_ALARM to signal that alarms are not available instead of having a supplementary struct rtc_class_ops without alarm callbacks. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-tps65910.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git

[PATCH 16/17] rtc: rv8803: constify rv8803_rtc_ops

2021-01-10 Thread Alexandre Belloni
Use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of changing the global struct rtc_class_ops, allowing to make it const. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv8803.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git

[PATCH 15/17] rtc: rv3032: constify rv3032_rtc_ops

2021-01-10 Thread Alexandre Belloni
Use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of changing the global struct rtc_class_ops, allowing to make it const. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv3032.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git

[PATCH 13/17] rtc: rv3028: constify rv3028_rtc_ops

2021-01-10 Thread Alexandre Belloni
Use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of changing the global struct rtc_class_ops, allowing to make it const. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv3028.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git

[PATCH 14/17] rtc: rv3029: constify rv3029_rtc_ops

2021-01-10 Thread Alexandre Belloni
Use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of changing the global struct rtc_class_ops, allowing to make it const. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv3029c2.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git

[PATCH 12/17] rtc: opal: constify opal_rtc_ops

2021-01-10 Thread Alexandre Belloni
Use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of changing the global struct rtc_class_ops, allowing to make it const. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-opal.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git

[PATCH 10/17] rtc: pcf85363: drop a struct rtc_class_ops

2021-01-10 Thread Alexandre Belloni
Merge both struct rtc_class_ops in a single one and use RTC_FEATURE_ALARM to signal to the core whether alarms are available. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf85363.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-pcf85363.c

[PATCH 11/17] rtc: m41t80: constify m41t80_rtc_ops

2021-01-10 Thread Alexandre Belloni
Use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of changing the global struct rtc_class_ops, allowing to make it const. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-m41t80.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH 05/17] rtc: mv: remove mv_rtc_alarm_ops

2021-01-10 Thread Alexandre Belloni
Move the alarm callbacks in mv_rtc_ops and clear RTC_FEATURE_ALARM to signal that alarms are not available instead of having a supplementary struct rtc_class_ops. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-mv.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-)

[PATCH 06/17] rtc: m48t59: remove m48t02_rtc_ops

2021-01-10 Thread Alexandre Belloni
Clear RTC_FEATURE_ALARM to signal that alarms are not available instead of having a supplementary struct rtc_class_ops without alarm callbacks. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-m48t59.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git

[PATCH 09/17] rtc: rx8010: drop a struct rtc_class_ops

2021-01-10 Thread Alexandre Belloni
Merge both struct rtc_class_ops in a single one and use RTC_FEATURE_ALARM to signal to the core whether alarms are available. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rx8010.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/rtc/rtc-rx8010.c

[PATCH 08/17] rtc: pcf85063: remove pcf85063_rtc_ops_alarm

2021-01-10 Thread Alexandre Belloni
Move the alarm callbacks in pcf85063_rtc_ops and use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of having a supplementary struct rtc_class_ops without alarm callbacks. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf85063.c | 11 ++- 1 file

[PATCH 07/17] rtc: pcf2127: remove pcf2127_rtc_alrm_ops

2021-01-10 Thread Alexandre Belloni
Move the alarm callbacks in pcf2127_rtc_ops and use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of having a supplementary struct rtc_class_ops without alarm callbacks. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf2127.c | 11 +++ 1 file

[PATCH 04/17] rtc: cmos: remove cmos_rtc_ops_no_alarm

2021-01-10 Thread Alexandre Belloni
Clear RTC_FEATURE_ALARM to signal that alarms are not available instead of having a supplementary struct rtc_class_ops with a NULL .set_alarm. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-cmos.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git

[PATCH 03/17] rtc: armada38x: remove armada38x_rtc_ops_noirq

2021-01-10 Thread Alexandre Belloni
Clear RTC_FEATURE_ALARM to signal that alarms are not available instead of having a supplementary struct rtc_class_ops with a NULL .set_alarm. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-armada38x.c | 21 - 1 file changed, 4 insertions(+), 17 deletions(-) diff

[PATCH 01/17] rtc: introduce features bitfield

2021-01-10 Thread Alexandre Belloni
Introduce a bitfield to allow the drivers to announce the available features for an RTC. The main use case would be to better handle alarms, that could be present or not or have a minute resolution or may need a correct week day to be set. Use the newly introduced RTC_FEATURE_ALARM bit to then

[PATCH 00/17] rtc: constify all rtc_class_ops

2021-01-10 Thread Alexandre Belloni
Hello, This first introduces a features bitfield that is used to handle the presence or absence of alarms instead of relying only on the presence of the alarm callbacks. The drivers modifying a struct rtc_class_ops or using two different structures are then converted. Alexandre Belloni (17):

[PATCH 02/17] rtc: pl031: use RTC_FEATURE_ALARM

2021-01-10 Thread Alexandre Belloni
Clear RTC_FEATURE_ALARM instead of setting set_alarm, read_alarm and alarm_irq_enable to NULL. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pl031.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c index

[PATCH] rtc: opal: set range

2021-01-10 Thread Alexandre Belloni
It is a BCD RTC with 4 digits for the year. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-opal.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-opal.c b/drivers/rtc/rtc-opal.c index 7b9f8bcf86fe..c586f695bdc9 100644 ---

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.11-3 tag

2021-01-10 Thread pr-tracker-bot
The pull request you sent on Sun, 10 Jan 2021 23:54:30 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.11-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b3cd1a16cc8829776523fcd114299373be4e5187 Thank you! --

[GIT PULL] Please pull powerpc/linux.git powerpc-5.11-3 tag

2021-01-10 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull a couple of powerpc fixes for 5.11: The following changes since commit e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62: Linux 5.11-rc2 (2021-01-03 15:55:30 -0800) are available in the git repository at:

Re: [patch V3 13/37] mips/mm/highmem: Switch to generic kmap atomic

2021-01-10 Thread H. Nikolaus Schaller
> Am 10.01.2021 um 12:35 schrieb Paul Cercueil : > > Hi Thomas, > > Le sam. 9 janv. 2021 à 1:33, Thomas Bogendoerfer > a écrit : >> On Sat, Jan 09, 2021 at 12:58:05AM +0100, Thomas Bogendoerfer wrote: >>> On Fri, Jan 08, 2021 at 08:20:43PM +, Paul Cercueil wrote: >>> > Hi Thomas, >>> >

Re: [patch V3 13/37] mips/mm/highmem: Switch to generic kmap atomic

2021-01-10 Thread Paul Cercueil
Hi Thomas, Le sam. 9 janv. 2021 à 1:33, Thomas Bogendoerfer a écrit : On Sat, Jan 09, 2021 at 12:58:05AM +0100, Thomas Bogendoerfer wrote: On Fri, Jan 08, 2021 at 08:20:43PM +, Paul Cercueil wrote: > Hi Thomas, > > 5.11 does not boot anymore on Ingenic SoCs, I bisected it to this