Re: [PATCH 04/12] asm-generic/mmiowb: Mark accesses to fix KCSAN warnings

2023-05-08 Thread Arnd Bergmann
On Mon, May 8, 2023, at 04:01, Rohan McLure wrote: > Prior to this patch, data races are detectable by KCSAN of the following > forms: > > [1] Asynchronous calls to mmiowb_set_pending() from an interrupt context > or otherwise outside of a critical section > [2] Interrupted critical sections,

Re: [PATCH v14 06/15] clk: Add Lynx 10G SerDes PLL driver

2023-05-08 Thread Vinod Koul
On 13-04-23, 12:05, Sean Anderson wrote: > This adds support for the PLLs found in Lynx 10G "SerDes" devices found on > various NXP QorIQ SoCs. There are two PLLs in each SerDes. This driver has > been split from the main PHY driver to allow for better review, even though > these PLLs are not

Re: [PATCH v14 07/15] phy: fsl: Add Lynx 10G SerDes driver

2023-05-08 Thread Vinod Koul
On 13-04-23, 12:05, Sean Anderson wrote: > This adds support for the Lynx 10G "SerDes" devices found on various NXP > QorIQ SoCs. There may be up to four SerDes devices on each SoC, each > supporting up to eight lanes. Protocol support for each SerDes is highly > heterogeneous, with each SoC

Re: [PASEMI NEMO] Boot issue with the PowerPC updates 6.4-1

2023-05-08 Thread Linux regression tracking (Thorsten Leemhuis)
On 08.05.23 14:49, Michael Ellerman wrote: > "Linux regression tracking #adding (Thorsten Leemhuis)" > writes: >> [CCing the regression list, as it should be in the loop for regressions: >> https://docs.kernel.org/admin-guide/reporting-regressions.html] >> >> [TLDR: I'm adding this report to the

RE: [EXT] Re: [PATCH v2 1/1] PCI: layerscape: Add the endpoint linkup notifier support

2023-05-08 Thread Frank Li
> -Original Message- > From: Manivannan Sadhasivam > Sent: Saturday, May 6, 2023 2:59 AM > To: Frank Li > Cc: M.H. Lian ; Mingkai Hu > ; Roy Zang ; Lorenzo Pieralisi > ; Rob Herring ; Krzysztof > Wilczyński ; Bjorn Helgaas ; open > list:PCI DRIVER FOR FREESCALE LAYERSCAPE ; > open

Re: [PASEMI NEMO] Boot issue with the PowerPC updates 6.4-1

2023-05-08 Thread Linux regression tracking (Thorsten Leemhuis)
On 08.05.23 14:58, Bagas Sanjaya wrote: > On Mon, May 08, 2023 at 01:29:22PM +0200, Linux regression tracking #adding > (Thorsten Leemhuis) wrote: >> [CCing the regression list, as it should be in the loop for regressions: >> https://docs.kernel.org/admin-guide/reporting-regressions.html] >>

Re: [PASEMI NEMO] Boot issue with the PowerPC updates 6.4-1

2023-05-08 Thread Linux regression tracking #adding (Thorsten Leemhuis)
[CCing the regression list, as it should be in the loop for regressions: https://docs.kernel.org/admin-guide/reporting-regressions.html] [TLDR: I'm adding this report to the list of tracked Linux kernel regressions; the text you find below is based on a few templates paragraphs you might have

Re: [PASEMI NEMO] Boot issue with the PowerPC updates 6.4-1

2023-05-08 Thread Michael Ellerman
"Linux regression tracking #adding (Thorsten Leemhuis)" writes: > [CCing the regression list, as it should be in the loop for regressions: > https://docs.kernel.org/admin-guide/reporting-regressions.html] > > [TLDR: I'm adding this report to the list of tracked Linux kernel > regressions; the

Re: [PASEMI NEMO] Boot issue with the PowerPC updates 6.4-1

2023-05-08 Thread Bagas Sanjaya
On Mon, May 08, 2023 at 01:29:22PM +0200, Linux regression tracking #adding (Thorsten Leemhuis) wrote: > [CCing the regression list, as it should be in the loop for regressions: > https://docs.kernel.org/admin-guide/reporting-regressions.html] > > [TLDR: I'm adding this report to the list of

Re: [PASEMI NEMO] Boot issue with the PowerPC updates 6.4-1

2023-05-08 Thread Bagas Sanjaya
On 5/8/23 20:17, Linux regression tracking (Thorsten Leemhuis) wrote: >> Why and how can you conclude that the culprit is e4ab08be5b4902 >> ("powerpc/isa-bridge: >> Remove open coded "ranges" parsing") rather than powerpc PR merge commit >> 70cc1b5307e8ee ("Merge tag 'powerpc-6.4-1' of >>

[PATCH] ASoC: fsl_micfil: Fix error handler with pm_runtime_enable

2023-05-08 Thread Shengjiu Wang
There is error message when defer probe happens: fsl-micfil-dai 30ca.micfil: Unbalanced pm_runtime_enable! Fix the error handler with pm_runtime_enable and add fsl_micfil_remove() for pm_runtime_disable. Fixes: 47a70e6fc9a8 ("ASoC: Add MICFIL SoC Digital Audio Interface driver.")

Re: [PATCH v14 06/15] clk: Add Lynx 10G SerDes PLL driver

2023-05-08 Thread Sean Anderson
On 5/8/23 05:15, Vinod Koul wrote: > On 13-04-23, 12:05, Sean Anderson wrote: >> This adds support for the PLLs found in Lynx 10G "SerDes" devices found on >> various NXP QorIQ SoCs. There are two PLLs in each SerDes. This driver has >> been split from the main PHY driver to allow for better

Re: [PATCH v14 07/15] phy: fsl: Add Lynx 10G SerDes driver

2023-05-08 Thread Sean Anderson
On 5/8/23 05:22, Vinod Koul wrote: > On 13-04-23, 12:05, Sean Anderson wrote: >> This adds support for the Lynx 10G "SerDes" devices found on various NXP >> QorIQ SoCs. There may be up to four SerDes devices on each SoC, each >> supporting up to eight lanes. Protocol support for each SerDes is

Re: [PATCH v4 05/17] watchdog/hardlockup: Rename touch_nmi_watchdog() to touch_hardlockup_watchdog()

2023-05-08 Thread Doug Anderson
Hi, On Sun, May 7, 2023 at 6:35 PM Nicholas Piggin wrote: > > On Sat May 6, 2023 at 2:37 AM AEST, Doug Anderson wrote: > > Hi, > > > > On Thu, May 4, 2023 at 7:51 PM Nicholas Piggin wrote: > > > > > > On Fri May 5, 2023 at 8:13 AM AEST, Douglas Anderson wrote: > > > > In preparation for the

[RFC PATCH v1 0/5] KVM: PPC: Nested PAPR guests

2023-05-08 Thread Jordan Niethe
There is existing support for nested guests on powernv hosts however the hcall interface this uses is not support by other PAPR hosts. A set of new hcalls will be added to PAPR to facilitate creating and managing guests by a regular partition in the following way: - L1 and L0 negotiate

[RFC PATCH v1 1/5] KVM: PPC: Use getters and setters for vcpu register state

2023-05-08 Thread Jordan Niethe
There are already some getter and setter functions used for accessing vcpu register state, e.g. kvmppc_get_pc(). There are also more complicated examples that are generated by macros like kvmppc_get_sprg0() which are generated by the SHARED_SPRNG_WRAPPER() macro. In the new PAPR API for nested

[RFC PATCH v1 2/5] KVM: PPC: Add fpr getters and setters

2023-05-08 Thread Jordan Niethe
Add wrappers for fpr registers to prepare for supporting PAPR nested guests. Signed-off-by: Jordan Niethe --- arch/powerpc/include/asm/kvm_book3s.h | 31 +++ arch/powerpc/include/asm/kvm_booke.h | 10 + arch/powerpc/kvm/book3s.c | 16 +++---

Re: [PATCH v4 13/17] watchdog/hardlockup: detect hard lockups using secondary (buddy) CPUs

2023-05-08 Thread Doug Anderson
Hi, On Sun, May 7, 2023 at 6:05 PM Nicholas Piggin wrote: > > > No, I wasn't aware of it. Interesting, it seems to basically enable > > both types of hardlockup detectors together. If that really catches > > more lockups, it seems like we could do the same thing for the buddy > > system. > > It

Re: [PATCH 09/12] powerpc: Mark writes registering ipi to host cpu through kvm

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > Mark writes to hypervisor ipi state so that KCSAN recognises these > asynchronous issue of kvmppc_{set,clear}_host_ipi to be intended, with > atomic writes. How about READ_ONCE for the read side of host_ipi? Thanks, Nick > >

[PATCH AUTOSEL 5.4 2/3] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-05-08 Thread Sasha Levin
From: Pali Rohár [ Upstream commit 22fdf79171e8509db54599fd2c05ef0022ee83f5 ] ULI1575 PCIe south bridge exists only on some Freescale boards. Allow to disable CONFIG_FSL_ULI1575 symbol when it is not explicitly selected and only implied. This is achieved by marking symbol as visible by

[PATCH AUTOSEL 5.10 2/3] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-05-08 Thread Sasha Levin
From: Pali Rohár [ Upstream commit 22fdf79171e8509db54599fd2c05ef0022ee83f5 ] ULI1575 PCIe south bridge exists only on some Freescale boards. Allow to disable CONFIG_FSL_ULI1575 symbol when it is not explicitly selected and only implied. This is achieved by marking symbol as visible by

Re: [PATCH AUTOSEL 6.3 6/7] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-05-08 Thread Randy Dunlap
Hi-- Just a heads up. This patch can cause build errors. I sent a patch for these on 2023-APR-28: https://lore.kernel.org/linuxppc-dev/20230429043519.19807-1-rdun...@infradead.org/ Michael, I think this is your area if I'm not mistaken. On 5/8/23 20:54, Sasha Levin wrote: > From: Pali Rohár

Re: [PATCH 03/12] powerpc: qspinlock: Enforce qnode writes prior to publishing to queue

2023-05-08 Thread Rohan McLure
> On 9 May 2023, at 12:04 pm, Nicholas Piggin wrote: > > On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: >> Use a compiler barrier to enforce that all fields of a new struct qnode >> be written to (especially the lock value) before publishing the qnode to >> the waitqueue. > >

[PATCH 14/89] i2c: cpm: Convert to platform remove callback returning void

2023-05-08 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

Re: [PATCH 0/6] bus: fsl-mc: Make remove function return void

2023-05-08 Thread Li Yang
On Mon, May 8, 2023 at 8:44 AM Uwe Kleine-König wrote: > > Hello Leo, > > On Thu, Apr 13, 2023 at 08:00:04AM +0200, Uwe Kleine-König wrote: > > On Wed, Apr 12, 2023 at 09:30:05PM +, Leo Li wrote: > > > > On Fri, Mar 10, 2023 at 11:41:22PM +0100, Uwe Kleine-König wrote: > > > > > Hello, > > >

Re: [PATCH 05/12] powerpc: Mark [h]ssr_valid accesses in check_return_regs_valid

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > Checks to see if the [H]SRR registers have been clobbered by (soft) > NMI interrupts imply the possibility for a data race on the > [h]srr_valid entries in the PACA. Annotate accesses to these fields with > READ_ONCE, removing the need for

Re: [PATCH 06/12] powerpc: Mark accesses to power_save callback in arch_cpu_idle

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > The power_save callback can be overwritten by another core at boot time. > Specifically, null values will be replaced exactly once with the callback > suitable for the particular platform (PowerNV / pseries lpars). Mark > reads to this

linux-next: boot warning

2023-05-08 Thread Stephen Rothwell
Hi all, Today's qemu test boot (powerpc pseries_le_defconfig) produced this warning: [2.048588][T1] ipr: IBM Power RAID SCSI Device Driver version: 2.6.4 (March 14, 2017) [2.051560][T1] [ cut here ] [2.052297][T1] WARNING: CPU: 0 PID: 1 at

Re: [PATCH 10/12] powerpc: powernv: Annotate data races in opal events

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > The kopald thread handles opal events as they appear, but by polling a > static bit-vector in last_outstanding_events. Annotate these data races > accordingly. We are not at risk of missing events, but use of READ_ONCE, > WRITE_ONCE will

[PATCH AUTOSEL 6.2 5/6] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-05-08 Thread Sasha Levin
From: Pali Rohár [ Upstream commit 22fdf79171e8509db54599fd2c05ef0022ee83f5 ] ULI1575 PCIe south bridge exists only on some Freescale boards. Allow to disable CONFIG_FSL_ULI1575 symbol when it is not explicitly selected and only implied. This is achieved by marking symbol as visible by

[PATCH AUTOSEL 6.1 4/5] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-05-08 Thread Sasha Levin
From: Pali Rohár [ Upstream commit 22fdf79171e8509db54599fd2c05ef0022ee83f5 ] ULI1575 PCIe south bridge exists only on some Freescale boards. Allow to disable CONFIG_FSL_ULI1575 symbol when it is not explicitly selected and only implied. This is achieved by marking symbol as visible by

[PATCH AUTOSEL 5.15 3/4] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-05-08 Thread Sasha Levin
From: Pali Rohár [ Upstream commit 22fdf79171e8509db54599fd2c05ef0022ee83f5 ] ULI1575 PCIe south bridge exists only on some Freescale boards. Allow to disable CONFIG_FSL_ULI1575 symbol when it is not explicitly selected and only implied. This is achieved by marking symbol as visible by

Re: [PATCH 01/12] powerpc: qspinlock: Fix qnode->locked value interpretation

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > A comment accompanying the locked attribute of a qnode assigns a value > of 1 to mean that the lock has been acquired. The usages of this > variable however assume opposite semantics. Update usages so that the > assertions of this comment

Re: [PATCH 03/12] powerpc: qspinlock: Enforce qnode writes prior to publishing to queue

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > Use a compiler barrier to enforce that all fields of a new struct qnode > be written to (especially the lock value) before publishing the qnode to > the waitqueue. publish_tail_cpu is the release barrier for this and includes the memory

Re: [PATCH 04/12] asm-generic/mmiowb: Mark accesses to fix KCSAN warnings

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > Prior to this patch, data races are detectable by KCSAN of the following > forms: > > [1] Asynchronous calls to mmiowb_set_pending() from an interrupt context > or otherwise outside of a critical section > [2] Interrupted critical

Re: [PATCH 08/12] powerpc: Annotate accesses to ipi message flags

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > IPI message flags are observed and consequently consumed in the > smp_ipi_demux_relaxed function, which handles these message sources > until it observes none more arriving. Mark the checked loop guard with > READ_ONCE, to signal to KCSAN

[powerpc:fixes-test] BUILD SUCCESS 536d948a8dee21166d9c5b5a4189af56beba16e3

2023-05-08 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git fixes-test branch HEAD: 536d948a8dee21166d9c5b5a4189af56beba16e3 powerpc/fsl_uli1575: fix kconfig warnings and build errors elapsed time: 721m configs tested: 2 configs skipped: 145 The following configs have been

Re: [PATCH] ASoC: fsl_micfil: Fix error handler with pm_runtime_enable

2023-05-08 Thread Mark Brown
On Mon, 08 May 2023 18:16:36 +0800, Shengjiu Wang wrote: > There is error message when defer probe happens: > > fsl-micfil-dai 30ca.micfil: Unbalanced pm_runtime_enable! > > Fix the error handler with pm_runtime_enable and add > fsl_micfil_remove() for pm_runtime_disable. > > [...] Applied

Re: [PATCH 02/12] powerpc: qspinlock: Mark accesses to qnode lock checks

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > The powerpc implemenation of qspinlocks will both poll and spin on the > bitlock guarding a qnode. Mark these accesses with READ_ONCE to convey > to KCSAN that polling is intentional here. Yeah, and obviously pairs with the WRITE_ONCE so

Re: [PATCH 07/12] powerpc: powernv: Fix KCSAN datarace warnings on idle_state contention

2023-05-08 Thread Nicholas Piggin
On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: > The idle_state entry in the PACA on PowerNV features a bit which is > atomically tested and set through ldarx/stdcx. to be used as a spinlock. > This lock then guards access to other bit fields of idle_state. KCSAN > cannot differentiate

[PATCH AUTOSEL 6.3 1/7] powerpc: Use of_property_present() for testing DT property presence

2023-05-08 Thread Sasha Levin
From: Rob Herring [ Upstream commit 857d423c74228cfa064f79ff3a16b163fdb8d542 ] It is preferred to use typed property access functions (i.e. of_property_read_ functions) rather than low-level of_get_property/of_find_property functions for reading properties. As part of this, convert

[PATCH AUTOSEL 6.3 6/7] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-05-08 Thread Sasha Levin
From: Pali Rohár [ Upstream commit 22fdf79171e8509db54599fd2c05ef0022ee83f5 ] ULI1575 PCIe south bridge exists only on some Freescale boards. Allow to disable CONFIG_FSL_ULI1575 symbol when it is not explicitly selected and only implied. This is achieved by marking symbol as visible by

Re: [PATCH 01/12] powerpc: qspinlock: Fix qnode->locked value interpretation

2023-05-08 Thread Rohan McLure
> On 9 May 2023, at 12:01 pm, Nicholas Piggin wrote: > > On Mon May 8, 2023 at 12:01 PM AEST, Rohan McLure wrote: >> A comment accompanying the locked attribute of a qnode assigns a value >> of 1 to mean that the lock has been acquired. The usages of this >> variable however assume opposite

[powerpc:merge] BUILD SUCCESS 547124f858ea52b2f7e58e8c0d39170a9fa66b4b

2023-05-08 Thread kernel test robot
successfully. More configs may be tested in the coming days. tested configs: alphaallyesconfig gcc alpha defconfig gcc arc allyesconfig gcc arc buildonly-randconfig-r004-20230508 gcc arc

[powerpc:next] BUILD SUCCESS 3af77224c09d79e03e34e7412f88692483054fed

2023-05-08 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next branch HEAD: 3af77224c09d79e03e34e7412f88692483054fed powerpc/spufs: remove unneeded if-checks elapsed time: 731m configs tested: 2 configs skipped: 145 The following configs have been built successfully.

Re: [EXT] Re: [PATCH v2 1/1] PCI: layerscape: Add the endpoint linkup notifier support

2023-05-08 Thread Bjorn Helgaas
On Mon, May 08, 2023 at 01:31:26PM +, Frank Li wrote: > > -Original Message- > > From: Manivannan Sadhasivam > > Sent: Saturday, May 6, 2023 2:59 AM > > To: Frank Li > > Cc: M.H. Lian ; Mingkai Hu > > ; Roy Zang ; Lorenzo Pieralisi > > ; Rob Herring ; Krzysztof > > Wilczyński ; Bjorn

[PATCH v3 1/1] PCI: layerscape: Add the endpoint linkup notifier support

2023-05-08 Thread Frank Li
Layerscape has PME interrupt, which can be used as linkup notifier. Set CFG_READY bit of PEX_PF0_CONFIG to enable accesses from root complex when linkup detected. Signed-off-by: Xiaowei Bao Signed-off-by: Frank Li --- Change from v2 to v3 - align 80 column - clear irq firstly - dev_info to

Re: [PATCH 0/6] bus: fsl-mc: Make remove function return void

2023-05-08 Thread Uwe Kleine-König
Hello Leo, On Thu, Apr 13, 2023 at 08:00:04AM +0200, Uwe Kleine-König wrote: > On Wed, Apr 12, 2023 at 09:30:05PM +, Leo Li wrote: > > > On Fri, Mar 10, 2023 at 11:41:22PM +0100, Uwe Kleine-König wrote: > > > > Hello, > > > > > > > > many bus remove functions return an integer which is a

[RFC PATCH v1 3/5] KVM: PPC: Add vr getters and setters

2023-05-08 Thread Jordan Niethe
Add wrappers for vr registers to prepare for supporting PAPR nested guests. Signed-off-by: Jordan Niethe --- arch/powerpc/include/asm/kvm_book3s.h | 20 +++ arch/powerpc/kvm/powerpc.c| 50 +-- 2 files changed, 45 insertions(+), 25 deletions(-) diff

[PATCH 50/89] i2c: pasemi-platform: Convert to platform remove callback returning void

2023-05-08 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

RE: [EXT] Re: [PATCH v2 1/1] PCI: layerscape: Add the endpoint linkup notifier support

2023-05-08 Thread Frank Li
> > > Subject: [EXT] Re: [PATCH v2 1/1] PCI: layerscape: Add the endpoint > linkup > > > notifier support > > All these quoted headers are redundant clutter since we've already > seen them when Manivannan sent his comments. It would be nice if your > mailer could be configured to omit them. Our

Re: [PATCH 01/22] powerpc, workqueue: Use alloc_ordered_workqueue() to create ordered workqueues

2023-05-08 Thread Tejun Heo
Applied to wq/for-6.5-cleanup-ordered. Thanks. -- tejun

[PATCH 00/89] i2c: Convert to platform remove callback returning void

2023-05-08 Thread Uwe Kleine-König
Hello, this series convers the drivers below drivers/i2c to the .remove_new() callback of struct platform_driver(). The motivation is to make the remove callback less prone for errors and wrong assumptions. See commit 5c5a7680e67b ("platform: Provide a remove callback that returns no value") for

[PATCH 49/89] i2c: opal: Convert to platform remove callback returning void

2023-05-08 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

[PATCH 53/89] i2c: powermac: Convert to platform remove callback returning void

2023-05-08 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored and this typically results in resource leaks. To improve here there is a quest to

Re: [PATCH 4/12] asm-generic/mmiowb: Mark accesses to fix KCSAN warnings

2023-05-08 Thread Gautam Menghani
On Mon, May 08, 2023 at 12:01:12PM +1000, Rohan McLure wrote: > Prior to this patch, data races are detectable by KCSAN of the following > forms: > > [1] Asynchronous calls to mmiowb_set_pending() from an interrupt context > or otherwise outside of a critical section > [2] Interrupted

[PATCH v2 1/1] PCI: layerscape: Add the endpoint linkup notifier support

2023-05-08 Thread Frank Li
Layerscape has PME interrupt, which can be used as linkup notifier. Set CFG_READY bit of PEX_PF0_CONFIG to enable accesses from root complex when linkup detected. Signed-off-by: Xiaowei Bao Signed-off-by: Frank Li --- .../pci/controller/dwc/pci-layerscape-ep.c| 102 +- 1

[RFC PATCH v1 5/5] KVM: PPC: Add support for nested PAPR guests

2023-05-08 Thread Jordan Niethe
A series of hcalls have been added to the PAPR which allow a regular guest partition to create and manage guest partitions of its own. Add support to KVM to utilize these hcalls to enable running nested guests. Overview of the new hcall usage: - L1 and L0 negotiate capabilities with

[RFC PATCH v1 4/5] powerpc: Add helper library for Guest State Buffers

2023-05-08 Thread Jordan Niethe
The new PAPR nested guest API introduces the concept of a Guest State Buffer for communication about L2 guests between L1 and L0 hosts. In the new API, the L0 manages the L2 on behalf of the L1. This means that if the L1 needs to change L2 state (e.g. GPRs, SPRs, partition table...), it must