[Bug 216183] Kernel 5.19-rc4 boots ok with CONFIG_PPC_RADIX_MMU=y but fails to boot with CONFIG_PPC_HASH_MMU_NATIVE=y

2022-06-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216183 Michael Ellerman (mich...@ellerman.id.au) changed: What|Removed |Added Status|NEW |ASSIGNED

[PATCH] UAPI: fix a spelling mistake

2022-06-28 Thread Zhang Jiaming
Change 'informations' to 'information'. Signed-off-by: Zhang Jiaming --- arch/powerpc/include/uapi/asm/bootx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/uapi/asm/bootx.h b/arch/powerpc/include/uapi/asm/bootx.h index 6728c7e24e58..eb0769e50e93 10064

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

2022-06-28 Thread Christoph Hellwig
On Wed, Jun 29, 2022 at 09:38:00AM +1200, Michael Schmitz wrote: > That's one of the 'liberties' I alluded to. The reason I left these in is > that I'm none too certain what device feature the DMA API uses to decide a > device isn't cache-coherent. The DMA API does not look at device features at a

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

2022-06-28 Thread Christoph Hellwig
On Wed, Jun 29, 2022 at 11:09:00AM +1200, Michael Schmitz wrote: > And all SCSI buffers are allocated using kmalloc? No way at all for user > space to pass unaligned data? Most that you will see actually comes from the page allocator. But the block layer has a dma_alignment limit, and when usersp

Re: [PATCH] powerpc: Update reviewers

2022-06-28 Thread Christophe Leroy
Le 29/06/2022 à 08:08, Michael Ellerman a écrit : > Christophe and Nick have been active in recent years on the mailing list > and making contributions, add them as reviewers. > > Paul and Ben are no longer actively reviewing powerpc patches, remove > them from the reviewers, they're still on li

[PATCH] powerpc: Update reviewers

2022-06-28 Thread Michael Ellerman
Christophe and Nick have been active in recent years on the mailing list and making contributions, add them as reviewers. Paul and Ben are no longer actively reviewing powerpc patches, remove them from the reviewers, they're still on linuxppc-dev if needed. Signed-off-by: Michael Ellerman --- M

[PATCH kernel v2] pseries/iommu/ddw: Fix kdump to work in absence of ibm,dma-window

2022-06-28 Thread Alexey Kardashevskiy
The pseries platform uses 32bit default DMA window (always 4K pages) and optional 64bit DMA window available via DDW ("Dynamic DMA Windows"), 64K or 2M pages. For ages the default one was not removed and a huge window was created in addition. Things changed with SRIOV-enabled PowerVM which creates

Re: [PATCH -next, v2] powerpc: add support for syscall stack randomization

2022-06-28 Thread Michael Ellerman
Xiu Jianfeng writes: > Add support for adding a random offset to the stack while handling > syscalls. This patch uses mftb() instead of get_random_int() for better > performance. > > In order to avoid unconditional stack canaries on syscall entry (due to > the use of alloca()), also disable stack

[Bug 215389] pagealloc: memory corruption at building glibc-2.33 and running its' testsuite

2022-06-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215389 --- Comment #30 from Michael Ellerman (mich...@ellerman.id.au) --- It's a bit of a stab in the dark, but can you try turning preempt off? ie. CONFIG_PREEMPT_NONE=y -- You may reply to this email to add a comment. You are receiving this mail be

Re: [PATCH] stack: Declare {randomize_,}kstack_offset to fix Sparse warnings

2022-06-28 Thread Christophe Leroy
Le 29/06/2022 à 05:29, GONG, Ruiqi a écrit : > Fix the following Sparse warnings that got noticed when the PPC-dev > patchwork was checking another patch (see the link below): > > init/main.c:862:1: warning: symbol 'randomize_kstack_offset' was not > declared. Should it be static? > init/main.c

[PATCH v3] powerpc/memhotplug: Add add_pages override for PPC

2022-06-28 Thread Aneesh Kumar K.V
With commit ffa0b64e3be5 ("powerpc: Fix virt_addr_valid() for 64-bit Book3E & 32-bit") the kernel now validate the addr against high_memory value. This results in the below BUG_ON with dax pfns. [ 635.798741][T26531] kernel BUG at mm/page_alloc.c:5521! 1:mon> e cpu 0x1: Vector: 700 (Program Chec

[PATCH net-next v2 33/35] qoriq: Add nodes for QSGMII PCSs

2022-06-28 Thread Sean Anderson
Now that we actually read registers from QSGMII PCSs, it's important that we have the correct address (instead of hoping that we're the MAC with all the QSGMII PCSs on its bus). Add nodes for the QSGMII PCSs. On the PowerPC platforms, all the QSGMII PCSs have the same structure (e.g. if QSGMIIA is

[PATCH net-next v2 32/35] qoriq: Specify which MACs support RGMII

2022-06-28 Thread Sean Anderson
For more precise link mode support, we can add a property specifying which MACs support RGMII. This silences the warning missing 'rgmii' property; assuming supported Signed-off-by: Sean Anderson --- Changes in v2: - Add rgmii property to all DPAA MACs .../boot/dts/freescale/fsl-ls1043

[PATCH net-next v2 28/35] net: dpaa: Adjust queue depth on rate change

2022-06-28 Thread Sean Anderson
Instead of setting the queue depth once during probe, adjust it on the fly whenever we configure the link. This is a bit unusal, since usually the DPAA driver calls into the FMAN driver, but here we do the opposite. We need to add a netdev to struct mac_device for this, but it will soon live in the

[PATCH net-next v2 27/35] soc: fsl: qbman: Add CGR update function

2022-06-28 Thread Sean Anderson
This adds a function to update a CGR with new parameters. qman_cgr_create can almost be used for this (with flags=0), but it's not suitable because it also registers the callback function. The _safe variant was modeled off of qman_cgr_delete_safe. However, we handle multiple arguments and a return

[PATCH net-next v2 26/35] soc: fsl: qbman: Add helper for sanity checking cgr ops

2022-06-28 Thread Sean Anderson
This breaks out/combines get_affine_portal and the cgr sanity check in preparation for the next commit. No functional change intended. Signed-off-by: Sean Anderson --- Changes in v2: - New drivers/soc/fsl/qbman/qman.c | 29 +++-- 1 file changed, 19 insertions(+), 10 del

[PATCH net-next v2 00/35] [RFT] net: dpaa: Convert to phylink

2022-06-28 Thread Sean Anderson
This series converts the DPAA driver to phylink. Additionally, it also adds a serdes driver to allow for dynamic reconfiguration between 1g and 10g interfaces (such as in an SFP+ slot). These changes are submitted together for this RFC, but they will eventually be submitted separately to the approp

Re: [PATCH v1 2/2] serial: Set probe_no_timeout for all DT based drivers

2022-06-28 Thread Tobias Klauser
l Cooper , linux-te...@vger.kernel.org, Jiri Slaby , linux-asp...@lists.ozlabs.org, Rob Herring , Florian Fainelli , Mateusz Holenko , Alexander Shiyan , kevin hilman , Broadcom internal kernel review list , Joel Stanley , Orson Zhai , paolo abeni , Patrice Chotard , Ray Jui , Vladimir Zapol

Re: [RFC PATCH v2 2/3] fs: define a firmware security filesystem named fwsecurityfs

2022-06-28 Thread Christian Brauner
On Mon, Jun 27, 2022 at 09:37:28AM +0200, Greg Kroah-Hartman wrote: > On Sun, Jun 26, 2022 at 11:48:06AM -0400, Mimi Zohar wrote: > > On Thu, 2022-06-23 at 09:23 -0400, James Bottomley wrote: > > > On Thu, 2022-06-23 at 10:54 +0200, Greg Kroah-Hartman wrote: > > > [...] > > > > > diff --git a/fs/fw

Re: [PATCH v1 0/2] Fix console probe delay when stdout-path isn't set

2022-06-28 Thread Andy Shevchenko
o Pieralisi , Al Cooper , linux-te...@vger.kernel.org, Jiri Slaby , linux-asp...@lists.ozlabs.org, Rob Herring , Florian Fainelli , Mateusz Holenko , Alexander Shiyan , kevin hilman , Broadcom internal kernel review list , Joel Stanley , Orson Zhai , paolo abeni , Patrice Chotard , Ray Jui

[powerpc:next-test] BUILD SUCCESS cdd235a67deef0ebec5f50928fcf6cf9d48de993

2022-06-28 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test branch HEAD: cdd235a67deef0ebec5f50928fcf6cf9d48de993 selftests/powerpc/pmu: Add test for hardware cache events elapsed time: 746m configs tested: 70 configs skipped: 2 The following configs have been bui

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

2022-06-28 Thread Michael Schmitz
Hi Bart, On 29/06/22 12:01, Michael Schmitz wrote: An example of a user space application that passes an SG I/O data buffer to the kernel that is aligned to a four byte boundary but not to an eight byte boundary if the -s (scattered) command line option is used: https://github.com/osandov/b

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

2022-06-28 Thread Michael Schmitz
Hi Bart, On 29/06/22 11:50, Bart Van Assche wrote: On 6/28/22 16:09, Michael Schmitz wrote: On 29/06/22 09:50, Arnd Bergmann wrote: On Tue, Jun 28, 2022 at 11:03 PM Michael Schmitz wrote: On 28/06/22 19:03, Geert Uytterhoeven wrote: The driver allocates bounce buffers using kmalloc if it hi

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

2022-06-28 Thread Bart Van Assche
On 6/28/22 16:09, Michael Schmitz wrote: On 29/06/22 09:50, Arnd Bergmann wrote: On Tue, Jun 28, 2022 at 11:03 PM Michael Schmitz wrote: On 28/06/22 19:03, Geert Uytterhoeven wrote: The driver allocates bounce buffers using kmalloc if it hits an unaligned data buffer - can such buffers still

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

2022-06-28 Thread Michael Schmitz
Hi Arnd, On 29/06/22 09:55, Arnd Bergmann wrote: On Tue, Jun 28, 2022 at 11:38 PM Michael Schmitz wrote: On 28/06/22 19:08, Arnd Bergmann wrote: I see two other problems with your patch though: a) you still duplicate the cache handling: the cache_clear()/cache_push() is supposed to already b

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

2022-06-28 Thread Michael Schmitz
Hi Arnd, On 29/06/22 09:50, Arnd Bergmann wrote: On Tue, Jun 28, 2022 at 11:03 PM Michael Schmitz wrote: On 28/06/22 19:03, Geert Uytterhoeven wrote: The driver allocates bounce buffers using kmalloc if it hits an unaligned data buffer - can such buffers still even happen these days? No idea

[Bug 215389] pagealloc: memory corruption at building glibc-2.33 and running its' testsuite

2022-06-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215389 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #300115|0 |1 is obsolete|

[Bug 215389] pagealloc: memory corruption at building glibc-2.33 and running its' testsuite

2022-06-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215389 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #300113|0 |1 is obsolete|

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

2022-06-28 Thread Arnd Bergmann
On Tue, Jun 28, 2022 at 11:38 PM Michael Schmitz wrote: > On 28/06/22 19:08, Arnd Bergmann wrote: > > I see two other problems with your patch though: > > > > a) you still duplicate the cache handling: the cache_clear()/cache_push() > > is supposed to already be done by dma_map_single() when the d

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

2022-06-28 Thread Arnd Bergmann
On Tue, Jun 28, 2022 at 11:03 PM Michael Schmitz wrote: > On 28/06/22 19:03, Geert Uytterhoeven wrote: > >> The driver allocates bounce buffers using kmalloc if it hits an > >> unaligned data buffer - can such buffers still even happen these days? > > No idea. > Hmmm - I think I'll stick a WARN_ON

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

2022-06-28 Thread Michael Schmitz
Hi Arnd, On 28/06/22 19:08, Arnd Bergmann wrote: On Tue, Jun 28, 2022 at 5:25 AM Michael Schmitz wrote: Am 28.06.2022 um 09:12 schrieb Michael Schmitz: Leaving the bounce buffer handling in place, and taking a few other liberties - this is what converting the easiest case (a3000 SCSI) might l

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

2022-06-28 Thread Michael Schmitz
Hi Geert, On 28/06/22 19:03, Geert Uytterhoeven wrote: Leaving the bounce buffer handling in place, and taking a few other liberties - this is what converting the easiest case (a3000 SCSI) might look like. Any obvious mistakes? The mvme147 driver would be very similar to handle (after conversi

[linux-next:master] BUILD REGRESSION cb71b93c2dc36d18a8b05245973328d018272cdf

2022-06-28 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: cb71b93c2dc36d18a8b05245973328d018272cdf Add linux-next specific files for 20220628 Error/Warning: (recently discovered and may have been fixed) arch/powerpc/kernel/interrupt.c:542:55: error

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

2022-06-28 Thread Leo Li
> -Original Message- > From: Shawn Guo > Sent: Monday, June 27, 2022 1:53 AM > To: Michael Walle > Cc: linuxppc-dev@lists.ozlabs.org; linux-arm-ker...@lists.infradead.org; > linux-ker...@vger.kernel.org; Leo Li ; Ulf Hansson > ; Sudeep Holla ; Arnd > Bergmann ; Dan Carpenter > Subject

Re: [PATCH -next, v2] powerpc: add support for syscall stack randomization

2022-06-28 Thread Christophe Leroy
Le 16/05/2022 à 09:32, Xiu Jianfeng a écrit : > Add support for adding a random offset to the stack while handling > syscalls. This patch uses mftb() instead of get_random_int() for better > performance. > > In order to avoid unconditional stack canaries on syscall entry (due to > the use of all

Re: [PATCH v3 0/3] tpm: Preserve TPM measurement log across kexec (ppc64)

2022-06-28 Thread Stefan Berger
On 6/28/22 12:58, Stefan Berger wrote: The of-tree subsystem does not currently preserve the IBM vTPM 1.2 and vTPM 2.0 measurement logs across a kexec on ppc64. This series fixes this for the kexec_file_load() syscall using the flattened device tree (fdt) to carry the measurement log's buffer acr

Re: [PATCH -next v6 00/10]arm64: add machine check safe support

2022-06-28 Thread Will Deacon
On Tue, 21 Jun 2022 07:26:28 +, Tong Tiangen wrote: > With the increase of memory capacity and density, the probability of > memory error increases. The increasing size and density of server RAM > in the data center and cloud have shown increased uncorrectable memory > errors. > > Currently, t

Re: [PATCH v3 5/5] powerpc/pseries: use of_property_alloc/free() and of_node_alloc()

2022-06-28 Thread Christophe Leroy
Le 20/06/2022 à 12:41, Clément Léger a écrit : > Use of_property_alloc/free() and of_node_alloc() to create and free > device-tree nodes and properties. In order to obtain something cleaner > and allow using only of_node_put() instead of manual property deletion, > a rework of the usage of node i

[PATCH v3 2/3] of: kexec: Refactor IMA buffer related functions to make them reusable

2022-06-28 Thread Stefan Berger
Refactor IMA buffer related functions to make them reusable for carrying TPM logs across kexec. Signed-off-by: Stefan Berger Cc: Rob Herring Cc: Frank Rowand Cc: Mimi Zohar --- drivers/of/kexec.c | 99 +- 1 file changed, 62 insertions(+), 37 deletio

[PATCH v3 1/3] tpm: of: Make of-tree specific function commonly available

2022-06-28 Thread Stefan Berger
Simplify tpm_read_log_of() by moving reusable parts of the code into its own file to make the code commonly available so it can be used also for kexec support. Call the new of_tpm_get_sml_parameters() function from the TPM Open Firmware driver. Compile the new file when CONFIG_OF is enabled so tha

[PATCH v3 3/3] tpm/kexec: Duplicate TPM measurement log in of-tree for kexec

2022-06-28 Thread Stefan Berger
The memory area of the TPM measurement log is currently not properly duplicated for carrying it across kexec when an Open Firmware Devicetree is used. Therefore, the contents of the log get corrupted. Fix this for the kexec_file_load() syscall by allocating a buffer and copying the contents of the

[PATCH v3 0/3] tpm: Preserve TPM measurement log across kexec (ppc64)

2022-06-28 Thread Stefan Berger
The of-tree subsystem does not currently preserve the IBM vTPM 1.2 and vTPM 2.0 measurement logs across a kexec on ppc64. This series fixes this for the kexec_file_load() syscall using the flattened device tree (fdt) to carry the measurement log's buffer across kexec. Stefan Stefan Berger (3):

[PATCH v5.4] kexec_file: drop weak attribute from arch_kexec_apply_relocations[_add]

2022-06-28 Thread Naveen N. Rao
commit 3e35142ef99fe6b4fe5d834ad43ee13cca10a2dc upstream. Since commit d1bcae833b32f1 ("ELF: Don't generate unused section symbols") [1], binutils (v2.36+) started dropping section symbols that it thought were unused. This isn't an issue in general, but with kexec_file.c, gcc is placing kexec_arc

[PATCH v4.9] kexec_file: drop weak attribute from arch_kexec_apply_relocations[_add]

2022-06-28 Thread Naveen N. Rao
commit 3e35142ef99fe6b4fe5d834ad43ee13cca10a2dc upstream. Since commit d1bcae833b32f1 ("ELF: Don't generate unused section symbols") [1], binutils (v2.36+) started dropping section symbols that it thought were unused. This isn't an issue in general, but with kexec_file.c, gcc is placing kexec_arc

[PATCH v4.19] kexec_file: drop weak attribute from arch_kexec_apply_relocations[_add]

2022-06-28 Thread Naveen N. Rao
commit 3e35142ef99fe6b4fe5d834ad43ee13cca10a2dc upstream. Since commit d1bcae833b32f1 ("ELF: Don't generate unused section symbols") [1], binutils (v2.36+) started dropping section symbols that it thought were unused. This isn't an issue in general, but with kexec_file.c, gcc is placing kexec_arc

[PATCH v4.14] kexec_file: drop weak attribute from arch_kexec_apply_relocations[_add]

2022-06-28 Thread Naveen N. Rao
commit 3e35142ef99fe6b4fe5d834ad43ee13cca10a2dc upstream. Since commit d1bcae833b32f1 ("ELF: Don't generate unused section symbols") [1], binutils (v2.36+) started dropping section symbols that it thought were unused. This isn't an issue in general, but with kexec_file.c, gcc is placing kexec_arc

Re: [PATCH 08/10] scsi/ibmvfc: Replace tasklet with work

2022-06-28 Thread Davidlohr Bueso
On Thu, 09 Jun 2022, Sebastian Andrzej Siewior wrote: On 2022-05-30 16:15:10 [-0700], Davidlohr Bueso wrote: diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index d0eab5700dc5..31b1900489e7 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmv

[PATCH v1 4/6] powerpc/64e: Move virtual memory closer to linear memory

2022-06-28 Thread Christophe Leroy
Today nohash/64 have linear memory based at 0xc000 and virtual memory based at 0x8000. In order to implement KASAN, we need to regroup both areas. Move virtual memmory at 0xc0001000. This complicates a bit TLB miss handlers. Until now, memory region was easily ide

[PATCH v1 6/6] powerpc/64e: KASAN Full support for BOOK3E/64

2022-06-28 Thread Christophe Leroy
We now have memory organised in a way that allows implementing KASAN. Unlike book3s/64, book3e always has translation active so the only thing needed to use KASAN is to setup an early zero shadow mapping just after setting a stack pointer and before calling early_setup(). The memory layout is now

[PATCH v1 5/6] powerpc/64e: Reorganise virtual memory

2022-06-28 Thread Christophe Leroy
Reduce the size of IO map in order to leave the last quarter of virtual MAP for KASAN shadow mapping. This gives the following layout. ++ Kernel virtual map end (0xc0002000) || |16TB (unused) | |

[PATCH v1 2/6] powerpc/64e: Remove MMU_FTR_USE_TLBRSRV and MMU_FTR_USE_PAIRED_MAS

2022-06-28 Thread Christophe Leroy
Commit fb5a515704d7 ("powerpc: Remove platforms/wsp and associated pieces") removed the last CPU having features MMU_FTRS_A2 and commit cd68098bcedd ("powerpc: Clean up MMU_FTRS_A2 and MMU_FTR_TYPE_3E") removed MMU_FTRS_A2 which was the last user of MMU_FTR_USE_TLBRSRV and MMU_FTR_USE_PAIRED_MAS.

[PATCH v1 1/6] powerpc/64e: Fix early TLB miss with KUAP

2022-06-28 Thread Christophe Leroy
With KUAP, the TLB miss handler bails out when an access to user memory is performed with a nul TID. But the normal TLB miss routine which is only used early during boot does the check regardless for all memory areas, not only user memory. By chance there is no early IO or vmalloc access, but whe

[PATCH v1 3/6] powerpc/64e: Remove unused REGION related macros

2022-06-28 Thread Christophe Leroy
Those macros are not used anywhere. Remove them as they are soon going to be wrong and are not worth modifying as they are not used. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/64/pgtable.h | 12 1 file changed, 12 deletions(-) diff --git a/arch/powerpc/incl

[PATCH] powerpc/ptdump: Fix display of RW pages on FSL_BOOK3E

2022-06-28 Thread Christophe Leroy
On FSL_BOOK3E, _PAGE_RW is defined with two bits, one for user and one for supervisor. As soon as one of the two bits is set, the page has to be display as RW. But the way it is implemented today requires both bits to be set in order to display it as RW. Instead of display RW when _PAGE_RW bits ar

Re: [PATCH V2] powerpc/memhotplug: Add add_pages override for PPC

2022-06-28 Thread Aneesh Kumar K V
On 6/28/22 6:26 PM, Michael Ellerman wrote: > "Aneesh Kumar K.V" writes: >> With commit ffa0b64e3be5 ("powerpc: Fix virt_addr_valid() for 64-bit Book3E >> & 32-bit") >> the kernel now validate the addr against high_memory value. This results >> in the below BUG_ON with dax pfns. >> >> [ 635.7987

Re: [PATCH -next 2/2] soc: fsl: guts: check return value after calling of_iomap() in fsl_guts_get_soc_uid()

2022-06-28 Thread Michael Walle
Am 2022-06-28 16:02, schrieb Yang Yingliang: of_iomap() may return NULL, so we need check the return value. Fixes: 786dde1e59d7 ("soc: fsl: guts: add serial_number support") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Reviewed-by: Michael Walle

Re: [PATCH -next 1/2] soc: fsl: guts: fix return value check in fsl_guts_init()

2022-06-28 Thread Michael Walle
Am 2022-06-28 16:02, schrieb Yang Yingliang: In case of error, of_iomap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test and return -ENOMEM as error value. Fixes: ab4988d6a393 ("soc: fsl: guts: embed fsl_guts_get_svr() in probe(

[PATCH v3 12/12] powerpc: wiiu: add minimal default config

2022-06-28 Thread Ash Logan
Adds a bare-minimum config to get a kernel compiled. Will need some more interesting options once a storage device to boot from is added. Signed-off-by: Ash Logan --- arch/powerpc/configs/wiiu_defconfig | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 arch/powerpc/configs/wiiu_de

[PATCH v3 11/12] powerpc: wiiu: don't enforce flat memory

2022-06-28 Thread Ash Logan
pgtable_32.c:mapin_ram loops over each valid memory range, which means non-contiguous memory just works. Signed-off-by: Ash Logan --- arch/powerpc/mm/init_32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c index 693a

[PATCH v3 10/12] powerpc: wiiu: platform support

2022-06-28 Thread Ash Logan
Add platform support for the Nintendo Wii U console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- v2->v3: Use of_platform_default_populate instead of a custom match tabl

[PATCH v3 09/12] powerpc: espresso processor support

2022-06-28 Thread Ash Logan
Adds a cputable entry for the "Espresso" processor found on the Nintendo Wii U, which has a PVR unrelated to other 750CL-like chips. Only this revision has been seen in the wild. Signed-off-by: Roberto Van Eeden Signed-off-by: Ash Logan --- arch/powerpc/kernel/cputable.c | 16

[PATCH v3 08/12] powerpc: wiiu: latte interrupt controller support

2022-06-28 Thread Ash Logan
Add support for the "Latte" interrupt controller in the Nintendo Wii U. This controller is used for the entire SoC and is wired to a cascade interrupt on the Espresso controller. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- v2->v3: Make latte_

[PATCH v3 07/12] powerpc: wiiu: espresso interrupt controller support

2022-06-28 Thread Ash Logan
Add support for the "Espresso" interrupt controller in the Nintendo Wii U. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- arch/powerpc/platforms/wiiu/Makefile | 1 + arch/powerpc/platforms/wiiu/espresso-pic.c | 183 +

[PATCH v3 06/12] powerpc: wiiu: udbg support for latteipc

2022-06-28 Thread Ash Logan
Add support for using the Latte chipset IPC for udbg on the Nintendo Wii U console. These messages can then be received by a special firmware running on the "Starbuck" coprocessor. Signed-off-by: Ash Logan --- v2->v3: Fix a missing declaration issue by including latteipc_udbg.h. arch/powerpc/Kc

[PATCH v3 05/12] powerpc: wiiu: declare as non-coherent

2022-06-28 Thread Ash Logan
The Nintendo Wii U requires explicit cache handling when interfacing with DMA devices. Signed-off-by: Ash Logan --- arch/powerpc/platforms/Kconfig.cputype | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.

[PATCH v3 04/12] powerpc: wiiu: introduce wiiu platform

2022-06-28 Thread Ash Logan
Adds empty platforms/wiiu for Nintendo Wii U console Signed-off-by: Ash Logan --- v2->v3: Add help text for CONFIG_WIIU. arch/powerpc/platforms/Kconfig | 1 + arch/powerpc/platforms/Makefile | 1 + arch/powerpc/platforms/wiiu/Kconfig | 8 arch/powerpc/platforms/wiiu/Makefil

[PATCH v3 03/12] powerpc: wiiu: bootwrapper support

2022-06-28 Thread Ash Logan
Add support for the Nintendo Wii U game console to the powerpc bootwrapper. Signed-off-by: Ash Logan Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/boot/Makefile| 4 ++ arch/powerpc/boot/wiiu-head.S | 103 ++ arch/

[PATCH v3 02/12] powerpc: wiiu: device tree

2022-06-28 Thread Ash Logan
Add a device tree source file for the Nintendo Wii U video game console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- v1->v2: Style and formatting changes suggested by R

[PATCH v3 01/12] dt-bindings: wiiu: Document the Nintendo Wii U devicetree

2022-06-28 Thread Ash Logan
Adds schema for the various Wii U devicetree nodes used. Signed-off-by: Ash Logan --- .../bindings/powerpc/nintendo/wiiu.yaml | 28 +++ .../powerpc/nintendo/wiiu/espresso-pic.yaml | 42 + .../bindings/powerpc/nintendo/wiiu/gpu7.yaml | 41 + .../po

[PATCH v3 00/12] powerpc: Nintendo Wii U support

2022-06-28 Thread Ash Logan
The following patches add basic support for the Nintendo Wii U video game console, a PowerPC system somewhat similar to the GameCube and Wii. This includes: - devicetree source - bootwrapper support - udbg console to bootloader - early udbg console - interrupt controllers - platform support - reco

Re: [PATCH V2] powerpc/memhotplug: Add add_pages override for PPC

2022-06-28 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > With commit ffa0b64e3be5 ("powerpc: Fix virt_addr_valid() for 64-bit Book3E & > 32-bit") > the kernel now validate the addr against high_memory value. This results > in the below BUG_ON with dax pfns. > > [ 635.798741][T26531] kernel BUG at mm/page_alloc.c:5521! > 1:

Re: [PATCH v3 0/3] phase out CONFIG_VIRT_TO_BUS

2022-06-28 Thread Arnd Bergmann
On Tue, Jun 28, 2022 at 4:59 AM Martin K. Petersen wrote: > Hi Arnd! > > > If there are no more issues identified with this series, I'll merge it > > through the asm-generic tree. The SCSI patches can also get merged > > separately through the SCSI maintainers' tree if they prefer. > > I put patch

Re: [PATCH -next v6 02/10] arm64: asm-extable: move data fields

2022-06-28 Thread Will Deacon
On Tue, Jun 21, 2022 at 07:26:30AM +, Tong Tiangen wrote: > In subsequent patches we'll need to fill in extable data fields in > regular assembly files. In preparation for this, move the definitions of > the extable data fields earlier in asm-extable.h so that they are > defined for both assemb

[PATCH kernel] KVM: PPC: Do not warn when userspace asked for too big TCE table

2022-06-28 Thread Alexey Kardashevskiy
KVM manages emulated TCE tables for guest LIOBNs by a two level table which maps up to 128TiB with 16MB IOMMU pages (enabled in QEMU by default) and MAX_ORDER=11 (the kernel's default). Note that the last level of the table is allocated when actual TCE is updated. However these tables are created

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

2022-06-28 Thread Geert Uytterhoeven
Hi Michael, On Tue, Jun 28, 2022 at 5:26 AM Michael Schmitz wrote: > Am 28.06.2022 um 09:12 schrieb Michael Schmitz: > > On 27/06/22 20:26, Geert Uytterhoeven wrote: > >> On Sat, Jun 18, 2022 at 3:06 AM Michael Schmitz > >> wrote: > >>> Am 18.06.2022 um 00:57 schrieb Arnd Bergmann: > From:

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

2022-06-28 Thread Arnd Bergmann
On Tue, Jun 28, 2022 at 5:25 AM Michael Schmitz wrote: > Am 28.06.2022 um 09:12 schrieb Michael Schmitz: > > Leaving the bounce buffer handling in place, and taking a few other > liberties - this is what converting the easiest case (a3000 SCSI) might > look like. Any obvious mistakes? The mvme147

Re: [PATCH RESEND v5 15/18] PCI: dwc: Add dw_ prefix to the pcie_port structure name

2022-06-28 Thread Manivannan Sadhasivam
arbanov , Krzysztof Kozlowski , Masami Hiramatsu , Pengutronix Kernel Team , Gustavo Pimentel , Shawn Guo , Lucas Stach Errors-To: linuxppc-dev-bounces+archive=mail-archive@lists.ozlabs.org Sender: "Linuxppc-dev" On Fri, Jun 24, 2022 at 05:34:25PM +0300, Serge Semin wrote: > All of the

Re: [PATCH v1 0/2] Fix console probe delay when stdout-path isn't set

2022-06-28 Thread Fabio Estevam
we...@gmail.com>, ulf hansson , Neil Armstrong , Lorenzo Pieralisi , Al Cooper , linux-te...@vger.kernel.org, Jiri Slaby , linux-asp...@lists.ozlabs.org, Rob Herring , Florian Fainelli , Mateusz Holenko , Alexander Shiyan , kevin hilman , Broadcom internal kernel review list , Joel Stanley ,