[PATCH v2] cxl: Check if vphb exists before iterating over AFU devices

2017-11-22 Thread Vaibhav Jain
During an eeh a kernel-oops is reported if no vPHB to allocated to the AFU. This happens as during AFU init, an error in creation of vPHB is a non-fatal error. Hence afu->phb should always be checked for NULL before iterating over it for the virtual AFU pci devices. This patch fixes the

Re: [PATCH v2] cxl: Check if vphb exists before iterating over AFU devices

2017-11-22 Thread Michael Ellerman
Vaibhav Jain writes: > During an eeh a kernel-oops is reported if no vPHB to allocated to the > AFU. This happens as during AFU init, an error in creation of vPHB is > a non-fatal error. Hence afu->phb should always be checked for NULL > before iterating over it for

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-22 Thread Balbir Singh
On Thu, Nov 23, 2017 at 4:32 AM, Mahesh J Salgaonkar wrote: > From: Mahesh Salgaonkar > > Rebooting into a new kernel with kexec fails in trace_tlbie() which is > called from native_hpte_clear(). This happens if the running kernel has >

Re: [PATCH v3] cxl: Check if vphb exists before iterating over AFU devices

2017-11-22 Thread Andrew Donnellan
On 23/11/17 14:38, Vaibhav Jain wrote: During an eeh a kernel-oops is reported if no vPHB is allocated to the AFU. This happens as during AFU init, an error in creation of vPHB is a non-fatal error. Hence afu->phb should always be checked for NULL before iterating over it for the virtual AFU pci

[PATCH V2 02/29] powerpc/PCI: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as where a PCI device is present. This restricts the device drivers to be reused for other domain numbers. Getting ready to remove pci_get_bus_and_slot() function in favor of pci_get_domain_bus_and_slot(). Use

Re: [PATCH kernel] vfio/spapr: Add trace points for map/unmap

2017-11-22 Thread Alexey Kardashevskiy
On 17/11/17 17:58, Alexey Kardashevskiy wrote: > On 17/11/17 11:13, Alex Williamson wrote: >> On Tue, 14 Nov 2017 10:47:12 +1100 >> Alexey Kardashevskiy wrote: >> >>> On 27/10/17 14:00, Alexey Kardashevskiy wrote: This adds trace_map/trace_unmap tracepoints to spapr driver.

[PATCH V2 13/29] powerpc/powermac: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as where a PCI device is present. This restricts the device drivers to be reused for other domain numbers. Getting ready to remove pci_get_bus_and_slot() function in favor of pci_get_domain_bus_and_slot(). Hard-code the domain

Re: [PATCH 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S, U}20_4

2017-11-22 Thread Maciej S. Szmigiero
On 23.11.2017 00:27, Takashi Sakamoto wrote: > On Nov 23 2017 04:17, Maciej S. Szmigiero wrote: (..) >> --- a/include/uapi/sound/asound.h >> +++ b/include/uapi/sound/asound.h >> @@ -236,7 +236,11 @@ typedef int __bitwise snd_pcm_format_t; >>   #define    SNDRV_PCM_FORMAT_DSD_U32_LE    ((__force

Re: [PATCH 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S, U}20_4

2017-11-22 Thread Takashi Sakamoto
On Nov 23 2017 04:17, Maciej S. Szmigiero wrote: This format is similar to existing SNDRV_PCM_FORMAT_{S,U}20_3 that keep 20-bit PCM samples in 3 bytes, however i.MX6 platform SSI FIFO does not allow 3-byte accesses (including DMA) so a 4-byte format is needed for it. Signed-off-by: Maciej S.

Re: [RESEND][PATCH v2] cxl: Check if vphb exists before iterating over AFU devices

2017-11-22 Thread Vaibhav Jain
Frederic Barrat writes: > > .. that one is more annoying. > afu->phb == NULL? Not sure how I missed that. Thanks for catching this Fred. I have sent a v3 with the fix. -- Vaibhav Jain Linux Technology Center, IBM India Pvt. Ltd.

Re: Qoriq P5020 PowerPC board doesn't boot with the latest git version anymore

2017-11-22 Thread Michael Ellerman
Christian Zigotzky writes: > Hi All, > > I created a patch for the git kernel today. (see attachment) > Without the patch, the latest git kernel doesn't boot on my Cyrus Plus > board. Hi Christian, This doesn't make much sense. Are you running any out of tree drivers

Re: [PATCH v2] powerpc: fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWX

2017-11-22 Thread Michael Ellerman
Christophe Leroy writes: > On powerpc32, patch_instruction() is called by apply_feature_fixups() > which is called from early_init() > > There is the following note in front of early_init(): > * Note that the kernel may be running at an address which is different > *

[PATCH] powerpc/64s: Fix Power9 DD2.1 logic in DT CPU features

2017-11-22 Thread Michael Ellerman
I got the logic wrong in the DT CPU features code when I added the Power9 DD2.1 feature. We should be setting the bit if we detect a DD2.1, not clearing it if we detect a DD2.0. This code isn't actually exercised at the moment so nothing is actually broken. Fixes: 3ffa9d9e2a7c ("powerpc/64s: Fix

Re: [PATCH v3 10/18] powerpc/vas, nx-842: Define and use chip_to_vas_id()

2017-11-22 Thread Michael Ellerman
Josh Boyer writes: > On Tue, Nov 7, 2017 at 9:23 PM, Sukadev Bhattiprolu > wrote: ... >> diff --git a/arch/powerpc/platforms/powernv/vas.c >> b/arch/powerpc/platforms/powernv/vas.c >> index abb7090..cd9a733 100644 >> ---

Re: [PATCH v2] powerpc: fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWX

2017-11-22 Thread Michael Ellerman
Christophe LEROY writes: > Le 22/11/2017 à 00:07, Balbir Singh a écrit : >> On Wed, Nov 22, 2017 at 1:28 AM, Christophe Leroy >> wrote: >>> On powerpc32, patch_instruction() is called by apply_feature_fixups() >>> which is called from

Re: [PATCH V7 1/3] powerpc/nodes: Ensure enough nodes avail for operations

2017-11-22 Thread Michael Ellerman
Nathan Fontenot writes: > On 11/16/2017 11:24 AM, Michael Bringmann wrote: ... >> diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c >> index eb604b3..334a1ff 100644 >> --- a/arch/powerpc/mm/numa.c >> +++ b/arch/powerpc/mm/numa.c >> @@ -892,6 +892,37 @@ static

[RESEND][PATCH v2] cxl: Check if vphb exists before iterating over AFU devices

2017-11-22 Thread Vaibhav Jain
During an eeh a kernel-oops is reported if no vPHB to allocated to the AFU. This happens as during AFU init, an error in creation of vPHB is a non-fatal error. Hence afu->phb should always be checked for NULL before iterating over it for the virtual AFU pci devices. This patch fixes the

[PATCH v3] cxl: Check if vphb exists before iterating over AFU devices

2017-11-22 Thread Vaibhav Jain
During an eeh a kernel-oops is reported if no vPHB is allocated to the AFU. This happens as during AFU init, an error in creation of vPHB is a non-fatal error. Hence afu->phb should always be checked for NULL before iterating over it for the virtual AFU pci devices. This patch fixes the

Re: [PATCH 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S, U}20_4

2017-11-22 Thread Takashi Sakamoto
On Nov 23 2017 08:44, Maciej S. Szmigiero wrote: On 23.11.2017 00:27, Takashi Sakamoto wrote: On Nov 23 2017 04:17, Maciej S. Szmigiero wrote: (..) --- a/include/uapi/sound/asound.h +++ b/include/uapi/sound/asound.h @@ -236,7 +236,11 @@ typedef int __bitwise snd_pcm_format_t;   #define   

Re: [PATCH v6 06/10] powerpc/lib/code-patching: Use alternate map for patch_instruction()

2017-11-22 Thread Christophe LEROY
Le 03/07/2017 à 15:01, Michael Ellerman a écrit : From: Balbir Singh This patch creates the window using text_poke_area, allocated via get_vm_area(). text_poke_area is per CPU to avoid locking. text_poke_area for each cpu is setup using late_initcall, prior to setup of

Re: [PATCH v2] powerpc: fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWX

2017-11-22 Thread Christophe LEROY
Le 22/11/2017 à 12:48, Michael Ellerman a écrit : Christophe LEROY writes: Le 22/11/2017 à 00:07, Balbir Singh a écrit : On Wed, Nov 22, 2017 at 1:28 AM, Christophe Leroy wrote: On powerpc32, patch_instruction() is called by

Re: [RFC PATCH kernel] KVM: PPC: Book3S PR: Fix WIMG handling under pHyp

2017-11-22 Thread Alexander Graf
On 22.11.17 04:42, Alexey Kardashevskiy wrote: > 96df226 "KVM: PPC: Book3S PR: Preserve storage control bits" added WIMG > bits preserving but it missed 2 special cases: > - a magic page in kvmppc_mmu_book3s_64_xlate() and > - guest real mode in kvmppc_handle_pagefault(). > > For these ptes

Re: [RESEND][PATCH v2] cxl: Check if vphb exists before iterating over AFU devices

2017-11-22 Thread Frederic Barrat
Le 22/11/2017 à 13:17, Vaibhav Jain a écrit : During an eeh a kernel-oops is reported if no vPHB to allocated to the typo, "to allocated". Not important, but AFU. This happens as during AFU init, an error in creation of vPHB is a non-fatal error. Hence afu->phb should always be checked

[PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-22 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Rebooting into a new kernel with kexec fails in trace_tlbie() which is called from native_hpte_clear(). This happens if the running kernel has CONFIG_LOCKDEP enabled. With lockdep enabled, the tracepoints always execute few RCU checks regardless

Boot new kernel on PS3

2017-11-22 Thread Geoff Levand
Hi, On 11/21/2017 12:41 PM, Kevin Yeske wrote: > I have been working on trying to get a newer kernel and Ubuntu version > running on the PS3 within otherOS on a PS3 slim. There was a breakage in the kernel ABI, and the old petitboot bootloader (ps3-petitboot-09.11.30) cannot boot kernels newer

Re: [PATCH] powernv: Avoid calling trace tlbie in kexec path.

2017-11-22 Thread Naveen N. Rao
Mahesh J Salgaonkar wrote: From: Mahesh Salgaonkar Rebooting into a new kernel with kexec fails in trace_tlbie() which is called from native_hpte_clear(). This happens if the running kernel has CONFIG_LOCKDEP enabled. With lockdep enabled, the tracepoints always

[PATCH 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S,U}20_4

2017-11-22 Thread Maciej S. Szmigiero
This format is similar to existing SNDRV_PCM_FORMAT_{S,U}20_3 that keep 20-bit PCM samples in 3 bytes, however i.MX6 platform SSI FIFO does not allow 3-byte accesses (including DMA) so a 4-byte format is needed for it. Signed-off-by: Maciej S. Szmigiero ---

[PATCH 2/2] ASoC: fsl_ssi: add 20-bit sample format for AC'97 and use it for capture

2017-11-22 Thread Maciej S. Szmigiero
When testing AC'97 capture on UDOO board (currently the only user of fsl_ssi driver in the AC'97 mode) it become obvious that there is a massive distortion above certain, small input signal. This problem has been traced to silicon errata ERR003778: "In AC97, 16-bit mode, received data is shifted

Re: [PATCH v2 1/2] powerpc/pci: convert to use for_each_pci_bridge() helper

2017-11-22 Thread Bjorn Helgaas
On Fri, Nov 10, 2017 at 07:52:29PM +0200, Andy Shevchenko wrote: > ...which makes code slightly cleaner. > > Requires: d43f59ce6c50 ("PCI: Add for_each_pci_bridge() helper") Requires: 24a0c654d7d6 ("PCI: Add for_each_pci_bridge() helper") (My fault, I rebased that commit before sending it to