Re: [PATCH] powerpc/perf: Remove sched_task function defined for thread-imc

2018-08-01 Thread Joel Stanley
On Fri, 18 May 2018 at 17:06, Anju T Sudhakar wrote: > > Call trace observed while running perf-fuzzer: > > [ 329.228068] CPU: 43 PID: 9088 Comm: perf_fuzzer Not tainted > 4.13.0-32-generic #35~lp1746225 > [ 329.228070] task: c03f776ac900 task.stack: c03f77728000 > [ 329.228071] NIP:

Re: [PATCH v4 5/6] powerpc: Add show_user_instructions()

2018-08-01 Thread Christophe LEROY
Le 01/08/2018 à 23:33, Murilo Opsfelder Araujo a écrit : show_user_instructions() is a slightly modified version of show_instructions() that allows userspace instruction dump. This will be useful within show_signal_msg() to dump userspace instructions of the faulty location. Here is a

Re: [PATCH v6 5/8] powerpc/pseries: flush SLB contents on SLB MCE errors.

2018-08-01 Thread Mahesh Jagannath Salgaonkar
On 08/01/2018 11:28 AM, Nicholas Piggin wrote: > On Wed, 04 Jul 2018 23:28:21 +0530 > Mahesh J Salgaonkar wrote: > >> From: Mahesh Salgaonkar >> >> On pseries, as of today system crashes if we get a machine check >> exceptions due to SLB errors. These are soft errors and can be fixed by >>

[RFC PATCH 3/3] cpuidle/powernv: Conditionally save-restore sprs using opal

2018-08-01 Thread Akshay Adiga
From: Abhishek Goel If a state has "opal-supported" compat flag in device-tree, an opal call needs to be made during the entry and exit of the stop state. This patch passes a hint to the power9_idle_stop and power9_offline_stop. This patch moves the saving and restoring of sprs for P9 cpuidle

[RFC PATCH 2/3] powernv/cpuidle: Pass pointers instead of values to stop loop

2018-08-01 Thread Akshay Adiga
Passing pointer to the pnv_idle_state instead of psscr value and mask. This helps us to pass more information to the stop loop. This will help to figure out the method to enter/exit idle state. Signed-off-by: Akshay Adiga --- arch/powerpc/include/asm/processor.h | 3 +-

[RFC PATCH 1/3] cpuidle/powernv: Add support for states with ibm, cpuidle-state-v1

2018-08-01 Thread Akshay Adiga
This patch adds support for new device-tree format for idle state description. Previously if a older kernel runs on a newer firmware, it may enable all available states irrespective of its capability of handling it. New device tree format adds a compatible flag, so that only kernel which has the

[RFC PATCH 0/3] New device-tree format and Opal based idle save-restore

2018-08-01 Thread Akshay Adiga
Previously if a older kernel runs on a newer firmware, it may enable all available states irrespective of its capability of handling it. New device tree format adds a compatible flag, so that only kernel which has the capability to handle the version of stop state will enable it. Older kernel

Re: linux-next: manual merge of the powerpc tree with the m68k tree

2018-08-01 Thread Stephen Rothwell
Hi all, [forgot the conflict resolution ...] On Thu, 2 Aug 2018 09:27:20 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the powerpc tree got a conflict in: > > arch/m68k/mac/misc.c > > between commit: > > 5b9bfb8ec467 ("m68k: mac: Use time64_t in RTC handling") > > from

linux-next: manual merge of the powerpc tree with the m68k tree

2018-08-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the powerpc tree got a conflict in: arch/m68k/mac/misc.c between commit: 5b9bfb8ec467 ("m68k: mac: Use time64_t in RTC handling") from the m68k tree and commit: ebd722275f9c ("macintosh/via-pmu: Replace via-pmu68k driver with via-pmu driver") from

Re: [RFC 0/4] Virtio uses DMA API for all devices

2018-08-01 Thread Michael S. Tsirkin
On Wed, Aug 01, 2018 at 10:05:35AM +0100, Will Deacon wrote: > Hi Christoph, > > On Wed, Aug 01, 2018 at 01:36:39AM -0700, Christoph Hellwig wrote: > > On Wed, Aug 01, 2018 at 09:16:38AM +0100, Will Deacon wrote: > > > On arm/arm64, the problem we have is that legacy virtio devices on the > > >

Re: [RFC 0/4] Virtio uses DMA API for all devices

2018-08-01 Thread Michael S. Tsirkin
On Wed, Aug 01, 2018 at 01:36:39AM -0700, Christoph Hellwig wrote: > On Wed, Aug 01, 2018 at 09:16:38AM +0100, Will Deacon wrote: > > On arm/arm64, the problem we have is that legacy virtio devices on the MMIO > > transport (so definitely not PCI) have historically been advertised by qemu > > as

Re: [RFC 0/4] Virtio uses DMA API for all devices

2018-08-01 Thread Michael S. Tsirkin
On Tue, Jul 31, 2018 at 03:36:22PM -0500, Benjamin Herrenschmidt wrote: > On Tue, 2018-07-31 at 10:30 -0700, Christoph Hellwig wrote: > > > However the question people raise is that DMA API is already full of > > > arch-specific tricks the likes of which are outlined in your post linked > > >

[PATCH 19/21] perf tools: Allow overriding MAX_NR_CPUS at compile time

2018-08-01 Thread Arnaldo Carvalho de Melo
From: Christophe Leroy After update of kernel, the perf tool doesn't run anymore on my 32MB RAM powerpc board, but still runs on a 128MB RAM board: ~# strace perf execve("/usr/sbin/perf", ["perf"], [/* 12 vars */]) = -1 ENOMEM (Cannot allocate memory) --- SIGSEGV {si_signo=SIGSEGV,

[GIT PULL 00/21] perf/core improvements and fixes

2018-08-01 Thread Arnaldo Carvalho de Melo
-07-31 09:55:45 -0300) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.19-20180801 for you to fetch changes up to b912885ab75c7c8aa841c615108afd755d0b97f8: perf trace: Do not require --no-syscalls to suppress

[PATCH v4 4/6] powerpc/traps: Print VMA for unhandled signals

2018-08-01 Thread Murilo Opsfelder Araujo
This adds VMA address in the message printed for unhandled signals, similarly to what other architectures, like x86, print. Before this patch, a page fault looked like: pandafault[61470]: unhandled signal 11 at 17d0 nip 161c lr 7fff8d185100 code 2 After this patch, a page fault looks

[PATCH v4 5/6] powerpc: Add show_user_instructions()

2018-08-01 Thread Murilo Opsfelder Araujo
show_user_instructions() is a slightly modified version of show_instructions() that allows userspace instruction dump. This will be useful within show_signal_msg() to dump userspace instructions of the faulty location. Here is a sample of what show_user_instructions() outputs:

[PATCH v4 6/6] powerpc/traps: Show instructions on exceptions

2018-08-01 Thread Murilo Opsfelder Araujo
Call show_user_instructions() in arch/powerpc/kernel/traps.c to dump instructions at faulty location, useful to debugging. Before this patch, an unhandled signal message looked like: pandafault[10524]: segfault (11) at 17d0 nip 161c lr 7fffbd295100 code 2 in pandafault[1000+1]

[PATCH v4 3/6] powerpc/traps: Use %lx format in show_signal_msg()

2018-08-01 Thread Murilo Opsfelder Araujo
Use %lx format to print registers. This avoids having two different formats and avoids checking for MSR_64BIT, improving readability of the function. Even though we could have used %px, which is functionally equivalent to %lx as per Documentation/core-api/printk-formats.rst, it is not

[PATCH v4 2/6] powerpc/traps: Use an explicit ratelimit state for show_signal_msg()

2018-08-01 Thread Murilo Opsfelder Araujo
Replace printk_ratelimited() by printk() and a default rate limit burst to limit displaying unhandled signals messages. This will allow us to call print_vma_addr() in a future patch, which does not work with printk_ratelimited(). Signed-off-by: Murilo Opsfelder Araujo ---

[PATCH v4 1/6] powerpc/traps: Print unhandled signals in a separate function

2018-08-01 Thread Murilo Opsfelder Araujo
Isolate the logic of printing unhandled signals out of _exception_pkey(). No functional change, only code rearrangement. Signed-off-by: Murilo Opsfelder Araujo --- arch/powerpc/kernel/traps.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git

[PATCH v4 0/6] powerpc: Modernize unhandled signals message

2018-08-01 Thread Murilo Opsfelder Araujo
Hi, everyone. This series was inspired by the need to modernize and display more informative messages about unhandled signals. The "unhandled signal NN" is not very informative. We thought it would be helpful adding a human-readable message describing what the signal number means, printing the

Re: phandle_cache vs of_detach_node (was Re: [PATCH] powerpc/mobility: Fix node detach/rename problem)

2018-08-01 Thread Michael Bringmann
On 08/01/2018 09:26 AM, Michael Ellerman wrote: > Frank Rowand writes: >> On 07/31/18 07:17, Rob Herring wrote: >>> On Tue, Jul 31, 2018 at 12:34 AM Michael Ellerman >>> wrote: Hi Rob/Frank, I think we might have a problem with the phandle_cache not interacting well

Re: [PATCH] powerpc/pasemi: Seach for PCI root bus by compatible property

2018-08-01 Thread Olof Johansson
On Wed, Aug 1, 2018 at 7:36 AM, Michael Ellerman wrote: > Christian Zigotzky writes: > >> Just for info: I tested it on my Nemo board today and it works. > > Awesome thanks. > > That's probably sufficient to merge it, and if it breaks anything we can > always revert it. Should be fine, all

Re: [RFC PATCH kernel 0/5] powerpc/P9/vfio: Pass through NVIDIA Tesla V100

2018-08-01 Thread Alex Williamson
On Wed, 1 Aug 2018 18:37:35 +1000 Alexey Kardashevskiy wrote: > On 01/08/2018 00:29, Alex Williamson wrote: > > On Tue, 31 Jul 2018 14:03:35 +1000 > > Alexey Kardashevskiy wrote: > > > >> On 31/07/2018 02:29, Alex Williamson wrote: > >>> On Mon, 30 Jul 2018 18:58:49 +1000 > >>> Alexey

Re: [PATCH v3 9/9] powerpc/traps: Add line prefix in show_instructions()

2018-08-01 Thread Murilo Opsfelder Araujo
Hi, Christophe. On Wed, Aug 01, 2018 at 08:41:15AM +0200, Christophe LEROY wrote: > > > Le 31/07/2018 à 16:50, Murilo Opsfelder Araujo a écrit : > > Remove "Instruction dump:" line by adding a prefix to display current->comm > > and current->pid, along with the instructions dump. > > > > The

Re: [PATCH] powerpc/4xx: Fix error return path in ppc4xx_msi_probe()

2018-08-01 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v3 5/9] powerpc/traps: Print signal name for unhandled signals

2018-08-01 Thread Murilo Opsfelder Araujo
Hi, Segher. On Wed, Aug 01, 2018 at 02:49:03AM -0500, Segher Boessenkool wrote: > On Wed, Aug 01, 2018 at 12:03:50AM -0700, Joe Perches wrote: > > On Wed, 2018-08-01 at 08:37 +0200, Christophe LEROY wrote: > > > Le 31/07/2018 à 16:50, Murilo Opsfelder Araujo a écrit : > > > I would suggest to

Re: [PATCH v3 5/9] powerpc/traps: Print signal name for unhandled signals

2018-08-01 Thread Murilo Opsfelder Araujo
On Wed, Aug 01, 2018 at 12:03:50AM -0700, Joe Perches wrote: > On Wed, 2018-08-01 at 08:37 +0200, Christophe LEROY wrote: > > Le 31/07/2018 à 16:50, Murilo Opsfelder Araujo a écrit : > > > This adds a human-readable name in the unhandled signal message. > > > Before this patch, a page fault looked

Re: [PATCH] perf tools: allow overriding MAX_NR_CPUS at compile time

2018-08-01 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 01, 2018 at 11:37:30AM +0200, Christophe LEROY escreveu: > > > Le 03/05/2018 à 15:40, Arnaldo Carvalho de Melo a écrit : > > Em Fri, Sep 22, 2017 at 01:20:43PM +0200, Christophe Leroy escreveu: > > > After update of kernel, perf tool doesn't run anymore on my > > > 32MB RAM powerpc

Re: [PATCH] powerpc/pasemi: Seach for PCI root bus by compatible property

2018-08-01 Thread Michael Ellerman
Christian Zigotzky writes: > Just for info: I tested it on my Nemo board today and it works. Awesome thanks. That's probably sufficient to merge it, and if it breaks anything we can always revert it. cheers > On 31 July 2018 at 2:04PM, Michael Ellerman wrote: >> Michael Ellerman writes: >>>

Re: [PATCH] powerpc/mobility: Fix node detach/rename problem

2018-08-01 Thread Michael Ellerman
Tyrel Datwyler writes: > On 07/30/2018 11:42 PM, Michael Ellerman wrote: >> Tyrel Datwyler writes: >>> On 07/29/2018 06:11 AM, Michael Bringmann wrote: During LPAR migration, the content of the device tree/sysfs may be updated including deletion and replacement of nodes in the

Re: phandle_cache vs of_detach_node (was Re: [PATCH] powerpc/mobility: Fix node detach/rename problem)

2018-08-01 Thread Michael Ellerman
Frank Rowand writes: > On 07/31/18 07:17, Rob Herring wrote: >> On Tue, Jul 31, 2018 at 12:34 AM Michael Ellerman >> wrote: >>> >>> Hi Rob/Frank, >>> >>> I think we might have a problem with the phandle_cache not interacting >>> well with of_detach_node(): >> >> Probably needs a similar fix as

Re: [PATCH v3 9/9] powerpc/traps: Add line prefix in show_instructions()

2018-08-01 Thread Michael Ellerman
Christophe LEROY writes: > Le 31/07/2018 à 16:50, Murilo Opsfelder Araujo a écrit : >> Remove "Instruction dump:" line by adding a prefix to display current->comm >> and current->pid, along with the instructions dump. >> >> The prefix can serve as a glue that links the instructions dump to its

Re: [PATCH v2 2/2] powerpc/pseries: Wait for completion of hotplug events during PRRN handling

2018-08-01 Thread Michael Ellerman
John Allen writes: > On Mon, Jul 23, 2018 at 11:41:24PM +1000, Michael Ellerman wrote: >>John Allen writes: >> >>> While handling PRRN events, the time to handle the actual hotplug events >>> dwarfs the time it takes to perform the device tree updates and queue the >>> hotplug events. In the

Re: [RESEND PATCH 6/6] arm64: enable RapidIO menu in Kconfig

2018-08-01 Thread Alex Bounine
On 2018-08-01 05:54 AM, Christoph Hellwig wrote: On Tue, Jul 31, 2018 at 10:29:54AM -0400, Alexei Colin wrote: Platforms with a PCI bus will be offered the RapidIO menu since they may be want support for a RapidIO PCI device. Platforms without a PCI bus that might include a RapidIO IP block

Re: [PATCH v2 1/2] powerpc/pseries: Avoid blocking rtas polling handling multiple PRRN events

2018-08-01 Thread Michael Ellerman
Hi John, I'm still not sure about this one. John Allen writes: > On Mon, Jul 23, 2018 at 11:27:56PM +1000, Michael Ellerman wrote: >>Hi John, >> >>I'm a bit puzzled by this one. >> >>John Allen writes: >>> When a PRRN event is being handled and another PRRN event comes in, the >>> second event

Re: [PATCH v5 00/11] hugetlb: Factorize hugetlb architecture primitives

2018-08-01 Thread Alexandre Ghiti
On 07/31/2018 10:06 PM, Luiz Capitulino wrote: On Tue, 31 Jul 2018 06:01:44 + Alexandre Ghiti wrote: [CC linux-mm for inclusion in -mm tree] In order to reduce copy/paste of functions across architectures and then make riscv hugetlb port (and future ports) simpler and smaller, this

Re: [PATCH] powerpc/powernv/opal: Use standard interrupts property when available

2018-08-01 Thread Michael Ellerman
Benjamin Herrenschmidt writes: > diff --git a/arch/powerpc/platforms/powernv/opal-irqchip.c > b/arch/powerpc/platforms/powernv/opal-irqchip.c > index 9d1b8c0aaf93..46785eaf625d 100644 > --- a/arch/powerpc/platforms/powernv/opal-irqchip.c > +++ b/arch/powerpc/platforms/powernv/opal-irqchip.c >

Re: Infinite looping observed in __offline_pages

2018-08-01 Thread Michal Hocko
On Wed 01-08-18 21:09:39, Michael Ellerman wrote: > Michal Hocko writes: > > On Wed 25-07-18 13:11:15, John Allen wrote: > > [...] > >> Does a failure in do_migrate_range indicate that the range is unmigratable > >> and the loop in __offline_pages should terminate and goto failed_removal? > >>

Re: Infinite looping observed in __offline_pages

2018-08-01 Thread Michael Ellerman
Michal Hocko writes: > On Wed 25-07-18 13:11:15, John Allen wrote: > [...] >> Does a failure in do_migrate_range indicate that the range is unmigratable >> and the loop in __offline_pages should terminate and goto failed_removal? Or >> should we allow a certain number of retrys before we >> give

RE: [PATCH 3/3] ptp_qoriq: convert to use module parameters for initialization

2018-08-01 Thread Y.b. Lu
Hi Richard, > -Original Message- > From: Richard Cochran [mailto:richardcoch...@gmail.com] > Sent: Wednesday, August 1, 2018 2:15 PM > To: Y.b. Lu > Cc: net...@vger.kernel.org; Madalin-cristian Bucur > ; Rob Herring ; Shawn Guo > ; David S . Miller ; > devicet...@vger.kernel.org;

[v2, 3/3] ptp_qoriq: support automatic configuration for ptp timer

2018-08-01 Thread Yangbo Lu
This patch is to support automatic configuration for ptp timer. If required ptp dts properties are not provided, driver could try to calculate a set of default configurations to initialize the ptp timer. This makes the driver work for many boards which don't have the required ptp dts properties in

[v2, 1/3] arm64: dts: fsl: add clocks property for fman ptp timer node

2018-08-01 Thread Yangbo Lu
This patch is to add clocks property for fman ptp timer node. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[v2, 2/3] powerpc/mpc85xx: add clocks property for fman ptp timer node

2018-08-01 Thread Yangbo Lu
This patch is to add clocks property for fman ptp timer node. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- arch/powerpc/boot/dts/fsl/qoriq-fman-0.dtsi |1 + arch/powerpc/boot/dts/fsl/qoriq-fman-1.dtsi |1 + arch/powerpc/boot/dts/fsl/qoriq-fman3-0.dtsi |1 +

Re: [RESEND PATCH 6/6] arm64: enable RapidIO menu in Kconfig

2018-08-01 Thread Christoph Hellwig
On Tue, Jul 31, 2018 at 10:29:54AM -0400, Alexei Colin wrote: > Platforms with a PCI bus will be offered the RapidIO menu since they may > be want support for a RapidIO PCI device. Platforms without a PCI bus > that might include a RapidIO IP block will need to "select HAS_RAPIDIO" > in the

Re: [PATCH] perf tools: allow overriding MAX_NR_CPUS at compile time

2018-08-01 Thread Christophe LEROY
Le 03/05/2018 à 15:40, Arnaldo Carvalho de Melo a écrit : Em Fri, Sep 22, 2017 at 01:20:43PM +0200, Christophe Leroy escreveu: After update of kernel, perf tool doesn't run anymore on my 32MB RAM powerpc board, but still runs on a 128MB RAM board: Cleaning up my inbox, found this one,

Re: [PATCH] powerpc/64s/radix: Fix missing global invalidations when removing copro

2018-08-01 Thread Vaibhav Jain
Frederic Barrat writes: > With the optimizations for TLB invalidation from commit 0cef77c7798a > ("powerpc/64s/radix: flush remote CPUs out of single-threaded > mm_cpumask"), the scope of a TLBI (global vs. local) can now be > influenced by the value of the 'copros' counter of the memory

Re: [RFC 0/4] Virtio uses DMA API for all devices

2018-08-01 Thread Will Deacon
Hi Christoph, On Wed, Aug 01, 2018 at 01:36:39AM -0700, Christoph Hellwig wrote: > On Wed, Aug 01, 2018 at 09:16:38AM +0100, Will Deacon wrote: > > On arm/arm64, the problem we have is that legacy virtio devices on the MMIO > > transport (so definitely not PCI) have historically been advertised

Re: [RFC 0/4] Virtio uses DMA API for all devices

2018-08-01 Thread Christoph Hellwig
On Wed, Aug 01, 2018 at 09:16:38AM +0100, Will Deacon wrote: > On arm/arm64, the problem we have is that legacy virtio devices on the MMIO > transport (so definitely not PCI) have historically been advertised by qemu > as not being cache coherent, but because the virtio core has bypassed DMA > ops

[PATCH v8 4/4] selftests/powerpc: update strlen() test to test the new assembly function for PPC32

2018-08-01 Thread Christophe Leroy
This patch adds a test for testing the new assembly strlen() for PPC32 Signed-off-by: Christophe Leroy --- v8: removed defines in ppc_asm.h that were added in v6 (not used anymore since v7) ; added missing link to strlen_32.S v7: reduced the scope to PPC32 v6: added additional necessary

[PATCH v8 3/4] powerpc/lib: implement strlen() in assembly for PPC32

2018-08-01 Thread Christophe Leroy
The generic implementation of strlen() reads strings byte per byte. This patch implements strlen() in assembly based on a read of entire words, in the same spirit as what some other arches and glibc do. On a 8xx the time spent in strlen is reduced by 3/4 for long strings. strlen() selftest on

[PATCH v8 2/4] selftests/powerpc: Add test for strlen()

2018-08-01 Thread Christophe Leroy
This patch adds a test for strlen() string.c contains a copy of strlen() from lib/string.c The test first tests the correctness of strlen() by comparing the result with libc strlen(). It tests all cases of alignment. It them tests the duration of an aligned strlen() on a 4 bytes string, on a 16

[PATCH v8 1/4] selftests/powerpc: add test for 32 bits memcmp

2018-08-01 Thread Christophe Leroy
This patch renames memcmp test to memcmp_64 and adds a memcmp_32 test for testing the 32 bits version of memcmp() Signed-off-by: Christophe Leroy --- v8: rebased on latest powerpc/merge v7: no change v6: no change v5: no change v4: new tools/testing/selftests/powerpc/stringloops/Makefile

Re: [RFC PATCH kernel 0/5] powerpc/P9/vfio: Pass through NVIDIA Tesla V100

2018-08-01 Thread Alexey Kardashevskiy
On 01/08/2018 00:29, Alex Williamson wrote: > On Tue, 31 Jul 2018 14:03:35 +1000 > Alexey Kardashevskiy wrote: > >> On 31/07/2018 02:29, Alex Williamson wrote: >>> On Mon, 30 Jul 2018 18:58:49 +1000 >>> Alexey Kardashevskiy wrote: After some local discussions, it was pointed out that

Re: [RFC 0/4] Virtio uses DMA API for all devices

2018-08-01 Thread Will Deacon
On Tue, Jul 31, 2018 at 03:36:22PM -0500, Benjamin Herrenschmidt wrote: > On Tue, 2018-07-31 at 10:30 -0700, Christoph Hellwig wrote: > > > However the question people raise is that DMA API is already full of > > > arch-specific tricks the likes of which are outlined in your post linked > > >

Re: [next-20180727][qla2xxx][BUG] WARNING: CPU: 12 PID: 511 at drivers/scsi/scsi_lib.c:691 scsi_end_request+0x250/0x280

2018-08-01 Thread jianchao.wang
Hi Abdul On 08/01/2018 02:33 PM, Abdul Haleem wrote: > # mkfs -t ext4 /dev/mapper/mpatha > mke2fs 1.43.1 (08-Jun-2016) > Found a dos partition table in /dev/mapper/mpatha > Proceed anyway? (y,n) y > Discarding device blocks: > qla2xxx [0106:a0:00.1]-801c:2: Abort command issued nexus=2:1:0 -- 1

Re: [PATCH v3 5/9] powerpc/traps: Print signal name for unhandled signals

2018-08-01 Thread Segher Boessenkool
On Wed, Aug 01, 2018 at 12:03:50AM -0700, Joe Perches wrote: > On Wed, 2018-08-01 at 08:37 +0200, Christophe LEROY wrote: > > Le 31/07/2018 à 16:50, Murilo Opsfelder Araujo a écrit : > > I would suggest to instead use a function like this: > > > > static const char *signame(int signr) > > { > >

Re: [PATCH v3 5/9] powerpc/traps: Print signal name for unhandled signals

2018-08-01 Thread Joe Perches
On Wed, 2018-08-01 at 08:37 +0200, Christophe LEROY wrote: > Le 31/07/2018 à 16:50, Murilo Opsfelder Araujo a écrit : > > This adds a human-readable name in the unhandled signal message. > > Before this patch, a page fault looked like: > >pandafault[6303]: unhandled signal 11 at 17d0 nip

Re: [PATCH v3 9/9] powerpc/traps: Add line prefix in show_instructions()

2018-08-01 Thread Christophe LEROY
Le 31/07/2018 à 16:50, Murilo Opsfelder Araujo a écrit : Remove "Instruction dump:" line by adding a prefix to display current->comm and current->pid, along with the instructions dump. The prefix can serve as a glue that links the instructions dump to its originator, allowing messages to be

Re: [PATCH v3 5/9] powerpc/traps: Print signal name for unhandled signals

2018-08-01 Thread Christophe LEROY
Le 31/07/2018 à 16:50, Murilo Opsfelder Araujo a écrit : This adds a human-readable name in the unhandled signal message. Before this patch, a page fault looked like: pandafault[6303]: unhandled signal 11 at 17d0 nip 161c lr 7fff93c55100 code 2 in pandafault[1000+1]

[next-20180727][qla2xxx][BUG] WARNING: CPU: 12 PID: 511 at drivers/scsi/scsi_lib.c:691 scsi_end_request+0x250/0x280

2018-08-01 Thread Abdul Haleem
Greeting's linux-next kernel crashes when creating file system on scsi disks using mkfs.ext4 (Discarding device blocks) Machine: Power 8 Power VM LPAR kernel : 4.18.0-rc6-next-20180727 adapter : Fibre Channel [0c04]: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA [1077:2532]

Re: [PATCH 3/3] ptp_qoriq: convert to use module parameters for initialization

2018-08-01 Thread Richard Cochran
On Wed, Aug 01, 2018 at 04:36:40AM +, Y.b. Lu wrote: > Could I add a function to calculate a set of default register values > to initialize ptp timer when dts method failed to get required > properties in driver? Yes, it would be ideal if the driver can pick correct values automatically.

Re: [PATCH v6 8/8] powernv/pseries: consolidate code for mce early handling.

2018-08-01 Thread Nicholas Piggin
On Mon, 9 Jul 2018 18:02:39 +0200 Michal Suchánek wrote: > On Fri, 6 Jul 2018 19:40:24 +1000 > Nicholas Piggin wrote: > > > On Wed, 04 Jul 2018 23:30:12 +0530 > > Mahesh J Salgaonkar wrote: > > > > > From: Mahesh Salgaonkar > > > > > > Now that other platforms also implements real mode

Re: [PATCH v6 5/8] powerpc/pseries: flush SLB contents on SLB MCE errors.

2018-08-01 Thread Nicholas Piggin
On Wed, 04 Jul 2018 23:28:21 +0530 Mahesh J Salgaonkar wrote: > From: Mahesh Salgaonkar > > On pseries, as of today system crashes if we get a machine check > exceptions due to SLB errors. These are soft errors and can be fixed by > flushing the SLBs so the kernel can continue to function

Re: [PATCH v5 5/7] powerpc/pseries: flush SLB contents on SLB MCE errors.

2018-08-01 Thread Nicholas Piggin
On Thu, 12 Jul 2018 15:41:13 +0200 Michal Suchánek wrote: > On Tue, 3 Jul 2018 08:08:14 +1000 > "Nicholas Piggin" wrote: > > > On Mon, 02 Jul 2018 11:17:06 +0530 > > Mahesh J Salgaonkar wrote: > > > > > From: Mahesh Salgaonkar > > > > > > On pseries, as of today system crashes if we get

[PATCH] powernv: opal-sensor-groups: Add attributes to disable/enable sensors

2018-08-01 Thread Shilpasri G Bhat
This patch provides support to disable and enable plaform specific sensor groups like performance, utilization and frequency which are currently not supported in hwmon. Signed-off-by: Shilpasri G Bhat --- This patch is based on https://git.kernel.org/powerpc/c/04baaf28f40c68c35a413cd9d0db71