Re: [PATCHv4 0/6] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-11-28 Thread Sergey Senozhatsky
On (11/28/17 16:47), Petr Mladek wrote: > On Fri 2017-11-10 08:48:24, Sergey Senozhatsky wrote: > > Hello, > > > > A reworked version. There is a new dereference_symbol_descriptor() > > function now, where "the magic happens", so I don't touch kallsyms_lookup() > > and

Re: [PATCH] powerpc/powernv : Add support to enable sensor groups

2017-11-28 Thread Shilpasri G Bhat
Hi, On 11/28/2017 05:07 PM, Michael Ellerman wrote: > Shilpasri G Bhat writes: > >> Adds support to enable/disable a sensor group. This can be used to >> select the sensor groups that needs to be copied to main memory by >> OCC. Sensor groups like power,

Re: [PATCH][V2] crypto/nx: fix spelling mistake: "availavle" -> "available"

2017-11-28 Thread Herbert Xu
On Tue, Nov 14, 2017 at 02:32:17PM +, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in pr_err error message text. Also > fix spelling mistake in proceeding comment. > > Signed-off-by: Colin Ian King Patch

Re: a3b2cb30 broken panic reporting for qemu guests

2017-11-28 Thread Nicholas Piggin
On Wed, 29 Nov 2017 15:06:52 +1100 David Gibson wrote: > a3b2cb30 "powerpc: Do not call ppc_md.panic in fadump panic notifier" > purports to fix a problem when the kernel panics with fadump not > registered, but it breaks something else instead. I _think_ it was >

a3b2cb30 broken panic reporting for qemu guests

2017-11-28 Thread David Gibson
a3b2cb30 "powerpc: Do not call ppc_md.panic in fadump panic notifier" purports to fix a problem when the kernel panics with fadump not registered, but it breaks something else instead. I _think_ it was working on the incorrect assumption that ppc_md.panic was (or should be) only used with fadump,

Re: [PATCH v2 2/2] ASoC: fsl_ssi: call _fsl_ssi_set_dai_fmt() just once in AC'97 mode

2017-11-28 Thread Nicolin Chen
On Wed, Nov 22, 2017 at 12:55:14AM +0100, Maciej S. Szmigiero wrote: > In AC'97 mode we configure and start SSI RX / TX on probe path via > a call to _fsl_ssi_set_dai_fmt() function. > We don't need to call this function again later and in fact don't want to > do it since this function temporarily

Re: [alsa-devel] [PATCH v2 1/2] ASoC: fsl_ssi: only enable proper channel slots in AC'97 mode

2017-11-28 Thread Nicolin Chen
On Wed, Nov 22, 2017 at 12:54:26AM +0100, Maciej S. Szmigiero wrote: > We need to make sure that only proper channel slots (in SACCST register) > are enabled at playback start time since some AC'97 CODECs (like VT1613 on > UDOO board) were observed requesting via SLOTREQ spurious ones just after >

Resend: [PATCH V5 0/4] powerpc/devtree: Add support for 'ibm,drc-info' property

2017-11-28 Thread Michael Bringmann
Several properties in the DRC device tree format are replaced by more compact representations to allow, for example, for the encoding of vast amounts of memory, and or reduced duplication of information in related data structures. "ibm,drc-info": This property, when present, replaces the

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

2017-11-28 Thread Deepa Dinamani
On Tue, Nov 28, 2017 at 6:17 AM, Arnd Bergmann wrote: > On Mon, Nov 27, 2017 at 11:29 PM, Deepa Dinamani > wrote: I decided against using LEGACY_TIME_SYSCALLS to conditionally compile legacy time syscalls such as sys_nanosleep because this will

Resend: [PATCH V5 4/4] powerpc: Enable support for ibm,drc-info devtree property

2017-11-28 Thread Michael Bringmann
prom_init.c: Enable support for new DRC device tree property "ibm,drc-info" in initial handshake between the Linux kernel and the front end processor. Signed-off-by: Michael Bringmann --- arch/powerpc/kernel/prom_init.c |1 + 1 file changed, 1 insertion(+) diff

Resend: [PATCH V5 3/4] hotplug/drc-info: Add code to search ibm,drc-info property

2017-11-28 Thread Michael Bringmann
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 property "ibm,drc-info". The interface to examine the DRC information is changed from a "get" function that returns

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

2017-11-28 Thread Michael Bringmann
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", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,drc-info". Signed-off-by: Michael Bringmann

Resend: [PATCH V5 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature

2017-11-28 Thread Michael Bringmann
Firmware Features: Define new bit flag representing the presence of new device tree property "ibm,drc-info". The flag is used to tell the front end processor whether the Linux kernel supports the new property, and by the front end processor to tell the Linux kernel that the new property is

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

2017-11-28 Thread Michael Bringmann
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 of CPUs to the memoryless nodes. * The most common error occurred when the memory SLAB driver attempted to reference

[PATCH V8 2/3] poserpc/initnodes: Ensure nodes initialized for hotplug

2017-11-28 Thread Michael Bringmann
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 different configurations of PowerPC resources may need to be supported depending upon the environment. Important

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

2017-11-28 Thread Michael Bringmann
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 at bootup. In the kernel, any node that is used must be defined and initialized. These empty nodes may occur when, *

[PATCH V8 0/3] powerpc/nodes: Fix issues with memoryless nodes

2017-11-28 Thread Michael Bringmann
powerpc/nodes: Ensure enough nodes avail for operations powerpc/initnodes: Ensure nodes initialized for hotplug hotplug/cpu: Fix crash with memoryless nodes Signed-off-by: Michael Bringmann Michael Bringmann (3): powerpc/nodes: Ensure enough nodes avail for

Re: [PATCH V2 0/3] powerpc/hotplug: Fix affinity assoc for LPAR migration

2017-11-28 Thread Michael Bringmann
Hello: I would like to pull / defer further consideration of this patch set for a while. I will be discussing changes here with respect to the LMB optimizations that Nathan Fontenot is working upon. A revision of this patch set will be sent out somewhat later. Thanks for your attention

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

2017-11-28 Thread Michael Bringmann
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", "ibm,drc-types" and "ibm,drc-power-domains"), or the new property "ibm,drc-info". Signed-off-by: Michael Bringmann

[PATCH V5 4/4] powerpc: Enable support for ibm,drc-info devtree property

2017-11-28 Thread Michael Bringmann
prom_init.c: Enable support for new DRC device tree property "ibm,drc-info" in initial handshake between the Linux kernel and the front end processor. Signed-off-by: Michael Bringmann --- arch/powerpc/kernel/prom_init.c |1 + 1 file changed, 1 insertion(+) diff

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

2017-11-28 Thread Michael Bringmann
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 property "ibm,drc-info". The interface to examine the DRC information is changed from a "get" function that returns

[PATCH V5 1/4] powerpc/firmware: Add definitions for new drc-info firmware feature

2017-11-28 Thread Michael Bringmann
Firmware Features: Define new bit flag representing the presence of new device tree property "ibm,drc-info". The flag is used to tell the front end processor whether the Linux kernel supports the new property, and by the front end processor to tell the Linux kernel that the new property is

[PATCH V5 0/4] powerpc/devtree: Add support for 'ibm,drc-info' property

2017-11-28 Thread Michael Bringmann
Several properties in the DRC device tree format are replaced by more compact representations to allow, for example, for the encoding of vast amounts of memory, and or reduced duplication of information in related data structures. "ibm,drc-info": This property, when present, replaces the

[PATCH] scripts: Add ppc64le support for checkstack.pl

2017-11-28 Thread Breno Leitao
64-bit ELF v2 ABI specification for POWER describes, on section "General Stack Frame Requirements", that the stack should use the following instructions when compiled with backchain: mflr r0 std r0, 16(r1) stdu r1, -XX(r1) Where XX is the frame size for that function, and this is the

Re: [PATCHv4 0/6] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-11-28 Thread Petr Mladek
On Fri 2017-11-10 08:48:24, Sergey Senozhatsky wrote: > Hello, > > A reworked version. There is a new dereference_symbol_descriptor() > function now, where "the magic happens", so I don't touch kallsyms_lookup() > and module_address_lookup() anymore. The new version looks good to me.

Re: [PATCHv4 5/6] symbol lookup: introduce dereference_symbol_descriptor()

2017-11-28 Thread Petr Mladek
On Sat 2017-11-11 13:49:32, Sergey Senozhatsky wrote: > On (11/10/17 10:09), Luck, Tony wrote: > > On Fri, Nov 10, 2017 at 08:48:29AM +0900, Sergey Senozhatsky wrote: > > > -Examples:: > > > - > > > - printk("Going to call: %pF\n", gettimeofday); > > > - printk("Going to call: %pF\n", p->func); >

Re: [PATCH] powerpc/powernv: Add queue mechanism for early messages

2017-11-28 Thread Deb McLemore
Hi Michael, Thanks for the comments, I'll respin the patch and send another version. Summary on the problem being solved: When issuing a BMC soft poweroff during IPL the poweroff was being lost, so the machine would not poweroff. Opal messages were being received before the opal-power code

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

2017-11-28 Thread Arnd Bergmann
On Mon, Nov 27, 2017 at 11:29 PM, Deepa Dinamani wrote: >>> 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 >>> >>>

Re: [PATCH] powerpc/powernv: Add queue mechanism for early messages

2017-11-28 Thread Michael Ellerman
Hi Deb, Thanks for the patch. Some comments below ... Deb McLemore writes: > Add a check for do_notify to confirm that a message handler > has been registered before an attempt is made to call notifier > call chain. > > If the message handler has not been registered

Re: [PATCH v2 5/5] of/fdt: only store the device node basename in full_name

2017-11-28 Thread Rob Herring
On Tue, Nov 28, 2017 at 7:13 AM, Geert Uytterhoeven wrote: > Hi Rob, > > On Mon, Aug 21, 2017 at 5:16 PM, Rob Herring wrote: >> With dependencies on a statically allocated full path name converted to >> use %pOF format specifier, we can store just the

Re: [PATCH v2 5/5] of/fdt: only store the device node basename in full_name

2017-11-28 Thread Geert Uytterhoeven
Hi Rob, On Mon, Aug 21, 2017 at 5:16 PM, Rob Herring wrote: > With dependencies on a statically allocated full path name converted to > use %pOF format specifier, we can store just the basename of node, and > the unflattening of the FDT can be simplified. > > This commit will

Re: [PATCH] powerpc/powernv : Add support to enable sensor groups

2017-11-28 Thread Michael Ellerman
Shilpasri G Bhat writes: > Adds support to enable/disable a sensor group. This can be used to > select the sensor groups that needs to be copied to main memory by > OCC. Sensor groups like power, temperature, current, voltage, > frequency, utilization can be

Re: 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-28 Thread Michael Ellerman
Liu ping fan writes: > Hi, > > I can not find the history about: > https://patchwork.ozlabs.org/patch/577193/ > > > Can we have this patch? I strongly dislike it. Our CPU discovery code is already a big mess, in two separate places, and this makes it worse. In theory we

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

2017-11-28 Thread Michael Ellerman
Christian Zigotzky writes: > Hi All, > > I compiled the latest git kernel today. Unfortunately my Varisys Cyrus > Plus board still doesn't boot with the latest git kernel. > > After that I patched the kernel source code with the spinlock patch and > compiled the kernel

[PATCH] selftest/powerpc: Add additional option to mmap_bench test

2017-11-28 Thread Aneesh Kumar K.V
This patch adds --pgfault and --iterations options to mmap_bench test. With --pgfault we touch every page mapped. This helps in measuring impact in the page fault path with a patch series. Signed-off-by: Aneesh Kumar K.V ---

[PATCH] powerpc/hash: Skip non initialized page size in init_hpte_page_sizes

2017-11-28 Thread Aneesh Kumar K.V
One of the easiest way to test config with 4K HPTE is to disable 64K hardware page size like below. int __init htab_dt_scan_page_sizes(unsigned long node, size -= 3; prop += 3; base_idx = get_idx_from_shift(base_shift); - if (base_idx < 0) { +

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

2017-11-28 Thread christophe lombard
Le 28/11/2017 à 03:53, Vaibhav Jain a écrit : 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