[PATCH] aes-gcm-p10: Use the correct bit to test for P10

2024-11-06 Thread Michal Suchanek
A hwcap feature bit is passed to cpu_has_feature, resulting in testing for CPU_FTR_MMCRA instead of the 3.1 platform revision. Fixes: c954b252dee9 ("crypto: powerpc/p10-aes-gcm - Register modules as SIMD") Reported-by: Nicolai Stange Signed-off-by: Michal Suchanek --- arch/powerpc/

[PATCH 1/2] powerpc/sstep: Unexport analyze_instr, emulate_vsx_load, emulate_vsx_store

2024-10-01 Thread Michal Suchanek
There is no modular user of analyze_instr, and the latter two are only used by sstep itself. Signed-off-by: Michal Suchanek --- arch/powerpc/lib/sstep.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c index e65f3fb68d06..a0557b0d9a24

[PATCH 2/2] powerpc/sstep: make emulate_vsx_load and emulate_vsx_store static

2024-10-01 Thread Michal Suchanek
These functions are not used outside of sstep.c Fixes: 350779a29f11 ("powerpc: Handle most loads and stores in instruction emulation code") Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/sstep.h | 5 - arch/powerpc/lib/sstep.c | 10 -- 2 files

[PATCH] powerpc/sstep: make emulate_vsx_load and emulate_vsx_store static

2024-10-01 Thread Michal Suchanek
These functions are not used outside of sstep.c Fixes: 350779a29f11 ("powerpc: Handle most loads and stores in instruction emulation code") Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/sstep.h | 5 - arch/powerpc/lib/sstep.c | 12 2 files

[PATCH] selftests: powerpc: Add header symlinks for building papr character device tests

2024-02-15 Thread Michal Suchanek
From: root Without the headers the tests don't build. Fixes: 9118c5d32bdd ("powerpc/selftests: Add test for papr-vpd") Fixes: 76b2ec3faeaa ("powerpc/selftests: Add test for papr-sysparm") Signed-off-by: Michal Suchanek --- tools/testing/selftests/powerpc/inclu

[PATCH RFC] powerpc/rtas: Make it possible to disable sys_rtas

2023-09-06 Thread Michal Suchanek
possible to run older versions of userspace tools that don't support other interfaces. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/rtas.c | 2 ++ arch/powerpc/platforms/Kconfig | 9 + 2 files changed, 11 insertions(+) diff --git a/arch/powerpc/kernel/rtas.c b/arch/po

[PATCH] kbuild: dummy-tools: -mprofile-kernel is not limited to little endian

2023-08-29 Thread Michal Suchanek
Fixes: aec0ba7472a7 ("powerpc/64: Use -mprofile-kernel for big endian ELFv2 kernels") Signed-off-by: Michal Suchanek --- scripts/dummy-tools/gcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dummy-tools/gcc b/scripts/dummy-tools/gcc index 1db1889f6d81..eb

[PATCH] powerpc: Move DMA64_PROPNAME define to a header

2023-08-17 Thread Michal Suchanek
Avoid redefining the same value in multiple source. Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/iommu.h | 3 +++ arch/powerpc/kexec/file_load_64.c | 5 + arch/powerpc/platforms/pseries/iommu.c | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a

[PATCH v3] of: Make of framebuffer devices unique

2023-01-20 Thread Michal Suchanek
aplay. cc: linuxppc-dev@lists.ozlabs.org References: https://bugzilla.kernel.org/show_bug.cgi?id=216095 Fixes: 52b1b46c39ae ("of: Create platform devices for OF framebuffers") Reported-by: Erhard F. Suggested-by: Thomas Zimmermann Signed-off-by: Michal Suchanek --- v3: - merge fix in

[PATCH v2] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-19 Thread Michal Suchanek
a23a1 ("of: Make of framebuffer devices unique") Signed-off-by: Michal Suchanek --- v2: Update the device name format --- drivers/of/platform.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index f2a5d679a324.

[PATCH] of: Fix of platform build on powerpc due to bad of disaply code

2023-01-18 Thread Michal Suchanek
The commit 2d681d6a23a1 ("of: Make of framebuffer devices unique") breaks build because of wrong argument to snprintf. That certainly avoids the runtime error but is not the intended outcome. Fixes: 2d681d6a23a1 ("of: Make of framebuffer devices unique") Signed-off

[PATCH] of: Make of framebuffer devices unique

2023-01-17 Thread Michal Suchanek
aplay. cc: linuxppc-dev@lists.ozlabs.org References: https://bugzilla.kernel.org/show_bug.cgi?id=216095 Fixes: 52b1b46c39ae ("of: Create platform devices for OF framebuffers") Reported-by: Erhard F. Suggested-by: Thomas Zimmermann Signed-off-by: Michal Suchanek --- drivers/of/platform.

[PATCH 5.15 3/6] kexec: drop weak attribute from functions

2022-09-23 Thread Michal Suchanek
nk: https://lkml.kernel.org/r/c0f6219e03cb399d166d518ab505095218a902dd.1656659357.git.naveen.n@linux.vnet.ibm.com Signed-off-by: Naveen N. Rao Suggested-by: Eric Biederman Signed-off-by: Andrew Morton Signed-off-by: Mimi Zohar Signed-off-by: Michal Suchanek --- arch/arm64/include/asm/kexe

[PATCH 5.15 2/6] kexec_file: drop weak attribute from functions

2022-09-23 Thread Michal Suchanek
cd7ca1fe4d6bb6ca38e3283c717878388ed6788.1656659357.git.naveen.n@linux.vnet.ibm.com Signed-off-by: Naveen N. Rao Suggested-by: Eric Biederman Signed-off-by: Andrew Morton Signed-off-by: Mimi Zohar Signed-off-by: Michal Suchanek --- arch/arm64/include/asm/kexec.h | 4 ++- arch/powerpc/inclu

[PATCH 5.15 0/6] arm64: kexec_file: use more system keyrings to verify kernel image signature + dependencies

2022-09-23 Thread Michal Suchanek
Hello, this is backport of commit 0d519cadf751 ("arm64: kexec_file: use more system keyrings to verify kernel image signature") to table 5.15 tree including the preparatory patches. Some patches needed minor adjustment for context. Thanks Michal Coiby Xu (3): kexec: clean up arch_kexec_kern

[PATCH v5 0/6] KEXEC_SIG with appended signature

2022-01-11 Thread Michal Suchanek
c_sig Michal Suchanek (6): s390/kexec_file: Don't opencode appended signature check. powerpc/kexec_file: Add KEXEC_SIG support. kexec_file: Don't opencode appended signature verification. module: strip the signature marker in the verification function. module: Use key_being_u

[PATCH v5 6/6] module: Move duplicate mod_check_sig users code to mod_parse_sig

2022-01-11 Thread Michal Suchanek
: Michal Suchanek --- v3: - Philipp Rudo : Update the commit with note about change of raturn value - Preserve the EBADMSG error code while moving code araound v4: - remove unused variable ms in module_signing.c - note about buffer length v5: - also change the functions in

[PATCH v5 1/6] s390/kexec_file: Don't opencode appended signature check.

2022-01-11 Thread Michal Suchanek
Module verification already implements appeded signature check. Reuse it for kexec_file. The kexec_file implementation uses EKEYREJECTED error in some cases when there is no key and the common implementation uses ENOPKG or EBADMSG instead. Signed-off-by: Michal Suchanek Acked-by: Heiko

[PATCH v5 2/6] powerpc/kexec_file: Add KEXEC_SIG support.

2022-01-11 Thread Michal Suchanek
Copy the code from s390x Both powerpc and s390x use appended signature format (as opposed to EFI based patforms using PE format). Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the comit message with explanation why the s390 code is usable on powerpc. - Include correct

[PATCH v5 3/6] kexec_file: Don't opencode appended signature verification.

2022-01-11 Thread Michal Suchanek
Module verification already implements appeded signature verification. Reuse it for kexec_file. Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the dependency on MODULE_SIG_FORMAT to MODULE_SIG - Include linux/verification.h - previously added in earlier patch v4

[PATCH v5 5/6] module: Use key_being_used_for for log messages in verify_appended_signature

2022-01-11 Thread Michal Suchanek
Add value for kexec appended signature and pass in key_being_used_for enum rather than a string to verify_appended_signature to produce log messages about the signature. Signed-off-by: Michal Suchanek --- arch/powerpc/kexec/elf_64.c | 2 +- arch/s390/kernel/machine_kexec_file.c

[PATCH v5 4/6] module: strip the signature marker in the verification function.

2022-01-11 Thread Michal Suchanek
It is stripped by each caller separately. Note: this changes the error for kexec_file from EKEYREJECTED to ENODATA when the signature marker is missing. Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the commit with note about change of raturn value - the

[PATCH v4 6/6] module: Move duplicate mod_check_sig users code to mod_parse_sig

2022-01-10 Thread Michal Suchanek
. This also changes the buffer length in ima_read_modsig from size_t to unsigned long. This reduces the possible value range on 32bit but the length refers to kernel in-memory buffer which cannot be longer than ULONG_MAX. Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the commit

[PATCH v4 5/6] module: Use key_being_used_for for log messages in verify_appended_signature

2022-01-10 Thread Michal Suchanek
Add value for kexec appended signature and pass in key_being_used_for enum rather than a string to verify_appended_signature to produce log messages about the signature. Signed-off-by: Michal Suchanek --- arch/powerpc/kexec/elf_64.c | 2 +- arch/s390/kernel/machine_kexec_file.c

[PATCH v4 4/6] module: strip the signature marker in the verification function.

2022-01-10 Thread Michal Suchanek
It is stripped by each caller separately. Note: this changes the error for kexec_file from EKEYREJECTED to ENODATA when the signature marker is missing. Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the commit with note about change of raturn value - the

[PATCH v4 2/6] powerpc/kexec_file: Add KEXEC_SIG support.

2022-01-10 Thread Michal Suchanek
Copy the code from s390x Both powerpc and s390x use appended signature format (as opposed to EFI based patforms using PE format). Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the comit message with explanation why the s390 code is usable on powerpc. - Include correct

[PATCH v4 3/6] kexec_file: Don't opencode appended signature verification.

2022-01-10 Thread Michal Suchanek
Module verification already implements appeded signature verification. Reuse it for kexec_file. Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the dependency on MODULE_SIG_FORMAT to MODULE_SIG - Include linux/verification.h - previously added in earlier patch v4

[PATCH v4 1/6] s390/kexec_file: Don't opencode appended signature check.

2022-01-10 Thread Michal Suchanek
Module verification already implements appeded signature check. Reuse it for kexec_file. The kexec_file implementation uses EKEYREJECTED error in some cases when there is no key and the common implementation uses ENOPKG or EBADMSG instead. Signed-off-by: Michal Suchanek Acked-by: Heiko

[PATCH v4 0/6] KEXEC_SIG with appended signature

2022-01-10 Thread Michal Suchanek
c_sig Michal Suchanek (6): s390/kexec_file: Don't opencode appended signature check. powerpc/kexec_file: Add KEXEC_SIG support. kexec_file: Don't opencode appended signature verification. module: strip the signature marker in the verification function. module: Use key_being_u

[PATCH v3 6/6] module: Move duplicate mod_check_sig users code to mod_parse_sig

2022-01-07 Thread Michal Suchanek
missing. Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the commit with note about change of raturn value - Preserve the EBADMSG error code while moving code araound --- include/linux/module_signature.h| 1 + kernel/module_signature.c | 56

[PATCH v3 5/6] module: Use key_being_used_for for log messages in verify_appended_signature

2022-01-07 Thread Michal Suchanek
Add value for kexec appended signature and pass in key_being_used_for enum rather than a string to verify_appended_signature to produce log messages about the signature. Signed-off-by: Michal Suchanek --- arch/powerpc/kexec/elf_64.c | 2 +- arch/s390/kernel/machine_kexec_file.c

[PATCH v3 4/6] module: strip the signature marker in the verification function.

2022-01-07 Thread Michal Suchanek
It is stripped by each caller separately. Note: this changes the error for kexec_file from EKEYREJECTED to ENODATA when the signature marker is missing. Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the commit with note about change of raturn value - the

[PATCH v3 3/6] kexec_file: Don't opencode appended signature verification.

2022-01-07 Thread Michal Suchanek
Module verification already implements appeded signature verification. Reuse it for kexec_file. Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the dependency on MODULE_SIG_FORMAT to MODULE_SIG - Include linux/verification.h - previously added in earlier patch --- arch

[PATCH v3 2/6] powerpc/kexec_file: Add KEXEC_SIG support.

2022-01-07 Thread Michal Suchanek
Copy the code from s390x Both powerpc and s390x use appended signature format (as opposed to EFI based patforms using PE format). Signed-off-by: Michal Suchanek --- v3: - Philipp Rudo : Update the comit message with explanation why the s390 code is usable on powerpc. - Include correct

[PATCH v3 1/6] s390/kexec_file: Don't opencode appended signature check.

2022-01-07 Thread Michal Suchanek
Module verification already implements appeded signature check. Reuse it for kexec_file. Note: the kexec_file implementation uses EKEYREJECTED error in some cases when there is no key and the common implementation uses ENOPKG or EBADMSG instead. Signed-off-by: Michal Suchanek Acked-by: Heiko

[PATCH v3 0/6] KEXEC_SIG with appended signature

2022-01-07 Thread Michal Suchanek
c_sig Michal Suchanek (6): s390/kexec_file: Don't opencode appended signature check. powerpc/kexec_file: Add KEXEC_SIG support. kexec_file: Don't opencode appended signature verification. module: strip the signature marker in the verification function. module: Use key_being_u

[PATCH v2 6/6] module: Move duplicate mod_check_sig users code to mod_parse_sig

2021-11-25 Thread Michal Suchanek
Multiple users of mod_check_sig check for the marker, then call mod_check_sig, extract signature length, and remove the signature. Put this code in one place together with mod_check_sig. Signed-off-by: Michal Suchanek --- include/linux/module_signature.h| 1 + kernel/module_signature.c

[PATCH v2 2/6] powerpc/kexec_file: Add KEXEC_SIG support.

2021-11-25 Thread Michal Suchanek
Copy the code from s390x Signed-off-by: Michal Suchanek --- arch/powerpc/Kconfig| 11 +++ arch/powerpc/kexec/elf_64.c | 36 2 files changed, 47 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index ac0c515552fd

[PATCH v2 4/6] module: strip the signature marker in the verification function.

2021-11-25 Thread Michal Suchanek
It is stripped by each caller separately. Signed-off-by: Michal Suchanek --- arch/powerpc/kexec/elf_64.c | 9 - arch/s390/kernel/machine_kexec_file.c | 9 - kernel/module.c | 7 +-- kernel/module_signing.c | 12 ++-- 4

[PATCH v2 5/6] module: Use key_being_used_for for log messages in verify_appended_signature

2021-11-25 Thread Michal Suchanek
Add value for kexec appended signature and pass in key_being_used_for enum rather than a string to verify_appended_signature to produce log messages about the signature. Signed-off-by: Michal Suchanek --- arch/powerpc/kexec/elf_64.c | 2 +- arch/s390/kernel/machine_kexec_file.c

[PATCH v2 3/6] kexec_file: Don't opencode appended signature verification.

2021-11-25 Thread Michal Suchanek
Module verification already implements appeded signature verification. Reuse it for kexec_file. Signed-off-by: Michal Suchanek --- arch/powerpc/kexec/elf_64.c | 21 - arch/s390/kernel/machine_kexec_file.c | 21 - include/linux/verification.h

[PATCH v2 1/6] s390/kexec_file: Don't opencode appended signature check.

2021-11-25 Thread Michal Suchanek
Module verification already implements appeded signature check. Reuse it for kexec_file. Signed-off-by: Michal Suchanek --- arch/s390/kernel/machine_kexec_file.c | 22 +- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/arch/s390/kernel/machine_kexec_file.c b

[PATCH v2 0/6] KEXEC_SIG with appended signature

2021-11-25 Thread Michal Suchanek
ceive any review on that part so I don't know if it's desirable as implemented. The first two patches can be applied separately without the rest. Thanks Michal Michal Suchanek (6): s390/kexec_file: Don't opencode appended signature check. powerpc/kexec_file: Add KEXEC_SIG s

[PATCH 2/2] module: Move duplicate mod_check_sig users code to mod_parse_sig

2021-11-05 Thread Michal Suchanek
Multiple users of mod_check_sig check for the marker, then call mod_check_sig, extract signature length, and remove the signature. Put this code in one place together with mod_check_sig. Signed-off-by: Michal Suchanek --- include/linux/module_signature.h| 1 + kernel/module_signature.c

[PATCH 0/2] Additional appended signature cleanup

2021-11-05 Thread Michal Suchanek
There is one more copy of the code checking appended signarutes. Merge the common code to module_signature.c Thanks Michal Michal Suchanek (2): module: Use key_being_used_for for log messages in verify_appended_signature module: Move duplicate mod_check_sig users code to mod_parse_sig

[PATCH 1/2] module: Use key_being_used_for for log messages in verify_appended_signature

2021-11-05 Thread Michal Suchanek
Add value for kexec appended signature and pass in key_being_used_for enum rather than a string to verify_appended_signature to produce log messages about the signature. Signed-off-by: Michal Suchanek --- arch/powerpc/kexec/elf_64.c | 2 +- arch/s390/kernel/machine_kexec_file.c

[PATCH 2/3] module: strip the signature marker in the verification function.

2021-11-03 Thread Michal Suchanek
It is stripped by each caller separately. Signed-off-by: Michal Suchanek --- arch/s390/kernel/machine_kexec_file.c | 9 - kernel/module.c | 7 +-- kernel/module_signing.c | 12 ++-- 3 files changed, 11 insertions(+), 17 deletions

[PATCH 1/3] s390/kexec_file: Don't opencode appended signature verification.

2021-11-03 Thread Michal Suchanek
Module verification already implements appeded signature verification. Reuse it for kexec_file. Signed-off-by: Michal Suchanek --- arch/s390/kernel/machine_kexec_file.c | 33 --- include/linux/verification.h | 3 +++ kernel/module-internal.h | 2

[PATCH 3/3] powerpc/kexec_file: Add KEXEC_SIG support.

2021-11-03 Thread Michal Suchanek
Use the module verifier for the kernel image verification. Signed-off-by: Michal Suchanek --- arch/powerpc/Kconfig| 11 +++ arch/powerpc/kexec/elf_64.c | 14 ++ 2 files changed, 25 insertions(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index

[PATCH 0/3] KEXEC_SIG with appended signature

2021-11-03 Thread Michal Suchanek
Michal Michal Suchanek (3): s390/kexec_file: Don't opencode appended signature verification. module: strip the signature marker in the verification function. powerpc/kexec_file: Add KEXEC_SIG support. arch/powerpc/Kconfig | 11 +++ arch/powerpc/kexec/elf_64.c

[PATCH] powerpc/stacktrace: Include linux/delay.h

2021-07-29 Thread Michal Suchanek
Fixes: 7c6986ade69e ("powerpc/stacktrace: Fix spurious "stale" traces in raise_backtrace_ipi()") Signed-off-by: Michal Suchanek --- V2: Add header in alphabetical order. --- arch/powerpc/kernel/stacktrace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/k

[PATCH] powerpc/stacktrace: Include linux/delay.h

2021-07-26 Thread Michal Suchanek
Fixes: 7c6986ade69e ("powerpc/stacktrace: Fix spurious "stale" traces in raise_backtrace_ipi()") Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/stacktrace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/stacktrace.c b/arch/powerpc/kernel/stack

[PATCH v2 net-next resend] ibmvnic: remove default label from to_string switch

2021-05-19 Thread Michal Suchanek
in switch [-Wswitch] switch (state) { ^~ drivers/net/ethernet/ibm/ibmvnic.c: In function 'reset_reason_to_string': drivers/net/ethernet/ibm/ibmvnic.c:1935:2: warning: enumeration value 'VNIC_RESET_FOOBAR' not handled in switch [-Wswitch] switch (reason) { ^~

[PATCH v2 net-next resend] ibmvnic: remove default label from to_string switch

2021-05-04 Thread Michal Suchanek
in switch [-Wswitch] switch (state) { ^~ drivers/net/ethernet/ibm/ibmvnic.c: In function 'reset_reason_to_string': drivers/net/ethernet/ibm/ibmvnic.c:1935:2: warning: enumeration value 'VNIC_RESET_FOOBAR' not handled in switch [-Wswitch] switch (reason) { ^~

[PATCH v2 net-next] ibmvnic: remove default label from to_string switch

2021-05-03 Thread Michal Suchanek
in switch [-Wswitch] switch (state) { ^~ drivers/net/ethernet/ibm/ibmvnic.c: In function 'reset_reason_to_string': drivers/net/ethernet/ibm/ibmvnic.c:1935:2: warning: enumeration value 'VNIC_RESET_FOOBAR' not handled in switch [-Wswitch] switch (reason) { ^~ Sig

[PATCH] ibmvnic: remove default label from to_string switch

2021-05-03 Thread Michal Suchanek
in switch [-Wswitch] switch (state) { ^~ drivers/net/ethernet/ibm/ibmvnic.c: In function 'reset_reason_to_string': drivers/net/ethernet/ibm/ibmvnic.c:1935:2: warning: enumeration value 'VNIC_RESET_FOOBAR' not handled in switch [-Wswitch] switch (reason) { ^~ Sign

[PATCH] powerpc: Don't opencode HAVE_EFFICIENT_UNALIGNED_ACCESS

2021-05-02 Thread Michal Suchanek
purpose of enabling DCACHE_WORD_ACCESS and the second opencodes it, and differently at that. Fixes: a75c380c7129 ("powerpc: Enable DCACHE_WORD_ACCESS on ppc64le") Fixes: 8a18cc0c2c36 ("powerpc: Only disable HAVE_EFFICIENT_UNALIGNED_ACCESS on POWER7 little endian") Signed-off-by: Michal

[PATCH] ibmvnic: Fix possibly uninitialized old_num_tx_queues variable warning.

2021-03-02 Thread Michal Suchanek
itionally avoiding the warning. Fixes: 635e442f4a48 ("ibmvnic: merge ibmvnic_reset_init and ibmvnic_init") Signed-off-by: Michal Suchanek --- drivers/net/ethernet/ibm/ibmvnic.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/ibm/ibmvn

[PATCH] powerpc: Fix build error in paravirt.h

2021-01-20 Thread Michal Suchanek
el but it only works by chance in mainline. Fixes: ca3f969dcb11 ("powerpc/paravirt: Use is_kvm_guest() in vcpu_is_preempted()") Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/paravirt.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/include/asm/paravirt

[PATCH] powerpc: Stop exporting __clear_user which is now inlined.

2020-12-04 Thread Michal Suchanek
Stable commit 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled") redefines __clear_user as inline function but does not remove the export. Fixes: 452e2a83ea23 ("powerpc: Fix __clear_user() with KUAP enabled") Signed-off-by: Michal Suchanek --- arch/powerpc/lib/

[PATCH] ibmveth: Fix use of ibmveth in a bridge.

2020-10-26 Thread Michal Suchanek
Fixes: 6f2275433a2f ("ibmveth: Detect unsupported packets before sending to the hypervisor") Signed-off-by: Michal Suchanek --- ms: added commit message --- drivers/net/ethernet/ibm/ibmveth.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/n

[PATCH] Revert "powerpc/64s: machine check interrupt update NMI accounting"

2020-09-15 Thread Michal Suchanek
Fixes: 116ac378bb3f ("powerpc/64s: machine check interrupt update NMI accounting") Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/mce.c | 7 --- arch/powerpc/kernel/traps.c | 18 +++--- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/arch/powe

[PATCH] powerpcs: perf: consolidate perf_callchain_user_64 and perf_callchain_user_32

2020-04-06 Thread Michal Suchanek
perf_callchain_user_64 and perf_callchain_user_32 are nearly identical. Consolidate into one function with thin wrappers. Suggested-by: Nicholas Piggin Signed-off-by: Michal Suchanek --- arch/powerpc/perf/callchain.h| 24 +++- arch/powerpc/perf/callchain_32.c | 21

[PATCH] powerpc/64: Fix section mismatch warnings.

2020-03-26 Thread Michal Suchanek
start_here_common lacks a __init annotation or the annotation of start_kernel is wrong. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/head_64.S | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index ad79fddb974d

[PATCH v12 8/8] MAINTAINERS: perf: Add pattern that matches ppc perf to the perf entry.

2020-03-20 Thread Michal Suchanek
While at it also simplify the existing perf patterns. Signed-off-by: Michal Suchanek --- v10: new patch V12: remove redundant entries --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index e1a99197fb34..578429d0 100644 --- a

[PATCH v12 7/8] powerpc/perf: split callchain.c by bitness

2020-03-20 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. No code change intended. Signed-off-by: Michal Suchanek --- v6: - move current_is_64bit consolidetaion to earlier patch - move defines to the top of callchain_32.c

[PATCH v12 6/8] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2020-03-20 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc

[PATCH v12 5/8] powerpc/64: make buildable without CONFIG_COMPAT

2020-03-20 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c

[PATCH v12 4/8] powerpc/perf: consolidate valid_user_sp -> invalid_user_sp

2020-03-20 Thread Michal Suchanek
valid 32bit area on 64bit: #define TASK_SIZE_USER32 (0x0001UL - (1 * PAGE_SIZE)) #define STACK_TOP_USER32 TASK_SIZE_USER32 Change return value to bool. It is inverted by users anyway. Change to invalid_user_sp to avoid inverting the return value twice. Signed-off-by: Michal Suchanek

[PATCH v12 3/8] powerpc/perf: consolidate read_user_stack_32

2020-03-20 Thread Michal Suchanek
There are two almost identical copies for 32bit and 64bit. The function is used only in 32bit code which will be split out in next patch so consolidate to one function. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v6: new patch v8: move the consolidated function out of

[PATCH v12 2/8] powerpc: move common register copy functions from signal_32.c to signal.c

2020-03-20 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions

[PATCH v12 0/8] Disable compat cruft on ppc64le v12

2020-03-20 Thread Michal Suchanek
v10: - rebase, sent together with the syscall cleanup Changes in v11: - rebase - add MAINTAINERS pattern for ppc perf Changes in v12: - simplify valid_user_sp and change to invalid_user_sp - remove superfluous perf patterns in MAINTAINERS Michal Suchanek (8): powerpc: Add back

[PATCH v12 1/8] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro

2020-03-20 Thread Michal Suchanek
interface unconditionally. Link: https://lore.kernel.org/lkml/20190828151552.ga16...@infradead.org/ Link: https://lore.kernel.org/lkml/20190829214319.498c7de2@naga/ Signed-off-by: Michal Suchanek Reviewed-by: Arnd Bergmann --- v7: new patch --- arch/powerpc/include/asm/unistd.h | 1 + fs/re

[PATCH v11 8/8] MAINTAINERS: perf: Add pattern that matches ppc perf to the perf entry.

2020-03-19 Thread Michal Suchanek
Signed-off-by: Michal Suchanek --- v10: new patch --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index bc8dbe4fe4c9..329bf4a31412 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13088,6 +13088,8 @@ F: arch/*/kernel/*/perf_event*.c F: arch

[PATCH v11 7/8] powerpc/perf: split callchain.c by bitness

2020-03-19 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. No code change intended. Signed-off-by: Michal Suchanek --- v6: - move current_is_64bit consolidetaion to earlier patch - move defines to the top of callchain_32.c

[PATCH v11 6/8] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2020-03-19 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc

[PATCH v11 5/8] powerpc/64: make buildable without CONFIG_COMPAT

2020-03-19 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c

[PATCH v11 3/8] powerpc/perf: consolidate read_user_stack_32

2020-03-19 Thread Michal Suchanek
There are two almost identical copies for 32bit and 64bit. The function is used only in 32bit code which will be split out in next patch so consolidate to one function. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v6: new patch v8: move the consolidated function out of

[PATCH v11 4/8] powerpc/perf: consolidate valid_user_sp

2020-03-19 Thread Michal Suchanek
valid 32bit area on 64bit: #define TASK_SIZE_USER32 (0x0001UL - (1 * PAGE_SIZE)) #define STACK_TOP_USER32 TASK_SIZE_USER32 Signed-off-by: Michal Suchanek --- v8: new patch v11: simplify by using is_32bit_task() --- arch/powerpc/perf/callchain.c | 27 +++ 1

[PATCH v11 2/8] powerpc: move common register copy functions from signal_32.c to signal.c

2020-03-19 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions

[PATCH v11 1/8] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro

2020-03-19 Thread Michal Suchanek
interface unconditionally. Link: https://lore.kernel.org/lkml/20190828151552.ga16...@infradead.org/ Link: https://lore.kernel.org/lkml/20190829214319.498c7de2@naga/ Signed-off-by: Michal Suchanek Reviewed-by: Arnd Bergmann --- v7: new patch --- arch/powerpc/include/asm/unistd.h | 1 + fs/re

[PATCH v11 0/8] Disable compat cruft on ppc64le v11

2020-03-19 Thread Michal Suchanek
v10: - rebase, sent together with the syscall cleanup Changes in v11: - rebase - add MAINTAINERS pattern for ppc perf Michal Suchanek (8): powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro powerpc: move common register copy functions from signal_32.c to signal.c powerpc/perf: consolidate

[PATCH v11 7/8] powerpc/perf: split callchain.c by bitness

2020-03-19 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. No code change intended. Signed-off-by: Michal Suchanek --- v6: - move current_is_64bit consolidetaion to earlier patch - move defines to the top of callchain_32.c

[PATCH v11 8/8] MAINTAINERS: perf: Add pattern that matches ppc perf to the perf entry.

2020-03-19 Thread Michal Suchanek
Signed-off-by: Michal Suchanek --- v10: new patch --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index bc8dbe4fe4c9..329bf4a31412 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13088,6 +13088,8 @@ F: arch/*/kernel/*/perf_event*.c F: arch

[PATCH v11 6/8] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2020-03-19 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v3: make configurable --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc

[PATCH v11 4/8] powerpc/perf: consolidate valid_user_sp

2020-03-19 Thread Michal Suchanek
valid 32bit area on 64bit: #define TASK_SIZE_USER32 (0x0001UL - (1 * PAGE_SIZE)) #define STACK_TOP_USER32 TASK_SIZE_USER32 Signed-off-by: Michal Suchanek --- v8: new patch v11: simplify by using is_32bit_task() --- arch/powerpc/perf/callchain.c | 27 +++ 1

[PATCH v11 5/8] powerpc/64: make buildable without CONFIG_COMPAT

2020-03-19 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- v2: - fix 32bit ifdef condition in signal.c - simplify the compat ifdef condition in vdso.c - 64bit is redundant - simplify the compat ifdef condition in callchain.c

[PATCH v11 3/8] powerpc/perf: consolidate read_user_stack_32

2020-03-19 Thread Michal Suchanek
There are two almost identical copies for 32bit and 64bit. The function is used only in 32bit code which will be split out in next patch so consolidate to one function. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- v6: new patch v8: move the consolidated function out of

[PATCH v11 2/8] powerpc: move common register copy functions from signal_32.c to signal.c

2020-03-19 Thread Michal Suchanek
These functions are required for 64bit as well. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- arch/powerpc/kernel/signal.c| 141 arch/powerpc/kernel/signal_32.c | 140 --- 2 files changed, 141 insertions

[PATCH v11 0/8] Disable compat cruft on ppc64le v11

2020-03-19 Thread Michal Suchanek
v10: - rebase, sent together with the syscall cleanup Changes in v11: - rebase - add MAINTAINERS pattern for ppc perf Michal Suchanek (8): powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro powerpc: move common register copy functions from signal_32.c to signal.c powerpc/perf: consolidate

[PATCH v11 1/8] powerpc: Add back __ARCH_WANT_SYS_LLSEEK macro

2020-03-19 Thread Michal Suchanek
interface unconditionally. Link: https://lore.kernel.org/lkml/20190828151552.ga16...@infradead.org/ Link: https://lore.kernel.org/lkml/20190829214319.498c7de2@naga/ Signed-off-by: Michal Suchanek Reviewed-by: Arnd Bergmann --- v7: new patch --- arch/powerpc/include/asm/unistd.h | 1 + fs/re

[PATCH rebased 2/2] powerpc: avoid adjusting memory_limit for capture kernel memory reservation

2020-02-18 Thread Michal Suchanek
water. So, avoid adjusting memory_limit and error out instead. Signed-off-by: Hari Bathini Reviewed-by: Michal Suchanek --- arch/powerpc/kernel/fadump.c | 16 arch/powerpc/kexec/core.c| 22 +++--- 2 files changed, 11 insertions(+), 27 deletions(-) diff

[PATCH rebased 1/2] powerpc: reserve memory for capture kernel after hugepages init

2020-02-18 Thread Michal Suchanek
From: Hari Bathini Sometimes, memory reservation for KDump/FADump can overlap with memory marked for hugepages. This overlap leads to error, hang in KDump case and copy error reported by f/w in case of FADump, while trying to capture dump. Report error while setting up memory for the capture kern

[PATCH v2] powerpc: drmem: avoid NULL pointer dereference when drmem is unavailable

2020-01-31 Thread Michal Suchanek
e wraparound observed in the crash is prevented. Fixes: 6c6ea53725b3 ("powerpc/mm: Separate ibm, dynamic-memory data from DT format") Cc: Michal Suchanek Cc: sta...@vger.kernel.org Signed-off-by: Libor Pechacek Signed-off-by: Michal Suchanek --- v2: rename last_lmb -> limit, cl

[PATCH] powerpc: add link stack flush mitigation status in debugfs.

2019-11-27 Thread Michal Suchanek
The link stack flush status is not visible in debugfs. It can be enabled even when count cache flush is disabled. Add separate file for its status. Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/security.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc

[PATCH v2 rebase 34/34] MAINTAINERS: perf: Add pattern that matches ppc perf to the perf entry.

2019-11-27 Thread Michal Suchanek
Signed-off-by: Michal Suchanek --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9d3a5c54a41d..4d2a43542c83 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12774,6 +12774,8 @@ F: arch/*/kernel/*/perf_event*.c F: arch/*/kernel

[PATCH v2 rebase 33/34] powerpc/perf: split callchain.c by bitness

2019-11-27 Thread Michal Suchanek
Building callchain.c with !COMPAT proved quite ugly with all the defines. Splitting out the 32bit and 64bit parts looks better. No code change intended. Signed-off-by: Michal Suchanek --- arch/powerpc/perf/Makefile | 5 +- arch/powerpc/perf/callchain.c| 362

[PATCH v2 rebase 31/34] powerpc/64: make buildable without CONFIG_COMPAT

2019-11-27 Thread Michal Suchanek
There are numerous references to 32bit functions in generic and 64bit code so ifdef them out. Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/thread_info.h | 4 ++-- arch/powerpc/kernel/Makefile | 6 +++--- arch/powerpc/kernel/entry_64.S | 2 ++ arch/powerpc/kernel

[PATCH v2 rebase 32/34] powerpc/64: Make COMPAT user-selectable disabled on littleendian by default.

2019-11-27 Thread Michal Suchanek
On bigendian ppc64 it is common to have 32bit legacy binaries but much less so on littleendian. Signed-off-by: Michal Suchanek Reviewed-by: Christophe Leroy --- arch/powerpc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc

[PATCH v2 rebase 30/34] powerpc/perf: consolidate valid_user_sp

2019-11-27 Thread Michal Suchanek
valid 32bit area on 64bit: #define TASK_SIZE_USER32 (0x0001UL - (1 * PAGE_SIZE)) #define STACK_TOP_USER32 TASK_SIZE_USER32 Signed-off-by: Michal Suchanek --- arch/powerpc/perf/callchain.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-) diff --git

  1   2   3   4   >