[PATCH v2] MIPS: Allow compressed images to be loaded at any address

2017-02-13 Thread Alban
From: Alban Bedel Compressed images (vmlinuz.bin) have to be loaded at a specific address that differ from the address normaly used for vmlinux.bin. This is because the decompressor just write its output at the address vmlinux.bin should be loaded at, and it shouldn't overwrite itself. This limit

[PATCH v4] DM: dm-inplace-compress: inplace compressed DM target

2017-02-13 Thread Ram Pai
This patch provides a generic device-mapper compression device. Originally written by Shaohua Li. https://www.redhat.com/archives/dm-devel/2013-December/msg00143.html I have optimized and hardened the code. Testing: --- This compression block device is tested in the following sc

[PATCH v4 1/1] DM: inplace compressed DM target

2017-02-13 Thread Ram Pai
This is a simple DM target supporting inplace compression. Its best suited for SSD. The underlying disk must support 512B sector size. The target only supports 4k sector size. Disk layout: |super|...meta...|..data...| Store unit is 4k (a block). Super is 1 block, which stores meta and data size

[PATCH] PM / wakeirq: report a wakeup_event on dedicated wekup irq

2017-02-13 Thread Tony Lindgren
From: Grygorii Strashko There are two reasons for reporting wakeup event when dedicated wakeup IRQ is triggered: - wakeup events accounting, so proper statistical data will be displayed in sysfs and debugfs; - there are small window when System is entering suspend during which dedicated wak

Re: [PATCH] device-dax: don't set kobj parent during cdev init

2017-02-13 Thread Dan Williams
On Sat, Feb 11, 2017 at 9:42 PM, Logan Gunthorpe wrote: > On 11/02/17 11:58 AM, Dan Williams wrote: >> Also when using an embedded cdev how would you recommend avoiding this >> problem? > > I don't know. Hopefully, Greg has a good idea. But it sounds like a > general problem that a lot of cdev's

[PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-13 Thread Paolo Valente
If, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, or, viceversa, a blk-mq scheduler is chosen for a device using blk, then that scheduler is set and initialized without any check, driving the system into an inconsistent state. This commit addresses this issue by letting eleva

[PATCH 01/15] staging: rtl8192u: fixing white space issue

2017-02-13 Thread simran singhal
Fix the following checkpatch.pl error and warnings: WARNING: please, no space before tabs Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h b/d

Re: [PATCH 07/10] ARM: davinci: fix a whitespace error

2017-02-13 Thread Kevin Hilman
Kevin Hilman writes: > Bartosz Golaszewski writes: > >> There's a stray tab in da850_vpif_legacy_init(). Remove it. >> >> Signed-off-by: Bartosz Golaszewski > > Folding into the original, Looks like the version in Sekhar's v4.11/soc branch already has this fixed. Kevin

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-13 Thread Paolo Valente
> Il giorno 10 feb 2017, alle ore 20:49, Paolo Valente > ha scritto: > >> >> Il giorno 10 feb 2017, alle ore 19:13, Bart Van Assche >> ha scritto: >> >> On 02/10/2017 08:49 AM, Paolo Valente wrote: $ grep '^C.*_MQ_' .config CONFIG_BLK_MQ_PCI=y CONFIG_MQ_IOSCHED_BFQ=y CON

[PATCH BUGFIX] attempt to fix wrong scheduler selection

2017-02-13 Thread Paolo Valente
Hi, if, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, or, viceversa, a blk-mq scheduler is chosen for a device using blk, then that scheduler is set and initialized without any check, driving the system into an inconsistent state. The purpose of this message is, first, to re

Re: [PATCH 02/10] ARM: dts: da850-evm: fix whitespace errors

2017-02-13 Thread Kevin Hilman
Kevin Hilman writes: > Bartosz Golaszewski writes: > >> Signed-off-by: Bartosz Golaszewski > > I'll fold this one into the original since it's not yet merged. Oops, Sekhar has already merged this one to his v4.11/dt branch, so he can apply it (or fold it in.) Kevin

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-13 Thread Paolo Valente
> Il giorno 07 feb 2017, alle ore 18:24, Paolo Valente > ha scritto: > > Hi, > > I have finally pushed here [1] the current WIP branch of bfq for > blk-mq, which I have tentatively named bfq-mq. > > This branch *IS NOT* meant for merging into mainline and contain code > that mau easily violat

[PATCH 02/15] staging: rtl8192u: Adding space after struct definition

2017-02-13 Thread simran singhal
Fixes checkpatch.pl warning: WARNING: missing space after struct definition Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h b/drivers/staging

Re: Question about DEC Alpha memory ordering

2017-02-13 Thread Alan Stern
On Mon, 13 Feb 2017, Paul E. McKenney wrote: > On Mon, Feb 13, 2017 at 08:14:23PM +0100, Tobias Klausmann wrote: > > Hi! > > > > On Mon, 13 Feb 2017, Paul E. McKenney wrote: > > > On Mon, Feb 13, 2017 at 01:53:27PM -0500, bob smith wrote: > > > > On 2/13/17 1:39 PM, Paul E. McKenney wrote: > > >

Re: [RFC PATCH 01/33] irqchip/gic-v3: Add redistributor iterator

2017-02-13 Thread Shanker Donthineni
Hi Marc, On 01/17/2017 04:20 AM, Marc Zyngier wrote: In order to discover the VLPI properties, we need to iterate over the redistributor regions. As we already have code that does this, let's factor it out and make it slightly more generic. Signed-off-by: Marc Zyngier --- drivers/irqchip/ir

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-13 Thread Bart Van Assche
On Mon, 2017-02-13 at 22:01 +0100, Paolo Valente wrote: > -static struct elevator_type *elevator_get(const char *name, bool try_loading) > +static struct elevator_type *elevator_get(const char *name, bool try_loading, > + bool mq_ops) Please choose a better na

Re: [PATCH V2] audit: log module name on init_module

2017-02-13 Thread Paul Moore
On Sat, Feb 4, 2017 at 1:10 PM, Richard Guy Briggs wrote: > This adds a new auxiliary record MODULE_INIT to the SYSCALL event. > > We get finit_module for free since it made most sense to hook this in to > load_module(). > > https://github.com/linux-audit/audit-kernel/issues/7 > https://github.com

Re: [PATCH 2/2] arch/x86: Fix sparse warning symbol not declared

2017-02-13 Thread Thomas Gleixner
On Tue, 14 Feb 2017, Tobin Harding wrote: > On Sun, Feb 12, 2017 at 12:06:47PM +0100, Thomas Gleixner wrote: > > The proper solution is to have a local include file 'purgatory.h' and put > > the declaration there. Include it in both files even if that's not required > > for the ASM file. But that d

Re: Question about DEC Alpha memory ordering

2017-02-13 Thread Paul E. McKenney
On Mon, Feb 13, 2017 at 04:06:21PM -0500, Alan Stern wrote: > On Mon, 13 Feb 2017, Paul E. McKenney wrote: > > > On Mon, Feb 13, 2017 at 08:14:23PM +0100, Tobias Klausmann wrote: > > > Hi! > > > > > > On Mon, 13 Feb 2017, Paul E. McKenney wrote: > > > > On Mon, Feb 13, 2017 at 01:53:27PM -0500,

Re: [PATCH 2/2 v4] cpufreq: qoriq: Don't look at clock implementation details

2017-02-13 Thread Rafael J. Wysocki
On Mon, Feb 13, 2017 at 4:30 AM, wrote: > From: Tang Yuantian > > Get the CPU clock's potential parent clocks from the clock interface > itself, rather than manually parsing the clocks property to find a > phandle, looking at the clock-names property of that, and assuming that > those are valid

[PATCH 03/15] staging: rtl8192u: Adding space after enum and struct definition

2017-02-13 Thread simran singhal
Fixes checkpatch.pl warning: WARNING: missing space after struct definition WARNING: missing space after enum definition Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 38 - 1 file changed, 19 insertions(+), 19 deletions(-) diff --git

Re: [PATCH v3 3/3] Bluetooth: hidp: fix possible might sleep error in hidp_session_thread

2017-02-13 Thread Dmitry Torokhov
Hi Jeffy, On Sun, Feb 12, 2017 at 8:12 PM, Jeffy Chen wrote: > It looks like hidp_session_thread has same pattern as the issue reported in > old rfcomm: > > while (1) { > set_current_state(TASK_INTERRUPTIBLE); > if (condition) > brea

Re: Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-13 Thread Marc MERLIN
On Mon, Feb 13, 2017 at 12:41:06PM -0600, Josh Poimboeuf wrote: > Hm, that doesn't sound right. Nothing automatically enables > CONFIG_STACK_VALIDATION. It should be disabled unless manually enabled. > Maybe you got it confused with CONFIG_HAVE_STACK_VALIDATION, which is > always enabled? I did

Re: [PATCH] Make EN2 pin optional in the TRF7970A driver

2017-02-13 Thread Rob Herring
On Mon, Feb 13, 2017 at 12:38 AM, Heiko Schocher wrote: > Hello Rob, > > > Am 10.02.2017 um 16:51 schrieb Rob Herring: >> >> On Tue, Feb 07, 2017 at 06:22:04AM +0100, Heiko Schocher wrote: >>> >>> From: Guan Ben >>> >>> Make the EN2 pin optional. This is useful for boards, >>> which have this pin

Re: audit: log module name on init_module

2017-02-13 Thread Jessica Yu
+++ Paul Moore [13/02/17 16:20 -0500]: On Sat, Feb 4, 2017 at 1:10 PM, Richard Guy Briggs wrote: This adds a new auxiliary record MODULE_INIT to the SYSCALL event. We get finit_module for free since it made most sense to hook this in to load_module(). https://github.com/linux-audit/audit-kern

[PATCH 04/15] staging: rtl8192u: blank lines aren't necessary before a close brace '}'

2017-02-13 Thread simran singhal
Fix checkpatch issues: "CHECK: Blank lines aren't necessary before a close brace '}'". Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c b/drivers/staging/rt

Re: [RFC PATCH 02/33] irqchip/gic-v3: Add VLPI/DirectLPI discovery

2017-02-13 Thread Shanker Donthineni
On 01/17/2017 04:20 AM, Marc Zyngier wrote: Add helper functions that probe for VLPI and DirectLPI properties. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3.c | 22 ++ include/linux/irqchip/arm-gic-v3.h | 3 +++ 2 files changed, 25 insertions(+) di

Re: [PATCH v3 0/2] iov_iter: allow iov_iter_get_pages_alloc to allocate more pages per call

2017-02-13 Thread Linus Torvalds
On Mon, Feb 13, 2017 at 1:56 AM, Steve Capper wrote: > > Okay so looking at what we have for access_ok(.) on arm64, my > understanding is that we perform a 65-bit add/compare (in assembler) to > see whether or not the range is below the current_thread_info->addr_limit. > So I think this is a round

Re: [PATCH] Input: synaptics-rmi4 - create firmware update sysfs attribute in F34

2017-02-13 Thread Nick Dyer
On Sun, Feb 12, 2017 at 04:02:51PM -0800, Dmitry Torokhov wrote: > On Sun, Feb 12, 2017 at 10:50:56PM +, Nick Dyer wrote: > > On Thu, Feb 09, 2017 at 01:25:08PM -0800, Dmitry Torokhov wrote: > > > There is no need to create sysfs attributes in the main driver core, > > > let F34 implementation

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread Peter Zijlstra
On Mon, Feb 13, 2017 at 03:12:45PM -0500, Waiman Long wrote: > On 02/13/2017 02:42 PM, Waiman Long wrote: > > On 02/13/2017 05:53 AM, Peter Zijlstra wrote: > >> On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter Zijlstra wrote: > >>> That way we'd end up with something like: > >>> > >>> asm(" > >>> pu

Re: net: BUG in __skb_gso_segment

2017-02-13 Thread Eric Dumazet
On Mon, Feb 13, 2017 at 11:54 AM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > A reproducer and .config are attached. > > On commit 926af6273fc683cd98cd0ce7bf0d04a02eed6742. > > kernel BUG at ./include/linux/skbuff.h:1942! > inv

Re: [RFC PATCH 06/33] irqchip/gic-v3-its: Add probing for VLPI properties

2017-02-13 Thread Shanker Donthineni
On 01/17/2017 04:20 AM, Marc Zyngier wrote: Add the probing code for the ITS VLPI support. This includes configuring the ITS number if not supporting the single VMOVP command feature. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 47 ++-

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread Peter Zijlstra
On Mon, Feb 13, 2017 at 12:06:44PM -0800, h...@zytor.com wrote: > >Maybe: > > > >movsql %edi, %rax; > >movq __per_cpu_offset(,%rax,8), %rax; > >cmpb $0, %[offset](%rax); > >setne %al; > > > >? > > We could kill the zero or sign extend by changing the calling > interface to pass an unsigned long i

Re: [PATCH v2 7/9] test_sysctl: add simple proc_dointvec() case

2017-02-13 Thread Kees Cook
On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > Test against a simple proc_dointvec() case. While at it, add > a test against INT_MAX. Make sure INT_MAX works, and INT_MAX+1 > will fail. Also test negative values work. > > Signed-off-by: Luis R. Rodriguez > --- > lib/test_sysctl.c

Re: Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-13 Thread Josh Poimboeuf
On Mon, Feb 13, 2017 at 01:31:32PM -0800, Marc MERLIN wrote: > Anyway, after not finding it in xconfig, I editted .config, and did: > # CONFIG_STACK_VALIDATION is not set > save .config > and the next build re-enabled the option. > That's what caught me by surprise. Did I do something wrong, or is

Re: Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-13 Thread Marc MERLIN
On Mon, Feb 13, 2017 at 04:00:02PM -0600, Josh Poimboeuf wrote: > On Mon, Feb 13, 2017 at 01:31:32PM -0800, Marc MERLIN wrote: > > Anyway, after not finding it in xconfig, I editted .config, and did: > > # CONFIG_STACK_VALIDATION is not set > > save .config > > and the next build re-enabled the opt

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-13 Thread Bart Van Assche
On Mon, 2017-02-13 at 22:07 +0100, Paolo Valente wrote: > but what do you think about trying this fix? Sorry but with ... the same server I used for the previous test still didn't boot up properly. A screenshot is available at https://goo.gl/photos/Za9QVGCNe2BJBwxVA. > Otherwise, if you have no n

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread hpa
On February 13, 2017 1:52:20 PM PST, Peter Zijlstra wrote: >On Mon, Feb 13, 2017 at 03:12:45PM -0500, Waiman Long wrote: >> On 02/13/2017 02:42 PM, Waiman Long wrote: >> > On 02/13/2017 05:53 AM, Peter Zijlstra wrote: >> >> On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter Zijlstra wrote: >> >>> Th

Re: [PATCH v2 9/9] test_sysctl: test against int proc_dointvec() array support

2017-02-13 Thread Kees Cook
On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > Add a few initial respective tests for an array: > > o Echoing values separated by spaces works > o Echoing only first elements will set first elements > o Confirm PAGE_SIZE limit still applies even if an array is used > > Signed-of

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-13 Thread Omar Sandoval
On Mon, Feb 13, 2017 at 10:01:07PM +0100, Paolo Valente wrote: > If, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, > or, viceversa, a blk-mq scheduler is chosen for a device using blk, then > that scheduler is set and initialized without any check, driving the > system into a

Re: [PATCHv2] platform/x86: asus-wireless: Use per-HID HSWC parameters

2017-02-13 Thread Andy Shevchenko
On Tue, Feb 7, 2017 at 11:45 PM, João Paulo Rechi Vita wrote: > Some Asus machines use 0x4/0x5 as their LED on/off values, while others > use 0x0/0x1, as shown in the DSDT excerpts below. Luckily it seems this > behavior is tied to different HIDs, after looking at 44 DSDTs from > different Asus mo

Re: [PATCH] kernel: ksysfs: add __ro_after_init to bin_attribute structure

2017-02-13 Thread Kees Cook
On Sat, Feb 11, 2017 at 11:06 AM, Bhumika Goyal wrote: > The object notes_attr of type bin_attribute is not modified after > getting initailized by ksysfs_init. Apart from initialization in > ksysfs_init it is also passed as an argument to the function > sysfs_create_bin_file but this argument is

linux-next: build failure after merge of the net tree

2017-02-13 Thread Stephen Rothwell
Hi all, After merging the net tree, today's linux-next build (powerpc64le perf) failed like this: Warning: tools/include/uapi/linux/bpf.h differs from kernel bpf.c: In function 'bpf_prog_attach': bpf.c:180:6: error: 'union bpf_attr' has no member named 'attach_flags'; did you mean 'map_flags'?

Re: [RFC PATCH 10/33] irqchip/gic-v4-its: Allow use of indirect VCPU tables

2017-02-13 Thread Shanker Donthineni
Hi Marc, On 01/17/2017 04:20 AM, Marc Zyngier wrote: The VCPU tables can be quite sparse as well, and it makes sense to use indirect tables as well if possible. The VCPU table has maximum of 2^16 entries as compared to 2^32 entries in device table. ITS hardware implementations may not support

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread hpa
On February 13, 2017 1:52:20 PM PST, Peter Zijlstra wrote: >On Mon, Feb 13, 2017 at 03:12:45PM -0500, Waiman Long wrote: >> On 02/13/2017 02:42 PM, Waiman Long wrote: >> > On 02/13/2017 05:53 AM, Peter Zijlstra wrote: >> >> On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter Zijlstra wrote: >> >>> Th

Re: [PATCH v4 1/2] procfs: use an enum for possible hidepid values

2017-02-13 Thread Kees Cook
On Mon, Jan 16, 2017 at 5:23 AM, Djalal Harouni wrote: > From: Lafcadio Wluiki > > Previously, the hidepid parameter was checked by comparing literal > integers 0, 1, 2. Let's add a proper enum for this, to make the checking > more expressive: > > 0 → HIDEPID_OFF > 1 → HIDEPID_NO_

Re: [PATCHv3] x86/selftests: add clobbers for int80 on x86_64

2017-02-13 Thread hpa
On February 13, 2017 11:06:04 AM PST, Andy Lutomirski wrote: >On Mon, Feb 13, 2017 at 2:13 AM, Dmitry Safonov > wrote: >> Kernel erases R8..R11 registers prior returning to userspace >> from int80: https://lkml.org/lkml/2009/10/1/164 >> >> GCC can reuse this registers and doesn't expect them to c

Re: [PATCH v2] MIPS: Allow compressed images to be loaded at any address

2017-02-13 Thread James Hogan
Hi Alban, On Mon, Feb 13, 2017 at 09:38:08PM +0100, Alban wrote: > From: Alban Bedel > > Compressed images (vmlinuz.bin) have to be loaded at a specific > address that differ from the address normaly used for vmlinux.bin. > This is because the decompressor just write its output at the address >

Re: [PATCH] checkpatch: add warning on %pk instead of %pK usage

2017-02-13 Thread Joe Perches
(Adding back the cc's) On Mon, 2017-02-13 at 21:28 +, Roberts, William C wrote: > > > No worries. > > No idea why it doesn't work for you. > > Maybe the hand applying was somehow > > faulty? > > > > The attached is on top of -next so it does have offsets on Linus' tree, but > > it seems > >

Re: [PATCH] /proc/kcore: Update physical address for kcore ram and text

2017-02-13 Thread Kees Cook
On Mon, Jan 30, 2017 at 11:00 AM, Pratyush Anand wrote: > CCing Andrew and Kees for their review comments. > > > On Wednesday 25 January 2017 10:14 AM, Pratyush Anand wrote: >> Currently all the p_paddr of PT_LOAD headers are assigned to 0, which is >> not true and could be misleading, since 0 is

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread Waiman Long
On 02/13/2017 03:06 PM, h...@zytor.com wrote: > On February 13, 2017 2:53:43 AM PST, Peter Zijlstra > wrote: >> On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter Zijlstra wrote: >>> That way we'd end up with something like: >>> >>> asm(" >>> push %rdi; >>> movslq %edi, %rdi; >>> movq __per_cpu_offs

[PATCH v5 1/3] phy: core: Add support for clock and reset to the phy core

2017-02-13 Thread Alban
From: Alban Bedel Signed-off-by: Alban Bedel --- drivers/phy/phy-core.c | 48 include/linux/phy/phy.h | 4 2 files changed, 52 insertions(+) diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index a268f4d..e6c55af 100644 --- a/

[PATCH v5 2/3] phy: Add a driver for the ATH79 USB phy

2017-02-13 Thread Alban
From: Alban Bedel The ATH79 USB phy is very simple, it only have a reset. On some SoC a second reset is used to force the phy in suspend mode regardless of the USB controller status. Signed-off-by: Alban Bedel --- Changelog: v2: * Rebased on the simple PHY driver * Added myself as maintaine

[PATCH v5 3/3] MIPS: ath79: Fix the USB PHY reset names

2017-02-13 Thread Alban
From: Alban Bedel The binding for the USB PHY went thru before the driver. However the new version of the driver now use the PHY core support for reset, and this expect the reset to be named "phy". So remove the "usb-" prefix from the the reset names. Signed-off-by: Alban Bedel --- Changelog: v

Re: [PATCH v2] platform/x86: intel_pmc_ipc: read s0ix residency API

2017-02-13 Thread Andy Shevchenko
On Mon, Feb 13, 2017 at 2:02 PM, Shanth Murthy wrote: > This patch adds a new API to indicate S0ix residency in usec. It utilizes > the PMC Global Control Registers (GCR) to read deep and shallow > S0ix residency. > > PMC MMIO resources: > o Lower 4kB: IPC1 (PMC inter-processor communicati

Re: [PATCH] platform/x86: intel_pmc_ipc: Add APL PMC PCI Id

2017-02-13 Thread Andy Shevchenko
On Mon, Feb 13, 2017 at 12:41 PM, Rajneesh Bhardwaj wrote: > This patch adds the PCI Device id for Power Management Controller on Intel > Apollo Lake platforms. > > Intel PMC IPC Driver loads as a platform driver on Apollo Lake platforms > since Intel BIOS hides the PCI Configuration space for 0:1

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-13 Thread Jens Axboe
On 02/13/2017 03:09 PM, Omar Sandoval wrote: > On Mon, Feb 13, 2017 at 10:01:07PM +0100, Paolo Valente wrote: >> If, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, >> or, viceversa, a blk-mq scheduler is chosen for a device using blk, then >> that scheduler is set and initiali

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-13 Thread Jens Axboe
On 02/13/2017 02:09 PM, Paolo Valente wrote: > >> Il giorno 07 feb 2017, alle ore 18:24, Paolo Valente >> ha scritto: >> >> Hi, >> >> I have finally pushed here [1] the current WIP branch of bfq for >> blk-mq, which I have tentatively named bfq-mq. >> >> This branch *IS NOT* meant for merging in

Re: net/dccp: use-after-free in dccp_feat_activate_values

2017-02-13 Thread Cong Wang
On Mon, Feb 13, 2017 at 11:19 AM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit 926af6273fc683cd98cd0ce7bf0d04a02eed6742. > > A reproducer and .config are attached. > Note, that it takes quite some time to trigger the b

Re: [RFC PATCH 11/33] irqchip/gic-v3-its: Split out pending table allocation

2017-02-13 Thread Shanker Donthineni
Hi Marc, On 01/17/2017 04:20 AM, Marc Zyngier wrote: Just as for the property table, let's move the pending table allocation to a separate function. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 29 - 1 file changed, 20 insertions(+), 9 dele

[ANNOUNCE] 4.4.47-rt59

2017-02-13 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.4.47-rt59 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.4-rt Head SHA1: 80398f6fc8e4725cd888477650b5f8a4d441b772 Or to build 4.4.47-rt59 directl

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread Peter Zijlstra
On Mon, Feb 13, 2017 at 05:24:36PM -0500, Waiman Long wrote: > >> movsql %edi, %rax; > >> movq __per_cpu_offset(,%rax,8), %rax; > >> cmpb $0, %[offset](%rax); > >> setne %al; > I have thought of that too. However, the goal is to eliminate memory > read/write from/to stack. Eliminating a register

[ANNOUNCE] 4.1.38-rt45

2017-02-13 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.1.38-rt45 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.1-rt Head SHA1: 14ff6b10ad521c0bece3d0dc909c6563e37383e4 Or to build 4.1.38-rt45 directl

[ANNOUNCE] 3.18.47-rt52

2017-02-13 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.18.47-rt52 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.18-rt Head SHA1: f5cd67daa1a9e2f3be2c70e715e50b03c8dd0df1 Or to build 3.18.47-rt52 dire

[ANNOUNCE] 3.12.70-rt94

2017-02-13 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.12.70-rt94 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.12-rt Head SHA1: bc92224d9c0e616125b2bcda8be5c7d1d35a612e Or to build 3.12.70-rt94 dire

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread Waiman Long
On 02/13/2017 04:52 PM, Peter Zijlstra wrote: > On Mon, Feb 13, 2017 at 03:12:45PM -0500, Waiman Long wrote: >> On 02/13/2017 02:42 PM, Waiman Long wrote: >>> On 02/13/2017 05:53 AM, Peter Zijlstra wrote: On Mon, Feb 13, 2017 at 11:47:16AM +0100, Peter Zijlstra wrote: > That way we'd end u

Re: [PATCH 1/2] nvmem: Add driver for the i.MX IIM

2017-02-13 Thread kbuild test robot
Hi Michael, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc8 next-20170213] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Sascha-Hauer/nvmem-Add-driver-for-the-i-MX

[ANNOUNCE] 3.10.104-rt118

2017-02-13 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.10.104-rt118 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v3.10-rt Head SHA1: 1aa9282631e195c26f9cb97222a2d85bff3a6870 Or to build 3.10.104-rt118

Re: [PATCH] device-dax: don't set kobj parent during cdev init

2017-02-13 Thread Logan Gunthorpe
Hey, I like the interface. It's just Greg that needs to comment on whether using the kobj.parent for this purpose is actually sane. That was his argument from the beginning. Logan On 13/02/17 01:47 PM, Dan Williams wrote: > On Sat, Feb 11, 2017 at 9:42 PM, Logan Gunthorpe wrote: >> On 11/02/17

Re: [WIP PATCHSET 0/4] WIP branch for bfq-mq

2017-02-13 Thread Bart Van Assche
On Mon, 2017-02-13 at 22:07 +, Bart Van Assche wrote: > On Mon, 2017-02-13 at 22:07 +0100, Paolo Valente wrote: > > but what do you think about trying this fix? > > Sorry but with ... the same server I used for the previous test still > didn't boot up properly. A screenshot is available at > h

Re: [PATCH v2] cciss: switch to pci_irq_alloc_vectors

2017-02-13 Thread Jens Axboe
On 02/07/2017 04:13 PM, Christoph Hellwig wrote: > Simple cleanup to use the new APIs. Added for 4.11. -- Jens Axboe

Re: [PATCH v2] x86/paravirt: Don't make vcpu_is_preempted() a callee-save function

2017-02-13 Thread hpa
On February 13, 2017 2:34:01 PM PST, Waiman Long wrote: >On 02/13/2017 04:52 PM, Peter Zijlstra wrote: >> On Mon, Feb 13, 2017 at 03:12:45PM -0500, Waiman Long wrote: >>> On 02/13/2017 02:42 PM, Waiman Long wrote: On 02/13/2017 05:53 AM, Peter Zijlstra wrote: > On Mon, Feb 13, 2017 at 11:

Re: [PATCH V8 06/10] acpi: apei: panic OS with fatal error status block

2017-02-13 Thread Baicar, Tyler
Hello James, On 2/9/2017 3:48 AM, James Morse wrote: Hi Jonathan, Tyler, On 01/02/17 17:16, Tyler Baicar wrote: From: "Jonathan (Zhixiong) Zhang" Even if an error status block's severity is fatal, the kernel does not honor the severity level and panic. With the firmware first model, the pl

[PATCH 1/2] pcnet32: factor out pcnet32_clr_suspend()

2017-02-13 Thread Ondrej Zary
Move the code to clear SUSPEND flag to a separate function to simplify code. Signed-off-by: Ondrej Zary --- drivers/net/ethernet/amd/pcnet32.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/net/ethernet/amd/pcnet32.c b/drivers/net/ethernet/

[PATCH 2/2] pcnet32: fix BNC/AUI port on AM79C970A

2017-02-13 Thread Ondrej Zary
Even though the port autoselection is enabled by default on AM79C970A, BNC/AUI port does not work because the link is always reported to be down. The link state reported by the chip belongs only to the TP port but the driver uses it regardless of the port used. The chip can't detect BNC/AUI link st

Re: [PATCH v5 7/8] thunderbolt: Power down controller when idle

2017-02-13 Thread Bjorn Helgaas
On Sun, Feb 12, 2017 at 05:31:30PM +0100, Lukas Wunner wrote: > On Sat, Jan 28, 2017 at 05:32:37PM -0600, Bjorn Helgaas wrote: > > On Sun, Jan 15, 2017 at 09:03:45PM +0100, Lukas Wunner wrote: > > > +#define pr_fmt(fmt) KBUILD_MODNAME " %s: " fmt, dev_name(dev) > [...] > > > + /* prevent interrupt

Re: [PATCH] tile: fix build failure

2017-02-13 Thread Sudip Mukherjee
On Tuesday 24 January 2017 04:56 PM, Chris Metcalf wrote: On 1/24/2017 11:39 AM, Sudip Mukherjee wrote: From: Sudip Mukherjee The build of tilegx allmodconfig was failing with errors like: ../arch/tile/include/asm/div64.h:5:15: error: unknown type name 'u64' static inline u64 mul_u32_u32(u32

Re: [PATCH v2 8/9] sched: Don't reinvent the wheel but use existing llist API

2017-02-13 Thread Byungchul Park
On Mon, Feb 13, 2017 at 11:04:57AM +0100, Peter Zijlstra wrote: > On Mon, Feb 13, 2017 at 04:21:08PM +0900, Byungchul Park wrote: > > Although llist provides proper APIs, they are not used. Make them used. > > > > Signed-off-by: Byungchul Park > > --- > > kernel/sched/core.c | 13 ++--- >

Re: [PATCH v2 8/9] sched: Don't reinvent the wheel but use existing llist API

2017-02-13 Thread Byungchul Park
On Mon, Feb 13, 2017 at 04:52:30PM +0100, Oleg Nesterov wrote: > On 02/13, Peter Zijlstra wrote: > > > > On Mon, Feb 13, 2017 at 04:21:08PM +0900, Byungchul Park wrote: > > > + llist_for_each_entry(p, llist, wake_entry) > > > + ttwu_do_activate(rq, p, p->sched_remote_wakeup ? WF_MIGRATED :

Re: [PATCH] tile: fix build failure

2017-02-13 Thread Stephen Rothwell
Hi Sudip, On Mon, 13 Feb 2017 22:58:40 + Sudip Mukherjee wrote: > > On Tuesday 24 January 2017 04:56 PM, Chris Metcalf wrote: > > On 1/24/2017 11:39 AM, Sudip Mukherjee wrote: > >> From: Sudip Mukherjee > >> > >> The build of tilegx allmodconfig was failing with errors like: > >> ../arch/

Re: [RFC PATCH 17/33] irqchip/gic-v3-its: Add VLPI configuration hook

2017-02-13 Thread Shanker Donthineni
On 01/17/2017 04:20 AM, Marc Zyngier wrote: Add the skeleton irq_set_vcpu_affinity method that will be used to configure VLPIs. Signed-off-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/ir

Re: Please turn "Cannot use CONFIG_STACK_VALIDATION" into build error

2017-02-13 Thread Jessica Yu
+++ Josh Poimboeuf [13/02/17 12:41 -0600]: On Mon, Feb 13, 2017 at 12:07:09AM -0800, Marc MERLIN wrote: Hi Josh, I'll start with the story as to why. i've lost more hours than I care to list, because I was unable to build the virtualbox kernel driver with newer kernels. Sadly, it gives no usefu

Re: [PATCH BUGFIX] block: make elevator_get robust against cross blk/blk-mq choice

2017-02-13 Thread Jens Axboe
On 02/13/2017 03:28 PM, Jens Axboe wrote: > On 02/13/2017 03:09 PM, Omar Sandoval wrote: >> On Mon, Feb 13, 2017 at 10:01:07PM +0100, Paolo Valente wrote: >>> If, at boot, a legacy I/O scheduler is chosen for a device using blk-mq, >>> or, viceversa, a blk-mq scheduler is chosen for a device using

[PATCH] MIPS: ath79: Use the IRQ based GPIO key driver for the buttons

2017-02-13 Thread Alban
From: Alban Bedel Now that the GPIO driver support interrupts we don't need to poll the buttons. Signed-off-by: Alban Bedel --- arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 3 +-- arch/mips/boot/dts/qca/ar9331_dpt_module.dts | 5 ++--- arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts

RE: [PATCH] tools/power/x86: Debug utility for intel_pstate driver

2017-02-13 Thread Doug Smythies
On 2017.01.11 12:50 Srinivas Pandruvada wrote: > This utility can be used to debug and tune the performance of the > intel_pstate driver. > This utility can be used in two ways: > - If there is Linux trace file with pstate_sample events enabled, then > this utility can parse the trace file and gen

[PATCH v2] tools/power/x86: Debug utility for intel_pstate driver

2017-02-13 Thread Doug Smythies
This utility can be used to debug and tune the performance of the intel_pstate driver. This utility can be used in two ways: - If there is Linux trace file with pstate_sample events enabled, then this utility can parse the trace file and generate performance plots. - If user has not specified a tra

Re: [PATCH v3 21/24] media: imx: Add MIPI CSI-2 Receiver subdev driver

2017-02-13 Thread Steve Longerbeam
(#!##* Thunderbird! resending text only) Hi Philipp, On 02/13/2017 01:20 AM, Philipp Zabel wrote: Hi Steve, On Thu, 2017-02-09 at 15:51 -0800, Steve Longerbeam wrote: On 02/09/2017 03:49 PM, Steve Longerbeam wrote: On 02/08/2017 03:42 PM, Russell King - ARM Linux wrote: On Wed, Feb 08, 201

Re: [RFC PATCH 21/33] irqchip/gic-v3-its: Add VPE irq domain allocation/teardown

2017-02-13 Thread Shanker Donthineni
Hi Marc, On 01/17/2017 04:20 AM, Marc Zyngier wrote: When creating a VM, the low level GICv4 code is responsible for: - allocating each VPE a unique VPEID - allocating a doorbell interrupt for each VPE - allocating the pending tables for each VPE - allocating the property table for the VM This

Re: linux-next: build failure after merge of the net tree

2017-02-13 Thread Alexei Starovoitov
On 2/13/17 2:12 PM, Stephen Rothwell wrote: Hi all, After merging the net tree, today's linux-next build (powerpc64le perf) failed like this: Warning: tools/include/uapi/linux/bpf.h differs from kernel bpf.c: In function 'bpf_prog_attach': bpf.c:180:6: error: 'union bpf_attr' has no member name

Re: [PATCH RFC 0/3] coresight: enable debug module

2017-02-13 Thread Leo Yan
Hi Mike, On Mon, Feb 13, 2017 at 03:58:47PM +, Mike Leach wrote: > Hi Leo, > > A few comments about your driver RFC. > > i) As it stands this looks like it will work for v8 cores, but would need > refining for v7. There are subtle differences in the PC sampling between > the two architecture

Re: [RFC PATCH 23/33] irqchip/gic-v3-its: Add VPENDBASER/VPROPBASER accessors

2017-02-13 Thread Shanker Donthineni
Hi Marc, On 01/17/2017 04:20 AM, Marc Zyngier wrote: V{PEND,PROP}BASER being 64bit registers, they need some ad-hoc accessors on 32bit, specially given that VPENDBASER contains a Valid bit, making the access a bit convoluted. Signed-off-by: Marc Zyngier --- arch/arm/include/asm/arch_gicv3.h

RE: [PATCHv6 0/7] Refactor macvtap to re-use tap functionality by other virtual intefaces

2017-02-13 Thread Grandhi, Sainath
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Saturday, February 11, 2017 6:00 PM > To: Grandhi, Sainath > Cc: net...@vger.kernel.org; mah...@bandewar.net; linux- > ker...@vger.kernel.org > Subject: Re: [PATCHv6 0/7] Refactor macvtap to re-use tap functio

Re: [PATCH] sched/deadline: Remove redundant code replenishing runtime

2017-02-13 Thread Byungchul Park
On Mon, Feb 13, 2017 at 03:24:55PM +, Juri Lelli wrote: > > > > I think we actually want to replenish and set the next deadline at this > > > > point of time, not the one that we get when the task will eventually > > > > wake up. > > > > > > Hello juri, > > > > > > But I wonder if it's meani

[PATCH] Input: tca8418_keypad - remove double read of key event register

2017-02-13 Thread Dmitry Torokhov
There is no need to tread the same register twice in a row. Fixes: ea4348c8462a ("Input: tca8418_keypad - hide gcc-4.9 -Wmaybe-un ...") Signed-off-by: Dmitry Torokhov --- drivers/input/keyboard/tca8418_keypad.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/keyboard/tca8418_k

[PATCH] Documentation: DocBook/Makefile comment typo

2017-02-13 Thread Jim Davis
Fix a se for so typo. Signed-off-by: Jim Davis --- Documentation/DocBook/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile index a6eb7dcd4dd5..1f23567bf76e 100644 --- a/Documentation/DocBook/Makefile +++ b

Re: [RFC PATCH 24/33] irqchip/gic-v3-its: Add VPE scheduling

2017-02-13 Thread Shanker Donthineni
Hi Marc, On 01/17/2017 04:20 AM, Marc Zyngier wrote: When a VPE is scheduled to run, the corresponding redistributor must be told so, by setting VPROPBASER to the VM's property table, and VPENDBASER to the vcpu's pending table. When scheduled out, we preserve the IDAI and PendingLast bits. The

Re: Is it really safe to use workqueues to drive expedited grace periods?

2017-02-13 Thread Paul E. McKenney
On Sat, Feb 11, 2017 at 11:35:41AM +0900, Tejun Heo wrote: > Hello, Paul. > > On Fri, Feb 10, 2017 at 01:21:58PM -0800, Paul E. McKenney wrote: > > So RCU's expedited grace periods have been using workqueues for a > > little while, and things seem to be working. But as usual, I worry... > > Is th

Re: [PATCH v4 1/1] DM: inplace compressed DM target

2017-02-13 Thread kbuild test robot
Hi Ram, [auto build test WARNING on dm/for-next] [also build test WARNING on v4.10-rc8 next-20170213] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Ram-Pai/DM-inplace-compressed-DM-target

Re: [PATCH] f2fs: introduce nid cache

2017-02-13 Thread Jaegeuk Kim
On 02/11, Chao Yu wrote: > On 2017/2/9 9:28, Jaegeuk Kim wrote: > > On 02/08, Chao Yu wrote: > >> On 2017/2/7 15:24, Chao Yu wrote: > >>> Hi Jaegeuk, > >>> > >>> Happy Chinese New Year! :) > >>> > >>> On 2017/1/24 12:35, Jaegeuk Kim wrote: > Hi Chao, > > On 01/22, Chao Yu wrote: > >>

Re: [PATCH v2 1/4] seccomp: Add sysctl to display available actions

2017-02-13 Thread Tyler Hicks
On 02/07/2017 06:43 PM, Kees Cook wrote: > On Tue, Feb 7, 2017 at 4:25 PM, Tyler Hicks wrote: >> On 02/07/2017 06:03 PM, Kees Cook wrote: >>> On Thu, Feb 2, 2017 at 9:37 PM, Tyler Hicks wrote: This patch creates a read-only sysctl containing an ordered list of seccomp actions that the k

<    2   3   4   5   6   7   8   9   10   >