[PATCH 1/2] powerpc: fix hardware PMU exception bug on PowerVM compatibility mode systems

2020-03-01 Thread Michael Ellerman
From: "Desnes A. Nunes do Rosario" PowerVM systems running compatibility mode on a few Power8 revisions are still vulnerable to the hardware defect that loses PMU exceptions arriving prior to a context switch. The software fix for this issue is enabled through the CPU_FTR_PMAO_BUG cpu_feature bi

[PATCH] powerpc/kuap: PPC_KUAP_DEBUG should depend on PPC_KUAP

2020-03-01 Thread Michael Ellerman
Currently you can enable PPC_KUAP_DEBUG when PPC_KUAP is disabled, even though the former has not effect without the latter. Fix it so that PPC_KUAP_DEBUG can only be enabled when PPC_KUAP is enabled, not when the platform could support KUAP (PPC_HAVE_KUAP). Fixes: 890274c2dc4c ("powerpc/64s: Imp

Re: [PATCH 1/2] powerpc: fix hardware PMU exception bug on PowerVM compatibility mode systems

2020-03-01 Thread Michael Ellerman
Michael Ellerman writes: > From: "Desnes A. Nunes do Rosario" > > PowerVM systems running compatibility mode on a few Power8 revisions are > still vulnerable to the hardware defect that loses PMU exceptions arriving > prior to a context switch. > > The software fix for this issue is enabled throu

Re: [PATCH v3 32/32] powerpc/64s: system call support for scv/rfscv instructions

2020-03-01 Thread kbuild test robot
Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.6-rc3 next-20200228] [cannot apply to kvm-ppc/kvm-ppc-next scottwood/next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the syst

[PATCH net-next 00/23] Clean driver, module and FW versions

2020-03-01 Thread Leon Romanovsky
From: Leon Romanovsky Hi, This is second batch of the series which removes various static versions in favour of globaly defined Linux kernel version. The first part with better cover letter can be found here https://lore.kernel.org/lkml/20200224085311.460338-1-l...@kernel.org The code is based

[PATCH net-next 20/23] net/freescale: Clean drivers from static versions

2020-03-01 Thread Leon Romanovsky
From: Leon Romanovsky There is no need to set static versions because linux kernel is released all together with same version applicable to the whole code base. Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 2 -- drivers/net/ethernet/freescale/enetc/

[PATCH net-next 22/23] net/freescale: Don't set zero if FW not-available in ucc_geth

2020-03-01 Thread Leon Romanovsky
From: Leon Romanovsky Rely on ethtool to properly present the fact that FW is not available for the ucc_geth driver. Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/freescale/ucc_geth_ethtool.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth_e

[PATCH] tty: hvc: Use the correct style for SPDX License Identifier

2020-03-01 Thread Nishad Kamdar
This patch corrects the SPDX License Identifier style in header file related to the HVC driver. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used). Changes made by using a script provided by Joe Perches her

[PATCH] tty: hvc: Use the correct style for SPDX License Identifier

2020-03-01 Thread Nishad Kamdar
This patch corrects the SPDX License Identifier style in header file related to the HVC driver. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used). Changes made by using a script provided by Joe Perches her

[Bug 199471] windfarm_pm72 no longer gets automatically loaded when CONFIG_I2C_POWERMAC=y is set (regression)

2020-03-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199471 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #275503|0 |1 is obsolete|

[Bug 199471] windfarm_pm72 no longer gets automatically loaded when CONFIG_I2C_POWERMAC=y is set (regression)

2020-03-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199471 --- Comment #10 from Erhard F. (erhar...@mailbox.org) --- Created attachment 287743 --> https://bugzilla.kernel.org/attachment.cgi?id=287743&action=edit bisect.log Finally checked on that bug again and bisected it. The offending commit is: # g

[Bug 199471] [Bisected][Regression] windfarm_pm* no longer gets automatically loaded when CONFIG_I2C_POWERMAC=y is set

2020-03-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199471 --- Comment #11 from Erhard F. (erhar...@mailbox.org) --- (In reply to Wolfram Sang from comment #8) > "This has been quite nice since 4.?.x up to 4.16.x as you only need > CONFIG_I2C_POWERMAC=y which selects the proper windfarm_pmXX at boot time.

[Bug 199471] [Bisected][Regression] windfarm_pm* no longer gets automatically loaded when CONFIG_I2C_POWERMAC=y is set

2020-03-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199471 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #275507|0 |1 is obsolete|

[Bug 199471] [Bisected][Regression] windfarm_pm* no longer gets automatically loaded when CONFIG_I2C_POWERMAC=y is set

2020-03-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199471 --- Comment #13 from Erhard F. (erhar...@mailbox.org) --- Created attachment 287747 --> https://bugzilla.kernel.org/attachment.cgi?id=287747&action=edit kernel .config (kernel 4.17, PowerMac G5 11,2) -- You are receiving this mail because: You

[Bug 199471] [Bisected][Regression] windfarm_pm* no longer gets automatically loaded when CONFIG_I2C_POWERMAC=y is set

2020-03-01 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=199471 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Attachment #275509|0 |1 is obsolete|

Re: [GIT PULL] Second batch of KVM changes for Linux 5.6-rc4 (or rc5)

2020-03-01 Thread Linus Torvalds
On Sun, Mar 1, 2020 at 1:03 PM Paolo Bonzini wrote: > > Paolo Bonzini (4): > KVM: allow disabling -Werror Honestly, this is just badly done. You've basically made it enable -Werror only for very random configurations - and apparently the one you test. Doing things like COMPILE_TEST disabl

RE: [PATCH v3 25/27] powerpc/powernv/pmem: Expose the serial number in sysfs

2020-03-01 Thread Alastair D'Silva
On Fri, 2020-02-28 at 08:15 +0100, Greg Kroah-Hartman wrote: > On Fri, Feb 28, 2020 at 05:25:31PM +1100, Andrew Donnellan wrote: > > On 21/2/20 2:27 pm, Alastair D'Silva wrote: > > > +int ocxlpmem_sysfs_add(struct ocxlpmem *ocxlpmem) > > > +{ > > > + int i, rc; > > > + > > > + for (i = 0; i < ARRAY

Re: [Intel-gfx] [PATCH v7 00/12] Introduce CAP_PERFMON to secure system performance monitoring and observability

2020-03-01 Thread Serge Hallyn
Thanks, this looks good to me, in keeping with the CAP_SYSLOG break. Acked-by: Serge E. Hallyn for the set. James/Ingo/Peter, if noone has remaining objections, whose branch should these go in through? thanks, -serge On Tue, Feb 25, 2020 at 12:55:54PM +0300, Alexey Budankov wrote: > > Hi, >

[PATCH] powerpc/64s/radix: Fix !SMP build

2020-03-01 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/book3s64/radix_pgtable.c | 1 + arch/powerpc/mm/book3s64/radix_tlb.c | 7 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/mm/book3s64/radix_pgtable.c b/arch/powerpc/mm/book3s64/radix_pgtable.c index dd1bea4

Re: [PATCH v3 0/6] implement KASLR for powerpc/fsl_booke/64

2020-03-01 Thread Jason Yan
在 2020/3/1 6:54, Scott Wood 写道: On Sat, 2020-02-29 at 15:27 +0800, Jason Yan wrote: 在 2020/2/29 12:28, Scott Wood 写道: On Fri, 2020-02-28 at 14:47 +0800, Jason Yan wrote: 在 2020/2/28 13:53, Scott Wood 写道: I don't see any debug setting for %pK (or %p) to always print the actual address (c

Re: [PATCH net-next 00/23] Clean driver, module and FW versions

2020-03-01 Thread David Miller
From: Leon Romanovsky Date: Sun, 1 Mar 2020 16:44:33 +0200 > This is second batch of the series which removes various static versions > in favour of globaly defined Linux kernel version. This generally looks fine to me but I'll let it sit for a few days so that others can review.

Re: [GIT PULL] Second batch of KVM changes for Linux 5.6-rc4 (or rc5)

2020-03-01 Thread Paolo Bonzini
On 01/03/20 22:33, Linus Torvalds wrote: > On Sun, Mar 1, 2020 at 1:03 PM Paolo Bonzini wrote: >> >> Paolo Bonzini (4): >> KVM: allow disabling -Werror > > Honestly, this is just badly done. > > You've basically made it enable -Werror only for very random > configurations - and apparently

Re: [PATCH] mm/debug: Add tests validating arch page table helpers for core features

2020-03-01 Thread Anshuman Khandual
On 02/27/2020 04:59 PM, Christophe Leroy wrote: > > > Le 27/02/2020 à 11:33, Anshuman Khandual a écrit : >> This adds new tests validating arch page table helpers for these following >> core memory features. These tests create and test specific mapping types at >> various page table levels. >> >>

Re: [PATCH v3 0/6] implement KASLR for powerpc/fsl_booke/64

2020-03-01 Thread Scott Wood
On Mon, 2020-03-02 at 10:17 +0800, Jason Yan wrote: > > 在 2020/3/1 6:54, Scott Wood 写道: > > On Sat, 2020-02-29 at 15:27 +0800, Jason Yan wrote: > > > > > > Turnning to %p may not be a good idea in this situation. So > > > for the REG logs printed when dumping stack, we can disable it when > > > K

Re: [PATCH] powerpc/Kconfig: Make FSL_85XX_CACHE_SRAM configurable

2020-03-01 Thread 王文虎
发件人:Scott Wood 发送日期:2020-03-01 07:12:58 收件人:"王文虎" 抄送人:wangwenhu ,Kumar Gala ,Benjamin Herrenschmidt ,Paul Mackerras ,Michael Ellerman ,linuxppc-dev@lists.ozlabs.org,linux-ker...@vger.kernel.org,triv...@kernel.org,Rai Harninder 主题:Re: Re: [PATCH] powerpc/Kconfig: Make FSL_85XX_CACHE_SRAM conf

[RFC PATCH] powerpc/64s: CONFIG_PPC_HASH_MMU

2020-03-01 Thread Nicholas Piggin
This allows the 64s hash MMU code to be compiled out if radix is selected. This saves about 128kB kernel image size (90kB text) on powernv_defconfig minus KVM, 40kB on a tiny config. Signed-off-by: Nicholas Piggin --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm

[RFC 00/11] perf: Enhancing perf to export processor hazard information

2020-03-01 Thread Ravi Bangoria
Most modern microprocessors employ complex instruction execution pipelines such that many instructions can be 'in flight' at any given point in time. Various factors affect this pipeline and hazards are the primary among them. Different types of hazards exist - Data hazards, Structural hazards and

[RFC 01/11] powerpc/perf: Simplify ISA207_SIER macros

2020-03-01 Thread Ravi Bangoria
Instead of having separate macros for MASK and SHIFT, and using them to derive the bits, let's have simple macro to do the job. Also, remove ISA207_ prefix because some of the SIER bits which are extracted with these macros are not defined in ISA, example DATA_SRC bits. Signed-off-by: Ravi Bangori

[RFC 02/11] perf/core: Data structure to present hazard data

2020-03-01 Thread Ravi Bangoria
From: Madhavan Srinivasan Introduce new perf sample_type PERF_SAMPLE_PIPELINE_HAZ to request kernel to provide cpu pipeline hazard data. Also, introduce arch independent structure 'perf_pipeline_haz_data' to pass hazard data to userspace. This is generic structure and arch specific data needs to

[RFC 04/11] powerpc/perf: Arch support to expose Hazard data

2020-03-01 Thread Ravi Bangoria
From: Madhavan Srinivasan SIER register on PowerPC hw pmu provides cpu pipeline hazard information. Add logic to convert this arch specific data into perf_pipeline_haz_data structure. Signed-off-by: Madhavan Srinivasan Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/perf_event_serve

[RFC 03/11] powerpc/perf: Arch specific definitions for pipeline

2020-03-01 Thread Ravi Bangoria
From: Madhavan Srinivasan Create powerpc specific definitions for pipeline hazard and stalls. This information is available in SIER register on powerpc. Current definitions are based on IBM PowerPC SIER specification available in ISA[1] and Performance Monitor Unit User’s Guide[2]. [1]: Book III

[RFC 06/11] perf hists: Make a room for hazard info in struct hist_entry

2020-03-01 Thread Ravi Bangoria
From: Madhavan Srinivasan To enable hazard mode with perf report (followup patch) we need to have cpu pipeline hazard data available in hist_entry. Add hazard info into struct hist_entry. Also add hazard_info as parameter to hists__add_entry(). Signed-off-by: Madhavan Srinivasan Signed-off-by:

[RFC 07/11] perf hazard: Functions to convert generic hazard data to arch specific string

2020-03-01 Thread Ravi Bangoria
From: Madhavan Srinivasan Kernel provides pipeline hazard data in struct perf_pipeline_haz_data format. Add code to convert this data into meaningful string which can be shown in perf report (followup patch). Introduce tools/perf/utils/hazard directory which will contains arch specific directori

[RFC 08/11] perf report: Enable hazard mode

2020-03-01 Thread Ravi Bangoria
From: Madhavan Srinivasan Introduce --hazard with perf report to show perf report with hazard data. Hazard mode columns are Instruction Type, Hazard Stage, Hazard Reason, Stall Stage, Stall Reason and Icache access. Default sort order is sym, dso, inst type, hazard stage, hazard reason, stall sta

[RFC 10/11] perf annotate: Preparation for hazard

2020-03-01 Thread Ravi Bangoria
Introduce 'struct hazard_hist' that will contain hazard specific information for annotate. Add Array of list of 'struct hazard_hist' into 'struct annotated_source' where array length = symbol size and each member of list contain hazard info from associated perf sample. This information is prepared

[RFC 09/11] perf annotate: Introduce type for annotation_line

2020-03-01 Thread Ravi Bangoria
struct annotation_line can contain either assembly instruction or a source code line. To distinguish between them we currently use offset. If offset is -1, it's a source otherwise it's assembly. This is bit cryptic when you first read the code. Introduce new field 'type' that denotes type of the da

[RFC 11/11] perf annotate: Show hazard data in tui mode

2020-03-01 Thread Ravi Bangoria
Enable perf report->annotate tui mode to show hazard information. By default they are hidden, but user can unhide them by pressing hot key 'S'. Sample o/p: │Disassembly of section .text: │ │10001cf8 : │compare(): │return NULL;

[RFC 05/11] perf tools: Enable record and script to record and show hazard data

2020-03-01 Thread Ravi Bangoria
From: Madhavan Srinivasan Introduce new perf record option "--hazard" to capture cpu pipeline hazard data. Also enable perf script -D to dump raw values of it. Sample o/p: $ ./perf record -e r4010e --hazard -- ls $ ./perf script -D ... PERF_RECORD_SAMPLE(IP, 0x2): ... hazard information:

Re: [PATCH v3 16/27] powerpc/powernv/pmem: Register a character device for userspace to interact with

2020-03-01 Thread Andrew Donnellan
On 21/2/20 2:27 pm, Alastair D'Silva wrote: From: Alastair D'Silva This patch introduces a character device (/dev/ocxl-scmX) which further patches will use to interact with userspace. As with the comments on other patches in this series, this commit message is lacking in explanation. What's

RE: [PATCH v3 25/27] powerpc/powernv/pmem: Expose the serial number in sysfs

2020-03-01 Thread Alastair D'Silva
On Mon, 2020-03-02 at 10:42 +1100, Alastair D'Silva wrote: > On Fri, 2020-02-28 at 08:15 +0100, Greg Kroah-Hartman wrote: > > On Fri, Feb 28, 2020 at 05:25:31PM +1100, Andrew Donnellan wrote: > > > On 21/2/20 2:27 pm, Alastair D'Silva wrote: > > > > +int ocxlpmem_sysfs_add(struct ocxlpmem *ocxlpmem

Re: [PATCH v3 21/27] powerpc/powernv/pmem: Add an IOCTL to request controller health & perf data

2020-03-01 Thread Alastair D'Silva
On Fri, 2020-02-28 at 17:12 +1100, Andrew Donnellan wrote: > On 21/2/20 2:27 pm, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > When health & performance data is requested from the controller, > > it responds with an error log containing the requested information. > > > > This patch

[PATCH] powerpc/sysdev: fix compile errors

2020-03-01 Thread WANG Wenhu
Include linux/io.h into fsl_85xx_cache_sram.c to fix the implicit-declaration compile errors when building Cache-Sram. arch/powerpc/sysdev/fsl_85xx_cache_sram.c: In function ‘instantiate_cache_sram’: arch/powerpc/sysdev/fsl_85xx_cache_sram.c:97:26: error: implicit declaration of function ‘ioremap

Re: [PATCH v3 16/27] powerpc/powernv/pmem: Register a character device for userspace to interact with

2020-03-01 Thread Alastair D'Silva
On Mon, 2020-03-02 at 16:34 +1100, Andrew Donnellan wrote: > On 21/2/20 2:27 pm, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > This patch introduces a character device (/dev/ocxl-scmX) which > > further > > patches will use to interact with userspace. > > As with the comments on oth

Re: [PATCH] powerpc/sysdev: fix compile errors

2020-03-01 Thread Christophe Leroy
Le 02/03/2020 à 06:37, WANG Wenhu a écrit : Include linux/io.h into fsl_85xx_cache_sram.c to fix the implicit-declaration compile errors when building Cache-Sram. arch/powerpc/sysdev/fsl_85xx_cache_sram.c: In function ‘instantiate_cache_sram’: arch/powerpc/sysdev/fsl_85xx_cache_sram.c:97:26:

[RFC 0/3] mm/vma: some new flags and helpers

2020-03-01 Thread Anshuman Khandual
The motivation here is to consolidate VMA flag combinations commonly used across platforms and reduce code duplication while making it uncluttered in general. This first introduces a default VM_DATA_DEFAULT_FLAGS which platforms can easily fall back on without requiring to define any similar data

[RFC 1/3] mm/vma: Define a default value for VM_DATA_DEFAULT_FLAGS

2020-03-01 Thread Anshuman Khandual
There are many platforms with exact same value for VM_DATA_DEFAULT_FLAGS This creates a default value for VM_DATA_DEFAULT_FLAGS in line with the existing VM_STACK_DEFAULT_FLAGS. While here, also define some more macros with standard VMA access flag combinations that are used frequently across many

[RFC 2/3] mm/vma: Introduce VM_ACCESS_FLAGS

2020-03-01 Thread Anshuman Khandual
There are many places where all basic VMA access flags (read, write, exec) are initialized or checked against as a group. One such example is during page fault. Existing vma_is_accessible() wrapper already creates the notion of VMA accessibility as a group access permissions. Hence lets just create

Re: [PATCH v3 0/6] implement KASLR for powerpc/fsl_booke/64

2020-03-01 Thread Jason Yan
在 2020/3/2 11:24, Scott Wood 写道: On Mon, 2020-03-02 at 10:17 +0800, Jason Yan wrote: 在 2020/3/1 6:54, Scott Wood 写道: On Sat, 2020-02-29 at 15:27 +0800, Jason Yan wrote: Turnning to %p may not be a good idea in this situation. So for the REG logs printed when dumping stack, we can disable

Reg: KASLR backporting to 4.9 kernels for ppc platform.

2020-03-01 Thread Bala murugan
Hi, Any plans to back port KASLR for 4.9 kernel. How feasible is to back port to 4.9 kernel for PPC platforms. Regards S Balamurugan.

Re: [PATCH v3 26/27] powerpc/powernv/pmem: Expose the firmware version in sysfs

2020-03-01 Thread Andrew Donnellan
On 21/2/20 2:27 pm, Alastair D'Silva wrote: From: Alastair D'Silva This information will be used by ndctl in userspace to help users identify the device. You should include the information from the subject line in the body of the commit message too. I think this patch could probably be squ