Re: [PATCH net-next v2 01/10] net: dsa: lan9303: Fixed MDIO interface

2017-07-27 Thread kbuild test robot
Hi Egil, [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Egil-Hjelmeland/net-dsa-lan9303-unicast-offload-fdb-mdb-STP/20170727-074246 config: x86_64-allmodconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce

Re: [PATCH net-next v2 02/10] net: dsa: lan9303: Do not disable/enable switch fabric port 0 at startup

2017-07-27 Thread Egil Hjelmeland
On 26. juli 2017 18:58, Andrew Lunn wrote: On Tue, Jul 25, 2017 at 06:15:45PM +0200, Egil Hjelmeland wrote: For some mysterious reason enable switch fabric port 0 TX fails to work, when the TX has previous been disabled. Resolved by not disable/enable switch fabric port 0 at startup. Port 1 and

Re: [PATCH net-next v2 04/10] net: dsa: lan9303: Added adjust_link() method

2017-07-27 Thread Egil Hjelmeland
On 26. juli 2017 19:09, Andrew Lunn wrote: On Tue, Jul 25, 2017 at 06:15:47PM +0200, Egil Hjelmeland wrote: This makes the driver react to device tree "fixed-link" declaration on CPU port. - turn off autonegotiation - force speed 10 or 100 mb/s - force duplex mode Signed-off-by: Egil Hjelmelan

Re: [PATCH net-next v2 06/10] net: dsa: lan9303: added sysfs node swe_bcst_throt

2017-07-27 Thread Egil Hjelmeland
On 26. juli 2017 19:14, Andrew Lunn wrote: On Tue, Jul 25, 2017 at 06:15:49PM +0200, Egil Hjelmeland wrote: Allowing per-port access to Switch Engine Broadcast Throttling Register Hi Egil In general, we are against using sysfs. If there is a generic mechanism, that applies for all sorts of ne

Re: [PATCH net-next v2 08/10] net: dsa: lan9303: Added ALR/fdb/mdb handling

2017-07-27 Thread Egil Hjelmeland
On 26. juli 2017 19:41, Andrew Lunn wrote: Hi Egil +/* This function will wait a while until mask & reg == value */ +/* Otherwise, return timeout */ +static int lan9303_csr_reg_wait(struct lan9303 *chip, int regno, + int mask, char value) +{ + int i; + +

Re: [PATCH net-next v2 07/10] net: dsa: lan9303: Added basic offloading of unicast traffic

2017-07-27 Thread Egil Hjelmeland
On 26. juli 2017 19:24, Andrew Lunn wrote: Hi Egil +/* forward special tagged packets from port 0 to port 1 *or* port 2 */ +static int lan9303_setup_tagging(struct lan9303 *chip) +{ + int ret; Blank line please. + /* enable defining the destination port via special VLAN tagging

Re: [PATCH net-next v2 06/10] net: dsa: lan9303: added sysfs node swe_bcst_throt

2017-07-27 Thread Andrew Lunn
> Yes, this setting can be used to reduce effect of broadcast storms. So one way to solve this is to teach the software bridge about broadcast storm control. Put some rate limiting into its broadcast flood handling. Then add a switchdev call which passes this down into the switch. Or look at doin

Re: [PATCH net-next v2 07/10] net: dsa: lan9303: Added basic offloading of unicast traffic

2017-07-27 Thread Andrew Lunn
> >I think you are over-simplifying here. Say i have a layer 2 VPN and i > >bridge port 1 and the VPN? The software bridge still wants to do STP > >on port 1, in order to solve loops. > > > > Problem is that the mainline lan9303_separate_ports() does its > work by setting port 1 & 2 in STP BLOCKIN

Re: [PATCH net-next v2 06/10] net: dsa: lan9303: added sysfs node swe_bcst_throt

2017-07-27 Thread Jiri Pirko
Thu, Jul 27, 2017 at 03:26:25PM CEST, and...@lunn.ch wrote: >> Yes, this setting can be used to reduce effect of broadcast storms. > >So one way to solve this is to teach the software bridge about >broadcast storm control. Put some rate limiting into its broadcast >flood handling. Then add a switch

Re: [RFC v6 13/62] powerpc: track allocation status of all pkeys

2017-07-27 Thread Thiago Jung Bauermann
Hello Ram, I'm still going through the patches and haven't formed a full picture of the feature in my mind yet, so my comments today won't be particularly insightful... But hopefully the comments that I currently have will be helpful anyway. Ram Pai writes: > diff --git a/arch/powerpc/include/

Re: [PATCH net-next v2 07/10] net: dsa: lan9303: Added basic offloading of unicast traffic

2017-07-27 Thread Egil Hjelmeland
On 27. juli 2017 15:31, Andrew Lunn wrote: I think you are over-simplifying here. Say i have a layer 2 VPN and i bridge port 1 and the VPN? The software bridge still wants to do STP on port 1, in order to solve loops. Problem is that the mainline lan9303_separate_ports() does its work by setti

Re: [RFC v6 17/62] powerpc: implementation for arch_set_user_pkey_access()

2017-07-27 Thread Thiago Jung Bauermann
Ram Pai writes: > @@ -113,10 +117,14 @@ static inline int arch_override_mprotect_pkey(struct > vm_area_struct *vma, > return 0; > } > > +extern int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, > + unsigned long init_val); > static inline int arch_set_user_pk

[PATCH v2 03/10] drivers/hwmon/occ: Parse OCC poll response

2017-07-27 Thread Eddie James
From: "Edward A. James" Add method to parse the response from the OCC poll command. This only needs to be done during probe(), since the OCC shouldn't change the number or format of sensors while it's running. The parsed response allows quick access to sensor data, as well as information on the n

[PATCH v2 04/10] drivers/hwmon/occ: Add sensor types and versions

2017-07-27 Thread Eddie James
From: "Edward A. James" Add structures to define all sensor types and versions. Add sysfs show and store functions for each sensor type. Add a method to construct the "set user power cap" command and send it to the OCC. Add rate limit to polling the OCC (in case user-space reads our hwmon entries

[PATCH v2 10/10] dt-bindings: i2c: Add P8 OCC hwmon driver documentation

2017-07-27 Thread Eddie James
From: "Edward A. James" Document the bindings for I2C-based OCC hwmon driver. Signed-off-by: Edward A. James --- .../devicetree/bindings/i2c/ibm,p8-occ-hwmon.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/ibm,p8-occ

[PATCH v2 09/10] Documentation: ABI: Add occ-hwmon driver sysfs documentation

2017-07-27 Thread Eddie James
From: "Edward A. James" Detail the sysfs attributes provided by the occ-hwmon driver. Signed-off-by: Edward A. James --- Documentation/ABI/testing/sysfs-driver-occ-hwmon | 77 1 file changed, 77 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-o

[PATCH v2 07/10] drivers/hwmon/occ: Add error handling

2017-07-27 Thread Eddie James
From: "Edward A. James" Add logic to detect a number of error scenarios on the OCC. Export any errors through an additional non-hwmon device attribute. The error counting and state verification are required by the OCC hardware specification. Signed-off-by: Edward A. James --- drivers/hwmon/occ

[PATCH v2 08/10] Documentation: hwmon: Add OCC documentation

2017-07-27 Thread Eddie James
From: "Edward A. James" Document the hwmon interface for the OCC. Signed-off-by: Edward A. James --- Documentation/hwmon/occ | 74 + 1 file changed, 74 insertions(+) create mode 100644 Documentation/hwmon/occ diff --git a/Documentation/hwmon/oc

[PATCH v2 05/10] drivers/hwmon/occ: Add sensor attributes and register hwmon device

2017-07-27 Thread Eddie James
From: "Edward A. James" Setup the sensor attributes for every OCC sensor found by the first poll response. Register the attributes with hwmon. Add hwmon documentation for the driver. Signed-off-by: Edward A. James --- drivers/hwmon/occ/common.c | 432 +++

[PATCH v2 01/10] drivers/hwmon: Add On-Chip Controller (OCC) hwmon driver

2017-07-27 Thread Eddie James
From: "Edward A. James" The OCC is a device embedded on a POWER processor that collects and aggregates sensor data from the processor and system. The OCC can provide the raw sensor data as well as perform thermal and power management on the system. This driver provides a hwmon interface to the O

[PATCH v2 06/10] drivers/hwmon/occ: Add non-hwmon attributes

2017-07-27 Thread Eddie James
From: "Edward A. James" Create device attributes for additional OCC properties that do not belong as hwmon sensors. These provide additional information as to the state of the processor and system. Signed-off-by: Edward A. James --- drivers/hwmon/occ/common.c | 83 +

[PATCH v2 02/10] drivers/hwmon/occ: Add command transport method for P8 and P9

2017-07-27 Thread Eddie James
From: "Edward A. James" For the P8 OCC, add the procedure to send a command to the OCC over I2C bus. This involves writing the OCC command registers with serial communication operations (SCOMs) interpreted by the I2C slave. For the P9 OCC, add a procedure to use the OCC in-kernel API to send a co

[PATCH v2 00/10] drivers/hwmon: Add On-Chip Controller (OCC) hwmon driver

2017-07-27 Thread Eddie James
From: "Edward A. James" This series adds a hwmon driver to support the OCC on POWER8 and POWER9 processors. The OCC is an embedded processor that provides realtime power and thermal monitoring and management. This driver has two different platform drivers as a "base" for the hwmon interface, as

Re: [RFC v6 19/62] powerpc: ability to create execute-disabled pkeys

2017-07-27 Thread Thiago Jung Bauermann
Ram Pai writes: > --- a/arch/powerpc/include/asm/pkeys.h > +++ b/arch/powerpc/include/asm/pkeys.h > @@ -2,6 +2,18 @@ > #define _ASM_PPC64_PKEYS_H > > extern bool pkey_inited; > +/* override any generic PKEY Permission defines */ > +#undef PKEY_DISABLE_ACCESS > +#define PKEY_DISABLE_ACCESS

Re: [RFC v6 19/62] powerpc: ability to create execute-disabled pkeys

2017-07-27 Thread Thiago Jung Bauermann
Thiago Jung Bauermann writes: > diff --git a/arch/powerpc/include/asm/pkeys.h > b/arch/powerpc/include/asm/pkeys.h > index e31f5ee8e81f..67e6a3a343ae 100644 > --- a/arch/powerpc/include/asm/pkeys.h > +++ b/arch/powerpc/include/asm/pkeys.h > @@ -4,17 +4,6 @@ > #include > > extern bool pkey_i

[PATCH] cgroup: add cgroup.stat interface with basic hierarchy stats

2017-07-27 Thread Roman Gushchin
Add a cgroup.stat interface to the base cgroup control files with the following metrics: nr_descendants total number of descendant cgroups nr_dying_descendantstotal number of dying descendant cgroups max_descendant_depthmaximum descent depth below the current cgroup Signed-off-by

Re: [PATCH] cgroup: add cgroup.stat interface with basic hierarchy stats

2017-07-27 Thread Tejun Heo
Hello, On Thu, Jul 27, 2017 at 05:14:20PM +0100, Roman Gushchin wrote: > Add a cgroup.stat interface to the base cgroup control files > with the following metrics: > > nr_descendantstotal number of descendant cgroups > nr_dying_descendants total number of dying descendant cgroups

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-07-27 Thread Catalin Marinas
Hi Yury, On Mon, Jul 24, 2017 at 02:26:24PM +0300, Yury Norov wrote: > On Fri, Jul 07, 2017 at 06:11:36PM +0100, Catalin Marinas wrote: > > On Fri, Jul 07, 2017 at 12:59:02AM +0300, Yury Norov wrote: > > > If so, I would like to ask you to do the first ILP32 community poll > > > now, not in 6 mont

Re: [RFC v6 20/62] powerpc: store and restore the pkey state across context switches

2017-07-27 Thread Thiago Jung Bauermann
Ram Pai writes: > Store and restore the AMR, IAMR and UMOR register state of the task > before scheduling out and after scheduling in, respectively. > > Signed-off-by: Ram Pai s/UMOR/UAMOR/ > diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c > index 2ad725e..9429361 1

Re: [PATCH] cgroup: add cgroup.stat interface with basic hierarchy stats

2017-07-27 Thread Waiman Long
On 07/27/2017 12:14 PM, Roman Gushchin wrote: > Add a cgroup.stat interface to the base cgroup control files > with the following metrics: > > nr_descendantstotal number of descendant cgroups > nr_dying_descendants total number of dying descendant cgroups > max_descendant_depth ma

Re: [PATCH] cgroup: add cgroup.stat interface with basic hierarchy stats

2017-07-27 Thread Roman Gushchin
On Thu, Jul 27, 2017 at 01:38:55PM -0400, Waiman Long wrote: > On 07/27/2017 12:14 PM, Roman Gushchin wrote: > > Add a cgroup.stat interface to the base cgroup control files > > with the following metrics: > > > > nr_descendants total number of descendant cgroups > > nr_dying_descendan

Re: [PATCH] cgroup: add cgroup.stat interface with basic hierarchy stats

2017-07-27 Thread Waiman Long
On 07/27/2017 01:46 PM, Roman Gushchin wrote: > On Thu, Jul 27, 2017 at 01:38:55PM -0400, Waiman Long wrote: >> On 07/27/2017 12:14 PM, Roman Gushchin wrote: >>> Add a cgroup.stat interface to the base cgroup control files >>> with the following metrics: >>> >>> nr_descendants total nu

Re: [RFC v6 15/62] powerpc: helper functions to initialize AMR, IAMR and UMOR registers

2017-07-27 Thread Thiago Jung Bauermann
Ram Pai writes: > Introduce helper functions that can initialize the bits in the AMR, > IAMR and UMOR register; the bits that correspond to the given pkey. > > Signed-off-by: Ram Pai s/UMOR/UAMOR/ here and in the subject as well. > --- a/arch/powerpc/mm/pkeys.c > +++ b/arch/powerpc/mm/pkeys.c

Re: [v4 2/4] mm, oom: cgroup-aware OOM killer

2017-07-27 Thread kbuild test robot
Hi Roman, [auto build test ERROR on linus/master] [also build test ERROR on v4.13-rc2 next-20170727] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Roman-Gushchin/cgroup-aware-OOM-killer