[PATCH v3 6/9] ARM: dts: imx6dl-icore: Add LVDS support

2017-04-06 Thread Jagan Teki
From: Jagan Teki Add LVDS display support for OpenFrame Capacitive touch 7 inc display which is supported by Engicam i.CoreM6 DualLite/Solo Starter Kit. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v3,v2: - none arch/arm/boot/dts/imx6dl-icor

[PATCH v3 2/9] ARM: dts: imx6ul-geam: Add Sound card with codec node

2017-04-06 Thread Jagan Teki
From: Jagan Teki Add support for Sound card and related codec(via i2c1) nodes on Engicam GEAM6UL variant module boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v3: - Replace fsl,imx-audio-sgtl5000 and use simple-audio-card Changes for v2:

[PATCH v3 3/9] ARM: dts: imx6qdl-icore: Add Sound card with codec node

2017-04-06 Thread Jagan Teki
From: Jagan Teki Add support for Sound card and related codec(via i2c1) nodes on below Engicam module boards. - i.CoreM6 DualLite/Solo Starter kit - i.CoreM6 Quad/Dual Starter kit - i.CoreM6 Quad/Dual OpenFrame Cap touch 10.1 - i.CoreM6 Quad/Dual OpenFrame Cap touch 12.3 Cc: Shawn Guo Cc: Matte

[PATCH v3 8/9] ARM: dts: imx6qdl-icore-rqs: Add CAN nodes

2017-04-06 Thread Jagan Teki
From: Jagan Teki Add support for can1 and can2 nodes on Engicam i.CoreM6 RQS QDL module boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v3: - none Changes for v2: - s/flexcan/can - s/pinctrl_flexcan/pinctrl_can arch/arm/boot/dts/imx6dl-

[PATCH v3 9/9] ARM: dts: imx6ul-isiot: Add FEC node support

2017-04-06 Thread Jagan Teki
From: Jagan Teki Add support for fec1 node on Engicam Is.IoT variant boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v3: - none Changes for v2: - Newly added patch arch/arm/boot/dts/imx6ul-isiot.dtsi | 33 +++

[PATCH v3 5/9] ARM: dts: imx6qdl-icore-rqs: Replace to use simple-audio-card

2017-04-06 Thread Jagan Teki
From: Jagan Teki This patch replace fsl,imx-audio-sgtl5000 and use simple-audio-card for Engicam i.CoreM6 RQS QDL platform boards. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v3: - Newly added patch arch/arm/boot/dts/imx6qdl-icore-rqs.dtsi

[PATCH v3 7/9] ARM: dts: imx6dl-icore: Add touchscreen node

2017-04-06 Thread Jagan Teki
From: Jagan Teki max11801 touchscreen on Engicam iCoreM6 DualLite/Solo module is connected via i2c1, so add max11801: touchscreen@48 on i2c1. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v3,v2: - none arch/arm/boot/dts/imx6dl-icore.dts | 9 +

Re: [PATCH 1/4] ftrace: Add use of synchronize_rcu_tasks() with dynamic trampolines

2017-04-06 Thread Paul E. McKenney
On Thu, Apr 06, 2017 at 12:42:38PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The function tracer needs to be more careful than other subsystems when it > comes to freeing data. Especially if that data is actually executable code. > When a single function is traced, a tram

Re: [PATCH v23 09/11] acpi/arm64: Add memory-mapped timer support in GTDT driver

2017-04-06 Thread Fu Wei
Hi Mark, On 7 April 2017 at 01:52, Mark Rutland wrote: > On Fri, Apr 07, 2017 at 01:39:09AM +0800, Fu Wei wrote: >> On 7 April 2017 at 01:24, Mark Rutland wrote: >> > On Fri, Apr 07, 2017 at 12:47:47AM +0800, Fu Wei wrote: >> >> On 6 April 2017 at 02:38, Mark Rutland wrote: >> >> > On Sat, Apr

Re: [PATCH 3/4] tracing: Add stack_tracer_disable/enable() functions

2017-04-06 Thread Paul E. McKenney
On Thu, Apr 06, 2017 at 12:42:40PM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > There are certain parts of the kernel that can not let stack tracing > proceed (namely in RCU), because the stack tracer uses RCU, and parts of RCU > internals can not handle having RCU read side

Re: N900 failure in next-20170321

2017-04-06 Thread Pavel Machek
On Tue 2017-03-21 08:38:52, Tony Lindgren wrote: > * Pavel Machek [170321 06:59]: > > Hi! > > > > Tony asked me to test linux-next from time to time. I did... today I > > moved from next-20170309 to next-20170321. Kernel boots and seems to > > work fine (including audio and X startup), but if I l

Re: [PATCH 1/4] ftrace: Add use of synchronize_rcu_tasks() with dynamic trampolines

2017-04-06 Thread Steven Rostedt
On Thu, 6 Apr 2017 11:05:53 -0700 "Paul E. McKenney" wrote: > On Thu, Apr 06, 2017 at 12:42:38PM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > > > The function tracer needs to be more careful than other subsystems when it > > comes to freeing data. Especially if that data

Re: [PATCH 4.4 23/26] power: reset: at91-poweroff: timely shutdown LPDDR memories

2017-04-06 Thread Alexandre Belloni
On 06/04/2017 at 18:45:39 +0100, Ben Hutchings wrote: > On Thu, 2017-04-06 at 10:38 +0200, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Alexandre Belloni > > > > commit 0b0408745e7ff24757cbfd57

Re: [PATCH 4.4 25/26] blk: Ensure users for current->bio_list can see the full list.

2017-04-06 Thread Ben Hutchings
On Thu, 2017-04-06 at 10:38 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch. If anyone has any objections, please let me know. > > -- > > From: NeilBrown > > commit f5fe1b51905df7cfe4fdfd85c5fb7bc5b71a094f upstream. > > Commit 79bd99596b73 ("blk: improve order of bi

Re: [PATCH v3] regulator: Add driver for voltage controlled regulators

2017-04-06 Thread Mark Brown
On Fri, Mar 31, 2017 at 01:50:35PM -0700, Matthias Kaehlcke wrote: > +- compatible : must be "vctrl-regulator". > +- regulator-min-microvolt : smallest voltage consumers may set > +- regulator-max-microvolt : largest voltage consumers may set > +- ctrl-regulator: : the name of the r

Re: [Patch V2 2/2] x86/mm/numa: remove the numa_nodemask_from_meminfo()

2017-04-06 Thread Kirill A. Shutemov
On Thu, Apr 06, 2017 at 08:01:13PM +0200, Borislav Petkov wrote: > On Thu, Apr 06, 2017 at 06:42:16PM +0300, Kirill A. Shutemov wrote: > > Config is attached. > > Thanks! > > > Looks like fake numa is the key. > > ... > > > NUMA: Warning: node ids are out of bound, from=0 to=1 distance=20

Re: [PATCH 4.4 23/26] power: reset: at91-poweroff: timely shutdown LPDDR memories

2017-04-06 Thread Ben Hutchings
On Thu, 2017-04-06 at 20:13 +0200, Alexandre Belloni wrote: > On 06/04/2017 at 18:45:39 +0100, Ben Hutchings wrote: > > On Thu, 2017-04-06 at 10:38 +0200, Greg Kroah-Hartman wrote: > > > 4.4-stable review patch. If anyone has any objections, please let me > > > know. > > > > > >

Re: [tpmdd-devel] Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot

2017-04-06 Thread Paul Menzel
On 2017-04-06 18:55, Jason Gunthorpe wrote: On Thu, Apr 06, 2017 at 08:18:33AM +0200, Paul Menzel wrote: Indeed, that improves the situation. I still need to pass `force=1` to the module to get `/dev/tpm0`. No idea, why it’s not in included in Linux 4.9 yet. Fair point.. Jarkko - could you

Re: [PATCH v2] fault-inject: support systematic fault injection

2017-04-06 Thread Michal Hocko
[Let's add linux-api - please always cc this list when adding/modifying user visible interfaces] On Tue 28-03-17 15:01:28, Dmitry Vyukov wrote: > Add /proc/self/task//fail-nth file that allows failing > 0-th, 1-st, 2-nd and so on calls systematically. > Excerpt from the added documentation: I did

Re: [PATCH v2 5/6] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-04-06 Thread Kim Phillips
On Thu, 6 Apr 2017 17:18:15 +0100 Will Deacon wrote: Hi Will, > +/* Perf callbacks */ > +static int arm_spe_pmu_event_init(struct perf_event *event) > +{ > + u64 reg; > + struct perf_event_attr *attr = &event->attr; > + struct arm_spe_pmu *spe_pmu = to_spe_pmu(event->pmu); > + > +

Re: [PATCH v3 02/19] HID: logitech-hidpp: Add scope to battery

2017-04-06 Thread Jiri Kosina
On Thu, 6 Apr 2017, Benjamin Tissoires wrote: > > > Without a scope defined, UPower assumes that the battery provides > > > power to the computer it's connected to, like a laptop battery or a UPS. > > > > > > Tested-by: Peter Hutterer > > > Signed-off-by: Bastien Nocera > > > Signed-off-by: Ben

Re: [PATCH] HID: sony: remove redundant check for -ve err

2017-04-06 Thread Jiri Kosina
On Mon, 27 Mar 2017, Colin King wrote: > From: Colin Ian King > > err is being checked for failure each time it is being updated > so this err check is totally redundant and can be removed > > Detected with CoverityScan, CID#1420665 ("Logically dead code") > > Signed-off-by: Colin Ian King A

Re: [PATCH] of: change fixup of dma-ranges size to error

2017-04-06 Thread Frank Rowand
On 04/06/17 07:03, Rob Herring wrote: > On Thu, Apr 6, 2017 at 1:18 AM, wrote: >> From: Frank Rowand >> >> of_dma_get_range() has workaround code to fixup a device tree that >> incorrectly specified a mask instead of a size for property >> dma-ranges. That device tree was fixed a year ago in v4

Re: ktest help

2017-04-06 Thread Timur Tabi
On 04/06/2017 12:05 PM, Steven Rostedt wrote: >> > Is there a way I can send a "boot" command after ktest connects to the >> > console? >> > > Not currently, but that is something I've been wanting to add for some > time. So are you saying that ktest depends on the target booting from power-on a

Hallo,

2017-04-06 Thread cullenkath204
Hallo, Mein Name ist Brinda Khaled, ich werde gerne mehr über dich wissen, ich möchte nur meine Ansicht mit dir teilen, wenn es dir nichts ausmacht. Ich werde mehr erzählen, wenn ich von dir antworte. Danke und ich warte auf deine Antwort. Brinda

Re: [PATCH v2 5/6] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-04-06 Thread Mark Rutland
On Thu, Apr 06, 2017 at 07:33:07PM +0100, Kim Phillips wrote: > On Thu, 6 Apr 2017 17:18:15 +0100 > Will Deacon wrote: > > Hi Will, > > > +/* Perf callbacks */ > > +static int arm_spe_pmu_event_init(struct perf_event *event) > > +{ > > + u64 reg; > > + struct perf_event_attr *attr = &event->

Re: [PATCH V10 00/12] IOMMU probe deferral support

2017-04-06 Thread Frank Rowand
On 04/04/17 18:23, Rob Herring wrote: > On Tue, Apr 4, 2017 at 5:18 AM, Sricharan R wrote: >> This series calls the dma ops configuration for the devices >> at a generic place so that it works for all busses. >> The dma_configure_ops for a device is now called during >> the device_attach callback

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-06 Thread Dmitry Safonov
Hi Kirill, On 04/06/2017 05:01 PM, Kirill A. Shutemov wrote: On x86, 5-level paging enables 56-bit userspace virtual address space. Not all user space is ready to handle wide addresses. It's known that at least some JIT compilers use higher bits in pointers to encode their information. It collid

Re: [PATCH 3/4] tracing: Add stack_tracer_disable/enable() functions

2017-04-06 Thread Steven Rostedt
On Thu, 6 Apr 2017 11:12:22 -0700 "Paul E. McKenney" wrote: > On Thu, Apr 06, 2017 at 12:42:40PM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > > > There are certain parts of the kernel that can not let stack tracing > > proceed (namely in RCU), because the stack tracer us

Re: [Patch V2 2/2] x86/mm/numa: remove the numa_nodemask_from_meminfo()

2017-04-06 Thread Borislav Petkov
On Thu, Apr 06, 2017 at 09:21:47PM +0300, Kirill A. Shutemov wrote: > > Long story short, something as trivial as this helps here: > > Yep. Works for me. > > Reported-and-tested-by: Kirill A. Shutemov Thanks. Now, I'd really like to have more test coverage and be sure this "cleanup" doesn't br

Re: ktest help

2017-04-06 Thread Steven Rostedt
On Thu, 6 Apr 2017 13:39:00 -0500 Timur Tabi wrote: > On 04/06/2017 12:05 PM, Steven Rostedt wrote: > >> > Is there a way I can send a "boot" command after ktest connects to the > >> > console? > >> > > > Not currently, but that is something I've been wanting to add for some > > time. > >

Re: Is it safe for kthreadd to drain_all_pages?

2017-04-06 Thread Hugh Dickins
On Thu, 6 Apr 2017, Mel Gorman wrote: > On Wed, Apr 05, 2017 at 01:59:49PM -0700, Hugh Dickins wrote: > > Hi Mel, > > > > I suspect that it's not safe for kthreadd to drain_all_pages(); > > but I haven't studied flush_work() etc, so don't really know what > > I'm talking about: hoping that you wil

Re: [RFC 4/8] regulator: core: Check enabling bypass respects constraints

2017-04-06 Thread Mark Brown
On Tue, Mar 28, 2017 at 10:49:55PM +0300, Leonard Crestez wrote: > On Tue, 2017-03-28 at 17:47 +0100, Mark Brown wrote: > > To repeat what I said previously the whole point of bypassing is to not > > do regulation and generally the constraints in the unregulated idle case > > are substantially mor

Re: ktest help

2017-04-06 Thread Timur Tabi
On 04/06/2017 01:50 PM, Steven Rostedt wrote: > Currently yes, but it shouldn't be hard to add a hook to intervene. I > just haven't had something that required it yet. If I understood Perl, I would add the feature myself. -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Tec

Applied "regulator: helpers: Add regmap set_pull_down helper" to the regulator tree

2017-04-06 Thread Mark Brown
The patch regulator: helpers: Add regmap set_pull_down helper 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 hours

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

2017-04-06 Thread Laszlo Ersek
On 04/06/17 14:35, gengdongjiu wrote: > Dear, Laszlo >Thanks for your detailed explanation. > > On 2017/3/29 19:58, Laszlo Ersek wrote: >> (This ought to be one of the longest address lists I've ever seen :) >> Thanks for the CC. I'm glad Shannon is already on the CC list. For good >> measure,

Applied "ASoC: codec: wm8960: Stop when a matching PLL freq is found" to the asoc tree

2017-04-06 Thread Mark Brown
The patch ASoC: codec: wm8960: Stop when a matching PLL freq is found has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "ASoC: Add support for Maxim Integrated MAX98927 Amplifier" to the asoc tree

2017-04-06 Thread Mark Brown
The patch ASoC: Add support for Maxim Integrated MAX98927 Amplifier has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

Applied "regulator: helpers: Add regmap set_soft_start helper" to the regulator tree

2017-04-06 Thread Mark Brown
The patch regulator: helpers: Add regmap set_soft_start helper 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 hour

[PATCH] mac80211: Fix clang warning about constant operand in logical operation

2017-04-06 Thread Matthias Kaehlcke
Clang raises a warning about the expression 'strlen(CONFIG_XXX)' being used in a logical operation. Clangs' builtin strlen function resolves the expression to a constant at compile time, which causes clang to generate a 'constant-logical-operand' warning. Split the if statement in two to avoid usi

Re: [PATCH v4 2/2] iio: Aspeed ADC

2017-04-06 Thread Rick Altherr
On Wed, Apr 5, 2017 at 6:10 PM, Stephen Boyd wrote: > On 04/05, Rick Altherr wrote: >> On Wed, Apr 5, 2017 at 1:27 PM, Stephen Boyd wrote: >> > On 03/23, Rick Altherr wrote: >> >> + >> >> +static int aspeed_adc_probe(struct platform_device *pdev) >> >> +{ >> >> + struct iio_dev *indio_dev; >>

[PATCH] scsi: sd: fix warning on min_not_zero use

2017-04-06 Thread Jérémy Lefaure
When calling min_not_zero, both arguments should have the same type. Otherwise the compiler will raise a warning: CC drivers/scsi/sd.o In file included from ./include/linux/list.h:8:0, from ./include/linux/module.h:9, from drivers/scsi/sd.c:35: drivers/scsi

Re: [tpmdd-devel] Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot

2017-04-06 Thread Jarkko Sakkinen
On Thu, Apr 06, 2017 at 10:55:57AM -0600, Jason Gunthorpe wrote: > On Thu, Apr 06, 2017 at 08:18:33AM +0200, Paul Menzel wrote: > > > Indeed, that improves the situation. I still need to pass `force=1` to the > > module to get `/dev/tpm0`. No idea, why it’s not in included in Linux 4.9 > > yet. >

Re: [PATCH v2] Extend pca9532 device tree support

2017-04-06 Thread Jacek Anaszewski
Hi Pavel, On 04/06/2017 05:50 PM, Pavel Machek wrote: > Hi! > >>> diff --git a/Documentation/devicetree/bindings/leds/leds-pca9532.txt >>> b/Documentation/devicetree/bindings/leds/leds-pca9532.txt >>> index 198f3ba..8374075 100644 >>> --- a/Documentation/devicetree/bindings/leds/leds-pca9532.txt

Re: [PATCH 2/2] memory: ti-emif-sram: introduce relocatable suspend/resume handlers

2017-04-06 Thread Russell King - ARM Linux
On Wed, Apr 05, 2017 at 09:48:26AM -0500, Dave Gerlach wrote: > Russell, > On 04/05/2017 09:33 AM, Tony Lindgren wrote: > >* Russell King - ARM Linux [170405 07:02]: > >>I'm not going to comment on this yet, but I'll instead comment on the > >>newly appeared sram_exec_copy() stuff. > >> > >>So, a

Re: linux-next: manual merge of the staging tree with the v4l-dvb tree

2017-04-06 Thread Sean Young
On Thu, Apr 06, 2017 at 01:34:20PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the staging tree got conflicts in: > > drivers/staging/media/lirc/lirc_sasem.c > drivers/staging/media/lirc/lirc_sir.c > > between commits: > > e66267161971 ("[media] rc: promote li

Re: [PATCH] sparc64: Fix memory corruption when THP is enabled

2017-04-06 Thread David Miller
From: Nitin Gupta Date: Fri, 31 Mar 2017 15:48:53 -0700 > The memory corruption was happening due to incorrect > TLB/TSB flushing of hugepages. > > Reported-by: David S. Miller > Signed-off-by: Nitin Gupta Applied.

Re: [PATCH v2] sparc: remove unused wp_works_ok macro

2017-04-06 Thread David Miller
From: Mathias Krause Date: Wed, 5 Apr 2017 21:24:20 +0200 > It's unused for ages, used to be required for ksyms.c back in the v1.1 > times. > > Signed-off-by: Mathias Krause > Acked-by: David S. Miller > --- > Hi Dave, > > same patch as v1 but as the tip folks took only the x86 parts, I thin

Re: [PATCH] sparc32: Export vac_cache_size to fix build error

2017-04-06 Thread David Miller
From: Guenter Roeck Date: Sat, 1 Apr 2017 13:47:44 -0700 > sparc32:allmodconfig fails to build with the following error. > > ERROR: "vac_cache_size" [drivers/infiniband/sw/rxe/rdma_rxe.ko] undefined! > > Fixes: cb8864559631 ("infiniband: Fix alignment of mmap cookies ...") > Cc: Jason Gunthorp

Re: [PATCH] misc: sram-exec: Use aligned fncpy instead of memcpy

2017-04-06 Thread Russell King - ARM Linux
On Wed, Apr 05, 2017 at 02:22:33PM -0500, Dave Gerlach wrote: > Russell, > On 04/05/2017 02:21 PM, Dave Gerlach wrote: > >Currently the sram-exec functionality, which allows allocation of > >executable memory and provides an API to move code to it, is only > >selected in configs for the ARM archite

Re: [PATCH 2/2] memory: ti-emif-sram: introduce relocatable suspend/resume handlers

2017-04-06 Thread Dave Gerlach
On 04/06/2017 02:00 PM, Russell King - ARM Linux wrote: On Wed, Apr 05, 2017 at 09:48:26AM -0500, Dave Gerlach wrote: Russell, On 04/05/2017 09:33 AM, Tony Lindgren wrote: * Russell King - ARM Linux [170405 07:02]: I'm not going to comment on this yet, but I'll instead comment on the newly ap

Re: [PATCH] misc: sgi-xp: Use setup_timer Kernel API instead of

2017-04-06 Thread Robin Holt
On Sun, Apr 2, 2017 at 10:17 AM, Santosh Kumar Singh wrote: > Replace init_timer function with setup_timer reported by coccinelle > > Signed-off-by: Santosh Kumar Singh Acked-by: Robin Holt

Re: [tpmdd-devel] Regression between Linux 3.16 and 4.8/4.9 on Lenovo X60 with coreboot

2017-04-06 Thread Jason Gunthorpe
On Thu, Apr 06, 2017 at 08:26:22PM +0200, Paul Menzel wrote: > >We added direct ACPI binding to the driver in addition to PNP, so if > >you have an ACPI table it goes down that path and does some additional > >validation of what is in the TPM. The BIOS must provide a > >acpi_dev_resource_memory and

Re: [PATCH] mac80211: Fix clang warning about constant operand in logical operation

2017-04-06 Thread Johannes Berg
On Thu, 2017-04-06 at 11:56 -0700, Matthias Kaehlcke wrote: > Clang raises a warning about the expression 'strlen(CONFIG_XXX)' > being > used in a logical operation. Clangs' builtin strlen function resolves > the > expression to a constant at compile time, which causes clang to > generate > a 'cons

Re: ktest help

2017-04-06 Thread Steven Rostedt
On Thu, 6 Apr 2017 13:53:59 -0500 Timur Tabi wrote: > On 04/06/2017 01:50 PM, Steven Rostedt wrote: > > Currently yes, but it shouldn't be hard to add a hook to intervene. I > > just haven't had something that required it yet. > > If I understood Perl, I would add the feature myself. > I mig

Re: [PATCH] misc: sram-exec: Use aligned fncpy instead of memcpy

2017-04-06 Thread Dave Gerlach
On 04/06/2017 02:07 PM, Russell King - ARM Linux wrote: On Wed, Apr 05, 2017 at 02:22:33PM -0500, Dave Gerlach wrote: Russell, On 04/05/2017 02:21 PM, Dave Gerlach wrote: Currently the sram-exec functionality, which allows allocation of executable memory and provides an API to move code to it,

Re: [RFC PATCH 0/4] fs: introduce new writeback error tracking infrastructure and convert ext4 to use it

2017-04-06 Thread Jeff Layton
On Thu, 2017-04-06 at 10:02 +1000, NeilBrown wrote: > > > On Thu, Apr 06 2017, Jeff Layton wrote: > > > On Tue, 2017-04-04 at 10:09 -0700, Matthew Wilcox wrote: > > > On Tue, Apr 04, 2017 at 12:25:46PM -0400, Jeff Layton wrote: > > > > That said, I think giving more specific errors where we can

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-06 Thread Dmitry Safonov
On 04/06/2017 09:43 PM, Dmitry Safonov wrote: Hi Kirill, On 04/06/2017 05:01 PM, Kirill A. Shutemov wrote: On x86, 5-level paging enables 56-bit userspace virtual address space. Not all user space is ready to handle wide addresses. It's known that at least some JIT compilers use higher bits in

Re: linux-next: manual merge of the staging tree with the v4l-dvb tree

2017-04-06 Thread Greg KH
On Thu, Apr 06, 2017 at 07:58:57PM +0100, Sean Young wrote: > On Thu, Apr 06, 2017 at 01:34:20PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the staging tree got conflicts in: > > > > drivers/staging/media/lirc/lirc_sasem.c > > drivers/staging/media/lirc/lir

Re: [PATCH] fs: Handle register_shrinker failure

2017-04-06 Thread Goldwyn Rodrigues
On 03/24/2017 02:55 AM, Nikolay Borisov wrote: > register_shrinker allocates dynamic memory and thus is susceptible to failures > under low-memory situation. Currently,get_userns ignores the return value of > register_shrinker, potentially exposing not fully initialised object. This > can lead to

Re: [RFC][PATCH] spin loop arch primitives for busy waiting

2017-04-06 Thread Peter Zijlstra
On Thu, Apr 06, 2017 at 10:31:46AM -0700, Linus Torvalds wrote: > And we'd probably want to make it even more strict, in that soem mwait > implementations might simply not be very good for short waits. Yeah, we need to find something that works; assuming its beneficial at all on modern chips. > >

Re: [PATCH V10 06/12] of: device: Fix overflow of coherent_dma_mask

2017-04-06 Thread Frank Rowand
On 04/06/17 03:24, Robin Murphy wrote: > On 06/04/17 08:01, Frank Rowand wrote: >> On 04/04/17 03:18, Sricharan R wrote: >>> Size of the dma-range is calculated as coherent_dma_mask + 1 >>> and passed to arch_setup_dma_ops further. It overflows when >>> the coherent_dma_mask is set for full 64 bits

Re: [PATCH] mac80211: Fix clang warning about constant operand in logical operation

2017-04-06 Thread Matthias Kaehlcke
Hi Johannes, thanks for your comments El Thu, Apr 06, 2017 at 09:11:18PM +0200 Johannes Berg ha dit: > On Thu, 2017-04-06 at 11:56 -0700, Matthias Kaehlcke wrote: > > Clang raises a warning about the expression 'strlen(CONFIG_XXX)' > > being > > used in a logical operation. Clangs' builtin strle

Re: [PATCH net-next] net: usbnet: Remove unused driver_name variable

2017-04-06 Thread David Miller
From: Florian Fainelli Date: Tue, 4 Apr 2017 18:16:57 -0700 > With GCC 6.3, we can get the following warning: > > drivers/net/usb/usbnet.c:85:19: warning: 'driver_name' defined but not > used [-Wunused-const-variable=] > static const char driver_name [] = "usbnet"; >^~~

Re: [PATCH 11/16] fpga: intel: fme: add partial reconfiguration sub feature support

2017-04-06 Thread Alan Tull
On Thu, Apr 6, 2017 at 5:57 AM, Wu Hao wrote: > On Wed, Apr 05, 2017 at 10:39:05AM -0500, Alan Tull wrote: >> On Wed, Apr 5, 2017 at 10:26 AM, Alan Tull wrote: >> > On Wed, Apr 5, 2017 at 6:40 AM, Wu, Hao wrote: >> >>> >> The fpga_image_info struct started life as just image specific info, >> >

Re: [PATCH] misc: sram-exec: Use aligned fncpy instead of memcpy

2017-04-06 Thread Russell King - ARM Linux
On Thu, Apr 06, 2017 at 02:14:12PM -0500, Dave Gerlach wrote: > On 04/06/2017 02:07 PM, Russell King - ARM Linux wrote: > >On Wed, Apr 05, 2017 at 02:22:33PM -0500, Dave Gerlach wrote: > >>Russell, > >>On 04/05/2017 02:21 PM, Dave Gerlach wrote: > >>>Currently the sram-exec functionality, which all

[PATCH] [media] media-entity: only call dev_dbg_obj if mdev is not NULL

2017-04-06 Thread Helen Koike
Fix kernel Oops NULL pointer deference Call dev_dbg_obj only after checking if gobj->mdev is not NULL Signed-off-by: Helen Koike --- drivers/media/media-entity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c in

Re: [PATCH v2] vfio/type1: Remove locked page accounting workqueue

2017-04-06 Thread Alex Williamson
On Thu, 6 Apr 2017 11:05:31 -0600 Alex Williamson wrote: > On Thu, 6 Apr 2017 18:53:04 +0200 > Auger Eric wrote: > > > Hi Alex, > > > > On 06/04/2017 16:53, Alex Williamson wrote: > > > If the mmap_sem is contented then the vfio type1 IOMMU backend will > > > defer locked page accounting upd

[PATCH] of: Make of_match_node() an inline stub for CONFIG_OF=n

2017-04-06 Thread Florian Fainelli
Make of_match_node() an inline function when CONFIG_OF=n which allows the compiler to eliminate warnings about unused variables. Suggested-by: Andrew Lunn Signed-off-by: Florian Fainelli --- include/linux/of.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/linu

Re: [PATCH V10 06/12] of: device: Fix overflow of coherent_dma_mask

2017-04-06 Thread Frank Rowand
On 04/06/17 04:01, Sricharan R wrote: > Hi Frank, > > On 4/6/2017 12:31 PM, Frank Rowand wrote: >> On 04/04/17 03:18, Sricharan R wrote: >>> Size of the dma-range is calculated as coherent_dma_mask + 1 >>> and passed to arch_setup_dma_ops further. It overflows when >>> the coherent_dma_mask is set

Re: [PATCH v2] net: netfilter: Remove multiple assignment.

2017-04-06 Thread Pablo Neira Ayuso
Hi Arushi, On Tue, Mar 28, 2017 at 04:03:27AM +0530, Arushi Singhal wrote: > This patch removes multiple assignments to follow the kernel coding > style as also reported by checkpatch.pl. > Done using coccinelle. > @@ > identifier i1,i2; > constant c; > @@ > - i1=i2=c; > + i1=c; > + i2=i1; I see

Re: [PATCH] misc: sram-exec: Use aligned fncpy instead of memcpy

2017-04-06 Thread Dave Gerlach
On 04/06/2017 02:29 PM, Russell King - ARM Linux wrote: On Thu, Apr 06, 2017 at 02:14:12PM -0500, Dave Gerlach wrote: On 04/06/2017 02:07 PM, Russell King - ARM Linux wrote: On Wed, Apr 05, 2017 at 02:22:33PM -0500, Dave Gerlach wrote: Russell, On 04/05/2017 02:21 PM, Dave Gerlach wrote: Curr

Re: [PATCH V2 04/16] block, bfq: modify the peak-rate estimator

2017-04-06 Thread Paolo Valente
> Il giorno 04 apr 2017, alle ore 17:28, Bart Van Assche > ha scritto: > > On Tue, 2017-04-04 at 12:42 +0200, Paolo Valente wrote: >>> Il giorno 31 mar 2017, alle ore 17:31, Bart Van Assche >>> ha scritto: >>> >>> On Fri, 2017-03-31 at 14:47 +0200, Paolo Valente wrote: + d

Re: [RFC][PATCH] spin loop arch primitives for busy waiting

2017-04-06 Thread Linus Torvalds
On Thu, Apr 6, 2017 at 12:23 PM, Peter Zijlstra wrote: > > Something like so then. According to the SDM mwait is a no-op if we do > not execute monitor first. So this variant should get the first > iteration without expensive instructions. No, the problem is that we *would* have executed a prior

[PATCH net-next v2] net: dsa: mv88e6xxx: Make SMI c22/c45 read/write functions static

2017-04-06 Thread Florian Fainelli
The SMI clause 22 & 45 read/write operations are local to the global2.c file, so make them static. This eliminates the following warning: drivers/net/dsa/mv88e6xxx/global2.c:571:5: warning: no previous prototype for 'mv88e6xxx_g2_smi_phy_read_c45' [-Wmissing-prototypes] int mv88e6xxx_g2_smi_phy_

Re: [PATCH] af_unix: Use designated initializers

2017-04-06 Thread David Miller
From: Kees Cook Date: Tue, 4 Apr 2017 22:12:09 -0700 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, and the initializer fixes > were extracted from g

Re: [PATCH 17/24] acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down

2017-04-06 Thread Rafael J. Wysocki
On Wed, Apr 5, 2017 at 10:16 PM, David Howells wrote: > From: Josh Boyer > > This option allows userspace to pass the RSDP address to the kernel, which > makes it possible for a user to circumvent any restrictions imposed on > loading modules. Ignore the option when the kernel is locked down. I

Re: IB/qib: Adjust two size determinations in qib_init_pportdata()

2017-04-06 Thread Yuval Shaia
On Wed, Apr 05, 2017 at 05:21:22PM +0200, SF Markus Elfring wrote: > > I found that the fix brings no harm to the existing code. > > How do you think about to take another look at remaining update candidates > at other source code places for this Linux module? You mean the other patches in this p

Re: [PATCH net-next v2] net: dsa: mv88e6xxx: Make SMI c22/c45 read/write functions static

2017-04-06 Thread Vivien Didelot
Hi Florian, Florian Fainelli writes: > The SMI clause 22 & 45 read/write operations are local to the global2.c file, > so make them static. This eliminates the following warning: > > drivers/net/dsa/mv88e6xxx/global2.c:571:5: warning: no previous prototype for > 'mv88e6xxx_g2_smi_phy_read_c45'

Re: [PATCH] of: Make of_match_node() an inline stub for CONFIG_OF=n

2017-04-06 Thread Andrew Lunn
On Thu, Apr 06, 2017 at 12:32:24PM -0700, Florian Fainelli wrote: > Make of_match_node() an inline function when CONFIG_OF=n which allows the > compiler to eliminate warnings about unused variables. > > Suggested-by: Andrew Lunn > Signed-off-by: Florian Fainelli Thanks Florian, Reviewed-by: An

Re: [PATCH net-next] net/mlx5e: fix build error without CONFIG_SYSFS

2017-04-06 Thread David Miller
From: Tobias Regnery Date: Wed, 5 Apr 2017 11:11:10 +0200 > Commit 9008ae074885 ("net/mlx5e: Minimize mlx5e_{open/close}_locked") > copied the calls to netif_set_real_num_{tx,rx}_queues from > mlx5e_open_locked to mlx5e_activate_priv_channels and wraps them in an > if condition to test for netde

Re: [PATCH v4 2/2] i2c: mux: ltc4306: LTC4306 and LTC4305 I2C multiplexer/switch

2017-04-06 Thread Peter Rosin
On 2017-04-06 13:31, Michael Hennerich wrote: > On 06.04.2017 10:39, Peter Rosin wrote: >> Hi Michael, >> >> I would still like to hear from someone with more gpio experience. > > I'll ping Linus. > >> >> Anyway, from my point of view, there's just a few minor things left, >> with comments inline

Re: [RFC PATCH 0/4] fs: introduce new writeback error tracking infrastructure and convert ext4 to use it

2017-04-06 Thread Matthew Wilcox
On Thu, Apr 06, 2017 at 03:14:52PM -0400, Jeff Layton wrote: > @@ -868,6 +869,7 @@ struct file { > struct list_headf_tfile_llink; > #endif /* #ifdef CONFIG_EPOLL */ > struct address_space*f_mapping; > + u32 f_wb_err; > } __attribute__((aligned(4)));

Re: [PATCH 11/24] uswsusp: Disable when the kernel is locked down

2017-04-06 Thread Rafael J. Wysocki
On Thu, Apr 6, 2017 at 8:55 AM, David Howells wrote: > Rafael J. Wysocki wrote: > >> You probably want to disable hibernation altogether in this case. > > See patch 10. Does that mean patch 11 is superfluous? Yes, it does. You can't open /dev/snapshot if hibernation_available() returns false.

[PATCH] phy: qcom-qmp: Add dependency on COMMON_CLK

2017-04-06 Thread Vivek Gautam
The driver uses clock provider interface, and therefore it fails to build when enabled for COMPILE_TEST, since COMMON_CLK is not enabled at that time. So, make PHY_QCOM_QMP depend on COMMON_CLK as well. Cc: Fengguang Wu Cc: Kishon Vijay Abraham I Signed-off-by: Vivek Gautam --- Hi Kishon, Thi

[PATCH 0/2] IB/usnic: Fine-tuning for two function implementations

2017-04-06 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 6 Apr 2017 22:00:10 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use kcalloc() in alloc_res_chunk_list() Use kcalloc() in usnic_vnic_alloc_res_chunk() drivers/infiniband/hw/usnic/usnic_ib_qp_grp

Re: [PATCH v3 07/12] clk: mediatek: add clk support for MT6797

2017-04-06 Thread Stephen Boyd
On 03/19, Mars Cheng wrote: > From: Kevin-CW Chen > > Add MT6797 clock support, include topckgen, apmixedsys, infracfg > and subsystem clocks > > Signed-off-by: Kevin-CW Chen > Signed-off-by: Mars Cheng > Tested-by: Matthias Brugger Acked-by: Stephen Boyd Looks fine to me except for the on

Re: [PATCH 11/24] uswsusp: Disable when the kernel is locked down

2017-04-06 Thread Rafael J. Wysocki
On Thu, Apr 6, 2017 at 10:41 AM, David Howells wrote: > Oliver Neukum wrote: > >> Your swap partition may be located on an NVDIMM or be encrypted. > > An NVDIMM should be considered the same as any other persistent storage. > > It may be encrypted, but where's the key stored, how easy is it to re

[PATCH 1/2] IB/usnic: Use kcalloc() in alloc_res_chunk_list()

2017-04-06 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 6 Apr 2017 20:32:39 +0200 A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kcalloc". This issue was detected by using the Coccinelle software. Signe

[PATCH 2/2] IB/usnic: Use kcalloc() in usnic_vnic_alloc_res_chunk()

2017-04-06 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 6 Apr 2017 21:45:33 +0200 A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kcalloc". This issue was detected by using the Coccinelle software. Signe

Re: [PATCH 11/24] uswsusp: Disable when the kernel is locked down

2017-04-06 Thread Rafael J. Wysocki
On Thu, Apr 6, 2017 at 10:09 PM, Rafael J. Wysocki wrote: > On Thu, Apr 6, 2017 at 10:41 AM, David Howells wrote: >> Oliver Neukum wrote: >> >>> Your swap partition may be located on an NVDIMM or be encrypted. >> >> An NVDIMM should be considered the same as any other persistent storage. >> >> I

[patch] mm, swap_cgroup: reschedule when neeed in swap_cgroup_swapoff()

2017-04-06 Thread David Rientjes
We got need_resched() warnings in swap_cgroup_swapoff() because swap_cgroup_ctrl[type].length is particularly large. Reschedule when needed. Signed-off-by: David Rientjes --- mm/swap_cgroup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/swap_cgroup.c b/mm/swap_cgroup.c --- a/mm/swap

Re: [PATCH 1/4] ftrace: Add use of synchronize_rcu_tasks() with dynamic trampolines

2017-04-06 Thread Paul E. McKenney
On Thu, Apr 06, 2017 at 02:13:29PM -0400, Steven Rostedt wrote: > On Thu, 6 Apr 2017 11:05:53 -0700 > "Paul E. McKenney" wrote: > > > On Thu, Apr 06, 2017 at 12:42:38PM -0400, Steven Rostedt wrote: > > > From: "Steven Rostedt (VMware)" > > > > > > The function tracer needs to be more careful th

[PATCH 0/6] KVM: towards maintainable kvm_make_all_cpus_request()

2017-04-06 Thread Radim Krčmář
[1/6] makes a significant change for s390 and might be too dangerous because of that. I'm ok with returning 0 from s390's kvm_arch_vcpu_should_kick() until we sort out architecture-specific kicks. Adding kvm_vcpu_wake_up() in [6/6] is the reason why the other patches were included. Compile tested

[PATCH RFC 1/6] KVM: fix guest_mode optimization in kvm_make_all_cpus_request()

2017-04-06 Thread Radim Krčmář
We have kvm_arch_vcpu_should_kick() to decide whether the target cpu needs to be kicked. The previous condition was wrong, because architectures that don't use vcpu->mode would not get interrupts and also suboptimal, because it sent IPI in cases where none was necessary. The situation is even mor

[PATCH 2/6] KVM: use kvm_{test,clear}_request instead of {test,clear}_bit

2017-04-06 Thread Radim Krčmář
Users were expected to use kvm_check_request() for testing and clearing, but request have expanded their use since then and some users want to only test or do a faster clear. Make sure that requests are not directly accessed with bit operations, because we'll be clearing them later. Signed-off-by

[PATCH 6/6] KVM: perform a wake_up in kvm_make_all_cpus_request

2017-04-06 Thread Radim Krčmář
We want to have kvm_make_all_cpus_request() to be an optmized version of kvm_for_each_vcpu(i, vcpu, kvm) { kvm_make_request(vcpu, request); kvm_vcpu_kick(vcpu); } and kvm_vcpu_kick() wakes up the target vcpu. We know which requests do not need the wake up and use it to optimize the l

[PATCH 3/6] KVM: x86: use kvm_make_request instead of set_bit

2017-04-06 Thread Radim Krčmář
Signed-off-by: Radim Krčmář --- arch/x86/kvm/x86.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 71a019832df9..57e9989232e5 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2229,8 +2229,7 @@ int kvm_set_msr

[PATCH 4/6] KVM: remove #ifndef CONFIG_S390 around kvm_vcpu_wake_up

2017-04-06 Thread Radim Krčmář
The #ifndef was protecting a missing halt_wakeup stat, but that is no longer necessary. Signed-off-by: Radim Krčmář --- virt/kvm/kvm_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 2389e9c41cd2..a486c6ad27a6 100644 --- a/virt/kvm/kvm_ma

[PATCH RFC 5/6] KVM: mark requests that do not need a wakeup

2017-04-06 Thread Radim Krčmář
Some operations must ensure that the guest is not running with stale data, but if the guest is halted, then the update can wait until another event happens. kvm_make_all_requests() currently doesn't wake up, so we can mark all requests used with it. First 8 bits were arbitrarily reserved for requ

<    3   4   5   6   7   8   9   10   >