[PATCH V2 for-next 0/8] Bug fixes & Code improvements in hip06 and hip08 RoCE driver

2017-09-29 Thread Wei Hu (Xavier)
This patch-set introduces some bug fixes and code improvements for hip06 and hip08 RoCE driver. It includes a patch for fixing the assign algorithm of qp_attr->max_rd_atomic and qp_attr->max_dest_rd_atomic, three patches for static check errors, one for setting attr mask, one for returning RoCE dev

Re: [PATCH v2 0/2] mtd: nand: wait for tWHR, and fix the setup_data_interface of Denali

2017-09-29 Thread Masahiro Yamada
(+CC Marc Gonzalez) 2017-09-29 21:26 GMT+09:00 Boris Brezillon : > On Fri, 29 Sep 2017 19:38:38 +0900 > Masahiro Yamada wrote: > >> 1/2 : add NAND_WAIT_TWHR and nand_whr_delay(). >> You can set this new flag if you want nand_command(_lp) >> to insert tWHR delay where needed. >> >> 2/2

Re: [PATCH RESEND] KVM: nVMX: Fix nested #PF intends to break L1's vmlauch/vmresume

2017-09-29 Thread Paolo Bonzini
On 29/09/2017 03:16, Wanpeng Li wrote: > From: Wanpeng Li > > [ cut here ] > WARNING: CPU: 4 PID: 5280 at /home/kernel/linux/arch/x86/kvm//vmx.c:11394 > nested_vmx_vmexit+0xc2b/0xd70 [kvm_intel] > CPU: 4 PID: 5280 Comm: qemu-system-x86 Tainted: GW OE 4.13.0+

Re: [PATCH v2 0/2] mtd: nand: wait for tWHR, and fix the setup_data_interface of Denali

2017-09-29 Thread Boris Brezillon
On Fri, 29 Sep 2017 23:06:42 +0900 Masahiro Yamada wrote: > 2017-09-29 21:26 GMT+09:00 Boris Brezillon > : > > On Fri, 29 Sep 2017 19:38:38 +0900 > > Masahiro Yamada wrote: > > > >> 1/2 : add NAND_WAIT_TWHR and nand_whr_delay(). > >> You can set this new flag if you want nand_command(_l

Re: How to verify linux-next

2017-09-29 Thread Pintu Kumar
On Fri, Sep 29, 2017 at 6:44 PM, Damian Tometzki wrote: > Hello, > > Ubuntu 16.04 with current linux-next Kernel workson virtualbox 5.1.28 > > Host: Windows 10 > Guest: Ubuntu 16.04 > > Best regards > Damian > > > Am Freitag, den 29.09.2017, 08:41 -0400 schrieb > valdis.kletni...@vt.edu: >> On Fri

Re: [PATCHv2 2/7] usb: dwc2: add support for STM32F7 USB OTG HS

2017-09-29 Thread Amelie DELAUNAY
Hi, Gentle ping for driver review submitted on August 28th. Thanks, Amelie On 08/28/2017 04:20 PM, Amelie Delaunay wrote: > This patch adds the dwc2_set_params function for STM32F7 USB OTG HS. > > Signed-off-by: Amelie Delaunay > --- > drivers/usb/dwc2/params.c | 11 +++ > 1 file ch

[PATCH v3] ARM: dts: stm32: Add DMAMUX support for STM32H743 SoC

2017-09-29 Thread Pierre-Yves MORDRET
This patch adds DMAMUX support for STM32H743 SoC. Signed-off-by: Pierre-Yves MORDRET --- Version history: v3: * Rebase on v4.14-rc2 v2: * Update DTS to be compliant with up-streamed bindings v1: * Initial --- --- arch/arm/boot/dts/stm32h743.dtsi | 12 +++

[PATCH v3] mtd: nand: denali: fix setup_data_interface to meet tCCS delay

2017-09-29 Thread Masahiro Yamada
The WE_2_RE register specifies the number of clock cycles inserted between the rising edge of #WE and the falling edge of #RE. The current setup_data_interface implementation takes care of tWHR, but tCCS is missing. Wait for max(tCSS, tWHR) to meet the spec. With setup_data_interface() properly

[PATCH] x86: use register variable to get stack pointer value

2017-09-29 Thread Andrey Ryabinin
Currently we use current_stack_pointer() function to get the value of the stack pointer register. Since commit f5caf621ee35 ("x86/asm: Fix inline asm call constraints for Clang") we have stack register variable declared. It can be used instead of current_stack_pointer() function which allows to opt

Re: keyboard backlight max_brightness bug on Dell Latitude E6410

2017-09-29 Thread Pali Rohár
Yes, that would fix problem for you and break other machines... On Friday 29 September 2017 07:08:23 Gabriel M. Elder wrote: > FYI, latest update and info relating to > https://bugzilla.kernel.org/show_bug.cgi?id=196913 > > > --- a/drivers/platform/x86/dell-laptop.c > +++ a/drivers/platfor

Re: [PATCH 07/12] usb: mtu3: add support for usb3.1 IP

2017-09-29 Thread Chunfeng Yun
On Thu, 2017-09-28 at 08:17 +0800, Chunfeng Yun wrote: > Support SuperSpeedPlus for usb3.1 device IP > > Signed-off-by: Chunfeng Yun > --- > drivers/usb/mtu3/mtu3.h|1 + > drivers/usb/mtu3/mtu3_core.c | 14 +++--- > drivers/usb/mtu3/mtu3_gadget.c |3 ++- >

[PATCH 4/6] x86/xen: Provide pre-built page tables only for XEN_PV and XEN_PVH

2017-09-29 Thread Kirill A. Shutemov
Looks like we only need pre-built page tables for XEN_PV and XEN_PVH cases. Let's not provide them for other configurations. Signed-off-by: Kirill A. Shutemov Reviewed-by: Juergen Gross --- arch/x86/kernel/head_64.S | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a

[PATCH 3/6] x86/kasan: Use the same shadow offset for 4- and 5-level paging

2017-09-29 Thread Kirill A. Shutemov
From: Andrey Ryabinin We are going to support boot-time switching between 4- and 5-level paging. For KASAN it means we cannot have different KASAN_SHADOW_OFFSET for different paging modes: the constant is passed to gcc to generate code and cannot be changed at runtime. This patch changes KASAN c

[PATCH 1/6] mm/sparsemem: Allocate mem_section at runtime for SPARSEMEM_EXTREME

2017-09-29 Thread Kirill A. Shutemov
Size of mem_section array depends on size of physical address space. In preparation for boot-time switching between paging modes on x86-64 we need to make allocation of mem_section dynamic. With CONFIG_NODE_SHIFT=10, mem_section size if 32k for 4-level paging and 2M for 5-level paging mode. The

[PATCH 0/6] Boot-time switching between 4- and 5-level paging for 4.15, Part 1

2017-09-29 Thread Kirill A. Shutemov
The first bunch of patches that prepare kernel to boot-time switching between paging modes. Please review and consider applying. Andrey Ryabinin (1): x86/kasan: Use the same shadow offset for 4- and 5-level paging Kirill A. Shutemov (5): mm/sparsemem: Allocate mem_section at runtime for SPAR

[PATCH 2/6] mm/zsmalloc: Prepare to variable MAX_PHYSMEM_BITS

2017-09-29 Thread Kirill A. Shutemov
With boot-time switching between paging mode we will have variable MAX_PHYSMEM_BITS. Let's use the maximum variable possible for CONFIG_X86_5LEVEL=y configuration to define zsmalloc data structures. The patch introduces MAX_POSSIBLE_PHYSMEM_BITS to cover such case. It also suits well to handle PA

RE: keyboard backlight max_brightness bug on Dell Latitude E6410

2017-09-29 Thread Gabriel M. Elder
FYI, latest update and info relating to https://bugzilla.kernel.org/show_bug.cgi?id=196913 --- a/drivers/platform/x86/dell-laptop.c +++ a/drivers/platform/x86/dell-laptop.c @@ -1217,7 +1217,7 @@ static int kbd_get_info(struct kbd_info *info) static unsigned int kbd_get_max_level(

[PATCH 5/6] x86/xen: Drop 5-level paging support code from XEN_PV code

2017-09-29 Thread Kirill A. Shutemov
It was decided 5-level paging is not going to be supported in XEN_PV. Let's drop the dead code from XEN_PV code. Signed-off-by: Kirill A. Shutemov Reviewed-by: Juergen Gross Tested-by: Juergen Gross --- arch/x86/xen/mmu_pv.c | 159 +++--- 1 file cha

[PATCH 6/6] x86/boot/compressed/64: Detect and handle 5-level paging at boot-time

2017-09-29 Thread Kirill A. Shutemov
This patch prepare decompression code to boot-time switching between 4- and 5-level paging. Signed-off-by: Kirill A. Shutemov --- arch/x86/boot/compressed/head_64.S | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/head_64.S

Re: [PATCH v2 0/2] mtd: nand: wait for tWHR, and fix the setup_data_interface of Denali

2017-09-29 Thread Masahiro Yamada
2017-09-29 21:26 GMT+09:00 Boris Brezillon : > On Fri, 29 Sep 2017 19:38:38 +0900 > Masahiro Yamada wrote: > >> 1/2 : add NAND_WAIT_TWHR and nand_whr_delay(). >> You can set this new flag if you want nand_command(_lp) >> to insert tWHR delay where needed. >> >> 2/2 : Fix Denali setup_d

Re: How to verify linux-next

2017-09-29 Thread Damian Tometzki
Hello, i can tell you ubuntu 16.04 works under virtualbox 5.1.28 with the current linux-next kernel My maschine: Host: Windows 10 Guest: Ubuntu 16.04 Am Freitag, den 29.09.2017, 08:41 -0400 schrieb valdis.kletni...@vt.edu: > On Fri, 29 Sep 2017 16:08:07 +0530, Pintu Kumar said: > > > > > I hav

Re: [lkp-robot] [x86/mm] 9e52fc2b50: will-it-scale.per_thread_ops -16% regression

2017-09-29 Thread Vitaly Kuznetsov
Peter Zijlstra writes: > On Fri, Sep 29, 2017 at 03:13:29PM +0200, Peter Zijlstra wrote: >> On Fri, Sep 29, 2017 at 02:24:03PM +0200, Vitaly Kuznetsov wrote: >> > 1) In case the system is under extreme memory pressure and >> > __get_free_page() is failing in tlb_remove_table() we'll be doing >> >

[PATCH][net-next] net_sched: remove redundant assignment to ret

2017-09-29 Thread Colin King
From: Colin Ian King The assignment of -EINVAL to variable ret is redundant as it is being overwritten on the following error exit paths or to the return value from the following call to basic_set_parms. Fix this up by removing it. Cleans up clang warning message: net/sched/cls_basic.c:185:2: wa

RE: [RESEND PATCH 2/6] staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver

2017-09-29 Thread Razvan Stefanescu
> -Original Message- > From: Bogdan Purcareata > Sent: Friday, September 29, 2017 16:36 > To: Razvan Stefanescu ; > gre...@linuxfoundation.org > Cc: de...@driverdev.osuosl.org; linux-kernel@vger.kernel.org; > net...@vger.kernel.org; ag...@suse.de; a...@arndb.de; Alexandru Marginean > ; Ru

Re: [PATCH] mm/madvise: enable soft offline of HugeTLB pages at PUD level

2017-09-29 Thread Kirill A. Shutemov
On Wed, Sep 13, 2017 at 12:10:47PM +0200, Alexandru Moise wrote: > since 94310cb we've been able to soft offline 1G hugepages at the PGD > level, however x86_64 gigantic hugepages are at the PUD level so we > should add an extra check to account for hstate order at PUD level. Have you tested other

[PATCH][rdma-next] RDMA/hns: remove redundant assignment to variable j

2017-09-29 Thread Colin King
From: Colin Ian King Variable j is being assigned to loop_j and then later being assigned to a new value in for loops. The first initialization is therefore redundant and can be removed. Cleans up clang warning: warning: Value stored to 'j' is never read Signed-off-by: Colin Ian King --- driv

Re: [PATCH 3/3] pipe: add proc_dopipe_max_size() to safely assign pipe_max_size

2017-09-29 Thread kbuild test robot
-size-fixups/20170929-205234 config: i386-tinyconfig (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All errors (new ones prefixed by >>): fs/pipe.o: In function `pipe_p

[git pull] IOMMU Fixes for Linux v4.14-rc2

2017-09-29 Thread Joerg Roedel
Hi Linus, The following changes since commit e19b205be43d11bff638cad4487008c48d21c103: Linux 4.14-rc2 (2017-09-24 16:38:56 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v4.14-rc2 for you to fetch changes up to

Re: [PATCH 2/4] clk: tegra: check BPMP response return code

2017-09-29 Thread Timo Alho
Hi Jon, On 21.09.2017 14:21, Jonathan Hunter wrote: On 07/09/17 10:31, Timo Alho wrote: Check return code in BPMP response message(s). The typical error case is when clock operation is attempted with invalid clock identifier. Also remove error print from call to clk_get_info() as the impleme

Re: [PATCH] extcon: Split out extcon header file for consumer and provider device

2017-09-29 Thread Sebastian Reichel
Hi, On Fri, Sep 29, 2017 at 09:01:45AM +0900, Chanwoo Choi wrote: > The extcon has two type of extcon devices as following. > - 'extcon provider deivce' adds new extcon device and detect the >state/properties of external connector. Also, it notifies the >state/properties to the extcon cons

[PATCH v3 17/22][UPDATE] firmware: arm_scmi: add device power domain support genpd

2017-09-29 Thread Sudeep Holla
This patch hooks up the support for device power domain provided by SCMI using the Linux generic power domain infrastructure. Cc: Kevin Hilman Cc: Ulf Hansson Signed-off-by: Sudeep Holla --- drivers/firmware/Kconfig | 13 +++ drivers/firmware/arm_scmi/Makefile | 1

Re: [PATCH v2 2/5] iio: Introduce the generic counter interface

2017-09-29 Thread Benjamin Gaignard
2017-09-25 20:08 GMT+02:00 William Breathitt Gray : > This patch introduces the IIO generic counter interface for supporting > counter devices. The generic counter interface serves as a catch-all to > enable rudimentary support for devices that qualify as counters. More > specific and apt counter i

Re: [PATCH] firmware: tegra: add BPMP debugfs support

2017-09-29 Thread Timo Alho
Jon, Thanks for reviewing this! On 21.09.2017 14:10, Jonathan Hunter wrote: --- a/drivers/firmware/tegra/bpmp.c +++ b/drivers/firmware/tegra/bpmp.c @@ -824,6 +824,8 @@ static int tegra_bpmp_probe(struct platform_device *pdev) if (err < 0) goto free_mrq; + (void)tegra_

Re: [PATCH v3 17/22] firmware: arm_scmi: add device power domain support using genpd

2017-09-29 Thread Sudeep Holla
On 28/09/17 22:18, Ulf Hansson wrote: > On 28 September 2017 at 15:11, Sudeep Holla wrote: >> This patch hooks up the support for device power domain provided by >> SCMI using the Linux generic power domain infrastructure. >> >> Cc: Kevin Hilman >> Cc: Ulf Hansson >> Signed-off-by: Sudeep Holl

usb/input/iforce: URB submitted while active in iforce_get_id_packet

2017-09-29 Thread Andrey Konovalov
Hi! I've been getting reports like the one below while fuzzing the kernel with syzkaller. I can't reproduce the issue without the local changes I have to USB core, but this is only place where I get a report like this, and I'm trying to understand whether it is legit. iforce_init_device() calls i

RE: [RESEND PATCH 2/6] staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver

2017-09-29 Thread Bogdan Purcareata
> Introduce the DPAA2 Ethernet Switch driver, which manages Datapath Switch > (DPSW) objects discovered on the MC bus. > > Suggested-by: Alexandru Marginean > Signed-off-by: Razvan Stefanescu > --- > drivers/staging/fsl-dpaa2/ethsw/Makefile |2 +- > drivers/staging/fsl-dpaa2/ethsw/ethsw.c

[PATCH][net-next] net: ipmr: make function ipmr_notifier_init static

2017-09-29 Thread Colin King
From: Colin Ian King The function ipmr_notifier_init is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: warning: symbol 'ipmr_notifier_init' was not declared. Should it be static? Signed-off-by: Colin Ian King --- net/ipv4/ipmr.c | 2 +

[PATCH v2] mtd: nand: pxa3xx_nand: Update Kconfig information

2017-09-29 Thread Gregory CLEMENT
More and more SoCs use the pxa3xx_nand driver for their controller but the list of them was not updated. This patch add the last SoCs using the driver. Signed-off-by: Gregory CLEMENT --- Changelog v1->v2: - Improve wording thanks to Thomas Petazzoni drivers/mtd/nand/Kconfig | 5 - 1 file c

Re: [GIT PULL] Introduce housekeeping subsystem v4

2017-09-29 Thread Frederic Weisbecker
On 28/09/2017 11:54, Ingo Molnar wrote: * Frederic Weisbecker wrote: Ingo, Please pull the core/isolation-v4 branch that can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git core/isolation-v4 HEAD: cf4c55aad44251369c8507c3823f9f9c51d4dc77 Summ

Re: [PATCH 3/4] pci aer: fix deadlock in do_recovery

2017-09-29 Thread Sinan Kaya
On 9/28/2017 7:46 PM, Govindarajulu Varadarajan wrote: >> How about releasing the device_lock here on CPU0?> > > pci_device_add() is called by driver's pci probe function. device_lock(dev) > should be held before calling pci driver probe function. I see. The goal of the lock held here is to prote

[PATCH v2 02/16] hyper-v: trace vmbus_on_message()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to vmbus_on_message() which is called when we start processing a blocking from work context. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 2 ++ drivers/hv/hv_trace.h | 5 + 2 files changed, 7 insertions(+) diff --git a/drivers/hv/channel_mgmt.c b/driver

[PATCH v2 04/16] hyper-v: trace vmbus_onoffer_rescind()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_RESCIND_CHANNELOFFER handler. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 2 ++ drivers/hv/hv_trace.h | 8 2 files changed, 10 insertions(+) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 290ea25ce409..56365

[PATCH v2 01/16] hyper-v: trace vmbus_on_msg_dpc()

2017-09-29 Thread Vitaly Kuznetsov
Add tracing subsystem to Hyper-V VMBus module and add tracepoint to vmbus_on_msg_dpc() which is called when we receive a message from host. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/Makefile | 4 +++- drivers/hv/hv_trace.c | 4 drivers/hv/hv_trace.h | 29 +++

[PATCH v2 08/16] hyper-v: trace vmbus_onversion_response()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_VERSION_RESPONSE handler. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 3 +++ drivers/hv/hv_trace.h | 11 +++ 2 files changed, 14 insertions(+) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 1ff2cc064850..a9a

[PATCH v2 06/16] hyper-v: trace vmbus_ongpadl_created()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_GPADL_CREATED handler. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 2 ++ drivers/hv/hv_trace.h | 17 + 2 files changed, 19 insertions(+) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 2abe0563876b..a

[PATCH v2 09/16] hyper-v: trace vmbus_request_offers()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_REQUESTOFFERS sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 4 +++- drivers/hv/hv_trace.h | 8 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index a9a1fc1424

[PATCH v2 07/16] hyper-v: trace vmbus_ongpadl_torndown()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_GPADL_TORNDOWN handler. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 2 ++ drivers/hv/hv_trace.h | 8 2 files changed, 10 insertions(+) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index af2448e245ca..1ff2cc06485

[PATCH v2 11/16] hyper-v: trace vmbus_close_internal()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_CLOSECHANNEL sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 2 ++ drivers/hv/hv_trace.h | 15 +++ 2 files changed, 17 insertions(+) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 82cb57e2d6bd..f919d9dd984b 100644 ---

[PATCH v2 10/16] hyper-v: trace vmbus_open()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_OPENCHANNEL sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 2 ++ drivers/hv/hv_trace.h | 27 +++ 2 files changed, 29 insertions(+) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index efd5db743319..82cb57e2d6bd

Re: [PATCH v3 3/3] kernel/uprobes: Fix check for active uprobe

2017-09-29 Thread Srikar Dronamraju
> > > > --- a/kernel/events/uprobes.c > > +++ b/kernel/events/uprobes.c > > @@ -1751,6 +1751,19 @@ static struct uprobe *find_active_uprobe(unsigned > > long bp_vaddr, int *is_swbp) > > uprobe = find_uprobe(inode, offset); > > } > > > > + /* Ensure that

[PATCH v2 13/16] hyper-v: trace vmbus_teardown_gpadl()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_GPADL_TEARDOWN sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 2 ++ drivers/hv/hv_trace.h | 18 ++ 2 files changed, 20 insertions(+) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index cf6bc0667cde..9cb81838e7bb 10064

[PATCH v2 15/16] hyper-v: trace vmbus_release_relid()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_RELID_RELEASED sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 7 +-- drivers/hv/hv_trace.h | 16 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c i

Re: [PATCHv1 00/14] omapdrm: DSI command mode panel support

2017-09-29 Thread Sebastian Reichel
Hi Tomi & Laurent, ping? -- Sebastian On Mon, Jul 24, 2017 at 07:32:57PM +0200, Sebastian Reichel wrote: > Hi, > > This adds support for command mode DSI panels to > omapdrm. I tested the patches on Nokia N950 (omap3) > and Motorola Droid 4 (omap4). This is basically > PATCHv3 of my series addi

[PATCH] seccomp: make function __get_seccomp_filter static

2017-09-29 Thread Colin King
From: Colin Ian King The function __get_seccomp_filter is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol '__get_seccomp_filter' was not declared. Should it be static? Signed-off-by: Colin Ian King --- kernel/seccomp.c | 2 +- 1

[PATCH v2 12/16] hyper-v: trace vmbus_establish_gpadl()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_GPADL_HEADER/CHANNELMSG_GPADL_BODY sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 6 ++ drivers/hv/hv_trace.h | 42 ++ 2 files changed, 48 insertions(+) diff --git a/drivers/hv/channel.c b/drivers/hv/

[PATCH v2 14/16] hyper-v: trace vmbus_negotiate_version()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_INITIATE_CONTACT sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/connection.c | 3 +++ drivers/hv/hv_trace.h | 26 ++ 2 files changed, 29 insertions(+) diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index f41901f80b6

[PATCH v2 16/16] hyper-v: trace vmbus_send_tl_connect_request()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_TL_CONNECT_REQUEST sender. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 7 ++- drivers/hv/hv_trace.h | 20 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 9cb818

[PATCH v2 05/16] hyper-v: trace vmbus_onopen_result()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_OPENCHANNEL_RESULT handler. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 2 ++ drivers/hv/hv_trace.h | 17 + 2 files changed, 19 insertions(+) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 563653a02a

[PATCH v2 03/16] hyper-v: trace vmbus_onoffer()

2017-09-29 Thread Vitaly Kuznetsov
Add tracepoint to CHANNELMSG_OFFERCHANNEL handler. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel_mgmt.c | 2 ++ drivers/hv/hv_trace.h | 37 + 2 files changed, 39 insertions(+) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c in

[PATCH v2 00/16] Hyper-V: add tracing to VMBus module and trace all messages

2017-09-29 Thread Vitaly Kuznetsov
Changes since v1: - Use DECLARE_EVENT_CLASS/DEFINE_EVENT_PRINT for vmbus_on_msg_dpc/ vmbus_onmessage tracing (Steven Rostedt) Messages between guest and host are used in Hyper-V as control flow. To simplify debugging various issues which are often hard to reproduce add tracepoints to all message

Re: [PATCH] PCI: Fix legacy IRQ assignment execution stage

2017-09-29 Thread Lorenzo Pieralisi
On Thu, Sep 28, 2017 at 05:37:19PM -0500, Bjorn Helgaas wrote: > On Thu, Sep 28, 2017 at 12:37:07PM +0100, Lorenzo Pieralisi wrote: > > Through struct pci_host_bridge->{map/swizzle}_irq() hooks is now > > possible to define IRQ mapping functions on a per PCI host bridge basis. > > > > Actual IRQ a

Re: [lkp-robot] [x86/mm] 9e52fc2b50: will-it-scale.per_thread_ops -16% regression

2017-09-29 Thread Peter Zijlstra
On Fri, Sep 29, 2017 at 03:13:29PM +0200, Peter Zijlstra wrote: > On Fri, Sep 29, 2017 at 02:24:03PM +0200, Vitaly Kuznetsov wrote: > > 1) In case the system is under extreme memory pressure and > > __get_free_page() is failing in tlb_remove_table() we'll be doing > > smp_call_function() for _each_

[PATCH][rdma-next] RDMA/hns: make various function static, fixes warnings

2017-09-29 Thread Colin King
From: Colin Ian King The functions hns_roce_table_mhop_get, hns_roce_table_mhop_put, hns_roce_cleanup_mhop_hem_table, hns_roce_v1_post_mbox, hns_roce_cmq_setup_basic_desc, hns_roce_cmq_send, hns_roce_cmq_query_hw_info are all local to the source and do not need to be in global scope, so make the

Re: [PATCH for-next 3/9] RDMA/hns: Add return statement when kzalloc return NULL in hns_roce_v1_recreate_lp_qp

2017-09-29 Thread Wei Hu (Xavier)
On 2017/9/29 18:23, Leon Romanovsky wrote: On Fri, Sep 29, 2017 at 02:07:22PM +0800, Wei Hu (Xavier) wrote: On 2017/9/28 20:59, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 07:56:59PM +0800, Wei Hu (Xavier) wrote: On 2017/9/28 17:13, Leon Romanovsky wrote: On Thu, Sep 28, 2017 at 12:57:2

Re: [PATCH v2] iio: dummy: evgen: use irq_sim

2017-09-29 Thread Lars-Peter Clausen
On 09/28/2017 12:56 PM, Bartosz Golaszewski wrote: > Switch to using the recently added interrupt simulator for dummy irqs. > > Signed-off-by: Bartosz Golaszewski Reviewed-by: Lars-Peter Clausen Tested-by: Lars-Peter Clausen I've backported irq_sim to v4.9 for testing and got compile errors d

Re: How to verify linux-next

2017-09-29 Thread Damian Tometzki
Hello, Ubuntu 16.04 with current linux-next Kernel workson virtualbox 5.1.28 Host: Windows 10 Guest: Ubuntu 16.04 Best regards Damian Am Freitag, den 29.09.2017, 08:41 -0400 schrieb valdis.kletni...@vt.edu: > On Fri, 29 Sep 2017 16:08:07 +0530, Pintu Kumar said: > > > > > I have a general qu

[PATCH] CLK: ARC: Set initial pll output frequency specified in device tree

2017-09-29 Thread Eugeniy Paltsev
Add option to set initial output frequency of plls via "clock-frequency" property in pll's device tree node. This frequency will be set while pll driver probed. The usage example is setting CPU clock frequency on boot See discussion: https://www.mail-archive.com/linux-snps-arc@lists.infradead.org/

Re: [lkp-robot] [x86/mm] 9e52fc2b50: will-it-scale.per_thread_ops -16% regression

2017-09-29 Thread Peter Zijlstra
On Fri, Sep 29, 2017 at 02:24:03PM +0200, Vitaly Kuznetsov wrote: > 1) In case the system is under extreme memory pressure and > __get_free_page() is failing in tlb_remove_table() we'll be doing > smp_call_function() for _each_ call (avoiding batching). We may want to > have a pre-allocated pool.

Re: [PATCH v1 07/14] tee: optee: add shared buffer registration functions

2017-09-29 Thread Mark Rutland
On Thu, Sep 28, 2017 at 09:04:04PM +0300, Volodymyr Babchuk wrote: > From: Volodymyr Babchuk > > This change adds ops for shm_(un)register functions in tee interface. > Client application can use these functions to (un)register an own shared > buffer in OP-TEE address space. This allows zero copy

Re: [PATCH -v2 02/18] sched/fair: Add comment to calc_cfs_shares()

2017-09-29 Thread Morten Rasmussen
On Fri, Sep 29, 2017 at 01:35:00PM +0200, Peter Zijlstra wrote: > On Thu, Sep 28, 2017 at 11:03:03AM +0100, Morten Rasmussen wrote: > > IIUC, if grq->avg.load_avg > grq->load.weight, i.e. you have blocked > > tasks, you can end up with underestimating the ge->load.weight for some > > of the group e

Re: [PATCH v1 06/14] tee: optee: add page list manipulation functions

2017-09-29 Thread Mark Rutland
On Thu, Sep 28, 2017 at 09:04:03PM +0300, Volodymyr Babchuk wrote: > +/** > + * optee_fill_pages_list() - write list of user pages to given shared > + * buffer. > + * > + * @dst: page-aligned buffer where list of pages will be stored > + * @pages: array of pages that represents shared buffer > + *

Re: [PATCH][trace-cmd] trace-view: Pick up sched_wakeup_new event

2017-09-29 Thread Steven Rostedt
On Fri, 29 Sep 2017 13:49:31 +0200 Jan Kiszka wrote: > On 2017-09-29 13:29, Jan Kiszka wrote: > > From: Jan Kiszka > > > > Seems like a copy&paste bug of the initial commit 7b0139ebb1cf. > > > > Signed-off-by: Jan Kiszka > > --- > > > > I didn't manage to test this so far, but this looked st

Re: [PATCH v8 6/6] powerpc/fadump: use the new parse_args callback arguments

2017-09-29 Thread Hari Bathini
In case, someone wishes for a changelog: With fadump_rework_cmdline_params() function, parse_args() callback function, taking new arguments - current & next, use them to process 'fadump_extra_args=' parmeter, in enforcing the parameters passed through it for fadump kernel. On Tuesday 12

Re: [PATCH -v2 03/18] sched/fair: Cure calc_cfs_shares() vs reweight_entity()

2017-09-29 Thread Morten Rasmussen
On Fri, Sep 29, 2017 at 01:38:53PM +0200, Peter Zijlstra wrote: > On Fri, Sep 29, 2017 at 10:04:34AM +0100, Morten Rasmussen wrote: > > > > - load = scale_load_down(cfs_rq->load.weight); > > > + load = max(scale_load_down(cfs_rq->load.weight), cfs_rq->avg.load_avg); > > > > We use cfs_rq->tg_load

Re: [PATCH 1/8] sched: Consistent task-state printing

2017-09-29 Thread Steven Rostedt
On Fri, 29 Sep 2017 13:50:16 +0200 Peter Zijlstra wrote: > On Mon, Sep 25, 2017 at 04:01:09PM -0400, Steven Rostedt wrote: > > On Mon, 25 Sep 2017 14:07:48 +0200 > > Peter Zijlstra wrote: > > > > > +static inline char __task_state_to_char(unsigned int state) > > > +{ > > > + static const char

[PATCH 1/3] drm/bridge: make drm_panel_bridge_remove more robust

2017-09-29 Thread Benjamin Gaignard
Make sure that bridge parameter is not NULL and can be safely cast into a panel_bridge structure. Signed-off-by: Benjamin Gaignard --- drivers/gpu/drm/bridge/panel.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bri

[PATCH 2/3] drm/drm_of: add drm_of_panel_bridge_remove function

2017-09-29 Thread Benjamin Gaignard
This function is the pendant of drm_of_find_panel_or_bridge() to remove a previously allocated panel_bridge. Given a specific port and endpoint it remove the panel bridge. Since drm_panel_bridge_remove() will check that bridge parameter is not NULL and is a real drm_panel_bridge and no a simple bri

[PATCH 3/3] drm/stm: ltdc: remove bridge from driver internal structure

2017-09-29 Thread Benjamin Gaignard
With a call to drm_of_panel_bridge_remove() we could remove the bridge without store it in ldtc internal driver structure. Signed-off-by: Benjamin Gaignard --- drivers/gpu/drm/stm/ltdc.c | 16 +--- drivers/gpu/drm/stm/ltdc.h | 2 -- 2 files changed, 5 insertions(+), 13 deletions(-)

[PATCH 0/3] Simplify panel bridge cleanup

2017-09-29 Thread Benjamin Gaignard
The goal of this series is to simplify driver code when they need to clean up a previously allocated panel bridge. Few drivers have "is_panel_bridge" flag to be able to distinguish a drm_panel_bridge from "simple" drm_bridge. To remove this flag I propose to - let drm_panel_bridge_remove() check if

Re: How to verify linux-next

2017-09-29 Thread valdis . kletnieks
On Fri, 29 Sep 2017 16:08:07 +0530, Pintu Kumar said: > I have a general question. > How do we normally verify linux-next tree? The same exact way you "verify" any other Linux kernel, for whatever definition of "verify" you plan to use. > 1) For Oracle virtual box 5.1.26 with ubuntu-32 bit, the

Re: [PATCH v2 02/10] pinctrl: axp209: add pinctrl features (fwd)

2017-09-29 Thread Julia Lawall
> > julia > > > > -- Forwarded message -- > > Date: Fri, 29 Sep 2017 20:00:03 +0800 > > From: kbuild test robot > > To: kbu...@01.org > > Cc: Julia Lawall > > Subject: Re: [PATCH v2 02/10] pinctrl: axp209: add pinctrl features >

Re: [PATCH 3/3 v12] printk: Add monotonic, boottime, and realtime timestamps

2017-09-29 Thread Pavel Machek
Hi! > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index b19c491cbc4e..e21b0c002d0f 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -8,12 +8,58 @@ config PRINTK_TIME > messages to be added to the output of the syslog() system > call and at the console. > >

Re: [PATCH v2 02/10] pinctrl: axp209: add pinctrl features (fwd)

2017-09-29 Thread Quentin Schulz
com/0day-ci/linux/commits/Quentin-Schulz/add-pinmuxing-support-for-pins-in-AXP209-and-AXP813-PMICs/20170929-162846 > base: > :: branch date: 4 hours ago > :: commit date: 4 hours ago > >>> drivers/pinctrl/pinctrl-axp209.c:485:19-27: WARNING: invalid free of devm_ >

[RESEND PATCH] prctl: add PR_[GS]ET_PDEATHSIG_PROC

2017-09-29 Thread Jürg Billeter
PR_SET_PDEATHSIG sets a parent death signal that the calling process will get when its parent thread dies, even when the result of getppid() doesn't change because the calling process is reparented to a different thread in the same parent process. When managing multiple processes, a process-based p

Re: [Part1 PATCH v5 02/17] x86/mm: Add Secure Encrypted Virtualization (SEV) support

2017-09-29 Thread Brijesh Singh
On 9/28/17 2:23 PM, Borislav Petkov wrote: ... > So actually we need chicken bits to be able to *enable* both when > CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT is not set. > > I.e., > > * mem_encrypt=on - both SME and SEV enabled > > * mem_encrypt=smeonly - only SME, no SEV on the host. This option

[PATCH v2 net] net: mvpp2: Fix clock resource by adding an optional bus clock

2017-09-29 Thread Gregory CLEMENT
On Armada 7K/8K we need to explicitly enable the bus clock. The bus clock is optional because not all the SoCs need them but at least for Armada 7K/8K it is actually mandatory. The binding documentation is updating accordingly. Signed-off-by: Gregory CLEMENT --- Changelog: v1 -> v2: - manage th

Re: [PATCH v2 0/2] mtd: nand: wait for tWHR, and fix the setup_data_interface of Denali

2017-09-29 Thread Boris Brezillon
On Fri, 29 Sep 2017 19:38:38 +0900 Masahiro Yamada wrote: > 1/2 : add NAND_WAIT_TWHR and nand_whr_delay(). > You can set this new flag if you want nand_command(_lp) > to insert tWHR delay where needed. > > 2/2 : Fix Denali setup_data_interface. > Boris' suggestion in v1 was a g

Re: [lkp-robot] [x86/mm] 9e52fc2b50: will-it-scale.per_thread_ops -16% regression

2017-09-29 Thread Vitaly Kuznetsov
kernel test robot writes: > Greeting, > > FYI, we noticed a -16% regression of will-it-scale.per_thread_ops due to > commit: > > commit: 9e52fc2b50de3a1c08b44f94c610fbe998c0031a ("x86/mm: Enable RCU based > page table freeing (CONFIG_HAVE_RCU_TABLE_FREE=y)") > https://git.kernel.org/cgit/linux/

Re: [PATCH v6] PCI: quirks: update Cavium ThunderX ACS quirk implementation

2017-09-29 Thread Vadim Lomovtsev
Hi Bjorn, On Wed, Sep 27, 2017 at 02:18:54PM -0600, Alex Williamson wrote: > On Wed, 27 Sep 2017 11:20:39 -0700 > Vadim Lomovtsev wrote: > > > This commit makes Cavium PCI ACS quirk applicable only to Cavium > > ThunderX (CN8XXX) family PCIE Root Ports which has limited PCI capabilities > > in t

Re: [Part2 PATCH v4 02/29] x86/CPU/AMD: Add the Secure Encrypted Virtualization CPU feature

2017-09-29 Thread Borislav Petkov
On Tue, Sep 19, 2017 at 03:46:00PM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > Update the CPU features to include identifying and reporting on the > Secure Encrypted Virtualization (SEV) feature. SEV is identified by > CPUID 0x801f, but requires BIOS support to enable it (set bit 23

Re: [PATCH v2 02/10] pinctrl: axp209: add pinctrl features (fwd)

2017-09-29 Thread Julia Lawall
nctrl features Hi Quentin, [auto build test WARNING on ] url: https://github.com/0day-ci/linux/commits/Quentin-Schulz/add-pinmuxing-support-for-pins-in-AXP209-and-AXP813-PMICs/20170929-162846 base: :: branch date: 4 hours ago :: commit date: 4 hours ago >> drivers/pinctrl/pinct

[PATCH v1] ARM: configs: stm32: Add I2C support in STM32 defconfig

2017-09-29 Thread Pierre-Yves MORDRET
This patch adds I2C support for STM32 Signed-off-by: Pierre-Yves MORDRET --- Version history: v1: * Initial --- --- arch/arm/configs/stm32_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index 3ed3158.

Re: [PATCH 3/4] iommu/arm-smmu-v3: Use NUMA memory allocations for stream tables and comamnd queues

2017-09-29 Thread Marek Szyprowski
Hi Robin, On 2017-09-21 13:58, Robin Murphy wrote: [+Christoph and Marek] On 21/09/17 09:59, Ganapatrao Kulkarni wrote: Introduce smmu_alloc_coherent and smmu_free_coherent functions to allocate/free dma coherent memory from NUMA node associated with SMMU. Replace all calls of dmam_alloc_coher

Re: [PATCH RFC 3/5] Add KSZ8795 switch driver

2017-09-29 Thread Andrew Lunn
On Fri, Sep 29, 2017 at 09:14:26AM +, David Laight wrote: > From: Andrew Lunn > > Sent: 28 September 2017 20:34 > ... > > > There are 34 counters. In normal case using generic bus I/O or PCI to > > > read them > > > is very quick, but the switch is mostly accessed using SPI, or even I2C. >

[RESEND PATCH] fs: add RWF_APPEND

2017-09-29 Thread Jürg Billeter
This is the per-I/O equivalent of O_APPEND to support atomic append operations on any open file. If a file is opened with O_APPEND, pwrite() ignores the offset and always appends data to the end of the file. RWF_APPEND enables atomic append and pwrite() with offset on a single file descriptor. Si

Re: [PATCH 1/6] mm: add kmalloc_array_node and kcalloc_node

2017-09-29 Thread Vlastimil Babka
On 09/27/2017 10:20 AM, Johannes Thumshirn wrote: > We have kmalloc_array() and kcalloc() wrappers on top of kmalloc() which > ensure us overflow free multiplication for the size of a memory > allocation but these implementations are not NUMA-aware. > > Likewise we have kmalloc_node() which is a N

Re: [PATCH v8 12/28] x86/insn-eval: Add utility functions to get segment selector

2017-09-29 Thread Borislav Petkov
On Thu, Sep 28, 2017 at 11:06:42PM -0700, Ricardo Neri wrote: > I agree. In fact, insn_get_seg_base() does not need insn at all. All it needs > is > a INAT_SEG_REG_* index. This would make things clear. UMIP (and callers that > need to copy_from_user code can do insn_get_seg_base(regs, INAT_SEG_RE

Re: [PATCH] staging: wlan-ng: resolve sparse Endianness issue.

2017-09-29 Thread Dan Carpenter
Someone already sent this. Work against linux-next or staging-next. regards, dan carpenter

Re: [PATCH v3] mmc: dt-bindings: Add reg/source_cg/latch-ck for Mediatek MMC bindings

2017-09-29 Thread Chaotian Jing
On Fri, 2017-09-29 at 13:11 +0200, Matthias Brugger wrote: > > On 09/22/2017 02:03 PM, Chaotian Jing wrote: > > Change the comptiable for support of multi-platform > > Add description for reg > > Add description for source_cg > > Add description for mediatek,latch-ck > > Note that source_cg and me

Re: [PATCH 1/8] sched: Consistent task-state printing

2017-09-29 Thread Peter Zijlstra
On Mon, Sep 25, 2017 at 04:01:09PM -0400, Steven Rostedt wrote: > On Mon, 25 Sep 2017 14:07:48 +0200 > Peter Zijlstra wrote: > > > +static inline char __task_state_to_char(unsigned int state) > > +{ > > + static const char state_char[] = "RSDTtXZ"; > > + > > + BUILD_BUG_ON(1 + ilog2(TASK_REPO

<    1   2   3   4   5   6   7   >