Re: [PATCH] macintosh: Add module license to ans-lcd

2018-01-29 Thread Daniel Axtens
Hi, That matches the SPDX identifier from the top of the file, so: Reviewed-by: Daniel Axtens Regards, Daniel Larry Finger writes: > In kernel 4.15, the modprobe step on my PowerBook G5 started complaining that > there was no module license for

Re: [PATCH 25/26] KVM: PPC: Book3S PR: Support TAR handling for PR KVM HTM.

2018-01-29 Thread Simon Guo
Hi Paul, On Wed, Jan 24, 2018 at 03:02:58PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:38PM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > Currently guest kernel doesn't handle TAR fac unavailable and it always > > runs with TAR bit

Re: [PATCH 23/26] KVM: PPC: Book3S PR: add emulation for tabort. for privilege guest

2018-01-29 Thread Simon Guo
Hi Paul, On Tue, Jan 23, 2018 at 08:44:16PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:36PM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > Currently privilege guest will be run with TM disabled. > > > > Although the privilege guest

Re: [PATCH 21/26] KVM: PPC: Book3S PR: adds emulation for treclaim.

2018-01-29 Thread Simon Guo
Hi Paul, On Tue, Jan 23, 2018 at 08:23:23PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:34PM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > This patch adds support for "treclaim." emulation when PR KVM guest > > executes treclaim. and

Re: [PATCH 22/26] KVM: PPC: Book3S PR: add emulation for trechkpt in PR KVM.

2018-01-29 Thread Simon Guo
Hi Paul, On Tue, Jan 23, 2018 at 08:36:44PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:35PM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > This patch adds host emulation when guest PR KVM executes "trechkpt.", > > which is a

Re: [PATCH 19/26] KVM: PPC: Book3S PR: always fail transaction in guest privilege state

2018-01-29 Thread Simon Guo
Hi Paul, On Tue, Jan 23, 2018 at 07:30:33PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:32PM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > Currently kernel doesn't use transaction memory. > > And there is an issue for privilege guest

Re: [PATCH 18/26] KVM: PPC: Book3S PR: make mtspr/mfspr emulation behavior based on active TM SPRs

2018-01-29 Thread Simon Guo
Hi Paul, On Tue, Jan 23, 2018 at 07:17:45PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:31PM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > The mfspr/mtspr on TM SPRs(TEXASR/TFIAR/TFHAR) are non-privileged > > instructions and can be

Re: [PATCH 17/26] KVM: PPC: Book3S PR: add math support for PR KVM HTM

2018-01-29 Thread Simon Guo
Hi Paul, On Tue, Jan 23, 2018 at 06:29:27PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:30PM +0800, wei.guo.si...@gmail.com wrote: > > ines: 219 > > > > From: Simon Guo > > > > The math registers will be saved into vcpu->arch.fp/vr and corresponding > >

Re: [PATCH 16/26] KVM: PPC: Book3S PR: add transaction memory save/restore skeleton for PR KVM

2018-01-29 Thread Simon Guo
Hi Paul, On Tue, Jan 23, 2018 at 05:04:09PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:29PM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > The transaction memory checkpoint area save/restore behavior is > > triggered when VCPU qemu

Re: [PATCH 04/26] KVM: PPC: Book3S PR: add C function wrapper for _kvmppc_save/restore_tm()

2018-01-29 Thread Simon Guo
Hi Paul, On Tue, Jan 23, 2018 at 04:49:16PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:17PM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > Currently _kvmppc_save/restore_tm() APIs can only be invoked from > > assembly function. This

Re: [PATCH 02/26] KVM: PPC: Book3S PR: add new parameter (guest MSR) for kvmppc_save_tm()/kvmppc_restore_tm()

2018-01-29 Thread Simon Guo
Hi Paul, On Tue, Jan 23, 2018 at 04:42:09PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:15PM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > HV KVM and PR KVM need different MSR source to indicate whether > > treclaim. or trecheckpoint.

Re: [PATCH 13/26] KVM: PPC: Book3S PR: adds new kvmppc_copyto_vcpu_tm/kvmppc_copyfrom_vcpu_tm API for PR KVM.

2018-01-29 Thread Simon Guo
Hi Paul, On Tue, Jan 23, 2018 at 04:52:19PM +1100, Paul Mackerras wrote: > On Thu, Jan 11, 2018 at 06:11:26PM +0800, wei.guo.si...@gmail.com wrote: > > From: Simon Guo > > > > This patch adds 2 new APIs: kvmppc_copyto_vcpu_tm() and > > kvmppc_copyfrom_vcpu_tm(). These 2

Re: [PATCH 07/11] powerpc/64s: Add support for RFI flush of L1-D cache

2018-01-29 Thread Michael Ellerman
Christian Zigotzky writes: > FYI: > > A-EON AmigaOne X1000 (CPU P.A. Semi PWRficient PA6T-1682M with two PA6T > cores): > > /sys/devices/system/cpu/vulnerabilities/ > > -r--r--r-- 1 root root 4096 Jan 25 09:38 meltdown > -r--r--r-- 1 root root 4096 Jan 25 09:38

[PATCH v2 1/1] KVM: PPC: Book3S: Add MMIO emulation for VMX instructions

2018-01-29 Thread Jose Ricardo Ziviani
This patch provides the MMIO load/store vector indexed X-Form emulation. Instructions implemented: lvx: the quadword in storage addressed by the result of EA & 0x___fff0 is loaded into VRT. stvx: the contents of VRS are stored into the quadword in storage addressed by the result of

[PATCH v2 0/1] Implements MMIO emulation for lvx/stvx instructions

2018-01-29 Thread Jose Ricardo Ziviani
v2: - kvmppc_get_vsr_word_offset() moved back to its original place - EA AND ~0xF, following ISA. - fixed BE/LE cases TESTS: For testing purposes I wrote a small program that performs stvx/lvx using the program's virtual memory and using MMIO. Load/Store into virtual memory is the model I

Re: [PATCH] macintosh: Add module license to ans-lcd

2018-01-29 Thread Larry Finger
On 01/29/2018 04:49 PM, Gabriel Paubert wrote: On Mon, Jan 29, 2018 at 01:33:08PM -0600, Larry Finger wrote: In kernel 4.15, the modprobe step on my PowerBook G5 started complaining that PowerBook G5? Really, could you send a pic! :-) That was a typo. It is a G4 Aluminum. Larry

[PATCH] Mark ams driver as orphaned in MAINTAINERS

2018-01-29 Thread Michael Hanselmann
I no longer have any hardware with the Apple motion sensor and thus relinquish maintainership of the driver. Signed-off-by: Michael Hanselmann --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: macintosh: change some data types from int to bool

2018-01-29 Thread Michael Ellerman
"Gustavo A. R. Silva" writes: > Hi Michael, > > Quoting Michael Ellerman : > >> On Wed, 2018-01-24 at 01:42:28 UTC, "Gustavo A. R. Silva" wrote: >>> Change the data type of the following variables from int to bool >>> across all

Re: [PATCH] macintosh: Add module license to ans-lcd

2018-01-29 Thread Gabriel Paubert
On Mon, Jan 29, 2018 at 01:33:08PM -0600, Larry Finger wrote: > In kernel 4.15, the modprobe step on my PowerBook G5 started complaining that PowerBook G5? Really, could you send a pic! :-) > there was no module license for ans-lcd. > > Signed-off-by: Larry Finger

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

2018-01-29 Thread Dan Williams
On Sun, Jan 28, 2018 at 10:04 PM, Stephen Rothwell wrote: > Hi Dan, > > Today's linux-next merge of the nvdimm tree got a conflict in: > > arch/powerpc/sysdev/axonram.c > > between commit: > > 1d65b1c886be ("powerpc/cell: Remove axonram driver") > > from the powerpc

[PATCH for 4.16 v7 02/11] powerpc: membarrier: Skip memory barrier in switch_mm()

2018-01-29 Thread Mathieu Desnoyers
Allow PowerPC to skip the full memory barrier in switch_mm(), and only issue the barrier when scheduling into a task belonging to a process that has registered to use expedited private. Threads targeting the same VM but which belong to different thread groups is a tricky case. It has a few

[PATCH] soc/fsl/qbman: Check if CPU is offline when initializing portals

2018-01-29 Thread Roy Pledge
If the affine portal for a specific CPU is offline at boot time affine its interrupt to CPU 0. If the CPU is later brought online the hotplug handler will correctly adjust the affinity. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman.c | 17 +

[PATCH] macintosh: Add module license to ans-lcd

2018-01-29 Thread Larry Finger
In kernel 4.15, the modprobe step on my PowerBook G5 started complaining that there was no module license for ans-lcd. Signed-off-by: Larry Finger --- drivers/macintosh/ans-lcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/macintosh/ans-lcd.c

Re: [PATCH RESEND V2 ] powerpc/numa: Invalidate numa_cpu_lookup_table on cpu remove

2018-01-29 Thread Nathan Fontenot
On 01/27/2018 02:58 AM, Michael Ellerman wrote: > Nathan Fontenot writes: > >> When DLPAR removing a CPU, the unmapping of the cpu from a node in >> unmap_cpu_from_node() should also invalidate the CPUs entry in the >> numa_cpu_lookup_table. There is not a guarantee

Re: [PATCH V2] powerpc/kernel: Add 'ibm,thread-groups' property for CPU allocation

2018-01-29 Thread Michael Bringmann
You are correct. I found a problem with multiple cores last week, and I have a new patch in testing. I will resubmit it after more testing. Sorry for the inconvenience. Michael On 01/27/2018 03:52 AM, Michael Ellerman wrote: > Michael Bringmann writes: > >> diff

Re: macintosh: change some data types from int to bool

2018-01-29 Thread Gustavo A. R. Silva
Hi Michael, Quoting Michael Ellerman : On Wed, 2018-01-24 at 01:42:28 UTC, "Gustavo A. R. Silva" wrote: Change the data type of the following variables from int to bool across all macintosh drivers: started slots_started pm121_started wf_smu_started Some

Re: [PATCH 3/3] perf trace powerpc: Use generated syscall table

2018-01-29 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 29, 2018 at 02:04:17PM +0530, Ravi Bangoria escreveu: > +++ b/tools/perf/util/syscalltbl.c > @@ -30,6 +30,10 @@ > #include > const int syscalltbl_native_max_id = SYSCALLTBL_S390_64_MAX_ID; > static const char **syscalltbl_native = syscalltbl_s390_64; > +#elif defined(__powerpc64__)

Re: [PATCH v3 4/5] powerpc/mm: Allow up to 64 low slices

2018-01-29 Thread Christophe LEROY
Le 29/01/2018 à 07:29, Aneesh Kumar K.V a écrit : Christophe Leroy writes: While the implementation of the "slices" address space allows a significant amount of high slices, it limits the number of low slices to 16 due to the use of a single u64 low_slices_psize

[PATCH 3/3] perf trace powerpc: Use generated syscall table

2018-01-29 Thread Ravi Bangoria
This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. It also enables users to specify wildcards, for example, perf trace -e 'open*', just like was already possible on x86 and s390. Signed-off-by: Ravi Bangoria

[PATCH 2/3] perf powerpc: Generate system call table from asm/unistd.h

2018-01-29 Thread Ravi Bangoria
This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. Signed-off-by: Ravi Bangoria --- tools/perf/arch/powerpc/Makefile | 21 +

[PATCH 1/3] tools include powerpc: Grab a copy of arch/powerpc/include/uapi/asm/unistd.h

2018-01-29 Thread Ravi Bangoria
Will be used for generating the syscall id/string translation table. Signed-off-by: Ravi Bangoria --- tools/arch/powerpc/include/uapi/asm/unistd.h | 399 +++ tools/perf/check-headers.sh | 1 + 2 files changed, 400

[PATCH 0/3] perf trace powerpc: Remove libaudit dependency for syscalls

2018-01-29 Thread Ravi Bangoria
This is almost identical set of patches recently done for s390. With this, user can run perf trace without libaudit on powerpc as well. Ex, $ make ... libaudit: [ OFF ] $ ./perf trace ls 0.221 ( 0.005 ms): ls/43330 open(filename: 0xac1e2778, flags: CLOEXEC ) = 3 0.227 (