Re: [PATCH kernel v3] KVM: PPC: Merge powerpc's debugfs entry content into generic entry

2021-12-16 Thread Cédric Le Goater
On 12/17/21 04:07, Alexey Kardashevskiy wrote: On 12/16/21 05:11, Cédric Le Goater wrote: On 12/15/21 02:33, Alexey Kardashevskiy wrote: At the moment KVM on PPC creates 3 types of entries under the kvm debugfs: 1) "%pid-%fd" per a KVM instance (for all platforms); 2) "vm%pid" (for PPC

[Bug 215217] Kernel fails to boot at an early stage when built with GCC_PLUGIN_LATENT_ENTROPY=y (PowerMac G4 3,6)

2021-12-16 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215217 --- Comment #13 from Christophe Leroy (christophe.le...@csgroup.eu) --- arch/powerpc/lib/feature-fixups.o also need DISABLE_LATENT_ENTROPY_PLUGIN, see extract from you vmlinux below c0c0ad20 : c0c0ad20: 94 21 ff e0 stwur1,-32(r1)

Re: [PATCH v2 00/20] powerpc: Define eligible functions as __init

2021-12-16 Thread Christophe Leroy
Le 16/12/2021 à 23:00, Nick Child a écrit : > > Changes in v2: > - add `__init` in prototypes right before the funtion name instead of > at the end. > - respond to ./scripts/checkpatch feedback You probably missed the following comment from checkpatch: WARNING: From:/Signed-off-by:

Re: [PATCH kernel v3] KVM: PPC: Merge powerpc's debugfs entry content into generic entry

2021-12-16 Thread Alexey Kardashevskiy
On 12/16/21 05:11, Cédric Le Goater wrote: > On 12/15/21 02:33, Alexey Kardashevskiy wrote: >> At the moment KVM on PPC creates 3 types of entries under the kvm debugfs: >> 1) "%pid-%fd" per a KVM instance (for all platforms); >> 2) "vm%pid" (for PPC Book3s HV KVM); >> 3) "vm%u_vcpu%u_timing"

Re: linux-next: manual merge of the audit tree with the powerpc tree

2021-12-16 Thread Paul Moore
On Thu, Dec 16, 2021 at 4:08 AM Christophe Leroy wrote: > Thanks Cédric, I've now been able to install debian PPC32 port of DEBIAN > 11 on QEMU and run the tests. > > I followed instructions in file README.md provided in the test suite. > I also modified tests/Makefile to force MODE := 32 > >

[PATCH v2 20/20] cuda/pmu: Make find_via_cuda/pmu init functions

2021-12-16 Thread Nick Child
Make `find_via_cuda` and `find_via_pmu` initialization functions. Previously, their definitions in `drivers/macintosh/via-cuda.h` include the `__init` attribute but their alternative definitions in `arch/powerpc/powermac/sectup./c` and prototypes in `include/linux/ cuda.h` and

[PATCH v2 19/20] powerpc/512x: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/512x' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH v2 18/20] powerpc/85xx: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/85xx' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH v2 17/20] powerpc/83xx: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/83xx' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH v2 16/20] powerpc/embedded6xx: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/embedded6xx' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH v2 15/20] powerpc/44x: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/44x/' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Signed-off-by: Nick Child --- arch/powerpc/platforms/44x/fsp2.c | 4 ++-- 1 file

[PATCH v2 14/20] powerpc/4xx: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/4xx' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Signed-off-by: Nick Child --- arch/powerpc/platforms/4xx/cpm.c | 4 ++--

[PATCH v2 13/20] powerpc/ps3: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/ps3' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by:

[PATCH v2 12/20] powerpc/pseries: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/pseries' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH v2 11/20] powerpc/powernv: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/powernv' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH v2 10/20] powerpc/powermac: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/powermac` are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick Child --- arch/powerpc/include/asm/smu.h

[PATCH v2 09/20] powerpc/pasemi: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/pasemi' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH v2 08/20] powerpc/chrp: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
The function `Enable_SRAM` defined in 'arch/powerpc/platforms/chrp' is deserving of an `__init` macro attribute. This function is only called by other initialization functions and therefore should inherit the attribute. Signed-off-by: Nick Child --- arch/powerpc/platforms/chrp/pegasos_eth.c | 2

[PATCH v2 07/20] powerpc/cell: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/cell' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Signed-off-by: Nick Child --- arch/powerpc/platforms/cell/cbe_regs.c| 2 +-

[PATCH v2 06/20] powerpc/xmon: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
`xmon_register_spus` defined in 'arch/powerpc/xmon' is deserving of an `__init` macro attribute. This functions is only called by other initialization functions and therefore should inherit the attribute. Also, change the function declaration in the header file to include `__init`. Signed-off-by:

[PATCH v2 05/20] powerpc/sysdev: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some files functions in 'arch/powerpc/sysdev' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick

[PATCH v2 04/20] powerpc/perf: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/perf' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick

[PATCH v2 02/20] powerpc/lib: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/lib' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick

[PATCH v2 01/20] powerpc/kernel: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in `arch/powerpc/kernel` (and one in `arch/powerpc/ kexec`) are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to

[PATCH v2 03/20] powerpc/mm: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/mm' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick Child

[PATCH v2 00/20] powerpc: Define eligible functions as __init

2021-12-16 Thread Nick Child
Hello all, This patchset focuses on redefining/declaring functions that could be labeled with the macro `__init`. From my understanding, an initialization function is one which is only needed during the initial phases of booting, after which it's resources can be freed. I figure that any

Re: [PATCH v3 0/5] rtc: nintendo: Add a RTC driver for the GameCube, Wii and Wii U

2021-12-16 Thread Emmanuel Gil Peyrot
On Thu, Dec 16, 2021 at 09:56:06PM +0100, Alexandre Belloni wrote: > On 16/12/2021 21:22:20+0100, Emmanuel Gil Peyrot wrote: > > On Thu, Dec 16, 2021 at 10:49:44AM +0100, Alexandre Belloni wrote: > > > On Wed, 15 Dec 2021 18:54:56 +0100, Emmanuel Gil Peyrot wrote: > > > > These three consoles

Re: [PATCH v3 0/5] rtc: nintendo: Add a RTC driver for the GameCube, Wii and Wii U

2021-12-16 Thread Alexandre Belloni
On 16/12/2021 21:22:20+0100, Emmanuel Gil Peyrot wrote: > On Thu, Dec 16, 2021 at 10:49:44AM +0100, Alexandre Belloni wrote: > > On Wed, 15 Dec 2021 18:54:56 +0100, Emmanuel Gil Peyrot wrote: > > > These three consoles share a device, the MX23L4005, which contains a > > > clock and 64 bytes of

Re: [PATCH v3 0/5] rtc: nintendo: Add a RTC driver for the GameCube, Wii and Wii U

2021-12-16 Thread Emmanuel Gil Peyrot
On Thu, Dec 16, 2021 at 10:49:44AM +0100, Alexandre Belloni wrote: > On Wed, 15 Dec 2021 18:54:56 +0100, Emmanuel Gil Peyrot wrote: > > These three consoles share a device, the MX23L4005, which contains a > > clock and 64 bytes of SRAM storage, and is exposed on the EXI bus > > (similar to SPI) on

Re: [PATCH 2/2] powerpc: Simplify and move arch_randomize_brk()

2021-12-16 Thread Christophe Leroy
Le 08/12/2021 à 15:32, Christophe Leroy a écrit : > arch_randomize_brk() is only needed for hash on book3s/64, for other > platforms the one provided by the default mmap layout is good enough. > > Move it to hash_utils.c and use randomize_page() like the generic one. > > And properly opt out

Re: [PATCH v2 00/13] Unify asm/unaligned.h around struct helper

2021-12-16 Thread Segher Boessenkool
On Thu, Dec 16, 2021 at 06:29:40PM +0100, Ard Biesheuvel wrote: > I think this series is a huge improvement, but it does not solve the > UB problem completely. As we found, there are open issues in the GCC > bugzilla regarding assumptions in the compiler that aligned quantities > either overlap

Re: [PATCH v4 07/10] powerpc/mm: Use generic_hugetlb_get_unmapped_area()

2021-12-16 Thread Catalin Marinas
On Thu, Dec 16, 2021 at 05:13:47PM +, Christophe Leroy wrote: > Le 09/12/2021 à 11:02, Nicholas Piggin a écrit : > > Excerpts from Christophe Leroy's message of December 9, 2021 3:18 am: > >> Use the generic version of arch_hugetlb_get_unmapped_area() > >> which is now available at all time. >

Re: [PATCH v2 00/13] Unify asm/unaligned.h around struct helper

2021-12-16 Thread Linus Torvalds
On Thu, Dec 16, 2021 at 9:29 AM Ard Biesheuvel wrote: > > CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS is used in many places to > conditionally emit code that violates C alignment rules. E.g., there > is this example in Documentation/core-api/unaligned-memory-access.rst: > > bool

RE: [PATCH v2 00/13] Unify asm/unaligned.h around struct helper

2021-12-16 Thread David Laight
From: Ard Biesheuvel > Sent: 16 December 2021 17:30 > > Hi Arnd, > > (replying to an old thread as this came up in the discussion regarding > misaligned loads and stored in siphash() when compiled for ARM > [f7e5b9bfa6c8820407b64eabc1f29c9a87e8993d]) > > On Fri, 14 May 2021 at 12:02, Arnd

[PATCH v2 2/2] powerpc: Add set_memory_{p/np}() and remove set_memory_attr()

2021-12-16 Thread Christophe Leroy
set_memory_attr() was implemented by commit 4d1755b6a762 ("powerpc/mm: implement set_memory_attr()") because the set_memory_xx() couldn't be used at that time to modify memory "on the fly" as explained it the commit. But set_memory_attr() uses set_pte_at() which leads to warnings when

[PATCH v2 1/2] powerpc/set_memory: Avoid spinlock recursion in change_page_attr()

2021-12-16 Thread Christophe Leroy
Commit 1f9ad21c3b38 ("powerpc/mm: Implement set_memory() routines") included a spin_lock() to change_page_attr() in order to safely perform the three step operations. But then commit 9f7853d7609d ("powerpc/mm: Fix set_memory_*() against concurrent accesses") modify it to use pte_update() and do

Re: [PATCH v2 00/13] Unify asm/unaligned.h around struct helper

2021-12-16 Thread Ard Biesheuvel
Hi Arnd, (replying to an old thread as this came up in the discussion regarding misaligned loads and stored in siphash() when compiled for ARM [f7e5b9bfa6c8820407b64eabc1f29c9a87e8993d]) On Fri, 14 May 2021 at 12:02, Arnd Bergmann wrote: > > From: Arnd Bergmann > > The

Re: [patch V3 00/35] genirq/msi, PCI/MSI: Spring cleaning - Part 2

2021-12-16 Thread Thomas Gleixner
Nishanth, On Wed, Dec 15 2021 at 19:45, Nishanth Menon wrote: > On 17:35-20211215, Thomas Gleixner wrote: > Thanks once again for your help. Hope we can roll in the fixes for > part3. Sure, it's only the one-liner for ti sci. Got it folded already. Thanks for your help and testing! tglx

Re: [PATCH v4 07/10] powerpc/mm: Use generic_hugetlb_get_unmapped_area()

2021-12-16 Thread Christophe Leroy
Le 09/12/2021 à 11:02, Nicholas Piggin a écrit : > Excerpts from Christophe Leroy's message of December 9, 2021 3:18 am: >> Use the generic version of arch_hugetlb_get_unmapped_area() >> which is now available at all time. >> >> Signed-off-by: Christophe Leroy >> --- >>

Re: [PATCH v4 09/10] powerpc/mm: Convert to default topdown mmap layout

2021-12-16 Thread Christophe Leroy
Le 09/12/2021 à 11:15, Nicholas Piggin a écrit : > Excerpts from Christophe Leroy's message of December 9, 2021 3:18 am: >> Select CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT and >> remove arch/powerpc/mm/mmap.c >> >> This change provides standard randomisation of mmaps. >> >> See commit

Re: [PATCH v4 06/10] powerpc/mm: Use generic_get_unmapped_area() and call it from arch_get_unmapped_area()

2021-12-16 Thread Christophe Leroy
Le 09/12/2021 à 10:50, Nicholas Piggin a écrit : > Excerpts from Christophe Leroy's message of December 9, 2021 3:18 am: >> Use the generic version of arch_get_unmapped_area() which >> is now available at all time instead of its copy >> radix__arch_get_unmapped_area() >> >> Instead of setting

Re: [PATCH 1/2] sizes.h: Add SZ_1T macro

2021-12-16 Thread Christophe Leroy
Le 08/12/2021 à 22:19, Krzysztof Wilczyński a écrit : > Hello Christophe, > >> Today drivers/pci/controller/pci-xgene.c defines SZ_1T >> >> Move it into linux/sizes.h so that it can be re-used elsewhere. > > Sounds like a good idea! > > By the way, there was an earlier version of this patch,

Re: [PATCH v2 0/6] Cleanup after removal of configs

2021-12-16 Thread Thomas Bogendoerfer
On Thu, Dec 16, 2021 at 10:44:20AM +0100, Alexandre Ghiti wrote: > While bumping from 5.13 to 5.15, I found that a few deleted configs had > left some pieces here and there: this patchset cleans that. > > Changes in v2: > - Rebase on top of v5.16-rc1 > - Removed patch 6 since Matti said he would

[PATCH v2] powerpc/64s/radix: Fix huge vmap false positive

2021-12-16 Thread Nicholas Piggin
pmd_huge() is defined to false when HUGETLB_PAGE is not configured, but the vmap code still installs huge PMDs. This leads to false bad PMD errors when vunmapping because it is not seen as a huge PTE, and the bad PMD check catches it. The end result may not be much more serious than some bad pmd

Re: [PATCH 0/7] Cleanup after removal of configs

2021-12-16 Thread Alexandre Ghiti
On Wed, Dec 15, 2021 at 10:49 PM Arnd Bergmann wrote: > > On Fri, Dec 10, 2021 at 9:38 PM Alexandre Ghiti > wrote: > > > > On Fri, Nov 5, 2021 at 4:56 PM Arnd Bergmann wrote: > > > > > > On Fri, Nov 5, 2021 at 4:43 PM Alexandre Ghiti > > > wrote: > > > > > > > > While bumping from 5.13 to

Re: [PATCH v3 0/5] rtc: nintendo: Add a RTC driver for the GameCube, Wii and Wii U

2021-12-16 Thread Alexandre Belloni
Hello, On 16/12/2021 15:52:59+1100, Michael Ellerman wrote: > > Emmanuel Gil Peyrot (5): > > rtc: gamecube: Add a RTC driver for the GameCube, Wii and Wii U > > rtc: gamecube: Report low battery as invalid data > > powerpc: wii.dts: Expose HW_SRNPROT on this platform > > powerpc:

[PATCH v2 6/6] arch: Remove leftovers from prism54 wireless driver

2021-12-16 Thread Alexandre Ghiti
This driver was removed so remove all references to it. Fixes: d249ff28b1d8 ("intersil: remove obsolete prism54 wireless driver") Signed-off-by: Alexandre Ghiti --- arch/mips/configs/ip27_defconfig| 1 - arch/mips/configs/malta_defconfig | 1 -

[PATCH v2 5/6] Documentation, arch, fs: Remove leftovers from fscache object list

2021-12-16 Thread Alexandre Ghiti
A few references to the fscache object list were left in the Documentation, some arch defconfigs and in fs: remove them since this config does not exists anymore. Fixes: 58f386a73f16 ("fscache: Remove the object list procfile") Signed-off-by: Alexandre Ghiti Acked-by: Arnd Bergmann

Re: [PATCH v3 0/5] rtc: nintendo: Add a RTC driver for the GameCube, Wii and Wii U

2021-12-16 Thread Alexandre Belloni
On Wed, 15 Dec 2021 18:54:56 +0100, Emmanuel Gil Peyrot wrote: > These three consoles share a device, the MX23L4005, which contains a > clock and 64 bytes of SRAM storage, and is exposed on the EXI bus > (similar to SPI) on channel 0, device 1. This driver allows it to be > used as a Linux RTC

[PATCH v2 4/6] arch: Remove leftovers from mandatory file locking

2021-12-16 Thread Alexandre Ghiti
This config was removed so remove all references to it. Fixes: f7e33bdbd6d1 ("fs: remove mandatory file locking support") Signed-off-by: Alexandre Ghiti Reviewed-by: Jeff Layton --- arch/mips/configs/decstation_64_defconfig | 1 - arch/mips/configs/decstation_defconfig | 1 -

Re: [PATCH 00/20] powerpc: Define eligible functions as __init

2021-12-16 Thread Christophe Leroy
Le 15/12/2021 à 17:12, Nick Child a écrit : > Hello all, > > This patchset focuses on redefining/declaring functions that could be > labeled with the macro `__init`. From my understanding, an initialization > function is one which is only needed during the initial phases of booting, > after

[PATCH v2 3/6] Documentation, arch: Remove leftovers from CIFS_WEAK_PW_HASH

2021-12-16 Thread Alexandre Ghiti
This config was removed so remove all references to it. Fixes: 76a3c92ec9e0 ("cifs: remove support for NTLM and weaker authentication algorithms") Signed-off-by: Alexandre Ghiti Reviewed-by: Steve French Acked-by: Arnd Bergmann [arch/arm/configs] --- Documentation/admin-guide/cifs/usage.rst

[PATCH v2 2/6] Documentation, arch: Remove leftovers from raw device

2021-12-16 Thread Alexandre Ghiti
Raw device interface was removed so remove all references to configs related to it. Fixes: 603e4922f1c8 ("remove the raw driver") Signed-off-by: Alexandre Ghiti Acked-by: Arnd Bergmann [arch/arm/configs] --- Documentation/admin-guide/devices.txt | 8 +---

[PATCH v2 1/6] Documentation, arch: Remove leftovers from fscache/cachefiles histograms

2021-12-16 Thread Alexandre Ghiti
A few references to the fscache and cachefiles histograms were left in the Documentation and some arch defconfigs: remove them since those configs do not exist anymore. Fixes: 6ae9bd8bb037("fscache, cachefiles: Remove the histogram stuff") Signed-off-by: Alexandre Ghiti Acked-by: Arnd Bergmann

[PATCH v2 0/6] Cleanup after removal of configs

2021-12-16 Thread Alexandre Ghiti
While bumping from 5.13 to 5.15, I found that a few deleted configs had left some pieces here and there: this patchset cleans that. Changes in v2: - Rebase on top of v5.16-rc1 - Removed patch 6 since Matti said he would take care of that - Added AB, RB Alexandre Ghiti (6): Documentation, arch:

Re: [PATCH 00/20] powerpc: Define eligible functions as __init

2021-12-16 Thread Christophe Leroy
Le 15/12/2021 à 17:12, Nick Child a écrit : > Hello all, > > This patchset focuses on redefining/declaring functions that could be > labeled with the macro `__init`. From my understanding, an initialization > function is one which is only needed during the initial phases of booting, > after

Re: linux-next: manual merge of the audit tree with the powerpc tree

2021-12-16 Thread Christophe Leroy
Le 14/12/2021 à 21:30, Cédric Le Goater a écrit : > On 12/14/21 20:32, Christophe Leroy wrote: >> >> >> Le 14/12/2021 à 19:23, Paul Moore a écrit : >>> On Tue, Dec 14, 2021 at 12:59 PM Christophe Leroy >>> wrote: Hello Paul, I've been trying to setup your test suite on my powerpc

[PATCH] powerpc/iommu: fix modpost section mismatch error in allocate_dart()

2021-12-16 Thread Jackie Liu
From: Jackie Liu allocate_dart is used in dart_init, and dart_init is in the __init section, we should also put the allocate_dart function in the __init section. Reported-by: k2ci Signed-off-by: Jackie Liu --- arch/powerpc/sysdev/dart_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 2/9] lib/bitmap: implement bitmap_{empty, full} with bitmap_weight_eq()

2021-12-16 Thread Yury Norov
On Wed, Dec 15, 2021 at 12:41 AM David Laight wrote: > > From: Yury Norov > > Sent: 14 December 2021 19:43 > ... > > > > I think that for long bitmaps the most time consuming operation is moving > > data to L1, and for short bitmaps the difference between approaches is > > barely measurable. > >

Re: [BUG] mtd: cfi_cmdset_0002: write regression since v4.17-rc1

2021-12-16 Thread Tokunori Ikegami
Hi Ahmad-san, Sorry for the regression issue by the change: dfeae1073583. To make sure could you please try with the word write instead of the buffered writes? FYI: There are some changes to disable the buffered writes as below.   1.

[PATCH 20/20] cuda/pmu: Make find_via_cuda/pmu init functions

2021-12-16 Thread Nick Child
Make `find_via_cuda` and `find_via_pmu` initialization functions. Previously, their definitions in `drivers/macintosh/via-cuda.h` include the `__init` attribute but their alternative definitions in `arch/powerpc/powermac /sectup./c` and prototypes in `include/linux/cuda.h` and `include/linux/

[PATCH 19/20] powerpc/512x: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/512x' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH 18/20] powerpc/85xx: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/85xx' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH 17/20] powerpc/83xx: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/83xx' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH 16/20] powerpc/embedded6xx: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/embedded6xx' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH 15/20] powerpc/44x: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/44x/' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Signed-off-by: Nick Child --- arch/powerpc/platforms/44x/fsp2.c | 4 ++-- 1 file

[PATCH 14/20] powerpc/4xx: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/4xx' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Signed-off-by: Nick Child --- arch/powerpc/platforms/4xx/cpm.c | 4 ++--

[PATCH 13/20] powerpc/ps3: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/ps3' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by:

[PATCH 12/20] powerpc/pseries: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/pseries' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH 11/20] powerpc/powernv: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/powernv' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH 10/20] powerpc/powermac: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/powermac` are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick Child --- arch/powerpc/include/asm/smu.h

[PATCH 09/20] powerpc/pasemi: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/pasemi' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`.

[PATCH 08/20] powerpc/chrp: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
The function `Enable_SRAM` defined in 'arch/powerpc/platforms/chrp' is deserving of an `__init` macro attribute. This function is only called by other initialization functions and therefore should inherit the attribute. Signed-off-by: Nick Child --- arch/powerpc/platforms/chrp/pegasos_eth.c | 2

[PATCH 07/20] powerpc/cell: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/platforms/cell' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Signed-off-by: Nick Child --- arch/powerpc/platforms/cell/cbe_regs.c| 2 +-

[PATCH 06/20] powerpc/xmon: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
`xmon_register_spus` defined in 'arch/powerpc/xmon' is deserving of an `__init` macro attribute. This functions is only called by other initialization functions and therefore should inherit the attribute. Also, change the function declaration in the header file to include `__init`. Signed-off-by:

[PATCH 05/20] powerpc/sysdev: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some files functions in 'arch/powerpc/sysdev' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick

[PATCH 04/20] powerpc/perf: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/perf' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick

[PATCH 03/20] powerpc/mm: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/mm' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick Child

[PATCH 02/20] powerpc/lib: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in 'arch/powerpc/lib' are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to include `__init`. Signed-off-by: Nick

[PATCH 00/20] powerpc: Define eligible functions as __init

2021-12-16 Thread Nick Child
Hello all, This patchset focuses on redefining/declaring functions that could be labeled with the macro `__init`. From my understanding, an initialization function is one which is only needed during the initial phases of booting, after which it's resources can be freed. I figure that any

[PATCH 01/20] powerpc/kernel: Add __init attribute to eligible functions

2021-12-16 Thread Nick Child
Some functions defined in `arch/powerpc/kernel` (and one in `arch/powerpc/ kexec`) are deserving of an `__init` macro attribute. These functions are only called by other initialization functions and therefore should inherit the attribute. Also, change function declarations in header files to

RE: [PATCH 2/9] lib/bitmap: implement bitmap_{empty,full} with bitmap_weight_eq()

2021-12-16 Thread David Laight
From: Yury Norov > Sent: 14 December 2021 19:43 ... > > I think that for long bitmaps the most time consuming operation is moving > data to L1, and for short bitmaps the difference between approaches is > barely measurable. > > But hweght_long on each iteration can't be more effective than the