Re: [PATCH v7 0/4] Add perf interface to expose nvdimm

2022-03-06 Thread Madhavan Srinivasan
On 2/25/22 20:00, Kajol Jain wrote: Patchset adds performance stats reporting support for nvdimm. Added interface includes support for pmu register/unregister functions. A structure is added called nvdimm_pmu to be used for adding arch/platform specific data such as cpumask, nvdimm device

Re: [PATCH] pkeys: Make pkey unsigned in arch_set_user_pkey_access()

2022-03-06 Thread Aneesh Kumar K.V
ira.we...@intel.com writes: > From: Ira Weiny > > The WARN_ON check in arch_set_user_pkey_access() in the x86 architecture > fails to check for an invalid negative value. > > A simple check for less than 0 would fix this issue however, in the call > stack below arch_set_user_pkey_access() the

Re: [RFC PATCH] KVM: PPC: Book3s HV: Allow setting GTSE for the nested guest

2022-03-06 Thread Aneesh Kumar K.V
Fabiano Rosas writes: > We're currently getting a Program Interrupt inside the nested guest > kernel when running with GTSE disabled in the nested hypervisor. We > allow any guest a cmdline override of GTSE for migration purposes. The > nested guest does not know it needs to use the option and

[PATCH v4 1/2] selftest/vm: Add util.h and and move helper functions there

2022-03-06 Thread Aneesh Kumar K.V
Avoid code duplication by adding util.h. No functional change in this patch. Cc: Shuah Khan Cc: linux-kselft...@vger.kernel.org Signed-off-by: Aneesh Kumar K.V --- Changes from v3: * rebased to linux-next-20220302 tools/testing/selftests/vm/ksm_tests.c| 38 +--

[PATCH v4 2/2] selftest/vm: add helpers to detect PAGE_SIZE and PAGE_SHIFT

2022-03-06 Thread Aneesh Kumar K.V
From: Mike Rapoport PAGE_SIZE is not 4096 in many configurations, particularly ppc64 uses 64K pages in majority of cases. Add helpers to detect PAGE_SIZE and PAGE_SHIFT dynamically. Without this tests are broken w.r.t reading /proc/self/pagemap if (pread(pagemap_fd, ent, sizeof(ent),

Re: [PATCH v2] powerpc: kernel: fix refcount leak in format_show()

2022-03-06 Thread Hangyu Hua
Any further suggestions for this patch? guys. Thanks. On 2022/3/2 10:19, Hangyu Hua wrote: Refcount leak will happen when format_show returns failure in multiple cases. Unified management of of_node_put can fix this problem. Signed-off-by: Hangyu Hua --- v2: 1. change the title and

Re: [PATCH] powerpc: 8xx: fix a return value error in mpc8xx_pic_init

2022-03-06 Thread Hangyu Hua
Ping? On 2022/2/23 15:02, Hangyu Hua wrote: mpc8xx_pic_init() should return -ENOMEM instead of 0 when irq_domain_add_linear() return NULL. This cause mpc8xx_pics_init to continue executing even if mpc8xx_pic_host is NULL. Fixes: cc76404feaed ("powerpc/8xx: Fix possible device node reference

Re: [PATCH] powerpc/sysdev: Use of_device_get_match_data()

2022-03-06 Thread Michael Ellerman
Christophe Leroy writes: > Le 04/03/2022 à 15:26, Marc Zyngier a écrit : >> On Fri, 04 Mar 2022 13:10:19 +, >> Christophe Leroy wrote: >>> Le 04/03/2022 à 02:18, cgel@gmail.com a écrit : From: Minghao Chi (CGEL ZTE) Use of_device_get_match_data() to simplify the code.

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.17-5 tag

2022-03-06 Thread Michael Ellerman
Linus Torvalds writes: > On Sat, Mar 5, 2022 at 11:51 PM Michael Ellerman wrote: >> >> powerpc fixes for 5.17 #5 >> >> Fix build failure when CONFIG_PPC_64S_HASH_MMU is not set. > > Hmm. > > I'm *still* not seeing the fix for the reported > powerpc:skiroot_defconfig failure: > >

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.17-5 tag

2022-03-06 Thread pr-tracker-bot
The pull request you sent on Sun, 06 Mar 2022 18:51:36 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.17-5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9bdeaca18bf61d55029277bb35f72c2002c88c4d Thank you! --

Re: [PATCH -next] powerpc/spufs: Fix build warning when CONFIG_PROC_FS=n

2022-03-06 Thread Christophe Leroy
Le 05/03/2022 à 13:31, YueHaibing a écrit : > arch/powerpc/platforms/cell/spufs/sched.c:1055:12: warning: > ‘show_spu_loadavg’ defined but not used [-Wunused-function] > static int show_spu_loadavg(struct seq_file *s, void *private) > ^~~~ > > Mark this as

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.17-5 tag

2022-03-06 Thread Linus Torvalds
On Sat, Mar 5, 2022 at 11:51 PM Michael Ellerman wrote: > > powerpc fixes for 5.17 #5 > > Fix build failure when CONFIG_PPC_64S_HASH_MMU is not set. Hmm. I'm *still* not seeing the fix for the reported powerpc:skiroot_defconfig failure: arch/powerpc/kernel/stacktrace.c: In function

Re: [RFC PATCH 6/7] serial: General support for multipoint addresses

2022-03-06 Thread Lukas Wunner
On Wed, Mar 02, 2022 at 11:56:05AM +0200, Ilpo Järvinen wrote: > This patch adds generic support for serial multipoint > addressing. Two new ioctls are added. TIOCSADDR is used to Nit: "This patch adds..." is superfluous. Just write "Add ..." in imperative mood. > This change is necessary for

RE: [PATCH 10/12] swiotlb: add a SWIOTLB_ANY flag to lift the low memory restriction

2022-03-06 Thread Michael Kelley (LINUX)
From: Dongli Zhang Sent: Friday, March 4, 2022 10:28 AM > > Hi Michael, > > On 3/4/22 10:12 AM, Michael Kelley (LINUX) wrote: > > From: Christoph Hellwig Sent: Tuesday, March 1, 2022 2:53 AM > >> > >> Power SVM wants to allocate a swiotlb buffer that is not restricted to low > >> memory for

Re: [BUG] mtd: cfi_cmdset_0002: write regression since v4.17-rc1

2022-03-06 Thread Tokunori Ikegami
Hi, On 2022/03/04 20:11, Ahmad Fatoum wrote: Hello Tokunori-san, On 20.02.22 13:22, Tokunori Ikegami wrote: Hi Ahmad-san, Could you please try the version 2 patch attached for the error case? This version is to check the DQ true data 0xFF by chip_good(). I had a similar patch locally as