[PATCH v4 3/3] KVM: PPC: Add KVM_CAP_PPC_AIL_MODE_3

2022-02-21 Thread Nicholas Piggin
Add KVM_CAP_PPC_AIL_MODE_3 to advertise the capability to set the AIL resource mode to 3 with the H_SET_MODE hypercall. This capability differs between processor types and KVM types (PR, HV, Nested HV), and affects guest-visible behaviour. QEMU will implement a cap-ail-mode-3 to control this

[PATCH v4 2/3] KVM: PPC: Book3S PR: Disallow AIL != 0

2022-02-21 Thread Nicholas Piggin
KVM PR does not implement address translation modes on interrupt, so it must not allow H_SET_MODE to succeed. The behaviour change caused by this mode is architected and not advisory (interrupts *must* behave differently). QEMU does not deal with differences in AIL support in the host. The

[PATCH v4 0/3] KVM: PPC: Book3S PR: Fixes for AIL and SCV

2022-02-21 Thread Nicholas Piggin
Paolo, Patch 3 requires a KVM_CAP_PPC number allocated. QEMU maintainers are happy with it (link in changelog) just waiting on KVM upstreaming. Do you have objections to the series going to ppc/kvm tree first, or another option is you could take patch 3 alone first (it's relatively independent of

[PATCH v4 1/3] KVM: PPC: Book3S PR: Disable SCV when AIL could be disabled

2022-02-21 Thread Nicholas Piggin
PR KVM does not support running with AIL enabled, and SCV does is not supported with AIL disabled. Fix this by ensuring the SCV facility is disabled with FSCR while a CPU could be running with AIL=0. The PowerNV host supports disabling AIL on a per-CPU basis, so SCV just needs to be disabled when

Re: [RFC PATCH 0/5] Avoid kdump service reload on CPU hotplug events

2022-02-21 Thread Baoquan He
Hi, On 02/21/22 at 02:16pm, Sourabh Jain wrote: > On hotplug event (CPU/memory) the CPU information prepared for the kdump > kernel > becomes stale unless it is prepared again. To keep the CPU information > up-to-date a kdump service reload is triggered via the udev rule. > > The above approach

Re: [PATCH v3 3/3] KVM: PPC: Add KVM_CAP_PPC_AIL_MODE_3

2022-02-21 Thread Michael Ellerman
Nicholas Piggin writes: > Add KVM_CAP_PPC_AIL_MODE_3 to advertise the capability to set the AIL > resource mode to 3 with the H_SET_MODE hypercall. This capability > differs between processor types and KVM types (PR, HV, Nested HV), and > affects guest-visible behaviour. > > QEMU will implement a

Re: [PATCH v3 RESEND 1/3] powerpc/pseries: Parse control memory access error

2022-02-21 Thread Ganesh
On 1/7/22 19:44, Ganesh Goudar wrote: Add support to parse and log control memory access error for pseries. These changes are made according to PAPR v2.11 10.3.2.2.12. Signed-off-by: Ganesh Goudar --- arch/powerpc/platforms/pseries/ras.c | 36 1 file changed,

[PATCH RFC v1 5/5] scsi: storvsc: Hardware queues share blk_mq_tags

2022-02-21 Thread Melanie Plageman (Microsoft)
Decouple the number of tags available from the number of hardware queues by sharing a single blk_mq_tags amongst all hardware queues. When storage latency is relatively high, having too many tags available can harm the performance of mixed workloads. By sharing blk_mq_tags amongst hardware

[PATCH RFC v1 4/5] scsi: storvsc: use per device tag sets

2022-02-21 Thread Melanie Plageman (Microsoft)
storvsc operates in virtual environments where multiple devices with potentially widely varying performance can be attached to the same SCSI controller. As such, it can benefit from the device independence provided by per-device tag sets. Map each device tag set to a small integer index which

[PATCH RFC v1 3/5] scsi: core: Add per device tag sets

2022-02-21 Thread Melanie Plageman (Microsoft)
Currently a single blk_mq_tag_set is associated with a Scsi_Host. When SCSI controllers are limited, attaching multiple devices to the same controller is required. In cloud environments with relatively high latency persistent storage, requiring all devices on a controller to share a single

[PATCH RFC v1 2/5] scsi: map_queues() takes tag set instead of host

2022-02-21 Thread Melanie Plageman (Microsoft)
Change the scsi_host_template->map_queues() to accept a blk_mq_tag_set instead of a Scsi_Host as a function parameter. A future commit will introduce the concept of device tag sets. Thus map_queues() cannot assume that the target blk_mq_tag_set is accessible through Scsi_Host->tag_set.

[PATCH RFC v1 1/5] scsi: core: Rename host_tagset to hctx_share_tags

2022-02-21 Thread Melanie Plageman (Microsoft)
Scsi_Host->host_tagset, which is set by LLD using the scsi_host_template, determines whether or not to set the BLK_MQ_F_TAG_HCTX_SHARED flag in the blk_mq_tag_set. This then determines whether or not hardware contexts share blk_mq_tags. The name host_tagset is misleading, as it sounds like it

[PATCH RFC v1 0/5] Add SCSI per device tagsets

2022-02-21 Thread Melanie Plageman (Microsoft)
Currently a single blk_mq_tag_set is associated with a Scsi_Host. When SCSI controllers are limited, attaching multiple devices to the same controller is required. In cloud environments with relatively high latency persistent storage, requiring all devices on a controller to share a single

Re: [PATCH v2 18/18] uaccess: drop maining CONFIG_SET_FS users

2022-02-21 Thread Sergey Matyukevich
Hi Arnd, > From: Arnd Bergmann > > There are no remaining callers of set_fs(), so CONFIG_SET_FS > can be removed globally, along with the thread_info field and > any references to it. > > This turns access_ok() into a cheaper check against TASK_SIZE_MAX. > > With CONFIG_SET_FS gone, so drop

Re: [PATCH v4 00/13] Fix LKDTM for PPC64/IA64/PARISC v4

2022-02-21 Thread John Paul Adrian Glaubitz
Hi! On 2/16/22 13:25, John Paul Adrian Glaubitz wrote: >> This series does some cleanup in the three architectures and >> refactors function descriptors so that it can then easily use it >> in a generic way in LKDTM. > > I'll test the series on ia64 later this week. I have an Itanium box at >

Re: [PATCH v2 09/18] mips: use simpler access_ok()

2022-02-21 Thread Thomas Bogendoerfer
On Mon, Feb 21, 2022 at 03:31:23PM +0100, Arnd Bergmann wrote: > On Mon, Feb 21, 2022 at 2:24 PM Thomas Bogendoerfer > wrote: > > On Wed, Feb 16, 2022 at 02:13:23PM +0100, Arnd Bergmann wrote: > > > > > > diff --git a/arch/mips/include/asm/uaccess.h > > > b/arch/mips/include/asm/uaccess.h > > >

Re: [PATCH v2 09/18] mips: use simpler access_ok()

2022-02-21 Thread Arnd Bergmann
On Mon, Feb 21, 2022 at 2:24 PM Thomas Bogendoerfer wrote: > On Wed, Feb 16, 2022 at 02:13:23PM +0100, Arnd Bergmann wrote: > > > > diff --git a/arch/mips/include/asm/uaccess.h > > b/arch/mips/include/asm/uaccess.h > > index db9a8e002b62..d7c89dc3426c 100644 > > this doesn't work. For every

Re: [PATCH v2 09/18] mips: use simpler access_ok()

2022-02-21 Thread Thomas Bogendoerfer
On Wed, Feb 16, 2022 at 02:13:23PM +0100, Arnd Bergmann wrote: > > diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h > index db9a8e002b62..d7c89dc3426c 100644 > --- a/arch/mips/include/asm/uaccess.h > +++ b/arch/mips/include/asm/uaccess.h > @@ -19,6 +19,7 @@ > #ifdef

Re: [PATCH v3 3/3] KVM: PPC: Add KVM_CAP_PPC_AIL_MODE_3

2022-02-21 Thread Fabiano Rosas
Nicholas Piggin writes: > Add KVM_CAP_PPC_AIL_MODE_3 to advertise the capability to set the AIL > resource mode to 3 with the H_SET_MODE hypercall. This capability > differs between processor types and KVM types (PR, HV, Nested HV), and > affects guest-visible behaviour. > > QEMU will implement

Re: [PATCH v2 0/7] soc: fsl: guts: cleanups and serial_number support

2022-02-21 Thread Michael Walle
Hi, any news here? Through which tree is this supposed to go? Am 2022-02-09 17:32, schrieb Michael Walle: This series converts the guts driver from a platform driver to just an core_initcall. The driver itself cannot (or rather should never) be unloaded because others depends on detecting the

[RFC PATCH 5/5] powerpc/kdump: export kexec crash FDT details via sysfs

2022-02-21 Thread Sourabh Jain
Export kexec crash FDT address and size to /sys/kernel/kexec_crash_fdt and /sys/kernel/kexec_crash_fdt_size files to enabled kexec tool to utilize pre-allocated space kdump FDT. Signed-off-by: Sourabh Jain --- arch/powerpc/kexec/core_64.c | 27 +++ 1 file changed, 27

[RFC PATCH 4/5] powerpc/kdump: enable kexec_file_load system call to use kexec crash FDT

2022-02-21 Thread Sourabh Jain
This patch enables the kexec_file_load system to utilize the pre-allocated space for kexec crash FDT during the system boot. Signed-off-by: Sourabh Jain --- arch/powerpc/kexec/elf_64.c | 22 +++--- arch/powerpc/kexec/file_load_64.c | 4 2 files changed, 23

[RFC PATCH 3/5] powerpc/kdump: update kexec crash FDT on CPU hot add event

2022-02-21 Thread Sourabh Jain
Add a hook in CPU hot add path to update the kexec crash FDT with latest CPU data. To avoid code replication update_cpus_node function defined in kexec/file_load_64.c is exported and moved to core_64.c file so that it will be accessible to both kexec_load and kexec_file_load system call.

[RFC PATCH 2/5] powerpc/kdump: setup kexec crash FDT

2022-02-21 Thread Sourabh Jain
DLPAR operation post kexec_load or kexec_file_load system call makes the kexec crash kernel FDT stale. Booting kdump kernel with stale FDT leads to kernel hang. To keep the kdump FDT updated kdump reload is performed after DLPAR operation. The kdump reloading after each DLPAR operation can be

[RFC PATCH 1/5] powerpc/kdump: export functions from file_load_64.c

2022-02-21 Thread Sourabh Jain
Functions get_exclude_memory_ranges and locate_mem_hole_top_down_ppc64 can be shared across different kexec components, so export them as global functions. The locate_mem_hole_top_down_ppc64 and get_exclude_memory_ranges functions definition is moved to core_64.c so that both kexec_load and

[RFC PATCH 0/5] Avoid kdump service reload on CPU hotplug events

2022-02-21 Thread Sourabh Jain
On hotplug event (CPU/memory) the CPU information prepared for the kdump kernel becomes stale unless it is prepared again. To keep the CPU information up-to-date a kdump service reload is triggered via the udev rule. The above approach has two downsides: 1) The udev rules are prone to races if