Re: [PATCH kernel v2] KVM: PPC: Merge powerpc's debugfs entry content into generic entry

2021-09-04 Thread Alexey Kardashevskiy
Huh, not sure anymore after reading d56f5136b0102 "KVM: let kvm_destroy_vm_debugfs clean up vCPU debugfs directories" which remove debugfs_dentry from vcpu. Paolo? On 05/09/2021 12:27, Alexey Kardashevskiy wrote: Please ignore this one, v3 is coming. After I posted this, I suddenly

Re: [PATCH kernel v2] KVM: PPC: Merge powerpc's debugfs entry content into generic entry

2021-09-04 Thread Alexey Kardashevskiy
Please ignore this one, v3 is coming. After I posted this, I suddenly realized that the vcpu debugfs entry remain until the VM exists and this does not handle vcpu hotunplug+hotplug (the ppc book3e did handle this). Thanks, On 04/09/2021 23:35, Alexey Kardashevskiy wrote: At the moment the

[PATCH kernel v2] KVM: PPC: Merge powerpc's debugfs entry content into generic entry

2021-09-04 Thread Alexey Kardashevskiy
At the moment the generic KVM code creates an "%pid-%fd" entry per a KVM instance; and the PPC HV KVM creates its own at "vm%pid". The Book3E KVM creates its own entry for timings. The problems with the PPC entries are: 1. they do not allow multiple VMs in the same process (which is extremely

Re: [PATCH] ftrace: Cleanup ftrace_dyn_arch_init()

2021-09-04 Thread Weizhao Ouyang
On 2021/9/3 15:18, Weizhao Ouyang wrote: > Most ARCHs use empty ftrace_dyn_arch_init(), introduce a weak common > ftrace_dyn_arch_init() to cleanup them. > > Signed-off-by: Weizhao Ouyang > --- > arch/arm/kernel/ftrace.c | 5 - > arch/arm64/kernel/ftrace.c| 5 - >

Re: [PATCH -next] powerpc/mm: check base flags in ioremap_prot

2021-09-04 Thread Michael Ellerman
Nanyong Sun writes: > On 2021/9/3 17:16, Christophe Leroy wrote: >> Le 03/09/2021 à 11:03, Nanyong Sun a écrit : >>> Some drivers who call ioremap_prot without setting base flags like >>> ioremap_prot(addr, len, 0) may work well before >>> commit 56f3c1413f5c ("powerpc/mm: properly set

Re: [PATCH] ftrace: Cleanup ftrace_dyn_arch_init()

2021-09-04 Thread Weizhao Ouyang
On Fri, Sep 3, 2021 at 3:18 PM Weizhao Ouyang wrote: > Most ARCHs use empty ftrace_dyn_arch_init(), introduce a weak common > ftrace_dyn_arch_init() to cleanup them. > > Signed-off-by: Weizhao Ouyang > --- > arch/arm/kernel/ftrace.c | 5 - > arch/arm64/kernel/ftrace.c| 5

Re: [PATCH -next] powerpc/mm: check base flags in ioremap_prot

2021-09-04 Thread Nanyong Sun
On 2021/9/3 17:16, Christophe Leroy wrote: Le 03/09/2021 à 11:03, Nanyong Sun a écrit : Some drivers who call ioremap_prot without setting base flags like ioremap_prot(addr, len, 0) may work well before commit 56f3c1413f5c ("powerpc/mm: properly set PAGE_KERNEL flags in ioremap()"), but now

[PATCH 3/3] powerpc/perf: Fix data source encodings for power10

2021-09-04 Thread Kajol Jain
Fix the data source encodings for power10 to represent onchip L2/L3 accesses properly. Fixes: 79e96f8f930d ("powerpc/perf: Export memory hierarchy info to user space") Signed-off-by: Kajol Jain --- arch/powerpc/perf/isa207-common.c | 21 - 1 file changed, 16 insertions(+), 5

[PATCH 2/3] perf: Add macros to specify onchip L2/L3 accesses

2021-09-04 Thread Kajol Jain
Add couple of new macros to represent onchip L2 and onchip L3 accesses. Patch also adds the decoding strings in the mem_lvlnum data structure. Signed-off-by: Kajol Jain --- tools/include/uapi/linux/perf_event.h | 4 +++- tools/perf/util/mem-events.c | 2 ++ 2 files changed, 5