Re: [PATCH v3] PCI/ERR: Use pcie_aer_is_native() to judge whether OS owns AER

2022-07-26 Thread 陈卓
On 7/26/22 9:02 PM, Sathyanarayanan Kuppuswamy wrote: On 7/26/22 8:53 PM, Zhuo Chen wrote: Use pcie_aer_is_native() in place of "host->native_aer || pcie_ports_native" to judge whether OS has native control of AER in pcie_do_recovery(). Replace "dev->aer_cap && (pcie_ports_native ||

[powerpc:next] BUILD SUCCESS da4ef6d652fcefc0617ecd32f23154a28eef5e70

2022-07-26 Thread kernel test robot
randconfig-r042-20220724 s390 randconfig-r044-20220726 riscvrandconfig-r042-20220726 arc randconfig-r043-20220726 x86_64rhel-8.3-kselftests um x86_64_defconfig um i386_defconfig

Re: [PATCH v3] PCI/ERR: Use pcie_aer_is_native() to judge whether OS owns AER

2022-07-26 Thread Sathyanarayanan Kuppuswamy
On 7/26/22 8:53 PM, Zhuo Chen wrote: > Use pcie_aer_is_native() in place of "host->native_aer || > pcie_ports_native" to judge whether OS has native control of AER > in pcie_do_recovery(). > > Replace "dev->aer_cap && (pcie_ports_native || host->native_aer)" in > get_port_device_capability()

Re: [PATCH v5 0/2] powerpc rng cleanups

2022-07-26 Thread Michael Ellerman
"Jason A. Donenfeld" writes: > On Mon, Jul 18, 2022 at 3:09 PM Jason A. Donenfeld wrote: >> On Tue, Jul 12, 2022 at 01:24:46AM +0200, Jason A. Donenfeld wrote: >> > These are two small cleanups for -next. This v5 rebases on the latest >> > git master, as some whitespace was added that made v4 no

[PATCH v3] PCI/ERR: Use pcie_aer_is_native() to judge whether OS owns AER

2022-07-26 Thread Zhuo Chen
Use pcie_aer_is_native() in place of "host->native_aer || pcie_ports_native" to judge whether OS has native control of AER in pcie_do_recovery(). Replace "dev->aer_cap && (pcie_ports_native || host->native_aer)" in get_port_device_capability() with pcie_aer_is_native(), which has no functional

Re: [PATCH v5 0/2] powerpc rng cleanups

2022-07-26 Thread Jason A. Donenfeld
Hi Michael, On Mon, Jul 18, 2022 at 3:09 PM Jason A. Donenfeld wrote: > > Hey again, > > On Tue, Jul 12, 2022 at 01:24:46AM +0200, Jason A. Donenfeld wrote: > > These are two small cleanups for -next. This v5 rebases on the latest > > git master, as some whitespace was added that made v4 no

[PATCH 3/3] PCI/DPC: Disable DPC service on suspend when IRQ is shared with PME

2022-07-26 Thread Kai-Heng Feng
PCIe service that shares IRQ with PME may cause spurious wakeup on system suspend. Since AER is conditionally disabled in previous patch, also apply the same condition to disable DPC which depends on AER to work. PCIe Base Spec 5.0, section 5.2 "Link State Power Management" states that TLP and

[PATCH 2/3] PCI/AER: Disable AER service on suspend when IRQ is shared with PME

2022-07-26 Thread Kai-Heng Feng
PCIe service that shares IRQ with PME may cause spurious wakeup on system suspend. PCIe Base Spec 5.0, section 5.2 "Link State Power Management" states that TLP and DLLP transmission is disabled for a Link in L2/L3 Ready (D3hot), L2 (D3cold with aux power) and L3 (D3cold), so we don't lose much

Re: [PATCH v2 09/10] drm/ofdrm: Add per-model device function

2022-07-26 Thread Javier Martinez Canillas
Hello Michal, On 7/26/22 16:40, Michal Suchánek wrote: > Hello, > > On Tue, Jul 26, 2022 at 03:38:37PM +0200, Javier Martinez Canillas wrote: >> On 7/20/22 16:27, Thomas Zimmermann wrote: >>> Add a per-model device-function structure in preparation of adding >>> color-management support.

Re: [PATCH v2] PCI/ERR: Use pcie_aer_is_native() to judge whether OS owns AER

2022-07-26 Thread Sathyanarayanan Kuppuswamy
On 7/25/22 7:05 PM, Zhuo Chen wrote: > The AER status of the device that reported the error rather than > the first downstream port is cleared after commit 7d7cbeaba5b7 > ("PCI/ERR: Clear status of the reporting device"). So "a bridge > may not exist" which commit aa344bc8b727 ("PCI/ERR: Clear

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

2022-07-26 Thread Yury Norov
On Tue, Jul 26, 2022 at 04:57:38PM +1000, Michael Ellerman wrote: > Yury Norov writes: > > On Mon, Jul 25, 2022 at 09:28:12AM +0200, Andy Shevchenko wrote: > >> On Sun, Jul 24, 2022 at 12:19 AM Yury Norov wrote: > >> > > >> > archrandom.h includes to refer ppc_md. This causes > >> > circular

Re: [PATCH v2 09/10] drm/ofdrm: Add per-model device function

2022-07-26 Thread Michal Suchánek
Hello, On Tue, Jul 26, 2022 at 03:38:37PM +0200, Javier Martinez Canillas wrote: > On 7/20/22 16:27, Thomas Zimmermann wrote: > > Add a per-model device-function structure in preparation of adding > > color-management support. Detection of the individual models has been > > taken from fbdev's

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

2022-07-26 Thread Christophe Leroy
Le 26/07/2022 à 10:34, Pali Rohár a écrit : > On Monday 25 July 2022 16:54:16 Segher Boessenkool wrote: >> On Mon, Jul 25, 2022 at 10:10:09PM +0200, Pali Rohár wrote: >>> On Monday 25 July 2022 16:20:49 Christophe Leroy wrote: >>> Now I did again clean test with same Debian 10 cross compiler.

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

2022-07-26 Thread Segher Boessenkool
On Tue, Jul 26, 2022 at 04:01:00PM +0200, Pali Rohár wrote: > On Tuesday 26 July 2022 08:44:05 Segher Boessenkool wrote: > > And the architecture says > > Programming Note > > Warning: On some processors that comply with versions of the > > architecture that precede Version 2.00 > > But

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

2022-07-26 Thread Pali Rohár
On Tuesday 26 July 2022 08:44:05 Segher Boessenkool wrote: > On Tue, Jul 26, 2022 at 11:02:59AM +0200, Arnd Bergmann wrote: > > On Tue, Jul 26, 2022 at 10:34 AM Pali Rohár wrote: > > > On Monday 25 July 2022 16:54:16 Segher Boessenkool wrote: > > > > The EH field in larx insns is new since ISA

Re: [PATCH v2 10/10] drm/ofdrm: Support color management

2022-07-26 Thread Javier Martinez Canillas
On 7/20/22 16:27, Thomas Zimmermann wrote: > Support the CRTC's color-management property and implement each model's > palette support. > > The OF hardware has different methods of setting the palette. The > respective code has been taken from fbdev's offb and refactored into > per-model device

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

2022-07-26 Thread Segher Boessenkool
On Tue, Jul 26, 2022 at 11:02:59AM +0200, Arnd Bergmann wrote: > On Tue, Jul 26, 2022 at 10:34 AM Pali Rohár wrote: > > On Monday 25 July 2022 16:54:16 Segher Boessenkool wrote: > > > The EH field in larx insns is new since ISA 2.05, and some ISA 1.x cpu > > > implementations actually raise an

Re: [PATCH v2 09/10] drm/ofdrm: Add per-model device function

2022-07-26 Thread Javier Martinez Canillas
On 7/20/22 16:27, Thomas Zimmermann wrote: > Add a per-model device-function structure in preparation of adding > color-management support. Detection of the individual models has been > taken from fbdev's offb. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas

Re: [PATCH v2 08/10] drm/ofdrm: Add CRTC state

2022-07-26 Thread Javier Martinez Canillas
On 7/20/22 16:27, Thomas Zimmermann wrote: > Add a dedicated CRTC state to ofdrm to later store information for > palette updates. > > Signed-off-by: Thomas Zimmermann > --- > drivers/gpu/drm/tiny/ofdrm.c | 62 ++-- > Reviewed-by: Javier Martinez Canillas

Re: [PATCH v2 07/10] drm/ofdrm: Add ofdrm for Open Firmware framebuffers

2022-07-26 Thread Javier Martinez Canillas
Hello Thomas, On 7/20/22 16:27, Thomas Zimmermann wrote: > Open Firmware provides basic display output via the 'display' node. > DT platform code already provides a device that represents the node's > framebuffer. Add a DRM driver for the device. The display mode and > color format is

Re: [PATCH v3 2/2] powerpc/64s: Make POWER10 and later use pause_short in cpu_relax loops

2022-07-26 Thread Michael Ellerman
Nicholas Piggin writes: > We want to move away from using SMT prioroty updates for cpu_relax, and > use a 'wait' instruction which is similar to x86. As well as being a > much better fit for what everybody else uses and tests with, priority > nops are stateful which is nasty (interrupts have to

[powerpc:fixes-test] BUILD SUCCESS c653c591789b3acfa4bf6ae45d5af4f330e50a91

2022-07-26 Thread kernel test robot
randconfig-r043-20220724 s390 randconfig-r044-20220726 riscvrandconfig-r042-20220726 arc randconfig-r043-20220726 x86_64rhel-8.3-kselftests um x86_64_defconfig um

Re: [PATCH 5/5] powerpc/pci: Add config option for using all 256 PCI buses

2022-07-26 Thread Pali Rohár
On Tuesday 26 July 2022 21:02:22 Michael Ellerman wrote: > Pali Rohár writes: > > On Wednesday 06 July 2022 12:43:08 Pali Rohár wrote: > >> By default on PPC32 are PCI bus numbers unique across all PCI domains. > >> So system could have only 256 PCI buses independently of available > >> PCI

Re: [PATCH 5/5] powerpc/pci: Add config option for using all 256 PCI buses

2022-07-26 Thread Michael Ellerman
Pali Rohár writes: > On Wednesday 06 July 2022 12:43:08 Pali Rohár wrote: >> By default on PPC32 are PCI bus numbers unique across all PCI domains. >> So system could have only 256 PCI buses independently of available >> PCI domains. >> >> This is due to filling DT property pci-OF-bus-map which

Re: [PATCH v5 4/4] pseries/mobility: set NMI watchdog factor during an LPM

2022-07-26 Thread Michael Ellerman
Laurent Dufour writes: > Le 13/07/2022 à 22:17, Randy Dunlap a écrit : >> Hi Laurent, >> >> On 7/13/22 08:47, Laurent Dufour wrote: >>> diff --git a/Documentation/admin-guide/sysctl/kernel.rst >>> b/Documentation/admin-guide/sysctl/kernel.rst >>> index ddccd1077462..d73faa619c15 100644 >>> ---

Re: [PATCH 14/36] cpuidle: Fix rcu_idle_*() usage

2022-07-26 Thread Gautham R. Shenoy
On Wed, Jun 08, 2022 at 04:27:37PM +0200, Peter Zijlstra wrote: > The whole disable-RCU, enable-IRQS dance is very intricate since > changing IRQ state is traced, which depends on RCU. > > Add two helpers for the cpuidle case that mirror the entry code. > > Signed-off-by: Peter Zijlstra (Intel)

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

2022-07-26 Thread Arnd Bergmann
On Tue, Jul 26, 2022 at 10:34 AM Pali Rohár wrote: > On Monday 25 July 2022 16:54:16 Segher Boessenkool wrote: > > On Mon, Jul 25, 2022 at 10:10:09PM +0200, Pali Rohár wrote: > > > On Monday 25 July 2022 16:20:49 Christophe Leroy wrote: > > > Now I did again clean test with same Debian 10 cross

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

2022-07-26 Thread Pali Rohár
On Monday 25 July 2022 16:54:16 Segher Boessenkool wrote: > On Mon, Jul 25, 2022 at 10:10:09PM +0200, Pali Rohár wrote: > > On Monday 25 July 2022 16:20:49 Christophe Leroy wrote: > > Now I did again clean test with same Debian 10 cross compiler. > > > > $ git clone > >

Re: [PATCH v3 4/4] watchdog/pseries-wdt: initial support for H_WATCHDOG-based watchdog timers

2022-07-26 Thread Michael Ellerman
Guenter Roeck writes: > On Mon, Jul 25, 2022 at 11:11:41AM -0500, Scott Cheloha wrote: >> On Wed, Jul 13, 2022 at 01:50:14PM -0700, Guenter Roeck wrote: >> > On 7/13/22 13:23, Scott Cheloha wrote: >> > > PAPR v2.12 defines a new hypercall, H_WATCHDOG. The hypercall permits >> > > guest control

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

2022-07-26 Thread Michael Ellerman
Yury Norov writes: > On Mon, Jul 25, 2022 at 09:28:12AM +0200, Andy Shevchenko wrote: >> On Sun, Jul 24, 2022 at 12:19 AM Yury Norov wrote: >> > >> > archrandom.h includes to refer ppc_md. This causes >> > circular header dependency, if generic nodemask.h includes random.h: >> > >> > In file

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

2022-07-26 Thread Andy Shevchenko
On Tue, Jul 26, 2022 at 8:13 AM Andy Shevchenko wrote: > > On Tue, Jul 26, 2022 at 1:35 AM Yury Norov wrote: > > On Mon, Jul 25, 2022 at 11:39:39PM +0200, Andy Shevchenko wrote: > > > On Mon, Jul 25, 2022 at 6:19 PM Yury Norov wrote: > > > > On Mon, Jul 25, 2022 at 09:28:12AM +0200, Andy

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

2022-07-26 Thread Andy Shevchenko
On Tue, Jul 26, 2022 at 1:35 AM Yury Norov wrote: > On Mon, Jul 25, 2022 at 11:39:39PM +0200, Andy Shevchenko wrote: > > On Mon, Jul 25, 2022 at 6:19 PM Yury Norov wrote: > > > On Mon, Jul 25, 2022 at 09:28:12AM +0200, Andy Shevchenko wrote: > > > > On Sun, Jul 24, 2022 at 12:19 AM Yury Norov