[Bug 203699] New: Kernel 5.2-rc1 fails to boot on a Mac Mini G4: dt_headr_start=0x01501000

2019-05-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=203699 Bug ID: 203699 Summary: Kernel 5.2-rc1 fails to boot on a Mac Mini G4: dt_headr_start=0x01501000 Product: Platform Specific/Hardware Version: 2.5 Kernel Version: Kernel 5.2

Re: Failure to boot G4: dt_headr_start=0x01501000

2019-05-24 Thread Mathieu Malaterre
On Thu, May 23, 2019 at 8:12 PM Christophe Leroy wrote: > > > > On 05/23/2019 10:16 AM, Mathieu Malaterre wrote: > > On Thu, May 23, 2019 at 11:45 AM Christophe Leroy > > wrote: > >> > >> > >> > >> Le 23/05/2019 à 10:53, Mathieu Malaterre a écrit : > >>> > >>> I confirm powerpc/merge does not boo

Re: [BISECTED] kexec regression on PowerBook G4

2019-05-24 Thread Aaro Koskinen
Hi, On Fri, May 24, 2019 at 08:08:36AM +0200, Christophe Leroy wrote: > >Le 24/05/2019 à 00:23, Aaro Koskinen a écrit : > >>Unfortunately still no luck... The crash is pretty much the same with > >>both > >>changes. > > > >Right. In fact change_page_attr() does nothing because this part of RAM is

[Bug 203699] Kernel 5.2-rc1 fails to boot on a Mac Mini G4: dt_headr_start=0x01501000

2019-05-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=203699 --- Comment #1 from Mathieu Malaterre (mathieu.malate...@gmail.com) --- Created attachment 282929 --> https://bugzilla.kernel.org/attachment.cgi?id=282929&action=edit Fix symptoms -- You are receiving this mail because: You are watching the as

Re: [BISECTED] kexec regression on PowerBook G4

2019-05-24 Thread Christophe Leroy
Le 24/05/2019 à 09:36, Aaro Koskinen a écrit : Hi, On Fri, May 24, 2019 at 08:08:36AM +0200, Christophe Leroy wrote: Le 24/05/2019 à 00:23, Aaro Koskinen a écrit : Unfortunately still no luck... The crash is pretty much the same with both changes. Right. In fact change_page_attr() does no

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

2019-05-24 Thread Arnd Bergmann
On Thu, May 23, 2019 at 6:33 PM Christian Brauner wrote: > On Thu, May 23, 2019 at 07:22:17PM +0300, Konstantin Khlebnikov wrote: > > On 22.05.2019 18:52, Christian Brauner wrote:> This adds the close_range() > > syscall. It allows to efficiently close a range > > > 22 files changed, 100 insert

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

2019-05-24 Thread Christian Brauner
On Fri, May 24, 2019 at 09:43:53AM +0200, Arnd Bergmann wrote: > On Thu, May 23, 2019 at 6:33 PM Christian Brauner > wrote: > > On Thu, May 23, 2019 at 07:22:17PM +0300, Konstantin Khlebnikov wrote: > > > On 22.05.2019 18:52, Christian Brauner wrote:> This adds the > > > close_range() syscall. I

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

2019-05-24 Thread Christian Brauner
On Thu, May 23, 2019 at 07:22:17PM +0300, Konstantin Khlebnikov wrote: > On 22.05.2019 18:52, Christian Brauner wrote:> 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

[PATCH v2] powerpc/power: Expose pfn_is_nosave prototype

2019-05-24 Thread Mathieu Malaterre
The declaration for pfn_is_nosave is only available in kernel/power/power.h. Since this function can be override in arch, expose it globally. Having a prototype will make sure to avoid warning (sometime treated as error with W=1) such as: arch/powerpc/kernel/suspend.c:18:5: error: no previous pr

[PATCH 1/2] tools/perf: Add arch neutral function to choose event for perf kvm record

2019-05-24 Thread Anju T Sudhakar
'perf kvm record' uses 'cycles'(if the user did not specify any event) as the default event to profile the guest. This will not provide any proper samples from the guest incase of powerpc architecture, since in powerpc the PMUs are controlled by the guest rather than the host. Patch adds a functio

[PATCH 2/2] tools/perf: Set 'trace_cycles' as defaultevent for perf kvm record in powerpc

2019-05-24 Thread Anju T Sudhakar
Use 'trace_imc/trace_cycles' as the default event for 'perf kvm record' in powerpc. Signed-off-by: Anju T Sudhakar --- tools/perf/arch/powerpc/util/kvm-stat.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tools/perf/arch/powerpc/util/kvm-stat.c b/tools/per

Re: [PATCH v3 1/2] pid: add pidfd_open()

2019-05-24 Thread Christian Brauner
On Tue, May 21, 2019 at 04:32:20PM +0200, Christian Brauner wrote: > On Mon, May 20, 2019 at 05:56:29PM +0200, Christian Brauner wrote: > > This adds the pidfd_open() syscall. It allows a caller to retrieve pollable > > pidfds for a process which did not get created via CLONE_PIDFD, i.e. for a > >

[PATCH v3 2/3] arch: wire-up close_range()

2019-05-24 Thread Christian Brauner
This wires up the close_range() syscall into all arches at once. Suggested-by: Arnd Bergmann Signed-off-by: Christian Brauner Reviewed-by: Oleg Nesterov Acked-by: Arnd Bergmann Cc: Jann Horn Cc: David Howells Cc: Dmitry V. Levin Cc: Linus Torvalds Cc: Al Viro Cc: Florian Weimer Cc: linux

[RFC PATCH v2] powerpc/xmon: restrict when kernel is locked down

2019-05-24 Thread Christopher M. Riedl
Xmon should be either fully or partially disabled depending on the kernel lockdown state. Put xmon into read-only mode for lockdown=integrity and completely disable xmon when lockdown=confidentiality. Xmon checks the lockdown state and takes appropriate action: (1) during xmon_setup to prevent e

Re: [BISECTED] kexec regression on PowerBook G4

2019-05-24 Thread Aaro Koskinen
Hi, On Fri, May 24, 2019 at 09:40:30AM +0200, Christophe Leroy wrote: > Le 24/05/2019 à 09:36, Aaro Koskinen a écrit : > >On Fri, May 24, 2019 at 08:08:36AM +0200, Christophe Leroy wrote: > >>>Le 24/05/2019 à 00:23, Aaro Koskinen a écrit : > Unfortunately still no luck... The crash is pretty m

Re: [BISECTED] kexec regression on PowerBook G4

2019-05-24 Thread Christophe Leroy
Le 24/05/2019 à 15:29, Aaro Koskinen a écrit : Hi, On Fri, May 24, 2019 at 09:40:30AM +0200, Christophe Leroy wrote: Le 24/05/2019 à 09:36, Aaro Koskinen a écrit : On Fri, May 24, 2019 at 08:08:36AM +0200, Christophe Leroy wrote: Le 24/05/2019 à 00:23, Aaro Koskinen a écrit : Unfortunatel

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

2019-05-24 Thread Christophe Leroy
Le 24/05/2019 à 08:05, Christophe Leroy a écrit : Fixes: 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX") Signed-off-by: Christophe Leroy Reported-by: Aaro Koskinen --- arch/powerpc/kernel/machine_kexec_32.c | 8 arch/powerpc/mm/book3s32/mmu.c | 7 +

[PATCH v2] mm: add account_locked_vm utility function

2019-05-24 Thread Daniel Jordan
locked_vm accounting is done roughly the same way in five places, so unify them in a helper. Standardize the debug prints, which vary slightly, but include the helper's caller to disambiguate between callsites. Error codes stay the same, so user-visible behavior does too. The one exception is th

[PATCH RFC 1/5] powerpc: Use regular rcu_dereference_raw API

2019-05-24 Thread Joel Fernandes (Google)
rcu_dereference_raw already does not do any tracing. There is no need to use the _notrace variant of it and this series removes that API, so let us use the regular variant here. Signed-off-by: Joel Fernandes (Google) --- arch/powerpc/include/asm/kvm_book3s_64.h | 2 +- 1 file changed, 1 insertio

[PATCH RFC 0/5] Remove some notrace RCU APIs

2019-05-24 Thread Joel Fernandes (Google)
The series removes users of the following APIs, and the APIs themselves, since the regular non - _notrace variants don't do any tracing anyway. * hlist_for_each_entry_rcu_notrace * rcu_dereference_raw_notrace Joel Fernandes (Google) (5): powerpc: Use regular rcu_dereference_raw API trace: Use re

[PATCH RFC 2/5] trace: Use regular rcu_dereference_raw API

2019-05-24 Thread Joel Fernandes (Google)
rcu_dereference_raw already does not do any tracing. There is no need to use the _notrace variant of it and this series removes that API, so let us use the regular variant here. While at it, also replace the only user of hlist_for_each_entry_rcu_notrace (which indirectly uses the rcu_dereference_r

[PATCH RFC 3/5] hashtable: Use the regular hlist_for_each_entry_rcu API

2019-05-24 Thread Joel Fernandes (Google)
hlist_for_each_entry_rcu already does not do any tracing. This series removes the notrace variant of it, so let us just use the regular API. In a future patch, we can also remove the hash_for_each_possible_rcu_notrace API that this patch touches. Signed-off-by: Joel Fernandes (Google) --- inclu

[PATCH RFC 4/5] rculist: Remove hlist_for_each_entry_rcu_notrace since no users

2019-05-24 Thread Joel Fernandes (Google)
The series removes all users of the API and with this patch, the API itself. Signed-off-by: Joel Fernandes (Google) --- .clang-format | 1 - include/linux/rculist.h | 20 2 files changed, 21 deletions(-) diff --git a/.clang-format b/.clang-format index 2ffd69afc1

[PATCH RFC 5/5] rcu: Remove rcu_dereference_raw_notrace since no users

2019-05-24 Thread Joel Fernandes (Google)
The series removes all users of the API and with this patch, the API itself. Also fix documentation. Signed-off-by: Joel Fernandes (Google) --- Documentation/RCU/Design/Requirements/Requirements.html | 6 +++--- include/linux/rcupdate.h| 9 - 2 files chang

Re: [PATCH 2/2] powerpc/perf: Fix mmcra corruption by bhrb_filter

2019-05-24 Thread Michael Ellerman
On Sat, 2019-05-11 at 02:42:17 UTC, Ravi Bangoria wrote: > Consider a scenario where user creates two events: > > 1st event: > attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; > attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; > fd = perf_event_open(attr, 0, 1, -1, 0); > > This sets

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

2019-05-24 Thread Michael Ellerman
On Mon, 2019-05-20 at 08:57:53 UTC, Anju T Sudhakar wrote: > 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 unit. > In both

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

2019-05-24 Thread Michael Ellerman
On Wed, 2019-05-22 at 22:01:58 UTC, 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

Re: [PATCH RFC 0/5] Remove some notrace RCU APIs

2019-05-24 Thread Steven Rostedt
On Fri, 24 May 2019 19:49:28 -0400 "Joel Fernandes (Google)" wrote: > The series removes users of the following APIs, and the APIs themselves, since > the regular non - _notrace variants don't do any tracing anyway. > * hlist_for_each_entry_rcu_notrace > * rcu_dereference_raw_notrace > I gues