Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-21 Thread Mikko Perttunen
On 21.02.2018 16:46, Guenter Roeck wrote: On 02/20/2018 11:15 PM, Mikko Perttunen wrote: AIUI, the PWM framework already exposes a sysfs node with period information. We should just use that instead of adding a new driver for this. I am kind of lost. Please explain. Are you saying that we sh

Re: [PATCH 1/4] drm/atomic: integrate modeset lock with private objects

2018-02-21 Thread Rob Clark
On Wed, Feb 21, 2018 at 10:07 AM, Ville Syrjälä wrote: > On Wed, Feb 21, 2018 at 09:54:49AM -0500, Rob Clark wrote: >> On Wed, Feb 21, 2018 at 9:49 AM, Ville Syrjälä >> wrote: >> > On Wed, Feb 21, 2018 at 09:37:21AM -0500, Rob Clark wrote: >> >> Follow the same pattern of locking as with other st

Re: [PATCH 1/4] drm/atomic: integrate modeset lock with private objects

2018-02-21 Thread Maarten Lankhorst
Hey, Op 21-02-18 om 15:37 schreef Rob Clark: > Follow the same pattern of locking as with other state objects. This > avoids boilerplate in the driver. I'm afraid this will prohibit any uses of this on i915, since it still uses legacy lock_all(). Oh well, afaict nothing in i915 uses private obj

回覆: [PATCH v3] Handle vendor defined behavior in tcpci_init, tcpci_set_vconn and export tcpci_irq. More operations can be extended in tcpci_data if needed. According to TCPCI specification, 4.4.5.2 RO

2018-02-21 Thread 李書帆
Hi Gerg, Thank you! I've fixed it and sent another email. Best Regards, * Shu-Fan Lee Richtek Technology Corporation TEL: +886-3-5526789 #2359 FAX: +886-3-5526612 * 寄件者:

Re: [PATCH v9 07/11] media: i2c: ov772x: Support frame interval handling

2018-02-21 Thread jacopo mondi
Hi Hans, On Wed, Feb 21, 2018 at 01:12:14PM +0100, Hans Verkuil wrote: [snip] > > +static int ov772x_g_frame_interval(struct v4l2_subdev *sd, > > + struct v4l2_subdev_frame_interval *ival) > > +{ > > + struct ov772x_priv *priv = to_ov772x(sd); > > + struct v4l2_f

Re: [PATCH 3/3] platform/chrome: mfd/cros_ec_dev: Add sysfs entry to set keyboard wake lid angle

2018-02-21 Thread Andy Shevchenko
On Wed, Feb 21, 2018 at 4:50 PM, Enric Balletbo i Serra wrote: > From: Gwendal Grignou > > This adds a sysfs attribute (/sys/class/chromeos/cros_ec/kb_wake_angle) > used to set and get the keyboard wake lid angle. This attribute is > present only if 2 accelerometers are controlled by the EC. > >

Re: [PATCH 1/7] ARM: disallow combining XIP and LTO

2018-02-21 Thread Nicolas Pitre
On Wed, 21 Feb 2018, Arnd Bergmann wrote: > On Wed, Feb 21, 2018 at 4:01 AM, Nicolas Pitre > wrote: > > On Tue, 20 Feb 2018, Arnd Bergmann wrote: > > > >> This fails during deflate_xip_data.sh > >> > >> /home/arnd/cross-gcc/bin/arm-linux-gnueabi-objcopy -O binary -R .comment > >> -S vmlinux

[PATCH v3 6/6] platform/x86: topstar-laptop: update copyright and fix some comments

2018-02-21 Thread Guillaume Douézan-Grard
Signed-off-by: Guillaume Douézan-Grard --- drivers/platform/x86/topstar-laptop.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/topstar-laptop.c b/drivers/platform/x86/topstar-laptop.c index bf9761092c7e..294729c98267 100644 --- a/drivers/platform/

[PATCH v3 4/6] platform/x86: topstar-laptop: add platform device

2018-02-21 Thread Guillaume Douézan-Grard
* add a platform device to support further addition of a led subsystem, * register the existing input device to this platform device Signed-off-by: Guillaume Douézan-Grard --- drivers/platform/x86/topstar-laptop.c | 59 +-- 1 file changed, 57 insertions(+), 2 del

[PATCH v3 5/6] platform/x86: topstar-laptop: add Topstar U931/RVP7 WLAN LED workaround

2018-02-21 Thread Guillaume Douézan-Grard
Topstar U931 laptops provide a LED synced with the WLAN adapter hard-blocking state. Unfortunately, some models seem to be defective, making impossible to hard-block the adapter with the WLAN switch and thus the LED is useless. An ACPI method is available to programmatically control this switch an

[PATCH v3 3/6] platform/x86: topstar-laptop: split ACPI events and input handling

2018-02-21 Thread Guillaume Douézan-Grard
* get the `acpi_device` from the `topstar_laptop` struct, * split input registering and `sparse_keymap` events from ACPI events handling, * use notify, init and exit functions for ACPI and input handling Signed-off-by: Guillaume Douézan-Grard --- drivers/platform/x86/topstar-laptop.c | 109 +++

Re: [PATCH 2/2] ARM: pinctrl: stm32: Optimizes and enhances stm32gpio irqchip

2018-02-21 Thread Alexandre Torgue
Maybe you could remove ARM from commit header. On 02/21/2018 02:50 PM, Radoslaw Pietrzyk wrote: - removes unneeded irq_chip.irq_eoi callback - adds irq_chip.irq_set_wake callback for possible in the future GPIO wakeup Signed-off-by: Radoslaw Pietrzyk --- drivers/pinct

[PATCH v3 2/6] platform/x86: topstar-laptop: use consistent naming scheme

2018-02-21 Thread Guillaume Douézan-Grard
* use module prefix naming scheme for functions and programming constructs, * consistent label names Signed-off-by: Guillaume Douézan-Grard --- drivers/platform/x86/topstar-laptop.c | 82 +-- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers

[PATCH v3 1/6] revert "topstar-laptop: convert to module_acpi_driver()"

2018-02-21 Thread Guillaume Douézan-Grard
Revert commit 15165594da65 ("topstar-laptop: convert to module_acpi_driver()") to later add a platform device. Signed-off-by: Guillaume Douézan-Grard --- drivers/platform/x86/topstar-laptop.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/platf

[PATCH v3 0/6] Topstar U931/RVP7 ACPI LED Workaround

2018-02-21 Thread Guillaume Douézan-Grard
Hi Andy, Thank you for your review. Changes since the previous submission are highlighted below. On Topstar U931/RVP7 Notebooks, an issue prevents the WLAN toggle key from being properly managed by the Embedded Controller and successfully disconnect the adapter. A specific ACPI method allows to t

Re: [PATCH] netlink: put module reference if dump start fails

2018-02-21 Thread Eric Dumazet
On Wed, 2018-02-21 at 15:54 +0100, Jason A. Donenfeld wrote: > On Wed, Feb 21, 2018 at 6:47 AM, Eric Dumazet wrote: > > > This probably should be queued up for stable. > > > > When was the bug added ? This would help a lot stable teams ... > > This needs to be backported to 4.16-rc0+, 4.15+, 4.1

Re: [PATCH 2/2] ARM: pinctrl: stm32: Optimizes and enhances stm32gpio irqchip

2018-02-21 Thread Alexandre Torgue
Hi Radoslaw, On 02/21/2018 02:50 PM, Radoslaw Pietrzyk wrote: - removes unneeded irq_chip.irq_eoi callback - adds irq_chip.irq_set_wake callback for possible in the future GPIO wakeup Signed-off-by: Radoslaw Pietrzyk --- drivers/pinctrl/stm32/pinctrl-stm32.c | 2 +-

Re: [PATCH] RDMA/core: reduce IB_POLL_BATCH constant

2018-02-21 Thread Chuck Lever
> On Feb 21, 2018, at 8:44 AM, Sagi Grimberg wrote: > > >>> On Tue, 2018-02-20 at 21:59 +0100, Arnd Bergmann wrote: /* # of WCs to poll for with a single call to ib_poll_cq */ -#define IB_POLL_BATCH 16 +#define IB_POLL_BATCH 8 >>> >>> The

Re: [PATCH RFC tools/lkmm 09/12] tools/memory-model: Add required herd7 version to README file

2018-02-21 Thread Alan Stern
On Tue, 20 Feb 2018, Paul E. McKenney wrote: > LKMM and the herd7 tool are co-evolving, and out-of-date herd7 tools > produce inaccurate results, often with no obvious error messages. This > commit therefore adds the required herd7 version to the LKMM README file. > > Longer term, it would be go

[PATCH] usb: phy-generic: Use gpiod_set_value_cansleep

2018-02-21 Thread Mike Looijmans
The nop_reset and shutdown methods are called in a context that can sleep, so use gpiod_set_value_cansleep instead of gpiod_set_value. If you've connected the reset line to a GPIO expander, you'd get a kernel "slowpath" warning with gpiod_set_value. Signed-off-by: Mike Looijmans --- drivers/usb

Re: [PATCH v3] arm64: Add support for new control bits CTR_EL0.DIC and CTR_EL0.IDC

2018-02-21 Thread Mark Rutland
On Wed, Feb 21, 2018 at 07:49:06AM -0600, Shanker Donthineni wrote: > The DCache clean & ICache invalidation requirements for instructions > to be data coherence are discoverable through new fields in CTR_EL0. > The following two control bits DIC and IDC were defined for this > purpose. No need to

Re: [PATCH RFC tools/lkmm 10/12] tools/memory-model: Add a S lock-based external-view litmus test

2018-02-21 Thread Alan Stern
On Tue, 20 Feb 2018, Paul E. McKenney wrote: > From: Alan Stern > > This commit adds a litmus test in which P0() and P1() form a lock-based S > litmus test, with the addition of P2(), which observes P0()'s and P1()'s Why do you call this an "S" litmus test? Isn't ISA2 a better description? >

Re: [PATCH 1/4] drm/atomic: integrate modeset lock with private objects

2018-02-21 Thread Ville Syrjälä
On Wed, Feb 21, 2018 at 09:54:49AM -0500, Rob Clark wrote: > On Wed, Feb 21, 2018 at 9:49 AM, Ville Syrjälä > wrote: > > On Wed, Feb 21, 2018 at 09:37:21AM -0500, Rob Clark wrote: > >> Follow the same pattern of locking as with other state objects. This > >> avoids boilerplate in the driver. > >

Re: [PATCH 2/3] platform/chrome: cros_ec_debugfs: Add PD port info to debugfs

2018-02-21 Thread Andy Shevchenko
On Wed, Feb 21, 2018 at 4:49 PM, Enric Balletbo i Serra wrote: > From: Shawn Nematbakhsh > > Add info useful for debugging USB-PD port state. This patch mixes up at least three things. Split it accordingly or drop unrelated changes. -- With Best Regards, Andy Shevchenko

Re: [PATCH v2 08/10] drm/panel: Add Huarui LHR050H41 panel driver

2018-02-21 Thread kbuild test robot
Hi Maxime, I love your patch! Perhaps something to improve: [auto build test WARNING on ] url: https://github.com/0day-ci/linux/commits/Maxime-Ripard/drm-sun4i-Allwinner-MIPI-DSI-support/20180221-203150 base: reproduce: # apt-get install sparse make ARCH=x86_64

[RFC PATCH] drm/panel: lhr050h41_init[] can be static

2018-02-21 Thread kbuild test robot
Fixes: dcfac3b68dfb ("drm/panel: Add Huarui LHR050H41 panel driver") Signed-off-by: Fengguang Wu --- panel-huarui-lhr050h41.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-huarui-lhr050h41.c b/drivers/gpu/drm/panel/panel-huarui-lhr050h41.c in

[PATCH v2 17/17] selftests: ftrace: Add a testcase for array type with kprobe_event

2018-02-21 Thread Masami Hiramatsu
Add a testcase for array type with kprobe event. This tests good/bad syntax combinations and also the traced data is correct in several way. If the kernel doesn't support array type, it skips the test as UNSUPPORTED. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/kprobe/kprobe_args_array.

Re: [PATCH 0/6] DISCONTIGMEM support for PPC32

2018-02-21 Thread Christophe LEROY
Le 21/02/2018 à 15:42, Jonathan Neuschäfer a écrit : Hi, On Wed, Feb 21, 2018 at 08:06:10AM +0100, Christophe LEROY wrote: Le 20/02/2018 à 17:14, Jonathan Neuschäfer a écrit : This patchset adds support for DISCONTIGMEM on 32-bit PowerPC. This is required to properly support the Nintendo W

[PATCH v2 15/17] selftests: ftrace: Add a testcase for symbol type

2018-02-21 Thread Masami Hiramatsu
Add a testcase for symbol type with kprobe event. This tests good/bad syntax combinations and also the traced data. If the kernel doesn't support symbol type, it skips the test as UNSUPPORTED. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/kprobe/kprobe_args_symbol.tc | 73 +

[PATCH v2 16/17] selftests: ftrace: Add a testcase for $argN with kprobe_event

2018-02-21 Thread Masami Hiramatsu
Add a testcase for array type with kprobe event. This tests whether the traced data is correct or not. If the kernel doesn't support array type, it skips the test as UNSUPPORTED. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/kprobe/kprobe_args_argN.tc | 25 1

Re: [PATCH] Make kernel taint on invalid module signatures configurable

2018-02-21 Thread Ben Hutchings
On Tue, 2018-02-20 at 20:37 +, Matthew Garrett wrote: > On Tue, Feb 20, 2018 at 11:21 AM Jessica Yu wrote: [...] > > In any case, I think I'd be willing to merge it as a module_param made > > available under CONFIG_MODULE_SIG=y (rather than as a new separate config > > option), while preservin

[PATCH] staging: typec: handle vendor defined part and modify drp toggling flow

2018-02-21 Thread ShuFanLee
From: ShuFanLee Handle vendor defined behavior in tcpci_init, tcpci_set_vconn and export tcpci_irq. More operations can be extended in tcpci_data if needed. According to TCPCI specification, 4.4.5.2 ROLE_CONTROL, TCPC shall not start DRP toggling until subsequently the TCPM writes to the COMMAND

[PATCH v2 14/17] tracing: probeevent: Add array type support

2018-02-21 Thread Masami Hiramatsu
Add array type support for probe events. This allows user to get arraied types from memory address. The array type syntax is TYPE[N] Where TYPE is one of types (u8/16/32/64,s8/16/32/64, x8/16/32/64, symbol, string) and N is a fixed value less than 64. The string array type is a bit diffe

RE: [RFC PATCH] mmc: sdhci-of-arasan: Add auto tuning support for ZynqMP Platform

2018-02-21 Thread Manish Narani
Hi Adrian, > -Original Message- > From: Manish Narani > Sent: Wednesday, February 21, 2018 11:39 AM > To: Adrian Hunter ; michal.si...@xilinx.com; > ulf.hans...@linaro.org; linux-arm-ker...@lists.infradead.org; linux- > m...@vger.kernel.org; linux-kernel@vger.kernel.org; > devicet...@vger.

[PATCH v2 13/17] tracing: probeevent: Add $argN for accessing function args

2018-02-21 Thread Masami Hiramatsu
Add $argN special fetch variable for accessing function arguments. This allows user to trace the Nth argument easily at the function entry. Note that this returns most probably assignment of registers and stacks. In some case, it may not work well. If you need to access correct registers or stacks

[PATCH v2 12/17] x86: ptrace: Add function argument access API

2018-02-21 Thread Masami Hiramatsu
Add regs_get_argument() which returns N th argument of the function call. Note that this chooses most probably assignment, in some case it can be incorrect (e.g. passing data structure or floating point etc.) This is expected to be called from kprobes or ftrace with regs where the top of stack is

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-21 Thread Alan Stern
On Fri, 16 Feb 2018, Paul E. McKenney wrote: > On Fri, Feb 16, 2018 at 05:22:55PM -0500, Alan Stern wrote: > > Since commit 76ebbe78f739 ("locking/barriers: Add implicit > > smp_read_barrier_depends() to READ_ONCE()") was merged for the 4.15 > > kernel, it has not been necessary to use smp_read_ba

[PATCH v2 11/17] tracing: probeevent: Add symbol type

2018-02-21 Thread Masami Hiramatsu
Add "symbol" type to probeevent, which is an alias of u32 or u64 (depends on BITS_PER_LONG). This shows the result value in symbol+offset style. This type is only available with kprobe events. Signed-off-by: Masami Hiramatsu --- Changes in v2: - Add symbol type to README file. --- Documentati

[PATCH v2 10/17] tracing: probeevent: Unify fetch_insn processing common part

2018-02-21 Thread Masami Hiramatsu
Unify the fetch_insn bottom process (from stage 2: dereference indirect data) from kprobe and uprobe events, since those are mostly same. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 47 + kernel/trace/trace_probe_tmpl.h | 55 +

[PATCH v2 08/17] tracing: probeevent: Return consumed bytes of dynamic area

2018-02-21 Thread Masami Hiramatsu
Cleanup string fetching routine so that returns the consumed bytes of dynamic area and store the string information as data_loc format instead of data_rloc. This simplifies the fetcharg loop. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 51 +++--

[PATCH v2 09/17] tracing: probeevent: Append traceprobe_ for exported function

2018-02-21 Thread Masami Hiramatsu
Append traceprobe_ for exported function set_print_fmt() as same as other functions. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c |4 ++-- kernel/trace/trace_probe.c |2 +- kernel/trace/trace_probe.h |2 +- kernel/trace/trace_uprobe.c |4 ++-- 4 files changed

Re: [PATCH 05/10] dt-bindings: gpio: Add gpio nodes for Actions S900 SoC

2018-02-21 Thread Manivannan Sadhasivam
Hi Rob, On Mon, Feb 19, 2018 at 02:35:23PM -0600, Rob Herring wrote: > On Sun, Feb 18, 2018 at 02:14:28AM +0530, Manivannan Sadhasivam wrote: > > Add gpio nodes for Actions Semi S900 SoC. > > > > Signed-off-by: Manivannan Sadhasivam > > --- > > .../devicetree/bindings/gpio/actions,owl-gpio.txt

Re: [PATCH] floppy: Don't print kernel addresses to log in show_floppy

2018-02-21 Thread Andy Shevchenko
On Wed, Feb 21, 2018 at 12:54 AM, Brian Belleville wrote: > Outputting kernel addresses will reveal the locations of kernel code > and data. Change the cases in show_floppy that print > fd_timer.work.func and fd_timeout.work.func to use the %pf format > specifier, which will print the symbol name,

[PATCH v2 07/17] tracing: probeevent: Introduce new argument fetching code

2018-02-21 Thread Masami Hiramatsu
Replace {k,u}probe event argument fetching framework with switch-case based. Currently that is implemented with structures, macros and chain of function-pointers, which is more complicated than necessary and may get a performance penalty by retpoline. This simplify that with an array of "fetch_ins

[PATCH v2 06/17] tracing: probeevent: Remove NOKPROBE_SYMBOL from print functions

2018-02-21 Thread Masami Hiramatsu
Remove unneeded NOKPROBE_SYMBOL from print functions since the print functions are only used when printing out the trace data, and not from kprobe handler. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_probe.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ker

Re: [PATCH 04/10] pinctrl: actions: Add Actions S900 pinctrl driver

2018-02-21 Thread Manivannan Sadhasivam
Hi Philippe, On Tue, Feb 20, 2018 at 08:53:22AM +0100, Philippe Ombredanne wrote: > Dear Manivannan, > > On Sat, Feb 17, 2018 at 9:44 PM, Manivannan Sadhasivam > wrote: > > Add pinctrl driver for Actions Semi S900 SoC. The driver supports > > pinctrl, pinmux and pinconf functionalities through a

[PATCH v2 05/17] tracing: probeevent: Cleanup argument field definition

2018-02-21 Thread Masami Hiramatsu
Cleanup event argument definition code in one place for maintenancability. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 32 kernel/trace/trace_probe.c | 21 + kernel/trace/trace_probe.h |2 ++ kernel/trace/trace_

[PATCH v2 04/17] tracing: probeevent: Cleanup print argument functions

2018-02-21 Thread Masami Hiramatsu
Current print argument functions prints the argument name too. It is not good for printing out multiple values for one argument. This change it to just print out the value. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 20 ++-- kernel/trace/trace_probe.c |

Re: [PATCH 08/10] gpio: Add gpio driver for Actions OWL S900 SoC

2018-02-21 Thread Manivannan Sadhasivam
Hi Philippe, On Tue, Feb 20, 2018 at 08:55:57AM +0100, Philippe Ombredanne wrote: > Manivannan, > > On Sat, Feb 17, 2018 at 9:44 PM, Manivannan Sadhasivam > wrote: > > Add gpio driver for Actions Semi OWL family S900 SoC. Set of registers > > controlling the gpio shares the same register range wi

[PATCH v2 03/17] selftests: ftrace: Add a testcase for string type with kprobe_event

2018-02-21 Thread Masami Hiramatsu
Add a testcase for string type with kprobe event. This tests good/bad syntax combinations and also the traced data is correct in several way. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/kprobe/kprobe_args_string.tc | 46 1 file changed, 46 insertions(+) crea

[PATCH V2] powerpc/powernv : Add support to enable sensor groups

2018-02-21 Thread Shilpasri G Bhat
Adds support to enable/disable a sensor group. This can be used to select the sensor groups that needs to be copied to main memory by OCC. Sensor groups like power, temperature, current, voltage, frequency, utilization can be enabled/disabled at runtime. Signed-off-by: Shilpasri G Bhat --- Change

[PATCH v2 02/17] selftests: ftrace: Add probe event argument syntax testcase

2018-02-21 Thread Masami Hiramatsu
Add a testcase for probe event argument syntax which ensures the kprobe_events interface correctly parses given event arguments. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/kprobe/kprobe_args_syntax.tc | 97 1 file changed, 97 insertions(+) create mode 10064

[PATCH v2 01/17] tracing: probeevent: Fix to support minus offset from symbol

2018-02-21 Thread Masami Hiramatsu
In Documentation/trace/kprobetrace.txt, it says @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol) However, the parser doesn't parse minus offset correctly. This fixes the parser to get minus offset correctly. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kpro

Re: [PATCH 1/4] drm/atomic: integrate modeset lock with private objects

2018-02-21 Thread Rob Clark
On Wed, Feb 21, 2018 at 9:49 AM, Ville Syrjälä wrote: > On Wed, Feb 21, 2018 at 09:37:21AM -0500, Rob Clark wrote: >> Follow the same pattern of locking as with other state objects. This >> avoids boilerplate in the driver. > > I'm not sure we really want to do this. What if the driver wants a >

[PATCH v2 00/17] tracing: probeevent: Improve fetcharg features

2018-02-21 Thread Masami Hiramatsu
Hi, This is the 2nd version of the fetch-arg improvement series. This includes variable changes on fetcharg framework like, - Add fetcharg testcases (syntax, argN, symbol, string and array) - Rewrite fetcharg framework with fetch_insn, switch-case based instead of function pointer. - Add "symbo

Re: [PATCH] netlink: put module reference if dump start fails

2018-02-21 Thread Jason A. Donenfeld
On Wed, Feb 21, 2018 at 6:47 AM, Eric Dumazet wrote: >> This probably should be queued up for stable. > > When was the bug added ? This would help a lot stable teams ... This needs to be backported to 4.16-rc0+, 4.15+, 4.14+, 4.13.14+, and 4.9.63+.

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-02-21 Thread Tommi Rantala
On 20.02.2018 18:26, Neil Horman wrote: On Tue, Feb 20, 2018 at 09:14:41AM +0100, Dmitry Vyukov wrote: On Tue, Feb 20, 2018 at 8:56 AM, Tommi Rantala wrote: On 19.02.2018 20:59, Dmitry Vyukov wrote: Is this meant to be fixed already? I am still seeing this on the latest upstream tree. Thes

Re: [PATCH v2 1/2] KVM: x86: Add a framework for supporting MSR-based features

2018-02-21 Thread Tom Lendacky
On 2/21/2018 8:47 AM, Tom Lendacky wrote: > On 2/21/2018 8:32 AM, Paolo Bonzini wrote: >> On 21/02/2018 15:15, Tom Lendacky wrote: >>> On 2/21/2018 5:41 AM, Paolo Bonzini wrote: On 16/02/2018 00:12, Tom Lendacky wrote: > +static u32 msr_based_features[] = { > +}; > + > +static

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-21 Thread Guenter Roeck
On 02/20/2018 10:58 PM, Rajkumar Rampelli wrote: Add generic PWM based tachometer driver via HWMON interface to report the RPM of motor. This drivers get the period/duty cycle from PWM IP which captures the motor PWM output. This driver implements a simple interface for monitoring the speed of a

[PATCH 3/3] platform/chrome: mfd/cros_ec_dev: Add sysfs entry to set keyboard wake lid angle

2018-02-21 Thread Enric Balletbo i Serra
From: Gwendal Grignou This adds a sysfs attribute (/sys/class/chromeos/cros_ec/kb_wake_angle) used to set and get the keyboard wake lid angle. This attribute is present only if 2 accelerometers are controlled by the EC. This patch also moves the cros_ec features check before the device is added

[PATCH 1/3] platform/chrome: cros_ec_sysfs: Modify error handling

2018-02-21 Thread Enric Balletbo i Serra
From: Gwendal Grignou When accessing a sysfs attribute, if the EC command fails, -EPROTO is now returned instead of an error message as it is unlikely an app is parsing the error message to do something meaningful. Also, this patch makes use of cros_ec_cmd_xfer_status() instead of cros_ec_cmd_xfe

Re: [RESEND PATCH v2 2/2] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-02-21 Thread Andy Shevchenko
On Tue, Feb 20, 2018 at 7:44 PM, Kirill Marinushkin wrote: > Clock gating parameter is a part of `dai_fmt`. It is supported by > `alsa-lib` when creating a topology binary file, but ignored by kernel > when loading this topology file. > + /* clock gating */ > + if (hw_

[PATCH 2/3] platform/chrome: cros_ec_debugfs: Add PD port info to debugfs

2018-02-21 Thread Enric Balletbo i Serra
From: Shawn Nematbakhsh Add info useful for debugging USB-PD port state. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_debugfs.c | 86 +-- 1 file changed, 82 insertions(+), 4 deletions(-) diff --git a/dr

Re: [PATCH 1/4] drm/atomic: integrate modeset lock with private objects

2018-02-21 Thread Ville Syrjälä
On Wed, Feb 21, 2018 at 09:37:21AM -0500, Rob Clark wrote: > Follow the same pattern of locking as with other state objects. This > avoids boilerplate in the driver. I'm not sure we really want to do this. What if the driver wants a custom locking scheme for this state? > > Signed-off-by: Rob C

[PATCH 0/3] platform/chrome: cros_ec debugfs and sysfs updates

2018-02-21 Thread Enric Balletbo i Serra
Hi, This patchset is another recopilation of some patches that were send before but never merged. First patch was already sent [1] but did not receive feedback so I am resending it. Needs to go throught platform/chrome tree and can be picked without dependencies. The second patch is new, like th

Re: [PATCH v2 05/10] drm/sun4i: Add Allwinner A31 MIPI-DSI controller support

2018-02-21 Thread kbuild test robot
Hi Maxime, I love your patch! Perhaps something to improve: [auto build test WARNING on ] url: https://github.com/0day-ci/linux/commits/Maxime-Ripard/drm-sun4i-Allwinner-MIPI-DSI-support/20180221-203150 base: config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc

Re: [PATCH 0/2] Stackleak for arm64

2018-02-21 Thread Alexander Popov
On 21.02.2018 04:13, Laura Abbott wrote: > This is the arm64 version of the STACKLEAK plugin originall from > grsecurity. See > https://marc.info/?l=kernel-hardening&m=151880470609808 for the > full x86 version. This is based on top of Kees' branch for stackleak > and has been cleaned up to use a f

Re: [PATCH v2 1/2] KVM: x86: Add a framework for supporting MSR-based features

2018-02-21 Thread Tom Lendacky
On 2/21/2018 8:32 AM, Paolo Bonzini wrote: > On 21/02/2018 15:15, Tom Lendacky wrote: >> On 2/21/2018 5:41 AM, Paolo Bonzini wrote: >>> On 16/02/2018 00:12, Tom Lendacky wrote: +static u32 msr_based_features[] = { +}; + +static unsigned int num_msr_based_features = ARRAY_S

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-21 Thread Guenter Roeck
On 02/20/2018 11:15 PM, Mikko Perttunen wrote: AIUI, the PWM framework already exposes a sysfs node with period information. We should just use that instead of adding a new driver for this. I am kind of lost. Please explain. Are you saying that we should drop the pwm-fan driver as well (whic

Re: [PATCH 4.4 00/33] 4.4.117-stable review

2018-02-21 Thread Nathan Chancellor
On Wed, Feb 21, 2018 at 01:44:43PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.117 release. > There are 33 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH] RDMA/core: reduce IB_POLL_BATCH constant

2018-02-21 Thread Max Gurtovoy
On 2/21/2018 3:44 PM, Sagi Grimberg wrote: On Tue, 2018-02-20 at 21:59 +0100, Arnd Bergmann wrote: /* # of WCs to poll for with a single call to ib_poll_cq */ -#define IB_POLL_BATCH    16 +#define IB_POLL_BATCH    8 The purpose of batch polling is to minimize contention on

Re: [PATCH 1/6] powerpc/mm/32: Use pfn_valid to check if pointer is in RAM

2018-02-21 Thread Jonathan Neuschäfer
On Wed, Feb 21, 2018 at 02:51:19PM +0100, Jonathan Neuschäfer wrote: [...] > While looking through arch/powerpc/mm, I noticed that there's a > page_is_ram function, which simply uses the memblocks directly, on > PPC32. Oops, I misread the code here. memblock is used on PPC64. > It seems like a go

Re: [tip:x86/pti] objtool, retpolines: Integrate objtool with retpoline support more closely

2018-02-21 Thread Peter Zijlstra
On Wed, Feb 21, 2018 at 10:59:14AM +, David Woodhouse wrote: > On Wed, 2018-02-21 at 02:34 -0800, tip-bot for Peter Zijlstra wrote: > > > > --- a/Makefile > > +++ b/Makefile > > @@ -489,6 +489,11 @@ KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) > >  KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_

Re: mainline build: 15 warnings 0 failures (mainline/v4.16-rc2-64-gaf3e79d)

2018-02-21 Thread Kishon Vijay Abraham I
On Wednesday 21 February 2018 06:12 PM, Arnd Bergmann wrote: > On Tue, Feb 20, 2018 at 7:34 PM, Olof's autobuilder wrote: >> Here are the build results from automated periodic testing. >> >> The tree being built was mainline, found at: >> >> URL: git://git.kernel.org/pub/scm/linux/kernel/git/tor

Re: [PATCH 0/6] DISCONTIGMEM support for PPC32

2018-02-21 Thread Jonathan Neuschäfer
Hi, On Wed, Feb 21, 2018 at 08:06:10AM +0100, Christophe LEROY wrote: > > > Le 20/02/2018 à 17:14, Jonathan Neuschäfer a écrit : > > This patchset adds support for DISCONTIGMEM on 32-bit PowerPC. This is > > required to properly support the Nintendo Wii's memory layout, in which > > there are tw

[PATCH v2] crypto: ccp: add check to get PSP master only when PSP is detected

2018-02-21 Thread Brijesh Singh
Paulian reported the below kernel crash on Ryzen 5 system: BUG: unable to handle kernel NULL pointer dereference at 0073 RIP: 0010:.LC0+0x41f/0xa00 RSP: 0018:a9968003bdd0 EFLAGS: 00010002 RAX: b113b130 RBX: RCX: 05a7 RDX: 00ff RSI: f

[PATCH 4.9 06/77] jbd2: fix sphinx kernel-doc build warnings

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tobin C. Harding commit f69120ce6c024aa634a8fc25787205e42f0ccbe6 upstream. Sphinx emits various (26) warnings when building make target 'htmldocs'. Currently struct definitions contain duplicat

[PATCH 4.9 18/77] Btrfs: fix deadlock in run_delalloc_nocow

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit e89166990f11c3f21e1649d760dd35f9e410321c upstream. @cur_offset is not set back to what it should be (@cow_start) if btrfs_next_leaf() returns something wrong, and the range [cow_s

[PATCH 4.9 17/77] target/iscsi: avoid NULL dereference in CHAP auth error path

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: David Disseldorp commit ce512d79d0466a604793addb6b769d12ee326822 upstream. If chap_server_compute_md5() fails early, e.g. via CHAP_N mismatch, then crypto_free_shash() is called with a NULL poi

[PATCH 4.9 16/77] rtlwifi: rtl8821ae: Fix connection lost problem correctly

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit c713fb071edc0efc01a955f65a006b0e1795d2eb upstream. There has been a coding error in rtl8821ae since it was first introduced, namely that an 8-bit register was read using a 1

[PATCH 4.9 19/77] Btrfs: fix crash due to not cleaning up tree log blocks dirty bits

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit 1846430c24d66e85cc58286b3319c82cd54debb2 upstream. In cases that the whole fs flips into readonly status due to failures in critical sections, then log tree's blocks are still dir

[PATCH 4.9 22/77] Btrfs: fix unexpected -EEXIST when creating new inode

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit 900c9981680067573671ecc5cbfa7c5770be3a40 upstream. The highest objectid, which is assigned to new inode, is decided at the time of initializing fs roots. However, in cases where

Re: [PATCH] arm64: cpufeature: Trim feature reporting and include PAN emulation

2018-02-21 Thread Mark Rutland
On Wed, Feb 21, 2018 at 11:18:27AM +, Dave Martin wrote: > On Tue, Feb 20, 2018 at 02:46:24PM -0800, Kees Cook wrote: > > The PAN emulation notification was only happening for non-boot CPUs > > if CPU capabilities had already been configured. This seems to be the > > wrong place, as it's system

Re: [PATCH 2/2] perf, tools, stat: Reset ids counter when retrying events

2018-02-21 Thread Jiri Olsa
On Wed, Feb 21, 2018 at 11:00:02AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Oct 05, 2017 at 07:00:29PM -0700, Andi Kleen escreveu: > > From: Andi Kleen > > > > perf stat can retry opening events. After opening an file descriptor > > it adds the ids to the ecsel. Each event keeps a running

Re: [PATCH v3] Handle vendor defined behavior in tcpci_init, tcpci_set_vconn and export tcpci_irq. More operations can be extended in tcpci_data if needed. According to TCPCI specification, 4.4.5.2 RO

2018-02-21 Thread Greg KH
On Wed, Feb 21, 2018 at 10:30:34PM +0800, ShuFanLee wrote: > From: ShuFanLee > > Signed-off-by: ShuFanLee Something went really wrong with your subject line :( Please fix and try again. thanks, greg k-h

[PATCH 3/4] drm/msm/mdp5: Use the new private_obj state

2018-02-21 Thread Rob Clark
From: Archit Taneja This replaces the usage of the subclassed atomic state (mdp5_state) with a private_obj state embedded within drm_atomic_state. The latter method is the preferred approach, since it's simpler to implement and less prone to errors. The new API replaces the older and equivalent

[PATCH 4/4] drm/msm: Don't subclass drm_atomic_state anymore

2018-02-21 Thread Rob Clark
From: Archit Taneja With the addition of "private_objs" in drm_atomic_state, we no longer need to subclass drm_atomic_state to store state of share resources that don't perfectly fit within planes/crtc/connector state information. We can now save this state within drm_atomic_state itself using th

Re: [PATCH v2 2/7] i3c: Add core I3C infrastructure

2018-02-21 Thread Greg Kroah-Hartman
On Wed, Feb 21, 2018 at 03:22:48PM +0100, Boris Brezillon wrote: > Hi Greg, > > On Tue, 19 Dec 2017 10:36:43 +0100 > Greg Kroah-Hartman wrote: > > > On Tue, Dec 19, 2017 at 10:28:58AM +0100, Boris Brezillon wrote: > > > On Tue, 19 Dec 2017 10:21:19 +0100 > > > Greg Kroah-Hartman wrote: > > >

Re: [PATCH 1/2] perf, tools, stat: Use xyarray dimensions to iterate fds

2018-02-21 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 21, 2018 at 03:33:11PM +0100, Jiri Olsa escreveu: > On Thu, Oct 05, 2017 at 07:00:28PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > Now that the xyarray stores the dimensions we can use those > > to iterate over the FDs for a evsel. > > > > Signed-off-by: Andi Kleen > > Ac

[PATCH 2/4] drm/msm/mdp5: Add global state as a private atomic object

2018-02-21 Thread Rob Clark
From: Archit Taneja Global shared resources (hwpipes, hwmixers and SMP) for MDP5 are implemented as a part of atomic state by subclassing drm_atomic_state. The preferred approach is to use the drm_private_obj infrastructure available in the atomic core. mdp5_global_state is introduced as a drm

[PATCH 1/4] drm/atomic: integrate modeset lock with private objects

2018-02-21 Thread Rob Clark
Follow the same pattern of locking as with other state objects. This avoids boilerplate in the driver. Signed-off-by: Rob Clark --- drivers/gpu/drm/drm_atomic.c | 9 - include/drm/drm_atomic.h | 5 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/

Re: [PATCH 2/2] perf, tools, stat: Reset ids counter when retrying events

2018-02-21 Thread Jiri Olsa
On Wed, Feb 21, 2018 at 11:33:37AM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Feb 21, 2018 at 03:31:17PM +0100, Jiri Olsa escreveu: > > On Thu, Oct 05, 2017 at 07:00:29PM -0700, Andi Kleen wrote: > > > From: Andi Kleen > > > > ouch, sry for overlooking this > > > > > > > > perf stat can r

[PATCH 4.9 07/77] ext4: fix a race in the ext4 shutdown path

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Harshad Shirwadkar commit abbc3f9395c76d554a9ed27d4b1ebfb5d9b0e4ca upstream. This patch fixes a race between the shutdown path and bio completion handling. In the ext4 direct io path with async

[PATCH 4.9 26/77] ALSA: usb-audio: Fix UAC2 get_ctl request with a RANGE attribute

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kirill Marinushkin commit 447cae58cecd69392b74a4a42cd0ab9cabd816af upstream. The layout of the UAC2 Control request and response varies depending on the request type. With the current implement

[PATCH] crypto: ccp: add check to get PSP master only when PSP is detected

2018-02-21 Thread Brijesh Singh
Paulian reported the below kernel crash on Ryzen 5 system: BUG: unable to handle kernel NULL pointer dereference at 0073 RIP: 0010:.LC0+0x41f/0xa00 RSP: 0018:a9968003bdd0 EFLAGS: 00010002 RAX: b113b130 RBX: RCX: 05a7 RDX: 00ff RSI: f

[PATCH 4.9 28/77] ALSA: hda/realtek: PCI quirk for Fujitsu U7x7

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jan-Marek Glogowski commit fdcc968a3b290407bcba9d4c90e2fba6d8d928f1 upstream. These laptops have a combined jack to attach headsets, the U727 on the left, the U757 on the right, but a headsets

[PATCH 4.9 33/77] dm: correctly handle chained bios in dec_pending()

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 8dd601fa8317243be887458c49f6c29c2f3d719f upstream. dec_pending() is given an error status (possibly 0) to be recorded against a bio. It can be called several times on the one

[PATCH 4.9 34/77] powerpc: fix build errors in stable tree

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Piggin This is just the first chunk of commit 222f20f140623ef6033491d0103ee0875fe87d35 upstream. to fix a build error in the powerpc tree due to other backports happening (and this ful

[PATCH 4.9 35/77] IB/qib: Fix comparison error with qperf compare/swap test

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Mike Marciniszyn commit 87b3524cb5058fdc7c2afdb92bdb2e079661ddc4 upstream. This failure exists with qib: ver_rc_compare_swap: mismatch, sequence 2, expected 123456789abcdef, got 0 The request

[PATCH 4.9 36/77] IB/mlx4: Fix incorrectly releasing steerable UD QPs when have only ETH ports

2018-02-21 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Jack Morgenstein commit 852f6927594d0d3e8632c889b2ab38cbc46476ad upstream. Allocating steerable UD QPs depends on having at least one IB port, while releasing those QPs does not. As a result,

<    4   5   6   7   8   9   10   11   12   13   >