Re: [PATCH] i2c: pasemi: Add IRQ support for Apple Silicon

2022-08-21 Thread Christophe Leroy
Le 20/08/2022 à 21:45, Arminder Singh a écrit : > This is the first time I'm interacting with the Linux mailing lists, so > please don't eviscerate me *too much* if I get the formatting wrong. > Of course I'm always willing to take criticism and improve my formatting > in the future. The above t

Re: [PATCH] i2c: pasemi: Add IRQ support for Apple Silicon

2022-08-21 Thread Sven Peter
Hi, Thanks for the patch! Some additional comments: On Sat, Aug 20, 2022, at 21:45, Arminder Singh wrote: > This is the first time I'm interacting with the Linux mailing lists, so > please don't eviscerate me *too much* if I get the formatting wrong. > Of course I'm always willing to take critic

Re: [PATCH] net: move from strlcpy with unused retval to strscpy

2022-08-21 Thread Leon Romanovsky
On Thu, Aug 18, 2022 at 11:00:34PM +0200, Wolfram Sang wrote: > Follow the advice of the below link and prefer 'strscpy' in this > subsystem. Conversion is 1:1 because the return value is not used. > Generated by a coccinelle script. > > Link: > https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3J

Re: [PATCH] kernel: exit: cleanup release_thread()

2022-08-21 Thread Catalin Marinas
On Fri, Aug 19, 2022 at 09:44:06AM +0800, Kefeng Wang wrote: > Only x86 has own release_thread(), introduce a new weak > release_thread() function to clean empty definitions in > other ARCHs. > > Signed-off-by: Kefeng Wang [...] > arch/arm64/include/asm/processor.h | 3 --- > arch/arm64/ker

Re: [PATCH] kernel: exit: cleanup release_thread()

2022-08-21 Thread Huacai Chen
For LoongArch parts: Acked-by: Huacai Chen On Sun, Aug 21, 2022 at 7:54 PM Catalin Marinas wrote: > > On Fri, Aug 19, 2022 at 09:44:06AM +0800, Kefeng Wang wrote: > > Only x86 has own release_thread(), introduce a new weak > > release_thread() function to clean empty definitions in > > other AR

Re: [PATCH 1/3] dt-bindings: reset: syscon-reboot: Add priority property

2022-08-21 Thread Rob Herring
On Sat, 20 Aug 2022 12:29:23 +0200, Pali Rohár wrote: > This new optional priority property allows to specify custom priority level > of reset device. Default level was always 192. > > Signed-off-by: Pali Rohár > --- > .../devicetree/bindings/power/reset/syscon-reboot.yaml| 4 > 1

Re: [PATCH] kernel: exit: cleanup release_thread()

2022-08-21 Thread Stafford Horne
On Fri, Aug 19, 2022 at 09:44:06AM +0800, Kefeng Wang wrote: > Only x86 has own release_thread(), introduce a new weak > release_thread() function to clean empty definitions in > other ARCHs. > > Signed-off-by: Kefeng Wang > --- > arch/openrisc/include/asm/processor.h | 1 - > arch/openrisc/k

Re: [PATCH] kernel: exit: cleanup release_thread()

2022-08-21 Thread Michael Ellerman
Kefeng Wang writes: > Only x86 has own release_thread(), introduce a new weak > release_thread() function to clean empty definitions in > other ARCHs. > > Signed-off-by: Kefeng Wang > --- .. > arch/powerpc/include/asm/processor.h| 1 - > arch/powerpc/kernel/process.c | 5 - Ack

[RFC 08/10] cpuhp: Replace cpumask_any_but(cpu_online_mask, cpu)

2022-08-21 Thread Pingfan Liu
In a kexec quick reboot path, the dying cpus are still on cpu_online_mask. During the teardown of cpu, a subsystem needs to migrate its broker to a real online cpu. This patch replaces cpumask_any_but(cpu_online_mask, cpu) in a teardown procedure with cpumask_not_dying_but(cpu_online_mask, cpu).

Re: [PATCH] powerpc: export cpu_smallcore_map for modules

2022-08-21 Thread Michael Ellerman
Randy Dunlap writes: > Fix build error when CONFIG_DRM_AMDGPU=m: > > ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] > undefined! > > by exporting 'cpu_smallcore_map' just as other per_cpu > symbols are exported. > > drivers/gpu/drm/amd/amdkfd/kfd_device.c calls cpu_smt

Re: [PATCH] powerpc: export cpu_smallcore_map for modules

2022-08-21 Thread Randy Dunlap
On 8/21/22 20:40, Michael Ellerman wrote: > Randy Dunlap writes: >> Fix build error when CONFIG_DRM_AMDGPU=m: >> >> ERROR: modpost: "cpu_smallcore_map" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] >> undefined! >> >> by exporting 'cpu_smallcore_map' just as other per_cpu >> symbols are exported. >>

Re: [PATCH v3 14/18] powerpc/64s: Clear/restore caller gprs in syscall interrupt/return

2022-08-21 Thread Rohan McLure
> On 19 Aug 2022, at 4:52 pm, Christophe Leroy > wrote: > > > > Le 19/08/2022 à 05:38, Rohan McLure a écrit : >> Clear user state in gprs (assign to zero) to reduce the influence of user >> registers on speculation within kernel syscall handlers. Clears occur >> at the very beginning of the

Re: [6.0-rc1] Kernel crash while running MCE tests

2022-08-21 Thread Sachin Sant
> On 19-Aug-2022, at 10:12 AM, Ganesh wrote >> >> We'll have to make sure everything get_pseries_errorlog() is either >> forced inline, or marked noinstr. >> > Making the following functions always_inline and noinstr is fixing the issue. > __always_inline pseries_errorlog_id() > __always_inli

Re: [6.0-rc1] Kernel crash while running MCE tests

2022-08-21 Thread Michael Ellerman
Ganesh writes: > On 8/17/22 11:28, Michael Ellerman wrote: > >> Sachin Sant writes: >>> Following crash is seen while running powerpc/mce subtest on >>> a Power10 LPAR. >>> >>> 1..1 >>> # selftests: powerpc/mce: inject-ra-err >>> [ 155.240591] BUG: Unable to handle kernel data access on read at

Re: [PATCH linux-next] powerpc: disable sanitizer in irq_soft_mask_set

2022-08-21 Thread Christophe Leroy
Le 21/08/2022 à 03:00, Zhouyi Zhou a écrit : > In ppc, compiler based sanitizer will generate instrument instructions > around statement WRITE_ONCE(local_paca->irq_soft_mask, mask): > > 0xc0295cb0 <+0>: addis r2,r12,774 > 0xc0295cb4 <+4>: addir2,r2,16464 > 0xc