Re: [BISECTED] kexec regression on PowerBook G4

2019-05-22 Thread Christophe Leroy
Hi, Le 22/05/2019 à 23:17, Aaro Koskinen a écrit : Hi, On Wed, May 22, 2019 at 10:33:35PM +0200, LEROY Christophe wrote: Can you provide full details of the Oops you get ? And also your System.map ? System.map is below. The oops log is attached as jpeg (crappy camera shoot, apologies, I

[RFC PATCH] powerpc: fix kexec failure on book3s/32

2019-05-22 Thread Christophe Leroy
Fixes: 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX") Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/machine_kexec_32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/kernel/machine_kexec_32.c b/arch/powerpc/kernel/machine_kexec_32.c index

[RFC PATCH 7/7] powerpc: Book3S 64-bit "heavyweight" KASAN support

2019-05-22 Thread Daniel Axtens
KASAN support on powerpc64 is interesting: - We want to be able to support inline instrumentation so as to be able to catch global and stack issues. - We run a lot of code at boot in real mode. This includes stuff like printk(), so it's not feasible to just disable instrumentation

[RFC PATCH 6/7] kasan: allow arches to hook into global registration

2019-05-22 Thread Daniel Axtens
Not all arches have a specific space carved out for modules - some, such as powerpc, just use regular vmalloc space. Therefore, globals in these modules cannot be backed by real shadow memory. In order to allow arches to perform this check, add a hook. Signed-off-by: Daniel Axtens ---

[RFC PATCH 5/7] kasan: allow arches to provide their own early shadow setup

2019-05-22 Thread Daniel Axtens
powerpc supports several different MMUs. In particular, book3s machines support both a hash-table based MMU and a radix MMU. These MMUs support different numbers of entries per directory level: PTES_PER_* reference variables. This leads to complier errors as global variables must have constant

[RFC PATCH 4/7] powerpc: KASAN for 64bit Book3E

2019-05-22 Thread Daniel Axtens
Wire up KASAN. Only outline instrumentation is supported. The KASAN shadow area is mapped into vmemmap space: 0x8000 0400 to 0x8000 0600 . To do this we require that vmemmap be disabled. (This is the default in the kernel config that QorIQ provides for the machine in their SDK

[RFC PATCH 3/7] kasan: allow architectures to provide an outline readiness check

2019-05-22 Thread Daniel Axtens
In powerpc (as I understand it), we spend a lot of time in boot running in real mode before MMU paging is initialised. During this time we call a lot of generic code, including printk(). If we try to access the shadow region during this time, things fail. My attempts to move early init before the

[RFC PATCH 2/7] kasan: allow architectures to manage the memory-to-shadow mapping

2019-05-22 Thread Daniel Axtens
Currently, shadow addresses are always addr >> shift + offset. However, for powerpc, the virtual address space is fragmented in ways that make this simple scheme impractical. Allow architectures to override: - kasan_shadow_to_mem - kasan_mem_to_shadow - addr_has_shadow Rename addr_has_shadow

[RFC PATCH 1/7] kasan: do not open-code addr_has_shadow

2019-05-22 Thread Daniel Axtens
We have a couple of places checking for the existence of a shadow mapping for an address by open-coding the inverse of the check in addr_has_shadow. Replace the open-coded versions with the helper. This will be needed in future to allow architectures to override the layout of the shadow mapping.

[RFC PATCH 0/7] powerpc: KASAN for 64-bit 3s radix

2019-05-22 Thread Daniel Axtens
Building on the work of Christophe, Aneesh and Balbir, I've ported KASAN to Book3S radix. It builds on top Christophe's work on 32bit, and includes my work for 64-bit Book3E (3S doesn't really depend on 3E, but it was handy to have around when developing and debugging). This provides full inline

Re: [PATCH 11/12] powerpc/pseries/svm: Force SWIOTLB for secure guests

2019-05-22 Thread Thiago Jung Bauermann
Hello Christoph, Thanks for reviewing the patch! Christoph Hellwig writes: >> diff --git a/arch/powerpc/include/asm/mem_encrypt.h >> b/arch/powerpc/include/asm/mem_encrypt.h >> new file mode 100644 >> index ..45d5e4d0e6e0 >> --- /dev/null >> +++

Re: [PATCH] powerpc: Fix loading of kernel + initramfs with kexec_file_load()

2019-05-22 Thread Thiago Jung Bauermann
Dave Young writes: > On 05/22/19 at 07:01pm, Thiago Jung Bauermann wrote: >> Commit b6664ba42f14 ("s390, kexec_file: drop arch_kexec_mem_walk()") >> changed kexec_add_buffer() to skip searching for a memory location if >> kexec_buf.mem is already set, and use the address that is there. >> >>

Re: [PATCH] powerpc: Fix loading of kernel + initramfs with kexec_file_load()

2019-05-22 Thread Dave Young
On 05/22/19 at 07:01pm, Thiago Jung Bauermann wrote: > Commit b6664ba42f14 ("s390, kexec_file: drop arch_kexec_mem_walk()") > changed kexec_add_buffer() to skip searching for a memory location if > kexec_buf.mem is already set, and use the address that is there. > > In powerpc code we reuse a

[PATCH] powerpc/powernv: fix variable "c" set but not used

2019-05-22 Thread Qian Cai
The commit 58629c0dc349 ("powerpc/powernv/npu: Fault user page into the hypervisor's pagetable") introduced a variable "c" to be used in __get_user() and __get_user_nocheck() which need to stay as macros for performance reasons, and "c" is not actually used in pnv_npu2_handle_fault(),

[PATCH] powerpc: pseries/hvconsole: fix stack overread

2019-05-22 Thread Daniel Axtens
While developing kasan for 64-bit book3s, I hit the following stack over-read. It occurs because the hypercall to put characters onto the terminal takes 2 longs (128 bits/16 bytes) of characters at a time, and so hvc_put_chars would unconditionally copy 16 bytes from the argument buffer,

[PATCH] powerpc: Fix loading of kernel + initramfs with kexec_file_load()

2019-05-22 Thread Thiago Jung Bauermann
Commit b6664ba42f14 ("s390, kexec_file: drop arch_kexec_mem_walk()") changed kexec_add_buffer() to skip searching for a memory location if kexec_buf.mem is already set, and use the address that is there. In powerpc code we reuse a kexec_buf variable for loading both the kernel and the initramfs

Re: [PATCH] misc: remove redundant 'default n' from Kconfig-s

2019-05-22 Thread Arnd Bergmann
On Mon, May 20, 2019 at 4:10 PM Bartlomiej Zolnierkiewicz wrote: > > 'default n' is the default value for any bool or tristate Kconfig > setting so there is no need to write it explicitly. > > Also since commit f467c5640c29 ("kconfig: only write '# CONFIG_FOO > is not set' for visible symbols")

Re: [BISECTED] kexec regression on PowerBook G4

2019-05-22 Thread LEROY Christophe
Aaro Koskinen a écrit : Hi, On Wed, May 22, 2019 at 07:44:56AM +, Christophe Leroy wrote: On 05/22/2019 06:14 AM, Christophe Leroy wrote: >Le 22/05/2019 à 00:18, Aaro Koskinen a écrit : >>I was trying to upgrade from v5.0 -> v5.1 on PowerBook G4, but when >>trying >>to kexec a kernel the

[Bug 203125] Kernel 5.1-rc1 fails to boot on a PowerMac G4 3,6: Caused by (from SRR1=141020): Transfer error ack signal

2019-05-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=203125 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Status|NEW |RESOLVED

Re: [BISECTED] kexec regression on PowerBook G4

2019-05-22 Thread Aaro Koskinen
Hi, On Wed, May 22, 2019 at 07:44:56AM +, Christophe Leroy wrote: > On 05/22/2019 06:14 AM, Christophe Leroy wrote: > >Le 22/05/2019 à 00:18, Aaro Koskinen a écrit : > >>I was trying to upgrade from v5.0 -> v5.1 on PowerBook G4, but when > >>trying > >>to kexec a kernel the system gets stuck

Re: [BISECTED] kexec regression on PowerBook G4

2019-05-22 Thread Aaro Koskinen
Hi, On Wed, May 22, 2019 at 08:14:23AM +0200, Christophe Leroy wrote: > Le 22/05/2019 à 00:18, Aaro Koskinen a écrit : > >I was trying to upgrade from v5.0 -> v5.1 on PowerBook G4, but when trying > >to kexec a kernel the system gets stuck (no errors seen on the console). > > Do you mean you are

[PATCH AUTOSEL 4.4 13/92] ASoC: fsl_sai: Update is_slave_mode with correct value

2019-05-22 Thread Sasha Levin
From: Daniel Baluta [ Upstream commit ddb351145a967ee791a0fb0156852ec2fcb746ba ] is_slave_mode defaults to false because sai structure that contains it is kzalloc'ed. Anyhow, if we decide to set the following configuration SAI slave -> SAI master, is_slave_mode will remain set on true although

[PATCH AUTOSEL 4.4 04/92] powerpc/boot: Fix missing check of lseek() return value

2019-05-22 Thread Sasha Levin
From: Bo YU [ Upstream commit 5d085ec04a000fefb5182d3b03ee46ca96d8389b ] This is detected by Coverity scan: CID: 1440481 Signed-off-by: Bo YU Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/boot/addnote.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH AUTOSEL 4.9 022/114] ASoC: fsl_sai: Update is_slave_mode with correct value

2019-05-22 Thread Sasha Levin
From: Daniel Baluta [ Upstream commit ddb351145a967ee791a0fb0156852ec2fcb746ba ] is_slave_mode defaults to false because sai structure that contains it is kzalloc'ed. Anyhow, if we decide to set the following configuration SAI slave -> SAI master, is_slave_mode will remain set on true although

[PATCH AUTOSEL 4.9 008/114] powerpc/boot: Fix missing check of lseek() return value

2019-05-22 Thread Sasha Levin
From: Bo YU [ Upstream commit 5d085ec04a000fefb5182d3b03ee46ca96d8389b ] This is detected by Coverity scan: CID: 1440481 Signed-off-by: Bo YU Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/boot/addnote.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH AUTOSEL 4.14 037/167] ASoC: fsl_sai: Update is_slave_mode with correct value

2019-05-22 Thread Sasha Levin
From: Daniel Baluta [ Upstream commit ddb351145a967ee791a0fb0156852ec2fcb746ba ] is_slave_mode defaults to false because sai structure that contains it is kzalloc'ed. Anyhow, if we decide to set the following configuration SAI slave -> SAI master, is_slave_mode will remain set on true although

[PATCH AUTOSEL 4.14 015/167] powerpc/boot: Fix missing check of lseek() return value

2019-05-22 Thread Sasha Levin
From: Bo YU [ Upstream commit 5d085ec04a000fefb5182d3b03ee46ca96d8389b ] This is detected by Coverity scan: CID: 1440481 Signed-off-by: Bo YU Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/boot/addnote.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH AUTOSEL 4.14 014/167] powerpc/perf: Return accordingly on invalid chip-id in

2019-05-22 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit a913e5e8b43be1d3897a141ce61c1ec071cad89c ] Nest hardware counter memory resides in a per-chip reserve-memory. During nest_imc_event_init(), chip-id of the event-cpu is considered to calculate the base memory addresss for that cpu. Return, proper error

[PATCH AUTOSEL 4.19 057/244] ASoC: fsl_sai: Update is_slave_mode with correct value

2019-05-22 Thread Sasha Levin
From: Daniel Baluta [ Upstream commit ddb351145a967ee791a0fb0156852ec2fcb746ba ] is_slave_mode defaults to false because sai structure that contains it is kzalloc'ed. Anyhow, if we decide to set the following configuration SAI slave -> SAI master, is_slave_mode will remain set on true although

[PATCH AUTOSEL 4.19 033/244] powerpc/watchdog: Use hrtimers for per-CPU heartbeat

2019-05-22 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 7ae3f6e130e8dc6188b59e3b4ebc2f16e9c8d053 ] Using a jiffies timer creates a dependency on the tick_do_timer_cpu incrementing jiffies. If that CPU has locked up and jiffies is not incrementing, the watchdog heartbeat timer for all CPUs stops and creates

[PATCH AUTOSEL 4.19 024/244] powerpc/perf: Fix loop exit condition in nest_imc_event_init

2019-05-22 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit 860b7d2286236170a36f94946d03ca9888d32571 ] The data structure (i.e struct imc_mem_info) to hold the memory address information for nest imc units is allocated based on the number of nodes in the system. nest_imc_event_init() traverse this struct array to

[PATCH AUTOSEL 4.19 023/244] powerpc/boot: Fix missing check of lseek() return value

2019-05-22 Thread Sasha Levin
From: Bo YU [ Upstream commit 5d085ec04a000fefb5182d3b03ee46ca96d8389b ] This is detected by Coverity scan: CID: 1440481 Signed-off-by: Bo YU Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/boot/addnote.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH AUTOSEL 4.19 022/244] powerpc/perf: Return accordingly on invalid chip-id in

2019-05-22 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit a913e5e8b43be1d3897a141ce61c1ec071cad89c ] Nest hardware counter memory resides in a per-chip reserve-memory. During nest_imc_event_init(), chip-id of the event-cpu is considered to calculate the base memory addresss for that cpu. Return, proper error

[PATCH AUTOSEL 5.0 072/317] ASoC: fsl_sai: Update is_slave_mode with correct value

2019-05-22 Thread Sasha Levin
From: Daniel Baluta [ Upstream commit ddb351145a967ee791a0fb0156852ec2fcb746ba ] is_slave_mode defaults to false because sai structure that contains it is kzalloc'ed. Anyhow, if we decide to set the following configuration SAI slave -> SAI master, is_slave_mode will remain set on true although

[PATCH AUTOSEL 5.0 042/317] powerpc/watchdog: Use hrtimers for per-CPU heartbeat

2019-05-22 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 7ae3f6e130e8dc6188b59e3b4ebc2f16e9c8d053 ] Using a jiffies timer creates a dependency on the tick_do_timer_cpu incrementing jiffies. If that CPU has locked up and jiffies is not incrementing, the watchdog heartbeat timer for all CPUs stops and creates

[PATCH AUTOSEL 5.0 031/317] powerpc/perf: Fix loop exit condition in nest_imc_event_init

2019-05-22 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit 860b7d2286236170a36f94946d03ca9888d32571 ] The data structure (i.e struct imc_mem_info) to hold the memory address information for nest imc units is allocated based on the number of nodes in the system. nest_imc_event_init() traverse this struct array to

[PATCH AUTOSEL 5.0 030/317] powerpc/boot: Fix missing check of lseek() return value

2019-05-22 Thread Sasha Levin
From: Bo YU [ Upstream commit 5d085ec04a000fefb5182d3b03ee46ca96d8389b ] This is detected by Coverity scan: CID: 1440481 Signed-off-by: Bo YU Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/boot/addnote.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH AUTOSEL 5.0 029/317] powerpc/perf: Return accordingly on invalid chip-id in

2019-05-22 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit a913e5e8b43be1d3897a141ce61c1ec071cad89c ] Nest hardware counter memory resides in a per-chip reserve-memory. During nest_imc_event_init(), chip-id of the event-cpu is considered to calculate the base memory addresss for that cpu. Return, proper error

[PATCH AUTOSEL 5.1 049/375] powerpc/watchdog: Use hrtimers for per-CPU heartbeat

2019-05-22 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 7ae3f6e130e8dc6188b59e3b4ebc2f16e9c8d053 ] Using a jiffies timer creates a dependency on the tick_do_timer_cpu incrementing jiffies. If that CPU has locked up and jiffies is not incrementing, the watchdog heartbeat timer for all CPUs stops and creates

[PATCH AUTOSEL 5.1 036/375] powerpc/perf: Fix loop exit condition in nest_imc_event_init

2019-05-22 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit 860b7d2286236170a36f94946d03ca9888d32571 ] The data structure (i.e struct imc_mem_info) to hold the memory address information for nest imc units is allocated based on the number of nodes in the system. nest_imc_event_init() traverse this struct array to

[PATCH AUTOSEL 5.1 035/375] powerpc/boot: Fix missing check of lseek() return value

2019-05-22 Thread Sasha Levin
From: Bo YU [ Upstream commit 5d085ec04a000fefb5182d3b03ee46ca96d8389b ] This is detected by Coverity scan: CID: 1440481 Signed-off-by: Bo YU Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/boot/addnote.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH AUTOSEL 5.1 034/375] powerpc/perf: Return accordingly on invalid chip-id in

2019-05-22 Thread Sasha Levin
From: Anju T Sudhakar [ Upstream commit a913e5e8b43be1d3897a141ce61c1ec071cad89c ] Nest hardware counter memory resides in a per-chip reserve-memory. During nest_imc_event_init(), chip-id of the event-cpu is considered to calculate the base memory addresss for that cpu. Return, proper error

Re: [PATCH v1 1/2] open: add close_range()

2019-05-22 Thread Oleg Nesterov
On 05/22, Christian Brauner wrote: > > +static struct file *pick_file(struct files_struct *files, unsigned fd) > { > - struct file *file; > + struct file *file = NULL; > struct fdtable *fdt; > > spin_lock(>file_lock); > @@ -632,15 +629,65 @@ int __close_fd(struct

[PATCH] powerpc/powernv: fix a W=1 compilation warning

2019-05-22 Thread Qian Cai
The commit b575c731fe58 ("powerpc/powernv/npu: Add set/unset window helpers") called pnv_npu_set_window() in a void function pnv_npu_dma_set_32(), but the return code from pnv_npu_set_window() has no use there as all the error logging happen in pnv_npu_set_window(), so just remove the unused

[PATCH v1 2/2] tests: add close_range() tests

2019-05-22 Thread Christian Brauner
This adds basic tests for the new close_range() syscall. - test that no invalid flags can be passed - test that a range of file descriptors is correctly closed - test that a range of file descriptors is correctly closed if there there are already closed file descriptors in the range - test that

[PATCH v1 1/2] open: add close_range()

2019-05-22 Thread Christian Brauner
This adds the close_range() syscall. It allows to efficiently close a range of file descriptors up to all file descriptors of a calling task. The syscall came up in a recent discussion around the new mount API and making new file descriptor types cloexec by default. During this discussion, Al

Re: [PATCH v3 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-22 Thread Vincenzo Frascino
Hi Christophe, thank you for your review. On 22/05/2019 12:50, Christophe Leroy wrote: > > > Le 22/05/2019 à 13:07, Vincenzo Frascino a écrit : >> The current version of the multiarch vDSO selftest verifies only >> gettimeofday. >> >> Extend the vDSO selftest to clock_getres, to verify that

Re: [PATCH v3 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-22 Thread Vincenzo Frascino
Hi Christophe, thank you for your review. On 22/05/2019 12:50, Christophe Leroy wrote: > > > Le 22/05/2019 à 13:07, Vincenzo Frascino a écrit : >> The current version of the multiarch vDSO selftest verifies only >> gettimeofday. >> >> Extend the vDSO selftest to clock_getres, to verify that

Re: [RFC PATCH] mm/nvdimm: Fix kernel crash on devm_mremap_pages_release

2019-05-22 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > On 5/14/19 9:45 AM, Dan Williams wrote: >> [ add Keith who was looking at something similar ] >> ... >> >> If it's reserved then we should not be accessing, even if the above >> works in practice. Isn't the fix something more like this to fix up >> the assumptions

Re: Failure to boot G4: dt_headr_start=0x01501000

2019-05-22 Thread Christophe Leroy
Le 22/05/2019 à 14:15, Mathieu Malaterre a écrit : Hi all, I have not boot my G4 in a while, today using master here is what I see: done Setting btext ! W=640 H=488 LB=768 addr=0x9c008000 copying OF device tree... starting device tree allocs at 01401000 otloc_up(0010, 0013d948)

[PATCH] tty: serial: cpm_uart - fix init when SMC is relocated

2019-05-22 Thread Christophe Leroy
SMC relocation can also be activated earlier by the bootloader, so the driver's behaviour cannot rely on selected kernel config. When the SMC is relocated, CPM_CR_INIT_TRX cannot be used. But the only thing CPM_CR_INIT_TRX does is to clear the rstate and tstate registers, so this can be done

Failure to boot G4: dt_headr_start=0x01501000

2019-05-22 Thread Mathieu Malaterre
Hi all, I have not boot my G4 in a while, today using master here is what I see: done Setting btext ! W=640 H=488 LB=768 addr=0x9c008000 copying OF device tree... starting device tree allocs at 01401000 otloc_up(0010, 0013d948) trying: 0x01401000 trying: 0x01501000 -› 01501000

Re: [PATCH v3 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-22 Thread Christophe Leroy
Le 22/05/2019 à 13:07, Vincenzo Frascino a écrit : The current version of the multiarch vDSO selftest verifies only gettimeofday. Extend the vDSO selftest to clock_getres, to verify that the syscall and the vDSO library function return the same information. The extension has been used to

[PATCH v3 2/3] s390: Fix vDSO clock_getres()

2019-05-22 Thread Vincenzo Frascino
clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high resolution timers that can happen either at compile

[PATCH v3 3/3] kselftest: Extend vDSO selftest to clock_getres

2019-05-22 Thread Vincenzo Frascino
The current version of the multiarch vDSO selftest verifies only gettimeofday. Extend the vDSO selftest to clock_getres, to verify that the syscall and the vDSO library function return the same information. The extension has been used to verify the hrtimer_resoltion fix. Cc: Shuah Khan

[PATCH v3 1/3] powerpc: Fix vDSO clock_getres()

2019-05-22 Thread Vincenzo Frascino
clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high resolution timers that can happen either at compile

[PATCH v3 0/3] Fix vDSO clock_getres()

2019-05-22 Thread Vincenzo Frascino
clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high resolution timers that can happen either at compile

[PATCH] spi: spi-fsl-spi: call spi_finalize_current_message() at the end

2019-05-22 Thread Christophe Leroy
spi_finalize_current_message() shall be called once all actions are finished, otherwise the last actions might step over a newly started transfer. Fixes: c592becbe704 ("spi: fsl-(e)spi: migrate to generic master queueing") Signed-off-by: Christophe Leroy --- drivers/spi/spi-fsl-spi.c | 2 +- 1

Re: [RFC PATCH V2 3/3] mm/nvdimm: Use correct #defines instead of opencoding

2019-05-22 Thread Satheesh Rajendran
On Wed, May 22, 2019 at 01:57:01PM +0530, Aneesh Kumar K.V wrote: > The nfpn related change is needed to fix the kernel message > > "number of pfns truncated from 2617344 to 163584" > > The change makes sure the nfpns stored in the superblock is right value. > > Signed-off-by: Aneesh Kumar K.V

[RFC PATCH V2 1/3] mm/nvdimm: Add PFN_MIN_VERSION support

2019-05-22 Thread Aneesh Kumar K.V
This allows us to make changes in a backward incompatible way. I have kept the PFN_MIN_VERSION in this patch '0' because we are not introducing any incompatible changes in this patch. We also may want to backport this to older kernels. The error looks like dax0.1: init failed, superblock min

[RFC PATCH V2 3/3] mm/nvdimm: Use correct #defines instead of opencoding

2019-05-22 Thread Aneesh Kumar K.V
The nfpn related change is needed to fix the kernel message "number of pfns truncated from 2617344 to 163584" The change makes sure the nfpns stored in the superblock is right value. Signed-off-by: Aneesh Kumar K.V --- drivers/nvdimm/label.c | 2 +- drivers/nvdimm/pfn_devs.c| 6

[RFC PATCH V2 2/3] mm/nvdimm: Add page size and struct page size to pfn superblock

2019-05-22 Thread Aneesh Kumar K.V
This is needed so that we don't wrongly initialize a namespace which doesn't have enough space reserved for holding struct pages with the current kernel. We also increment PFN_MIN_VERSION to make sure that older kernel won't initialize namespace created with newer kernel. Signed-off-by: Aneesh

Re: [PATCH 1/2] open: add close_range()

2019-05-22 Thread Christian Brauner
On Tue, May 21, 2019 at 10:23 PM Linus Torvalds wrote: > > On Tue, May 21, 2019 at 9:41 AM Christian Brauner > wrote: > > > > Yeah, you mentioned this before. I do like being able to specify an > > upper bound to have the ability to place fds strategically after said > > upper bound. > > I

Re: [BISECTED] kexec regression on PowerBook G4

2019-05-22 Thread Christophe Leroy
Hi Again, On 05/22/2019 06:14 AM, Christophe Leroy wrote: Hi Aero, Le 22/05/2019 à 00:18, Aaro Koskinen a écrit : Hi, I was trying to upgrade from v5.0 -> v5.1 on PowerBook G4, but when trying to kexec a kernel the system gets stuck (no errors seen on the console). Do you mean you are

Re: [PATCH] powerpc/powernv: Return for invalid IMC domain

2019-05-22 Thread Anju T Sudhakar
Hi, On 5/21/19 5:18 PM, Michael Ellerman wrote: Anju T Sudhakar writes: Currently init_imc_pmu() can be failed either because an IMC unit with invalid domain(i.e an IMC node not supported by the kernel) is attempted a pmu-registration or something went wrong while registering a valid IMC

Re: [RFC PATCH 1/3] mm/nvdimm: Add PFN_MIN_VERSION support

2019-05-22 Thread Aneesh Kumar K.V
On 5/22/19 11:50 AM, Aneesh Kumar K.V wrote: This allows us to make changes in a backward incompatible way. I have kept the PFN_MIN_VERSION in this patch '0' because we are not introducing any incompatible changes in this patch. We also may want to backport this to older kernels. Signed-off-by:

[RFC PATCH 3/3] mm/nvdimm: Use correct #defines instead of opencoding

2019-05-22 Thread Aneesh Kumar K.V
The nfpn related change is needed to fix the kernel message "number of pfns truncated from 2617344 to 163584" The change makes sure the nfpns stored in the superblock is right value. Signed-off-by: Aneesh Kumar K.V --- drivers/nvdimm/label.c | 2 +- drivers/nvdimm/pfn_devs.c| 6

[RFC PATCH 2/3] mm/nvdimm: Add page size and struct page size to pfn superblock

2019-05-22 Thread Aneesh Kumar K.V
This is needed so that we don't wrongly initialize a namespace which doesn't have enough space reserved for holding struct pages with the current kernel. We also increment PFN_MIN_VERSION to make sure that older kernel won't initialize namespace created with newer kernel. Signed-off-by: Aneesh

[RFC PATCH 1/3] mm/nvdimm: Add PFN_MIN_VERSION support

2019-05-22 Thread Aneesh Kumar K.V
This allows us to make changes in a backward incompatible way. I have kept the PFN_MIN_VERSION in this patch '0' because we are not introducing any incompatible changes in this patch. We also may want to backport this to older kernels. Signed-off-by: Aneesh Kumar K.V --- drivers/nvdimm/pfn.h

Re: [BISECTED] kexec regression on PowerBook G4

2019-05-22 Thread Christophe Leroy
Hi Aero, Le 22/05/2019 à 00:18, Aaro Koskinen a écrit : Hi, I was trying to upgrade from v5.0 -> v5.1 on PowerBook G4, but when trying to kexec a kernel the system gets stuck (no errors seen on the console). Do you mean you are trying to kexec a v5.1 kernel from a v5.0 kernel, or do you