Re: [PATCH 3/6] perf, tools, stat: Support metrics in --per-core/socket mode

2016-02-21 Thread Jiri Olsa
On Wed, Feb 17, 2016 at 02:44:02PM -0800, Andi Kleen wrote: SNIP > > perf_stat__print_shadow_stats(counter, uval, > stat_config.aggr_mode == AGGR_GLOBAL ? 0 : > - cpu_map__id_to_cpu(id), > + first_shadow

Re: [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-21 Thread Gabriel L. Somlo
On Sun, Feb 21, 2016 at 03:10:30PM +0200, Michael S. Tsirkin wrote: > On Sun, Feb 21, 2016 at 08:06:17AM -0500, Gabriel L. Somlo wrote: > > > > > > > > > +#if !(defined(FW_CFG_CTRL_OFF) && defined(FW_CTRL_DATA_OFF)) > > > > +# if (defined(CONFIG_ARM) || defined(CONFIG_ARM64)) > > > > +# define F

Re: [PATCH 3/6] perf, tools, stat: Support metrics in --per-core/socket mode

2016-02-21 Thread Jiri Olsa
On Wed, Feb 17, 2016 at 02:44:02PM -0800, Andi Kleen wrote: SNIP > +static void aggr_update_shadow(void) > +{ > + int cpu, cpu2, s2, id, s; > + u64 val; > + struct perf_evsel *counter; > + > + for (s = 0; s < aggr_map->nr; s++) { > + id = aggr_map->map[s]; > +

[GIT PULL] irqchip: Core changes for v4.6 (second round)

2016-02-21 Thread Jason Cooper
Hey Thomas, Just wanted to get this PR in before the week hits. All changes have been included in -next at least on Thursday. This is an incremental PR from tags/irqchip-core-4.6 up to tags/irqchip-core-4.6-2 on the irqchip/core branch. Please pull. thx, Jason. The following changes since c

Re: [PATCH] rtc: Add an option to invalidate dates in 2038

2016-02-21 Thread One Thousand Gnomes
> It doesn't change anything for 64-bit systems, I've excluded them by > using "depends on !64BIT". Right now, it doesn't change anything for > 32-bit systems because either way, they will fail in 2038. Which realistically won't actually matter because in 22 years time nobody will be able to find

Re: [PATCH v2] power: bq27xxx_battery: Restore device name

2016-02-21 Thread Pali Rohár
On Saturday 06 February 2016 11:35:49 Pali Rohár wrote: > On Tuesday 02 February 2016 13:47:37 Ivaylo Dimitrov wrote: > > Patch <703df6c097956d17a818e63961c82e8e9eef9fef> ("power: > > bq27xxx_battery: Reorganize I2C into a module") has removed the > > device name numbering from bq27xxx_battery_i2c_

Re: [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-21 Thread Gabriel L. Somlo
On Sun, Feb 21, 2016 at 10:30:26AM +0200, Michael S. Tsirkin wrote: > On Thu, Jan 28, 2016 at 09:23:11AM -0500, Gabriel L. Somlo wrote: > > From: Gabriel Somlo > > > > Make fw_cfg entries of type "file" available via sysfs. Entries > > are listed under /sys/firmware/qemu_fw_cfg/by_key, in folders

Re: [PATCH v3 2/5] ACPI: parse SPCR and enable matching console

2016-02-21 Thread Yury Norov
On Mon, Feb 15, 2016 at 09:05:26PM +0300, Aleksey Makarov wrote: > 'ARM Server Base Boot Requiremets' [1] mentions SPCR (Serial Port > Console Redirection Table) [2] as a mandatory ACPI table that > specifies the configuration of serial console. > > Parse this table and check if any registered con

[PATCH 1/5] perf tools: Fix assertion failure on dynamic entry

2016-02-21 Thread Namhyung Kim
The dynamic entry is created for each field in a tracepoint event. Since they have no fixed hpp format index, it should skip when perf_hpp__reset_width() is called. This caused following assertion failure.. $ perf record -e sched:sched_switch -a sleep 1 $ perf report -s comm,next_pid --stdio

Re: [PATCH] jme: remove the jme driver as it is no longer maintained

2016-02-21 Thread Diego Viola
On Sun, Feb 21, 2016 at 9:45 AM, One Thousand Gnomes wrote: >> I would appreciate some hint from someone who is more experienced with >> drivers. > > Start by testing > > - loading the driver as a module > - using the networking > - unloading the module (and checking it stays unloaded!) > > then

Re: [PATCH 3/6] perf, tools, stat: Support metrics in --per-core/socket mode

2016-02-21 Thread Jiri Olsa
On Wed, Feb 17, 2016 at 02:44:02PM -0800, Andi Kleen wrote: SNIP > @@ -892,7 +908,10 @@ static void printout(int id, int nr, struct perf_evsel > *counter, double uval, > struct perf_stat_output_ctx out; > struct outstate os = { > .fh = stat_config.output, > -

Re: [PATCH v5 3/4] media: pxa_camera: trivial move of dma irq functions

2016-02-21 Thread Guennadi Liakhovetski
On Sun, 21 Feb 2016, Guennadi Liakhovetski wrote: > Hi Robert, > > On Sun, 6 Sep 2015, Robert Jarzmik wrote: > > > This moves the dma irq handling functions up in the source file, so that > > they are available before DMA preparation functions. It prepares the > > conversion to DMA engine, where

[PATCH v3] Fix sun7i pin assignment for IRQ's

2016-02-21 Thread Henry Paulissen
After testing IRQ pins we found some bugs in the pinctrl declaration. Signed-off-by: Henry Paulissen --- Changes in v2: After some more testing we found irq on PI pins. they where on mux6 so this is included in my patch. Also included is a warning for PI17, this pin was not working

[PATCH] plusb added support for PL-27A1 , kernel 4.2.0-25

2016-02-21 Thread Daniel Kucera
Hello all, I made a patch to add support for Prolific PL-27A1 host-to-host USB 3.0 link cable. It's the same platform as PL-25A1 but with USB3.0 interface so basically I only added right vendor/device id to get detected. Maximum throughput I managed to get was about 1.5Gbps using iperf. I'll

Re: [PATCH v3] Fix sun7i pin assignment for IRQ's

2016-02-21 Thread Maxime Ripard
Hi, On Sun, Feb 21, 2016 at 02:20:41PM +0100, Henry Paulissen wrote: > After testing IRQ pins we found some bugs in the pinctrl declaration. Your commit log is going to need some work. Which bugs? What tests did you make? Why are you making these changes while the datasheet says otherwise? > Sig

Re: [PATCH v3 6/6] kvm: arm64: Add ACPI support for virt arch timer

2016-02-21 Thread Fu Wei
Hi Marc On 9 February 2016 at 01:10, Marc Zyngier wrote: > On 01/02/16 20:26, fu@linaro.org wrote: >> From: Fu Wei >> >> This patch adds ACPI/GTDT support for virt arch timer >> using the API in GTDT driver. >> >> Signed-off-by: Fu Wei >> --- >> virt/kvm/arm/arch_timer.c | 8 >> 1

[RFC][PATCH v2 0/3] mm/zsmalloc: increase objects density and reduce memory wastage

2016-02-21 Thread Sergey Senozhatsky
Hello, RFC huge classes are evil. zsmalloc knows the watermark after which classes are considered to be ->huge - every object stored consumes the entire zspage (which consist of a single order-0 page). zram, however, has its own statically defined watermark for `bad' compression and store

Re: [PATCH 1/2] mmc-sdricoh_cs: Delete unnecessary variable initialisations in sdricoh_init_mmc()

2016-02-21 Thread Sascha Sommer
Hello, Am Tue, 29 Dec 2015 22:00:35 +0100 schrieb SF Markus Elfring : > From: Markus Elfring > Date: Tue, 29 Dec 2015 21:11:45 +0100 > > These variables will eventually be set to an appropriate value a bit > later. > * host > * iobase > * result > > Thus let us omit the explicit initialisation

Re: [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-21 Thread Michael S. Tsirkin
On Thu, Jan 28, 2016 at 09:23:11AM -0500, Gabriel L. Somlo wrote: > From: Gabriel Somlo > > Make fw_cfg entries of type "file" available via sysfs. Entries > are listed under /sys/firmware/qemu_fw_cfg/by_key, in folders > named after each entry's selector key. Filename, selector value, > and size

[PATCH] intel-hid: allocate correct amount of memory for private struct

2016-02-21 Thread Wolfram Sang
We want the size of the struct, not of a pointer to it. To be future proof, just dereference the pointer to get the desired type. Signed-off-by: Wolfram Sang --- Compile tested only. Found by static code analysis. drivers/platform/x86/intel-hid.c | 3 +-- 1 file changed, 1 insertion(+), 2 dele

Re: [PATCH v5 1/4] media: pxa_camera: fix the buffer free path

2016-02-21 Thread Guennadi Liakhovetski
On Sun, 21 Feb 2016, Robert Jarzmik wrote: > Guennadi Liakhovetski writes: > > >> Okay Guennadi, I retested this version on top of v4.5-rc2, still good to > >> go. There is a minor conflict in the includes since this submission, and I > >> can > >> repost a v6 which solves it. > > > > How did y

Re: [PATCH 2/2] mmc-sdricoh_cs: Less checks in sdricoh_init_mmc() after, error detection

2016-02-21 Thread Sascha Sommer
Hello, Am Tue, 29 Dec 2015 22:02:37 +0100 schrieb SF Markus Elfring : > From: Markus Elfring > Date: Tue, 29 Dec 2015 21:45:34 +0100 > > This issue was detected by using the Coccinelle software. > > Two pointer checks could be repeated by the sdricoh_init_mmc() > function during error handling

Re: [PATCH] dmaengine: pl330: initialize tasklet after spin_unlock_irqrestore

2016-02-21 Thread Anand Moon
Hi Krzysztof, On 19 February 2016 at 13:45, Lars-Peter Clausen wrote: > On 02/19/2016 09:10 AM, Anand Moon wrote: >> Hi Krzysztof, >> >> On 19 February 2016 at 12:50, Krzysztof Kozlowski >> wrote: >>> On 19.02.2016 15:39, Anand Moon wrote: Hi Krzysztof, On 19 February 2016 at 11:3

Re: [PATCH 2/5] perf tools: Fix segfault on dynamic entries

2016-02-21 Thread Jiri Olsa
On Sun, Feb 21, 2016 at 11:22:35PM +0900, Namhyung Kim wrote: > The dynamic entry is created for each tracepoint event. When it sets up > the sort key, it checks with existing keys using ->equal() callback. > But it missed to set the ->equal for dynamic entries. The following > segfault was due t

Re: [PATCH 1/5] perf tools: Fix assertion failure on dynamic entry

2016-02-21 Thread Jiri Olsa
On Sun, Feb 21, 2016 at 11:22:34PM +0900, Namhyung Kim wrote: > The dynamic entry is created for each field in a tracepoint event. > Since they have no fixed hpp format index, it should skip when > perf_hpp__reset_width() is called. > > This caused following assertion failure.. > > $ perf recor

Re: [PATCH 3/5] perf tools: Update srcline/file if needed

2016-02-21 Thread Jiri Olsa
On Sun, Feb 21, 2016 at 11:22:36PM +0900, Namhyung Kim wrote: > Normally the hist entry's srcline and/or srcfile is set during sorting. > However sometime it's possible to a hist entry's srcline is not set yet > after the sorting. This is because the entry is so unique and other > sort keys alread

Re: [PATCH] ipv4: in new netns initialize sysctls in net.ipv4.conf.* with defaults

2016-02-21 Thread Konstantin Khlebnikov
On 21.02.2016 12:25, Vasily Averin wrote: Konstantin, I've investigated question with sysctls initialization inside namespaces some time ago. IIRC I've found people expect that sysctl values should be inherited from parent namespace. It allows node admin to adjust unsafe pre-compiled settings,

Re: [PATCH 4/5] perf tools: Fix alignment on some sort keys

2016-02-21 Thread Jiri Olsa
On Sun, Feb 21, 2016 at 11:22:37PM +0900, Namhyung Kim wrote: > The srcline, srcfile and trace sort keys can have long entries. With > commit 89fee7094323 ("perf hists: Do column alignment on the format > iterator"), it now aligns output with hist_entry__snprintf_alignment(). > So each (possibly l

Re: [PATCH 5/5] perf tools: Fix column width setting on 'trace' sort key

2016-02-21 Thread Jiri Olsa
On Sun, Feb 21, 2016 at 11:22:38PM +0900, Namhyung Kim wrote: > It missed to update column length of the 'trace' sort key in the > hists__calc_col_len() so it might truncate the output. It calculated > the column length in the ->cmp() callback originally but it doesn't > guarantee it's called alwa

Re: Camel Case

2016-02-21 Thread Jeff Merkey
On 2/20/16, Jeff Merkey wrote: > Is camel case discouraged in linux code? I noticed a check for it in > checkpatch.pl but it is not one of the default options form scanning. > > Jeff > Found a great writeup from Greg on the subject. question answered. Do not use it if possible. Cool that chec

Re: [PATCH v2] Fix sun7i pin assignment for IRQ's

2016-02-21 Thread Chen-Yu Tsai
On Sun, Feb 21, 2016 at 9:54 AM, hp197 wrote: > After testing IRQ pins we found some bugs in the pinctrl declaration. > > Signed-off-by: hp197 Please resend with your full name on the commit and the SoB. The patch itself looks good. ChenYu

Re: [PATCH] PM: declare __tracedata symbols as char[] rather than char

2016-02-21 Thread Rafael J. Wysocki
On Sunday, January 24, 2016 08:08:52 PM Eric Biggers wrote: > Accessing more than one byte from a symbol declared simply 'char' is undefined > behavior, as reported by UBSAN: > > UBSAN: Undefined behaviour in drivers/base/power/trace.c:178:18 > load of address 8203fc78 with ins

Re: [PATCH 6/6] ARM: dts: n900: Rename isp1704 to isp1707 to match correct name

2016-02-21 Thread Pavel Machek
On Sun 2016-02-21 12:28:23, Pali Rohár wrote: > This change does not break existing userspace or Maemo software because > isp1704_charger.c always export power supply device under isp1704 name. ..exports.. > Signed-off-by: Pali Rohár 4,5,6: Acked-by: Pavel Machek -- (english) http://www.liv

Re: [PATCHv6 1/3] rdmacg: Added rdma cgroup controller

2016-02-21 Thread Leon Romanovsky
On Sun, Feb 21, 2016 at 07:41:08PM +0530, Parav Pandit wrote: > CONFIG_CGROUP_RDMA > > On Sun, Feb 21, 2016 at 7:15 PM, Leon Romanovsky wrote: > > On Sun, Feb 21, 2016 at 05:03:05PM +0530, Parav Pandit wrote: > >> On Sun, Feb 21, 2016 at 1:13 PM, Leon Romanovsky wrote: > >> > On Sat, Feb 20, 201

[PATCH] ipv4: in new netns initialize sysctls in net.ipv4.conf.* with defaults

2016-02-21 Thread Konstantin Khlebnikov
Currently initial net.ipv4.conf.all.* and net.ipv4.conf.default.* are copied from init network namespace because static structures are used for init_net. This makes no sense because new netns might be created from any netns. This patch makes private copy also for init netns if network namespaces ar

Re: [PATCH] ipv4: in new netns initialize sysctls in net.ipv4.conf.* with defaults

2016-02-21 Thread Vasily Averin
Konstantin, I've investigated question with sysctls initialization inside namespaces some time ago. IIRC I've found people expect that sysctl values should be inherited from parent namespace. It allows node admin to adjust unsafe pre-compiled settings, and prepare adequate defaults before creat

Re: [PATCH] ARM: dts: n900: Use linux input defines instead hardcoded constants

2016-02-21 Thread Sebastian Reichel
Hi, On Sun, Feb 21, 2016 at 12:06:48PM +0100, Pali Rohár wrote: > This makes DTS structure more readable. > > Signed-off-by: Pali Rohár > --- > arch/arm/boot/dts/omap3-n900.dts | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/arch/arm/boot/dts/omap3

[RFC][PATCH v2 2/3] zram: use zs_get_huge_class_size_watermark()

2016-02-21 Thread Sergey Senozhatsky
From: Sergey Senozhatsky zram should stop enforcing its own 'bad' object size watermark, and start using zs_get_huge_class_size_watermark(). zsmalloc really knows better. Drop `max_zpage_size' and use zs_get_huge_class_size_watermark() instead. Signed-off-by: Sergey Senozhatsky --- drivers/bl

Re: [PATCH] ARM: dts: omap3-n900: Allow gpio keys to be disabled

2016-02-21 Thread Ivaylo Dimitrov
On 12.02.2016 23:53, Tony Lindgren wrote: Looks like this no longer applies because of linux,can-disable to wakeup-source changes. Can you please update against v4.5-rc series and repost? Could you elaborate on that? As I don't really understand what needs to be updated and what are "wakeup

Re: [PATCH v6 10/25] perf hists: Resort hist entries with hierarchy

2016-02-21 Thread Namhyung Kim
On Sun, Feb 21, 2016 at 12:19:18AM +0100, Jiri Olsa wrote: > On Tue, Feb 16, 2016 at 11:08:28PM +0900, Namhyung Kim wrote: > > SNIP > > > @@ -1349,6 +1427,17 @@ static void output_resort(struct hists *hists, > > struct ui_progress *prog, > > > > min_callchain_hits = callchain_total * (call

Re: [PATCH 4/7] atmel-isi: fix IS_ERR_VALUE usage

2016-02-21 Thread Guennadi Liakhovetski
Hi Andrzej, On Mon, 15 Feb 2016, Andrzej Hajda wrote: > IS_ERR_VALUE macro should be used only with unsigned long type. > For signed types comparison 'ret < 0' should be used. > > The patch follows conclusion from discussion on LKML [1][2]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel

Re: [PATCHv6 1/3] rdmacg: Added rdma cgroup controller

2016-02-21 Thread Parav Pandit
On Sun, Feb 21, 2016 at 8:39 PM, Leon Romanovsky wrote: > On Sun, Feb 21, 2016 at 07:41:08PM +0530, Parav Pandit wrote: >> CONFIG_CGROUP_RDMA >> >> On Sun, Feb 21, 2016 at 7:15 PM, Leon Romanovsky wrote: >> > On Sun, Feb 21, 2016 at 05:03:05PM +0530, Parav Pandit wrote: >> >> On Sun, Feb 21, 2016

[PULL] NBD for 4.6

2016-02-21 Thread Markus Pargmann
Hi Jens, This pull request contains 7 patches for 4.6. Patch 1 fixes some unnecessarily complicated code I introduced some versions ago for debugfs. Patch 2 removes the criticised signal usage within NBD to kill the NBD threads after a timeout. This code was used for the last years and is now re

[PATCH 4/7] nbd: Cleanup reset of nbd and bdev after a disconnect

2016-02-21 Thread Markus Pargmann
Group all variables that are reset after a disconnect into reset functions. This patch adds two of these functions, nbd_reset() and nbd_bdev_reset(). Signed-off-by: Markus Pargmann --- drivers/block/nbd.c | 40 +--- 1 file changed, 29 insertions(+), 11 deletio

[PATCH] KVM: remove useless variable in kvm_emulate_cpuid()

2016-02-21 Thread Long Peng
Originally, this var('function') was used by trace_kvm_cpuid(), but the trace_kvm_cpuid() has moved into kvm_cpuid() . From then on, this var is useless, so we can remove it. Signed-off-by: Long Peng --- arch/x86/kvm/cpuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 6/7] nbd: ratelimit error msgs after socket close

2016-02-21 Thread Markus Pargmann
From: Dan Streetman Make the "Attempted send on closed socket" error messages generated in nbd_request_handler() ratelimited. When the nbd socket is shutdown, the nbd_request_handler() function emits an error message for every request remaining in its queue. If the queue is large, this will spa

[PATCH 7/7] nbd: Create size change events for userspace

2016-02-21 Thread Markus Pargmann
The userspace needs to know when nbd devices are ready for use. Currently no events are created for the userspace which doesn't work for systemd. See the discussion here: https://github.com/systemd/systemd/pull/358 This patch uses a central point to setup the nbd-internal sizes. A ioctl to set a

[PATCH 5/7] nbd: Move flag parsing to a function

2016-02-21 Thread Markus Pargmann
nbd changes properties of the blockdevice depending on flags that were received. This patch moves this flag parsing into a separate function nbd_parse_flags(). Signed-off-by: Markus Pargmann --- drivers/block/nbd.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) di

Camel Case

2016-02-21 Thread Jeff Merkey
Is camel case discouraged in linux code? I noticed a check for it in checkpatch.pl but it is not one of the default options form scanning. Jeff

[PATCH 3/7] nbd: Timeouts are not user requested disconnects

2016-02-21 Thread Markus Pargmann
It may be useful to know in the client that a connection timed out. The current code returns success for a timeout. This patch reports the error code -ETIMEDOUT for a timeout. Signed-off-by: Markus Pargmann --- drivers/block/nbd.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-)

[PATCH 1/7] nbd: Fix debugfs error handling

2016-02-21 Thread Markus Pargmann
Static checker complains about the implemented error handling. It is indeed wrong. We don't care about the return values of created debugfs files. We only have to check the return values of created dirs for NULL pointer. If we use a null pointer as parent directory for files, this may lead to debu

[PATCH 2/7] nbd: Remove signal usage

2016-02-21 Thread Markus Pargmann
As discussed on the mailing list, the usage of signals for timeout handling has a lot of potential issues. The nbd driver used for some time signals for timeouts. These signals where able to get the threads out of the blocking socket operations. This patch removes all signal usage and uses a socke

Re: [PATCH 2/6] perf, tools, stat: Implement CSV metrics output

2016-02-21 Thread Jiri Olsa
On Wed, Feb 17, 2016 at 02:44:01PM -0800, Andi Kleen wrote: SNIP > --- > tools/perf/builtin-stat.c | 76 > --- > 1 file changed, 72 insertions(+), 4 deletions(-) > > diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c > index 86289df..

[PATCH] mm,oom: remove shortcuts for SIGKILL and PF_EXITING cases

2016-02-21 Thread Tetsuo Handa
Currently, sending SIGKILL to all user processes sharing the same memory is omitted by three locations. But they should be removed due to possible OOM livelock sequence shown below. About setting TIF_MEMIE on current->mm && fatal_signal_pending(current) at out_of_memory(): There are two thread

Re: [PATCH 2/6] perf, tools, stat: Implement CSV metrics output

2016-02-21 Thread Jiri Olsa
On Thu, Feb 18, 2016 at 06:39:21PM +0100, Andi Kleen wrote: > > Where before it wasn't there: > > > > cat /tmp/before > > 0.282628,,task-clock,282628,100.00 > > 1,,context-switches,282628,100.00 > > 0,,cpu-migrations,282628,100.00 > > 52,,page-faults,282628,100.00 > > 861213,,cycles,285354,100.00

Re: [PATCH] mfd: fsl-imx25-tsadc: select IRQ_DOMAIN

2016-02-21 Thread Markus Pargmann
On Tuesday 16 February 2016 15:54:24 Arnd Bergmann wrote: > The newly added tsadc code use irq domains, but it can be enabled > when they are disabled in Kconfig: > > drivers/mfd/fsl-imx25-tsadc.c:41:22: error: implicit declaration of function > 'irq_find_mapping' [-Werror=implicit-function-decla

Re: [PATCH] Documentation/memory-barriers: fix wrong comment in example

2016-02-21 Thread SeongJae Park
On Sun, Feb 21, 2016 at 2:25 PM, Paul E. McKenney wrote: > On Sun, Feb 21, 2016 at 07:50:19AM +0900, SeongJae Park wrote: >> On Sun, Feb 21, 2016 at 4:57 AM, Paul E. McKenney >> wrote: >> > On Sat, Feb 20, 2016 at 03:01:08PM +0900, SeongJae Park wrote: >> >> There is wrong comment in example for

Re: [PATCH] Revert "regulator: tps65217: remove tps65217.dtsi file"

2016-02-21 Thread Heiko Schocher
Hello Tony, Peter, Am 19.02.2016 um 18:04 schrieb Tony Lindgren: * Peter Ujfalusi [160219 06:14]: This reverts commit 8e6ebfaa9b384088002baa10f7534efa73a0794e. Without the patch reverted regulators will not work. This prevents MMC to be working for example so the boards can not boot to MMC ro

Re: [PATCHv6 1/3] rdmacg: Added rdma cgroup controller

2016-02-21 Thread Leon Romanovsky
On Sun, Feb 21, 2016 at 05:03:05PM +0530, Parav Pandit wrote: > On Sun, Feb 21, 2016 at 1:13 PM, Leon Romanovsky wrote: > > On Sat, Feb 20, 2016 at 04:30:04PM +0530, Parav Pandit wrote: > > Can you place this ifdef before declaring struct rdma_cgroup? > Yes. I missed out this cleanup. Done locally

Re: [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-21 Thread Michael S. Tsirkin
On Sun, Feb 21, 2016 at 08:06:17AM -0500, Gabriel L. Somlo wrote: > > > > > > +#if !(defined(FW_CFG_CTRL_OFF) && defined(FW_CTRL_DATA_OFF)) > > > +# if (defined(CONFIG_ARM) || defined(CONFIG_ARM64)) > > > +# define FW_CFG_CTRL_OFF 0x08 > > > +# define FW_CFG_DATA_OFF 0x00 > > > +# elif (defined

Re: [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-21 Thread Michael S. Tsirkin
On Sun, Feb 21, 2016 at 08:06:17AM -0500, Gabriel L. Somlo wrote: > > So for all arches which support ACPI, I think this driver > > should just rely on ACPI. > > There was a discussion about that a few versions ago, and IIRC the > conclusion was not to expect the firmware to contend for fw_cfg acc

[PATCH v7 2/2] ASoC: sunxi: Add support for the SPDIF block

2016-02-21 Thread codekipper
From: Marcus Cooper The sun4i, sun5i and sun7i SoC families have an SPDIF block which is capable of playback and capture. This patch enables the playback of this block for the sun4i families. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/Kconfig | 8 + sound/soc/sunxi/Makefile

Re: [PATCH] ARM: OMAP2+: allow DEBUG_UNCOMPRESS for OMAP2+

2016-02-21 Thread LIYONG
no problem, let me submit another patch > 在 2016年2月20日,02:02,Tony Lindgren 写道: > > Hi, > > * Yong Li [151228 20:12]: >> Based on the below >> commit ae3c99a26c60 ("ARM: 7806/1: allow DEBUG_UNCOMPRESS for Tegra"), >> change the .data section to .text section, >> to enable DEBUG_UNCOMPRESS for O

Re: [PATCH] ARM: OMAP2+: allow DEBUG_UNCOMPRESS for OMAP2+

2016-02-21 Thread Tony Lindgren
* LIYONG [160221 04:20]: > no problem, let me submit another patch OK thanks! Tony

[PATCH RESEND] TTY, devpts: document pty count limiting

2016-02-21 Thread Konstantin Khlebnikov
Logic has been changed in kernel 3.4 by commit e9aba5158a80 ("tty: rework pty count limiting") but still not documented. Sysctl kernel.pty.max works as global limit, kernel.pty.reserve ptys are reserved for initial devpts instance (mounted without "newinstance"). Per-instance limit also could be s

Re: [PATCH] staging: xgifb: Fix comment style

2016-02-21 Thread Bo YU
Hello, On Sat, Feb 20, 2016 at 03:38:15PM -0800, Kroah-Hartman wrote: >On Wed, Feb 17, 2016 at 02:53:34PM +0800, Bo YU wrote: >> Fix comments to use trailing */ on separate lines. >> >> Signed-off-by: YU BO >> --- >> drivers/staging/xgifb/vb_init.c | 10 +- >> 1 file changed, 5 inser

Re: 4.4-final: 28 bioset threads on small notebook

2016-02-21 Thread Kent Overstreet
On Sat, Feb 20, 2016 at 09:55:19PM +0100, Pavel Machek wrote: > Hi! > > > > > You're directing this concern to the wrong person. > > > > > > > > I already told you DM is _not_ contributing any extra "bioset" threads > > > > (ever since commit dbba42d8a). > > > > > > Well, sorry about that. Note

[PATCH v7 1/2] ASoC: sunxi :add sun4i SPDIF dt bindings

2016-02-21 Thread codekipper
From: Marcus Cooper Add devicetree bindings for the SPDIF transceiver found on found on Allwinners A10 and A20 SoCs. Signed-off-by: Marcus Cooper --- .../bindings/sound/sunxi,sun4i-spdif.txt | 39 ++ 1 file changed, 39 insertions(+) create mode 100644 Documentat

[PATCH] ubifs: Implement O_TMPFILE

2016-02-21 Thread Richard Weinberger
This patchs adds O_TMPFILE support to UBIFS. Signed-off-by: Richard Weinberger --- fs/ubifs/dir.c | 71 ++ 1 file changed, 71 insertions(+) diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index 795992a..660eefe 100644 --- a/fs/ubifs/dir.c +++

[patch] sched,rt: __always_inline preemptible_lazy()

2016-02-21 Thread Mike Galbraith
homer: # nm kernel/sched/core.o|grep preemptible_lazy 00b5 t preemptible_lazy echo wakeup_rt > current_tracer ==> Welcome to infinity. Signed-off-bx: Mike Galbraith --- kernel/sched/core.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/sched/core.c +++ b/kern

[PATCH] ARM: dts: n900: Use linux input defines instead hardcoded constants

2016-02-21 Thread Pali Rohár
This makes DTS structure more readable. Signed-off-by: Pali Rohár --- arch/arm/boot/dts/omap3-n900.dts | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index e0443cd..85c29f3 100644 --- a/

Re: [PATCH v6 16/25] perf ui/stdio: Implement hierarchy output mode

2016-02-21 Thread Namhyung Kim
On Sun, Feb 21, 2016 at 12:18:56AM +0100, Jiri Olsa wrote: > On Tue, Feb 16, 2016 at 11:08:34PM +0900, Namhyung Kim wrote: > > SNIP > > > +static int hist_entry__hierarchy_fprintf(struct hist_entry *he, > > +struct perf_hpp *hpp, > > +

[PATCH 2/6] power_supply: isp1704_charger: Add compatible of match for nxp,isp1707

2016-02-21 Thread Pali Rohár
Signed-off-by: Pali Rohár --- drivers/power/isp1704_charger.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c index acaf7cf..4cd6899 100644 --- a/drivers/power/isp1704_charger.c +++ b/drivers/power/isp1704_charger.c @@ -536,

[PATCH] ubi: Fix out of bounds write in volume update code

2016-02-21 Thread Richard Weinberger
ubi_start_leb_change() alloctes too few bytes. ubi_more_leb_change_data() will write up to req->upd_bytes + ubi->min_io_size bytes. Cc: sta...@vger.kernel.org Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/upd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/m

Re: [PATCH v6 25/25] perf top: Add --hierarchy option

2016-02-21 Thread Namhyung Kim
On Sun, Feb 21, 2016 at 12:19:29AM +0100, Jiri Olsa wrote: > On Tue, Feb 16, 2016 at 11:08:43PM +0900, Namhyung Kim wrote: > > Support hierarchy output for perf-top using --hierarchy option. > > > > Acked-by: Pekka Enberg > > Signed-off-by: Namhyung Kim > > --- > > tools/perf/Documentation/perf

Re: [PATCH] ARM: OMAP2+: Fix onenand initialization to avoid filesystem corruption

2016-02-21 Thread Ivaylo Dimitrov
Hi, On 11.02.2016 02:12, Tony Lindgren wrote: Also.. There's a chance somebody has created a onenand file system with recent mainline kernels that did the reset and disabled ECC. So with Ivaylo's patch fixing that, those may not mount properly any longer. Most likely people just keep their maem

Re: rcu_preempt self-detected stall on CPU from 4.5-rc3, since 3.17

2016-02-21 Thread Ross Green
On Sun, Feb 21, 2016 at 4:04 PM, Ross Green wrote: > On Sat, Feb 20, 2016 at 5:32 PM, Paul E. McKenney > wrote: >> On Sat, Feb 20, 2016 at 03:34:30PM +1100, Ross Green wrote: >>> On Sat, Feb 20, 2016 at 4:33 AM, Paul E. McKenney >>> wrote: >>> > On Thu, Feb 18, 2016 at 08:13:18PM -0800, John Stu

Re: [PATCH v1 2/4] block: check virt boundary in bio_will_gap()

2016-02-21 Thread Sagi Grimberg
Looks fine, Reviewed-by: Sagi Grimberg

Re: [PATCH 2/2] bmips: add device tree example for BCM6358

2016-02-21 Thread Álvaro Fernández Rojas
El 20/01/2016 a las 17:59, Rob Herring escribió: On Sun, Jan 17, 2016 at 12:28:21PM +0100, Álvaro Fernández Rojas wrote: This adds a device tree example for SFR Neufbox4 (Sercomm version), which also serves as a real example for brcm,bcm6358-leds. Signed-off-by: Álvaro Fernández Rojas [...]

[PATCH 0/6] Small fixes for Nokia N900 power supply drivers

2016-02-21 Thread Pali Rohár
This patch series add debug error output for isp1704 driver and fix module aliases for power supply drivers uses on Nokia N900. Pali Rohár (6): power_supply: isp1704_charger: Error messages when probe fail power_supply: isp1704_charger: Add compatible of match for nxp,isp1707 power_suppl

Re: [PATCH v1 1/4] block: bio: introduce helpers to get the 1st and last bvec

2016-02-21 Thread Sagi Grimberg
Looks fine, Reviewed-by: Sagi Grimberg

Re: [PATCH 3/6] power_supply: bq2415x_charger: Do not add acpi modalias when CONFIG_ACPI is not enabled

2016-02-21 Thread Pavel Machek
On Sun 2016-02-21 12:28:20, Pali Rohár wrote: > Signed-off-by: Pali Rohár Acked-by: Pavel Machek > @@ -1759,6 +1759,7 @@ static const struct i2c_device_id > bq2415x_i2c_id_table[] = { > }; > MODULE_DEVICE_TABLE(i2c, bq2415x_i2c_id_table); > > +#ifdef CONFIG_ACPI > static const struct acp

[PATCH 6/6] ARM: dts: n900: Rename isp1704 to isp1707 to match correct name

2016-02-21 Thread Pali Rohár
This change does not break existing userspace or Maemo software because isp1704_charger.c always export power supply device under isp1704 name. Signed-off-by: Pali Rohár --- arch/arm/boot/dts/omap3-n900.dts |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boo

Re: Nokia N900: musb is in wrong state after boot

2016-02-21 Thread Pali Rohár
On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: > * Pali Rohár [160126 06:35]: > > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: > > > * joerg Reisenweber [160121 11:35]: > > > > On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: > > > > > Do you have some pointer > > > > >

Re: [PATCH 1/6] power_supply: isp1704_charger: Error messages when probe fail

2016-02-21 Thread Pavel Machek
Hi! > This patch adds more detailed error messages when probe function > fail. ...fails. > It is useful for debbuging why driver refuse to register charger device. ...why the driver refuses to register... Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesk

[GIT PULL] hwmon fixes for v4.5-rc6

2016-02-21 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux v4.5-rc6 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-v4.5-rc6 Thanks, Guenter -- The following changes since commit 18558cae0272f8fd9647e69d3fec1565a7949865: Linux 4.5-rc4 (2016-02-14 13:05

[PATCH] Staging: rdma: hfi1: verbs_mcast: fixed a brace coding style issue

2016-02-21 Thread Jannik Becher
Fixed a coding style issue. Signed-off-by: Jannik Becher --- drivers/staging/rdma/hfi1/verbs_mcast.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rdma/hfi1/verbs_mcast.c b/drivers/staging/rdma/hfi1/verbs_mcast.c index afc6b4c..c45d4b1 100644 --- a/dr

[PATCH 4/5] perf tools: Fix alignment on some sort keys

2016-02-21 Thread Namhyung Kim
The srcline, srcfile and trace sort keys can have long entries. With commit 89fee7094323 ("perf hists: Do column alignment on the format iterator"), it now aligns output with hist_entry__snprintf_alignment(). So each (possibly long) sort entries don't need to do it themselves. Signed-off-by: Namh

[PATCH 2/5] perf tools: Fix segfault on dynamic entries

2016-02-21 Thread Namhyung Kim
The dynamic entry is created for each tracepoint event. When it sets up the sort key, it checks with existing keys using ->equal() callback. But it missed to set the ->equal for dynamic entries. The following segfault was due to the missing ->equal() callback. (gdb) bt #0 0x00140003

Re: rcu_preempt self-detected stall on CPU from 4.5-rc3, since 3.17

2016-02-21 Thread Ross Green
On Sat, Feb 20, 2016 at 5:32 PM, Paul E. McKenney wrote: > On Sat, Feb 20, 2016 at 03:34:30PM +1100, Ross Green wrote: >> On Sat, Feb 20, 2016 at 4:33 AM, Paul E. McKenney >> wrote: >> > On Thu, Feb 18, 2016 at 08:13:18PM -0800, John Stultz wrote: >> >> On Thu, Feb 18, 2016 at 7:56 PM, Ross Green

[PATCH 5/5] perf tools: Fix column width setting on 'trace' sort key

2016-02-21 Thread Namhyung Kim
It missed to update column length of the 'trace' sort key in the hists__calc_col_len() so it might truncate the output. It calculated the column length in the ->cmp() callback originally but it doesn't guarantee it's called always. Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 3 +++

Re: [PATCHv6 1/3] rdmacg: Added rdma cgroup controller

2016-02-21 Thread Parav Pandit
CONFIG_CGROUP_RDMA On Sun, Feb 21, 2016 at 7:15 PM, Leon Romanovsky wrote: > On Sun, Feb 21, 2016 at 05:03:05PM +0530, Parav Pandit wrote: >> On Sun, Feb 21, 2016 at 1:13 PM, Leon Romanovsky wrote: >> > On Sat, Feb 20, 2016 at 04:30:04PM +0530, Parav Pandit wrote: >> > Can you place this ifdef b

Re: [PATCH] pinctrl: sunxi: Add missing H3 R_PIO binding documentation

2016-02-21 Thread Chen-Yu Tsai
On Thu, Feb 18, 2016 at 11:49 AM, Krzysztof Adamski wrote: > allwinner,sun8i-h3-r-pinctrl was added by > commit ba83a11104ae ("pinctrl: sunxi: Add H3 R_PIO controller support") > but the patch was missing proper binding documentation. This patch fixes > this issue. > > Signed-off-by: Krzysztof Ada

[PATCH 1/6] power_supply: isp1704_charger: Error messages when probe fail

2016-02-21 Thread Pali Rohár
This patch adds more detailed error messages when probe function fail. It is useful for debbuging why driver refuse to register charger device. Signed-off-by: Pali Rohár --- drivers/power/isp1704_charger.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/

[PATCH 3/5] perf tools: Update srcline/file if needed

2016-02-21 Thread Namhyung Kim
Normally the hist entry's srcline and/or srcfile is set during sorting. However sometime it's possible to a hist entry's srcline is not set yet after the sorting. This is because the entry is so unique and other sort keys already make it distinct. Then the srcline/file sort didn't have a chance t

Re: [PATCHv6 1/3] rdmacg: Added rdma cgroup controller

2016-02-21 Thread Parav Pandit
On Sun, Feb 21, 2016 at 1:13 PM, Leon Romanovsky wrote: > On Sat, Feb 20, 2016 at 04:30:04PM +0530, Parav Pandit wrote: > Can you place this ifdef before declaring struct rdma_cgroup? Yes. I missed out this cleanup. Done locally now. > Thanks

[PATCH] cpumask: remove incorrect information from comment

2016-02-21 Thread Eric Biggers
Since commit cdfdef75e795f ("cpumask: only allocate nr_cpumask_bits."), this comment above cpumask_size() is no longer relevant. Signed-off-by: Eric Biggers --- include/linux/cpumask.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index fc

[PATCH 5/6] power_supply: bq27xxx_battery: Add of modalias and match table when CONFIG_OF is enabled

2016-02-21 Thread Pali Rohár
Signed-off-by: Pali Rohár --- drivers/power/bq27xxx_battery.c | 12 drivers/power/bq27xxx_battery_i2c.c | 24 2 files changed, 36 insertions(+) diff --git a/drivers/power/bq27xxx_battery.c b/drivers/power/bq27xxx_battery.c index 6b027a4..45f6ebf 1006

Re: [Nbd] [PATCH] nbd: ratelimit error messages from disconnected devices

2016-02-21 Thread Markus Pargmann
Hi, On Tuesday 16 February 2016 14:33:01 Dmitry Monakhov wrote: > ndb can be explicitly disconnected via NBD_DISCONNECT while > active user still exists this result in massive spam to logs. > Let's ratelimits such messages. > > Signed-off-by: Dmitry Monakhov > --- > drivers/block/nbd.c | 6 +++-

Re: [PATCH v1 0/4] block: fix bio_will_gap()

2016-02-21 Thread Sagi Grimberg
Hi Guys, The bio passed to bio_will_gap() may be fast cloned from upper layer(dm, md, bcache, fs, ...), or from bio splitting in block core. Unfortunately bio_will_gap() just figures out the last bvec via 'bi_io_vec[prev->bi_vcnt - 1]' directly, and this way is obviously wrong in case of fast-c

  1   2   3   4   >