Re: [PATCH v2 3/3] arch/*/: remove CONFIG_VIRT_TO_BUS

2022-06-25 Thread Michael Schmitz
Arnd, Am 24.06.2022 um 21:10 schrieb Arnd Bergmann: On Sat, Jun 18, 2022 at 3:06 AM Michael Schmitz wrote: Am 18.06.2022 um 00:57 schrieb Arnd Bergmann: All architecture-independent users of virt_to_bus() and bus_to_virt() have been fixed to use the dma mapping interfaces or have been remove

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

2022-06-25 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.19: The following changes since commit b13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3: Linux 5.19-rc2 (2022-06-12 16:11:37 -0700) are available in the git repository at: https://git.kernel.org/pu

Re: [PATCH] powerpc/prom_init: Fix build failure with GCC_PLUGIN_STRUCTLEAK_BYREF_ALL and KASAN

2022-06-25 Thread Michael Ellerman
On Fri, 10 Jun 2022 17:43:43 +0200, Christophe Leroy wrote: > When CONFIG_KASAN is selected, we expect prom_init to use __memset() > because it is too early to use memset(). > > But with CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL, the compiler adds calls > to memset() to clear objects on stack, hence

Re: [PATCH] powerpc/mm: Move CMA reservations after initmem_init()

2022-06-25 Thread Michael Ellerman
On Thu, 16 Jun 2022 22:00:33 +1000, Michael Ellerman wrote: > After commit 11ac3e87ce09 ("mm: cma: use pageblock_order as the single > alignment") there is an error at boot about the KVM CMA reservation > failing, eg: > > kvm_cma_reserve: reserving 6553 MiB for global area > cma: Failed to res

Re: [PATCH v5] powerpc/powernv: wire up rng during setup_arch

2022-06-25 Thread Michael Ellerman
On Tue, 21 Jun 2022 16:08:49 +0200, Jason A. Donenfeld wrote: > The platform's RNG must be available before random_init() in order to be > useful for initial seeding, which in turn means that it needs to be > called from setup_arch(), rather than from an init call. Fortunately, > each platform alre

[PATCH] powerpc/purgatory: Omit use of bin2c

2022-06-25 Thread Masahiro Yamada
The .incbin assembler directive is much faster than bin2c + $(CC). Do similar refactoring as in commit 4c0f032d4963 ("s390/purgatory: Omit use of bin2c"). Please note the .quad directive matches to size_t in C (both 8 byte) because the purgatory is compiled only for the 64-bit kernel. (KEXEC_FILE

[PATCH v2 RFC] drivers/usb/host/ehci-fsl: Fix interrupt setup in host mode.

2022-06-25 Thread Darren Stevens
In patch a1a2b7125e10 (Drop static setup of IRQ resource from DT core) we stopped platform_get_resource() from returning the IRQ, as all drivers were supposed to have switched to platform_get_irq() Unfortunately the Freescale EHCI driver in host mode got missed. Fix it. Also fix allocation of resou

Re: [PATCH] powerpc/xive: Fix some incorrect memory allocation

2022-06-25 Thread Cédric Le Goater
Hello Christophe, On 6/25/22 11:49, Christophe JAILLET wrote: 'xibm->count' really looks like a number of bits (see how it is used in __xive_irq_bitmap_alloc()), so use the bitmap API to allocate and free this bitmap. This improves semantic and potentially avoids some over memory allocation.

[PATCH] powerpc/xive: Fix some incorrect memory allocation

2022-06-25 Thread Christophe JAILLET
'xibm->count' really looks like a number of bits (see how it is used in __xive_irq_bitmap_alloc()), so use the bitmap API to allocate and free this bitmap. This improves semantic and potentially avoids some over memory allocation. Fixes: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE