Re: [PATCH] ARM: davinci: da850: Fix pwm name matching

2016-10-26 Thread Sekhar Nori
On Wednesday 26 October 2016 09:32 PM, Kevin Hilman wrote: > Hi Sekhar, > > Sekhar Nori writes: > >> On Tuesday 25 October 2016 11:24 PM, David Lechner wrote: >>> This fixes pwm name matching for DA850 familiy devices. When using device >>> tree, the da850_auxdata_lookup[] table caused pwm devic

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Bob Peterson
- Original Message - | On Wed, Oct 26, 2016 at 10:15 AM, Linus Torvalds | wrote: | > | > Oh, and the patch is obviously entirely untested. I wouldn't want to | > ruin my reputation by *testing* the patches I send out. What would be | > the fun in that? | | So I tested it. It compiles, and

Re: [PATCH] lib/genalloc.c: Start search from start of chunk

2016-10-26 Thread Will Deacon
On Tue, Oct 25, 2016 at 11:36:44AM -0700, Daniel Mentz wrote: > gen_pool_alloc_algo() iterates over the chunks of a pool trying to find > a contiguous block of memory that satisfies the allocation request. > > The shortcut > > if (size > atomic_read(&chunk->avail)) > continue;

[PATCH v4] usb: musb: remove duplicated actions

2016-10-26 Thread Kirill Esipov
Removing unnecessary duplicated actions that we've got while merging: 19915e623458 ("Merge 4.1-rc7 into usb-next") Signed-off-by: Kirill Esipov --- drivers/usb/musb/musb_core.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c ind

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 11:04 AM, Bob Peterson wrote: > > I can test it for you, if you give me about an hour. I can definitely wait an hour, it would be lovely to see more testing. Especially if you have a NUMA machine and an interesting workload. And if you actually have that NUMA machine and

Re: [PATCH v6 1/9] sched: Extend scheduler's asym packing

2016-10-26 Thread Tim Chen
On Wed, 2016-10-26 at 12:27 +0200, Thomas Gleixner wrote: > On Thu, 20 Oct 2016, Tim Chen wrote: > > > > > We generalize the scheduler's asym packing to provide an ordering > > of the cpu beyond just the cpu number.  This allows the use of the > > ASYM_PACKING scheduler machinery to move loads to

Re: [RESEND PATCH v3 kernel 0/7] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-10-26 Thread Dave Hansen
On 10/26/2016 03:06 AM, Li, Liang Z wrote: > I am working on Dave's new bitmap schema, I have finished the part of > getting the 'hybrid scheme bitmap' and found the complexity was more > than I expected. The main issue is more memory is required to save > the 'hybrid scheme bitmap' beside that use

Merge problem: Re: Applied "spi: fsl-espi: avoid processing uninitalized data on error" to the spi tree

2016-10-26 Thread Heiner Kallweit
Am 26.10.2016 um 12:15 schrieb Mark Brown: > The patch > >spi: fsl-espi: avoid processing uninitalized data on error > > has been applied to the spi tree at > >git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git > > All being well this means that it will be integrated into th

Re: [PATCH v6 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Tim Chen wrote: > On Wed, 2016-10-26 at 13:24 +0200, Thomas Gleixner wrote: > > > There were reservations on the multi-socket case of ITMT, maybe it would > > > help to spell those out in great detail here. That is, have the comment > > > explain the policy instead of simply st

Re: [PATCH v6 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Tim Chen wrote: > On Wed, 2016-10-26 at 12:52 +0200, Thomas Gleixner wrote: > > On Thu, 20 Oct 2016, Tim Chen wrote: > > > > > >   > > > + if (itmt_sysctl_header) > > > + unregister_sysctl_table(itmt_sysctl_header); > > What sets itmt_sysctl_header to NULL? > > > >

Re: [RESEND PATCH v3 kernel 0/7] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-10-26 Thread Dave Hansen
On 10/26/2016 03:13 AM, Li, Liang Z wrote: > 3 times memory required is not accurate, please ignore this. sorry ... > The complexity is the point. What is making it so complex? Can you describe the problems?

Re: [PATCH 0/5] mm: workingset: radix tree subtleties & single-page file refaults

2016-10-26 Thread Johannes Weiner
On Wed, Oct 26, 2016 at 11:21:07AM +0200, Jan Kara wrote: > On Mon 24-10-16 14:47:39, Johannes Weiner wrote: > > From: Johannes Weiner > > Date: Mon, 17 Oct 2016 09:00:04 -0400 > > Subject: [PATCH] mm: workingset: restore single-page file refault tracking > > > > Currently, we account shadow entr

Re: console issue since 3.6, console=ttyS1 hangs

2016-10-26 Thread Nathan Zimmer
On 10/25/2016 03:41 PM, Sean Young wrote: On Mon, Oct 24, 2016 at 04:49:25PM -0500, Nathan Zimmer wrote: [0.974874] system 00:03: Plug and Play ACPI device, IDs PNP0c02 (active) [0.975038] pnp 00:04: parse resource options [0.975048] pnp 00:04: dependent set 0 (acceptable) io mi

Re: bio linked list corruption.

2016-10-26 Thread Dave Jones
On Wed, Oct 26, 2016 at 09:48:39AM -0700, Linus Torvalds wrote: > On Wed, Oct 26, 2016 at 9:30 AM, Dave Jones wrote: > > > > I gave this a go last thing last night. It crashed within 5 minutes, > > but it was one we've already seen (the bad page map trace) with nothing > > additional that loo

Re: [PATCH 0/5] mm: workingset: radix tree subtleties & single-page file refaults

2016-10-26 Thread Linus Torvalds
On Mon, Oct 24, 2016 at 11:47 AM, Johannes Weiner wrote: > > How about this instead: given that we already mark the shadow entries > exceptional, and the exceptional bit is part of the radix tree API, > can we just introduce a node->exceptional counter for those entries > and have the radix tree c

Re: complete_all and "forever" completions

2016-10-26 Thread Dmitry Torokhov
On Wed, Oct 26, 2016 at 05:42:13PM +0200, Peter Zijlstra wrote: > On Wed, Oct 26, 2016 at 05:10:01AM -0700, Dmitry Torokhov wrote: > > On Wed, Oct 26, 2016 at 10:45:35AM +0200, Peter Zijlstra wrote: > > > On Tue, Oct 25, 2016 at 03:30:54PM -0700, Dmitry Torokhov wrote: > > > > > Or do we need some

Re: [PATCH v6 1/9] sched: Extend scheduler's asym packing

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Tim Chen wrote: > On Wed, 2016-10-26 at 12:27 +0200, Thomas Gleixner wrote: > > On Thu, 20 Oct 2016, Tim Chen wrote: > > > > > > > > We generalize the scheduler's asym packing to provide an ordering > > > of the cpu beyond just the cpu number.  This allows the use of the > >

[GIT PULL] libata fixes for v4.9-rc2

2016-10-26 Thread Tejun Heo
Hello, Linus. The AHCI MSI handling change in rc1 was a bit broken and caused disk probing failures on some machines. These three patches should fix the issues. Thanks. The following changes since commit 1001354ca34179f3db924eb66672442a173147dc: Linux 4.9-rc1 (2016-10-15 12:17:50 -0700) are

Re: [PATCH 0/5] mm: workingset: radix tree subtleties & single-page file refaults

2016-10-26 Thread Johannes Weiner
On Wed, Oct 26, 2016 at 11:18:52AM -0700, Linus Torvalds wrote: > On Mon, Oct 24, 2016 at 11:47 AM, Johannes Weiner wrote: > > > > How about this instead: given that we already mark the shadow entries > > exceptional, and the exceptional bit is part of the radix tree API, > > can we just introduce

Re: [PATCH v3 1/1] kthread: allocate kthread structure using kmalloc

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Oleg Nesterov wrote: > On 10/26, Thomas Gleixner wrote: > > > > On Wed, 26 Oct 2016, Oleg Nesterov wrote: > > > +static inline void set_kthread_struct(void *kthread) > > > +{ > > > + /* > > > + * We abuse ->set_child_tid to avoid the new member and because it > > > + * can't

Re: [PATCH V5 3/3] ACPI: pci_link: Include PIRQ_PENALTY_PCI_USING for ISA IRQs

2016-10-26 Thread Sinan Kaya
Thanks Jonathan, On 10/24/2016 12:46 AM, Jonathan Liu wrote: >> 1.9.1 >> > > This series fixes one or more network adapters not working in Linux > 32-bit x86 guest running inside VirtualBox if I have 4 network > adapters enabled. > The following message no longer appears in the kernel log: > ACPI:

Re: [PATCH] firmware: qcom: scm: Fix interrupted SCM calls fully

2016-10-26 Thread Bjorn Andersson
On Wed 28 Sep 03:42 PDT 2016, Sricharan R wrote: > Patch [1] fixes the issues with interrupted SCM64 calls > by returning the register r6 (Session ID) on the next try, but register > r0 also needs to be preserved for the retry. r0 contains the > result of the previous try. Without this i see that

Re: [PATCH 2/2] arm64/numa: support HAVE_MEMORYLESS_NODES

2016-10-26 Thread Will Deacon
On Tue, Oct 25, 2016 at 10:59:18AM +0800, Zhen Lei wrote: > Some numa nodes may have no memory. For example: > 1) a node has no memory bank plugged. > 2) a node has no memory bank slots. > > To ensure percpu variable areas and numa control blocks of the > memoryless numa nodes to be allocated from

Re: [PATCH 4/6 v5] sched: propagate load during synchronous attach/detach

2016-10-26 Thread Vincent Guittot
On 26 October 2016 at 16:28, Peter Zijlstra wrote: > On Wed, Oct 26, 2016 at 02:31:01PM +0200, Vincent Guittot wrote: >> On 26 October 2016 at 12:54, Peter Zijlstra wrote: >> > On Mon, Oct 17, 2016 at 11:14:11AM +0200, Vincent Guittot wrote: >> >> /* >> >> + * Signed add and clamp on underflow.

Re: bio linked list corruption.

2016-10-26 Thread Dave Jones
On Wed, Oct 26, 2016 at 09:48:39AM -0700, Linus Torvalds wrote: > I know you already had this in some email, but I lost it. I think you > narrowed it down to a specific set of system calls that seems to > trigger this best. fallocate and xattrs or something? So I was about to give that a shot

Re: [PATCH 4.8 000/140] 4.8.5-stable review

2016-10-26 Thread Shuah Khan
On 10/26/2016 06:21 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.5 release. > There are 140 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [PATCH 4.4 000/112] 4.4.28-stable review

2016-10-26 Thread Shuah Khan
On 10/26/2016 06:21 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.28 release. > There are 112 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

Re: [PATCH 0/2] perf: measure page fault duration in perf trace

2016-10-26 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 26, 2016 at 10:46:18AM +0200, Peter Zijlstra escreveu: > On Wed, Oct 26, 2016 at 01:51:58AM +0200, Alexis Berlemont wrote: > > Hi, > > > > Here are 2 small patches which try to fulfill a point in the perf todo > > list: > > There's a todo list? https://perf.wiki.kernel.org/index.php/

Re: [PATCH 1/2] perf, x86-mm: Add exit-fault tracing

2016-10-26 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 26, 2016 at 10:51:16AM +0200, Peter Zijlstra escreveu: > On Wed, Oct 26, 2016 at 01:51:59AM +0200, Alexis Berlemont wrote: > > -ENOCHANGELOG Yeah, please add one explaining why we want this, how we can use it, for example, in 'perf trace', to measure how long each page fault took, exa

Re: [PATCH V2 08/10] watchdog: da9062/61: watchdog driver

2016-10-26 Thread Guenter Roeck
On Wed, Oct 26, 2016 at 05:56:39PM +0100, Steve Twiss wrote: > From: Steve Twiss > > The of_device_id match array is added to support "dlg,da9062-watchdog" > as a valid .compatible string. > > The watchdog_info structure is linked to this device tree compatible > string in the .data section. Ext

[RFC 2/3] regulator: fixed: Handle optional overcurrent pin

2016-10-26 Thread ahaslam
From: Axel Haslam Fixed regulators (ex. TPS2087D) may have a over current pin that is activated when an over current condition is detected. Consumers may be interested to know about the status changes of this pin to disable the regulator and notify framework layers or userspace. Allow the fix re

[PATCH 0/3] regulator: Send events on over current condition

2016-10-26 Thread ahaslam
From: Axel Haslam Some usb drivers rely on external power switches/regulators to handle the port vbus. Some of these drivers currently are still using gpios for the enable pin and also the over current indicator. We would like to move these drivers to use a regulator instead, because it makes th

[RFC 3/3] regulator: fixed: dt: Allow an optional over current pin

2016-10-26 Thread ahaslam
From: Axel Haslam Add support for an optional over current input pin which can be used to send an over current event to the regulator consumer. Cc: devicet...@vger.kernel.org Signed-off-by: Axel Haslam --- Documentation/devicetree/bindings/regulator/fixed-regulator.txt | 4 drivers/regula

Re: [RFC PATCH 1/5] of: introduce the overlay manager

2016-10-26 Thread Thomas Petazzoni
Hello, On Wed, 26 Oct 2016 10:29:59 -0600, Mathieu Poirier wrote: > > + overlay = devm_kzalloc(dev, sizeof(*overlay), GFP_KERNEL); > > Function devm_kzalloc() can sleep but you're holding a spinlock - I'm > surprised the kernel didn't complain here. Allocate the memory before > holding

[RFC 1/3] regulator: core: Add over current changed event

2016-10-26 Thread ahaslam
From: Axel Haslam Regulator consumers may be interested to know when the over current condition is over. Add an over currerent "changed" event. The registered useres for this event can then check the over current flag to know the status of the over current condition. Signed-off-by: Axel Haslam

Re: [kernel-hardening] [RFC v4 03/18] bpf,landlock: Add a new arraymap type to deal with (Landlock) handles

2016-10-26 Thread Jann Horn
On Wed, Oct 26, 2016 at 08:56:39AM +0200, Mickaël Salaün wrote: > This new arraymap looks like a set and brings new properties: > * strong typing of entries: the eBPF functions get the array type of > elements instead of CONST_PTR_TO_MAP (e.g. > CONST_PTR_TO_LANDLOCK_HANDLE_FS); > * force seque

Re: bio linked list corruption.

2016-10-26 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 11:42 AM, Dave Jones wrote: > > The stacks show nearly all of them are stuck in sync_inodes_sb That's just wb_wait_for_completion(), and it means that some IO isn't completing. There's also a lot of processes waiting for inode_lock(), and a few waiting for mnt_want_write(

Re: [PATCH v1] memcg: Prevent caches to be both OFF_SLAB & OBJFREELIST_SLAB

2016-10-26 Thread Christoph Lameter
Hmmm...Doesnt this belong into memcg_create_kmem_cache() or into kmem_cache_create() in mm/slab_common.h? Definitely not in an allocator specific function since this is an issue for all allocators. memcg_create_kmem_cache() simply assumes that it can pass flags from the kmem_cache structure to kme

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Bob Peterson
- Original Message - | On Wed, Oct 26, 2016 at 11:04 AM, Bob Peterson wrote: | > | > I can test it for you, if you give me about an hour. Sorry. I guess I underestimated the time it takes to build a kernel on my test box. It will take a little longer, but it's compiling now. | I can def

[PATCH v3] PM / devfreq: Restart previous governor if new governor fails to start

2016-10-26 Thread Saravana Kannan
If the new governor fails to start, switch back to old governor so that the devfreq state is not left in some weird limbo. Signed-off-by: Saravana Kannan --- * Fix NULL deref for real this time. * Addressed some style preferences. drivers/devfreq/devfreq.c | 13 +++-- 1 file changed, 11

Re: [PATCH v2] PM / devfreq: Restart previous governor if new governor fails to start

2016-10-26 Thread Saravana Kannan
On 10/26/2016 12:22 AM, Chanwoo Choi wrote: Hi, On 2016년 10월 26일 10:25, Saravana Kannan wrote: If the new governor fails to start, switch back to old governor so that the devfreq state is not left in some weird limbo. Signed-off-by: Saravana Kannan --- * Fixed typo in commit text * Fixed pote

[RFC v1 04/14] bus1: util - fixed list utility library

2016-10-26 Thread David Herrmann
From: Tom Gundersen This implements a fixed-size list called bus1_flist. The size of the list must be constant over the lifetime of the list. The list can hold one arbitrary pointer per node. Fixed lists are a combination of a linked list and a static array. That is, fixed lists behave like link

[RFC v1 01/14] bus1: add bus1(7) man-page

2016-10-26 Thread David Herrmann
From: Tom Gundersen Add new directory ./Documentation/bus1/ and include DocBook scripts to build the bus1(7) man-page. This documents the bus1 character-device, including all the file-operations you can perform on it. Furthermore, the man-page also introduces the core bus1 concepts and explains

[RFC v1 12/14] bus1: hook up file-operations

2016-10-26 Thread David Herrmann
From: Tom Gundersen This hooks up all the file-operations on a bus1-file-descriptor. It implements the ioctls as defined in the UAPI, as well as mmap() and poll() support. Signed-off-by: Tom Gundersen Signed-off-by: David Herrmann --- ipc/bus1/main.c | 46 +++ ipc/bus1/peer.c | 934 +

Re: [PATCH v1] memcg: Prevent caches to be both OFF_SLAB & OBJFREELIST_SLAB

2016-10-26 Thread Thomas Garnier
On Wed, Oct 26, 2016 at 12:08 PM, Christoph Lameter wrote: > Hmmm...Doesnt this belong into memcg_create_kmem_cache() or into > kmem_cache_create() in mm/slab_common.h? Definitely not in an allocator > specific function since this is an issue for all allocators. > > memcg_create_kmem_cache() simpl

[RFC v1 00/14] Bus1 Kernel Message Bus

2016-10-26 Thread David Herrmann
Hi This proposal introduces bus1.ko, a kernel messaging bus. This is not a request for inclusion, yet. It is rather an initial draft and a Request For Comments. While bus1 emerged out of the kdbus project, bus1 was started from scratch and the concepts have little in common. In a nutshell, bus1 p

[RFC] dma-mapping: fix dma_common_mmap() for ARC

2016-10-26 Thread Alexey Brodkin
ARC CPU with enabled MMU sees entire 32-bit address space divided in 2 big parts: 1) 0 - 0x7fff_ (lower 2Gb): translated memory I.e. all reads/writes from/to this region go through MMU and after translation land somewhere in physical memory. 2) 0x8000_ - 0x_: untranslated

[RFC v1 14/14] bus1: basic user-space kselftests

2016-10-26 Thread David Herrmann
From: Tom Gundersen This adds kselftests integration and provides some basic API tests for bus1. Signed-off-by: Tom Gundersen Signed-off-by: David Herrmann --- tools/testing/selftests/bus1/.gitignore | 2 + tools/testing/selftests/bus1/Makefile | 19 ++ tools/testing/selftests/bus1/b

[RFC v1 10/14] bus1: add handle management

2016-10-26 Thread David Herrmann
From: Tom Gundersen The object system on a bus is based on 'nodes' and 'handles'. Any peer can allocate new, local objects at any time. The creator automatically becomes the sole owner of the object. References to objects can be passed as payload of messages. The recipient will then gain their ow

[RFC v1 11/14] bus1: implement message transmission

2016-10-26 Thread David Herrmann
From: Tom Gundersen While notifications already work and simply require linking bus1_handle objects into the destination queue, real messages require proper payloads. This implements two core objects: Message objects and factories. The message factory is similar to transaction contexts, and live

[RFC v1 07/14] bus1: tracking user contexts

2016-10-26 Thread David Herrmann
From: Tom Gundersen Different users can communicate via bus1, and many resources are shared between multiple users. The bus1_user object represents the UID of a user, like "struct user_struct" does in the kernel core. It is used to account global resources, apply limits, and calculate quotas if d

[RFC v1 09/14] bus1: provide transaction context for multicasts

2016-10-26 Thread David Herrmann
From: Tom Gundersen The transaction engine is an object that lives on the stack and is used to stage and commit multicasts properly. Unlike unicasts, a multicast cannot just be queued on each destination, but must be properly synchronized. This requires us to first stage each message on their res

[RFC v1 06/14] bus1: util - queue utility library

2016-10-26 Thread David Herrmann
From: Tom Gundersen (Please refer to 'Lamport Timestamps', the concept of 'happened-before', and 'causal ordering'. The queue implementation has its roots in Lamport Timestamps, treating a set of local CPUs as a distributed system to avoid any global synchronization.) A bus1 m

Re: [PATCH] lib/ida: Document locking requirements a bit better

2016-10-26 Thread Daniel Vetter
On Wed, Oct 26, 2016 at 10:39:29AM -0400, Tejun Heo wrote: > Hello, Daniel. > > On Wed, Oct 26, 2016 at 04:27:39PM +0200, Daniel Vetter wrote: > > I wanted to wrap a bunch of ida_simple_get calls into their own > > locking, until I dug around and read the original commit message. > > Stuff like th

[RFC v1 08/14] bus1: implement peer management context

2016-10-26 Thread David Herrmann
From: Tom Gundersen A peer context provides access to the bus1 system. A peer itself is not a routable entity, but rather only a local anchor to serve as gateway to the bus. To participate on the bus, you need to allocate a peer. This peer manages all your state on the bus, including all allocate

[RFC v1 05/14] bus1: util - pool utility library

2016-10-26 Thread David Herrmann
From: Tom Gundersen A bus1-pool is a shmem-backed memory pool shared between userspace and the kernel. The pool is used to transfer memory from the kernel to userspace without requiring userspace to pre-allocate space. The pool is managed in slices, which are published to userspace when they are

[RFC v1 13/14] bus1: limit and protect resources

2016-10-26 Thread David Herrmann
From: Tom Gundersen This adds resource-counters to peers and users. They limit the number of objects that a peer can operate on. The root limits per user can be configured as a module option. Everything else is just based on them. This also adds LSM hooks. They are not integrated with ./security

[RFC v1 02/14] bus1: provide stub cdev /dev/bus1

2016-10-26 Thread David Herrmann
From: Tom Gundersen Add the CONFIG_BUS1 option to enable the bus1 kernel messaging bus. If enabled, provide the bus1.ko module with a stub cdev /dev/bus1. So far it does not expose any API, but the full intended uapi is provided in include/uapi/linux/bus1.h already. Signed-off-by: Tom Gundersen

[RFC v1 03/14] bus1: util - active reference utility library

2016-10-26 Thread David Herrmann
From: Tom Gundersen The bus1_active object implements active references. They work similarly to plain object reference counters, but allow disabling any new references from being taken. Each bus1_active object goes through a set of states: NEW: Initial state, no active references can be

Re: [PATCH v2] Input: synaptics-rmi4 - stop scanning PDT after two empty pages

2016-10-26 Thread Andrew Duggan
On 10/25/2016 01:36 PM, Nick Dyer wrote: We have encountered some RMI4 firmwares where there are blank pages in between PDT pages which contain functions. This change makes them correctly enumerate all functions on the device. Tested on S7817 (has empty page 2). Signed-off-by: Nick Dyer Revi

Re: [PATCH v2 1/3] introduce memcpy_nocache()

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Brian Boylston wrote: > --- a/arch/x86/include/asm/string_32.h > +++ b/arch/x86/include/asm/string_32.h > @@ -196,6 +196,9 @@ static inline void *__memcpy3d(void *to, const void > *from, size_t len) > +#define __HAVE_ARCH_MEMCPY_NOCACHE > +extern void *memcpy_nocache(void *de

[PATCH 0/5] add NS2 support to bgmac

2016-10-26 Thread Jon Mason
Add support for the amac found in the Broadcom Northstar2 SoC to the bgmac driver. This necessitates adding support to connect to an externally defined phy (as described in the device tree) in the driver. These phy changes are in addition to the changes necessary to get NS2 working. This series (

[PATCH 2/5] Documentation: devicetree: net: add NS2 bindings to amac

2016-10-26 Thread Jon Mason
Signed-off-by: Jon Mason --- Documentation/devicetree/bindings/net/brcm,amac.txt | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/brcm,amac.txt b/Documentation/devicetree/bindings/net/brcm,amac.txt index ba5ecc1..f92caee 100644 ---

[PATCH 4/5] net: ethernet: bgmac: add NS2 support

2016-10-26 Thread Jon Mason
Add support for the variant of amac hardware present in the Broadcom Northstar2 based SoCs. Northstar2 requires an additional register to be configured with the port speed/duplexity (NICPM). This can be added to the link callback to hide it from the instances that do not use this. Also, the bgmac

[PATCH 0/5] drm/i915/skl: Backport watermark fixes for 4.8.y

2016-10-26 Thread Lyude
Now that these have finally made it into 4.9, it's time to finally backport these fixes. Skylake has been a mess in multi-monitor setups for a while now because up until recently we've been updating the watermarks on Skylake just like we would for previous generations of Intel GPUs. This means upda

[PATCH 5/5] arm64: dts: NS2: add AMAC ethernet support

2016-10-26 Thread Jon Mason
Add support for the AMAC ethernet to the Broadcom Northstar2 SoC device tree Signed-off-by: Jon Mason --- arch/arm64/boot/dts/broadcom/ns2-svk.dts | 5 + arch/arm64/boot/dts/broadcom/ns2.dtsi| 12 2 files changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/broadcom/

[PATCH 2/5] drm/i915: Move CRTC updating in atomic_commit into it's own hook

2016-10-26 Thread Lyude
commit 896e5bb022bce64e29ce2e1b2fc2a7476d311a15 upstream Since we have to write ddb allocations at the same time as we do other plane updates, we're going to need to be able to control the order in which we execute modesets on each pipe. The easiest way to do this is to just factor this section of

[PATCH 3/5] net: ethernet: bgmac: device tree phy enablement

2016-10-26 Thread Jon Mason
Change the bgmac driver to allow for phy's defined by the device tree Signed-off-by: Jon Mason --- drivers/net/ethernet/broadcom/bgmac-bcma.c | 48 drivers/net/ethernet/broadcom/bgmac-platform.c | 48 +++- drivers/net/ethernet/broadcom/bgmac.c

[PATCH 4/5] drm/i915/skl: Don't try to update plane watermarks if they haven't changed

2016-10-26 Thread Lyude
commit ccebc23b57c313229526dc76383ce82f5e0b9001 upstream i915 sometimes needs to disable planes in the middle of an atomic commit, and then reenable them later in the same commit. Because of this, we can't make the assumption that the state of the plane actually changed. Since the state of the pla

[PATCH 1/5] drm/i915/skl: Update plane watermarks atomically during plane updates

2016-10-26 Thread Lyude
commit c145d3be1c313184be71d2629fd575561b7e38d4 upstream Thanks to Ville for suggesting this as a potential solution to pipe underruns on Skylake. On Skylake all of the registers for configuring planes, including the registers for configuring their watermarks, are double buffered. New values writ

[PATCH 3/5] drm/i915/skl: Update DDB values atomically with wms/plane attrs

2016-10-26 Thread Lyude
commit 27082493e9c6371b05370a619ab9d2877c5f4726 upstream Now that we can hook into update_crtcs and control the order in which we update CRTCs at each modeset, we can finish the final step of fixing Skylake's watermark handling by performing DDB updates at the same time as plane updates and waterm

[PATCH 5/5] drm/i915/gen9: only add the planes actually affected by ddb changes

2016-10-26 Thread Lyude
From: Paulo Zanoni commit be5c571b2ff3a164d2e14ccc100cb5b2b3d3fb7c upstream We were previously adding all the planes owned by the CRTC even when the ddb partitioning didn't change for them. As a consequence, a lot of functions were being called when we were just moving the cursor around the scre

Re: [PATCH v6 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

2016-10-26 Thread Tim Chen
On Wed, 2016-10-26 at 20:11 +0200, Thomas Gleixner wrote: > On Wed, 26 Oct 2016, Tim Chen wrote: > > > > > On Wed, 2016-10-26 at 12:52 +0200, Thomas Gleixner wrote: > > > > > > On Thu, 20 Oct 2016, Tim Chen wrote: > > > > > > > > > > > >   > > > > + if (itmt_sysctl_header) > > > > +

[PATCH 1/5] net: phy: broadcom: Add BCM54810 phy entry

2016-10-26 Thread Jon Mason
From: Vikas Soni Add BCM54810 phy entry Signed-off-by: Vikas Soni Signed-off-by: Jon Mason --- drivers/net/phy/Kconfig| 2 +- drivers/net/phy/broadcom.c | 65 ++ include/linux/brcmphy.h| 7 + 3 files changed, 73 insertions(+), 1 deleti

[PATCH 2/3] dt-bindings: reset: Add K2G reset definitions

2016-10-26 Thread Andrew F. Davis
Add identifiers for the K2G resets managed by the PMMC. Signed-off-by: Andrew F. Davis --- MAINTAINERS | 1 + include/dt-bindings/reset/k2g.h | 22 ++ 2 files changed, 23 insertions(+) create mode 100644 include/dt-bindings/reset/k2g.h diff --git a/MAIN

Re: [PATCH] lib/genalloc.c: Start search from start of chunk

2016-10-26 Thread Andrew Morton
On Wed, 26 Oct 2016 19:09:51 +0100 Will Deacon wrote: > On Tue, Oct 25, 2016 at 11:36:44AM -0700, Daniel Mentz wrote: > > gen_pool_alloc_algo() iterates over the chunks of a pool trying to find > > a contiguous block of memory that satisfies the allocation request. > > > > The shortcut > > > >

Re: [RFC v1 00/14] Bus1 Kernel Message Bus

2016-10-26 Thread Linus Torvalds
So the thing that tends to worry me about these is resource management. If I understood the documentation correctly, this has per-user resource management, which guarantees that at least the system won't run out of memory. Good. The act of sending a message transfers the resource to the receiver e

[PATCH 3/3] reset: Add the TI SCI reset driver

2016-10-26 Thread Andrew F. Davis
Some TI Keystone family of SoCs contain a system controller (like the Power Management Micro Controller (PMMC) on K2G SoCs) that manage the low-level device control (like clocks, resets etc) for the various hardware modules present on the SoC. These device control operations are provided to the hos

[PATCH 0/9] AC97 device/driver model revamp

2016-10-26 Thread Robert Jarzmik
It all started in the pxa device-tree submission here : https://lkml.org/lkml/2016/2/25/965 Last submission was a RFC in here: http://www.gossamer-threads.com/lists/linux/kernel/2446863 It will be maintained in : git fetch https://github.com/rjarzmik/linux.git work/ac97 The driving id

[PATCH] ARM: davinci: Add full regulator constraints for non-DT boot

2016-10-26 Thread ahaslam
From: Axel Haslam The phy framework requests an optional "phy" regulator. If it does not find one, it returns -EPROBE_DEFER. In the case of non-DT boot for the omap138-lcdk board, this would prevent the usb11 phy to probe correctly and ohci would not enumerate. By calling "regulator_has_full_con

[PATCH 1/3] Documentation: dt: reset: Add TI SCI reset binding

2016-10-26 Thread Andrew F. Davis
Add TI SCI reset controller binding. This describes the DT binding details for a reset controller node providing reset management services to hardware blocks (reset consumers) using the Texas Instrument's System Control Interface (TI SCI) protocol to communicate to a system controller block present

[PATCH 0/3] Add TI SCI Reset Driver

2016-10-26 Thread Andrew F. Davis
Hello all, This series adds a reset controller driver that uses the TI SCI protocol to manage resets. The TI SCI protocol is used to communicate with power management controllers used by some SoCs. These controllers manage the various power domains, clocks, and resets available on a SoC. This se

[PATCH 6/9] power_supply: wm97xx_battery: use power_supply_get_drvdata

2016-10-26 Thread Robert Jarzmik
As the power supply framework provides a way to store and retrieve private supply data, use it. In the process, change the platform data for wm97xx_battery from a container of a single struct wm97xx_batt_pdata to the direct point to wm97xx_batt_pdata. Signed-off-by: Robert Jarzmik --- drivers/

[PATCH 2/9] ALSA: ac97: add an ac97 bus

2016-10-26 Thread Robert Jarzmik
AC97 is a bus for sound usage. It enables for a AC97 AC-Link to link one controller to 0 to 4 AC97 codecs. The goal of this new implementation is to implement a device/driver model for AC97, with an automatic scan of the bus and automatic discovery of AC97 codec devices. Signed-off-by: Robert Jar

Re: [PATCH] pci: Don't set RCB bit in LNKCTL if the upstream bridge hasn't

2016-10-26 Thread Bjorn Helgaas
Hi Johannes, On Wed, Oct 26, 2016 at 03:53:34PM +0200, Johannes Thumshirn wrote: > The Read Completion Boundary bit must only be set on a device or endpoint if > it is set on the upstream bridge. > > Fixes: 7a1562d4f ("PCI: Apply _HPX Link Control settings to all devices with > a link") Can you

[PATCH 1/9] ALSA: ac97: split out the generic ac97 registers

2016-10-26 Thread Robert Jarzmik
Split out from the ac97_codec.h the ac97 generic registers, which can be used by a codec, typically a generic ac97 codec, and by the ac97 bus, to scan an ac97 AC-Link. This split encompasses all the AC97 standard registers, but not the codec specific ones. In order to have a clean split between f

[PATCH] ARM: davinci: register the usb20_phy clock on the DT file

2016-10-26 Thread ahaslam
From: Axel Haslam The usb20_phy clock needs to be registered for the driver to be able to get and enable a clock. Currently the usb phy clocks are registered form board files, which will not be called during a device tree based boot. To be able to probe correctly usb form a device tree boot, reg

[PATCH 5/9] ASoC: pxa: switch to new ac97 bus support

2016-10-26 Thread Robert Jarzmik
Switch to the new ac97 bus support in sound/ac97 instead of the legacy snd_ac97 one. Signed-off-by: Robert Jarzmik --- include/sound/pxa2xx-lib.h | 15 +-- sound/arm/Kconfig | 1 - sound/arm/pxa2xx-ac97-lib.c | 39 +++ sound/soc/pxa/Kco

[PATCH 9/9] Input: wm97xx: add new AC97 bus support

2016-10-26 Thread Robert Jarzmik
This adds support for the new AC97 bus code, which discovers the devices rather than uses platform data. As part of this discovery, it enables a multi-function device wm97xx, which supports touchscreen, battery, ADC and an audio codec. This patch adds the code to bind the touchscreen "cell" as the

Re: [PATCH v6 RESEND] serial: rewrite pxa2xx-uart to use 8250_core

2016-10-26 Thread Robert Jarzmik
Greg Kroah-Hartman writes: > On Thu, Oct 06, 2016 at 08:25:35AM +0200, Robert Jarzmik wrote: >> Robert Jarzmik writes: >> >> > From: Sergey Yanovich >> > >> > pxa2xx-uart was a separate uart platform driver. It was declaring >> > the same device names and numbers as 8250 driver. As a result, >

Re: [PATCH 0/5] print a hex number after a 0x prefix

2016-10-26 Thread Andrew Morton
On Wed, 26 Oct 2016 14:56:53 +0200 Uwe Kleine-K__nig wrote: > Hello, > > these were found by > > git grep -i 0x%[lh]*[du] > > Maybe it would make sense to catch this type of unconvenience in > checkpatch? > > Best regards > Uwe > > Uwe Kleine-K__nig (5): > fs: exofs: print a hex num

[PATCH 3/9] ASoC: add new ac97 bus support

2016-10-26 Thread Robert Jarzmik
Add the new ac97 bus support, with ac97 bus automatic probing. Signed-off-by: Robert Jarzmik --- sound/Kconfig | 2 ++ sound/Makefile| 1 + sound/soc/Kconfig | 4 3 files changed, 7 insertions(+) diff --git a/sound/Kconfig b/sound/Kconfig index 5a240e050ae6..c7e1cbe84951 100644 ---

Re: [PATCH v2 1/3] introduce memcpy_nocache()

2016-10-26 Thread Boaz Harrosh
On 10/26/2016 06:50 PM, Brian Boylston wrote: > Introduce memcpy_nocache() as a memcpy() that avoids the processor cache > if possible. Without arch-specific support, this defaults to just > memcpy(). For now, include arch-specific support for x86. > > Cc: Ross Zwisler > Cc: Thomas Gleixner >

RE: [PATCH] Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()

2016-10-26 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, October 26, 2016 4:12 AM > To: de...@linuxdriverproject.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan ; > Haiyang Zhang > Subject: [PATCH] Drivers: hv: vmbus: Raise retry/wait limits in

[PATCH 4/9] ASoC: wm9713: add ac97 new bus support

2016-10-26 Thread Robert Jarzmik
Add support for the new ac97 bus model, where devices are automatically discovered on AC-Links. Signed-off-by: Robert Jarzmik --- sound/soc/codecs/Kconfig | 3 ++- sound/soc/codecs/wm9713.c | 37 ++--- 2 files changed, 28 insertions(+), 12 deletions(-) diff --g

Re: [PATCH 1/5] KVM: x86: avoid atomic operations on APICv vmentry

2016-10-26 Thread Radim Krčmář
2016-10-14 20:21+0200, Paolo Bonzini: > On some benchmarks (e.g. netperf with ioeventfd disabled), APICv > posted interrupts turn out to be slower than interrupt injection via > KVM_REQ_EVENT. > > This patch optimizes a bit the IRR update, avoiding expensive atomic > operations in the common case

Re: [PATCH] x86: quirks: hide maybe-uninitialized warning

2016-10-26 Thread Bjorn Helgaas
On Mon, Oct 24, 2016 at 05:33:18PM +0200, Arnd Bergmann wrote: > gcc -Wmaybe-uninitialized detects that quirk_intel_brickland_xeon_ras_cap > uses uninitialized data when CONFIG_PCI is not set: > > arch/x86/kernel/quirks.c: In function ‘quirk_intel_brickland_xeon_ras_cap’: > arch/x86/kernel/quirks.

Re: [PATCH 1/2] phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips

2016-10-26 Thread Kishon Vijay Abraham I
Hi, On Wednesday 19 October 2016 04:13 PM, Vivek Gautam wrote: > PHY transceiver driver for QUSB2 phy controller that provides > HighSpeed functionality for DWC3 controller present on > Qualcomm chipsets. > > This driver is based on phy-msm-qusb driver available in > msm-4.4 kernel @codeaurora[1]

Re: [PATCH 3/3] ovl: redirect on rename-dir

2016-10-26 Thread Amir Goldstein
On Wed, Oct 26, 2016 at 2:26 PM, Miklos Szeredi wrote: > On Tue, Oct 25, 2016 at 2:49 PM, Amir Goldstein wrote: > >>> @@ -880,31 +913,34 @@ static int ovl_rename(struct inode *olddir, struct >>> dentry *old, >>> if (WARN_ON(olddentry->d_inode == newdentry->d_inode)) >>> g

Re: [PATCH V4 0/5] firmware: Add support for TI System Control Interface (TI-SCI) protocol driver

2016-10-26 Thread Santosh Shilimkar
On 10/25/2016 10:34 AM, Tero Kristo wrote: On 19/10/16 02:08, Nishanth Menon wrote: Version 4 of the series is basically a rebase to v4.9-rc1, no functional changes. Hi, Any final comments on this series, or shall I send a pull-req forward? Very minimal changes compared to v3 so should be goo

  1   2   3   4   5   6   7   8   9   10   >