Re: [PATCH v6 1/4] PCI: Remove pci_get_legacy_ide_irq and asm-generic/pci.h

2022-07-23 Thread Stafford Horne
On Fri, Jul 22, 2022 at 06:38:21PM -0500, Bjorn Helgaas wrote: > On Sat, Jul 23, 2022 at 06:49:41AM +0900, Stafford Horne wrote: > > The definition of the pci header function pci_get_legacy_ide_irq is only > > used in platforms that support PNP. So many of the architecutres where > > it is

Re: [PATCH v6 1/4] PCI: Remove pci_get_legacy_ide_irq and asm-generic/pci.h

2022-07-23 Thread Bjorn Helgaas
On Sat, Jul 23, 2022 at 06:49:41AM +0900, Stafford Horne wrote: > The definition of the pci header function pci_get_legacy_ide_irq is only > used in platforms that support PNP. So many of the architecutres where > it is defined do not use it. This also means we can remove > asm-generic/pci.h as

[PATCH v6 2/4] PCI: Move isa_dma_bridge_buggy out of dma.h

2022-07-23 Thread Stafford Horne
During recent PCI cleanups we noticed that the isa_dma_bridge_buggy symbol supported by all architectures is actually only used for x86_32. This patch moves the symbol out of all architectures limiting usage to only x86_32. This is possible because only x86_32 platforms or quirks existing in PCI

[PATCH v6 1/4] PCI: Remove pci_get_legacy_ide_irq and asm-generic/pci.h

2022-07-23 Thread Stafford Horne
The definition of the pci header function pci_get_legacy_ide_irq is only used in platforms that support PNP. So many of the architecutres where it is defined do not use it. This also means we can remove asm-generic/pci.h as all it provides is a definition of pci_get_legacy_ide_irq. Where

[PATCH linux-next] powerpc: init jump label early in ppc 64

2022-07-23 Thread zhouzhouyi
From: Zhouyi Zhou In ppc 64, invoke jump_label_init in setup_feature_keys is too late because static key will be used in subroutine of early_init_devtree. So we can invoke jump_label_init earlier in early_setup. We can not move setup_feature_keys backward because its subroutine

[PATCH 0/2] lib/nodemask: inline wrappers around bitmap

2022-07-23 Thread Yury Norov
On top of g...@github.com:/norov/linux.git bitmap-for-next. There are just 2 functions in nodemask.c, both are thin wrappers around bitmap API. 1st patch of this series drops dependency on in archrandom.h lib/nodemask: inline next_node_in() and node_random() MAINTAINERS

[PATCH 1/2] powerpc: drop dependency on in archrandom.h

2022-07-23 Thread Yury Norov
archrandom.h includes to refer ppc_md. This causes circular header dependency, if generic nodemask.h includes random.h: In file included from include/linux/cred.h:16, from include/linux/seq_file.h:13, from arch/powerpc/include/asm/machdep.h:6,

[RESEND PATCH 2/2] lib/nodemask: inline next_node_in() and node_random()

2022-07-23 Thread Yury Norov
The functions are pretty thin wrappers around find_bit engine, and keeping them in c-file prevents compiler from small_const_nbits() optimization, which must take place for all systems with MAX_NUMNODES less than BITS_PER_LONG (default is 16 for me). Moving them to header file doesn't blow up the

Re: [PATCH] powerpc: Remove the static variable initialisations to 0

2022-07-23 Thread Segher Boessenkool
On Sat, Jul 23, 2022 at 03:34:05PM +0200, Michal Suchánek wrote: > Hello, > > On Sat, Jul 23, 2022 at 05:24:36PM +0800, Jason Wang wrote: > > Initialise global and static variable to 0 is always unnecessary. > > Remove the unnecessary initialisations. > > Isn't this change also unnecessary? > >

Re: Regression: Linux v5.15+ does not boot on Freescale P2020

2022-07-23 Thread Pali Rohár
Hello, On Saturday 23 July 2022 14:42:22 Christophe Leroy wrote: > Hello, > > Le 22/07/2022 à 11:09, Pali Rohár a écrit : > > Hello! > > > > Trying to boot mainline Linux kernel v5.15+, including current version > > from master branch, on Freescale P2020 does not work. Kernel does not > > print

Re: Regression: Linux v5.15+ does not boot on Freescale P2020

2022-07-23 Thread Christophe Leroy
Hello, Le 22/07/2022 à 11:09, Pali Rohár a écrit : > Hello! > > Trying to boot mainline Linux kernel v5.15+, including current version > from master branch, on Freescale P2020 does not work. Kernel does not > print anything to serial console, seems that it does not work and after > timeout

Re: [PATCH] powerpc: Remove the static variable initialisations to 0

2022-07-23 Thread Michal Suchánek
Hello, On Sat, Jul 23, 2022 at 05:24:36PM +0800, Jason Wang wrote: > Initialise global and static variable to 0 is always unnecessary. > Remove the unnecessary initialisations. Isn't this change also unnecessary? Initializing to 0 does not affect correctness, or even any kind of semantics in

[PATCH v2 3/3] powerpc/pseries: Override lib/arch_vars.c with PowerPC architecture specific version

2022-07-23 Thread Nayna Jain
From: Greg Joyce Self Encrypting Drives(SED) make use of POWER LPAR Platform KeyStore for storing its variables. Thus the block subsystem needs to access PowerPC specific functions to read/write objects in PLPKS. Override the default implementations in lib/arch_vars.c file with PowerPC specific

[PATCH v2 2/3] lib: define generic accessor functions for arch specific keystore

2022-07-23 Thread Nayna Jain
From: Greg Joyce Generic kernel subsystems may rely on platform specific persistent KeyStore to store objects containing sensitive key material. In such case, they need to access architecture specific functions to perform read/write operations on these variables. Define the generic variable

[PATCH v2 1/3] powerpc/pseries: define driver for Platform KeyStore

2022-07-23 Thread Nayna Jain
PowerVM provides an isolated Platform Keystore(PKS) storage allocation for each LPAR with individually managed access controls to store sensitive information securely. It provides a new set of hypervisor calls for Linux kernel to access PKS storage. Define POWER LPAR Platform KeyStore(PLPKS)

[PATCH v2 0/3] Provide PowerVM LPAR Platform KeyStore driver for Self Encrypting Drives

2022-07-23 Thread Nayna Jain
PowerVM provides an isolated Platform KeyStore(PKS)[1] storage allocation for each partition(LPAR) with individually managed access controls to store sensitive information securely. The Linux Kernel can access this storage by interfacing with the hypervisor using a new set of hypervisor calls.

[PATCH] powerpc: Remove the static variable initialisations to 0

2022-07-23 Thread Jason Wang
Initialise global and static variable to 0 is always unnecessary. Remove the unnecessary initialisations. Signed-off-by: Jason Wang --- arch/powerpc/kexec/core_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kexec/core_64.c b/arch/powerpc/kexec/core_64.c

Re: [PATCH v2 0/4] mm: arm64: bring up BATCHED_UNMAP_TLB_FLUSH

2022-07-23 Thread xhao
On 7/20/22 7:18 PM, Barry Song wrote: On Tue, Jul 19, 2022 at 1:28 AM Yicong Yang wrote: On 2022/7/14 12:51, Barry Song wrote: On Thu, Jul 14, 2022 at 3:29 PM Xin Hao wrote: Hi barry. I do some test on Kunpeng arm64 machine use Unixbench. The test result as below. One core, we can see

Re: [PATCH v2 0/4] mm: arm64: bring up BATCHED_UNMAP_TLB_FLUSH

2022-07-23 Thread xhao
On 7/18/22 9:28 PM, Yicong Yang wrote: On 2022/7/14 12:51, Barry Song wrote: On Thu, Jul 14, 2022 at 3:29 PM Xin Hao wrote: Hi barry. I do some test on Kunpeng arm64 machine use Unixbench. The test result as below. One core, we can see the performance improvement above +30%. I am