[PATCH] KVM: PPC: Book3S HV nestedv2: Fix an error handling path in gs_msg_ops_kvmhv_nestedv2_config_fill_info()

2024-01-28 Thread Christophe JAILLET
The return value of kvmppc_gse_put_buff_info() is not assigned to 'rc' and 'rc' is uninitialized at this point. So the error handling can not work. Assign the expected value to 'rc' to fix the issue. Fixes: 19d31c5f1157 ("KVM: PPC: Add support for nestedv2 guests") Signed-off-by: Christophe JAILL

[PATCH AUTOSEL 6.7 17/39] PCI/AER: Decode Requester ID when no error info found

2024-01-28 Thread Sasha Levin
From: Bjorn Helgaas [ Upstream commit 1291b716bbf969e101d517bfb8ba18d958f758b8 ] When a device with AER detects an error, it logs error information in its own AER Error Status registers. It may send an Error Message to the Root Port (RCEC in the case of an RCiEP), which logs the fact that an Er

[PATCH AUTOSEL 6.6 14/31] PCI/AER: Decode Requester ID when no error info found

2024-01-28 Thread Sasha Levin
From: Bjorn Helgaas [ Upstream commit 1291b716bbf969e101d517bfb8ba18d958f758b8 ] When a device with AER detects an error, it logs error information in its own AER Error Status registers. It may send an Error Message to the Root Port (RCEC in the case of an RCiEP), which logs the fact that an Er

[PATCH AUTOSEL 6.1 12/27] PCI/AER: Decode Requester ID when no error info found

2024-01-28 Thread Sasha Levin
From: Bjorn Helgaas [ Upstream commit 1291b716bbf969e101d517bfb8ba18d958f758b8 ] When a device with AER detects an error, it logs error information in its own AER Error Status registers. It may send an Error Message to the Root Port (RCEC in the case of an RCiEP), which logs the fact that an Er

[PATCH AUTOSEL 5.15 10/19] PCI/AER: Decode Requester ID when no error info found

2024-01-28 Thread Sasha Levin
From: Bjorn Helgaas [ Upstream commit 1291b716bbf969e101d517bfb8ba18d958f758b8 ] When a device with AER detects an error, it logs error information in its own AER Error Status registers. It may send an Error Message to the Root Port (RCEC in the case of an RCiEP), which logs the fact that an Er

[PATCH AUTOSEL 5.10 06/13] PCI/AER: Decode Requester ID when no error info found

2024-01-28 Thread Sasha Levin
From: Bjorn Helgaas [ Upstream commit 1291b716bbf969e101d517bfb8ba18d958f758b8 ] When a device with AER detects an error, it logs error information in its own AER Error Status registers. It may send an Error Message to the Root Port (RCEC in the case of an RCiEP), which logs the fact that an Er

[PATCH AUTOSEL 5.4 05/11] PCI/AER: Decode Requester ID when no error info found

2024-01-28 Thread Sasha Levin
From: Bjorn Helgaas [ Upstream commit 1291b716bbf969e101d517bfb8ba18d958f758b8 ] When a device with AER detects an error, it logs error information in its own AER Error Status registers. It may send an Error Message to the Root Port (RCEC in the case of an RCiEP), which logs the fact that an Er

Re: [PATCH] init: refactor the generic cpu_to_node for NUMA

2024-01-28 Thread kernel test robot
Hi Huang, kernel test robot noticed the following build errors: [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on driver-core/driver-core-next driver-core/driver-core-linus linus/master v6.8-rc1 next-20240125] [If your patch is applied to the wrong git tree, ki

Re: [PATCH linux-next v3 01/14] kexec: split crashkernel reservation code out from crash_core.c

2024-01-28 Thread Klara Modin
Hi, On 2024-01-24 06:12, Baoquan He wrote: And also add config item CRASH_RESERVE to control its enabling of the codes. And update config items which has relationship with crashkernel reservation. And also change ifdeffery from CONFIG_CRASH_CORE to CONFIG_CRASH_RESERVE when those scopes are onl

Re: [PATCH] init: refactor the generic cpu_to_node for NUMA

2024-01-28 Thread kernel test robot
Hi Huang, kernel test robot noticed the following build errors: [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on driver-core/driver-core-next driver-core/driver-core-linus linus/master v6.8-rc1 next-20240125] [If your patch is applied to the wrong git tree, ki

[PATCH 1/5] sched/vtime: remove confusing arch_vtime_task_switch() declaration

2024-01-28 Thread Alexander Gordeev
Callback arch_vtime_task_switch() is only defined when CONFIG_VIRT_CPU_ACCOUNTING_NATIVE is selected. Yet, the function prototype forward declaration is present for CONFIG_VIRT_CPU_ACCOUNTING_GEN variant. Remove it. Signed-off-by: Alexander Gordeev --- include/linux/vtime.h | 1 - 1 file changed

[PATCH 5/5] sched/vtime: do not include header

2024-01-28 Thread Alexander Gordeev
There is no architecture-specific code or data left that generic needs to know about. Thus, avoid the inclusion of header. Signed-off-by: Alexander Gordeev --- include/asm-generic/vtime.h | 1 - include/linux/vtime.h | 4 2 files changed, 5 deletions(-) delete mode 100644 include/a

[PATCH 3/5] s390/vtime: remove unused __ARCH_HAS_VTIME_TASK_SWITCH leftover

2024-01-28 Thread Alexander Gordeev
__ARCH_HAS_VTIME_TASK_SWITCH macro is not used anymore. Signed-off-by: Alexander Gordeev --- arch/s390/include/asm/vtime.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/s390/include/asm/vtime.h b/arch/s390/include/asm/vtime.h index fe17e448c0c5..561c91c1a87c 100644 --- a/arch/s390/in

[PATCH 2/5] sched/vtime: get rid of generic vtime_task_switch() implementation

2024-01-28 Thread Alexander Gordeev
The generic vtime_task_switch() implementation gets built only if __ARCH_HAS_VTIME_TASK_SWITCH is not defined, but requires an architecture to implement arch_vtime_task_switch() callback at the same time, which is confusing. Further, arch_vtime_task_switch() is implemented for 32-bit PowerPC archi

[PATCH 0/5] sched/vtime: vtime.h headers cleanup

2024-01-28 Thread Alexander Gordeev
Hi all, Please find a small cleanup to vtime_task_switch() wiring. I split it into smaller patches to allow separate PowerPC vs s390 reviews. Otherwise patches 2+3 and 4+5 could have been merged. I tested it on s390 and compile-tested it on 32- and 64-bit PowerPC and few other major architectures

[PATCH 4/5] s390/irq,nmi: do not include header

2024-01-28 Thread Alexander Gordeev
update_timer_sys() and update_timer_mcck() are inlines used for CPU time accounting from the interrupt and machine-check handlers. These routines are specific to s390 architecture, but declared via header, which in turn inludes . Avoid the extra loop and include header directly. Signed-off-by: A

Re: [PATCH linux-next v3 01/14] kexec: split crashkernel reservation code out from crash_core.c

2024-01-28 Thread Baoquan He
On 01/28/24 at 02:28am, Klara Modin wrote: > Hi, > > On 2024-01-24 06:12, Baoquan He wrote: > > And also add config item CRASH_RESERVE to control its enabling of the > > codes. And update config items which has relationship with crashkernel > > reservation. > > > > And also change ifdeffery from

Re: [PATCH] KVM: PPC: Book3S HV nestedv2: Fix an error handling path in gs_msg_ops_kvmhv_nestedv2_config_fill_info()

2024-01-28 Thread Vaibhav Jain
Christophe JAILLET writes: > if (kvmppc_gsm_includes(gsm, KVMPPC_GSID_RUN_OUTPUT)) { > - kvmppc_gse_put_buff_info(gsb, KVMPPC_GSID_RUN_OUTPUT, > - cfg->vcpu_run_output_cfg); > + rc = kvmppc_gse_put_buff_info(gsb, KVMPPC_GSID_

[PATCH] mm/debug_vm_pgtable: Fix BUG_ON with pud advanced test

2024-01-28 Thread Aneesh Kumar K.V (IBM)
Architectures like powerpc add debug checks to ensure we find only devmap PUD pte entries. These debug checks are only done with CONFIG_DEBUG_VM. This patch marks the ptes used for PUD advanced test devmap pte entries so that we don't hit on debug checks on architecture like ppc64 as below. WARNIN

Re: [PATCH] mm/debug_vm_pgtable: Fix BUG_ON with pud advanced test

2024-01-28 Thread Aneesh Kumar K.V
On 1/29/24 11:52 AM, Anshuman Khandual wrote: > > > On 1/29/24 11:30, Aneesh Kumar K.V (IBM) wrote: >> Architectures like powerpc add debug checks to ensure we find only devmap >> PUD pte entries. These debug checks are only done with CONFIG_DEBUG_VM. >> This patch marks the ptes used for PUD adv

Re: [PATCH] mm/debug_vm_pgtable: Fix BUG_ON with pud advanced test

2024-01-28 Thread Anshuman Khandual
On 1/29/24 11:30, Aneesh Kumar K.V (IBM) wrote: > Architectures like powerpc add debug checks to ensure we find only devmap > PUD pte entries. These debug checks are only done with CONFIG_DEBUG_VM. > This patch marks the ptes used for PUD advanced test devmap pte entries > so that we don't hit o

Re: [PATCH v15 5/5] powerpc: add crash memory hotplug support

2024-01-28 Thread Sourabh Jain
On 23/01/24 15:52, Hari Bathini wrote: On 11/01/24 4:21 pm, Sourabh Jain wrote: Extend the arch crash hotplug handler, as introduced by the patch title ("powerpc: add crash CPU hotplug support"), to also support memory add/remove events. Elfcorehdr describes the memory of the crash kernel

Re: [PATCH] mm/debug_vm_pgtable: Fix BUG_ON with pud advanced test

2024-01-28 Thread Anshuman Khandual
On 1/29/24 11:56, Aneesh Kumar K.V wrote: > On 1/29/24 11:52 AM, Anshuman Khandual wrote: >> >> >> On 1/29/24 11:30, Aneesh Kumar K.V (IBM) wrote: >>> Architectures like powerpc add debug checks to ensure we find only devmap >>> PUD pte entries. These debug checks are only done with CONFIG_DEBUG