[PATCH v2] iov_iter: Fix out-of-bound access in iov_iter_advance()

2016-04-01 Thread Takashi Iwai
Currently, iov_iter_advance() just calls iterate_and_advance() macro as is, even if size=0 is passed. Usually it is OK to pass size=0 to the macro. However, when the iov_iter has been already advanced to the end of the array, it may lead to an out-of-bound access, since the macro always reads the

Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's

2016-04-01 Thread Pavel Machek
Hi! > >>The main drawback is that you can't set the colour at one go, > >>but have to set brightness of each LED class device (R,G,B) > >>separately. It incurs delays between setting each colour component. > > > >Yeah. Well, on some hardware, that's just the way it is. If the leds > >are separate

Re: Bug with paravirt ops and livepatches

2016-04-01 Thread Jiri Kosina
On Tue, 29 Mar 2016, Jiri Kosina wrote: > Agreed; I think we should be safe applying all the alternatives (with > paravirt being really just a special case of those) to the coming module > at the very last phase; they really are required only during runtime, > but nothing else should be dependi

Re: [PATCH v6 0/5] (mostly) Arch-independent livepatch

2016-04-01 Thread Jiri Kosina
On Tue, 22 Mar 2016, Jessica Yu wrote: > This patchset removes livepatch's need for architecture-specific relocation > code by leveraging existing code in the module loader to perform > arch-dependent work. This is now in livepatching.git#for-4.7/arch-independent-klp-relocations I was waiting a

Re: [RFC][PATCH v9 1/2] printk: Make printk() completely async

2016-04-01 Thread Petr Mladek
On Fri 2016-04-01 23:10:04, Sergey Senozhatsky wrote: > This patch makes printk() completely asynchronous (similar to what > > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > index bfbf284..2e50c48 100644 > --- a/kernel/printk/printk.c > +++ b/kernel/printk/printk.c > @@ -2722,6 +27

gcm.c:undefined reference to `crypto_aead_setauthsize'

2016-04-01 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6ddf37da05cd71bf9e43349d607e810b43c9008a commit: c09440f7dcb304002dfced8c0fea289eb25f2da0 macsec: introduce IEEE 802.1AE driver date: 3 weeks ago config: x86_64-randconfig-s3-04012139 (attached as .config)

Re: [PATCH v3 15/16] usb: musb: da8xx: Use devm in probe

2016-04-01 Thread Bin Liu
Hi, On Thu, Mar 31, 2016 at 05:28:48PM -0500, David Lechner wrote: > On 03/31/2016 05:21 PM, Bin Liu wrote: > > >>- glue = kzalloc(sizeof(*glue), GFP_KERNEL); > >>+ glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL); > >>if (!glue) { > >>dev_err(&pdev->dev, "failed to

Re: [PATCH] usb: gadget: f_midi: Fixed a bug when buflen was smaller than wMaxPacketSize

2016-04-01 Thread Felipe Ferreri Tonello
Hi Balbi, On 01/04/16 11:22, Felipe Balbi wrote: > > Hi, > > Felipe Ferreri Tonello writes: >> Hi Balbi and Mina, >> >> On 30/03/16 13:33, Michal Nazarewicz wrote: >>> On Wed, Mar 30 2016, Felipe Balbi wrote: a USB packet, right. that's correct. But a struct usb_request can point to w

[GIT PULL] sound fixes for 4.6-rc2

2016-04-01 Thread Takashi Iwai
Linus, please pull sound fixes for v4.6-rc2 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.6-rc2 The topmost commit is 4a07083ed613644c96c34a7dd2853dc5d7c70902 sound fixes for 4.6-rc2 A colle

Re: [PATCH v2 06/11] phy: da8xx-usb: new driver for DA8XX SoC USB PHY

2016-04-01 Thread Bin Liu
Hi, On Fri, Apr 01, 2016 at 06:46:28PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 17 March 2016 07:56 AM, David Lechner wrote: > > This is a new phy driver for the SoC USB controllers on the TI DA8XX > > family of microcontrollers. The USB 1.1 PHY is just a simple on/off. > > The

Re: [PATCH V2] extcon: palmas: Drop stray IRQF_EARLY_RESUME flag

2016-04-01 Thread Roger Quadros
On 01/04/16 16:52, Nishanth Menon wrote: > Palmas extcon IRQs are nested threaded and wired to the Palmas > interrupt controller. So, this flag is not required for nested > IRQs anymore, since commit 3c646f2c6aa9 ("genirq: Don't suspend > nested_thread irqs over system suspend") was merged. However

Re: [PATCH v3 0/3] ahci: add ports-implemented dt bindings

2016-04-01 Thread Tejun Heo
On Fri, Apr 01, 2016 at 08:52:55AM +0100, Srinivas Kandagatla wrote: > On some SOCs PORTS_IMPL register value is never programmed by the BIOS > and left at zero value. Which means that no sata ports are available for > software. AHCI driver used to cope up with this by fabricating the > port_map if

Re: [PATCH 4/4] samples/bpf: Enable powerpc support

2016-04-01 Thread Naveen N. Rao
On 2016/03/31 10:52AM, Alexei Starovoitov wrote: > On 3/31/16 4:25 AM, Naveen N. Rao wrote: > ... > >+ > >+#ifdef __powerpc__ > >+#define BPF_KPROBE_READ_RET_IP(ip, ctx) { (ip) = (ctx)->link; } > >+#define BPF_KRETPROBE_READ_RET_IP(ip, ctx) BPF_KPROBE_READ_RET_IP(ip, ctx) > >+#else > >

Re: [lmbench][question] lat_mem_rd built against ilp32 hangs forever with len=2048

2016-04-01 Thread Lomovtsev, Vadim
It turns to be lmbench related issue. Thanks. -Vadim From: linux-arm-kernel on behalf of Lomovtsev, Vadim Sent: Thursday, March 31, 2016 17:20 To: lmbench-us...@lists.sourceforge.net Cc: Kapoor, Prasun; Norov, Yuri; linux-kernel@vger.kernel.org; Pinski,

Re: [intel-pstate driver regression] processor frequency very high even if in idle

2016-04-01 Thread Jörg Otte
2016-04-01 14:40 GMT+02:00 Rafael J. Wysocki : > On Friday, April 01, 2016 11:20:42 AM Jörg Otte wrote: >> 2016-03-31 17:43 GMT+02:00 Rafael J. Wysocki : >> > On Thursday, March 31, 2016 05:25:18 PM Jörg Otte wrote: >> >> 2016-03-31 13:42 GMT+02:00 Rafael J. Wysocki : >> >> > On Thursday, March 31,

Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's

2016-04-01 Thread Pavel Machek
Hi! > >>>pavel@duo:~$ ls -1 /sys/class/leds/ > >>>tpacpi:green:batt > >>>tpacpi:orange:batt > >>> > >>>This is physically 2 leds but hidden under one indicator, so you got > >>>"off", "green", "orange" and "green+orange". > >> > >>That's a good example. As long as you can recognize green+orange as

Re: [PATCHSET v3][RFC] Make background writeback not suck

2016-04-01 Thread Jens Axboe
On 04/01/2016 12:27 AM, Dave Chinner wrote: On Thu, Mar 31, 2016 at 09:25:33PM -0600, Jens Axboe wrote: On 03/31/2016 06:46 PM, Dave Chinner wrote: virtio in guest, XFS direct IO -> no-op -> scsi in host. That has write back caching enabled on the guest, correct? No. It uses virtio,cache=no

Re: [PATCH 05/11] ARM: dts: exynos: Fix DTC unit name warnings in Exynos4x12

2016-04-01 Thread Javier Martinez Canillas
Hello Krzysztof, On 04/01/2016 02:57 AM, Krzysztof Kozlowski wrote: > Fix following DTC warnings in Exynos4x12 boards: > > Warning (unit_address_vs_reg): Node /camera/fimc-is@1200/pmu has a reg or > ranges property, but no unit name > > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm/

Re: [PATCH v2] gpio: pca953x: Use correct u16 value for register word write

2016-04-01 Thread Yong Li
Yes it is a regression. I think it should be tagged for stable too Thanks, Yong 2016-04-01 20:51 GMT+08:00 Linus Walleij : > On Wed, Mar 30, 2016 at 8:49 AM, Yong Li wrote: > >> The current implementation only uses the first byte in val, >> the second byte is always 0. Change it to use cpu_to_le

Re: [PATCH 2/4] samples/bpf: Use llc in PATH, rather than a hardcoded value

2016-04-01 Thread Naveen N. Rao
On 2016/03/31 08:19PM, Daniel Borkmann wrote: > On 03/31/2016 07:46 PM, Alexei Starovoitov wrote: > >On 3/31/16 4:25 AM, Naveen N. Rao wrote: > >> clang $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS) \ > >> -D__KERNEL__ -D__ASM_SYSREG_H -Wno-unused-value -Wno-pointer-sign > >> \ >

Re: usb: gadget breakage on N900: bind UDC by name passed via usb_gadget_driver structure

2016-04-01 Thread Pavel Machek
Hi! > >> > Dmesg from the n900 is attached as /tmp/delme.gz. I did _not_ apply > >> > the patch from https://lkml.org/lkml/2016/3/24/670 , yet, as I'm using > >> > devicetree boot. > >> > >> Hmm.. don't see anything strange in the boot log related to USB, > >> I'll try your config > > > > Let me k

Re: [PATCH v3 03/16] mm: add non-lru movable page support document

2016-04-01 Thread Vlastimil Babka
On 03/30/2016 09:12 AM, Minchan Kim wrote: This patch describes what a subsystem should do for non-lru movable page supporting. Intentionally reading this first without studying the code to better catch things that would seem obvious otherwise. Cc: Jonathan Corbet Signed-off-by: Minchan Ki

Re: [PATCH v2] block: fix possible NULL dereference

2016-04-01 Thread Jens Axboe
On 04/01/2016 08:34 AM, Sudip Mukherjee wrote: We were checking for iter to be NULL after dereferencing it. There is actually no need to check for iter to be NULL as all the callers of blk_rq_map_user_iov() does call it with a valid pointer to struct iov_iter. But as iter->count can be NULL so th

Re: [PATCH 04/11] ARM: dts: exynos: Fix DTC unit name warnings in Trats2 board

2016-04-01 Thread Javier Martinez Canillas
Hello Krzysztof, On 04/01/2016 02:57 AM, Krzysztof Kozlowski wrote: > Fix following DTC warnings in Trats2 board: > > Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but > no unit name > Warning (unit_address_vs_reg): Node > /i2c-gpio-1/max77693@66/regulators/ESAFEOUT1

Re: [PATCH] pinctrl: mediatek: correct debounce time unit in mtk_gpio_set_debounce

2016-04-01 Thread Yingjoe Chen
Daniel, Thanks for your review. On Fri, 2016-04-01 at 22:28 +0800, Daniel Kurtz wrote: > Hi Yingjoe, > > On Fri, Apr 1, 2016 at 9:51 PM, Yingjoe Chen > wrote: > > The debounce time unit for gpio_chip.set_debounce is us but > > mtk_gpio_set_debounce regard it as ms. > > Fix this by correct deb

Re: [PATCH v4 1/4] perf config: Introduce perf_config_set class

2016-04-01 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 01, 2016 at 07:27:22PM +0900, Taeung Song escreveu: > On 04/01/2016 02:31 AM, Arnaldo Carvalho de Melo wrote: > >Em Tue, Mar 29, 2016 at 09:43:13AM +0900, Taeung Song escreveu: > >>+static int collect_config(const char *var, const char *value, > >>+ void *perf_config

[PATCH v2] block: fix possible NULL dereference

2016-04-01 Thread Sudip Mukherjee
We were checking for iter to be NULL after dereferencing it. There is actually no need to check for iter to be NULL as all the callers of blk_rq_map_user_iov() does call it with a valid pointer to struct iov_iter. But as iter->count can be NULL so the assignment to copy is being done after checking

Re: [PATCH 0/2] reset: Add support for Oxford Semiconductor Reset

2016-04-01 Thread Philipp Zabel
Hi Neil, Am Freitag, den 01.04.2016, 16:16 +0200 schrieb Neil Armstrong: > This patchset includes support for the reset controller driver for > Oxford Semiconductor OXNAS SoC Family. > > It was originally posted part of a platform patchset available here : > http://lkml.kernel.org/r/1458838215-23

Re: [PATCHSET v3][RFC] Make background writeback not suck

2016-04-01 Thread Jens Axboe
On 04/01/2016 12:16 AM, Dave Chinner wrote: On Thu, Mar 31, 2016 at 09:39:25PM -0600, Jens Axboe wrote: On 03/31/2016 09:29 PM, Jens Axboe wrote: I can't seem to reproduce this at all. On an nvme device, I get a fairly steady 60K/sec file creation rate, and we're nowhere near being IO bound. So

Re: [RFC PATCH 12/12] IMA: Use the the system trusted keyrings instead of .ima_mok [ver #3]

2016-04-01 Thread David Howells
Mimi Zohar wrote: > The only place where "KEY_ALLOC_BYPASS_RESTRICTION" is specified is in > load_system_certificate_list(), when adding keys to > the .builtin_trusted_keys keyring. There is no other set of keys > builtin and added to the IMA keyring. Are the keys loaded by integrity_load_x509

[PATCH 0/2] reset: Add support for Oxford Semiconductor Reset

2016-04-01 Thread Neil Armstrong
This patchset includes support for the reset controller driver for Oxford Semiconductor OXNAS SoC Family. It was originally posted part of a platform patchset available here : http://lkml.kernel.org/r/1458838215-23314-1-git-send-email-narmstr...@baylibre.com Changes this v3 patchset : - Get rid o

Re: [PATCH 03/11] ARM: dts: exynos: Fix DTC unit name warnings in Exynos4

2016-04-01 Thread Javier Martinez Canillas
On 04/01/2016 02:57 AM, Krzysztof Kozlowski wrote: > Fix following DTC warnings in all Exynos4 boards: > > Warning (unit_address_vs_reg): Node /soc/video-phy@10020710 has a unit name, > but no reg property > > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm/boot/dts/exynos4.dtsi | 2 +- >

Re: [PATCH v3 12/18] dt-bindings: Add PLX Technology OXNAS pinctrl and gpio bindings

2016-04-01 Thread Neil Armstrong
On 03/31/2016 03:36 PM, Rob Herring wrote: > On Thu, Mar 31, 2016 at 3:58 AM, Linus Walleij > wrote: >> On Fri, Mar 25, 2016 at 3:48 PM, Rob Herring wrote: >>> On Thu, Mar 24, 2016 at 05:50:09PM +0100, Neil Armstrong wrote: Add pinctrl and gpio DT bindings for PLX Technology OXNAS SoC Famil

Re: [PATCH] ARM: dts: s3c: Fix DTC unit name warnings in S3C2416 and S3C6410

2016-04-01 Thread Joachim Eastwood
On 1 April 2016 at 09:11, Krzysztof Kozlowski wrote: > Fix following DTC warnings in S3C2416 and S3C6410 boards: > > Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but > no unit name > > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm/boot/dts/s3c2416-smdk2416.dts

Re: [PATCH] pinctrl: mediatek: correct debounce time unit in mtk_gpio_set_debounce

2016-04-01 Thread Daniel Kurtz
Hi Yingjoe, On Fri, Apr 1, 2016 at 9:51 PM, Yingjoe Chen wrote: > The debounce time unit for gpio_chip.set_debounce is us but > mtk_gpio_set_debounce regard it as ms. > Fix this by correct debounce time array dbnc_arr so it can find correct > debounce setting. This patch also changes the first e

Re: [PATCH] iio: imu: Add initial support for Bosch BMI160

2016-04-01 Thread Peter Meerwald-Stadler
> BMI160 is an Inertial Measurement Unit (IMU) which provides acceleration > and angular rate measurement. It also offers a secondary I2C interface > for connecting a magnetometer sensor (usually BMM160). > > Current driver offers support for accelerometer and gyroscope readings > via sysfs or vi

Re: [media 7/8] PCIE bridge driver for PT3 & PX-Q3PE

2016-04-01 Thread kbuild test robot
Hi Буди, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.6-rc1 next-20160401] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/info-are-ma/DVB-driver-for-Earthsoft

Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's

2016-04-01 Thread Jacek Anaszewski
On 04/01/2016 04:07 PM, Pavel Machek wrote: Hi! pavel@duo:~$ ls -1 /sys/class/leds/ tpacpi:green:batt tpacpi:orange:batt This is physically 2 leds but hidden under one indicator, so you got "off", "green", "orange" and "green+orange". That's a good example. As long as you can recognize green

[PATCH 1/2] clk: Add Oxford Semiconductor OXNAS Standard Clocks

2016-04-01 Thread Neil Armstrong
Add Oxford Semiconductor OXNAS SoC Family Standard Clocks support. Signed-off-by: Neil Armstrong --- drivers/clk/Kconfig | 6 ++ drivers/clk/Makefile| 1 + drivers/clk/clk-oxnas.c | 202 3 files changed, 209 insertions(+) create mode

Re: [PATCH 02/11] ARM: dts: exynos: Fix DTC unit name warnings in Exynos3250

2016-04-01 Thread Javier Martinez Canillas
Hello Krzysztof, On 04/01/2016 02:57 AM, Krzysztof Kozlowski wrote: > Fix following DTC warnings in Exynos3250 boards: > > Warning (unit_address_vs_reg): Node /soc/video-phy@10020710 has a unit name, > but no reg property > > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm/boot/dts/exynos

Re: [PATCH v5 04/10] serial: mps2-uart: add MPS2 UART driver

2016-04-01 Thread Vladimir Murzin
On 01/04/16 15:19, Andy Shevchenko wrote: > On Fri, Apr 1, 2016 at 5:02 PM, Vladimir Murzin > wrote: >> This driver adds support to the UART controller found on ARM MPS2 >> platform. >> >> Signed-off-by: Vladimir Murzin > > Reviewed-by: Andy Shevchenko > Thanks, Andy! Vladimir

[PATCH 0/2] clk: Add Oxford Semiconductor OXNAS Clocks support

2016-04-01 Thread Neil Armstrong
This patchset includes support for the standard clocks controller for the Oxford Semiconductor OXNAS SoC Family. It was originally posted part of a platform patchset available here : http://lkml.kernel.org/r/1458838215-23314-1-git-send-email-narmstr...@baylibre.com Changes this v3 patchset : - Ge

[PATCH 2/2] dt-bindings: Add Oxford Semiconductor OXNAS Standard Clocks bindings

2016-04-01 Thread Neil Armstrong
Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- .../devicetree/bindings/clock/oxnas,stdclk.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/oxnas,stdclk.txt diff --git a/Documentation/devicetree/bindings/cl

Re: [PATCH 01/11] ARM: dts: exynos: Fix DTC unit name warnings in cros-adc-thermistors

2016-04-01 Thread Javier Martinez Canillas
Hello Krzysztof, On 04/01/2016 02:57 AM, Krzysztof Kozlowski wrote: > Fix following DTC warnings in cros-adc-thermistors: > Warning (unit_address_vs_reg): Node /adc@12D1/ncp15wb473@3 has a unit > name, but no reg property > Warning (unit_address_vs_reg): Node /adc@12D1/ncp15wb473@4 has a

[PATCH 1/2] clocksource: sp804: Add support for OX810SE 24bit timer width

2016-04-01 Thread Neil Armstrong
In order to support the Dual-Timer on the Oxford Semiconductor OX810SE SoC, implement variable counter width, keeping 32bit as default width. Add new compatible string oxsemi,ox810se-rps-timer in order to select the 24bit counter width. Signed-off-by: Neil Armstrong --- drivers/clocksource/timer

[PATCH 0/2] clocksource: sp804: Add OX810SE 24bit mode Support

2016-04-01 Thread Neil Armstrong
This patchset includes support for Oxford Semiconductor OX810SE SoC by adding variable width support. It selects the 24bit mode with a new compatible string. It adds a timer_sp804 structure used to configure the clocksource and clockevents. It was originally posted part of a platform patchset ava

[PATCH 2/2] dt-bindings: Add Oxford Semiconductor Reset Controller bindings

2016-04-01 Thread Neil Armstrong
Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- .../devicetree/bindings/reset/oxnas,reset.txt | 58 ++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/oxnas,reset.txt diff --git a/Documentation/devicetree/bindings/res

[PATCH 2/2] dt-bindings: timer: sp804: add new compatible for OX810SE SoC

2016-04-01 Thread Neil Armstrong
Add new oxsemi,ox810se-rps-timer compatible string to support the Oxford Semiconductor OX810SE SoC Dual Timers variant. Acked-by: Rob Herring Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/timer/arm,sp804.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [lustre-devel] [RFC PATCH 0/3] staging: lustre: detypedef

2016-04-01 Thread Drokin, Oleg
On Apr 1, 2016, at 9:02 AM, Joe Perches wrote: > Question about removing lustre typedefs. > > Various bits of lustre code use a mix of struct foo and foo_t. > > When would be an appropriate time to submit patches similar to > below that individually remove various typedefs from lustre code? I

Re: [PATCH v5 04/10] serial: mps2-uart: add MPS2 UART driver

2016-04-01 Thread Andy Shevchenko
On Fri, Apr 1, 2016 at 5:02 PM, Vladimir Murzin wrote: > This driver adds support to the UART controller found on ARM MPS2 > platform. > > Signed-off-by: Vladimir Murzin Reviewed-by: Andy Shevchenko > --- > drivers/tty/serial/Kconfig | 12 + > drivers/tty/serial/Makefile |1 +

Re: [PATCH v7 1/4] gadget: Introduce the usb charger framework

2016-04-01 Thread Mark Brown
On Fri, Apr 01, 2016 at 08:43:10AM +0300, Felipe Balbi wrote: > Mark Brown writes: > > IIRC Greg didn't want new classes? > good point. Still, this doesn't seem to fit a but_type IMO. It does in this new world order. IIRC on an earlier round of review there was some code that didn't use a bus

[PATCH 1/2] reset: Add Oxford Semiconductor Reset Controller driver

2016-04-01 Thread Neil Armstrong
Add System reset controller driver for Oxford Semiconductor OXNAS SoC Family. CC: Ma Haijun Signed-off-by: Neil Armstrong --- drivers/reset/Kconfig | 3 + drivers/reset/Makefile | 1 + drivers/reset/reset-oxnas.c | 136 3 files changed

Re: [PATCH 12/12] mtd: nand: move of_get_nand_xxx() helpers into nand_base.c

2016-04-01 Thread kbuild test robot
Hi Boris, [auto build test WARNING on next-20160401] [cannot apply to v4.6-rc1 v4.5-rc7 v4.5-rc6 v4.6-rc1] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Boris-Brezillon/mtd-get-rid-of-of_mtd

Re: [PATCH V1 Resend 2/3] cpufreq: dt: Add generic platform-device creation support

2016-04-01 Thread Rob Herring
On Fri, Apr 1, 2016 at 5:23 AM, Viresh Kumar wrote: > Cc'ing Rob and Mason. > > On 30-03-16, 09:53, Arnd Bergmann wrote: >> I think it should be something in the /cpus or the /opp_table hierarchy, >> not the root of the device tree, but other than that I don't care much >> whether it's a variation

Re: [RFC PATCH 3/4] pinctrl: Add ACPI support

2016-04-01 Thread Andy Shevchenko
On Thu, 2016-03-31 at 14:44 +0300, Irina Tirdea wrote: > Add ACPI support for pin controller properties. These are > based on ACPI _DSD properties and follow the device tree > model based on states and node configurations. The states > are defined as _DSD properties and configuration nodes > are de

[RFC][PATCH v9 2/2] printk: Make wake_up_klogd_work_func() async

2016-04-01 Thread Sergey Senozhatsky
From: Jan Kara Offload printing of scheduler deferred messages from IRQ context to a schedulable printing kthread, when possible (the same way we do it in vprintk_emit()). Otherwise, the CPU can spend unbounded amount of time doing printing in console_unlock() from IRQ. Signed-off-by: Jan Kara

[RFC][PATCH v9 0/2] printk: Make printk() completely async

2016-04-01 Thread Sergey Senozhatsky
le context and thus we don't lockup any particular CPU or even interrupts. against next-20160401 v9: -- move need_flush_console assignment down in vprintk_emit (Jan) -- simplify need_flush_console assignment rules (Petr) -- clear need_flush_console in printing function (Petr) -- rename need_flus

[RFC][PATCH v9 1/2] printk: Make printk() completely async

2016-04-01 Thread Sergey Senozhatsky
From: Jan Kara Currently, printk() sometimes waits for message to be printed to console and sometimes it does not (when console_sem is held by some other process). In case printk() grabs console_sem and starts printing to console, it prints messages from kernel printk buffer until the buffer is e

Re: [RFC PATCH 2/4] pinctrl: pinconf-generic: Add ACPI support

2016-04-01 Thread Andy Shevchenko
On Thu, 2016-03-31 at 14:44 +0300, Irina Tirdea wrote: > Add ACPI support for the generic device tree properties. > Convert the pinconf generic code to handle both ACPI and > device tree by using the fwnode_property API. Also include > renaming device tree references in names of functions and > str

[PATCH v5 08/10] ARM: dts: introduce MPS2 AN385/AN386

2016-04-01 Thread Vladimir Murzin
Application Notes 385 and 386 shares the same memory map and features except the CPU is used. AN385 is supplied with Cortex-M3 CPU and AN386 is supplied with Cortex-M4. Signed-off-by: Vladimir Murzin Reviewed-by: Linus Walleij --- arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/mps

[PATCH v5 07/10] ARM: configs: add MPS2 defconfig

2016-04-01 Thread Vladimir Murzin
This patch adds a new config for MPS2 platform. Signed-off-by: Vladimir Murzin --- arch/arm/configs/mps2_defconfig | 109 +++ 1 file changed, 109 insertions(+) create mode 100644 arch/arm/configs/mps2_defconfig diff --git a/arch/arm/configs/mps2_defconfig b

[PATCH v5 09/10] ARM: dts: introduce MPS2 AN399/AN400

2016-04-01 Thread Vladimir Murzin
Application Notes 399 and 400 shares the same memory map and features. Both are shipped with Cortex-M7 and have the same peripheral as AN385/AN386, but with different location of PSRAM and Ethernet controller. Signed-off-by: Vladimir Murzin --- arch/arm/boot/dts/Makefile |4 +- arch/a

[PATCH v5 10/10] MAINTAINERS: Update ARM Versatile Express platform entry

2016-04-01 Thread Vladimir Murzin
This patch update ARM Versatile Express entry to cover bits needed for Cortex-M Prototyping System (MPS2 platform). So patches for the latter are collected by existing Vexpress and Juno maintainers (Liviu, Sudeep, Lorenzo) and find their way upstream via Vexpess and/or Juno trees. Signed-off-by: V

Re: [PATCH] iio: imu: Add initial support for Bosch BMI160

2016-04-01 Thread kbuild test robot
Hi Daniel, [auto build test ERROR on iio/togreg] [also build test ERROR on v4.6-rc1 next-20160401] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Daniel-Baluta/iio-imu-Add-initial-support-for

Re: [RFC PATCH 06/10] spi: add support for ACPI reconfigure notifications

2016-04-01 Thread Mark Brown
On Fri, Apr 01, 2016 at 01:54:28PM +0300, Octavian Purdila wrote: > I probably don't fully understand your question, but I don't see a way > of how we can create a new SPI device from generic ACPI code. For > example, in acpi_spi_add_device() we need the spi_master node so that > we can allocate t

Re: [RFC PATCH 12/12] IMA: Use the the system trusted keyrings instead of .ima_mok [ver #3]

2016-04-01 Thread David Howells
David Howells wrote: > The three choice options I implemented don't exactly provide new features. > Firstly: > > config IMA_LOAD_X509 > > allow keys to be loaded in at compile time, Ah - I think I'm labouring under a slight misapprehension here. IMA_LOAD_X509 doesn't load keys at compil

[PATCH v5 03/10] dt-bindings: document the MPS2 UART bindings

2016-04-01 Thread Vladimir Murzin
This adds documentation of device tree bindings for the UART found on ARM MPS2 platform Signed-off-by: Vladimir Murzin Acked-by: Rob Herring --- .../devicetree/bindings/serial/arm,mps2-uart.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devi

[PATCH v5 04/10] serial: mps2-uart: add MPS2 UART driver

2016-04-01 Thread Vladimir Murzin
This driver adds support to the UART controller found on ARM MPS2 platform. Signed-off-by: Vladimir Murzin --- drivers/tty/serial/Kconfig | 12 + drivers/tty/serial/Makefile |1 + drivers/tty/serial/mps2-uart.c | 598 ++ include/uapi/linux/

Re: [PATCH v3 2/3] perf tools: Add support for MIPS userspace DWARF callchains.

2016-04-01 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 01, 2016 at 10:56:56AM +0200, Ralf Baechle escreveu: > From: David Daney > > Hack up the Makefile and add support code for mips unwinding > and dwarf-regs. Bzzt, failing to build on a minimal mips64 debian experimental env, on the one hand you expect perf/arch/mips/util/dwarf-regs.o

Re: [lkp] [blk] 1131f64d74: BUG: unable to handle kernel NULL pointer dereference at 0000000000000008

2016-04-01 Thread Jens Axboe
On 04/01/2016 02:40 AM, kernel test robot wrote: FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git wb-buf-throttle commit 1131f64d74958d495d8a6d5f9b981e86ed3beb7a ("blk-mq: don't throttle for virtual devices") +

[PATCH v5 00/10] Support for Cortex-M Prototyping System

2016-04-01 Thread Vladimir Murzin
Hi, This patch series provides the basic support for running ucLinux on V2M-MPS2 platform. With these patches applied ucLinux can be run on both HW and FVP models with Cortex-M3/M4/M7 configurations. Board description: http://infocenter.arm.com/help/topic/com.arm.doc.100112_0100_03_en/arm_versa

[PATCH v5 05/10] serial: mps2-uart: add support for early console

2016-04-01 Thread Vladimir Murzin
This adds support early console for MPS2 UART which can be enabled via earlycon=mps2,0x40004000 Signed-off-by: Vladimir Murzin Reviewed-by: Peter Hurley --- drivers/tty/serial/Kconfig |1 + drivers/tty/serial/mps2-uart.c | 28 2 files changed, 29 insertion

[PATCH v5 01/10] dt-bindings: document the MPS2 timer bindings

2016-04-01 Thread Vladimir Murzin
This adds documentation of device tree bindings for the timers found on ARM MPS2 platform. Signed-off-by: Vladimir Murzin Acked-by: Rob Herring --- .../devicetree/bindings/timer/arm,mps2-timer.txt | 28 1 file changed, 28 insertions(+) create mode 100644 Documentation/

[PATCH v5 02/10] clockevents/drivers: add MPS2 Timer driver

2016-04-01 Thread Vladimir Murzin
MPS2 platform has simple 32 bits general purpose countdown timers. The driver uses the first detected timer as a clocksource and the rest of the timers as a clockevent Signed-off-by: Vladimir Murzin Acked-by: Daniel Lezcano --- drivers/clocksource/Kconfig |6 + drivers/clocksource/Mak

[PATCH v5 06/10] ARM: vexpress/mps2: introduce MPS2 platform

2016-04-01 Thread Vladimir Murzin
The Cortex-M Prototyping System (or V2M-MPS2) is designed for prototyping and evaluation Cortex-M family of processors including the latest Cortex-M7 It comes with a range of useful peripherals including 8MB single cycle SRAM, 16MB PSRAM, Ethernet, QSVGA touch screen panel, 4bit RGB VGA connector,

Re: [PATCH] s390: fix build failure

2016-04-01 Thread Heiko Carstens
m-generic header") > Cc: Matt Redfearn > Signed-off-by: Sudip Mukherjee > --- > > Tested with s390 defconfig and allmodconfig build. > Build logs of next-20160401 are at: > https://travis-ci.org/sudipm-mukherjee/parport/jobs/119983952 (allmodconfig) > and > https://tr

Re: [PATCH] ARM: sa1100: Initialize gpio after gpio subsystem has been initialized

2016-04-01 Thread Guenter Roeck
On Fri, Apr 01, 2016 at 10:04:57AM +0200, Linus Walleij wrote: > On Thu, Mar 31, 2016 at 6:21 PM, Guenter Roeck wrote: > > On Tue, Mar 29, 2016 at 11:15:49AM -0700, Guenter Roeck wrote: > >> The sa1100 gpio driver was initialized from interrupt initialization code, > >> which is earlier than the g

Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's

2016-04-01 Thread Pavel Machek
Hi! On Wed 2016-03-30 09:57:38, Jacek Anaszewski wrote: > Hi Heiner and Pavel, > > On 03/29/2016 10:38 PM, Heiner Kallweit wrote: > >Am 29.03.2016 um 12:02 schrieb Pavel Machek: > >>Hi! > >> > >>First, please Cc me on RGB color support. > >> > >>>Add generic support for RGB Color LED's. > >>> > >>

[PATCH V2] extcon: palmas: Drop stray IRQF_EARLY_RESUME flag

2016-04-01 Thread Nishanth Menon
Palmas extcon IRQs are nested threaded and wired to the Palmas interrupt controller. So, this flag is not required for nested IRQs anymore, since commit 3c646f2c6aa9 ("genirq: Don't suspend nested_thread irqs over system suspend") was merged. However, the fix in commit ae64e42cc2b3 ("extcon: palmas

[PATCH] pinctrl: mediatek: correct debounce time unit in mtk_gpio_set_debounce

2016-04-01 Thread Yingjoe Chen
The debounce time unit for gpio_chip.set_debounce is us but mtk_gpio_set_debounce regard it as ms. Fix this by correct debounce time array dbnc_arr so it can find correct debounce setting. Signed-off-by: Yingjoe Chen --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 3 ++- 1 file changed, 2 in

Re: perf trace + BPF

2016-04-01 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 01, 2016 at 09:29:52PM +0800, Wangnan (F) escreveu: > > > On 2016/4/1 2:08, Arnaldo Carvalho de Melo wrote: > >Hi Wang, > > > > Trying to get back at working with 'perf trace' + BPF and I'm > >noticing that the perf_event_attr->sample_type for the BPF events are > >different than

[PATCH] sched/clock: Remove pointless test in cpu_clock/local_clock

2016-04-01 Thread Daniel Lezcano
In case the HAVE_UNSTABLE_SCHED_CLOCK config is set, the cpu_clock() version checks if sched_clock_stable() is not set and calls sched_clock_cpu(), otherwise it calls sched_clock(). sched_clock_cpu() checks also if sched_clock_stable() is set and, if true, calls sched_clock(). sched_clock() will

Re: [PATCH] Syntactic and factual errors in the API document

2016-04-01 Thread Jonathan Corbet
On Thu, 31 Mar 2016 19:35:32 -0700 Eduardo Valentin wrote: > I applied this one into the thermal-soc tree. But if you are willing to > add it via the documentation tree, let me know, I can drop it from my > -fixes branch. Up to you, but, if it's already captured in a tree and on its way Linuswar

Re: [PATCH] perf tools: Fix build errors on tsc functions for archs other than x86

2016-04-01 Thread Adrian Hunter
On 01/04/16 16:24, Arnaldo Carvalho de Melo wrote: > Em Fri, Apr 01, 2016 at 10:13:12AM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Fri, Apr 01, 2016 at 03:49:32AM +, He Kuang escreveu: >>> Build errors on aarch64: >>> >>> libperf.a(libperf-in.o): In function `convert_timestamp': >>> ut

Re: [RFC PATCH v1.9 00/14] livepatch: hybrid consistency model

2016-04-01 Thread Petr Mladek
On Fri 2016-03-25 14:34:47, Josh Poimboeuf wrote: > These patches are still a work in progress, but Jiri asked that I share > them before I go on vacation next week. Based on origin/master because > it has CONFIG_STACK_VALIDATION. I have to follow Mirek and say that it is a great work. > There's

Re: [PATCH net-next v2 0/6] net: dsa: mv88e6131: HW bridging support for 6185

2016-04-01 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > On Thu, Mar 31, 2016 at 04:53:40PM -0400, Vivien Didelot wrote: >> All packets passing through a switch of the 6185 family are currently all >> directed to the CPU port. This means that port bridging is software driven. >> >> To enable hardware bridging for this

Re: [PATCH 1/2] phy: Group vendor specific phy drivers

2016-04-01 Thread Vivek Gautam
Hi, On Fri, Apr 1, 2016 at 6:05 AM, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 01 April 2016 04:59 PM, Vivek Gautam wrote: >> Adding vendor specific directories in phy to group >> phy drivers under their respective vendor umbrella. >> >> Signed-off-by: Vivek Gautam >> --- >> >> With grow

Re: [PATCH] kallsyms: ignore ARM mode switching veneers

2016-04-01 Thread Ard Biesheuvel
On 26 February 2016 at 21:21, Arnd Bergmann wrote: > On Friday 26 February 2016 20:50:54 Ard Biesheuvel wrote: >> On ARM, the linker may emit veneers to deal with relative branch >> instructions that appear too far away from their targets. Since the second >> kallsyms pass results in an increase o

Re: [RFC PATCH v1.9 00/14] livepatch: hybrid consistency model

2016-04-01 Thread Miroslav Benes
> - actually test it I did slightly and it partially worked and partially it did not. When I applied sample livepatch module, /proc/cmdline was patched and when I called 'cat /proc/cmdline' I got the correct livepatched message. So far so good. But the patching itself never finished because of

Re: [PATCH] sched/deadline/rtmutex: Fix a PI crash for deadline tasks

2016-04-01 Thread Xunlei Pang
On 2016/04/01 at 21:12, Peter Zijlstra wrote: > > On 1 April 2016 14:23:58 CEST, Xunlei Pang wrote: > We need this iff lock owner has the deadline priority. >>> How is this deadline specific, those functions you modify are >>> deadline/rt agnostic. >> I checked the code, currently only deadli

Re: [PATCH] perf tools: Fix build errors on tsc functions for archs other than x86

2016-04-01 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 01, 2016 at 10:13:12AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Apr 01, 2016 at 03:49:32AM +, He Kuang escreveu: > > Build errors on aarch64: > > > > libperf.a(libperf-in.o): In function `convert_timestamp': > > util/jitdump.c:356: undefined reference to `tsc_to_perf

Re: [PATCH v3 1/6] pinctrl: baytrail: Add pin control data structures

2016-04-01 Thread Mika Westerberg
On Fri, Apr 01, 2016 at 03:25:26PM +0200, Linus Walleij wrote: > On Thu, Mar 31, 2016 at 10:04 AM, Mika Westerberg > wrote: > > > My ack still applies to the whole series. > > I take it that I can just apply the v4 with your ACK on them. That's right. Thanks!

Re: perf trace + BPF

2016-04-01 Thread Wangnan (F)
On 2016/4/1 2:08, Arnaldo Carvalho de Melo wrote: Hi Wang, Trying to get back at working with 'perf trace' + BPF and I'm noticing that the perf_event_attr->sample_type for the BPF events are different than the ones for the raw_syscalls:sys_{enter,exit} or to other tracepoint events we

Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's

2016-04-01 Thread Jacek Anaszewski
On 04/01/2016 02:55 PM, Pavel Machek wrote: Hi! pavel@duo:~$ ls -1 /sys/class/leds/ tpacpi:green:batt tpacpi:orange:batt This is physically 2 leds but hidden under one indicator, so you got "off", "green", "orange" and "green+orange". That's a good example. As long as you can recognize green

Re: [PATCH 1/1] gpio: mcp23s08: Add support for level triggered interrupts

2016-04-01 Thread Linus Walleij
On Thu, Mar 31, 2016 at 10:58 AM, Alexander Stein wrote: > On Thursday 31 March 2016 10:41:24, Linus Walleij wrote: > From the reference manual: >> The INTCAP register captures the GPIO port value at >> the time the interrupt occurred. The register is ‘read >> only’ and is updated only when an in

[PATCH] perf tools: Add sample types for bpf-output event

2016-04-01 Thread Wang Nan
Before this patch we can see very large time in the events before bpf-output event. For example: # ./perf trace -vv -T --ev sched:sched_switch \ --ev bpf-output/no-inherit,name=evt/ \ --ev ./test_bpf_trace.c/map:channel.event=evt/ \

Re: [PATCH] mm: Exclude HugeTLB pages from THP page_mapped logic

2016-04-01 Thread Steve Capper
Hi Andrew, On Thu, Mar 31, 2016 at 04:06:50PM -0700, Andrew Morton wrote: > On Tue, 29 Mar 2016 17:39:41 +0100 Steve Capper wrote: > > > HugeTLB pages cannot be split, thus use the compound_mapcount to > > track rmaps. > > > > Currently the page_mapped function will check the compound_mapcount,

Re: [PATCH v3 1/6] pinctrl: baytrail: Add pin control data structures

2016-04-01 Thread Linus Walleij
On Thu, Mar 31, 2016 at 10:04 AM, Mika Westerberg wrote: > My ack still applies to the whole series. I take it that I can just apply the v4 with your ACK on them. Yours, Linus Walleij

[PATCH 2/4] sched: Correctly handle nohz ticks cpu load accounting

2016-04-01 Thread Frederic Weisbecker
Ticks can happen in the middle of a nohz frame and cpu_load_update_active() doesn't handle these correctly. It forgets the whole previous tickless load and just records the current tick, ignoring potentially long idle periods. In order to solve this, record the load on nohz frame entry so we know

[PATCH 3/4] sched: Optimize tick periodic cpu load updates

2016-04-01 Thread Frederic Weisbecker
Don't bother with the whole pending tickless cpu load machinery if we run a tick periodic kernel. That's less job for the CPU on ticks. Cc: Byungchul Park Cc: Chris Metcalf Cc: Christoph Lameter Cc: Ingo Molnar Cc: Luiz Capitulino Cc: Mike Galbraith Cc: Paul E. McKenney Cc: Peter Zijlstra

<    1   2   3   4   5   6   7   8   9   >