RE: [PATCH] PCI: Blacklist AMD Stoney GPU devices for ATS

2017-03-29 Thread Nath, Arindam
>-Original Message- >From: 'Joerg Roedel' [mailto:jroe...@suse.de] >Sent: Wednesday, March 29, 2017 3:12 PM >To: Nath, Arindam >Cc: Deucher, Alexander; 'Joerg Roedel'; Bjorn Helgaas; linux- >p...@vger.kernel.org; linux-kernel@vger.kernel.org; Daniel Drake >Subject: Re: [PATCH] PCI: Blacklis

Re: [PATCH v2, 3/3] tty/serial: meson_uart: add the core clock handling to the driver

2017-03-29 Thread Helmut Klein
On 28.03.2017 21:16, Jerome Brunet wrote: On Tue, 2017-03-28 at 11:25 +0200, Helmut Klein wrote: This patch gets the core clock as provided by the DT and enables it. The code was taken from Amlogic's serial driver, and was tested on my board. Signed-off-by: Helmut Klein --- drivers/tty/serial

Re: [PATCH v2] serial: 8250_dw: Avoid "too much work" from bogus rx timeout interrupt

2017-03-29 Thread Olliver Schinagl
Hey Andy, On 29-03-17 11:11, Andy Shevchenko wrote: On Wed, Mar 29, 2017 at 10:58 AM, Olliver Schinagl wrote: On 07-02-17 00:30, Douglas Anderson wrote: First of all I didn't get why people from Cc list are suddenly disappeared. Check your mail client settings. Returning back some of them. A

Re: [PATCH 1/5] locking: Introduce range reader/writer lock

2017-03-29 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 09:03:26PM -0800, Davidlohr Bueso wrote: > +static __always_inline int > +__range_read_lock_common(struct range_rwlock_tree *tree, > + struct range_rwlock *lock, long state) > +{ > + struct interval_tree_node *node; > + unsigned long flags; > + >

[PATCH 6/6] scsi: pm8001: remove the SAS host after the SCSI host

2017-03-29 Thread Johannes Thumshirn
After commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive") changed the removal path of kernfs to make it recursive we have to remove the SAS host before the SCSI host or we will see sysfs warnings on not found sysfs groups for kobjects. Signed-off-by: Johannes Thumshirn --- drivers/scsi

[PATCH 4/6] scsi: hisi_sas: remove the SAS host after the SCSI host

2017-03-29 Thread Johannes Thumshirn
After commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive") changed the removal path of kernfs to make it recursive we have to remove the SAS host before the SCSI host or we will see sysfs warnings on not found sysfs groups for kobjects. Signed-off-by: Johannes Thumshirn --- drivers/scsi

[PATCH 2/2] scsi: isci: remove the SAS host after the SCSI host

2017-03-29 Thread Johannes Thumshirn
After commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive") changed the removal path of kernfs to make it recursive we have to remove the SAS host before the SCSI host or we will see sysfs warnings like the below when triggering the the removal of the SAS HBA PCI device like with writing to

[PATCH 1/2] scsi: sas: flush destruct workqueue on device unregister

2017-03-29 Thread Johannes Thumshirn
In the advent of an SAS device unregister we have to wait for all destruct works to be done to not accidently delay deletion of a SAS rphy or it's children to the point when we're removing the SCSI or SAS hosts. Signed-off-by: Johannes Thumshirn --- drivers/scsi/libsas/sas_discover.c | 4 1

Re: [PATCH] PCI: Blacklist AMD Stoney GPU devices for ATS

2017-03-29 Thread 'Joerg Roedel'
Hi Arindam, On Wed, Mar 29, 2017 at 07:15:42AM +, Nath, Arindam wrote: > Joerg, as per my limited understanding of ATS, the ATC will respond to > invalidation requests after making sure there are no in-flight DMA > transactions with the address requested by IOMMU to be invalidated. > Now since

[PATCH v3] iio:adc: Driver for Linear Technology LTC2497 ADC

2017-03-29 Thread michael.hennerich
From: Michael Hennerich This patch adds support for the Analog Devices / Linear Technology LTC2497 ADCs. The LTC2497 is a 16-channel (eight differential), 16-bit, high precision, delta-sigma ADC with an automatic, differential, input current cancellation front end and a 2-wire, I2C interface. Si

[PATCH 3/6] aic94xx: remove the SAS host after the SCSI host

2017-03-29 Thread Johannes Thumshirn
After commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive") changed the removal path of kernfs to make it recursive we have to remove the SAS host before the SCSI host or we will see sysfs warnings on not found sysfs groups for kobjects. Signed-off-by: Johannes Thumshirn --- drivers/scsi

[PATCH 5/6] mvsas: remove the SAS host after the SCSI host

2017-03-29 Thread Johannes Thumshirn
After commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive") changed the removal path of kernfs to make it recursive we have to remove the SAS host before the SCSI host or we will see sysfs warnings on not found sysfs groups for kobjects. Signed-off-by: Johannes Thumshirn --- drivers/scsi

[PATCH 0/2] Fix sysfs recursive removal splats in isci

2017-03-29 Thread Johannes Thumshirn
This series fixes a sysfs warning caused by isci not being able to cope with recursive sysfs path removals which are in place since commit bcdde7e ("sysfs: make __sysfs_remove_dir() recursive"). The mvsas, aic94xx and pm8001 and hisi_sas patches have been compile tested only hence they have no cal

[PATCH 2/2] mdadm.c: fix compile error "switch condition has boolean value"

2017-03-29 Thread Gioh Kim
Remove a boolean expression in switch condition to prevent compile error of some compilers. Signed-off-by: Gioh Kim --- mdadm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mdadm.c b/mdadm.c index 08ddcab..a98a051 100644 --- a/mdadm.c +++ b/mdadm.c @@ -1905,11 +1905,

[PATCH 1/2] super1: replace hard-coded values with bit definitions

2017-03-29 Thread Gioh Kim
Some hard-coded values for disk status are replaced with bit definitions. Signed-off-by: Gioh Kim --- super1.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/super1.c b/super1.c index f3520ac..e8b9f61 100644 --- a/super1.c +++ b/super1.c @@ -1010,7 +1010,7 @@ static v

[PATCH net-next v3 2/5] net-next: dsa: add Mediatek tag RX/TX handler

2017-03-29 Thread sean.wang
From: Sean Wang Add the support for the 4-bytes tag for DSA port distinguishing inserted allowing receiving and transmitting the packet via the particular port. The tag is being added after the source MAC address in the ethernet header. Signed-off-by: Sean Wang Signed-off-by: Landen Chao Revie

[PATCH net-next v3 1/5] dt-bindings: net: dsa: add Mediatek MT7530 binding

2017-03-29 Thread sean.wang
From: Sean Wang Add device-tree binding for Mediatek MT7530 switch. Cc: devicet...@vger.kernel.org Signed-off-by: Sean Wang Acked-by: Rob Herring --- .../devicetree/bindings/net/dsa/mt7530.txt | 92 ++ 1 file changed, 92 insertions(+) create mode 100644 Documentat

[PATCH net-next v3 5/5] net-next: dsa: add dsa support for Mediatek MT7530 switch

2017-03-29 Thread sean.wang
From: Sean Wang MT7530 is a 7-ports Gigabit Ethernet Switch that could be found on Mediatek router platforms such as MT7623A or MT7623N platform which includes 7-port Gigabit Ethernet MAC and 5-port Gigabit Ethernet PHY. Among these ports, The port from 0 to 4 are the user ports connecting with t

[PATCH net-next v3 4/5] net-next: ethernet: mediatek: add device_node of GMAC pointing into the netdev instance

2017-03-29 Thread sean.wang
From: Sean Wang the patch adds the setup of the corresponding device node of GMAC into the netdev instance which could allow other modules such as DSA to find the instance through the node in dt-bindings using of_find_net_device_by_node() call. Signed-off-by: Sean Wang Reviewed-by: Andrew Lunn

[PATCH net-next v3 3/5] net-next: ethernet: mediatek: add CDM able to recognize the tag for DSA

2017-03-29 Thread sean.wang
From: Sean Wang The patch adds the setup for allowing CDM can recognize these packets with carrying port-distinguishing tag. Otherwise, these tagging packets will be handled incorrectly by CDM. The setup is also working out for general untag packets as well. Signed-off-by: Sean Wang Signed-off-

[PATCH net-next v3 0/5] net-next: dsa: add Mediatek MT7530 support

2017-03-29 Thread sean.wang
From: Sean Wang MT7530 is a 7-ports Gigabit Ethernet Switch that could be found on Mediatek router platforms such as MT7623A or MT7623N which includes 7-port Gigabit Ethernet MAC and 5-port Gigabit Ethernet PHY. Among these ports, The port from 0 to 4 are the user ports connecting with the remote

Re: [PATCH] kvm: pass the virtual SEI syndrome to guest OS

2017-03-29 Thread gengdongjiu
Hi Laszlo/Biesheuvel/Qemu developer, Now I encounter a issue and want to consult with you in ARM64 platform, as described below: when guest OS happen synchronous or asynchronous abort, kvm needs to send the error address to Qemu or UEFI through sigbus to dynamically generate APEI table.

Re: [PATCH v2] netfilter: Clean up tests if NULL returned on failure

2017-03-29 Thread Jan Engelhardt
On Wednesday 2017-03-29 11:15, SIMRAN SINGHAL wrote: >> dest = kzalloc(sizeof(struct ip_vs_dest), GFP_KERNEL); >>- if (dest == NULL) >>+ if (!dest) >> return -ENOMEM; > >But, according to me we should prefer !var over ( var ==NULL ) according to the >c

Re: linux-next: manual merge of the kvms390 tree with the kvm-mips tree

2017-03-29 Thread Christian Borntraeger
On 03/29/2017 11:21 AM, James Hogan wrote: > On Wed, Mar 29, 2017 at 02:08:32PM +1100, Stephen Rothwell wrote: >> Hi all, >> >> Today's linux-next merge of the kvms390 tree got a conflict in: >> >> include/uapi/linux/kvm.h >> >> between commits: >> >> a8a3c426772e ("KVM: MIPS: Add VZ & TE capab

Re: [PATCH] [SUBMITTED 20170314] [v333kbuild: disable -ffunction-sections on gcc-4.7 with ftrace

2017-03-29 Thread Arnd Bergmann
On Wed, Mar 29, 2017 at 4:07 AM, Masahiro Yamada wrote: > Hi Arnd, > > > 2017-03-15 6:37 GMT+09:00 Arnd Bergmann : >> When ftrace is enabled and we build with gcc-4.7 or older, we >> get a warning for each file on architectures that select >> CONFIG_LD_DEAD_CODE_DATA_ELIMINATION: >> >> warning: -f

Re: Bisected softirq accounting issue in v4.11-rc1~170^2~28

2017-03-29 Thread Jesper Dangaard Brouer
On Tue, 28 Mar 2017 23:11:22 +0200 Frederic Weisbecker wrote: > On Tue, Mar 28, 2017 at 05:23:03PM +0200, Jesper Dangaard Brouer wrote: > > On Tue, 28 Mar 2017 16:34:36 +0200 > > Frederic Weisbecker wrote: > > > > > On Tue, Mar 28, 2017 at 10:14:03AM +0200, Jesper Dangaard Brouer wrote: > >

[RFC][PATCHv2 4/8] pm: switch to printk.emergency mode in unsafe places

2017-03-29 Thread Sergey Senozhatsky
It's not always possible/safe to wake_up() printk kernel thread. For example, late suspend/early resume may printk() while timekeeping is not initialized yet, so calling into the scheduler may result in recursive warnings. Another thing to notice is the fact PM at some point freezes user space and

[PATCH] drm/i915: fix build error without CONFIG_BACKLIGHT_CLASS_DEVICE

2017-03-29 Thread Tobias Regnery
With CONFIG_ACPI=n and CONFIG_BACKLIGHT_CLASS_DEVICE=n we see the following link error in the i915 driver: drivers/built-in.o: In function 'intel_backlight_device_register': (.text+0x2a921d): undefined reference to 'backlight_device_register' Fix this by removing the condition on ACPI from the ap

[RFC][PATCHv2 7/8] printk: add printk emergency_mode parameter

2017-03-29 Thread Sergey Senozhatsky
This param permits user-space to forcibly on/off printk emergency mode via /sys/module/printk/parameters/emergency_mode node. We have annotated sections in the kernel that switch printk to emergency, but there might be places/cases when user space would want to have printk operate in emergency mod

[RFC][PATCHv2 1/8] printk: move printk_pending out of per-cpu

2017-03-29 Thread Sergey Senozhatsky
Do not keep `printk_pending' in per-CPU area. We set the following bits of printk_pending: a) PRINTK_PENDING_WAKEUP when we need to wakeup klogd b) PRINTK_PENDING_OUTPUT when there is a pending output from deferred printk and we need to call console_unlock(). So none of the

[RFC][PATCHv2 5/8] sysrq: switch to printk.emergency mode in unsafe places

2017-03-29 Thread Sergey Senozhatsky
It's not always possible/safe to wake_up() printk kernel thread from sysrq (theoretically). Thus we better switch printk() to emergency mode in some of the sysrq handlers, which allows us to immediately flush pending kernel message to the console. This patch adds printk_emergency_begin/on sections

[RFC][PATCHv2 0/8] printk: introduce printing kernel thread

2017-03-29 Thread Sergey Senozhatsky
Hello RFC This patch set adds a printk() kernel thread which lets us to print kernel messages to the console from a non-atomic/schedule-able context, avoiding different sort of lockups, stalls, etc. The biggest difference compared to v1 is a further expansion of "switch t

[RFC][PATCHv2 2/8] printk: introduce printing kernel thread

2017-03-29 Thread Sergey Senozhatsky
printk() is quite complex internally and, basically, it does two slightly independent things: a) adds a new message to a kernel log buffer (log_store()) b) prints kernel log messages to serial consoles (console_unlock()) while (a) is guaranteed to be executed by printk(), (b) is not, for a varie

[RFC][PATCHv2 3/8] printk: offload printing from wake_up_klogd_work_func()

2017-03-29 Thread Sergey Senozhatsky
Offload printing of printk_deferred() messages from IRQ context to a schedulable printing kthread, when possible (the same way we do it in vprintk_emit()). Otherwise, console_unlock() can force the printing CPU to spend unbound amount of time flushing kernel messages from IRQ context. Signed-off-b

[RFC][PATCHv2 6/8] kexec: switch to printk.emergency mode in unsafe places

2017-03-29 Thread Sergey Senozhatsky
Switch to printk emergency mode in kernel_kexec(), this lets us to immediately flush pending kernel message to the console and to avoid potentially unsafe calls into the scheduler. Signed-off-by: Sergey Senozhatsky --- kernel/kexec_core.c | 4 1 file changed, 4 insertions(+) diff --git a/k

[RFC][PATCHv2 8/8] printk: enable printk offloading

2017-03-29 Thread Sergey Senozhatsky
Initialize the kernel printing thread and enable printk() offloading. Signed-off-by: Sergey Senozhatsky --- kernel/printk/printk.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 0d96839bb450..acfdc50580db 100644 ---

Re: linux-next: manual merge of the xen-tip tree with the tip tree

2017-03-29 Thread Juergen Gross
On 29/03/17 10:59, Ingo Molnar wrote: > > * Juergen Gross wrote: > >> On 29/03/17 05:35, Stephen Rothwell wrote: >>> Hi all, >>> >>> Today's linux-next merge of the xen-tip tree got a conflict in: >>> >>> arch/x86/xen/enlighten.c >>> >>> between commits: >>> >>> 6415813bae75 ("x86/cpu: Drop

[PATCH] Fix IB va_start+ib_bytes range check on 32Bit systems

2017-03-29 Thread Jan Burgmeier
Signed-off-by: Jan Burgmeier --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 99424cb8020b..583d22974e14 100644 --- a/drivers/gpu/drm/amd/amdgpu/

Fix hardware accelerated video playback with amdgpu on 32Bit system

2017-03-29 Thread Jan Burgmeier
Hi, on 32Bit systems hardware accelerated video playback with amdgpu always errors out with the following message: "[drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* IB va_start+ib_bytes is invalid." Attached you find a patch witch fixes the problem. The patch was made against the staging-next bra

Re: [PATCH v7 1/7] clocksource/drivers/clksrc-evt-probe: Describe with the DT both the clocksource and the clockevent

2017-03-29 Thread Daniel Lezcano
On Tue, Mar 28, 2017 at 08:51:46PM -0500, Rob Herring wrote: > On Wed, Mar 22, 2017 at 06:48:28PM +0300, Alexander Kochetkov wrote: > > From: Daniel Lezcano > > > > The CLOCKSOURCE_OF_DECLARE() was introduced before the > > CLOCKEVENT_OF_DECLARE() and that resulted in some abuse where the > > clo

Re: [PATCH 4.4 48/76] libceph: force GFP_NOIO for socket allocations

2017-03-29 Thread Ilya Dryomov
On Tue, Mar 28, 2017 at 3:30 PM, Michal Hocko wrote: > On Tue 28-03-17 15:23:58, Ilya Dryomov wrote: >> On Tue, Mar 28, 2017 at 2:43 PM, Michal Hocko wrote: >> > On Tue 28-03-17 14:30:45, Greg KH wrote: >> >> 4.4-stable review patch. If anyone has any objections, please let me >> >> know. >> >

Re: linux-next: manual merge of the kvms390 tree with the kvm-mips tree

2017-03-29 Thread James Hogan
On Wed, Mar 29, 2017 at 02:08:32PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the kvms390 tree got a conflict in: > > include/uapi/linux/kvm.h > > between commits: > > a8a3c426772e ("KVM: MIPS: Add VZ & TE capabilities") > 578fd61d2d21 ("KVM: MIPS: Add 64BIT

Re: in_irq_or_nmi()

2017-03-29 Thread Peter Zijlstra
On Wed, Mar 29, 2017 at 10:59:28AM +0200, Jesper Dangaard Brouer wrote: > On Wed, 29 Mar 2017 10:12:19 +0200 > Peter Zijlstra wrote: > > > On Mon, Mar 27, 2017 at 09:58:17AM -0700, Matthew Wilcox wrote: > > > On Mon, Mar 27, 2017 at 05:15:00PM +0200, Jesper Dangaard Brouer wrote: > > > > And I

Re: [PATCH v2] netfilter: Clean up tests if NULL returned on failure

2017-03-29 Thread SIMRAN SINGHAL
On Wed, Mar 29, 2017 at 2:19 PM, SIMRAN SINGHAL wrote: > On Wed, Mar 29, 2017 at 12:25 PM, Jan Engelhardt wrote: >> >> On Tuesday 2017-03-28 18:23, SIMRAN SINGHAL wrote: >>>On Tue, Mar 28, 2017 at 7:24 PM, Jan Engelhardt wrote: On Tuesday 2017-03-28 15:13, simran singhal wrote: >So

Re: CTM and other color related properties

2017-03-29 Thread Ville Syrjälä
On Wed, Mar 29, 2017 at 10:23:54AM +0300, Jyri Sarha wrote: > Referring to this discussion: > https://patchwork.kernel.org/patch/9546905/ > > Since the discussion, has there been any planning/work been done about > the CTM2 API? > > We would need for omap drm (for DSS5 and DSS6) a similar matrix

Re: [PATCH V6 4/7] mfd: da9061: MFD core support

2017-03-29 Thread Geert Uytterhoeven
Hi Lee, On Wed, Mar 29, 2017 at 10:30 AM, Lee Jones wrote: > On Tue, 28 Mar 2017, Geert Uytterhoeven wrote: >> On Tue, Mar 28, 2017 at 12:42 PM, Steve Twiss >> wrote: >> > On 28 March 2017 09:37, Geert Uytterhoeven wrote: >> >> Subject: Re: [PATCH V6 4/7] mfd: da9061: MFD core support >> >> On T

Re: [PATCH v2] serial: 8250_dw: Avoid "too much work" from bogus rx timeout interrupt

2017-03-29 Thread Andy Shevchenko
On Wed, Mar 29, 2017 at 10:58 AM, Olliver Schinagl wrote: > On 07-02-17 00:30, Douglas Anderson wrote: First of all I didn't get why people from Cc list are suddenly disappeared. Check your mail client settings. Returning back some of them. >> It appears that somehow we have a RX Timeout interru

Re: [PATCH 1/5] locking: Introduce range reader/writer lock

2017-03-29 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 09:03:26PM -0800, Davidlohr Bueso wrote: > +/* > + * Implementation of read/write range locks. > + * > + * We keep interval tree of locked and to-be-locked ranges. When new range > lock > + * is requested, we add its interval to the tree and store number of > intervals > +

[PATCH v2] clk: stm32h7: Add stm32h743 clock driver

2017-03-29 Thread gabriel.fernandez
From: Gabriel Fernandez This patch enables clocks for STM32H743 boards. Signed-off-by: Gabriel Fernandez Just for the MFD changes: Acked-by: Lee Jones v2: - rename compatible string "stm32,pll" into "stm32h7-pll" - suppress "st,pllrge" property - suppress "st, frac-status" property -

Re: [PATCH 1/5] locking: Introduce range reader/writer lock

2017-03-29 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 09:03:26PM -0800, Davidlohr Bueso wrote: > +#define RANGE_RWLOCK_INFINITY (~0UL - 1) > +#define DEFINE_RANGE_RWLOCK_INF(name)\ > + struct range_rwlock name = __RANGE_RWLOCK_INITIALIZER(0, > RANGE_RWLOCK_INFINITY) > +void range_rwlock_init_inf(struct r

Re: [PATCH v5 6/9] coresight: add support for CPU debug module

2017-03-29 Thread Suzuki K Poulose
On 29/03/17 04:07, Leo Yan wrote: Hi Suzuki, On Mon, Mar 27, 2017 at 05:34:57PM +0100, Suzuki K Poulose wrote: On 25/03/17 18:23, Leo Yan wrote: [...] Leo, Thanks a lot for the quick rework. I don't fully understand (yet!) why we need the idle_constraint. I will leave it for Sudeep to com

Re: [RFC PATCHv2 00/21] Ion clean in preparation for moving out of staging

2017-03-29 Thread Benjamin Gaignard
2017-03-18 1:54 GMT+01:00 Laura Abbott : > > Hi, > > This is v2 of the series to do some serious Ion clean up in preparation for > moving out of staging. I got good feedback last time so this series mostly > attempts to address that feedback and do more still more cleanup. Highlights: > > - All cal

[PATCH] net: ipv6: Removed unnecessary parenthesis

2017-03-29 Thread Arushi Singhal
Removed parentheses on the right hand side of assignment, as they are not required. The following coccinelle script was used to fix this issue: @@ local idexpression id; expression e; @@ id = -( e -) Signed-off-by: Arushi Singhal --- net/ipv6/netfilter/nf_conntrack_reasm.c | 4 ++-- 1 file cha

Re: in_irq_or_nmi()

2017-03-29 Thread Jesper Dangaard Brouer
On Wed, 29 Mar 2017 10:12:19 +0200 Peter Zijlstra wrote: > On Mon, Mar 27, 2017 at 09:58:17AM -0700, Matthew Wilcox wrote: > > On Mon, Mar 27, 2017 at 05:15:00PM +0200, Jesper Dangaard Brouer wrote: > > > And I also verified it worked: > > > > > > 0.63 │ mov__preempt_count,%eax > >

Re: linux-next: manual merge of the xen-tip tree with the tip tree

2017-03-29 Thread Ingo Molnar
* Juergen Gross wrote: > On 29/03/17 05:35, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the xen-tip tree got a conflict in: > > > > arch/x86/xen/enlighten.c > > > > between commits: > > > > 6415813bae75 ("x86/cpu: Drop wp_works_ok member of struct cpuinfo_x86"

Re: [PATCH 1/5] locking: Introduce range reader/writer lock

2017-03-29 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 09:03:26PM -0800, Davidlohr Bueso wrote: > +++ b/kernel/locking/range_rwlock.c > @@ -0,0 +1,462 @@ > +/* > + * Implementation of read/write range locks. > + * > + * We keep interval tree of locked and to-be-locked ranges. When new range > lock > + * is requested, we add its

Re: [PATCH v5 1/4] gcc-plugins: Add the initify gcc plugin

2017-03-29 Thread Arnd Bergmann
And here is a workaround that I applied locally to avoid the ICE, but I wouldn't want to have this upstream. commit 8712fd8979a5730318a84922fbcb8791ea5af40e Author: Arnd Bergmann Date: Wed Mar 29 10:53:48 2017 +0200 work around initify ICE arch/arm/mach-mv78xx0/common.i: In function '

Re: [PATCH 1/5] locking: Introduce range reader/writer lock

2017-03-29 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 09:03:26PM -0800, Davidlohr Bueso wrote: > diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig > index 88e01e08e279..e4d9eadd2c47 100644 > --- a/drivers/gpu/drm/Kconfig > +++ b/drivers/gpu/drm/Kconfig > @@ -154,7 +154,6 @@ config DRM_RADEON > select HWMON >

Re: [PATCH v4] perf annotate: Fix missing number of samples for source_line_samples

2017-03-29 Thread Taeung Song
Arnaldo, I think we had a little communication problem. So would you mind if I finally sum up this situation ? Currently there are the two calculation setting for 'number of samples'. (At util/annotate.c, not TUI code ui/browsers/annotate.c) A) disasm__calc_percent() -> util/annotate.c:881~

[PATCH net-next v2] net: mvneta: set rx mode during resume if interface is running

2017-03-29 Thread Jisheng Zhang
I found a bug by: 0. boot and start dhcp client 1. echo mem > /sys/power/state 2. resume back immediately 3. don't touch dhcp client to renew the lease 4. ping the gateway. No acks Usually, after step2, the DHCP lease isn't expired, so in theory we should resume all back. But in fact, it doesn't.

Re: [PATCH -mm -v7 0/9] THP swap: Delay splitting THP during swapping out

2017-03-29 Thread Huang, Ying
Hi, Andrew, Andrew Morton writes: > On Tue, 28 Mar 2017 13:32:00 +0800 "Huang, Ying" wrote: > >> Hi, Andrew, could you help me to check whether the overall design is >> reasonable? >> >> Hi, Hugh, Shaohua, Minchan and Rik, could you help me to review the >> swap part of the patchset? Especial

Re: [PATCH] iio/adc/ltc2497: Driver for Linear Technology LTC2497 ADC

2017-03-29 Thread Michael Hennerich
On 23.03.2017 12:05, Lars-Peter Clausen wrote: Sorry - I missed some of this review feedback ... + +static int ltc2497_wait_conv(struct ltc2497_st *st) +{ + s64 time_elapsed; + + time_elapsed = ktime_ms_delta(ktime_get(), st->time_prev); + + if (time_elapsed < LTC2497_CONVERSI

Re: [PATCH v2] netfilter: Clean up tests if NULL returned on failure

2017-03-29 Thread SIMRAN SINGHAL
On Wed, Mar 29, 2017 at 12:25 PM, Jan Engelhardt wrote: > > On Tuesday 2017-03-28 18:23, SIMRAN SINGHAL wrote: >>On Tue, Mar 28, 2017 at 7:24 PM, Jan Engelhardt wrote: >>> On Tuesday 2017-03-28 15:13, simran singhal wrote: >>> Some functions like kmalloc/kzalloc return NULL on failure. When N

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-29 Thread Benjamin Tissoires
On Mar 28 2017 or thereabouts, Andrew Duggan wrote: > On 03/19/2017 10:00 PM, Peter Hutterer wrote: > > On Fri, Mar 17, 2017 at 12:23:36PM -0700, Andrew Duggan wrote: > > > On 03/17/2017 09:57 AM, Benjamin Tissoires wrote: > > > > On Wed, Mar 15, 2017 at 2:19 AM, Andrew Duggan > > > > wrote: > >

Re: [PATCH linux-next v2 0/4] usb: gadget: udc: atmel: Endpoint allocation scheme fixes

2017-03-29 Thread Nicolas Ferre
Le 28/03/2017 à 18:07, cristian.bir...@microchip.com a écrit : > From: Cristian Birsan > > This patch series provides fixes, based on the feedback received on the > mailing list, for > the following: > - fifo table parameters validation against device tree values > - coding style >

Re: [RFC PATCHv2 02/21] cma: Introduce cma_for_each_area

2017-03-29 Thread Benjamin Gaignard
2017-03-18 1:54 GMT+01:00 Laura Abbott : > > Frameworks (e.g. Ion) may want to iterate over each possible CMA area to > allow for enumeration. Introduce a function to allow a callback. even outside ION rework that could be useful Reviewed-by: Benjamin Gaignard > > Signed-off-by: Laura Abbott >

[PATCH net-next] net: mvneta: add RGMII_RXID and RGMII_TXID support

2017-03-29 Thread Jisheng Zhang
RGMII_RXID and RGMII_TX_ID share the same GMAC CTRL setting as RGMII or RGMII_ID. Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index aebb

[REPOST PATCH] ARM: dts: imx6qp-nitrogen6_som2: add Quad Plus variant of the SOM

2017-03-29 Thread Gary Bisson
https://boundarydevices.com/product/nit6x-som-v2/ Reviewed-by: Fabio Estevam Signed-off-by: Gary Bisson --- Hi, This is just a re-post to LAKML as suggested by Shawn [1]. Also include the Review tag from Fabio [2]. Regards, Gary [1] http://www.spinics.net/lists/devicetree/msg170732.html [2]

Re: [PATCH v6 02/39] [media] dt-bindings: Add bindings for i.MX media driver

2017-03-29 Thread Russell King - ARM Linux
On Tue, Mar 28, 2017 at 07:21:34PM -0500, Rob Herring wrote: > On Mon, Mar 27, 2017 at 7:40 PM, Steve Longerbeam > wrote: > > Add bindings documentation for the i.MX media driver. > > > > Signed-off-by: Steve Longerbeam > > --- > > Documentation/devicetree/bindings/media/imx.txt | 74 > > +

[PATCH] net: ipv6: netfilter: Format block comments.

2017-03-29 Thread Arushi Singhal
Fix checkpatch warnings: WARNING: Block comments use a trailing */ on a separate line WARNING: Block comments use * on subsequent lines Signed-off-by: Arushi Singhal --- net/ipv6/netfilter/ip6_tables.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/net/ipv6/

Re: [PATCH 1/5] locking: Introduce range reader/writer lock

2017-03-29 Thread Laurent Dufour
On 28/03/2017 18:58, Kirill A. Shutemov wrote: > On Tue, Mar 28, 2017 at 09:39:18AM -0700, Davidlohr Bueso wrote: >> I'll wait to see if there are any more concerns and send a v2 with your >> corrections. > > Have you tried drop-in replacement of mmap_sem with full range lock? > It would be inter

Re: linux-next: manual merge of the xen-tip tree with the tip tree

2017-03-29 Thread Juergen Gross
On 29/03/17 05:35, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the xen-tip tree got a conflict in: > > arch/x86/xen/enlighten.c > > between commits: > > 6415813bae75 ("x86/cpu: Drop wp_works_ok member of struct cpuinfo_x86") > 69218e47994d ("x86: Remap GDT tables in

Re: [PATCH v5 1/4] gcc-plugins: Add the initify gcc plugin

2017-03-29 Thread Arnd Bergmann
Here is a reduced test case for one assertion failure I get with the initify plugin: 8< typedef unsigned int u32; __attribute__ ((format(printf, 1, 2))) __attribute__ ((__cold__)) int printk(const char *fmt, ...); void mv78xx0_pcie_id(u32 * dev, u32 * rev); static char * __attribute

Re: [PATCH 3/4] selftests: ftrace: Add -l/--logdir option

2017-03-29 Thread Masami Hiramatsu
On Wed, 29 Mar 2017 10:46:24 +0900 Namhyung Kim wrote: > In my virtual machine setup, running ftracetest failed on creating > LOG_DIR on a read-only filesystem. It'd be convenient to provide an > option to specify a different directory as log directory. > Looks good to me :) Acked-by: Masami

Re: [PATCH V6 4/7] mfd: da9061: MFD core support

2017-03-29 Thread Lee Jones
On Tue, 28 Mar 2017, Geert Uytterhoeven wrote: > Hi Steve, > > On Tue, Mar 28, 2017 at 12:42 PM, Steve Twiss > wrote: > > On 28 March 2017 09:37, Geert Uytterhoeven wrote: > >> Subject: Re: [PATCH V6 4/7] mfd: da9061: MFD core support > >> On Tue, Mar 28, 2017 at 10:21 AM, Lee Jones wrote: > >>

Re: [alsa-devel] [PATCH v2 6/8] regulator: arizona-micbias: Add regulator driver for Arizona micbiases

2017-03-29 Thread Charles Keepax
improve the system] > > url: > https://github.com/0day-ci/linux/commits/Charles-Keepax/regulator-arizona-micsupp-Avoid-potential-memory-leak-reading-init_data/20170329-112224 > base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git > for-next > config: i386

Re: [RFC PATCH tip/master 2/3] kprobes: Allocate kretprobe instance if its free list is empty

2017-03-29 Thread Masami Hiramatsu
On Wed, 29 Mar 2017 08:30:05 +0200 Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > > > @@ -1824,6 +1823,30 @@ void unregister_jprobes(struct jprobe **jps, int num) > > EXPORT_SYMBOL_GPL(unregister_jprobes); > > > > #ifdef CONFIG_KRETPROBES > > + > > +/* Try to use free instance first, if

Re: [PATCH v8 3/3] ARM: dts: imx6q-icore: Add touchscreen node

2017-03-29 Thread Shawn Guo
On Thu, Mar 23, 2017 at 12:35:18AM +0530, Jagan Teki wrote: > From: Jagan Teki > > max11801 touchscreen on Engicam iCoreM6 Quad module is > connected via i2c1, so add max11801: touchscreen@48 on i2c1. > > Cc: Dmitry Torokhov > Cc: Domenico Acri > Cc: Matteo Lisi > Cc: Michael Trimarchi > Cc:

Re: [PATCH 4/8] asm-generic: add atomic-instrumented.h

2017-03-29 Thread Dmitry Vyukov
On Tue, Mar 28, 2017 at 11:35 PM, Matthew Wilcox wrote: > On Tue, Mar 28, 2017 at 06:15:41PM +0200, Dmitry Vyukov wrote: >> The new header allows to wrap per-arch atomic operations >> and add common functionality to all of them. > > Why a new header instead of putting this in linux/atomic.h? Onl

Re: [PATCH v3 0/7] ARM: Fix dma_alloc_coherent() and friends for NOMMU

2017-03-29 Thread Vladimir Murzin
Ping! On 23/03/17 09:26, Vladimir Murzin wrote: > On 22/03/17 12:23, Szemző András wrote: >> I’ve tested this v3 version on my Atmel armv7m board with several drivers >> with DMA and enabled caches, >> and I’ve not seen any issues. >> >> You can add my Tested-by. > > Much appreciated! > > Russ

Re: [PATCH] reset: uniphier: add NAND and eMMC reset control

2017-03-29 Thread Philipp Zabel
On Tue, 2017-03-28 at 17:40 +0900, Masahiro Yamada wrote: > Add reset lines for the Denali NAND controller on all UniPhier SoCs, > for the Cadence eMMC controller on LD11/LD20 SoCs. > > Signed-off-by: Masahiro Yamada > --- > > Philipp, > > Sorry for sending this in the last minute. > If it is n

Re: in_irq_or_nmi()

2017-03-29 Thread Peter Zijlstra
On Mon, Mar 27, 2017 at 09:58:17AM -0700, Matthew Wilcox wrote: > On Mon, Mar 27, 2017 at 05:15:00PM +0200, Jesper Dangaard Brouer wrote: > > And I also verified it worked: > > > > 0.63 │ mov__preempt_count,%eax > >│ free_hot_cold_page(): > > 1.25 │ test $0x1f

Re: [PATCH] auxdisplay: ht16k33: use le16_to_cpup() to fetch LE16 data

2017-03-29 Thread Robin van der Gracht
On Wed, 29 Mar 2017 00:42:08 -0700 Dmitry Torokhov wrote: > The data read from the device is 3 little-endian words, so let's annotate > them as such and use le16_to_cpu() to convert them to host endianness - it > might turn out to be a bit more performant, and it expresses the conversion > more c

Re: [PATCH 1/2] dt-bindings: Document the STM32 MDMA bindings

2017-03-29 Thread M'boumba Cedric Madianga
Hi Rob, > stm32 is not a specific SoC. Compatible strings should be specific to > an SoC (with fallback strings to whatever they are compatible with) so > you can handle SoC specific differences or errata. Ok I see. I will add a more specific SoC description in my compatible. Thanks. > I still

Re: [RESEND PATCH 2/2] sched/fair: Optimize __update_sched_avg()

2017-03-29 Thread Yuyang Du
Hi Peter, On Tue, Mar 28, 2017 at 04:46:25PM +0200, Peter Zijlstra wrote: > On Mon, Feb 13, 2017 at 05:44:23AM +0800, Yuyang Du wrote: > > __update_load_avg() has the following steps: > > > > 1. add the remainder of the last incomplete period > > 2. decay old sum > > 3. accumulate new sum i

Re: [PATCH 4.9 75/88] libceph: force GFP_NOIO for socket allocations

2017-03-29 Thread Michal Hocko
On Tue 28-03-17 14:31:30, Greg KH wrote: > 4.9-stable review patch. If anyone has any objections, please let me know. Greg, please hold on with this backport. I would like to get http://lkml.kernel.org/r/20170328124312.ge18...@dhcp22.suse.cz resolved. So far I believe the patch is simply not need

Re: [PATCH 4.10 094/111] libceph: force GFP_NOIO for socket allocations

2017-03-29 Thread Michal Hocko
On Tue 28-03-17 14:31:20, Greg KH wrote: > 4.10-stable review patch. If anyone has any objections, please let me know. Greg, please hold on with this backport. I would like to get http://lkml.kernel.org/r/20170328124312.ge18...@dhcp22.suse.cz resolved. So far I believe the patch is simply not nee

Re: [PATCH] auxdisplay: ht16k33: don't access uninitialized data

2017-03-29 Thread Robin van der Gracht
On Tue, 28 Mar 2017 12:11:49 +0200 Arnd Bergmann wrote: > gcc-7.0.1 points out that we copy uninitialized data from the stack > into a per-device structure: > > drivers/auxdisplay/ht16k33.c: In function 'ht16k33_keypad_irq_thread': > arch/x86/include/asm/string_32.h:78:16: error: 'new_state' may

Re: [RESEND PATCH 2/2] sched/fair: Optimize __update_sched_avg()

2017-03-29 Thread Yuyang Du
On Tue, Mar 28, 2017 at 02:50:22PM +0200, Peter Zijlstra wrote: > This Changelog being so impenetrable is what makes me skip over it; > I'll put it on the 'look-at-later' pile, and that just never happens :/ Very understandable, but thank you. I hope I can write the changelog better. :)

Re: [PATCH] mm,hugetlb: compute page_size_log properly

2017-03-29 Thread Michal Hocko
On Tue 28-03-17 10:54:08, Matthew Wilcox wrote: > On Tue, Mar 28, 2017 at 09:55:13AM -0700, Davidlohr Bueso wrote: > > Do we have any consensus here? Keeping SHM_HUGE_* is currently > > winning 2-1. If there are in fact users out there computing the > > value manually, then I am ok with keeping it

Re: [PATCH v2] module: check if memory leak by module.

2017-03-29 Thread Miroslav Benes
On Wed, 29 Mar 2017, Michal Hocko wrote: > On Wed 29-03-17 11:32:02, Maninder Singh wrote: > > This patch checks if any module which is going to be unloaded > > is doing vmalloc memory leak or not. > > Hmm, how can you track _all_ vmalloc allocations done on behalf of the > module? It is quite so

Re: [PATCH v3 3/9] arm: fix return value of parse_cpu_capacity

2017-03-29 Thread Juri Lelli
On 29/03/17 09:37, Vincent Guittot wrote: > On 27 March 2017 at 15:18, Juri Lelli wrote: > > parse_cpu_capacity() has to return 0 on failure, but it currently returns > > 1 instead if raw_capacity kcalloc failed. > > > > Fix it by removing the negation of the return value. > > > > Cc: Russell King

Re: [PATCH] sched/fair: update scale invariance of PELT

2017-03-29 Thread Vincent Guittot
On 28 March 2017 at 17:35, Vincent Guittot wrote: > The current implementation of load tracking invariance scales the contribution > with current frequency and uarch performance (only for utilization) of the > CPU. One main result of this formula is that the figures are capped by current > capacit

Re: [PATCHv4] mfd: cpcap: implement irq sense helper

2017-03-29 Thread Lee Jones
On Tue, 28 Mar 2017, Sebastian Reichel wrote: > Hi Lee, > > On Tue, Mar 28, 2017 at 11:27:16AM +0100, Lee Jones wrote: > > > +int cpcap_sense_virq(struct regmap *regmap, int virq) > > > +{ > > > + struct regmap_irq_chip_data *d = irq_get_chip_data(virq); > > > + int base = regmap_irq_chip_get_bas

Re: [PATCH v3 05/11] Documentation: DT: bindings: input: touschcreen: remove sun4i documentation

2017-03-29 Thread Lee Jones
On Tue, 21 Mar 2017, Quentin Schulz wrote: > This patch removes the sun4i touchscreen controller binding > documentation since it has been merged with the sun4i GPADC binding > documentation. > > Signed-off-by: Quentin Schulz > Acked-by: Rob Herring > --- > > added in v2 > > .../bindings/inp

Re: [PATCH v2] serial: 8250_dw: Avoid "too much work" from bogus rx timeout interrupt

2017-03-29 Thread Olliver Schinagl
Hey Douglas, On 07-02-17 00:30, Douglas Anderson wrote: On a Rockchip rk3399-based board during suspend/resume testing, we found that we could get the console UART into a state where it would print this to the console a lot: serial8250: too much work for irq42 Followed eventually by: NMI wa

Re: [RFC]mm/zsmalloc,: trigger BUG_ON in function zs_map_object.

2017-03-29 Thread Yisheng Xie
Hi Sergey, Thanks for your comment! On 2017/3/29 14:42, Sergey Senozhatsky wrote: > On (03/29/17 09:20), Minchan Kim wrote: >> Hello, >> >> On Tue, Mar 28, 2017 at 03:20:22PM +0800, Yisheng Xie wrote: >>> Hi, all, >>> >>> We had backport the no-lru migration to linux-4.1, meanwhile change the >>>

Re: [RFC PATCH 2/3] iio: adc: sun4i-gpadc-iio: add support for H3 thermal sensor

2017-03-29 Thread Lee Jones
On Wed, 29 Mar 2017, Icenowy Zheng wrote: > > 2017年3月29日 14:54于 Quentin Schulz 写道: > > > > Hi, > > > > On 28/03/2017 19:30, Icenowy Zheng wrote: > > > This adds support for the Allwinner H3 thermal sensor. > > > > > > Allwinner H3 has a thermal sensor like the one in A33, but have its > > >

Re: [PATCH v3 2/3] irqchip: mtk-cirq: Add mediatek mtk-cirq implement

2017-03-29 Thread Mars Cheng
Hi Marc comments inline On Fri, 2017-03-24 at 16:22 +, Marc Zyngier wrote: > On 14/02/17 02:56, Youlin Pei wrote: > > In Mediatek SOCs, the CIRQ is a low power interrupt controller > > designed to works outside MCUSYS which comprises with Cortex-Ax > > cores,CCI and GIC. > > > > The CIRQ con

Re: [RFC]mm/zsmalloc,: trigger BUG_ON in function zs_map_object.

2017-03-29 Thread Yisheng Xie
Hi Minchan, Thanks for your comment! On 2017/3/29 8:20, Minchan Kim wrote: > Hello, > > On Tue, Mar 28, 2017 at 03:20:22PM +0800, Yisheng Xie wrote: >> Hi, all, >> >> We had backport the no-lru migration to linux-4.1, meanwhile change the >> ZS_MAX_ZSPAGE_ORDER to 3. Then we met a BUG_ON(!page[1]

<    5   6   7   8   9   10   11   >