[PATCH 1/5] powerpc/hv-gpci: Fix starting index value

2020-10-03 Thread Kajol Jain
Commit 9e9f60108423f ("powerpc/perf/{hv-gpci, hv-common}: generate requests with counters annotated") adds a framework for defining gpci counters. In this patch, they adds starting_index value as '0x'. which is wrong as starting_index is of size 32 bits. Because of this, incase we

[PATCH 2/5] Documentation/ABI: Add ABI documentation for hv-24x7 format

2020-10-03 Thread Kajol Jain
This patch adds ABI documentation for hv-24x7 format. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_24x7| 25 +++ 1 file changed, 25 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_24x7

[PATCH 3/5] Documentation/ABI: Add ABI documentation for hv-gpci format

2020-10-03 Thread Kajol Jain
This patch adds ABI documentation for hv-gpci event format. Signed-off-by: Kajol Jain --- .../sysfs-bus-event_source-devices-hv_gpci| 31 +++ 1 file changed, 31 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-event_source-devices-hv_gpci

[PATCH 4/5] powerpc/perf/hv-gpci: Add cpu hotplug support

2020-10-03 Thread Kajol Jain
Patch here adds cpu hotplug functions to hv_gpci pmu. A new cpuhp_state "CPUHP_AP_PERF_POWERPC_HV_GPCI_ONLINE" enum is added. The online callback function updates the cpumask only if its empty. As the primary intention of adding hotplug support is to designate a CPU to make HCALL to collect the

[PATCH 5/5] powerpc/hv-gpci: Add sysfs files inside hv-gpci device to show cpumask

2020-10-03 Thread Kajol Jain
Patch here adds a cpumask attr to hv_gpci pmu along with ABI documentation. Primary use to expose the cpumask is for the perf tool which has the capability to parse the driver sysfs folder and understand the cpumask file. Having cpumask file will reduce the number of perf command line parameters

Re: [PATCH v4 net-next 0/2] Add Seville Ethernet switch to T1040RDB

2020-10-03 Thread David Miller
From: Vladimir Oltean Date: Fri, 2 Oct 2020 16:41:04 +0300 > Seville is a DSA switch that is embedded inside the T1040 SoC, and > supported by the mscc_seville DSA driver inside drivers/net/dsa/ocelot. > > This series adds this switch to the SoC's dtsi files and to the T1040RDB > board file. >

[PATCH 0/4] treewide: Make definitions of struct kernel_param_ops const

2020-10-03 Thread Joe Perches
Using const is good as it reduces data size. Joe Perches (4): KVM: PPC: Book3S HV: Make struct kernel_param_ops definition const kvm x86/mmu: Make struct kernel_param_ops definitions const rcu/tree: Make struct kernel_param_ops definitions const mm/zswap: Make struct kernel_param_ops

[PATCH 1/4] KVM: PPC: Book3S HV: Make struct kernel_param_ops definition const

2020-10-03 Thread Joe Perches
This should be const, so make it so. Signed-off-by: Joe Perches --- arch/powerpc/kvm/book3s_hv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 4ba06a2a306c..2b215852cdc9 100644 ---

Where is the declaration of buffer used in kernel_param_ops .get functions?

2020-10-03 Thread Joe Perches
These patches came up because I was looking for the location of the declaration of the buffer used in kernel/params.c struct kernel_param_ops .get functions. I didn't find it. I want to see if it's appropriate to convert the sprintf family of functions used in these .get functions to sysfs_emit.

Re: Where is the declaration of buffer used in kernel_param_ops .get functions?

2020-10-03 Thread Matthew Wilcox
On Sat, Oct 03, 2020 at 06:19:18PM -0700, Joe Perches wrote: > These patches came up because I was looking for > the location of the declaration of the buffer used > in kernel/params.c struct kernel_param_ops .get > functions. > > I didn't find it. > > I want to see if it's appropriate to

Re: Where is the declaration of buffer used in kernel_param_ops .get functions?

2020-10-03 Thread Joe Perches
On Sun, 2020-10-04 at 02:36 +0100, Matthew Wilcox wrote: > On Sat, Oct 03, 2020 at 06:19:18PM -0700, Joe Perches wrote: > > These patches came up because I was looking for > > the location of the declaration of the buffer used > > in kernel/params.c struct kernel_param_ops .get > > functions. > >

Re: [PATCH] crypto: talitos - Fix sparse warnings

2020-10-03 Thread Christophe Leroy
Quoting Herbert Xu : On Fri, Oct 02, 2020 at 10:42:23PM +1000, Herbert Xu wrote: I don't think that's a valid optimisation unless it's backed up with real numbers. Also it only matters on little-endian as they're no-ops on big-endian. If I'm right then this driver never even worked on