Re: [PATCH] Make asus-nb-wmi support the Zenbook UX430UQ

2017-11-21 Thread Andy Shevchenko
On Mon, Nov 20, 2017 at 11:18 PM, Kiernan Hager wrote: > This patch adds support for the Zenbook UX430UQ to the asus_nb_wmi > driver. It also renames "quirk_asus_ux330uak" to "quirk_asus_forceals" > because it is now used for more than one model of computer, and should > thus have a more general n

Re: [PATCH 4.13 00/28] 4.13.15-stable review

2017-11-21 Thread Greg Kroah-Hartman
On Tue, Nov 21, 2017 at 02:06:25AM -0800, Guenter Roeck wrote: > On 11/20/2017 11:51 PM, Greg Kroah-Hartman wrote: > > On Tue, Nov 21, 2017 at 08:23:20AM +0100, Greg Kroah-Hartman wrote: > > > On Mon, Nov 20, 2017 at 06:13:42AM -0800, Guenter Roeck wrote: > > > > On 11/19/2017 06:43 AM, Greg Kroah-

Re: [RFC PATCH v2 0/7] typec: tcpm: Add sink side support for PPS

2017-11-21 Thread Heikki Krogerus
On Tue, Nov 21, 2017 at 01:51:41PM +, Adam Thomson wrote: > > These don't apply on top of Badhri's series: > > http://www.spinics.net/lists/kernel/msg2649921.html > > Hi Heikki, > > When I submitted these I was aware of Badhri's patch set but at the time they > hadn't been approved or pulled,

[PATCH] gpio: 74x164: Fix crash during .remove()

2017-11-21 Thread Geert Uytterhoeven
Commit 7ebc194d0fd4bb0f ("gpio: 74x164: Introduce 'enable-gpios' property") added a new member gpiod_oe to the end of the struct gen_74x164_chip, after the zero-length buffer array. However, this buffer is a flexible array, allocated together with the structure during .probe(). As the buffer is n

[PATCH v2] zswap: Same-filled pages handling

2017-11-21 Thread Srividya Desireddy
From: Srividya Desireddy Date: Sat, 18 Nov 2017 18:29:16 +0530 Subject: [PATCH v2] zswap: Same-filled pages handling Changes since v1 : Added memset_l instead of for loop. Zswap is a cache which compresses the pages that are being swapped out and stores them into a dynamically allocated RAM-ba

[RFC PATCH for 4.15 v12 00/22] Restartable sequences and CPU op vector

2017-11-21 Thread Mathieu Desnoyers
es applies on top of current Linus' master as of commit e1d1ea549b57 "Merge tag 'fbdev-v4.15' of git://github.com/bzolnier/linux" The git tag including this series can be found at https://git.kernel.org/pub/scm/linux/kernel/git/rseq/linux-rseq.git tag: v4.14+-rseq-20171121 Tha

[RFC PATCH for 4.15 01/22] uapi headers: Provide types_32_64.h

2017-11-21 Thread Mathieu Desnoyers
Provide helper macros for fields which represent pointers in kernel-userspace ABI. This facilitates handling of 32-bit user-space by 64-bit kernels by defining those fields as 32-bit 0-padding and 32-bit integer on 32-bit architectures, which allows the kernel to treat those as 64-bit integers. The

[RFC PATCH for 4.15 09/22] sched: Implement push_task_to_cpu

2017-11-21 Thread Mathieu Desnoyers
Implement push_task_to_cpu(), which moves the task received as argument to the destination cpu's runqueue. It only does so if the CPU is within the CPU allowed mask of the task, else it returns -EINVAL. It does not change the CPU allowed mask, and can therefore be used within applications which re

[RFC PATCH for 4.15 07/22] powerpc: Add support for restartable sequences

2017-11-21 Thread Mathieu Desnoyers
From: Boqun Feng Call the rseq_handle_notify_resume() function on return to userspace if TIF_NOTIFY_RESUME thread flag is set. Increment the event counter and perform fixup on the pre-signal when a signal is delivered on top of a restartable sequence critical section. Signed-off-by: Boqun Feng

[RFC PATCH for 4.15 v3 14/22] cpu_opv: selftests: Implement selftests

2017-11-21 Thread Mathieu Desnoyers
Implement cpu_opv selftests. It needs to express dependencies on header files and .so, which require to override the selftests lib.mk targets. Introduce a new OVERRIDE_TARGETS define for this. Signed-off-by: Mathieu Desnoyers CC: Russell King CC: Catalin Marinas CC: Will Deacon CC: Thomas Glei

[RFC PATCH for 4.15 v5 20/22] membarrier: Document scheduler barrier requirements

2017-11-21 Thread Mathieu Desnoyers
Document the membarrier requirement on having a full memory barrier in __schedule() after coming from user-space, before storing to rq->curr. It is provided by smp_mb__after_spinlock() in __schedule(). Document that membarrier requires a full barrier on transition from kernel thread to userspace t

[RFC PATCH for 4.15 17/22] Fix: membarrier: add missing preempt off around smp_call_function_many

2017-11-21 Thread Mathieu Desnoyers
smp_call_function_many requires disabling preemption around the call. Signed-off-by: Mathieu Desnoyers CC: Peter Zijlstra CC: Paul E. McKenney CC: Boqun Feng CC: Andrew Hunter CC: Maged Michael CC: Avi Kivity CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Michael Ellerman CC: Dave Wat

[RFC PATCH for 4.15 v7 19/22] powerpc: membarrier: Skip memory barrier in switch_mm()

2017-11-21 Thread Mathieu Desnoyers
Allow PowerPC to skip the full memory barrier in switch_mm(), and only issue the barrier when scheduling into a task belonging to a process that has registered to use expedited private. Threads targeting the same VM but which belong to different thread groups is a tricky case. It has a few consequ

Re: [PATCH 1/1] mm/cma: fix alloc_contig_range ret code/potential leak

2017-11-21 Thread Michal Nazarewicz
On Mon, Nov 20 2017, Mike Kravetz wrote: > If the call __alloc_contig_migrate_range() in alloc_contig_range > returns -EBUSY, processing continues so that test_pages_isolated() > is called where there is a tracepoint to identify the busy pages. > However, it is possible for busy pages to become ava

[RFC PATCH for 4.15 v2 21/22] membarrier: provide SHARED_EXPEDITED command

2017-11-21 Thread Mathieu Desnoyers
Allow expedited membarrier to be used for data shared between processes (shared memory). Processes wishing to receive the membarriers register with MEMBARRIER_CMD_REGISTER_SHARED_EXPEDITED. Those which want to issue membarrier invoke MEMBARRIER_CMD_SHARED_EXPEDITED. This allows extremely simple k

[RFC PATCH for 4.15 22/22] membarrier: selftest: Test shared expedited cmd

2017-11-21 Thread Mathieu Desnoyers
Test the new MEMBARRIER_CMD_SHARED_EXPEDITED and MEMBARRIER_CMD_REGISTER_SHARED_EXPEDITED commands. Signed-off-by: Mathieu Desnoyers Acked-by: Shuah Khan CC: Greg Kroah-Hartman CC: Peter Zijlstra CC: Paul E. McKenney CC: Boqun Feng CC: Andrew Hunter CC: Maged Michael CC: Avi Kivity CC: Be

RE: [RFC PATCH v2 0/7] typec: tcpm: Add sink side support for PPS

2017-11-21 Thread Adam Thomson
On 21 November 2017 14:18, Heikki Krogerus wrote: > On Tue, Nov 21, 2017 at 01:51:41PM +, Adam Thomson wrote: > > > These don't apply on top of Badhri's series: > > > http://www.spinics.net/lists/kernel/msg2649921.html > > > > Hi Heikki, > > > > When I submitted these I was aware of Badhri's p

Re: [PATCH] mfd: pcf50633: fix spelling mistake: 'Falied' -> 'Failed'

2017-11-21 Thread Lee Jones
On Sun, 29 Oct 2017, Arvind Yadav wrote: > Trivial fix to spelling mistakes in 'pcf50633_client_dev_register'. > > Signed-off-by: Arvind Yadav > --- > drivers/mfd/pcf50633-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks. -- Lee Jones Linaro STMicroelectronics L

Re: [PATCH v2] platform/x86: Add Acer Wireless Radio Control driver

2017-11-21 Thread Andy Shevchenko
On Tue, Nov 21, 2017 at 7:30 AM, Chris Chiu wrote: > New Acer laptops in 2018 will have a separate ACPI device for > notifications from the airplane mode hotkey. The device name in > the DSDT is SMKB and its ACPI _HID is 10251229. > > For these models, when the airplane mode hotkey (Fn+F3) pressed

[RFC PATCH for 4.15 16/22] rseq: selftests: arm: workaround gcc asm size guess

2017-11-21 Thread Mathieu Desnoyers
Fixes assembler errors: /tmp/cceKwI9a.s: Assembler messages: /tmp/cceKwI9a.s:849: Error: co-processor offset out of range with gcc prior to gcc-7. This can trigger if multiple rseq inline asm are used within the same function. My best guess on the cause of this issue is that gcc has a hard time f

[RFC PATCH for 4.15 v3 15/22] rseq: selftests: Provide self-tests

2017-11-21 Thread Mathieu Desnoyers
Implements two basic tests of RSEQ functionality, and one more exhaustive parameterizable test. The first, "basic_test" only asserts that RSEQ works moderately correctly. E.g. that the CPUID pointer works. "basic_percpu_ops_test" is a slightly more "realistic" variant, implementing a few simple p

[RFC PATCH for 4.15 18/22] membarrier: selftest: Test private expedited cmd

2017-11-21 Thread Mathieu Desnoyers
Test the new MEMBARRIER_CMD_PRIVATE_EXPEDITED and MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED commands. Add checks expecting specific error values on system calls expected to fail. Signed-off-by: Mathieu Desnoyers Acked-by: Shuah Khan Acked-by: Greg Kroah-Hartman CC: Peter Zijlstra CC: Paul E.

[RFC PATCH for 4.15 13/22] arm: Wire up cpu_opv system call

2017-11-21 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers CC: Russell King CC: Catalin Marinas CC: Will Deacon CC: Thomas Gleixner CC: Paul Turner CC: Andrew Hunter CC: Peter Zijlstra CC: Andy Lutomirski CC: Andi Kleen CC: Dave Watson CC: Chris Lameter CC: Ingo Molnar CC: Ben Maurer CC: Steven Rostedt CC: "P

[RFC PATCH for 4.15 v4 10/22] cpu_opv: Provide cpu_opv system call

2017-11-21 Thread Mathieu Desnoyers
The cpu_opv system call executes a vector of operations on behalf of user-space on a specific CPU with preemption disabled. It is inspired by readv() and writev() system calls which take a "struct iovec" array as argument. The operations available are: comparison, memcpy, add, or, and, xor, left s

[RFC PATCH for 4.15 11/22] x86: Wire up cpu_opv system call

2017-11-21 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers CC: "Paul E. McKenney" CC: Peter Zijlstra CC: Paul Turner CC: Thomas Gleixner CC: Andrew Hunter CC: Andy Lutomirski CC: Andi Kleen CC: Dave Watson CC: Chris Lameter CC: Ingo Molnar CC: "H. Peter Anvin" CC: Ben Maurer CC: Steven Rostedt CC: Josh Triplet

[RFC PATCH for 4.15 12/22] powerpc: Wire up cpu_opv system call

2017-11-21 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Michael Ellerman CC: Boqun Feng CC: Peter Zijlstra CC: "Paul E. McKenney" CC: linuxppc-...@lists.ozlabs.org --- arch/powerpc/include/asm/systbl.h | 1 + arch/powerpc/include/asm/unistd.h | 2 +- arc

[RFC PATCH for 4.15 08/22] powerpc: Wire up restartable sequences system call

2017-11-21 Thread Mathieu Desnoyers
From: Boqun Feng Wire up the rseq system call on powerpc. This provides an ABI improving the speed of a user-space getcpu operation on powerpc by skipping the getcpu system call on the fast path, as well as improving the speed of user-space operations on per-cpu data compared to using load-reser

[RFC PATCH for 4.15 05/22] x86: Add support for restartable sequences

2017-11-21 Thread Mathieu Desnoyers
Call the rseq_handle_notify_resume() function on return to userspace if TIF_NOTIFY_RESUME thread flag is set. Increment the event counter and perform fixup on the pre-signal frame when a signal is delivered on top of a restartable sequence critical section. Signed-off-by: Mathieu Desnoyers Revie

[RFC PATCH for 4.15 06/22] x86: Wire up restartable sequence system call

2017-11-21 Thread Mathieu Desnoyers
Wire up the rseq system call on x86 32/64. This provides an ABI improving the speed of a user-space getcpu operation on x86 by removing the need to perform a function call, "lsl" instruction, or system call on the fast path, as well as improving the speed of user-space operations on per-cpu data.

[RFC PATCH for 4.15 v12 02/22] rseq: Introduce restartable sequences system call

2017-11-21 Thread Mathieu Desnoyers
Expose a new system call allowing each thread to register one userspace memory area to be used as an ABI between kernel and user-space for two purposes: user-space restartable sequences and quick access to read the current CPU number value from user-space. * Restartable sequences (per-cpu atomics)

[RFC PATCH for 4.15 04/22] arm: Wire up restartable sequences system call

2017-11-21 Thread Mathieu Desnoyers
Wire up the rseq system call on 32-bit ARM. This provides an ABI improving the speed of a user-space getcpu operation on ARM by skipping the getcpu system call on the fast path, as well as improving the speed of user-space operations on per-cpu data compared to using load-linked/store-conditional.

[RFC PATCH for 4.15 03/22] arm: Add restartable sequences support

2017-11-21 Thread Mathieu Desnoyers
Call the rseq_handle_notify_resume() function on return to userspace if TIF_NOTIFY_RESUME thread flag is set. Increment the event counter and perform fixup on the pre-signal frame when a signal is delivered on top of a restartable sequence critical section. Signed-off-by: Mathieu Desnoyers CC: R

[PATCH v2] powerpc: fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWX

2017-11-21 Thread Christophe Leroy
On powerpc32, patch_instruction() is called by apply_feature_fixups() which is called from early_init() There is the following note in front of early_init(): * Note that the kernel may be running at an address which is different * from the address that it was linked at, so we must use RELOC/PTRR

Re: [PATCH] gpio: 74x164: Fix crash during .remove()

2017-11-21 Thread Fabio Estevam
On Tue, Nov 21, 2017 at 12:18 PM, Geert Uytterhoeven wrote: > Commit 7ebc194d0fd4bb0f ("gpio: 74x164: Introduce 'enable-gpios' > property") added a new member gpiod_oe to the end of the struct > gen_74x164_chip, after the zero-length buffer array. > > However, this buffer is a flexible array, allo

Re: [PATCH] reservation: don't wait when timeout=0

2017-11-21 Thread Christian König
Am 21.11.2017 um 15:08 schrieb Rob Clark: If we are testing if a reservation object's fences have been signaled with timeout=0 (non-blocking), we need to pass 0 for timeout to dma_fence_wait_timeout(). Plus bonus spelling correction. Signed-off-by: Rob Clark Reviewed-by: Christian König -

[PATCH v2] powerpc: fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWX

2017-11-21 Thread Christophe Leroy
On powerpc32, patch_instruction() is called by apply_feature_fixups() which is called from early_init() There is the following note in front of early_init(): * Note that the kernel may be running at an address which is different * from the address that it was linked at, so we must use RELOC/PTRR

[PATCH v2 4/6] ARM: ep93xx: ts72xx: Rewrite map IO code to be reusable

2017-11-21 Thread Lukasz Majewski
The map IO common code has been excluded to be reused by other ts72xx clones. Signed-off-by: Lukasz Majewski --- Changes for v2: - New patch --- arch/arm/mach-ep93xx/ts72xx.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-ep93xx/ts72xx

[PATCH v2 0/6] ARM: ep93xx: ts72xx: Add support for BK3 board

2017-11-21 Thread Lukasz Majewski
This patch series adds support for Liebherr's BK3 board, being a derivative of TS72XX design. This patchset consists of following patches: - ts72xx.[c|h] cosmetic cleanup/improvement - Rewrite ts72xx.c to be reusable by bk3 - The Liebherr's BK3 board has been added with re-using code of ts72xx.

[PATCH v2 6/6] ARM: ep93xx: ts72xx: Add support for BK3 board - ts72xx derivative

2017-11-21 Thread Lukasz Majewski
The BK3 board is a derivative of the ts72xx reference design. Signed-off-by: Lukasz Majewski --- Changes for v2: - Place bk3 support code to the ts72xx.c file --- arch/arm/mach-ep93xx/Kconfig | 7 + arch/arm/mach-ep93xx/ts72xx.c | 64 +++ arch/arm/ma

[PATCH v2 3/6] ARM: ep93xx: ts72xx: Rewrite ts72xx_register_flash() to accept parameters

2017-11-21 Thread Lukasz Majewski
This commit extend the ts72xx_register_flash() to accept passed parameters, which makes it more reusable. Now it is possible to accept ep93xx flash start address and partitions. Signed-off-by: Lukasz Majewski --- Changes for v2: - New patch --- arch/arm/mach-ep93xx/ts72xx.c | 20 --

[PATCH v2 5/6] ARM: ep93xx: ts72xx: cosmetic: Add some description to ts72xx code

2017-11-21 Thread Lukasz Majewski
This patch extends readability of ts72xx.c code. Signed-off-by: Lukasz Majewski --- Changes for v2: - New patch --- arch/arm/mach-ep93xx/ts72xx.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c index a6e473b3dcf6..2e

[PATCH v2 1/6] ARM: ep93xx: ts72xx: Use DEFINE_RES_MEM macros where applicable

2017-11-21 Thread Lukasz Majewski
This commit cleans up the code by using dedicated macros instead of full definitions. Signed-off-by: Lukasz Majewski --- Changes for v2: - None --- arch/arm/mach-ep93xx/ts72xx.c | 18 +++--- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-ep93xx/ts72xx.c

[PATCH v2 2/6] ARM: ep93xx: ts72xx: Provide include guards for ts72xx.h file

2017-11-21 Thread Lukasz Majewski
This commit adds include file guards to ts72xx.h Signed-off-by: Lukasz Majewski --- Changes for v2: - None --- arch/arm/mach-ep93xx/ts72xx.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-ep93xx/ts72xx.h b/arch/arm/mach-ep93xx/ts72xx.h index b89850f1a965..d9ff04db3221 1006

Re: [PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-21 Thread joe . korty
On Mon, Nov 20, 2017 at 11:57:51PM -0500, Steven Rostedt wrote: > On Mon, 20 Nov 2017 23:02:07 -0500 > Steven Rostedt wrote: > > > > Ideally, I would like to stay close to what upstream -rt does. Would > > you be able to backport the 4.11-rt patch? > > > > I'm currently working on releasing 4.9

Re: [GIT PULL] usercopy whitelisting for v4.15-rc1

2017-11-21 Thread Linus Torvalds
[ this is just a resend of yesterday's mobile html version that got rejected by the lists, sorry for the duplication ] On Mon, Nov 20, 2017 at 9:50 AM, Matthew Garrett wrote: > > Can you clarify a little with regard to how you'd have liked this > patchset to look? So I think the actual status of

Re: [f2fs-dev] [PATCH RESEND] f2fs: fix concurrent problem for updating free bitmap

2017-11-21 Thread Chao Yu
On 2017/11/21 16:01, LiFan wrote: > > >> -Original Message- >> From: Chao Yu [mailto:yuch...@huawei.com] >> Sent: Monday, November 20, 2017 11:00 AM >> To: LiFan; 'Chao Yu'; 'Jaegeuk Kim' >> Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net >> Subject: Re: [f2fs-dev

Re: [RFC] perf script: modify field selection option

2017-11-21 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 20, 2017 at 12:53:04PM -0800, Stephane Eranian escreveu: > Hi, > > I have been using the perf script -F option on the latest perf and I > find it not very convenient to use. I appreciate the + and - prefix to > field names to add or suppress them. But most of the time, I want to > prin

Re: [RFC] perf script: modify field selection option

2017-11-21 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 20, 2017 at 03:21:01PM -0800, Stephane Eranian escreveu: > On Mon, Nov 20, 2017 at 2:50 PM, Milian Wolff wrote: > > On Montag, 20. November 2017 21:53:04 CET Stephane Eranian wrote: > >> Hi, > >> > >> I have been using the perf script -F option on the latest perf and I > >> find it not

Re: [PATCH] reservation: don't wait when timeout=0

2017-11-21 Thread Chris Wilson
Quoting Rob Clark (2017-11-21 14:08:46) > If we are testing if a reservation object's fences have been > signaled with timeout=0 (non-blocking), we need to pass 0 for > timeout to dma_fence_wait_timeout(). > > Plus bonus spelling correction. > > Signed-off-by: Rob Clark > --- > drivers/dma-buf/

Re: [f2fs-dev] [PATCH RESEND v2] f2fs: fix concurrent problem for updating free bitmap

2017-11-21 Thread Chao Yu
On 2017/11/21 16:19, LiFan wrote: > alloc_nid_failed and scan_nat_page can be called at the same time, > and we haven't protected add_free_nid and update_free_nid_bitmap > with the same nid_list_lock. That could lead to > > Thread A Thread B > - __build_free_nids > -

Re: [serial8250_interrupt] RIP: 0010:arch_local_irq_restore+0x2/0x8

2017-11-21 Thread Andy Shevchenko
On Tue, 2017-11-21 at 21:31 +0800, Fengguang Wu wrote: > On Tue, Nov 21, 2017 at 08:33:57PM +0800, Fengguang Wu wrote: > > Hello, > > > > FYI this happens in mainline kernel 4.14.0-02748-gabc36be. > > It shows up since v4.13 . > > Sorry it actually also shows up in 4.10: This one means that inte

Re: [PATCH 16/16] x86/entry/64: Move the IST stacks into cpu_entry_area

2017-11-21 Thread Andrey Ryabinin
On 11/21/2017 10:38 AM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> /* May not be marked __init: used by software suspend */ >> void syscall_init(void) >> { >> @@ -1627,7 +1637,7 @@ void cpu_init(void) >> * set up and load the per-CPU TSS >> */ >> if (!oist->ist[0]

Re: [PATCH] net: phy: harmonize phy_id{,_mask} data type

2017-11-21 Thread Andrew Lunn
On Tue, Nov 21, 2017 at 10:52:56AM +0100, Richard Leitner wrote: > From: Richard Leitner > > Previously phy_id was u32 and phy_id_mask was unsigned int. As the > phy_id_mask defines the important bits of the phy_id (and is therefore > the same size) these two variables should be the same data typ

Re: kprobes: propagate error from arm_kprobe_ftrace()

2017-11-21 Thread Jessica Yu
+++ Masami Hiramatsu [09/11/17 09:35 +0900]: On Tue, 7 Nov 2017 18:14:56 +0100 Jessica Yu wrote: +++ Steven Rostedt [03/11/17 10:03 -0400]: >On Thu, 2 Nov 2017 17:33:33 +0100 >Jessica Yu wrote: > >> Improve error handling when arming ftrace-based kprobes. Specifically, if >> we fail to arm a

Re: [PATCH v1] mm: relax deferred struct page requirements

2017-11-21 Thread Khalid Aziz
On Thu, 2017-11-16 at 20:46 -0500, Pavel Tatashin wrote: > There is no need to have ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT, > as all the page initialization code is in common code. > > Also, there is no need to depend on MEMORY_HOTPLUG, as initialization > code > does not really use hotplug memor

Re: Dell Vostro 3360 multimedia keys

2017-11-21 Thread Oleksandr Natalenko
Hi, Pali et al. Answers go inline. On úterý 21. listopadu 2017 14:51:10 CET Pali Rohár wrote: > What would happen if you enable wmi_requires_smbios_request? Nothing? > And situation is exactly same? Yes, this is what I did with DMI quirk which enables wmi_requires_smbios_request. Keys "1" and

Re: Dell Vostro 3360 multimedia keys

2017-11-21 Thread Oleksandr Natalenko
Hi, Pali et al. Answers go inline. On úterý 21. listopadu 2017 14:51:10 CET Pali Rohár wrote: > What would happen if you enable wmi_requires_smbios_request? Nothing? > And situation is exactly same? Yes, this is what I did with DMI quirk which enables wmi_requires_smbios_request. Keys "1" and

Re: [ata_port_probe] BUG: unable to handle kernel NULL pointer dereference at 0000000000000350

2017-11-21 Thread Tejun Heo
Hello, On Tue, Nov 21, 2017 at 01:54:25PM +0100, Arnd Bergmann wrote: > > [ 56.376960] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100 > > [ 56.379169] ata2.00: configured for MWDMA2 > > [ 56.381518] ata2.00: disabled > > [ 56.385696] sd 1:0:0:0: [sda] Attached SCSI disk > > [ 56.395326

Re: [PATCH] reservation: don't wait when timeout=0

2017-11-21 Thread Rob Clark
On Tue, Nov 21, 2017 at 9:38 AM, Chris Wilson wrote: > Quoting Rob Clark (2017-11-21 14:08:46) >> If we are testing if a reservation object's fences have been >> signaled with timeout=0 (non-blocking), we need to pass 0 for >> timeout to dma_fence_wait_timeout(). >> >> Plus bonus spelling correcti

[PATCH] x86/MCE/AMD: Always give panic severity for UC errors in kernel context

2017-11-21 Thread Yazen Ghannam
From: Yazen Ghannam [Upstream commit d65dfc81bb3894fdb68cbc74bbf5fb48d2354071] The AMD severity grading function was introduced in kernel 4.1. The current logic can possibly give MCE_AR_SEVERITY for uncorrectable errors in kernel context. The system may then get stuck in a loop as memory_failure

Re: [PATCH] mm, mlock, vmscan: no more skipping pagevecs

2017-11-21 Thread Johannes Weiner
On Tue, Nov 21, 2017 at 01:39:57PM +0100, Vlastimil Babka wrote: > On 11/04/2017 11:43 PM, Shakeel Butt wrote: > > When a thread mlocks an address space backed by file, a new > > page is allocated (assuming file page is not in memory), added > > to the local pagevec (lru_add_pvec), I/O is triggered

[PATCH] [media] dvb-frontends/stv0367: remove redundant self assignment of temporary

2017-11-21 Thread Colin King
From: Colin Ian King The self assignment of temporary is redundant and can be removed. Detected using coccinelle. Signed-off-by: Colin Ian King --- drivers/media/dvb-frontends/stv0367.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/dvb-frontends/stv0367.c b/drivers/media/

RE: [PATCH] ASoC: amd: Add error checking to probe function

2017-11-21 Thread Deucher, Alexander
> -Original Message- > From: Agrawal, Akshu > Sent: Tuesday, November 21, 2017 1:15 AM > To: Deucher, Alexander; 'Guenter Roeck'; Liam Girdwood; Mukunda, > Vijendar > Cc: Mark Brown; Jaroslav Kysela; Takashi Iwai; alsa-de...@alsa-project.org; > linux-kernel@vger.kernel.org; Dominik Behr; Da

Re: sdhci broke in 4.14 [was: MMC fixes for v.4.14-rc4]

2017-11-21 Thread Ulf Hansson
+ Yoshihiro, Geert, Konrad On 20 November 2017 at 14:12, Jiri Slaby wrote: > On 10/07/2017, 09:33 AM, Ulf Hansson wrote: >> Here's a PR with a couple of MMC fixes intended for v4.14-rc4. Details about >> the >> highlights are as usual found in the signed tag. > ... >> ---

Re: Autoselect patches for stable (Was: Re: [PATCH AUTOSEL for 4.9 36/56] drm/i915: Fix the level 0 max_wm hack on VLV/CHV)

2017-11-21 Thread alexander . levin
On Mon, Nov 20, 2017 at 11:21:52AM +, Emil Velikov wrote: > - Document the autoselect process >Information about about What, Why, and [ideally] How - analogous to >the normal stable nominations. >Insert reference to the process in the patch notification email. I agree with this one, and it'll

Re: [alsa-devel] [PATCH] SoC: intel: byt: Introduce new custom IN2 map

2017-11-21 Thread Pierre-Louis Bossart
On 11/21/17 3:30 AM, Carlo Caione wrote: On Thu, Nov 16, 2017 at 1:53 PM, Carlo Caione wrote: On Wed, Oct 18, 2017 at 7:05 PM, Pierre-Louis Bossart wrote: On 10/18/17 11:49 AM, Carlo Caione wrote: From: Carlo Caione Introduce a new custom dapm routes map to quirk platforms with the intern

Re: sdhci broke in 4.14 [was: MMC fixes for v.4.14-rc4]

2017-11-21 Thread Jiri Slaby
On 11/21/2017, 04:08 PM, Ulf Hansson wrote: > It seems like we need something along those lines for the sdhci-pci > case as well. I cooked a patch, perhaps you have some time for test? Sure, but before I start, I want to double check: don't you want me to stick some pr_info in there to see if the

[PATCH RT] fix IPI balancing for 4.14-rt

2017-11-21 Thread Clark Williams
From 8ea8311b75a40bdea03e7f8228a0578b6367e9d1 Mon Sep 17 00:00:00 2001 From: Clark Williams Date: Mon, 20 Nov 2017 14:26:12 -0600 Subject: [PATCH] [rt] sched/rt: fix panic in double_lock_balance with simplified IPI RT balancing I was testing 4.14-rt1 on a large system (cores == 96) and saw that

Re: [PATCH v2] mm: show total hugetlb memory consumption in /proc/meminfo

2017-11-21 Thread Roman Gushchin
On Mon, Nov 20, 2017 at 04:51:10PM -0800, Andrew Morton wrote: > On Wed, 15 Nov 2017 23:14:09 + Roman Gushchin wrote: > > > Currently we display some hugepage statistics (total, free, etc) > > in /proc/meminfo, but only for default hugepage size (e.g. 2Mb). > > > > If hugepages of different

Re: [PATCH v1 3/9] perf util: Reconstruct rblist for supporting per-thread shadow stats

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:38PM +0800, Jin Yao wrote: SNIP > > +static void init_saved_rblist(struct rblist *rblist) > +{ > + rblist__init(rblist); > + rblist->node_cmp = saved_value_cmp; > + rblist->node_new = saved_value_new; > + rblist->node_delete = saved_value_delete; >

Re: [PATCH v1 3/9] perf util: Reconstruct rblist for supporting per-thread shadow stats

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:38PM +0800, Jin Yao wrote: > In current stat-shadow.c, the rblist deleting is ignored. > > The patch reconstructs the codes of rblist init/free, and adds > the implementation to node_delete method of rblist. > > This patch also does: > > 1. Add the ctx/type/stat int

Re: [PATCH v1 3/9] perf util: Reconstruct rblist for supporting per-thread shadow stats

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:38PM +0800, Jin Yao wrote: SNIP > +static void init_saved_rblist(struct rblist *rblist) > +{ > + rblist__init(rblist); > + rblist->node_cmp = saved_value_cmp; > + rblist->node_new = saved_value_new; > + rblist->node_delete = saved_value_delete; > +} >

Re: [PATCH v1 3/9] perf util: Reconstruct rblist for supporting per-thread shadow stats

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:38PM +0800, Jin Yao wrote: SNIP > static int evsel_context(struct perf_evsel *evsel) > diff --git a/tools/perf/util/stat.h b/tools/perf/util/stat.h > index 61fd2e0..4eb081d 100644 > --- a/tools/perf/util/stat.h > +++ b/tools/perf/util/stat.h > @@ -126,6 +126,8 @@ ty

Re: [PATCH v1 3/9] perf util: Reconstruct rblist for supporting per-thread shadow stats

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:38PM +0800, Jin Yao wrote: > In current stat-shadow.c, the rblist deleting is ignored. > > The patch reconstructs the codes of rblist init/free, and adds > the implementation to node_delete method of rblist. > > This patch also does: > > 1. Add the ctx/type/stat int

Re: [PATCH v1 5/9] perf util: Remove a set of shadow stats static variables

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:40PM +0800, Jin Yao wrote: > In previous patches, we have reconstructed the code and let > it not access the static variables directly. > > This patch removes these static variables. > > Signed-off-by: Jin Yao > --- > tools/perf/util/stat-shadow.c | 64 > +

Re: [PATCH v1 4/9] perf util: Update and print per-thread shadow stats

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:39PM +0800, Jin Yao wrote: SNIP > diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c > index 045e129..6f28782 100644 > --- a/tools/perf/util/stat-shadow.c > +++ b/tools/perf/util/stat-shadow.c > @@ -110,19 +110,32 @@ static void saved_value_de

Re: [PATCH v1 2/9] perf util: Define a structure for runtime shadow metrics stats

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:37PM +0800, Jin Yao wrote: SNIP > + STAT_SMI_NUM, > + STAT_APERF, > + STAT_MAX > +}; > + > +struct runtime_stat { > + struct rblist value_list; > +}; > + > struct perf_stat_config { > enum aggr_mode aggr_mode; > boolscale; >

Re: [PATCH v1 8/9] perf stat: Remove --per-thread pid/tid limitation

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:43PM +0800, Jin Yao wrote: > Currently, if we execute 'perf stat --per-thread' without specifying > pid/tid, perf will return error. > > root@skl:/tmp# perf stat --per-thread > The --per-thread option is only available when monitoring via -p -t options. > -p, --pi

Re: [PATCH v1 8/9] perf stat: Remove --per-thread pid/tid limitation

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:43PM +0800, Jin Yao wrote: SNIP > diff --git a/tools/perf/util/target.h b/tools/perf/util/target.h > index 446aa7a..6ef01a8 100644 > --- a/tools/perf/util/target.h > +++ b/tools/perf/util/target.h > @@ -64,6 +64,11 @@ static inline bool target__none(struct target *ta

Re: [RFC PATCH for 4.15 v3 14/22] cpu_opv: selftests: Implement selftests

2017-11-21 Thread Shuah Khan
On 11/21/2017 07:18 AM, Mathieu Desnoyers wrote: > Implement cpu_opv selftests. It needs to express dependencies on > header files and .so, which require to override the selftests > lib.mk targets. Introduce a new OVERRIDE_TARGETS define for this. > > Signed-off-by: Mathieu Desnoyers > CC: Russel

Re: [PATCH v1 3/9] perf util: Reconstruct rblist for supporting per-thread shadow stats

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:38PM +0800, Jin Yao wrote: SNIP > > +static void init_saved_rblist(struct rblist *rblist) > +{ > + rblist__init(rblist); > + rblist->node_cmp = saved_value_cmp; > + rblist->node_new = saved_value_new; > + rblist->node_delete = saved_value_delete; >

Re: [PATCH v1 8/9] perf stat: Remove --per-thread pid/tid limitation

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:43PM +0800, Jin Yao wrote: SNIP > - if ((stat_config.aggr_mode == AGGR_THREAD) && > !target__has_task(&target)) { > - fprintf(stderr, "The --per-thread option is only available " > - "when monitoring via -p -t options.\n"); > -

Re: [PATCH] perf parse events: Fix invalid precise_ip handling

2017-11-21 Thread Jiri Olsa
On Tue, Nov 21, 2017 at 04:30:09PM +0800, zhangmengting wrote: SNIP > > > > also I think the precise level is not generic for all the events, > > > > so you should check it for specific perf_event_attr later, when > > > > the attr is ready, not in modifier parsing > > > You are right, and I would

Re: [PATCH RT] fix IPI balancing for 4.14-rt

2017-11-21 Thread Steven Rostedt
On Tue, 21 Nov 2017 09:14:25 -0600 Clark Williams wrote: > From 8ea8311b75a40bdea03e7f8228a0578b6367e9d1 Mon Sep 17 00:00:00 2001 > From: Clark Williams > Date: Mon, 20 Nov 2017 14:26:12 -0600 > Subject: [PATCH] [rt] sched/rt: fix panic in double_lock_balance with > simplified IPI RT balancing

Re: [PATCH v1 4/9] perf util: Update and print per-thread shadow stats

2017-11-21 Thread Jiri Olsa
On Mon, Nov 20, 2017 at 10:43:39PM +0800, Jin Yao wrote: SNIP > if (num == 0) > diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c > index 151e9ef..50bb16d 100644 > --- a/tools/perf/util/stat.c > +++ b/tools/perf/util/stat.c > @@ -278,9 +278,16 @@ process_counter_values(struct per

Re: [GIT PULL] usercopy whitelisting for v4.15-rc1

2017-11-21 Thread Linus Torvalds
[ This turned longer than it should have. I guess jet lag is a good thing ] On Tue, Nov 21, 2017 at 3:48 AM, Jason A. Donenfeld wrote: > > It might be news to you that actually some security people scoff at > other security peoples' obsession with "security bugs". Heh. I'm not actually surprised

Re: [PATCH 4.14 00/31] 4.14.1-stable review

2017-11-21 Thread Ben Hutchings
On Mon, 2017-11-20 at 06:27 -0800, Guenter Roeck wrote: > On 11/19/2017 06:59 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.1 release. > > There are 31 patches in this series, all will be posted as a response > > to this one.  If anyone has any issues w

[GIT PULL] RTC for 4.15

2017-11-21 Thread Alexandre Belloni
Hi Linus, Here is the pull-request for the RTC subsystem for 4.14. The last minute change is only a documentation update to avoid further bug reports. (And also a small commit message reword). There is nothing scary this cycle, mostly driver fixes and updates. The core fix has been in for a whil

Re: [ata_port_probe] BUG: unable to handle kernel NULL pointer dereference at 0000000000000350

2017-11-21 Thread Arnd Bergmann
On Tue, Nov 21, 2017 at 3:57 PM, Tejun Heo wrote: > Hello, > > On Tue, Nov 21, 2017 at 01:54:25PM +0100, Arnd Bergmann wrote: >> > [ 56.376960] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100 >> > [ 56.379169] ata2.00: configured for MWDMA2 >> > [ 56.381518] ata2.00: disabled >> > [ 56.38

Re: KASAN: use-after-free Read in snd_timer_user_info_compat

2017-11-21 Thread Dmitry Vyukov
On Sun, Oct 29, 2017 at 11:10 AM, Takashi Iwai wrote: > On Fri, 27 Oct 2017 10:34:01 +0200, > syzbot wrote: >> >> Hello, >> >> syzkaller hit the following crash on >> 33d930e59a98fa10a0db9f56c7fa2f21a4aef9b9 >> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master >> compiler: gc

Re: [PATCH] mm, mlock, vmscan: no more skipping pagevecs

2017-11-21 Thread Johannes Weiner
On Sat, Nov 04, 2017 at 03:43:12PM -0700, Shakeel Butt wrote: > When a thread mlocks an address space backed by file, a new > page is allocated (assuming file page is not in memory), added > to the local pagevec (lru_add_pvec), I/O is triggered and the > thread then sleeps on the page. On I/O compl

Re: [PATCH] 4.4.86-rt99: fix sync breakage between nr_cpus_allowed and cpus_allowed

2017-11-21 Thread joe . korty
On Tue, Nov 21, 2017 at 09:33:52AM -0500, joe.ko...@concurrent-rt.com wrote: > On Mon, Nov 20, 2017 at 11:57:51PM -0500, Steven Rostedt wrote: > > On Mon, 20 Nov 2017 23:02:07 -0500 > > Steven Rostedt wrote: > > > > > > > Ideally, I would like to stay close to what upstream -rt does. Would > > >

Re: [PATCH 16/16] x86/entry/64: Move the IST stacks into cpu_entry_area

2017-11-21 Thread Andy Lutomirski
On Mon, Nov 20, 2017 at 11:38 PM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> /* May not be marked __init: used by software suspend */ >> void syscall_init(void) >> { >> @@ -1627,7 +1637,7 @@ void cpu_init(void) >>* set up and load the per-CPU TSS >>*/ >> if (!oi

Re: [RFC PATCH for 4.15 v3 15/22] rseq: selftests: Provide self-tests

2017-11-21 Thread Shuah Khan
On 11/21/2017 07:18 AM, Mathieu Desnoyers wrote: > Implements two basic tests of RSEQ functionality, and one more > exhaustive parameterizable test. > > The first, "basic_test" only asserts that RSEQ works moderately > correctly. E.g. that the CPUID pointer works. > > "basic_percpu_ops_test" is a

Re: [PATCH 11/16] x86/asm/64: Use a percpu trampoline stack for IDT entries

2017-11-21 Thread Andy Lutomirski
On Mon, Nov 20, 2017 at 11:20 PM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c >> index 1ea03027a4a9..e4a941be96cf 100644 >> --- a/arch/x86/kernel/traps.c >> +++ b/arch/x86/kernel/traps.c > >> -asmlinkage __visible notrace >>

Re: [PATCH 2/2] ARM: dts: TS-7970: add basic device tree

2017-11-21 Thread Sebastien Bourdelin
Hi Fabio, On 11/20/2017 06:37 PM, Fabio Estevam wrote: > Hi Sebastien, > > On Mon, Nov 20, 2017 at 7:15 PM, Sebastien Bourdelin > wrote: > >> +&ecspi2 { >> + cs-gpios = < >> + &gpio5 31 GPIO_ACTIVE_HIGH >> + &gpio7 12 GPIO_ACTIVE_HIGH >> + &gpio5

[ANNOUNCE] 4.9.61-rt51

2017-11-21 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.9.61-rt51 stable release. This release is just an update to the new stable 4.9.61 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.g

[ANNOUNCE] 4.4.97-rt110

2017-11-21 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.4.97-rt110 stable release. This release is just an update to the new stable 4.4.97 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.

Re: [PATCH V14 07/24] mmc: block: Use data timeout in card_busy_detect()

2017-11-21 Thread Ulf Hansson
On 21 November 2017 at 14:42, Adrian Hunter wrote: > card_busy_detect() has a 10 minute timeout. However the correct timeout is > the data timeout. Change card_busy_detect() to use the data timeout. Unfortunate I don't think there is "correct" timeout for this case. The data->timeout_ns is to in

Re: [RFC PATCH for 4.15 16/22] rseq: selftests: arm: workaround gcc asm size guess

2017-11-21 Thread Shuah Khan
On 11/21/2017 07:18 AM, Mathieu Desnoyers wrote: > Fixes assembler errors: > /tmp/cceKwI9a.s: Assembler messages: > /tmp/cceKwI9a.s:849: Error: co-processor offset out of range > > with gcc prior to gcc-7. This can trigger if multiple rseq inline asm > are used within the same function. > > My be

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