Re: [PATCH] cxl: Add support for ASB_Notify on POWER9

2017-11-27 Thread christophe lombard
Le 27/11/2017 à 05:03, Michael Ellerman a écrit : christophe lombard writes: Le 24/11/2017 à 14:02, Benjamin Herrenschmidt a écrit : On Fri, 2017-11-24 at 11:14 +0100, christophe lombard wrote: To my knowledge, there is no property (or similar), somewhere, that indicating that the TIDR is su

[PATCH 1/2] spufs: use timespec64 for timestamps

2017-11-27 Thread Arnd Bergmann
The switch log prints the tv_sec portion of timespec as a 32-bit number, while overflows in 2106. It also uses the timespec type, which is safe on 64-bit architectures, but deprecated because it causes overflows in 2038 elsewhere. This changes it to timespec64 and printing a 64-bit number for cons

[PATCH 2/2] powerpc: mpic_timer: avoid struct timeval

2017-11-27 Thread Arnd Bergmann
In an effort to remove all instances of 'struct timeval' from the kernel, I'm changing the powerpc mpic_timer interface to use plain seconds instead. There is only one user of this interface, and that doesn't use the microseconds portion, so the code gets noticeably simpler in the process. Signed-

[PATCH] KVM: PPC: Book3S HV: check for XIVE device before executing the XICS hcalls

2017-11-27 Thread Cédric Le Goater
When QEMU is started with the option kernel_irqchip=òff, the kvm XICS hcalls are being used even though a kvm XICS device has not been created on the host, resulting quickly in a failure and a broken guest. The test checking if there is a XIVE device in the VM before executing the XICS hcalls is m

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

2017-11-27 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 pci_get_domain_bus_

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

2017-11-27 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 nu

Re: [PATCH 1/2] powerpc: Avoid signed to unsigned conversion in set_thread_tidr()

2017-11-27 Thread Vaibhav Jain
Michael Ellerman writes: > Vaibhav Jain writes: > >> Thanks Mpe for reviewing the patch >> >> Michael Ellerman writes: >> To fix this the patch assigns the return value of assign_thread_tidr() to a temporary int and assigns it to thread.tidr iff its '> 0'. >>> >>> .. and changes the

[PATCH v3] powerpc: Avoid signed to unsigned conversion in set_thread_tidr()

2017-11-27 Thread Vaibhav Jain
There is an unsafe signed to unsigned conversion in set_thread_tidr() that may cause an error value to be assigned to SPRN_TIDR register and used as thread-id. The issue happens as assign_thread_tidr() returns an int and thread.tidr is an unsigned-long. So a negative error code returned from assig

Re: [PATCH v2 1/2] powerpc: Avoid signed to unsigned conversion in set_thread_tidr()

2017-11-27 Thread Vaibhav Jain
Michael Ellerman writes: > Success == 0 > >> +return rc; > > Success == +ve TIDR > >> } > > cheers > Thanks for reviewing the patch Mpe, I have updated the patch and sent a v3 with the fix that shouldn't impact the calling convention. -- Vaibhav Jain Linux Technology Center, IBM India Pv

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

2017-11-27 Thread Takashi Sakamoto
On Nov 27 2017 08:09, 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 (more conventional) format is needed for it. Signed-o

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

2017-11-27 Thread Bjorn Helgaas
On Thu, Nov 23, 2017 at 11:48:18PM +1100, Michael Ellerman wrote: > Bjorn Helgaas writes: > > > 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:

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

2017-11-27 Thread Maciej S. Szmigiero
On 27.11.2017 18:40, Takashi Sakamoto wrote: (..) > > Looks good to me. > > Reviewed-by: Takashi Sakamoto Thanks. > In next time to post any of your v2 patchset, it's better to add commenters > of v1 patchset to CC list, so that your patch reaches the person who has > practical interests in

Applied "ASoC: fsl_ssi: remove duplicated flag setting in fsl_ssi_setup_reg_vals()" to the asoc tree

2017-11-27 Thread Mark Brown
The patch ASoC: fsl_ssi: remove duplicated flag setting in fsl_ssi_setup_reg_vals() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in th

Applied "ASoC: fsl_ssi: AC'97 ops need regmap, clock and cleaning up on failure" to the asoc tree

2017-11-27 Thread Mark Brown
The patch ASoC: fsl_ssi: AC'97 ops need regmap, clock and cleaning up on failure has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the n

Applied "ASoC: fsl_ssi: serialize AC'97 register access operations" to the asoc tree

2017-11-27 Thread Mark Brown
The patch ASoC: fsl_ssi: serialize AC'97 register access operations has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Re: [PATCH V4 2/4] pseries/drc-info: Search DRC properties for CPU indexes

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 09:35 AM, Nathan Fontenot wrote: > On 11/16/2017 02:11 PM, Michael Bringmann wrote: >> pseries/drc-info: Provide parallel routines to convert between >> drc_index and CPU numbers at runtime, using the older device-tree >> properties ("ibm,drc-indexes", "ibm,drc-names", "ib

Re: Subject: [PATCH V4 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 09:38 AM, Nathan Fontenot wrote: > On 11/16/2017 02:11 PM, Michael Bringmann wrote: >> rpadlpar_core.c: Provide parallel routines to search the older device- >> tree properties ("ibm,drc-indexes", "ibm,drc-names", "ibm,drc-types" >> and "ibm,drc-power-domains"), or the new

[PATCH v2 00/10] posix_clocks: Prepare syscalls for 64 bit time_t conversion

2017-11-27 Thread Deepa Dinamani
The series is a preparation series for individual architectures to use 64 bit time_t syscalls in compat and 32 bit emulation modes. This is a follow up to the series Arnd Bergmann posted: https://sourceware.org/ml/libc-alpha/2015-05/msg00070.html [1] Big picture is as per the lwn article: https:/

[PATCH v2 02/10] include: Move compat_timespec/ timeval to compat_time.h

2017-11-27 Thread Deepa Dinamani
All the current architecture specific defines for these are the same. Refactor these common defines to a common header file. The new common linux/compat_time.h is also useful as it will eventually be used to hold all the defines that are needed for compat time types that support non y2038 safe typ

Re: [PATCH V2 1/3] hotplug/mobility: Apply assoc updates for Post Migration Topo

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 10:04 AM, Nathan Fontenot wrote: > On 11/16/2017 11:50 AM, Michael Bringmann wrote: >> hotplug/mobility: Recognize more changes to the associativity of >> memory blocks described by the 'ibm,dynamic-memory' and 'cpu' >> properties when processing the topology of LPARS in P

Re: [PATCH V2 3/3] postmigration/memory: Associativity & ibm,dynamic-memory-v2

2017-11-27 Thread Michael Bringmann
Okay. We can discuss that tomorrow. On 11/20/2017 10:14 AM, Nathan Fontenot wrote: > We may want to wait on this patch. I have been working on patches to separate > the LMB information from the device tree property format. Once those patches > are acceptable we can use a common routine for affini

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

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 10:33 AM, Nathan Fontenot wrote: > > > On 11/16/2017 11:24 AM, Michael Bringmann wrote: >> On powerpc systems which allow 'hot-add' of CPU or memory resources, >> it may occur that the new resources are to be inserted into nodes >> that were not used for these resources

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

2017-11-27 Thread Michael Bringmann
See below. On 11/22/2017 05:17 AM, Michael Ellerman wrote: > 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

Re: RESEND [PATCH V7 2/3] poserpc/initnodes: Ensure nodes initialized for hotplug

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 10:45 AM, Nathan Fontenot wrote: > On 11/16/2017 11:27 AM, Michael Bringmann wrote: >> On powerpc systems which allow 'hot-add' of CPU, it may occur that >> the new resources are to be inserted into nodes that were not used >> for memory resources at bootup. Many differen

Re: [alsa-devel] [PATCH v3 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S, U}20

2017-11-27 Thread Takashi Iwai
On Mon, 27 Nov 2017 00:09:47 +0100, Maciej S. Szmigiero wrote: > diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h > index 58acd00cae19..d970879944fc 100644 > --- a/include/sound/soc-dai.h > +++ b/include/sound/soc-dai.h > @@ -102,6 +102,8 @@ struct snd_compr_stream; >

Re: [PATCH V7 3/3] hotplug/cpu: Fix crash with memoryless nodes

2017-11-27 Thread Michael Bringmann
See below. On 11/20/2017 10:50 AM, Nathan Fontenot wrote: > On 11/16/2017 11:28 AM, Michael Bringmann wrote: >> On powerpc systems with shared configurations of CPUs and memory and >> memoryless nodes at boot, an event ordering problem was observed on >> a SLES12 build platforms with the hot-add o

Re: [PATCH 1/4] 44x/fsp2: add fsp2 headers

2017-11-27 Thread Benjamin Herrenschmidt
On Mon, 2017-11-27 at 15:58 +1100, Alistair Popple wrote: > Hi Ivan, > > Does it make sense to have these in a seperate include file? From what I could > see these defines were only used in fsp2.c so you could just put them directly > in there. Or at least have an fsp2.h next to fsp2.c rather tha

Re: [alsa-devel] [PATCH v3 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S, U}20

2017-11-27 Thread Maciej S. Szmigiero
On 27.11.2017 21:28, Takashi Iwai wrote: > On Mon, 27 Nov 2017 00:09:47 +0100, > Maciej S. Szmigiero wrote: >> diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h >> index 58acd00cae19..d970879944fc 100644 >> --- a/include/sound/soc-dai.h >> +++ b/include/sound/soc-dai.h >> @@ -102,6 +10

Re: [PATCH v2 00/10] posix_clocks: Prepare syscalls for 64 bit time_t conversion

2017-11-27 Thread Arnd Bergmann
On Mon, Nov 27, 2017 at 8:30 PM, Deepa Dinamani wrote: > The series is a preparation series for individual architectures > to use 64 bit time_t syscalls in compat and 32 bit emulation modes. > > This is a follow up to the series Arnd Bergmann posted: > https://sourceware.org/ml/libc-alpha/2015-05/

Re: [PATCH v2 00/10] posix_clocks: Prepare syscalls for 64 bit time_t conversion

2017-11-27 Thread Deepa Dinamani
>> I decided against using LEGACY_TIME_SYSCALLS to conditionally compile >> legacy time syscalls such as sys_nanosleep because this will need to >> enclose compat_sys_nanosleep as well. So, defining it as >> >> config LEGACY_TIME_SYSCALLS >> def_bool 64BIT || !64BIT_TIME >> >> will not include

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

2017-11-27 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 (more conventional) format is needed for it. Signed-off-by: Maciej S. Szmigiero --- Changes from v1: Dr

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

2017-11-27 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 b

[PATCH] powerpc/fsl_pci: Fix ptr_ret.cocci warnings

2017-11-27 Thread Vasyl Gomonovych
arch/powerpc/sysdev/fsl_pci.c:1307:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- arch/powerpc/sysdev/fsl_pci.c | 4 +--- 1 file changed, 1 insertion(+), 3

Re: [PATCH v3] powerpc: Avoid signed to unsigned conversion in set_thread_tidr()

2017-11-27 Thread Sukadev Bhattiprolu
Vaibhav Jain [vaib...@linux.vnet.ibm.com] wrote: > There is an unsafe signed to unsigned conversion in set_thread_tidr() > that may cause an error value to be assigned to SPRN_TIDR register and > used as thread-id. Thanks for fixing this. I have a comment below > > The issue happens as assign_thr

[PATCH v4] powerpc: Avoid signed to unsigned conversion in set_thread_tidr()

2017-11-27 Thread Vaibhav Jain
There is an unsafe signed to unsigned conversion in set_thread_tidr() that may cause an error value to be assigned to SPRN_TIDR register and used as thread-id. The issue happens as assign_thread_tidr() returns an int and thread.tidr is an unsigned-long. So a negative error code returned from assig

Re: [PATCH v3] powerpc: Avoid signed to unsigned conversion in set_thread_tidr()

2017-11-27 Thread Vaibhav Jain
Sukadev Bhattiprolu writes: > We can eliminate the 'else' and be consistent with existing code, if > we check for error (i.e rc < 0) and return rc. assign_thread_tidr() will > not return 0, but even if it did, setting the register and thread.tidr > to 0 should not be a problem. Thanks for the su

what is the state about "[v2] ppc64 boot: Wait for boot cpu to show up if nr_cpus limit is about to hit"

2017-11-27 Thread Liu ping fan
Hi, I can not find the history about: https://patchwork.ozlabs.org/patch/577193/ Can we have this patch? Thanks, Pingfan