[PATCH v2 06/12] ARM: dts: sun8i: orangepi-lite: Fix node with unit name and no reg property

2017-09-22 Thread Corentin Labbe
This patch fix the warning "xxx has a unit name, but no reg property" by removing "@0" from such node. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-h3-orangepi-lite.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/d

[PATCH v2 03/12] ARM: dts: sunxi: h3/h5: Fix node with unit name and no reg property

2017-09-22 Thread Corentin Labbe
This patch fix the warning "xxx has a unit name, but no reg property" by removing "@0" from such node. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/

[PATCH v2 10/12] arm64: allwinner: a64: Fix simple-bus unit address format error

2017-09-22 Thread Corentin Labbe
This patch remove leading 0 of unit address and so remove lots of warning when building DT with W=1. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a

[PATCH v2 05/12] ARM: dts: orangepi2: Fix node with unit name and no reg property

2017-09-22 Thread Corentin Labbe
This patch fix the warning "xxx has a unit name, but no reg property" by removing "@0" from such node. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dt

Re: [PATCH 2/3] srcu: queue work without holding the lock

2017-09-22 Thread Paul E. McKenney
On Fri, Sep 22, 2017 at 05:28:05PM +0200, Sebastian Andrzej Siewior wrote: > On RT we can't invoke queue_delayed_work() within an atomic section > (which is provided by raw_spin_lock_irqsave()). > srcu_reschedule() invokes queue_delayed_work() outside of the > raw_spin_lock_irq_rcu_node() section s

[PATCH] reset: socfpga: fix for 64-bit compilation

2017-09-22 Thread Dinh Nguyen
The SoCFPGA Stratix10 reset controller has 32-bit registers. Thus, we cannot use BITS_PER_LONG in computing the register and bit offset. Instead, we should be using the width of the hardware register for the calculation. Signed-off-by: Dinh Nguyen --- drivers/reset/reset-socfpga.c | 17 +

[PATCH v2 07/12] ARM: dts: sun8i: orangepi one: Fix node with unit name and no reg property

2017-09-22 Thread Corentin Labbe
This patch fix the warning "xxx has a unit name, but no reg property" by removing "@0" from such node. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dt

[PATCH v2 01/12] ARM: dts: sunxi: h3/h5: Fix simple-bus unit address format error

2017-09-22 Thread Corentin Labbe
This patch remove leading 0 of unit address and so remove lots of warning when building DT with W=1. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 74 +++--- 1 file changed, 37 insertions(+), 37 deletions(-) diff

[PATCH v2 11/12] arm64: allwinner: a64: Fix node with unit name and no reg property

2017-09-22 Thread Corentin Labbe
This patch fix the warning "xxx has a unit name, but no reg property" by removing "@0" from such node Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/d

[PATCH v2 08/12] ARM: dts: sun8i: orangepipc: Fix node with unit name and no reg property

2017-09-22 Thread Corentin Labbe
This patch fix the warning "xxx has a unit name, but no reg property" by removing "@0" from such node. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH v2 02/12] ARM: dts: sunxi: h3/h5: Fix i2c2 register address

2017-09-22 Thread Corentin Labbe
The unit address and register address does not match. This patch fix the register address with the good one. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sunxi-h

[PATCH v2 04/12] ARM: dts: nanopi: Fix node with unit name and no reg property

2017-09-22 Thread Corentin Labbe
This patch fix the warning "xxx has a unit name, but no reg property" by removing "@0" from such node. Signed-off-by: Corentin Labbe Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-h3-nanopi.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/s

Re: [PATCH 3/3] rcu/segcblist: include rcupdate.h

2017-09-22 Thread Paul E. McKenney
On Fri, Sep 22, 2017 at 05:28:06PM +0200, Sebastian Andrzej Siewior wrote: > The RT build on ARM complains about non-existing ULONG_CMP_LT. > > Signed-off-by: Sebastian Andrzej Siewior I have queued this one for review and testing, thank you!

[PATCH] r8152: add Linksys USB3GIGV1 id

2017-09-22 Thread Grant Grundler
This Linksys dongle by default comes up in cdc_ether mode. This patch allows r8152 to claim the device: Bus 002 Device 002: ID 13b1:0041 Linksys Signed-off-by: Grant Grundler --- drivers/net/usb/r8152.c | 2 ++ 1 file changed, 2 insertions(+) This was tested on chromeos-3.14, chromeos-3.18,

Re: [PATCH net-next 2/4] net: dsa: remove phy arg from port enable/disable

2017-09-22 Thread Andrew Lunn
> Historical reasons mostly. Considering the complexity of > dsa_slave_phy_setup(), I would certainly be extremely careful in > changing any of this, the potential for breakage is pretty big. Yes, i took a look at this, wondering how to convert to phylink. I went away and got a stiff drink :-)

Re: [PATCH] lib: zstd: make const array rtbTable static, reduces object code size

2017-09-22 Thread Nick Terrell
On 9/22/17, 8:00 AM, "linux-kernel-ow...@vger.kernel.org on behalf of Colin King" wrote: > From: Colin Ian King > > Don't populate const array rtbTable on the stack, instead make it > static. Also split overly long line to clean a chechkpach warning. > Makes the object code smaller by nearly 50

Re: Contribution to Linux Kernel.

2017-09-22 Thread Jonathan Corbet
On Thu, 21 Sep 2017 18:16:12 -0300 Javier Romero wrote: > My name is Javier, live in Argentina, and work as a Linux Server admin > in the Network Operations Center of an ISP. > > Would like to know, how can I start contributing to the Linux kernel. A good place to start is the documentation on

Re: [PATCH] lib/lz4: make arrays static const, reduces object code size

2017-09-22 Thread Arnd Bergmann
On Fri, Sep 22, 2017 at 7:21 PM, Joe Perches wrote: > On Fri, 2017-09-22 at 09:48 +0200, Arnd Bergmann wrote: >> On Fri, Sep 22, 2017 at 1:11 AM, Colin Ian King >>textdata bss dec hex filename >> 18220 176 0 1839647dc >> build/tmp/lib/lz4/lz4_decompress-afte

Re: [PATCH] coccicheck: improve pattern for getting relative path

2017-09-22 Thread Cihangir Akturk
On Thu, Aug 10, 2017 at 09:08:31PM +0200, Julia Lawall wrote: > > > On Thu, 10 Aug 2017, Cihangir Akturk wrote: > > > When invoked with V=1, coccicheck script prints the information about > > which semantic patch (*.cocci file) used for this operation. Actually, > > it prints out the relative p

[PATCH V6 3/4] phy: usb: phy-brcm-usb: Add Broadcom STB USB phy driver

2017-09-22 Thread Al Cooper
Add a new USB Phy driver for Broadcom STB SoCs. This driver supports Broadcom STB ARM SoCs. This driver in combination with the Broadcom STB ohci, ehci and xhci drivers will enable USB1.1, USB2.0 and USB3.0 support. This Phy driver also supports the Broadcom BDC gadget driver. Signed-off-by: Al Co

[PATCH V6 2/4] dt-bindings: Add Broadcom STB USB PHY binding document

2017-09-22 Thread Al Cooper
Add DT bindings document for Broadcom STB USB PHYs Acked-by: Rob Herring Signed-off-by: Al Cooper --- .../bindings/phy/brcm,brcmstb-usb-phy.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/brcm,brcmstb-usb-phy.

[PATCH V6 4/4] phy: usb: phy-brcm-usb: Add ability to force DRD mode to host or device

2017-09-22 Thread Al Cooper
From: Al Cooper When the usb phy device mode is set to "drd", the USB port will switch between device and host modes depending on what's plugged into the port. Customers have asked for the ability to force host or device mode from software. This commit adds sysfs entries to the phy device that al

[PATCH V6 0/4] Add Broadcom STB USB phy driver

2017-09-22 Thread Al Cooper
Add a new USB Phy driver for Broadcom STB SoCs. This driver supports Broadcom STB ARM SoCs. This driver in combination with the Broadcom STB ohci, ehci and xhci drivers will enable USB1.1, USB2.0 and USB3.0 support. This Phy driver also supports the Broadcom BDC gadget driver. Changes since v5: -

[PATCH V6 1/4] soc: brcmstb: Add Product ID and Family ID helper functions

2017-09-22 Thread Al Cooper
Signed-off-by: Al Cooper --- drivers/soc/bcm/brcmstb/common.c| 12 include/linux/soc/brcmstb/brcmstb.h | 17 + 2 files changed, 29 insertions(+) diff --git a/drivers/soc/bcm/brcmstb/common.c b/drivers/soc/bcm/brcmstb/common.c index 22e98a9..a71730d 100644 --- a/d

Re: [PATCH] lib/lz4: make arrays static const, reduces object code size

2017-09-22 Thread Arnd Bergmann
On Fri, Sep 22, 2017 at 9:17 PM, Arnd Bergmann wrote: > afterbefore > gcc-3.4.6 10855 12977 > gcc-4.0.4 11088 11088 > gcc-4.1.3 10973 10973 > gcc-4.2.5 11183 11183 > gcc-4.3.6 15501 17724 > gcc-4.4.7 13337 15693 > gcc-4.5.4 13162 15491 > gcc-4.6.4 14846 17302 > gcc-4.7.4 14187 16

[PATCH] staging: rtl8192u: Check some memory allocation failure

2017-09-22 Thread Christophe JAILLET
If one of these memory allocations fail, a NULL pointer dereference will occur later on. Return -ENOMEM instead. There is no need to free the resources already allocated, this is done by the caller (i.e. 'rtl8192_usb_probe()') which calls 'rtl8192_usb_deleteendpoints()'. The calling graph is: rtl

[PATCH net-next v2 1/3] net: dsa: use slave device phydev

2017-09-22 Thread Vivien Didelot
There is no need to store a phy_device in dsa_slave_priv since net_device already provides one. Simply s/p->phy/dev->phydev/. While at it, return -ENODEV when it is NULL instead of -EOPNOTSUPP. Signed-off-by: Vivien Didelot --- net/dsa/slave.c | 126 ++---

[PATCH net-next v2 0/3] net: dsa: use slave device phydev

2017-09-22 Thread Vivien Didelot
This patchset removes the private phy_device in favor of the one provided by the slave net_device, makes slave open and close symmetrical and finally provides helpers for enabling or disabling a DSA port. Changes in v2: - do not remove the phy argument from port enable/disable Vivien Didelot (3

[PATCH net-next v2 3/3] net: dsa: add port enable and disable helpers

2017-09-22 Thread Vivien Didelot
Provide dsa_port_enable and dsa_port_disable helpers to respectively enable and disable a switch port. This makes the dsa_port_set_state_now helper static. Signed-off-by: Vivien Didelot Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn --- net/dsa/dsa_priv.h | 3 ++- net/dsa/port.c |

[PATCH net-next v2 2/3] net: dsa: make slave close symmetrical to open

2017-09-22 Thread Vivien Didelot
The DSA slave open function configures the unicast MAC addresses on the master device, enable the switch port, change its STP state, then start the PHY device. Make the close function symmetric, by first stopping the PHY device, then changing the STP state, disabling the switch port and restore th

Re: [PATCH] auxdisplay: fix broken menus

2017-09-22 Thread Geert Uytterhoeven
Hi Randy, On Fri, Sep 22, 2017 at 8:23 PM, Randy Dunlap wrote: > On 09/22/17 11:15, Geert Uytterhoeven wrote: >> On Fri, Sep 22, 2017 at 6:24 PM, Randy Dunlap wrote: >>> From: Randy Dunlap >>> >>> Having the CHARLCD Kconfig symbol between "menuconfig AUXDISPLAY" >>> and "if AUXDISPLAY" breaks t

[PATCH 1/2] tools: slabinfo: add "-U" option to show unreclaimable slabs only

2017-09-22 Thread Yang Shi
Add "-U" option to show unreclaimable slabs only. "-U" and "-S" together can tell us what unreclaimable slabs use the most memory to help debug huge unreclaimable slabs issue. Signed-off-by: Yang Shi Acked-by: Christoph Lameter Acked-by: David Rientjes --- tools/vm/slabinfo.c | 11 ++-

[PATCH 2/2] mm: oom: show unreclaimable slab info when kernel panic

2017-09-22 Thread Yang Shi
Kernel may panic when oom happens without killable process sometimes it is caused by huge unreclaimable slabs used by kernel. Although kdump could help debug such problem, however, kdump is not available on all architectures and it might be malfunction sometime. And, since kernel already panic it

[PATCH 0/2 v6] oom: capture unreclaimable slab info in oom message when kernel panic

2017-09-22 Thread Yang Shi
Recently we ran into a oom issue, kernel panic due to no killable process. The dmesg shows huge unreclaimable slabs used almost 100% memory, but kdump doesn't capture vmcore due to some reason. So, it may sound better to capture unreclaimable slab info in oom message when kernel panic to aid tr

[GIT PULL] arch/tile bugfixes for 4.14-rc2

2017-09-22 Thread Chris Metcalf
Linus, Please pull the following two changes for 4.14-rc2 from: git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile.git master These are a code cleanup and config cleanup, respectively. Dan Carpenter (1): tile: array underflow in setup_maxnodemem() Krzysztof Kozlowski (1):

[PATCH 3/9] tracing: Exclude 'generic fields' from histograms

2017-09-22 Thread Tom Zanussi
There are a small number of 'generic fields' (comm/COMM/cpu/CPU) that are found by trace_find_event_field() but are only meant for filtering. Specifically, they unlike normal fields, they have a size of 0 and thus wreak havoc when used as a histogram key. Exclude these (return -EINVAL) when used

[PATCH 4/9] tracing: Remove lookups from tracing_map hitcount

2017-09-22 Thread Tom Zanussi
Lookups inflate the hitcount, making it essentially useless. Only inserts and updates should really affect the hitcount anyway, so explicitly filter lookups out. Signed-off-by: Tom Zanussi --- kernel/trace/tracing_map.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kerne

[PATCH 0/9] tracing: Bug fixes and minor cleanup

2017-09-22 Thread Tom Zanussi
Hi, This is a set of small fixes and cleanup patches that were originally part of V2 of the inter-event tracing patchset, along with 2 of Steve Rostedt's patches related to that patchset. The 'tracing: Steve's unofficial trace_recursive_lock() patch' patch is from Steve but not signed off on - he

[PATCH 1/9] tracing: Steve's unofficial trace_recursive_lock() patch

2017-09-22 Thread Tom Zanussi
From: Steven Rostedt On Tue, 5 Sep 2017 16:57:52 -0500 Tom Zanussi wrote: > Synthetic event generation requires the reservation of a second event > while the reservation of a previous event is still in progress. The > trace_recursive_lock() check in ring_buffer_lock_reserve() prevents > this

[PATCH 5/9] tracing: Increase tracing map KEYS_MAX size

2017-09-22 Thread Tom Zanussi
The current default for the number of subkeys in a compound key is 2, which is too restrictive. Increase it to a more realistic value of 3. Signed-off-by: Tom Zanussi --- kernel/trace/tracing_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/tracing_map.h b/

[PATCH 6/9] tracing: Make traceprobe parsing code reusable

2017-09-22 Thread Tom Zanussi
traceprobe_probes_write() and traceprobe_command() actually contain nothing that ties them to kprobes - the code is generically useful for similar types of parsing elsewhere, so separate it out and move it to trace.c/trace.h. Other than moving it, the only change is in naming: traceprobe_probes_wr

[PATCH 7/9] tracing: Clean up hist_field_flags enum

2017-09-22 Thread Tom Zanussi
As we add more flags, specifying explicit integers for the flag values becomes more unwieldy and error-prone - switch them over to left-shift values. Signed-off-by: Tom Zanussi --- kernel/trace/trace_events_hist.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff

[PATCH 8/9] tracing: Add hist_field_name() accessor

2017-09-22 Thread Tom Zanussi
In preparation for hist_fields that won't be strictly based on trace_event_fields, add a new hist_field_name() accessor to allow that flexibility and update associated users. Signed-off-by: Tom Zanussi --- kernel/trace/trace_events_hist.c | 67 +++- 1 file cha

[PATCH 9/9] tracing: Reimplement log2

2017-09-22 Thread Tom Zanussi
log2 as currently implemented applies only to u64 trace_event_field derived fields, and assumes that anything it's applied to is a u64 field. To prepare for synthetic fields like latencies, log2 should be applicable to those as well, so take the opportunity now to fix the current problems as well

Re: [PATCH net-next v2 1/3] net: dsa: use slave device phydev

2017-09-22 Thread Florian Fainelli
On 09/22/2017 12:40 PM, Vivien Didelot wrote: > There is no need to store a phy_device in dsa_slave_priv since > net_device already provides one. Simply s/p->phy/dev->phydev/. You can therefore remove the phy_device from dsa_slave_priv, see below for more comments. I will have to regress test the

[PATCH v3 00/33] tracing: Inter-event (e.g. latency) support

2017-09-22 Thread Tom Zanussi
Hi, This is V3 of the inter-event tracing patchset, addressing input from V2: - split out standalone bugfixes and cleanups to a separate patchset - moved hunks around and merged patches as suggested - added inter-event note in config option - updates to duplicates patch [Vedang Patel] -

[PATCH v3 02/33] tracing: Remove code which merges duplicates

2017-09-22 Thread Tom Zanussi
From: Vedang Patel We now have the logic to detect and remove duplicates in the tracing_map hash table. The code which merges duplicates in the histogram is redundant now. So, modify this code just to detect duplicates. The duplication detection code is still kept to ensure that any rare race con

[PATCH v3 04/33] ring-buffer: Redefine the unimplemented RINGBUF_TIME_TIME_STAMP

2017-09-22 Thread Tom Zanussi
RINGBUF_TYPE_TIME_STAMP is defined but not used, and from what I can gather was reserved for something like an absolute timestamp feature for the ring buffer, if not a complete replacement of the current time_delta scheme. This code redefines RINGBUF_TYPE_TIME_STAMP to implement absolute time stam

[PATCH v3 05/33] tracing: Give event triggers access to ring_buffer_event

2017-09-22 Thread Tom Zanussi
The ring_buffer event can provide a timestamp that may be useful to various triggers - pass it into the handlers for that purpose. Signed-off-by: Tom Zanussi --- include/linux/trace_events.h| 14 ++- kernel/trace/trace.h| 9 +++ kernel/trace/trace_events_hist

[PATCH v3 03/33] ring-buffer: Add interface for setting absolute time stamps

2017-09-22 Thread Tom Zanussi
Define a new function, tracing_set_time_stamp_abs(), which can be used to enable or disable the use of absolute timestamps rather than time deltas for a trace array. This resets the buffer to prevent a mix of time deltas and absolute timestamps. Only the interface is added here; a subsequent patc

[PATCH v3 06/33] tracing: Add ring buffer event param to hist field functions

2017-09-22 Thread Tom Zanussi
Some events such as timestamps require access to a ring_buffer_event struct; add a param so that hist field functions can access that. Signed-off-by: Tom Zanussi --- kernel/trace/trace_events_hist.c | 39 --- 1 file changed, 24 insertions(+), 15 deletions(-)

[PATCH v3 07/33] tracing: Break out hist trigger assignment parsing

2017-09-22 Thread Tom Zanussi
This will make it easier to add variables, and makes the parsing code cleaner regardless. Signed-off-by: Tom Zanussi Signed-off-by: Rajvi Jingar --- kernel/trace/trace_events_hist.c | 72 1 file changed, 51 insertions(+), 21 deletions(-) diff --git a/ke

[PATCH v3 08/33] tracing: Add hist trigger timestamp support

2017-09-22 Thread Tom Zanussi
Add support for a timestamp event field. This is actually a 'pseudo-' event field in that it behaves like it's part of the event record, but is really part of the corresponding ring buffer event. To make use of the timestamp field, users can specify "$common_timestamp" as a field name for any his

[PATCH v3 09/33] tracing: Add per-element variable support to tracing_map

2017-09-22 Thread Tom Zanussi
In order to allow information to be passed between trace events, add support for per-element variables to tracing_map. This provides a means for histograms to associate a value or values with an entry when it's saved or updated, and retrieved by a subsequent event occurrences. Variables can be se

[PATCH v3 10/33] tracing: Add hist_data member to hist_field

2017-09-22 Thread Tom Zanussi
Allow hist_data access via hist_field. Some users of hist_fields require or will require more access to the associated hist_data. Signed-off-by: Tom Zanussi --- kernel/trace/trace_events_hist.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/kernel/trace/trace

[PATCH v3 12/33] tracing: Add variable support to hist triggers

2017-09-22 Thread Tom Zanussi
Add support for saving the value of a current event's event field by assigning it to a variable that can be read by a subsequent event. The basic syntax for saving a variable is to simply prefix a unique variable name not corresponding to any keyword along with an '=' sign to any event field. Bot

[PATCH v3 11/33] tracing: Add usecs modifier for hist trigger timestamps

2017-09-22 Thread Tom Zanussi
Appending .usecs onto a common_timestamp field will cause the timestamp value to be in microseconds instead of the default nanoseconds. A typical latency histogram using usecs would look like this: # echo 'hist:keys=pid,prio:ts0=$common_timestamp.usecs ... # echo 'hist:keys=next_pid:wakeup_

[PATCH v3 14/33] tracing: Move get_hist_field_flags()

2017-09-22 Thread Tom Zanussi
Move get_hist_field_flags() to make it more easily accessible for new code (and keep the move separate from new functionality). Signed-off-by: Tom Zanussi --- kernel/trace/trace_events_hist.c | 44 1 file changed, 22 insertions(+), 22 deletions(-) diff -

[PATCH v3 13/33] tracing: Account for variables in named trigger compatibility

2017-09-22 Thread Tom Zanussi
Named triggers must also have the same set of variables in order to be considered compatible - update the trigger match test to account for that. The reason for this requirement is that named triggers with variables are meant to allow one or more events to set the same variable. Signed-off-by: To

[PATCH v3 15/33] tracing: Add simple expression support to hist triggers

2017-09-22 Thread Tom Zanussi
Add support for simple addition, subtraction, and unary expressions (-(expr) and expr, where expr = b-a, a+b, a+b+c) to hist triggers, in order to support a minimal set of useful inter-event calculations. These operations are needed for calculating latencies between events (timestamp1-timestamp0)

[PATCH v3 18/33] tracing: Add hist_field 'type' field

2017-09-22 Thread Tom Zanussi
Future support for synthetic events requires hist_field 'type' information, so add a field for that. Also, make other hist_field attribute usage consistent (size, is_signed, etc). Signed-off-by: Tom Zanussi --- kernel/trace/trace_events_hist.c | 33 + 1 file chan

[PATCH v3 17/33] tracing: Pass tracing_map_elt to hist_field accessor functions

2017-09-22 Thread Tom Zanussi
Some accessor functions, such as for variable references, require access to a corrsponding tracing_map_elt. Add a tracing_map_elt param to the function signature and update the accessor functions accordingly. Signed-off-by: Tom Zanussi --- kernel/trace/trace_events_hist.c | 91 +

Re: [PATCH net-next v2 1/3] net: dsa: use slave device phydev

2017-09-22 Thread Andrew Lunn
On Fri, Sep 22, 2017 at 03:40:43PM -0400, Vivien Didelot wrote: > There is no need to store a phy_device in dsa_slave_priv since > net_device already provides one. Simply s/p->phy/dev->phydev/. > > While at it, return -ENODEV when it is NULL instead of -EOPNOTSUPP. I just did a quick poll for cal

[PATCH v3 19/33] tracing: Add variable reference handling to hist triggers

2017-09-22 Thread Tom Zanussi
Add the necessary infrastructure to allow the variables defined on one event to be referenced in another. This allows variables set by a previous event to be referenced and used in expressions combining the variable values saved by that previous event and the event fields of the current event. Fo

[PATCH v3 20/33] tracing: Add hist trigger action hook

2017-09-22 Thread Tom Zanussi
Add a hook for executing extra actions whenever a histogram entry is added or updated. The default 'action' when a hist entry is added to a histogram is to update the set of values associated with it. Some applications may want to perform additional actions at that point, such as generate another

[PATCH v3 22/33] tracing: Add support for 'field variables'

2017-09-22 Thread Tom Zanussi
Users should be able to directly specify event fields in hist trigger 'actions' rather than being forced to explicitly create a variable for that purpose. Add support allowing fields to be used directly in actions, which essentially does just that - creates 'invisible' variables for each bare fiel

[PATCH v3 21/33] tracing: Add support for 'synthetic' events

2017-09-22 Thread Tom Zanussi
Synthetic events are user-defined events generated from hist trigger variables saved from one or more other events. To define a synthetic event, the user writes a simple specification consisting of the name of the new event along with one or more variables and their type(s), to the tracing/synthet

[PATCH v3 23/33] tracing: Add 'onmatch' hist trigger action support

2017-09-22 Thread Tom Zanussi
Add an 'onmatch(matching.event).(param list)' hist trigger action which is invoked with the set of variables or event fields named in the 'param list'. The result is the generation of a synthetic event that consists of the values contained in those variables and/or fields at the time the invoking

[PATCH v3 24/33] tracing: Add 'onmax' hist trigger action support

2017-09-22 Thread Tom Zanussi
Add an 'onmax(var).save(field,...)' hist trigger action which is invoked whenever an event exceeds the current maximum. The end result is that the trace event fields or variables specified as the onmax.save() params will be saved if 'var' exceeds the current maximum for that hist trigger entry. T

[PATCH v3 25/33] tracing: Allow whitespace to surround hist trigger filter

2017-09-22 Thread Tom Zanussi
The existing code only allows for one space before and after the 'if' specifying the filter for a hist trigger. Add code to make that more permissive as far as whitespace goes. Specifically, we want to allow spaces in the trigger itself now that we have additional syntax (onmatch/onmax) where spa

[PATCH v3 26/33] tracing: Add cpu field for hist triggers

2017-09-22 Thread Tom Zanussi
A common key to use in a histogram is the cpuid - add a new cpu 'synthetic' field for that purpose. This field is named cpu rather than $cpu or $common_cpu because 'cpu' already exists as a special filter field and it makes more sense to match that rather than add another name for the same thing.

[PATCH v3 28/33] tracing: Add 'last error' error facility for hist triggers

2017-09-22 Thread Tom Zanussi
With the addition of variables and actions, it's become necessary to provide more detailed error information to users about syntax errors. Add a 'last error' facility accessible via the erroring event's 'hist' file. Reading the hist file after an error will display more detailed information about

[PATCH v3 29/33] tracing: Add inter-event hist trigger Documentation

2017-09-22 Thread Tom Zanussi
Add background and details on inter-event hist triggers, including hist variables, synthetic events, and actions. Signed-off-by: Tom Zanussi Signed-off-by: Baohong Liu --- Documentation/trace/events.txt | 385 + 1 file changed, 385 insertions(+) diff --g

[PATCH v3 27/33] tracing: Add hist trigger support for variable reference aliases

2017-09-22 Thread Tom Zanussi
Add support for alias=$somevar where alias can be used as onmatch($alias). Aliases are a way of creating a new name for an existing variable, for flexibly in making naming more clear in certain cases. For example in the below the user perhaps feels that using $new_lat in the synthetic event invoc

[PATCH v3 32/33] tracing: Increase trace_recursive_lock() limit for synthetic events

2017-09-22 Thread Tom Zanussi
Synthetic event generation needs to happen while the current event is still in progress, so add 1 to the trace_recursive_lock() recursion limit to account for that. Because we also want to allow for the possibility of a synthetic event being generated from another synthetic event, add an additiona

[PATCH v3 31/33] tracing: Add a clock attribute for hist triggers

2017-09-22 Thread Tom Zanussi
The default clock if timestamps are used in a histogram is "global". If timestamps aren't used, the clock is irrelevant. Use the "clock=" param only if you want to override the default "global" clock for a histogram with timestamps. Signed-off-by: Tom Zanussi Signed-off-by: Rajvi Jingar --- Do

[PATCH v3 33/33] tracing: Add inter-event blurb to HIST_TRIGGERS config option

2017-09-22 Thread Tom Zanussi
So that users know that inter-event tracing is supported as part of the HIST_TRIGGERS option, include text to that effect in the help text. Signed-off-by: Tom Zanussi --- kernel/trace/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index

[PATCH v3 30/33] tracing: Make tracing_set_clock() non-static

2017-09-22 Thread Tom Zanussi
Allow tracing code outside of trace.c to access tracing_set_clock(). Some applications may require a particular clock in order to function properly, such as latency calculations. Also, add an accessor returning the current clock string. Signed-off-by: Tom Zanussi --- kernel/trace/trace.c | 2 +

[PATCH v3 16/33] tracing: Generalize per-element hist trigger data

2017-09-22 Thread Tom Zanussi
Up until now, hist triggers only needed per-element support for saving 'comm' data, which was saved directly as a private data pointer. In anticipation of the need to save other data besides 'comm', add a new hist_elt_data struct for the purpose, and switch the current 'comm'-related code over to

Re: [PATCH net-next 2/2] net: dsa: lan9303: Add basic offloading of unicast traffic

2017-09-22 Thread Andrew Lunn
> >I'm wondering how this is supposed to work. Please add a good comment > >here, since the hardware is forcing you to do something odd. > > > >Maybe it would be a good idea to save the STP state in chip. And then > >when chip->is_bridged is set true, change the state in the hardware to > >the sav

Re: [PATCH] auxdisplay: fix broken menus

2017-09-22 Thread Randy Dunlap
On 09/22/17 12:46, Geert Uytterhoeven wrote: > Hi Randy, > > On Fri, Sep 22, 2017 at 8:23 PM, Randy Dunlap wrote: >> On 09/22/17 11:15, Geert Uytterhoeven wrote: >>> On Fri, Sep 22, 2017 at 6:24 PM, Randy Dunlap wrote: From: Randy Dunlap Having the CHARLCD Kconfig symbol between

Re: [PATCH 0/8] [media] v4l2-core: Fine-tuning for some function implementations

2017-09-22 Thread SF Markus Elfring
> Sorry Markus, just stay away from the videobuf-* sources. Will the software evolution be continued for related source files? Are there any update candidates left over in the directory “v4l2-core”? Regards, Markus

[PATCH v3 01/33] tracing: Add support to detect and avoid duplicates

2017-09-22 Thread Tom Zanussi
From: Vedang Patel A duplicate in the tracing_map hash table is when 2 different entries have the same key and, as a result, the key_hash. This is possible due to a race condition in the algorithm. This race condition is inherent to the algorithm and not a bug. This was fine because, until now, w

[PATCH] staging: rtl8192u: Fix some error handling path

2017-09-22 Thread Christophe JAILLET
If 'rtl8192_usb_initendpoints()' fails, it may have allocated some resources that need to be freed. The corresponding is propagated up to 'rtl8192_usb_prob()'. So, in this function if an error code is returned by 'rtl8192_init()' we should call 'rtl8192_usb_deleteendpoints()'. Some error handling

[PATCH 2/9] tracing: Reverse the order of trace_types_lock and event_mutex

2017-09-22 Thread Tom Zanussi
From: "Steven Rostedt (VMware)" In order to make future changes where we need to call tracing_set_clock() from within an event command, the order of trace_types_lock and event_mutex must be reversed, as the event command will hold event_mutex and the trace_types_lock is taken from within tracing_

[PATCH v6 1/2] iio: dac: ds4422/ds4424 dac driver

2017-09-22 Thread Ismail H. Kose
This patch provides an iio device driver for DS4422/DS4424 chips that support two/four channel 7-bit Sink/Source Current DAC. Signed-off-by: Ismail H. Kose Signed-off-by: Ismail H. Kose --- v6: * Removed reference resistor parsing v5: * Removed unused variable v4: * Remov

<    3   4   5   6   7   8