[PATCH v3 2/2] powerpc/fadump: opt out from freeing pages on cma activation failure

2022-01-16 Thread Hari Bathini
With commit a4e92ce8e4c8 ("powerpc/fadump: Reservationless firmware assisted dump"), Linux kernel's Contiguous Memory Allocator (CMA) based reservation was introduced in fadump. That change was aimed at using CMA to let applications utilize the memory reserved for fadump while blocking it from

[PATCH v3 1/2] mm/cma: provide option to opt out from exposing pages on activation failure

2022-01-16 Thread Hari Bathini
Commit 072355c1cf2d ("mm/cma: expose all pages to the buddy if activation of an area fails") started exposing all pages to buddy allocator on CMA activation failure. But there can be CMA users that want to handle the reserved memory differently on CMA allocation failure. Provide an option to opt

[PATCH v3 0/2] powerpc/fadump: handle CMA activation failure appropriately

2022-01-16 Thread Hari Bathini
While commit a4e92ce8e4c8 ("powerpc/fadump: Reservationless firmware assisted dump"), introduced Linux kernel's Contiguous Memory Allocator (CMA) based reservation for fadump, it came with the assumption that the memory remains reserved even if CMA activation fails. It ensures no kernel pages

Re: [PATCH net 4/4] net/fsl: xgmac_mdio: Fix incorrect iounmap when removing module

2022-01-16 Thread Tobias Waldekranz
On Sun, Jan 16, 2022 at 22:54, Andrew Lunn wrote: > On Sun, Jan 16, 2022 at 10:15:29PM +0100, Tobias Waldekranz wrote: >> As reported by sparse: In the remove path, the driver would attempt to >> unmap its own priv pointer - instead of the io memory that it mapped >> in probe. > > Hi Tobias > >

Re: [PATCH net 1/4] net/fsl: xgmac_mdio: Add workaround for erratum A-009885

2022-01-16 Thread Tobias Waldekranz
On Sun, Jan 16, 2022 at 23:02, Andrew Lunn wrote: > On Sun, Jan 16, 2022 at 10:15:26PM +0100, Tobias Waldekranz wrote: >> Once an MDIO read transaction is initiated, we must read back the data >> register within 16 MDC cycles after the transaction completes. Outside >> of this window, reads may

[PATCH v2] powerpc: Add missing SPDX license identifiers to DTS files

2022-01-16 Thread Christophe Leroy
Several DTS files are missing SPDX license identifiers. For files in fsl/ subdirectory, GPL v2 or later is used based on the comments in the files. For others add the default kernel license identifier, ie GPL-2.0. Signed-off-by: Christophe Leroy Cc: Thomas Gleixner Cc: Greg Kroah-Hartman Cc:

[PATCH v2] powerpc: Add missing SPDX license identifiers

2022-01-16 Thread Christophe Leroy
Several files are missing SPDX license identifiers. Following files are given the following SPDX identifier based on the comments in the top of the file: boot/crtsavres.S:/* SPDX-License-Identifier: GPL-2.0+ */ include/asm/epapr_hcalls.h:/* SPDX-License-Identifier: GPL-2.0+ OR

[powerpc:next-test] BUILD SUCCESS 7773544e4027aa905e7f75752e3db619b473bd5c

2022-01-16 Thread kernel test robot
cobalt_defconfig arm randconfig-c002-20220116 ia64 allmodconfig ia64defconfig ia64 allyesconfig m68k allmodconfig m68k

[powerpc:merge] BUILD SUCCESS 863a7c25c334ed368b4508fccae92d6bb61e71a4

2022-01-16 Thread kernel test robot
-20220116 ia64 allmodconfig ia64defconfig ia64 allyesconfig m68k allmodconfig m68kdefconfig m68k allyesconfig nios2

[powerpc:fixes-test] BUILD SUCCESS d37823c3528e5e0705fc7746bcbc2afffb619259

2022-01-16 Thread kernel test robot
cobalt_defconfig arm pxa_defconfig sh defconfig xtensa common_defconfig arm randconfig-c002-20220116 ia64defconfig ia64 allmodconfig

[powerpc:fixes] BUILD SUCCESS 252745240ba0ae774d2f80c5e185ed59fbc4fb41

2022-01-16 Thread kernel test robot
randconfig-c002-20220116 ia64defconfig ia64 allyesconfig ia64 allmodconfig m68k allmodconfig m68kdefconfig m68k

Re: [PATCH net 1/4] net/fsl: xgmac_mdio: Add workaround for erratum A-009885

2022-01-16 Thread Andrew Lunn
On Sun, Jan 16, 2022 at 10:15:26PM +0100, Tobias Waldekranz wrote: > Once an MDIO read transaction is initiated, we must read back the data > register within 16 MDC cycles after the transaction completes. Outside > of this window, reads may return corrupt data. > > Therefore, disable local

Re: [PATCH net 4/4] net/fsl: xgmac_mdio: Fix incorrect iounmap when removing module

2022-01-16 Thread Andrew Lunn
On Sun, Jan 16, 2022 at 10:15:29PM +0100, Tobias Waldekranz wrote: > As reported by sparse: In the remove path, the driver would attempt to > unmap its own priv pointer - instead of the io memory that it mapped > in probe. Hi Tobias The change itself is O.K. Reviewed-by: Andrew Lunn But you

Re: [PATCH net 2/4] dt-bindings: net: Document fsl,erratum-a009885

2022-01-16 Thread Andrew Lunn
On Sun, Jan 16, 2022 at 10:15:27PM +0100, Tobias Waldekranz wrote: > Update FMan binding documentation with the newly added workaround for > erratum A-009885. > > Signed-off-by: Tobias Waldekranz Reviewed-by: Andrew Lunn Andrew

[PATCH net 0/4] net/fsl: xgmac_mdio: Add workaround for erratum A-009885

2022-01-16 Thread Tobias Waldekranz
The individual messages mostly speak for themselves. It is very possible that there are more chips out there that are impacted by this, but I only have access to the errata document for the T1024 family, so I've limited the DT changes to the exact FMan version used in that device. Hopefully

[PATCH net 1/4] net/fsl: xgmac_mdio: Add workaround for erratum A-009885

2022-01-16 Thread Tobias Waldekranz
Once an MDIO read transaction is initiated, we must read back the data register within 16 MDC cycles after the transaction completes. Outside of this window, reads may return corrupt data. Therefore, disable local interrupts in the critical section, to maximize the probability that we can satisfy

[PATCH net 4/4] net/fsl: xgmac_mdio: Fix incorrect iounmap when removing module

2022-01-16 Thread Tobias Waldekranz
As reported by sparse: In the remove path, the driver would attempt to unmap its own priv pointer - instead of the io memory that it mapped in probe. Fixes: 9f35a7342cff ("net/fsl: introduce Freescale 10G MDIO driver") Signed-off-by: Tobias Waldekranz ---

[PATCH net 3/4] powerpc/fsl/dts: Enable WA for erratum A-009885 on fman3l MDIO buses

2022-01-16 Thread Tobias Waldekranz
This block is used in (at least) T1024 and T1040, including their variants like T1023 etc. Signed-off-by: Tobias Waldekranz --- arch/powerpc/boot/dts/fsl/qoriq-fman3l-0.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/qoriq-fman3l-0.dtsi

[PATCH net 2/4] dt-bindings: net: Document fsl,erratum-a009885

2022-01-16 Thread Tobias Waldekranz
Update FMan binding documentation with the newly added workaround for erratum A-009885. Signed-off-by: Tobias Waldekranz --- Documentation/devicetree/bindings/net/fsl-fman.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/net/fsl-fman.txt

Re: [PATCH 00/13] powerpc/bpf: Some fixes and updates

2022-01-16 Thread Michael Ellerman
On Thu, 6 Jan 2022 17:15:04 +0530, Naveen N. Rao wrote: > A set of fixes and updates to powerpc BPF JIT: > - Patches 1-3 fix issues with the existing powerpc JIT and are tagged > for -stable. > - Patch 4 fixes a build issue with bpf selftests on powerpc. > - Patches 5-9 handle some corner cases

Re: [PATCH v2] powerpc/audit: Fix syscall_get_arch()

2022-01-16 Thread Michael Ellerman
On Fri, 14 Jan 2022 11:26:25 +, Christophe Leroy wrote: > Commit 770cec16cdc9 ("powerpc/audit: Simplify syscall_get_arch()") > and commit 898a1ef06ad4 ("powerpc/audit: Avoid unneccessary #ifdef > in syscall_get_arguments()") > replaced test_tsk_thread_flag(task, TIF_32BIT)) by is_32bit_task().

Re: [PATCH] powerpc: Add missing SPDX license identifiers

2022-01-16 Thread Michael Ellerman
Christophe Leroy writes: > Several files are missing SPDX license identifiers. > > Add to them the default kernel license identifier, ie GPL-2.0. I'm not sure if that's OK, or if we're supposed to make some effort to determine if the files were intended to be licensed some other way. eg. if a