[PATCH] scsi: replace broken specification URL

2016-07-01 Thread Michael Opdenacker
The t10.org website containing SCSI-2 draft specifications now requires to be from a member company to access the documents. This replaces the now broken link with another public resource where the specifications can be found. Signed-off-by: Michael Opdenacker --- Documentation/DocBook/scsi.tmp

[git pull] drm amd/intel fixes

2016-07-01 Thread Dave Airlie
Hi Linus, Just some AMD and Intel fixes, the AMD ones are further production Polaris fixes, and the Intel ones fix some early timeouts, some PCI ID changes and a couple of other fixes. Still a bit Internet challenged here, hopefully end of next week will solve it. Dave. The following changes

[PATCH 2/2] nfsd: remove extraneous KERN_INFO prefix

2016-07-01 Thread Christophe JAILLET
smatch complains about using KERN_INFO as a prefix when calling dprintk Signed-off-by: Christophe JAILLET --- fs/nfsd/nfs4state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index bc2173a..ba6b2df 100644 --- a/fs/nfsd/nfs4state.c

[PATCH 1/2] nfsd: Fix some indent inconsistancy

2016-07-01 Thread Christophe JAILLET
Silent a few smatch warnings about indentation Signed-off-by: Christophe JAILLET --- fs/nfsd/nfs4state.c | 2 +- fs/nfsd/nfsfh.c | 2 +- fs/nfsd/nfsxdr.c| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index ebfcebd..bc2173a

Re: [Intel-gfx] Bad flicker on skylake HQD due to code in the 4.7 merge window

2016-07-01 Thread Thorsten Leemhuis
On 23.06.2016 13:25, James Bottomley wrote: > On Tue, 2016-06-21 at 17:00 -0400, James Bottomley wrote: >> On Tue, 2016-06-21 at 18:44 +0300, Ville Syrjälä wrote: >>> On Tue, Jun 21, 2016 at 09:53:15AM -0400, James Bottomley wrote: On Mon, 2016-06-20 at 11:03 +0300, Jani Nikula wrote: > Cc

Re: [PATCH 00/21] Support qcom's HSIC USB and rewrite USB2 HS phy support

2016-07-01 Thread John Stultz
On Tue, Jun 28, 2016 at 1:34 AM, Stephen Boyd wrote: > Quoting John Stultz (2016-06-27 20:09:30) >> >> I haven't yet been able to test with this, as I need some other fixes >> it seems too to deal with some of the iommu changes in my flo-WIP tree >> (it can't find of_dma_configure), but will let y

[PATCH] net-next: mediatek: fix compile error inside mtk_poll_controller()

2016-07-01 Thread John Crispin
commit 8067302973a1 ("net-next: mediatek: add support for IRQ grouping") failed to properly update the irq handling inside mtk_poll_controller() causing compile errors if netconsole was enabled. Fix this by updating the code to use the new separated irq handler function for RX. Signed-off-by: John

Re: [PATCH] extcon: adc-jack: add suspend/resume support

2016-07-01 Thread Chanwoo Choi
Hi Venkat, Applied it. Thanks, Chanwoo Choi 2016-06-30 17:54 GMT+09:00 Venkat Reddy Talla : > adding suspend and resume funtionality for extcon-adc-jack > driver to configure system wake up for extcon events, > also adding support to enable/disable system wakeup > through flag wakeup_source bas

[PATCH] device-tree: nexus7: Set phy mode to otg instead of host

2016-07-01 Thread John Stultz
In order to have the usb phy work in gadget mode, override the default host mode with otg mode. This allows gadget mode to work w/o any hacks to the dtsi file. Cc: Rob Herring Cc: Andy Gross Cc: Bjorn Andersson Cc: Stephen Boyd Cc: linux-arm-...@vger.kernel.org Cc: devicet...@vger.kernel.org

Re: [PATCH 03/12] PM,devfreq: Employ atomic_fetch_inc()

2016-07-01 Thread Chanwoo Choi
Hi Davidlohr, Acked-by: Chanwoo Choi Thanks, Chanwoo Choi 2016-06-21 5:05 GMT+09:00 Davidlohr Bueso : > Now that we have fetch_inc() we can stop using inc_return() - 1. > > These are very similar to the existing OP-RETURN primitives we already > have, except they return the value of the atomi

Re: [PATCH 7/7] devfreq: exynos-bus: add missing of_node_put after calling of_parse_phandle

2016-07-01 Thread Chanwoo Choi
Hi Peter, 2016-07-01 18:42 GMT+09:00 Peter Chen : > of_node_put needs to be called when the device node which is got > from of_parse_phandle has finished using. > > Cc: Chanwoo Choi > Cc: MyungJoo Ham > Cc: Kyungmin Park > Cc: Kukjin Kim > Cc: Krzysztof Kozlowski > Signed-off-by: Peter Chen

Re: [PATCH] [media] rc: ir-spi: add support for IR LEDs connected with SPI

2016-07-01 Thread kbuild test robot
Hi, [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.7-rc5 next-20160701] [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/Andi-Shyti/rc-ir-spi-add-support-for-IR

Re: [PATCH 1/7] extcon: add missing of_node_put after calling of_parse_phandle

2016-07-01 Thread Chanwoo Choi
Hi Peter, Applied it. Regards, Chanwoo Choi 2016-07-01 18:41 GMT+09:00 Peter Chen : > of_node_put needs to be called when the device node which is got > from of_parse_phandle has finished using. > > Cc: MyungJoo Ham > Cc: Chanwoo Choi > Signed-off-by: Peter Chen > --- > drivers/extcon/extcon

[PATCH] firmware: qcom: scm: Change initcall to subsys

2016-07-01 Thread Andy Gross
The patch changes the initcall for SCM to use subsys_initcall instead of arch_initcall. This corrects the order so that we don't probe defer when trying to get clks which causes issues later when the spm driver makes calls to qcom_set_warm_boot_addr(). The order became an issue due to the changes

[PATCH] perf/x86: fix 32-bit perf user callgraph collection

2016-07-01 Thread Josh Poimboeuf
A basic perf callgraph record operation causes an immediate panic on a 32-bit kernel compiled with CONFIG_CC_STACKPROTECTOR: $ perf record -g ls Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: c0404fbd CPU: 0 PID: 998 Comm: ls Not tainted 4.7.0-rc5+ #1 Hardware

Re: [PATCH] [media] rc: ir-spi: add support for IR LEDs connected with SPI

2016-07-01 Thread kbuild test robot
Hi, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.7-rc5 next-20160701] [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/Andi-Shyti/rc-ir-spi-add-support-for-IR-LEDs

Re: [PATCH v2] arm64: dts: rockchip: add the power domain node for rk3399

2016-07-01 Thread William Wu
Dear Caesar & Doug, On 07/02/2016 09:34 AM, Caesar Wang wrote: > > On 2016年07月02日 00:56, Doug Anderson wrote: >> Caesar >> >> On Thu, Jun 30, 2016 at 9:32 PM, Caesar Wang wrote: >>> From: Elaine Zhang >>> >>> In order to meet low power requirements, a power management unit >>> (PMU) is >>> desi

kernel/trace/trace.h:516:28: error: 'struct task_struct' has no member named 'trace_recursion'

2016-07-01 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dbdc3bb74faeec5fd92e28c15c945045d5aab426 commit: 7ef224d1d0e3a1ade02d02c01ce1dcffb736d2c3 tracing: Add 'hist' event trigger command date: 2 months ago config: x86_64-randconfig-s0-07021107 (attached as .co

[PATCH] block: do not merge requests without consulting with io scheduler

2016-07-01 Thread Tahsin Erdogan
Before merging a bio into an existing request, io scheduler is called to get its approval first. However, the requests that come from a plug flush may get merged by block layer without consulting with io scheduler. In case of CFQ, this can cause fairness problems. For instance, if a request gets m

[PATCHv2 1/1] thermal: sysfs: lock tz while on access to mode properties

2016-07-01 Thread Eduardo Valentin
Serialized calls to tz.ops in user facing sysfs handler mode_show() and mode_store(). Because several drivers do the following pattern: .set_mode() ... local_data->mode = new_mode; thermal_zone_device_update(tz); makes sense to simply do the thermal_zone_device_update() in thermal core,

Re: [PATCH v6 3/5] thermal: streamline get_trend callbacks

2016-07-01 Thread Eduardo Valentin
On Wed, Jun 22, 2016 at 04:42:03PM +0800, Caesar Wang wrote: > From: Sascha Hauer > > The .get_trend callback in struct thermal_zone_device_ops has > the prototype: > int (*get_trend) (struct thermal_zone_device *, int, > enum thermal_trend *); > whereas the .get

Re: [PATCH v4 1/2] Documentation: bindings: add dt doc for Rockchip PCIe controller

2016-07-01 Thread Brian Norris
Hi, On Fri, Jul 01, 2016 at 02:01:09PM +0100, Marc Zyngier wrote: > On 01/07/16 02:24, Shawn Lin wrote: > > This patch adds a binding that describes the Rockchip PCIe controller > > found on Rockchip SoCs PCIe interface. > > > > Signed-off-by: Shawn Lin > > > > --- > > > > Changes in v4: > > -

Re: [PATCH 1/4] spi: Add option to wake a device by toggling CS

2016-07-01 Thread Andrey Pronin
On Fri, Jul 01, 2016 at 07:17:08PM +0200, Mark Brown wrote: > On Fri, Jul 01, 2016 at 10:05:50AM -0700, Doug Anderson wrote: > > > I'm curious why you you need a timer at all. Can't you just keep > > track of the jiffies that you last sent and do subtraction? ...or you > > could get even more ac

[PATCH 1/1] thermal: core: move slop and offset helpers to thermal_helpers.c

2016-07-01 Thread Eduardo Valentin
Reorganize code to reflect better placement. Cc: Zhang Rui Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- drivers/thermal/thermal_core.c| 30 -- drivers/thermal/thermal_helpers.c | 30

Re: [PATCH 1/4] spi: Add option to wake a device by toggling CS

2016-07-01 Thread Andrey Pronin
On Fri, Jul 01, 2016 at 09:02:30AM +0100, Mark Brown wrote: > On Wed, Jun 29, 2016 at 08:54:24PM -0700, apro...@chromium.org wrote: > > From: Andrey Pronin > > > > Some SPI devices may go to sleep after a period of inactivity > > on SPI. For such devices, if enough time has passed since the > > l

Re: [PATCH v5 1/5] thermal: Add support for hardware-tracked trip points

2016-07-01 Thread Eduardo Valentin
On Wed, Jun 22, 2016 at 11:15:19AM +0800, Zhang Rui wrote: > On 一, 2016-06-06 at 19:44 +0800, Caesar Wang wrote: > > From: Sascha Hauer > > > > This adds support for hardware-tracked trip points to the device tree > > thermal sensor framework. > > > > The framework supports an arbitrary number o

Re: [PATCH v2] arm64: dts: rockchip: add the power domain node for rk3399

2016-07-01 Thread Caesar Wang
On 2016年07月02日 00:56, Doug Anderson wrote: Caesar On Thu, Jun 30, 2016 at 9:32 PM, Caesar Wang wrote: From: Elaine Zhang In order to meet low power requirements, a power management unit (PMU) is designed for controlling power resources in RK3399. The RK3399 PMU is dedicated for managing the

Re: [PATCH v3 2/9] kexec_file: Generalize kexec_add_buffer.

2016-07-01 Thread Thiago Jung Bauermann
Am Freitag, 01 Juli 2016, 17:02:23 schrieb Thiago Jung Bauermann: > Am Freitag, 01 Juli 2016, 14:36:02 schrieb Dave Young: > > On 07/01/16 at 02:51pm, Thiago Jung Bauermann wrote: > > > Am Donnerstag, 30 Juni 2016, 17:43:57 schrieb Dave Young: > > > > On 06/30/16 at 01:42pm, Thiago Jung Bauermann w

Re: [PATCH v9 01/10] clk: fix initial state of critical clock's parents

2016-07-01 Thread Stephen Boyd
(Resending to everyone) On 06/22, Erin Lo wrote: > From: James Liao > > This patch fixed wrong state of parent clocks if they are registered > after critical clocks. > > Signed-off-by: James Liao > Signed-off-by: Erin Lo It would be nice if you included the information about the problem from

Re: [Nouveau] [PATCH 2/6] drm/nouveau/core: make use of new strtolower() function

2016-07-01 Thread Alexandre Courbot
); > cname[sizeof(cname) - 1] = '\0'; > - i = strlen(cname); > - while (i) { > - --i; > - cname[i] = tolower(cname[i]); > - } > + strtolower(cname); This function doesn't seem to exist as of next-20160701, where have you found it?

Re: [PATCH RFC 0/7] support clk setting during kernel early boot

2016-07-01 Thread Stephen Boyd
On 06/29, Dong Aisheng wrote: > Recently several people met the kernel complaining > "bad: scheduling from the idle thread!" issue which caused by > sleeping during kernel early booting phase by calling clk > APIs like clk_prepare_enable. > > See: > https://lkml.org/lkml/fancy/2016/1/29/695 > http

[PATCH 1/1] thermal: qcom: remove declare local symbols as static

2016-07-01 Thread Eduardo Valentin
Trivial: remove the following: drivers/thermal/qcom/tsens-8916.c:103:24: warning: symbol 'ops_8916' was not declared. Should it be static? drivers/thermal/qcom/tsens-8996.c:76:24: warning: symbol 'ops_8996' was not declared. Should it be static? drivers/thermal/qcom/tsens-8974.c:235:24: warning:

Re: [PATCH v2] arm64: dts: rockchip: add the power domain node for rk3399

2016-07-01 Thread Caesar Wang
On 2016年07月02日 01:09, Javier Martinez Canillas wrote: Hello Caesar, On Fri, Jul 1, 2016 at 12:32 AM, Caesar Wang wrote: From: Elaine Zhang In order to meet low power requirements, a power management unit (PMU) is designed for controlling power resources in RK3399. The RK3399 PMU is dedicate

Re: [PATCH V3 4/8] clk: core: support clocks which requires parents enable (part 2)

2016-07-01 Thread Stephen Boyd
On 06/30, Dong Aisheng wrote: > On Freescale i.MX7D platform, all clocks operations, including > enable/disable, rate change and re-parent, requires its parent clock on. > Current clock core can not support it well. > This patch adding flag CLK_OPS_PARENT_ENABLE to handle this special case in > clo

Re: [PATCH V3 3/8] clk: core: support clocks which requires parents enable (part 1)

2016-07-01 Thread Stephen Boyd
On 06/30, Dong Aisheng wrote: > On Freescale i.MX7D platform, all clocks operations, including > enable/disable, rate change and re-parent, requires its parent > clock enable. Current clock core can not support it well. > This patch introduce a new flag CLK_OPS_PARENT_ENABLE to handle this > specia

Re: [PATCH 1/3] namei: add LOOKUP_DFD_ROOT to use dfd as root

2016-07-01 Thread Omar Sandoval
On Tue, Jun 28, 2016 at 10:38:28AM -0700, Andrey Vagin wrote: > The problem is that a pathname can contain absolute symlinks and now > they are resolved relative to the current root. > > If we want to open a file in another mount namespaces and we have a file > descriptor to its root directory, we

Re: [PATCH V3 1/8] clk: introduce clk_core_enable_lock and clk_core_disable_lock functions

2016-07-01 Thread Stephen Boyd
On 06/30, Dong Aisheng wrote: > This can be useful when clock core wants to enable/disable clocks. > Then we don't have to convert the struct clk_core to struct clk to call > clk_enable/clk_disable which is a bit un-align with exist using. > > And after introduce clk_core_{enable|disable}_lock, we

Re: [PATCH V3 2/8] clk: move clk_disable_unused after clk_core_disable_unprepare function

2016-07-01 Thread Stephen Boyd
On 06/30, Dong Aisheng wrote: > No function level change, just moving code place. > clk_disable_unused function will need to call clk_core_prepare_enable/ > clk_core_disable_unprepare when adding CLK_OPS_PARENT_ENABLE features. > So move it after clk_core_disable_unprepare to avoid adding forward >

Re: [PATCH V3 5/8] clk: imx: re-order and concentrate the same type of clk api

2016-07-01 Thread Stephen Boyd
On 06/30, Dong Aisheng wrote: > Re-order and concentrate the same type of clk api for better > code maintenance. > > Cc: Shawn Guo > Signed-off-by: Dong Aisheng > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Pro

Re: [PATCH V3 6/8] clk: imx: add clk api for supporting CLK_OPS_PARENT_ENABLE clocks

2016-07-01 Thread Stephen Boyd
On 06/30, Dong Aisheng wrote: > IMX SoCs like i.MX7D requires using CLK_OPS_PARENT_ENABLE flags, > adding the corresponding clock APIs variants for easily to use. > > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: Shawn Guo > Signed-off-by: Dong Aisheng > --- Applied to clk-next -- Qualcomm

Re: [PATCH V3 8/8] clk: imx7d: only enable minimum required clocks

2016-07-01 Thread Stephen Boyd
On 06/30, Dong Aisheng wrote: > Formerly clk core does not support imx7d clock type well that all > its clock operations requires the parent clock on. > Therefore we enabled all clocks by default in clock driver > initialization for other module clocks operate well. > > After patch 'clk: imx7d: us

Re: [PATCH V3 7/8] clk: imx7d: using api with flag CLK_OPS_PARENT_ENABLE

2016-07-01 Thread Stephen Boyd
On 06/30, Dong Aisheng wrote: > i.MX7D requires all clocks operations including enable/disable, > rate change and re-parent with its parent clock on. > Changing to the correct APIs to tell clk core such requirement. > > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: Shawn Guo > Signed-off-by: D

Re: [PATCH v3 5/7] PCI: Do not use IORESOURCE_STARTALIGN to identify bridge resources

2016-07-01 Thread Gavin Shan
On Fri, Jul 01, 2016 at 03:04:10PM +0800, Yongji Xie wrote: >Hi Gavin, > >On 2016/7/1 10:34, Gavin Shan wrote: > >>On Thu, Jun 30, 2016 at 06:53:11PM +0800, Yongji Xie wrote: >>>Now we use the IORESOURCE_STARTALIGN to identify bridge resources >>>in __assign_resources_sorted(). That's quite fragile

Re: [PATCH v3 2/7] PCI: Ignore enforced alignment to VF BARs

2016-07-01 Thread Gavin Shan
On Fri, Jul 01, 2016 at 02:40:16PM +0800, Yongji Xie wrote: >Hi Gavin, > >On 2016/7/1 14:05, Gavin Shan wrote: > >>On Fri, Jul 01, 2016 at 01:27:17PM +0800, Yongji Xie wrote: On Thu, Jun 30, 2016 at 06:53:08PM +0800, Yongji Xie wrote: >VF BARs are read-only zeroes according to SRIOV spec, >

[GIT PULL] irqchip: Core changes for v4.8 (second set)

2016-07-01 Thread Jason Cooper
Hi Thomas, Here's the second round of changes for irqchip. This driver for Aspeed has been in -next for six runs. This is an incremental pull request from tags/irqchip-core-4.8 up to tags/irqchip-core-4.8-2 on the irqchip/core branch. Please pull. thx, Jason. The following changes since com

Re: [PATCH v2] clk: fixed-factor: add optional dt-binding clock-flags

2016-07-01 Thread Stephen Boyd
On 06/29, Jongsung Kim wrote: > On 2016년 06월 29일 06:18, Michael Turquette wrote: > > Quoting Rob Herring (2016-06-28 13:55:18) > >> On Fri, Jun 24, 2016 at 01:12:52PM +0900, Jongsung Kim wrote: > >>> There is no way to set additional flags for a DT-initialized fixed- > >>> factor-clock, and it can

Re: [PATCH v5 1/2] Input: Driver for SiS 9200 family I2C touchscreen controller.

2016-07-01 Thread Dmitry Torokhov
Hi Mika, On Fri, May 06, 2016 at 08:22:16AM +0300, mika.pentt...@nextfour.com wrote: > From: Mika Penttilä > > Multitouch protocol B support. > > v5: > - rebased to 4.6.0-rc6 > > v4: > - cleanups and fixes according to review feedback > - irq and reset gpios are now optional, > if no

Re: [PATCH RFC] sched: Make wake_up_nohz_cpu() handle CPUs going offline

2016-07-01 Thread Paul E. McKenney
On Sat, Jul 02, 2016 at 01:49:56AM +0200, Frederic Weisbecker wrote: > On Fri, Jul 01, 2016 at 11:40:54AM -0700, Paul E. McKenney wrote: > > On Fri, Jul 01, 2016 at 01:29:59AM +0200, Frederic Weisbecker wrote: > > > > +/* > > > > + * Wake up the specified CPU. If the CPU is going offline, it is th

[GIT PULL] clk fixes for v4.7-rc5

2016-07-01 Thread Stephen Boyd
The following changes since commit 72ad679aa7182d23d269cbe4d655f7e129d3b057: clk: nxp: Select MFD_SYSCON for creg driver (2016-06-01 15:14:06 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git tags/clk-fixes-for-linus for you to fetch

Re: [PATCH v2] clk: Add fractional scale clock support

2016-07-01 Thread Hoan Tran
Hi Stephen, On Fri, Jul 1, 2016 at 11:38 AM, Stephen Boyd wrote: > Sorry I replied offlist before. Pressed the wrong key. > > On 06/30, Hoan Tran wrote: >> On Thu, Jun 30, 2016 at 1:23 PM, Stephen Boyd wrote: >> > >> > How is this different from clk-fractional-divider.c? >> > >> >> This is a dri

Re: [PATCH v2] pinctrl: qcom: add support for EBI2

2016-07-01 Thread Bjorn Andersson
On Fri 01 Jul 16:56 PDT 2016, Linus Walleij wrote: > Add support to mux in the second external bus interface as > follows: > > - CS1 and CS2 on GPIO39 and GPIO40 as func 2 > - ADDR_7 thru ADDR_0 on GPIO123 thru GPIO130 as func 1 > - CS4, CS3 and CS0 on GPIO132, GPIO133, GPIO134 as func 1 > - DATA

[PATCH v2] pinctrl: qcom: add support for EBI2

2016-07-01 Thread Linus Walleij
Add support to mux in the second external bus interface as follows: - CS1 and CS2 on GPIO39 and GPIO40 as func 2 - ADDR_7 thru ADDR_0 on GPIO123 thru GPIO130 as func 1 - CS4, CS3 and CS0 on GPIO132, GPIO133, GPIO134 as func 1 - DATA_15 thru DATA_0 on GPIO135 thru GPIO150 as func 1 - OE on GPIO151

Re: [PATCH RFC] sched: Make wake_up_nohz_cpu() handle CPUs going offline

2016-07-01 Thread Frederic Weisbecker
On Fri, Jul 01, 2016 at 11:40:54AM -0700, Paul E. McKenney wrote: > On Fri, Jul 01, 2016 at 01:29:59AM +0200, Frederic Weisbecker wrote: > > > +/* > > > + * Wake up the specified CPU. If the CPU is going offline, it is the > > > + * caller's responsibility to deal with the lost wakeup, for example

[PATCH 3/4] tracing: Use __get_str() when manipulating strings

2016-07-01 Thread Daniel Bristot de Oliveira
Use __get_str(str) rather than __get_dynamic_array(str) when deadling with strings. It is just a code cleanup, no changes on tracepoint ABI. Suggested-by: Steven Rostedt Signed-off-by: Daniel Bristot de Oliveira Reviewed-by: Steven Rostedt Cc: Trond Myklebust Cc: Anna Schumaker Cc: Steven Ro

[PATCH 2/4] tracing, RAS: Cleanup on __get_str() usage

2016-07-01 Thread Daniel Bristot de Oliveira
__get_str(msg) does not need (char *) operator overloading to access mgs's elements anymore. This patch substitutes ((char *)__get_str(msg))[0] usage to __get_str(msg)[0]. It is just a code cleanup, no changes on tracepoint ABI. Signed-off-by: Daniel Bristot de Oliveira Reviewed-by: Steven Roste

[PATCH 0/4] tracing: printk:console fix and __get_str() cleanup

2016-07-01 Thread Daniel Bristot de Oliveira
This patch series fixes a problem on printk:console tracepoint that prints a blank line in the trace output after each printk message that finishes with '\n'. It also does some cleanup on __get_str() usage, that was found while fixing the printk:console tracepoint. Daniel Bristot de Oliveira (4):

[PATCH 4/4] printk, tracing: Avoiding unneeded blank lines

2016-07-01 Thread Daniel Bristot de Oliveira
Printk messages often finish with '\n' to cause a new line. But as each tracepoint is already printed in a new line, printk messages that finish with '\n' ends up adding a blank line to the trace output. For example: kworker/0:1-86[000] d...46.006949: console: [ 46.006946] usb 1-3:

[PATCH 1/4] tracing: Use outer () on __get_str() definition

2016-07-01 Thread Daniel Bristot de Oliveira
__get_str(str)'s definition includes a (char *) operator overloading that is not protected with outer (). This patch adds () around __get_str()'s definition, enabling some code cleanup. Suggested-by: Steven Rostedt Signed-off-by: Daniel Bristot de Oliveira Reviewed-by: Steven Rostedt Cc: Steve

Re: [RFC] WireGuard: next generation secure network tunnel

2016-07-01 Thread Bruno Wolff III
On Sat, Jul 02, 2016 at 01:03:17 +0200, "Jason A. Donenfeld" wrote: Hey Bruno, Sorry I didn't reply to this earlier; the message didn't make it to me somehow. I only sent it to LKML, since we had communicated separately when you helped me by making changes for the 4.7 kernel, I didn't think

Re: [PATCH 2/3] ACPI: fix acpi_parse_entries_array() so it traverses all subtables

2016-07-01 Thread Rafael J. Wysocki
On Sat, Jul 2, 2016 at 1:07 AM, Al Stone wrote: > On 07/01/2016 04:01 PM, Rafael J. Wysocki wrote: >> On Fri, Jul 1, 2016 at 11:55 PM, Al Stone wrote: >>> On 07/01/2016 03:46 PM, Rafael J. Wysocki wrote: On Fri, Jul 1, 2016 at 11:41 PM, Al Stone wrote: > On 07/01/2016 03:32 PM, Rafael J

Re: Revert: SUNRPC: xs_sock_mark_closed() does not need to trigger socket autoclose

2016-07-01 Thread Steven Rostedt
On Fri, 1 Jul 2016 19:17:45 -0400 Steven Rostedt wrote: > See my previous email that describes all this (I removed the debugging > from my kernel, and I need to spend time with the family so I can't get > to this again till Tuesday) > > http://lkml.kernel.org/r/20160630175618.51a72...@gandalf.l

Re: Revert: SUNRPC: xs_sock_mark_closed() does not need to trigger socket autoclose

2016-07-01 Thread Steven Rostedt
On Fri, 1 Jul 2016 23:02:23 + Trond Myklebust wrote: > Can we look into why the socket disconnect is happening in the first > place? It’s presumably not the server, since that _would_ trigger an > autoclose when the socket hits TCP_CLOSE_WAIT. That puts the two top > suspects being the TCP ke

Re: Revert: SUNRPC: xs_sock_mark_closed() does not need to trigger socket autoclose

2016-07-01 Thread Steven Rostedt
On Fri, 1 Jul 2016 22:34:02 + Trond Myklebust wrote: > > On Jul 1, 2016, at 17:24, Steven Rostedt wrote: > > > > A while back, rkhunter reported a "hidden port" on my main server, > > making me nervous that I had been hacked. Doing lots of debugging, I > > found that it was happening from x

Re: [PATCH 7/7] asus-wmi: Add quirk_no_rfkill_wapf4 for the Asus X456UA

2016-07-01 Thread Darren Hart
On Mon, Jun 13, 2016 at 04:57:36PM -0400, João Paulo Rechi Vita wrote: > The Asus X456UA has an airplane-mode indicator LED and the WMI WLAN user > bit set, so asus-wmi uses ASUS_WMI_DEVID_WLAN_LED (0x00010002) to store > the wlan state, which has a side-effect of driving the airplane mode > indica

Re: [PATCH 2/3] ACPI: fix acpi_parse_entries_array() so it traverses all subtables

2016-07-01 Thread Al Stone
On 07/01/2016 04:01 PM, Rafael J. Wysocki wrote: > On Fri, Jul 1, 2016 at 11:55 PM, Al Stone wrote: >> On 07/01/2016 03:46 PM, Rafael J. Wysocki wrote: >>> On Fri, Jul 1, 2016 at 11:41 PM, Al Stone wrote: On 07/01/2016 03:32 PM, Rafael J. Wysocki wrote: > On Fri, Jul 1, 2016 at 11:21 PM,

Re: [PATCH 0/4] [RFC][v4] Workaround for Xeon Phi PTE A/D bits erratum

2016-07-01 Thread Benjamin Herrenschmidt
On Fri, 2016-07-01 at 10:46 -0700, Dave Hansen wrote: > The Intel(R) Xeon Phi(TM) Processor x200 Family (codename: Knights > Landing) has an erratum where a processor thread setting the Accessed > or Dirty bits may not do so atomically against its checks for the > Present bit.  This may cause a thr

Re: Revert: SUNRPC: xs_sock_mark_closed() does not need to trigger socket autoclose

2016-07-01 Thread Trond Myklebust
> On Jul 1, 2016, at 18:39, Steven Rostedt wrote: > > On Fri, 1 Jul 2016 22:34:02 + > Trond Myklebust wrote: > > >> NACK. This ocde was removed on purpose because it is dangerous to >> have the TCP state change callbacks queue up a new close(). The >> connect code sometimes has to close s

Re: [RFC] WireGuard: next generation secure network tunnel

2016-07-01 Thread Jason A. Donenfeld
Hey Bruno, Sorry I didn't reply to this earlier; the message didn't make it to me somehow. Bruno Wolff III writes: > I tried this out on 4.7 kernels and it seemed to work OK. I can't tell > about security, but the packets made it to where they are going. Happy to hear! > > My eventual use case

Re: [PATCH 3/3] ACPI: fix acpi_parse_entries_array() so it reports overflow correctly

2016-07-01 Thread Rafael J. Wysocki
On Sat, Jul 2, 2016 at 12:38 AM, Al Stone wrote: > On 07/01/2016 03:54 PM, Rafael J. Wysocki wrote: >> On Fri, Jul 1, 2016 at 11:44 PM, Al Stone wrote: >>> On 07/01/2016 03:40 PM, Rafael J. Wysocki wrote: On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: > The function acpi_parse_entries

Re: Revert: SUNRPC: xs_sock_mark_closed() does not need to trigger socket autoclose

2016-07-01 Thread Steven Rostedt
On Fri, 1 Jul 2016 22:34:02 + Trond Myklebust wrote: > NACK. This ocde was removed on purpose because it is dangerous to > have the TCP state change callbacks queue up a new close(). The > connect code sometimes has to close sockets that are misbehaving, and > so we’ve seen races whereby the

Re: [PATCH 1/3] ACPI: fix incorrect counts returned by acpi_parse_entries_array()

2016-07-01 Thread Al Stone
On 07/01/2016 03:56 PM, Rafael J. Wysocki wrote: > On Fri, Jul 1, 2016 at 11:50 PM, Al Stone wrote: >> On 07/01/2016 03:44 PM, Rafael J. Wysocki wrote: >>> On Fri, Jul 1, 2016 at 11:36 PM, Al Stone wrote: On 07/01/2016 03:25 PM, Rafael J. Wysocki wrote: > On Fri, Jul 1, 2016 at 11:21 PM,

Re: [PATCH 3/3] ACPI: fix acpi_parse_entries_array() so it reports overflow correctly

2016-07-01 Thread Al Stone
On 07/01/2016 03:54 PM, Rafael J. Wysocki wrote: > On Fri, Jul 1, 2016 at 11:44 PM, Al Stone wrote: >> On 07/01/2016 03:40 PM, Rafael J. Wysocki wrote: >>> On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: The function acpi_parse_entries_array() has a limiting parameter, max_entries, whi

Re: Revert: SUNRPC: xs_sock_mark_closed() does not need to trigger socket autoclose

2016-07-01 Thread Trond Myklebust
> On Jul 1, 2016, at 17:24, Steven Rostedt wrote: > > A while back, rkhunter reported a "hidden port" on my main server, > making me nervous that I had been hacked. Doing lots of debugging, I > found that it was happening from xprt code in NFS. I found a way to > trigger the bug, which happened

[PATCH] mtd: spi-nor: support dual, quad, and WP for Gigadevice

2016-07-01 Thread Brian Norris
Gigadevice flash support BP{0,1,2,3,4} bits, where BP3 means the same as the existing supported TB (Top/Bottom), and BP4 means the same as the not-yet-supported 4K bit used on other flash (e.g., Winbond). Let's support lock/unlock with the same feature flags as w25q32dw/w25q64dw. Tested on gd25lq6

[PATCH] mtd: spi-nor: perform read-back check after SR lock/unlock

2016-07-01 Thread Brian Norris
When programming the Status Register for performing write protect, it's important to know the result of the operation (i.e., success or failure). Particularly, it's possible to fail when the hardware write protect pin (WP#) is asserted, potentially disallowing writes to the status register. Previou

[PATCH] perf/x86/intel: update event constraints when HT is off

2016-07-01 Thread Stephane Eranian
This patch updates the event constraints for non-PEBS mode for Intel Broadwell and Skylake processors. When HT is off, each CPU gets 8 generic counters. However, not all events can be programmed on any of the 8 counters. This patch adds the constraints for the MEM_* events which can only be measur

[git pull] vfs.git fixes

2016-07-01 Thread Al Viro
Tmpfs readdir throughput regression fix (this cycle) + some -stable fodder all over the place. One missing bit is Miklos' tonight locks.c fix - NFS folks had already grabbed that one by the time I woke up ;-) The following changes since commit e7d6ef9790bc281f5c29d0132b68031248523fe8:

[PATCH 1/2] net: ethernet: davinci_emac: use phydev from struct net_device

2016-07-01 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/ti

[PATCH 2/2] net: ethernet: davinci_emac: use phy_ethtool_{get|set}_link_ksettings

2016-07-01 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/ti/davinci_emac.c | 39 +-- 1 files changed, 2 insertions(+), 37 deleti

Re: [PATCH 1/3] ACPI: fix incorrect counts returned by acpi_parse_entries_array()

2016-07-01 Thread Rafael J. Wysocki
On Fri, Jul 1, 2016 at 11:50 PM, Al Stone wrote: > On 07/01/2016 03:44 PM, Rafael J. Wysocki wrote: >> On Fri, Jul 1, 2016 at 11:36 PM, Al Stone wrote: >>> On 07/01/2016 03:25 PM, Rafael J. Wysocki wrote: On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: > The static function acpi_parse_

Re: [PATCH 2/3] ACPI: fix acpi_parse_entries_array() so it traverses all subtables

2016-07-01 Thread Rafael J. Wysocki
On Fri, Jul 1, 2016 at 11:55 PM, Al Stone wrote: > On 07/01/2016 03:46 PM, Rafael J. Wysocki wrote: >> On Fri, Jul 1, 2016 at 11:41 PM, Al Stone wrote: >>> On 07/01/2016 03:32 PM, Rafael J. Wysocki wrote: On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: > Without this patch, the acpi_pa

Re: [PATCH 2/3] ACPI: fix acpi_parse_entries_array() so it traverses all subtables

2016-07-01 Thread Al Stone
On 07/01/2016 03:46 PM, Rafael J. Wysocki wrote: > On Fri, Jul 1, 2016 at 11:41 PM, Al Stone wrote: >> On 07/01/2016 03:32 PM, Rafael J. Wysocki wrote: >>> On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: Without this patch, the acpi_parse_entries_array() function will return the very f

Re: [PATCH 3/3] ACPI: fix acpi_parse_entries_array() so it reports overflow correctly

2016-07-01 Thread Rafael J. Wysocki
On Fri, Jul 1, 2016 at 11:44 PM, Al Stone wrote: > On 07/01/2016 03:40 PM, Rafael J. Wysocki wrote: >> On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: >>> The function acpi_parse_entries_array() has a limiting parameter, >>> max_entries, which tells the function to stop looking at subtables >>>

[PATCH v3] ARM: at91: Document new TCB bindings

2016-07-01 Thread Alexandre Belloni
The current binding for the TCB is not flexible enough for some use cases and prevents proper utilization of all the channels. Cc: Daniel Lezcano Cc: Thierry Reding Cc: linux-...@vger.kernel.org Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Alexandre Belloni --- .../devicetree

Re: [PATCH 1/3] ACPI: fix incorrect counts returned by acpi_parse_entries_array()

2016-07-01 Thread Al Stone
On 07/01/2016 03:44 PM, Rafael J. Wysocki wrote: > On Fri, Jul 1, 2016 at 11:36 PM, Al Stone wrote: >> On 07/01/2016 03:25 PM, Rafael J. Wysocki wrote: >>> On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: The static function acpi_parse_entries_array() is provided an array of type struct

Re: [PATCH] soc: qcom: smem: Silence probe defer error

2016-07-01 Thread Bjorn Andersson
On Fri 01 Jul 14:18 PDT 2016, Stephen Boyd wrote: > If we fail to get the hwspinlock due to probe defer, we shouldn't > print an error message. Just be silent in this case. > This generally seems to result in a large pile of drivers ending up on the probe deferr list, so something we should try

Re: [PATCH 2/3] ACPI: fix acpi_parse_entries_array() so it traverses all subtables

2016-07-01 Thread Al Stone
On 07/01/2016 03:32 PM, Rafael J. Wysocki wrote: > On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: >> Without this patch, the acpi_parse_entries_array() function will return >> the very first time there is any error found in either the array of >> callback functions or if one of the callbacks ret

Re: [PATCH 2/3] ACPI: fix acpi_parse_entries_array() so it traverses all subtables

2016-07-01 Thread Rafael J. Wysocki
On Fri, Jul 1, 2016 at 11:41 PM, Al Stone wrote: > On 07/01/2016 03:32 PM, Rafael J. Wysocki wrote: >> On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: >>> Without this patch, the acpi_parse_entries_array() function will return >>> the very first time there is any error found in either the array

Re: [PATCH 1/3] ACPI: fix incorrect counts returned by acpi_parse_entries_array()

2016-07-01 Thread Rafael J. Wysocki
On Fri, Jul 1, 2016 at 11:36 PM, Al Stone wrote: > On 07/01/2016 03:25 PM, Rafael J. Wysocki wrote: >> On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: >>> The static function acpi_parse_entries_array() is provided an array of >>> type struct acpi_subtable_proc that has a callback function and a

Re: [PATCH 3/3] ACPI: fix acpi_parse_entries_array() so it reports overflow correctly

2016-07-01 Thread Al Stone
On 07/01/2016 03:40 PM, Rafael J. Wysocki wrote: > On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: >> The function acpi_parse_entries_array() has a limiting parameter, >> max_entries, which tells the function to stop looking at subtables >> once that limit has been reached. Further, if the limit

[PATCH 2/3] Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg()

2016-07-01 Thread kys
From: K. Y. Srinivasan The current delay between retries is unnecessarily high and is negatively affecting the time it takes to boot the system. Signed-off-by: K. Y. Srinivasan --- drivers/hv/connection.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/h

[PATCH 1/3] Drivers: hv: vmbus: Enable explicit signaling policy for NIC channels

2016-07-01 Thread kys
From: K. Y. Srinivasan For synthetic NIC channels, enable explicit signaling policy as netvsc wants to explicitly control when the host is to be signaled. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c | 18 -- drivers/hv/channel_mgmt.c |2 ++ drivers/hv/hy

[PATCH 3/3] Drivers: hv: vmbus: Implement a mechanism to tag the channel for low latency

2016-07-01 Thread kys
From: K. Y. Srinivasan On Hyper-V, performance critical channels use the monitor mechanism to signal the host when the guest posts mesages for the host. This mechanism minimizes the hypervisor intercepts and also makes the host more efficient in that each time the host is woken up, it processes a

Re: [PATCH 3/3] ACPI: fix acpi_parse_entries_array() so it reports overflow correctly

2016-07-01 Thread Rafael J. Wysocki
On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: > The function acpi_parse_entries_array() has a limiting parameter, > max_entries, which tells the function to stop looking at subtables > once that limit has been reached. Further, if the limit is reached, > it is reported. However, the logic is

[PATCH 0/3] Drivers: hv: vmbus: Miscellaneous adjustments

2016-07-01 Thread kys
From: K. Y. Srinivasan Some miscellaneous adjustments to the vmbus driver. K. Y. Srinivasan (3): Drivers: hv: vmbus: Enable explicit signaling policy for NIC channels Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg() Drivers: hv: vmbus: Implement a mechanism to t

Re: [PATCH 1/3] ACPI: fix incorrect counts returned by acpi_parse_entries_array()

2016-07-01 Thread Al Stone
On 07/01/2016 03:25 PM, Rafael J. Wysocki wrote: > On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: >> The static function acpi_parse_entries_array() is provided an array of >> type struct acpi_subtable_proc that has a callback function and a count. >> The count should reflect how many times the c

Re: [PATCH] soc: qcom: smem: Silence probe defer error

2016-07-01 Thread Andy Gross
On Fri, Jul 01, 2016 at 02:18:59PM -0700, Stephen Boyd wrote: > If we fail to get the hwspinlock due to probe defer, we shouldn't > print an error message. Just be silent in this case. > > Cc: Bjorn Andersson > Signed-off-by: Stephen Boyd Looks good to me. This has needed to be fixed for a whi

Re: [PATCH 2/3] ACPI: fix acpi_parse_entries_array() so it traverses all subtables

2016-07-01 Thread Rafael J. Wysocki
On Fri, Jul 1, 2016 at 11:21 PM, Al Stone wrote: > Without this patch, the acpi_parse_entries_array() function will return > the very first time there is any error found in either the array of > callback functions or if one of the callbacks returns an non-zero value. > However, the array of callba

[PATCH 2/2] input: add ADC resistor ladder driver

2016-07-01 Thread Alexandre Belloni
A common way of multiplexing buttons on a single input in cheap devices is to use a resistor ladder on an ADC. This driver supports that configuration by polling an ADC channel provided by IIO. Signed-off-by: Alexandre Belloni --- drivers/input/keyboard/Kconfig| 15 +++ drivers/input/keyboa

[PATCH 1/2] input: adc-keys: add DT binding documentation

2016-07-01 Thread Alexandre Belloni
Add documentation for ADC keys Signed-off-by: Alexandre Belloni --- Cc: Rob Herring Cc: devicet...@vger.kernel.org .../devicetree/bindings/input/adc-keys.txt | 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/adc-ke

  1   2   3   4   5   6   7   >