Re: [PATCH] tty/hvc_opal: simplify if-if to if-else

2022-04-24 Thread Jiri Slaby
On 24. 04. 22, 11:25, Wan Jiabing wrote: Use if and else instead of if(A) and if (!A). Signed-off-by: Wan Jiabing --- drivers/tty/hvc/hvc_opal.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c index

[PATCH] powerpc/fsl_msi: fix return error value in error handing path

2022-04-24 Thread cgel . zte
From: Lv Ruyi This function fsl_msi_setup_hwirq() seems to return zero on success and non-zero on failure, but it returns zero in error handing path. Reported-by: Zeal Robot Signed-off-by: Lv Ruyi --- arch/powerpc/sysdev/fsl_msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[powerpc:next-test] BUILD SUCCESS a9d1c96332a4d9177c3ae1672d948817568d2b84

2022-04-24 Thread kernel test robot
i386 randconfig-c001 mips randconfig-c004-20220424 sh se7751_defconfig sh sh7724_generic_defconfig arc haps_hs_defconfig mips maltasmvp_eva_defconfig arm

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

2022-04-24 Thread pr-tracker-bot
The pull request you sent on Sun, 24 Apr 2022 23:08:48 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.18-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5206548f6e6741fccbce8d95cff8faeba0738c99 Thank you! --

[PATCH 1/1] powerpc/boot: remove unused function find_node_by_linuxphandle()

2022-04-24 Thread frowand . list
From: Frank Rowand The last user of find_node_by_linuxphandle() was removed in v4.18-rc1 by commit 30f4bbe0472a ("powerpc/boot: Remove support for Marvell MPSC serial controller") four years ago. This function is no longer needed. Signed-off-by: Frank Rowand --- arch/powerpc/boot/ops.h | 6

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

2022-04-24 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.18: The following changes since commit ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e: Linux 5.18-rc2 (2022-04-10 14:21:36 -1000) are available in the git repository at:

Re: [PATCH kernel] powerpc/perf: Fix 32bit compile

2022-04-24 Thread Michael Ellerman
On Thu, 21 Apr 2022 12:57:56 +1000, Alexey Kardashevskiy wrote: > The "read_bhrb" global symbol is only called under CONFIG_PPC64 of > arch/powerpc/perf/core-book3s.c but it is compiled for both 32 and 64 bit > anyway (and LLVM fails to link this on 32bit). > > This fixes it by moving bhrb.o to

Re: [PATCH] powerpc/time: Always set decrementer in timer_interrupt()

2022-04-24 Thread Michael Ellerman
On Thu, 21 Apr 2022 00:16:57 +1000, Michael Ellerman wrote: > This is a partial revert of commit 0faf20a1ad16 ("powerpc/64s/interrupt: > Don't enable MSR[EE] in irq handlers unless perf is in use"). > > Prior to that commit, we always set the decrementer in > timer_interrupt(), to clear the timer

Re: [PATCH V3 1/2] powerpc/perf: Fix the power9 event alternatives array to have correct sort order

2022-04-24 Thread Michael Ellerman
On Tue, 19 Apr 2022 17:18:27 +0530, Athira Rajeev wrote: > When scheduling a group of events, there are constraint checks > done to make sure all events can go in a group. Example, one of > the criteria is that events in a group cannot use same PMC. > But platform specific PMU supports alternative

Re: [PATCH kernel v2] KVM: PPC: Fix TCE handling for VFIO

2022-04-24 Thread Michael Ellerman
On Wed, 20 Apr 2022 15:08:40 +1000, Alexey Kardashevskiy wrote: > The LoPAPR spec defines a guest visible IOMMU with a variable page size. > Currently QEMU advertises 4K, 64K, 2M, 16MB pages, a Linux VM picks > the biggest (16MB). In the case of a passed though PCI device, there is > a hardware

Re: [PATCH] tty/hvc_opal: simplify if-if to if-else

2022-04-24 Thread Joe Perches
On Sun, 2022-04-24 at 17:25 +0800, Wan Jiabing wrote: > Use if and else instead of if(A) and if (!A). [] > diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c [] > @@ -344,14 +344,15 @@ void __init hvc_opal_init_early(void) > opal =

[PATCH] tty: hvcs: simplify if-if to if-else

2022-04-24 Thread Wan Jiabing
Use if and else instead of if(A) and if (!A) and fix a coding style. Signed-off-by: Wan Jiabing --- drivers/tty/hvc/hvcs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c index 245da1dfd818..9b7e8246a464 100644 ---

[PATCH] selftests/powerpc/pmu: Fix unsigned function returning negative constant

2022-04-24 Thread Haowen Bai
The function __perf_reg_mask has an unsigned return type, but returns a negative constant to indicate an error condition. So we change unsigned to int. Signed-off-by: Haowen Bai --- tools/testing/selftests/powerpc/pmu/sampling_tests/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)