[PATCH v2 4/6] drm/atomic: Don't skip drm_bridge_*() calls if !drm_encoder_helper_funcs

2016-05-11 Thread Noralf Trønnes
Don't skip drm_bridge_*() calls if encoder->helper_private is NULL. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_atomic_helper.c | 39 - 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu

[PATCH v2 6/6] drm: Add helper for simple display pipeline

2016-05-11 Thread Noralf Trønnes
Provides helper functions for drivers that have a simple display pipeline. Plane, crtc and encoder are collapsed into one entity. Signed-off-by: Noralf Trønnes --- Changes since v1: - Add DOC header and add to gpu.tmpl - Fix docs: @funcs is optional, "negative error code", "This hook is option

[PATCH v2 1/6] drm/fb-helper: Remove mention of CONFIG_FB_DEFERRED_IO in docs

2016-05-11 Thread Noralf Trønnes
This was forgotten to fixup in the latest version of the deferred_io patch which made FB_DEFERRED_IO mandatory. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_fb_helper.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b

[PATCH v2 5/6] drm/atomic: Add drm_atomic_helper_best_encoder()

2016-05-11 Thread Noralf Trønnes
Add (struct drm_connector_helper_funcs *)->best_encoder callback helper for connectors that support exactly 1 encoder, statically determined at driver init time. Signed-off-by: Noralf Trønnes --- drivers/gpu/drm/drm_atomic_helper.c | 17 + include/drm/drm_atomic_helper.h | 2

[PATCH v2 2/6] drm/fb-cma-helper: Hook up to DocBook and fix some docs

2016-05-11 Thread Noralf Trønnes
Hook up fb_cma_helper to DocBook. Remove mention of CONFIG_FB_DEFERRED_IO in the docs, which was forgotten in the latest version of the deferred_io patch. Use & when referencing drm_mode_config_funcs in docs. Signed-off-by: Noralf Trønnes --- Documentation/DocBook/gpu.tmpl | 5 + driver

Re: [PATCH V2 13/14] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-05-11 Thread Jon Hunter
On 11/05/16 17:08, Jon Hunter wrote: > Hi Rob, > > On 11/05/16 16:51, Rob Herring wrote: >> On Sat, May 7, 2016 at 9:10 AM, Geert Uytterhoeven >> wrote: >>> Hi Jon, >>> >>> On Fri, May 6, 2016 at 10:32 AM, Jon Hunter wrote: > The "nvidia,tegra210-agic" string can be taken as describing any

[PATCH v2 0/6] drm: Add various helpers for simple drivers

2016-05-11 Thread Noralf Trønnes
This patchset adds various helpers that was originally part of the tinydrm patchset. Essentially it adds 3 functions: - drm_fb_cma_create_with_funcs() CMA backed framebuffer supporting a dirty() callback. - drm_atomic_helper_best_encoder() (struct drm_connector_helper_funcs *)->best_encoder ca

[PATCH v2 3/6] drm/fb-cma-helper: Add function drm_fb_cma_create_with_funcs()

2016-05-11 Thread Noralf Trønnes
Add drm_fb_cma_create_with_funcs() for drivers that need to set the dirty() callback. Cc: laurent.pinch...@ideasonboard.com Signed-off-by: Noralf Trønnes --- Changes since v1: - Expand docs drivers/gpu/drm/drm_fb_cma_helper.c | 31 +-- include/drm/drm_fb_cma_helper.

[PATCH v10 net-next 0/1] introduce Hyper-V VM Sockets(hv_sock)

2016-05-11 Thread Dexuan Cui
Hyper-V Sockets (hv_sock) supplies a byte-stream based communication mechanism between the host and the guest. It's somewhat like TCP over VMBus, but the transportation layer (VMBus) is much simpler than IP. With Hyper-V Sockets, applications between the host and the guest can talk to each other d

Re: [PATCH] mm, compaction: avoid uninitialized variable use

2016-05-11 Thread Michal Hocko
On Wed 11-05-16 16:52:41, Arnd Bergmann wrote: > On Wednesday 11 May 2016 16:44:07 Michal Hocko wrote: > > On Wed 11-05-16 15:24:44, Arnd Bergmann wrote: > > > A recent rework of the compaction code introduced a warning about > > > an uninitialized variable when CONFIG_COMPACTION is disabled and >

[PATCH v10 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-05-11 Thread Dexuan Cui
Hyper-V Sockets (hv_sock) supplies a byte-stream based communication mechanism between the host and the guest. It's somewhat like TCP over VMBus, but the transportation layer (VMBus) is much simpler than IP. With Hyper-V Sockets, applications between the host and the guest can talk to each other d

Re: [PATCH V2 13/14] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-05-11 Thread Jon Hunter
On 11/05/16 17:08, Jon Hunter wrote: > Hi Rob, > > On 11/05/16 16:51, Rob Herring wrote: >> On Sat, May 7, 2016 at 9:10 AM, Geert Uytterhoeven >> wrote: >>> Hi Jon, >>> >>> On Fri, May 6, 2016 at 10:32 AM, Jon Hunter wrote: > The "nvidia,tegra210-agic" string can be taken as describing any

RE: [PATCH 2/2] i2c: qup: Fixed the DMA segments length

2016-05-11 Thread Sricharan
Hi, > 1. The current QCOM I2C driver code is failing for transfer length greater > than 255. This is happening due to improper segments length as the I2C DMA > segments can be maximum of 256 bytes. > > 2. The transfer length tlen was being initialized with 0 for 256 bytes, which is > being passed

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-05-11 Thread Rafael J. Wysocki
On Wed, May 11, 2016 at 5:25 PM, Jim Bos wrote: > On 05/11/2016 03:36 PM, Rafael J. Wysocki wrote: >> On 5/11/2016 2:21 PM, Ville Syrjälä wrote: >>> On Wed, May 11, 2016 at 02:11:29PM +0200, Sebastian Andrzej Siewior >>> wrote: On 05/11/2016 12:19 PM, Ville Syrjälä wrote: > Hi, Hi, >

[PATCH] i2c: st: Implement bus clear

2016-05-11 Thread Peter Griffin
>From I2C specifications: http://www.nxp.com/documents/user_manual/UM10204.pdf Chapter 3.1.16, when the i2c device held the SDA line low, the master should send 9 clocks pulses to try to recover. Signed-off-by: Frederic Pillon Signed-off-by: Peter Griffin --- changes since V1: - Demote

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-05-11 Thread Sebastian Andrzej Siewior
On 05/11/2016 06:19 PM, Rafael J. Wysocki wrote: > Have you tried to check if this is the same commit reported in this thread? The commit in this thread is part of v4.6-rc1 and he is saying that rc1 is working fine. Sebastian

Re: [PATCH] i2c: st: Implement i2c_bus_recovery_info callbacks

2016-05-11 Thread Peter Griffin
Hi Wolfram, On Sun, 24 Apr 2016, Wolfram Sang wrote: > > +/* > > + * i2c bus recovery routines > > + * get_scl and set_scl must be defined to avoid the recover_bus field of > > + * i2c_bus_recovery_info to be overriden with NULL during the > > + * i2c_add_adapter call > > + */ > > Oh, that shoul

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-05-11 Thread Rafael J. Wysocki
On Wed, May 11, 2016 at 6:21 PM, Sebastian Andrzej Siewior wrote: > On 05/11/2016 06:19 PM, Rafael J. Wysocki wrote: >> Have you tried to check if this is the same commit reported in this thread? > > The commit in this thread is part of v4.6-rc1 and he is saying that rc1 > is working fine. I see.

[PATCH 2/2] x86/PCI: Disable IO/MEM decoding for ROM BARs for devices with non-compliant BARs

2016-05-11 Thread Prarit Bhargava
After executing quirk patches for the Broadwell-EP Home Agents, the following errors are in the boot log: pci :ff:12.0: BAR 6: failed to assign [mem size 0x0001 pref] pci :ff:12.4: BAR 6: failed to assign [mem size 0x0001 pref] pci :ff:1e.3: BAR 6: failed to assign [mem size 0x

[PATCH 0/2 v2] Fix Broadwell-EP Home Agent & PCU non-compliant BARs

2016-05-11 Thread Prarit Bhargava
commit b894157145e4 ("x86/PCI: Mark Broadwell-EP Home Agent & PCU as having non-compliant BARs") marks Home Agent 0 & PCU has having non-compliant BARs. commit b84106b4e229 ("PCI: Disable IO/MEM decoding for devices with non-compliant BARs") introduces a check for non_compliant_bars to avoid assig

[PATCH 1/2] x86/PCI: Add pci_bdwep_bar() quirk entry for Broadwell-EP Home Agent 1

2016-05-11 Thread Prarit Bhargava
commit b894157145e4 ("x86/PCI: Mark Broadwell-EP Home Agent & PCU as having non-compliant BARs") marks Home Agent 0 & PCU has having non-compliant BARs. The commit is missing device 0x6f60 for Home Agent 1. The problem with these devices is documented in the Xeon v4 specification update (but is u

Re: [PATCH V2 13/14] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-05-11 Thread Rob Herring
On Wed, May 11, 2016 at 11:16 AM, Jon Hunter wrote: > > On 11/05/16 17:08, Jon Hunter wrote: >> Hi Rob, >> >> On 11/05/16 16:51, Rob Herring wrote: >>> On Sat, May 7, 2016 at 9:10 AM, Geert Uytterhoeven >>> wrote: Hi Jon, On Fri, May 6, 2016 at 10:32 AM, Jon Hunter wrote: >>

Re: [PATCH v5 1/5] ACPI / processor_idle: introduce ACPI_PROCESSOR_CSTATE

2016-05-11 Thread Rafael J. Wysocki
On Wed, May 11, 2016 at 5:37 PM, Sudeep Holla wrote: > ACPI 6.0 adds a new method to specify the CPU idle states(C-states) > called Low Power Idle(LPI) states. Since new architectures like ARM64 > use only LPIs, introduce ACPI_PROCESSOR_CSTATE to encapsulate all the > code supporting the old style

Re: [PATCH] [media] v4l2-async: Always unregister the subdev on failure

2016-05-11 Thread Javier Martinez Canillas
Hello Alban, On 05/11/2016 11:40 AM, Alban Bedel wrote: > In v4l2_async_test_notify() if the registered_async callback or the > complete notifier returns an error the subdev is not unregistered. > This leave paths where v4l2_async_register_subdev() can fail but > leave the subdev still registered.

Re: [PATCH 4.5 118/200] [media] videobuf2-v4l2: Verify planes array in buffer dequeueing

2016-05-11 Thread Mauro Carvalho Chehab
Hi Greg, This patch seems to be causing trobles with DVB drivers that uses videobuf2-dvb. Just sent a patch reverting it. Regards, Mauro Em Mon, 2 May 2016 17:11:57 -0700 Greg Kroah-Hartman escreveu: > 4.5-stable review patch. If anyone has any objections, please let me know. > > --

[PATCH] skd: use ARRAY_SIZE() to calculate size of an array.

2016-05-11 Thread Muhammad Falak R Wani
Use the macro ARRAY_SIZE() to calculate the size of an array, enhancing readability and compactnes. Signed-off-by: Muhammad Falak R Wani --- drivers/block/skd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index 910e

Re: [PATCH] [media] v4l2-async: Always unregister the subdev on failure

2016-05-11 Thread Alban Bedel
On Wed, 11 May 2016 12:22:44 -0400 Javier Martinez Canillas wrote: > Hello Alban, > > On 05/11/2016 11:40 AM, Alban Bedel wrote: > > In v4l2_async_test_notify() if the registered_async callback or the > > complete notifier returns an error the subdev is not unregistered. > > This leave paths whe

[PATCH] usb: dwc3: st: Fix USB_DR_MODE_PERIPHERAL configuration.

2016-05-11 Thread Peter Griffin
Set USB3_FORCE_VBUSVALID when configured for USB_DR_MODE_PERIPHERAL mode, as it is required to have a working setup. This worked on the internal driver by relying on the reset value of the syscfg register as the bits aren't explicity cleared and set like the upstream driver. Also add a comment ab

[PATCH 09/13] perf trace: Move seccomp args beautifiers to tools/perf/trace/beauty/

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To reduce the size of builtin-trace.c. Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/n/tip-ovxifncj34ynrjjseg33l...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-trace.c| 53 +---

[PATCH 05/13] perf script: Fix export of callchains with recursion in db-export

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Chris Phlipot When an IP with an unresolved symbol occurs in the callchain more than once (ie. recursion), then duplicate symbols can be created because the callchain nodes are never updated after they are first created. To fix this issue we call dso__find_symbol whenever we encounter a NU

[PATCH 08/13] perf trace: Move flock op beautifier to tools/perf/trace/beauty/

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To reduce the size of builtin-trace.c. Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/n/tip-c4c47w2a2jx13terl2p2h...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-trace.c | 32 +-

[PATCH 07/13] perf build: Add build-test for debug-frame on arm/arm64

2016-05-11 Thread Arnaldo Carvalho de Melo
From: He Kuang Debug-frame for remote platforms is not related to the host platform, so we should test each platform separately. Signed-off-by: He Kuang Acked-by: Jiri Olsa Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: David Ahern Cc: Ekaterina Tumanova Cc: Josh Poimboeuf C

[PATCH 06/13] perf build: Add build-test for libunwind cross-platforms support

2016-05-11 Thread Arnaldo Carvalho de Melo
From: He Kuang Currently only test for local libunwind. We should check all supported platforms so we can use them to parse perf.data with callchain info on different machines. Signed-off-by: He Kuang Acked-by: Jiri Olsa Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: David Aher

[PATCH 03/13] perf script: Fix symbol insertion behavior in db-export

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Chris Phlipot Use the dso__insert_symbol function instead of symbols__insert() in order to properly update the dso symbol cache. If the cache is not updated, then duplicate symbols can be unintentionally created, inserted, and exported. This change prevents duplicate symbols from being ex

[GIT PULL 00/13] perf/core improvements and fixes

2016-05-11 Thread Arnaldo Carvalho de Melo
2016-05-11 16:56:58 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20160511 for you to fetch changes up to d65444d2fba98dcd4fa028ffada39c36a46f0038: perf buildid-cache: Use lsdir() for looking up buildid ca

Re: [PATCHSET v5] Make background writeback great again for the first time

2016-05-11 Thread Jan Kara
On Tue 03-05-16 14:17:19, Jan Kara wrote: > The question remains how common a pattern where throttling of background > writeback delays also something else is. I'll schedule a couple of > benchmarks to measure impact of your patches for a wider range of workloads > (but sadly pretty limited set of

[PATCH 13/13] perf buildid-cache: Use lsdir() for looking up buildid caches

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Use new lsdir() for looking up buildid caches. This changes logic a bit to ignore all dot files, since the build-id cache must not start with dot. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: Brendan Gregg Cc: Heman

[PATCH 01/13] perf scripting python: Use Py_FatalError instead of die()

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It probably is equivalent, but that seems to be the "pythonic" way of dieing? Anyway, one less die() in the tools/perf codebase. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Cc: Chris Phlipot Link: http://lkml.kernel.org/n/tip

Linux 3.18.33

2016-05-11 Thread Sasha Levin
I'm announcing the release of the 3.18.33 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser:

Linux 4.1.24

2016-05-11 Thread Sasha Levin
I'm announcing the release of the 4.1.24 kernel. All users of the 4.1 kernel series must upgrade. The updated 4.1.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.1.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH v8 6/8] dt-bindings: i2c: rk3x: add support for rk3399

2016-05-11 Thread Doug Anderson
Hi, On Tue, May 10, 2016 at 12:30 PM, David Wu wrote: > The bus clock and function clock are separated at rk3399, > and others use one clock as the bus clock and function clock. > > Signed-off-by: David Wu > Reviewed-by: Douglas Anderson > --- > Change in v8: > - remove error description. > >

[PATCH 02/13] perf symbols: Add dso__insert_symbol function

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Chris Phlipot The current method for inserting symbols is to use the symbols__insert() function. However symbols__insert() does not update the dso symbol cache. This causes problems in the following scenario: 1. symbol not found at addr using dso__find_symbol 2. symbol inserted at addr u

[PATCH 11/13] perf tools: Use SBUILD_ID_SIZE where applicable

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Use the existing SBUILD_ID_SIZE macro instead of the equivalent BUILD_ID_SIZE * 2 + 1 expression for allocating a buffer for build-id strings. Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: Brendan Gregg Cc: Hemant Kumar Cc: Namhyung Kim Cc: Peter

[PATCH 04/13] perf script: Fix callchain addresses in db-export

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Chris Phlipot Remove the call to map_ip() to adjust al.addr, because it has already been called when assembling the callchain, in: thread__resolve_callchain_sample(perf_sample) add_callchain_ip(ip = perf_sample->callchain->ips[j]) thread__find_addr_location(addr = ip)

[PATCH 12/13] perf symbols: Use lsdir() for the search in kcore cache directory

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Use lsdir() to search in kcore cache directory. This also avoids checking hidden dot directory entries, because kcore cache directories must always have the name from timestamps when taking the kcore snapshots, and it never start with dot. Signed-off-by: Masami Hiramatsu

[PATCH 10/13] perf tools: Fix lsdir to set errno correctly

2016-05-11 Thread Arnaldo Carvalho de Melo
From: Masami Hiramatsu Fix lsdir() to set correct positive error number (ENOMEM). Since "errno" must have a positive error number instead of negative number, fix lsdir to set it correctly. Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: Brendan Gregg Cc: Hemant Kumar Cc:

[PATCH] ARM: STi: Update machine _namestr to be more generic.

2016-05-11 Thread Peter Griffin
This string is used by dump_stack and as we now support more SoC's than just STiH415/6 it is misleading to have the current string in the stack trace. This patch updates it to be more generic for the STi family of SoCs. So instead of looking like this [ 271.672555] Hardware name: STiH415/416 So

Re: [PATCH] irqchip, gicv3-its, numa: Enable Cavium ThunderX #23144 workaround for ACPI

2016-05-11 Thread Robert Richter
Marc, thanks for review and sorry for the delay of my answer. On 03.05.16 08:40:47, Marc Zyngier wrote: > On 02/05/16 17:38, Robert Richter wrote: > > From: Robert Richter > > > > In case of acpi the firmware does not provide node ids for cpus and > > its devices. Determine it from system topol

Re: [PATCH] f2fs: fix deadlock when flush inline data

2016-05-11 Thread Jaegeuk Kim
Hi Chao, On Wed, May 11, 2016 at 07:48:44PM +0800, Chao Yu wrote: > Below backtrace info was reported by Yunlei He: > > Call Trace: > [] schedule+0x35/0x80 > [] rwsem_down_read_failed+0xed/0x130 > [] call_rwsem_down_read_failed+0x18/0x > [] down_read+0x20/0x30 > [] f2fs_evict_inode+0x242/0x3

Re: [PATCH v3 2/2] dell-laptop: Expose auxiliary MAC address if available

2016-05-11 Thread Pali Rohár
Hi Mario & Michał! On Wednesday 11 May 2016 15:32:51 Michał Kępień wrote: > > System with Type-C ports have a feature to expose an auxiliary > > persistent MAC address. This address is burned in at the > > factory. > > > > The intention of this address is to update the MAC address on > > Type-C

Re: [RFC v2 PATCH 0/8] VFS:userns: support portable root filesystems

2016-05-11 Thread Djalal Harouni
On Tue, May 10, 2016 at 04:36:56PM -0700, James Bottomley wrote: > On Thu, 2016-05-05 at 18:08 -0400, James Bottomley wrote: [...] > > > > OK, so the way attributes are populated on an inode is via getattr. > > You intercept that, you change the inode owner and group that are > > installed on th

Re: [PATCH 06/10] perf, tools, stat: Avoid fractional digits for integer scales

2016-05-11 Thread Arnaldo Carvalho de Melo
Em Wed, May 11, 2016 at 03:00:31PM +0200, Jiri Olsa escreveu: > On Sat, May 07, 2016 at 12:24:25PM -0700, Andi Kleen wrote: > > > > if (csv_output) { > > > > - fmt = sc != 1.0 ? "%.2f%s" : "%.0f%s"; > > > > + fmt = floor(sc) != sc ? "%.2f%s" : "%.0f%s"; > > > >

Re: [PATCH v2 2/6] drm/fb-cma-helper: Hook up to DocBook and fix some docs

2016-05-11 Thread Daniel Vetter
On Wed, May 11, 2016 at 06:09:18PM +0200, Noralf Trønnes wrote: > Hook up fb_cma_helper to DocBook. Remove mention of > CONFIG_FB_DEFERRED_IO in the docs, which was forgotten in the latest > version of the deferred_io patch. > Use & when referencing drm_mode_config_funcs in docs. > > Signed-off-by

Re: [PATCH 3/3] blk-throttle: don't parse cgroup path if trace isn't enabled

2016-05-11 Thread Shaohua Li
On Wed, May 11, 2016 at 09:41:20AM -0400, Jeff Moyer wrote: > Shaohua Li writes: > > > On Tue, May 10, 2016 at 11:52:15AM -0400, Jeff Moyer wrote: > >> Shaohua Li writes: > >> > >> > if trace isn't enabled, parsing cgroup path just wastes cpu > >> > > >> > Signed-off-by: Shaohua Li > >> > ---

[PATCH v2] media: dvb_ringbuffer: Add memory barriers

2016-05-11 Thread Soeren Moch
Implement memory barriers according to Documentation/circular-buffers.txt: - use smp_store_release() to update ringbuffer read/write pointers - use smp_load_acquire() to load write pointer on reader side - use ACCESS_ONCE() to load read pointer on writer side This fixes data stream corruptions obs

Re: [RFC PATCH] sched: reflect sched_entity movement into task_group's utilization

2016-05-11 Thread Vincent Guittot
Hi Dietmar On 11 May 2016 at 16:45, Dietmar Eggemann wrote: > Hi Vincent, > > On 04/05/16 08:17, Vincent Guittot wrote: >> Ensure that changes of the utilization of a sched_entity will be >> reflected in the task_group hierarchy down to the root cfs. >> >> This patch tries another way than the fl

Re: [PATCH V2 13/14] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-05-11 Thread Jon Hunter
Hi Rob, Mark, On 11/05/16 17:30, Rob Herring wrote: > A platform driver for just gic-400 is wrong IMO until we have platform > drivers for all interrupt controllers. Yes, that is fine with me, but can we decide on whether the platform driver should match "tegra210-agic" or the early driver should

Re: [PATCH 3/3] blk-throttle: don't parse cgroup path if trace isn't enabled

2016-05-11 Thread Shaohua Li
On Tue, May 10, 2016 at 01:46:13PM +0800, Simon Guo wrote: > Hi, > On Mon, May 09, 2016 at 05:22:15PM -0700, Shaohua Li wrote: > > if trace isn't enabled, parsing cgroup path just wastes cpu > > > > Signed-off-by: Shaohua Li > > --- > > block/blk-throttle.c | 5 ++--- > > include/linux/

Re: [PATCH v2 4/6] drm/atomic: Don't skip drm_bridge_*() calls if !drm_encoder_helper_funcs

2016-05-11 Thread Daniel Vetter
On Wed, May 11, 2016 at 06:09:20PM +0200, Noralf Trønnes wrote: > Don't skip drm_bridge_*() calls if encoder->helper_private is NULL. > > Signed-off-by: Noralf Trønnes Applied to drm-misc, thanks. -Daniel > --- > drivers/gpu/drm/drm_atomic_helper.c | 39 > -

Re: [PATCH v2 5/6] drm/atomic: Add drm_atomic_helper_best_encoder()

2016-05-11 Thread Daniel Vetter
On Wed, May 11, 2016 at 06:09:21PM +0200, Noralf Trønnes wrote: > Add (struct drm_connector_helper_funcs *)->best_encoder callback helper > for connectors that support exactly 1 encoder, statically determined at > driver init time. > > Signed-off-by: Noralf Trønnes Applied to drm-misc, thanks. -

[PATCH] arm64: do not enforce strict 16 byte alignment to stack pointer

2016-05-11 Thread Colin King
From: Colin Ian King copy_thread should not be enforcing 16 byte aligment and returning -EINVAL. Other architectures trap misaligned stack access with SIGBUS so arm64 should follow this convention, so remove the strict enforcement check. For example, currently clone(2) fails with -EINVAL when pa

Re: [PATCH v5 1/5] ACPI / processor_idle: introduce ACPI_PROCESSOR_CSTATE

2016-05-11 Thread Sudeep Holla
On 11/05/16 17:23, Rafael J. Wysocki wrote: On Wed, May 11, 2016 at 5:37 PM, Sudeep Holla wrote: ACPI 6.0 adds a new method to specify the CPU idle states(C-states) called Low Power Idle(LPI) states. Since new architectures like ARM64 use only LPIs, introduce ACPI_PROCESSOR_CSTATE to encapsul

Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-05-11 Thread Catalin Marinas
On Wed, May 11, 2016 at 12:55:01PM +0200, Arnd Bergmann wrote: > On Wednesday 11 May 2016 11:04:38 Yury Norov wrote: > > On Wed, May 11, 2016 at 10:04:16AM +0800, Zhangjian (Bamvor) wrote: > > [...] > > > > > >>Ok, I will test the ltp syscall test. > > > >>With this changes, the issue I mentioned

[PATCH 1/2] f2fs: show # of orphan inodes

2016-05-11 Thread Jaegeuk Kim
This adds debug information for # of orphan inodes. Signed-off-by: Jaegeuk Kim --- fs/f2fs/debug.c | 5 - fs/f2fs/f2fs.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index 818064b..37615b2 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs

[PATCH 2/2] f2fs: avoid f2fs_bug_on during recovery

2016-05-11 Thread Jaegeuk Kim
We don't need to use f2fs_bug_on() to treat with any error case when allocating a block during recovery. Signed-off-by: Jaegeuk Kim --- fs/f2fs/recovery.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 2b25329..6303b2a 100644 -

[PATCH v2, 1/3] intel_pstate: Clarify average performance computation

2016-05-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The core_pct_busy field of struct sample actually contains the average performace during the last sampling period (in percent) and not the utilization of the core as suggested by its name which is confusing. For this reason, change the name of that field to core_avg_perf

Re: [PATCH v2 6/6] drm: Add helper for simple display pipeline

2016-05-11 Thread Daniel Vetter
On Wed, May 11, 2016 at 06:09:22PM +0200, Noralf Trønnes wrote: > Provides helper functions for drivers that have a simple display > pipeline. Plane, crtc and encoder are collapsed into one entity. > > Signed-off-by: Noralf Trønnes Looks really nice, just a few suggestions for the kerneldoc. Wou

[PATCH v2, 0/3] intel_pstate: Improvements related to the APERF/MPERF computation

2016-05-11 Thread Rafael J. Wysocki
On Saturday, May 07, 2016 01:42:53 AM Rafael J. Wysocki wrote: > Hi, > > As per the subject, on top of the current linux-next branch of linux-pm.git. This version has been reworked to retain more APERF bits after carrying out the \Delta_{APERF}/\Delta_{MPERF} which should lead to a bit more preci

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-05-11 Thread Ville Syrjälä
On Wed, May 11, 2016 at 08:26:58AM -0700, Arjan van de Ven wrote: > > > Oh, and this was with acpi_idle. This machine already failed to > > resume from S3 with intel_idle since forever, as detailed in > > https://bugzilla.kernel.org/show_bug.cgi?id=107151 > > but acpi_idle worked fine until now. >

[PATCH v2, 3/3] intel_pstate: Clean up get_target_pstate_use_performance()

2016-05-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The comments and the core_busy variable name in get_target_pstate_use_performance() are totally confusing, so modify them to reflect what's going on. The results of the computations should be the same as before. Signed-off-by: Rafael J. Wysocki --- drivers/cpufreq/inte

[PATCH v2, 2/3] intel_pstate: Use sample.core_avg_perf in get_avg_pstate()

2016-05-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Notice that get_avg_pstate() can use sample.core_avg_perf instead of carrying the same division again, so make it do that. Signed-off-by: Rafael J. Wysocki --- v1 -> v2: Use mul_ext_fp() to carry out the computation in get_avg_pstate(). --- drivers/cpufreq/intel_pstat

Re: [PATCH 06/10] watchdog: ebc-c384_wdt: Utilize the ISA bus driver

2016-05-11 Thread Sasha Levin
off-by: William Breathitt Gray Hey William, I'm seeing this on boot: kernel BUG at drivers/base/driver.c:153! invalid opcode: [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.6.0-rc7-next-20160511-sasha-00024-g13dfe33 #3081 task: 88005b2f8000 ti:

[PATCH v9] mm: kasan: Initial memory quarantine implementation

2016-05-11 Thread Alexander Potapenko
Quarantine isolates freed objects in a separate queue. The objects are returned to the allocator later, which helps to detect use-after-free errors. Freed objects are first added to per-cpu quarantine queues. When a cache is destroyed or memory shrinking is requested, the objects are moved into th

Re: [PATCH v6 01/13] x86/xsaves: Define and use fpu_user_xstate_size

2016-05-11 Thread Borislav Petkov
On Tue, May 10, 2016 at 04:29:53PM -0700, Yu-cheng Yu wrote: > The XSAVE area of kernel can be in standard or compacted format; "The kernel xstate area... " and can we call it the xstate area as there are a bunch of XSAVE* insns touching it. The file which deals with it is even called that: arch/

Re: [PATCH v8 0/8] i2c-octeon and i2c-thunderx driver

2016-05-11 Thread Jan Glauber
Hi Wolfram, we want to add ACPI support to the ThunderX i2c driver because it is meant for servers and some distributions require ACPI there. The changes are small but I'll post a new version of the remaining patches shortly. Thanks, Jan On Mon, May 02, 2016 at 07:35:40PM +0200, Jan Glauber wro

RE: [PATCH v6 01/13] x86/xsaves: Define and use fpu_user_xstate_size

2016-05-11 Thread Yu, Fenghua
> From: Borislav Petkov [mailto:b...@suse.de] > Sent: Wednesday, May 11, 2016 10:21 AM > To: Yu, Yu-cheng > Cc: linux-kernel@vger.kernel.org; x...@kernel.org; H. Peter Anvin > ; Thomas Gleixner ; Ingo Molnar > ; Dave Hansen ; Andy > Lutomirski ; Prakhya, Sai Praneeth > ; Shankar, Ravi V > ; Yu, Fe

Applied "regulator: lp873x: Add support for lp873x PMIC regulators" to the regulator tree

2016-05-11 Thread Mark Brown
The patch regulator: lp873x: Add support for lp873x PMIC regulators has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH V2 13/14] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-05-11 Thread Mark Rutland
On Wed, May 11, 2016 at 05:53:43PM +0100, Jon Hunter wrote: > Hi Rob, Mark, > > On 11/05/16 17:30, Rob Herring wrote: > > A platform driver for just gic-400 is wrong IMO until we have platform > > drivers for all interrupt controllers. > > Yes, that is fine with me, but can we decide on whether t

Re: [PATCH v6 01/13] x86/xsaves: Define and use fpu_user_xstate_size

2016-05-11 Thread Borislav Petkov
On Wed, May 11, 2016 at 05:25:17PM +, Yu, Fenghua wrote: > Is this possible to have the third one? > > From: Yu-cheng > > Signed-off-by: Yu-cheng > Signed-off-by: Fenghua This SOB chain says that Yu-cheng is the author and then you've received it from him, have done something to it (which we

RE: [PATCH 1/2] i2c: qup: Cleared the error bits in ISR

2016-05-11 Thread Abhishek Sahu
On 2016-05-11 21:27, Sricharan wrote: Hi, 1. Current QCOM I2C driver hangs when sending data to address 0x03-0x07 in some scenarios. The QUP controller generates invalid write in this case, since these addresses are reserved for different bus formats. 2. Also, the error handling is done by I2

Re: [PATCH V4 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-11 Thread Laxman Dewangan
On Wednesday 11 May 2016 09:05 PM, Jon Hunter wrote: On 11/05/16 14:28, Laxman Dewangan wrote: On Sunday 08 May 2016 05:43 PM, Jon Hunter wrote: On 06/05/16 16:32, Laxman Dewangan wrote: On Friday 06 May 2016 08:07 PM, Jon Hunter wrote: On 06/05/16 11:45, Laxman Dewangan wrote: + +/* Las

Re: [PATCH v8 7/8] i2c: rk3x: add i2c support for rk3399 soc

2016-05-11 Thread Doug Anderson
Hi, On Tue, May 10, 2016 at 12:31 PM, David Wu wrote: > static void rk3x_i2c_adapt_div(struct rk3x_i2c *i2c, unsigned long clk_rate) > { > struct i2c_timings *t = &i2c->t; > struct rk3x_i2c_calced_timings calc; > u64 t_low_ns, t_high_ns; > + u32 val; > int

Re: [RFC][PATCH 4/7] sched: Replace sd_busy/nr_busy_cpus with sched_domain_shared

2016-05-11 Thread Peter Zijlstra
On Wed, May 11, 2016 at 12:55:56PM +0100, Matt Fleming wrote: > This breaks my POWER7 box which presumably doesn't have > SD_SHARE_PKG_RESOURCES, > index 978b3ef2d87e..d27153adee4d 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -7920,7 +7920,8 @@ static inline void set_cpu_s

[PATCH] dmaengine: core: Use IS_ENABLED() instead of checking for built-in or module

2016-05-11 Thread Javier Martinez Canillas
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Signed-off-by: Javier Martinez Canillas --- drivers/dma/dmaengine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver

RE: [PATCH 2/2] i2c: qup: Fixed the DMA segments length

2016-05-11 Thread Abhishek Sahu
On 2016-05-11 21:48, Sricharan wrote: Hi, 1. The current QCOM I2C driver code is failing for transfer length greater than 255. This is happening due to improper segments length as the I2C DMA segments can be maximum of 256 bytes. 2. The transfer length tlen was being initialized with 0 for 2

Re: x86_64 Question: Are concurrent IPI requests safe?

2016-05-11 Thread Peter Zijlstra
On Thu, May 12, 2016 at 12:19:07AM +0900, Tetsuo Handa wrote: > Well, I came to feel that this is caused by down_write_killable() bug. > I guess we should fix down_write_killable() bug first. There's a patch you can try in that thread... lkml.kernel.org/r/20160511094128.gb3...@twins.programming

Re: [PATCH v6 4/5] dax: for truncate/hole-punch, do zeroing through the driver if possible

2016-05-11 Thread Verma, Vishal L
On Wed, 2016-05-11 at 10:15 +0200, Jan Kara wrote: > On Tue 10-05-16 12:49:15, Vishal Verma wrote: > > > > In the truncate or hole-punch path in dax, we clear out sub-page > > ranges. > > If these sub-page ranges are sector aligned and sized, we can do the > > zeroing through the driver instead so

[PATCH] mtd: Adding of_mtd_info_get to get mtd_info from devicetree

2016-05-11 Thread Moritz Fischer
This allows for getting a struct mtd_info from a node pointer, allowing mtd devices to e.g. store serial numbers or MAC addresses. Signed-off-by: Moritz Fischer --- drivers/mtd/mtdcore.c | 21 + include/linux/mtd/mtd.h | 2 ++ 2 files changed, 23 insertions(+) diff --git

[PATCH] drm/amd/powerplay: use ARRAY_SIZE() for size of array

2016-05-11 Thread Muhammad Falak R Wani
Use ARRAY_SIZE() for the size calculation of the array. Also move the condition evaulation function out of the for loop. Although, any respectable c-compiler would optimize this and evaluate the function only once outside the loop, but the optimzation engine of gcc is bit brain-dead, and at times n

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-11 Thread Eric Dumazet
On Tue, 2016-05-10 at 14:53 -0700, Eric Dumazet wrote: > On Tue, 2016-05-10 at 17:35 -0400, Rik van Riel wrote: > > > You might need another one of these in invoke_softirq() > > > > Excellent. > > I gave it a quick try (without your suggestion), and host seems to > survive a stress test. Well,

Re: [PATCH 03/11] locking, rwsem: introduce basis for down_write_killable

2016-05-11 Thread Michal Hocko
On Wed 11-05-16 15:59:38, Michal Hocko wrote: > On Wed 11-05-16 11:41:28, Peter Zijlstra wrote: > > On Wed, May 11, 2016 at 11:31:27AM +0200, Michal Hocko wrote: > > > > > Care to cook up a full patch? > > > > compile tested only, if someone could please test it? > > I have tried to run the test

Re: [RFC][PATCH 4/7] sched: Replace sd_busy/nr_busy_cpus with sched_domain_shared

2016-05-11 Thread Matt Fleming
On Wed, 11 May, at 07:37:52PM, Peter Zijlstra wrote: > On Wed, May 11, 2016 at 12:55:56PM +0100, Matt Fleming wrote: > > > This breaks my POWER7 box which presumably doesn't have > > SD_SHARE_PKG_RESOURCES, > > > index 978b3ef2d87e..d27153adee4d 100644 > > --- a/kernel/sched/fair.c > > +++ b/ker

Re: Getting rid of dynamic TASK_SIZE (on x86, at least)

2016-05-11 Thread Oleg Nesterov
On 05/10, Andy Lutomirski wrote: > > On May 10, 2016 11:21 AM, "Oleg Nesterov" wrote: > > > > On 05/10, Andy Lutomirski wrote: > > > > > > - xol_add_vma: This one is weird: uprobes really is doing something > > > behind the task's back, and the addresses need to be consistent with > > > the addre

Re: 4.1.24-stable: iwlwifi patch applied to wrong file

2016-05-11 Thread Sasha Levin
On 05/11/2016 01:54 PM, Jens Rottmann wrote: > Hi again, > > in 4.1.24-stable commit fdfdfc7cdf (iwlwifi: pcie: lower the debug level > for RSA semaphore access) was applied to the wrong file. It patched > drivers/net/wireless/intel/iwlwifi/pcie/trans.c whereas it should have > patched drivers/net

Re: [RFC][PATCH 4/7] sched: Replace sd_busy/nr_busy_cpus with sched_domain_shared

2016-05-11 Thread Peter Zijlstra
On Wed, May 11, 2016 at 02:33:45PM +0200, Peter Zijlstra wrote: > Do we want to model this co-operative L3 slices thing as a sort of > node-wide LLC for the purpose of the scheduler ? > > the scheduler does try and scale things by 'assuming' LLC := node. So this whole series is about selecting id

Re: [PATCH 1/1] gpio: dwapb: Add ACPI device ID for DWAPB GPIO controller on X-Gene platforms

2016-05-11 Thread Duc Dang
On Wed, May 11, 2016 at 2:33 AM, Linus Walleij wrote: > On Tue, May 3, 2016 at 9:53 AM, Duc Dang wrote: > >> This patch enables DWAPB GPIO controller support on X-Gene >> platforms in ACPI boot mode. >> >> Signed-off-by: Duc Dang >> --- >> This patch needs to be applied on top of for-next branch

Re: [PATCH v3 00/27] ARM: dts: exynos: Add initial support for Odroid XU

2016-05-11 Thread Krzysztof Kozlowski
On Wed, May 11, 2016 at 11:41:34AM -0400, Javier Martinez Canillas wrote: > Hello Krzysztof, > > On 05/10/2016 04:09 PM, Krzysztof Kozlowski wrote: > > Hi, > > > > Patchset adds necessary clocks, reorganizes existing stuff and finally > > adds Odroid XU support. > > > > > > Changes since v2 > >

Re: [PATCH v2] mailbox: pcc: Support HW-Reduced Communication Subspace Type 2

2016-05-11 Thread Hoan Tran
Hi Ashwin, On Wed, May 11, 2016 at 4:57 AM, Ashwin Chaugule wrote: > On 11 May 2016 at 00:21, Hoan Tran wrote: >> Hi Ashwin, > > Hi, > >> On Tue, May 10, 2016 at 5:00 AM, Ashwin Chaugule >>> On 6 May 2016 at 14:38, Hoan Tran wrote: From: hotran ACPI 6.1 has a PCC HW-Reduced Comm

Re: [PATCH v8 6/8] dt-bindings: i2c: rk3x: add support for rk3399

2016-05-11 Thread Heiko Stuebner
Am Mittwoch, 11. Mai 2016, 03:30:47 schrieb David Wu: > The bus clock and function clock are separated at rk3399, > and others use one clock as the bus clock and function clock. > > Signed-off-by: David Wu > Reviewed-by: Douglas Anderson I'd second what Doug said wrt. the removal of the unneces

Re: [PATCH] ARM: dts: exynos: Enable AX88760 USB hub on Origen board

2016-05-11 Thread Matthew Leach
Hi Krzysztof, Sorry for not acting on the feedback sooner - I lost the email in my Inbox! I've tested the patch on my Origen board and it works fine. One small comment in-line. Krzysztof Kozlowski writes: > From: Matthew Leach > > Enable the Origen's usb phy and ohci devices in the device tr

<    2   3   4   5   6   7   8   9   10   11   >