Re: [PATCH 1/2] powerpc/syscalls: Use the number when building SPU syscall table

2020-06-21 Thread Michael Ellerman
Michael Ellerman writes: > On Tue, 16 Jun 2020 23:56:16 +1000, Michael Ellerman wrote: >> Currently the macro that inserts entries into the SPU syscall table >> doesn't actually use the "nr" (syscall number) parameter. >> >> This does work, but it relies on the exact right number of syscall >> en

[GIT PULL] Please pull powerpc/linux.git powerpc-5.8-3 tag

2020-06-21 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.8. These have all been in linux-next since Thursday, but I rebased last night to drop a commit, so the time stamps on the last few commits reflect that. The following changes since commit b3a9e3b

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.8-3 tag

2020-06-21 Thread pr-tracker-bot
The pull request you sent on Sun, 21 Jun 2020 20:52:25 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.8-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/75613939084f59c0848b146e54ba463dc494c433 Thank you! -- Deet-doot-do

[powerpc:merge] BUILD SUCCESS 3ddb24ac766e1b028462b27aeae05c2bf17c12c5

2020-06-21 Thread kernel test robot
rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a006-20200621 i386 randconfig-a002-20200621 i386 randconfig-a003-20200621 i386 randconfig-a001-20200621 i386

Re: [PATCH 2/2] selftests/powerpc: Add prefixed loads/stores to alignment_handler test

2020-06-21 Thread Alistair Popple
On Wednesday, 20 May 2020 12:11:03 PM AEST Jordan Niethe wrote: > +/* POWER10 feature */ > +#ifndef PPC_FEATURE2_ARCH_3_10 > +#define PPC_FEATURE2_ARCH_3_10 0x0004 > +#endif One minor nit pick, this needs to be updated to PPC_FEATURE2_ARCH_3_1 to reflect the changes made in response to feedba

Re: [PATCH] powerpc/mce: Avoid using addr_to_pfn in realmode

2020-06-21 Thread Nicholas Piggin
Excerpts from Ganesh Goudar's message of June 20, 2020 10:44 pm: > When an UE or memory error exception is encountered the MCE handler > tries to find the pfn using addr_to_pfn() which takes effective > address as an argument, later pfn is used to poison the page where > memory error occurred, rece

[PATCH] selftests/powerpc: Add matrix multiply assist (MMA) test

2020-06-21 Thread Alistair Popple
Adds a simple test of some basic matrix multiply assist (MMA) instructions. Signed-off-by: Alistair Popple --- .../testing/selftests/powerpc/include/utils.h | 5 ++ tools/testing/selftests/powerpc/math/Makefile | 6 ++- tools/testing/selftests/powerpc/math/mma.S| 33 + tools/te

Re: [PATCH 2/2] selftests/powerpc: Add prefixed loads/stores to alignment_handler test

2020-06-21 Thread Michael Ellerman
Alistair Popple writes: > On Wednesday, 20 May 2020 12:11:03 PM AEST Jordan Niethe wrote: >> +/* POWER10 feature */ >> +#ifndef PPC_FEATURE2_ARCH_3_10 >> +#define PPC_FEATURE2_ARCH_3_10 0x0004 >> +#endif > > One minor nit pick, this needs to be updated to PPC_FEATURE2_ARCH_3_1 to > reflect th

[PATCH 0/2] powerpc/papr_scm: add support for reporting NVDIMM 'life_used_percentage' metric

2020-06-21 Thread Vaibhav Jain
This small patchset implements kernel side support for reporting 'life_used_percentage' metric in NDCTL with dimm health output for papr-scm NVDIMMs. With corresponding NDCTL side changes [1] output for should be like: $ sudo ndctl list -DH [ { "dev":"nmem0", "health":{ "health_sta

[PATCH 1/2] powerpc/papr_scm: Fetch nvdimm performance stats from PHYP

2020-06-21 Thread Vaibhav Jain
Update papr_scm.c to query dimm performance statistics from PHYP via H_SCM_PERFORMANCE_STATS hcall and export them to user-space as PAPR specific NVDIMM attribute 'perf_stats' in sysfs. The patch also provide a sysfs ABI documentation for the stats being reported and their meanings. During NVDIMM

[PATCH 2/2] powerpc/papr_scm: Add support for fetching nvdimm 'fuel-gauge' metric

2020-06-21 Thread Vaibhav Jain
We add support for reporting 'fuel-gauge' NVDIMM metric via PAPR_PDSM_HEALTH pdsm payload. 'fuel-gauge' metric indicates the usage life remaining of a papr-scm compatible NVDIMM. PHYP exposes this metric via the H_SCM_PERFORMANCE_STATS. The metric value is returned from the pdsm by extending the r

Re: [PATCH 1/2] powerpc/perf/hv-24x7: Add cpu hotplug support

2020-06-21 Thread kajoljain
On 6/19/20 10:28 AM, Gautham R Shenoy wrote: > Hello Kajol, > > On Thu, Jun 18, 2020 at 05:57:12PM +0530, Kajol Jain wrote: >> Patch here adds cpu hotplug functions to hv_24x7 pmu. >> A new cpuhp_state "CPUHP_AP_PERF_POWERPC_HV_24x7_ONLINE" enum >> is added. >> >> The online function update the

Re: [PATCH 2/2] powerpc/hv-24x7: Add sysfs files inside hv-24x7 device to show cpumask

2020-06-21 Thread kajoljain
On 6/19/20 10:35 AM, Gautham R Shenoy wrote: > On Thu, Jun 18, 2020 at 05:57:13PM +0530, Kajol Jain wrote: >> Patch here adds a cpumask attr to hv_24x7 pmu along with ABI documentation. >> >> command:# cat /sys/devices/hv_24x7/cpumask >> 0 >> >> Signed-off-by: Kajol Jain >> --- >> .../sysfs-bu

[PATCH] powerpc/mm/book3s64: Skip 16G page reservation with radix

2020-06-21 Thread Aneesh Kumar K.V
With hash translation, the hypervisor can hint the LPAR about 16GB contiguous range via ibm,expected#pages. The kernel marks the range specified in the device tree as reserved. Avoid doing this when using radix translation. Radix translation only supports 1G gigantic hugepage and kernel can do the