[PATCH 2/2] mt76: mt7615: fix slow performance when enable encryption

2019-05-31 Thread Ryder Lee
Fix wrong WCID assignment and add RKV (RX Key of this entry is valid) flag to check if peer uses the same configuration with previous handshaking. If the configuration is mismatch, WTBL indicates a “cipher mismatch” to stop SEC decryption to prevent the packet from damage. Suggested-by: YF Luo

Re: [PATCH v1 1/2] fork: add clone3

2019-05-31 Thread Arnd Bergmann
On Thu, May 30, 2019 at 3:20 PM Szabolcs Nagy wrote: > * Christian Brauner [2019-05-29 17:22:36 +0200]: > > /* uapi */ > > struct clone_args { > > __aligned_u64 flags; > > __aligned_u64 pidfd; > > __aligned_u64 parent_tidptr; > > __aligned_u64 child_tidptr; > >

Re: [PATCH v5] mfd: cros_ec_dev: Register cros_ec_accel_legacy driver as a subdevice

2019-05-31 Thread Lee Jones
On Thu, 30 May 2019, Gwendal Grignou wrote: > On Thu, May 30, 2019 at 12:48 AM Lee Jones wrote: > > > > On Wed, 29 May 2019, Gwendal Grignou wrote: > > > > > On Wed, May 29, 2019 at 4:44 AM Lee Jones wrote: > > > > > > > > On Tue, 28 May 2019, Gwendal Grignou wrote: > > > > > > > > > On Mon,

RE: [PATCH] KVM: LAPIC: Do not mask the local interrupts when LAPIC is sw disabled

2019-05-31 Thread Kang, Luwei
> -Original Message- > From: Christopherson, Sean J > Sent: Friday, May 31, 2019 2:46 AM > To: Kang, Luwei > Cc: linux-kernel@vger.kernel.org; k...@vger.kernel.org; pbonz...@redhat.com; > rkrc...@redhat.com; t...@linutronix.de; > mi...@redhat.com; b...@alien8.de; h...@zytor.com;

[PATCH] media: avoid skipping MEDIA_PAD_FL_MUST_CONNECT logic

2019-05-31 Thread Nikita Yushchenko
In the current code, __media_pipeline_start() skips check of MEDIA_PAD_FL_MUST_CONNECT logic for entity not providing link_validate() op. Fix that by checking for existence of link_validate() at different code location. Signed-off-by: Nikita Yushchenko --- drivers/media/mc/mc-entity.c | 6

Re: [PATCH 1/5] glibc: Perform rseq(2) registration at C startup and thread creation (v10)

2019-05-31 Thread Florian Weimer
* Mathieu Desnoyers: > I found that it's because touching a __thread variable from > ld-linux-x86-64.so.2 ends up setting the DF_STATIC_TLS flag > for that .so, which is really not expected. > > Even if I tweak the assert to make it more lenient there, > touching the __thread variable ends up

Re: [PATCH 2/2] pinctrl: mediatek: Update cur_mask in mask/mask ops

2019-05-31 Thread Chuanjia Liu
On Thu, 2019-05-30 at 10:12 -0700, Evan Green wrote: > On Wed, May 15, 2019 at 1:05 AM Nicolas Boichat wrote: > > > > On Wed, May 15, 2019 at 4:14 AM Stephen Boyd wrote: > > > > > > Quoting Nicolas Boichat (2019-05-13 18:37:58) > > > > On Tue, May 14, 2019 at 6:29 AM Stephen Boyd > > > >

Re: [PATCH] ARM: xor-neon: Replace __GNUC__ checks with CONFIG_CC_IS_GCC

2019-05-31 Thread Arnd Bergmann
On Wed, May 29, 2019 at 1:57 AM Nathan Chancellor wrote: > > Currently, when compiling this code with clang, the following warning is > emitted: > > CC arch/arm/lib/xor-neon.o > arch/arm/lib/xor-neon.c:33:2: warning: This code requires at least > version 4.6 of GCC [-W#warnings] > >

[PATCH] perf jvmti: Fix gcc string overflow warning

2019-05-31 Thread Jiri Olsa
We are getting fake gcc warning when we compile with gcc9 (9.1.1): CC jvmti/libjvmti.o In file included from /usr/include/string.h:494, from jvmti/libjvmti.c:5: In function ‘strncpy’, inlined from ‘copy_class_filename.constprop’ at

Re: [PATCH net-next] netfilter: nf_conntrack_bridge: Fix build error without IPV6

2019-05-31 Thread Pablo Neira Ayuso
On Fri, May 31, 2019 at 11:06:49AM +0800, Yuehaibing wrote: > +cc netdev > > On 2019/5/31 10:46, YueHaibing wrote: > > Fix gcc build error while CONFIG_IPV6 is not set > > > > In file included from net/netfilter/core.c:19:0: > > ./include/linux/netfilter_ipv6.h: In function 'nf_ipv6_br_defrag':

Re: [PATCH 1/3] Build target for emulate.o as a userspace binary

2019-05-31 Thread Alexander Graf
On 21.05.19 17:39, Sam Caccavale wrote: This commit contains the minimal set of functionality to build afl-harness around arch/x86/emulate.c which allows exercising code in that source file, like x86_emulate_insn. Resolving the dependencies was done via GCC's -H flag by get_headers.py. ---

Re: [PATCH 10/10] venus: dec: make decoder compliant with stateful codec API

2019-05-31 Thread Stanimir Varbanov
Hi, On 5/27/19 11:18 AM, Tomasz Figa wrote: > On Mon, May 27, 2019 at 4:39 PM Hans Verkuil wrote: >> >> On 5/27/19 5:51 AM, Tomasz Figa wrote: >>> On Tue, May 21, 2019 at 9:27 PM Hans Verkuil wrote: On 5/21/19 11:09 AM, Tomasz Figa wrote: > Hi Stan, > > On Mon, May 20,

Re: [PATCH v2] ARM: dts: aspeed: g4: add video engine support

2019-05-31 Thread Andrew Jeffery
On Thu, 30 May 2019, at 19:06, Alexander Filippov wrote: > Add a node to describe the video engine on AST2400. > > These changes were copied from aspeed-g5.dtsi > > Signed-off-by: Alexander Filippov Reviewed-by: Andrew Jeffery > --- > arch/arm/boot/dts/aspeed-g4.dtsi | 10 ++ > 1

RE: [PATCH] clk: imx: imx8mm: correct audio_pll2_clk to audio_pll2_out

2019-05-31 Thread Peng Fan
Hi Shawn, > Subject: Re: [PATCH] clk: imx: imx8mm: correct audio_pll2_clk to > audio_pll2_out > > On Thu, May 30, 2019 at 01:22:57AM +, Peng Fan wrote: > > Hi Stephen, > > > > > Subject: Re: [PATCH] clk: imx: imx8mm: correct audio_pll2_clk to > > > audio_pll2_out > > > > > > Quoting Shawn

[PATCH RESEND] clk: imx: imx8mm: correct audio_pll2_clk to audio_pll2_out

2019-05-31 Thread peng . fan
From: Peng Fan There is no audio_pll2_clk registered, it should be audio_pll2_out. Cc: Fixes: ba5625c3e27 ("clk: imx: Add clock driver support for imx8mm") Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8mm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

From: Mr.Ahmed Owain

2019-05-31 Thread Mr.Ahmed Owain
Good Day, Please accept my apologies for writing you a surprise letter.I am Mr.Ahmed Owain, account Manager with an investment bank here in Burkina Faso.I have a very important business I want to discuss with you.There is a draft account opened in my firm by a long-time client of our bank.I have

Re: [PATCH] PCI: endpoint: Add DMA to Linux PCI EP Framework

2019-05-31 Thread Arnd Bergmann
On Fri, May 31, 2019 at 8:32 AM Vinod Koul wrote: > On 31-05-19, 10:50, Kishon Vijay Abraham I wrote: > > On 31/05/19 10:37 AM, Vinod Koul wrote: > > > On 30-05-19, 11:16, Kishon Vijay Abraham I wrote: > > >> > > >> right, my initial thought process was to use only dmaengine APIs in > > >>

Re: [PATCH] clk: imx: imx8mm: correct audio_pll2_clk to audio_pll2_out

2019-05-31 Thread Shawn Guo
On Thu, May 30, 2019 at 01:22:57AM +, Peng Fan wrote: > Hi Stephen, > > > Subject: Re: [PATCH] clk: imx: imx8mm: correct audio_pll2_clk to > > audio_pll2_out > > > > Quoting Shawn Guo (2019-05-23 06:22:36) > > > On Wed, May 22, 2019 at 01:34:46AM +, Peng Fan wrote: > > > > There is no

[PATCH] net: phy: support C45 phys in SIOCGMIIREG/SIOCSMIIREG ioctls

2019-05-31 Thread Nikita Yushchenko
This change allows phytool [1] and similar tools to read and write C45 phy registers from userspace. This is useful for debugging and for porting vendor phy diagnostics tools. [1] https://github.com/wkz/phytool Signed-off-by: Nikita Yushchenko --- drivers/net/phy/phy.c | 17 +

Re: [RFC 2/3] preempt_tracer: Disable IRQ while starting/stopping due to a preempt_counter change

2019-05-31 Thread Joel Fernandes
On Wed, May 29, 2019 at 11:40:34AM +0200, Daniel Bristot de Oliveira wrote: > On 29/05/2019 10:33, Peter Zijlstra wrote: > > On Tue, May 28, 2019 at 05:16:23PM +0200, Daniel Bristot de Oliveira wrote: > >> The preempt_disable/enable tracepoint only traces in the disable <-> enable > >> case, which

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-05-31 Thread Aaron Lu
On Fri, May 31, 2019 at 02:53:21PM +0800, Aubrey Li wrote: > On Fri, May 31, 2019 at 2:09 PM Aaron Lu wrote: > > > > On 2019/5/31 13:12, Aubrey Li wrote: > > > On Fri, May 31, 2019 at 11:01 AM Aaron Lu > > > wrote: > > >> > > >> This feels like "date" failed to schedule on some CPU > > >> on

Re: [PATCH v3 2/2] arm64: dts: imx8mm-evk: Enable audio codec wm8524

2019-05-31 Thread Shawn Guo
On Fri, May 31, 2019 at 03:28:33PM +0800, Shawn Guo wrote: > On Tue, May 28, 2019 at 10:10:43AM +0300, Daniel Baluta wrote: > > On Mon, May 20, 2019 at 10:33 PM Fabio Estevam wrote: > > > > > > On Thu, May 16, 2019 at 3:35 PM Fabio Estevam wrote: > > > > > > > > On Wed, May 15, 2019 at 11:42 AM

RE: [PATCH v6 07/10] usb: roles: Add fwnode_usb_role_switch_get() function

2019-05-31 Thread Biju Das
Hi, Thanks for the patch. > Subject: [PATCH v6 07/10] usb: roles: Add fwnode_usb_role_switch_get() > function > > From: Heikki Krogerus > > The fwnode_usb_role_switch_get() function is exactly the same as > usb_role_switch_get(), except that it takes struct fwnode_handle as > parameter

[PATCH 2/3] livepatch: Remove duplicate warning about missing reliable stacktrace support

2019-05-31 Thread Petr Mladek
WARN_ON_ONCE() could not be called safely under rq lock because of console deadlock issues. It can be simply removed. A better descriptive message is written in klp_enable_patch() when klp_have_reliable_stack() fails. The remaining debug message is good enough. Signed-off-by: Petr Mladek ---

[PATCH 3/3] livepatch: Use static buffer for debugging messages under rq lock

2019-05-31 Thread Petr Mladek
The err_buf array uses 128 bytes of stack space. Move it off the stack by making it static. It's safe to use a shared buffer because klp_try_switch_task() is called under klp_mutex. Signed-off-by: Petr Mladek Acked-by: Miroslav Benes Reviewed-by: Kamalesh Babulal ---

[PATCH 1/3] stacktrace: Remove superfluous WARN_ONCE() from save_stack_trace_tsk_reliable()

2019-05-31 Thread Petr Mladek
WARN_ONCE() in the generic save_stack_trace_tsk_reliable() is superfluous. The information is passed also via the return value. The only current user klp_check_stack() writes its own warning when the reliable stack traces are not supported. Other eventual users might want its own error handling

[PATCH 0/3] livepatch: Clean up of reliable stacktrace warnings

2019-05-31 Thread Petr Mladek
I believe that all the changes make sense. I would like to get them merged if nobody see a fundamental problem. Changes against v2: + Put back the patch removing WARN_ONCE in the weak save_stack_trace_tsk_reliable(). It is related. + Simplified patch removing the duplicate warning from

RE: [PATCH v6 06/10] device connection: Add fwnode_connection_find_match()

2019-05-31 Thread Biju Das
Hi, Thanks for the patch > Subject: [PATCH v6 06/10] device connection: Add > fwnode_connection_find_match() > > From: Heikki Krogerus > > The fwnode_connection_find_match() function is exactly the same as > device_connection_find_match(), except it takes struct fwnode_handle as > parameter

[PATCH v9 7/7] arm64: dts: mt8183: add scp node

2019-05-31 Thread Pi-Hsun Shih
From: Eddie Huang Add scp node to mt8183 and mt8183-evb Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih --- Changes from v8: - New patch. --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 18 ++ arch/arm64/boot/dts/mediatek/mt8183.dtsi| 12 2 files

[PATCH v9 6/7] mfd: cros_ec: differentiate SCP from EC by feature bit.

2019-05-31 Thread Pi-Hsun Shih
System Companion Processor (SCP) is Cortex M4 co-processor on some MediaTek platform that can run EC-style firmware. Since a SCP and EC would both exist on a system, and use the cros_ec_dev driver, we need to differentiate between them for the userspace, or they would both be registered at

[PATCH v9 2/7] remoteproc/mediatek: add SCP support for mt8183

2019-05-31 Thread Pi-Hsun Shih
From: Erin Lo Provide a basic driver to control Cortex M4 co-processor Signed-off-by: Erin Lo Signed-off-by: Nicolas Boichat Signed-off-by: Pi-Hsun Shih --- Changes from v8: - Add a missing space. Changes from v7: - Moved the location of shared SCP buffer. - Fix clock enable/disable

[PATCH v9 5/7] dt-bindings: Add binding for cros-ec-rpmsg.

2019-05-31 Thread Pi-Hsun Shih
Add a DT binding documentation for ChromeOS EC driver over rpmsg. Signed-off-by: Pi-Hsun Shih Acked-by: Rob Herring --- Changes from v8, v7, v6: - No change. Changes from v5: - New patch. --- Documentation/devicetree/bindings/mfd/cros-ec.txt | 5 - 1 file changed, 4 insertions(+), 1

[PATCH v9 1/7] dt-bindings: Add a binding for Mediatek SCP

2019-05-31 Thread Pi-Hsun Shih
From: Erin Lo Add a DT binding documentation of SCP for the MT8183 SoC from Mediatek. Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Reviewed-by: Rob Herring --- Changes from v8, v7, v6: - No change. Changes from v5: - Remove dependency on CONFIG_RPMSG_MTK_SCP. Changes from v4: -

[PATCH v9 3/7] remoteproc: mt8183: add reserved memory manager API

2019-05-31 Thread Pi-Hsun Shih
From: Erin Lo Add memory table mapping API for other driver to lookup reserved physical and virtual memory Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih --- Changes from v8: - Add more reserved regions for camera ISP. Changes from v7, v6, v5: - No change. Changes from v4: - New

[PATCH v9 4/7] rpmsg: add rpmsg support for mt8183 SCP.

2019-05-31 Thread Pi-Hsun Shih
Add a simple rpmsg support for mt8183 SCP, that use IPI / IPC directly. Signed-off-by: Pi-Hsun Shih --- Changes from v8, v7: - No change. Changes from v6: - Decouple mtk_rpmsg from mtk_scp by putting all necessary informations (name service IPI id, register/unregister/send functions) into

[PATCH] net: dsa: mv88e6xxx: avoid error message on remove from VLAN 0

2019-05-31 Thread Nikita Yushchenko
When non-bridged, non-vlan'ed mv88e6xxx port is moving down, error message is logged: failed to kill vid 0081/0 for device eth_cu_1000_4 This is caused by call from __vlan_vid_del() with vin set to zero, over call chain this results into _mv88e6xxx_port_vlan_del() called with vid=0, and

Re: [PATCH v10 1/3] mm: Shuffle initial free memory to improve memory-side-cache utilization

2019-05-31 Thread Vlastimil Babka
On 2/1/19 6:15 AM, Dan Williams wrote: > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -1714,6 +1714,29 @@ config SLAB_FREELIST_HARDENED > sacrifies to harden the kernel slab allocator against common > freelist exploit methods. > > +config SHUFFLE_PAGE_ALLOCATOR > + bool "Page

Re: [PATCH v3 2/2] arm64: dts: imx8mm-evk: Enable audio codec wm8524

2019-05-31 Thread Shawn Guo
On Tue, May 28, 2019 at 10:10:43AM +0300, Daniel Baluta wrote: > On Mon, May 20, 2019 at 10:33 PM Fabio Estevam wrote: > > > > On Thu, May 16, 2019 at 3:35 PM Fabio Estevam wrote: > > > > > > On Wed, May 15, 2019 at 11:42 AM Daniel Baluta > > > wrote: > > > > > > > +

Re: [PATCH v3 1/2] arm64: dts: imx8mm: Add SAI nodes

2019-05-31 Thread Shawn Guo
On Wed, May 15, 2019 at 02:42:28PM +, Daniel Baluta wrote: > i.MX8MM has 5 SAI instances with the following base > addresses according to RM. > > SAI1 base address: 3001_h > SAI2 base address: 3002_h > SAI3 base address: 3003_h > SAI5 base address: 3005_h > SAI6 base address:

[PATCH] net: dsa: mv88e6xxx: avoid error message on remove from VLAN 0

2019-05-31 Thread Nikita Yushchenko
When non-bridged, non-vlan'ed mv88e6xxx port is moving down, error message is logged: failed to kill vid 0081/0 for device eth_cu_1000_4 This is caused by call from __vlan_vid_del() with vin set to zero, over call chain this results into _mv88e6xxx_port_vlan_del() called with vid=0, and

Re: [PATCH] xen-netback: remove redundant assignment to err

2019-05-31 Thread Wei Liu
On Thu, May 30, 2019 at 08:04:38PM +0100, Colin King wrote: > From: Colin Ian King > > The variable err is assigned with the value -ENOMEM that is never > read and it is re-assigned a new value later on. The assignment is > redundant and can be removed. > > Addresses-Coverity: ("Unused value")

Re: [PATCH RESEND] arm64: dts: imx8mq: add clock for SNVS RTC node

2019-05-31 Thread Shawn Guo
On Fri, May 24, 2019 at 01:44:06PM +0800, anson.hu...@nxp.com wrote: > From: Anson Huang > > i.MX8MQ has clock gate for SNVS module, add clock info to SNVS > RTC node for clock management. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH 1/2] bpf, riscv: fix bugs in JIT for 32-bit ALU operations

2019-05-31 Thread Jiong Wang
Song Liu writes: > On Thu, May 30, 2019 at 3:34 PM Luke Nelson wrote: >> >> On Thu, May 30, 2019 at 1:53 PM Song Liu wrote: >> > >> > This is a little messy. How about we introduce some helper function >> > like: >> > >> > /* please find a better name... */ >> > emit_32_or_64(bool is64, const

[PATCH net-next v3 2/2] net: mscc: ocelot: Hardware ofload for tc flower filter

2019-05-31 Thread Horatiu Vultur
Hardware offload of port filtering are now supported via tc command using flower filter. ACL rules are used to enable the hardware offload. The following keys are supported: vlan_id vlan_prio dst_mac/src_mac for non IP frames dst_ip/src_ip dst_port/src_port The following actions are supported:

[PATCH net-next v3 0/2] Add hw offload of TC flower on MSCC Ocelot

2019-05-31 Thread Horatiu Vultur
This patch series enables hardware offload for flower filter used in traffic controller on MSCC Ocelot board. v2->v3 changes: - remove the check for shared blocks v1->v2 changes: - when declaring variables use reverse christmas tree CC: Alexandre Belloni CC: Microchip Linux Driver Support

[PATCH net-next v3 1/2] net: mscc: ocelot: Add support for tcam

2019-05-31 Thread Horatiu Vultur
Add ACL support using the TCAM. Using ACL it is possible to create rules in hardware to filter/redirect frames. Signed-off-by: Horatiu Vultur --- arch/mips/boot/dts/mscc/ocelot.dtsi | 5 +- drivers/net/ethernet/mscc/Makefile | 2 +- drivers/net/ethernet/mscc/ocelot.c | 13

Re: [GIT PULL] SPDX update for 5.2-rc3 - round 1

2019-05-31 Thread Geert Uytterhoeven
Hi Greg, Thomas, On Fri, May 31, 2019 at 3:49 AM Greg KH wrote: > The following changes since commit cd6c84d8f0cdc911df435bb075ba22ce3c605b07: > > Linux 5.2-rc2 (2019-05-26 16:49:19 -0700) > > are available in the Git repository at: > >

Re: [PATCH -next] eeprom: at24: Remove set but not used variable 'addr'

2019-05-31 Thread Bartosz Golaszewski
śr., 29 maj 2019 o 17:00 YueHaibing napisał(a): > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/misc/eeprom/at24.c: In function at24_make_dummy_client: > drivers/misc/eeprom/at24.c:514:21: warning: variable addr set but not used > [-Wunused-but-set-variable] > > It's not used

Re: [PATCH] eeprom: at24: use struct_size() in devm_kzalloc()

2019-05-31 Thread Bartosz Golaszewski
śr., 29 maj 2019 o 18:30 Gustavo A. R. Silva napisał(a): > > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct foo { >

[PATCH] pinctrl: pinctrl-mtk-common: fix a possible NULL pointer deference

2019-05-31 Thread Young Xiao
The function, external interrupt controller, is made as an optional to pinctrl. But if we don't want pio behaves as an external interrupt controller, it would lead to pctl->eint not be created properly and then will cause 'kernel NULL pointer' issue when gpiochip try to call .to_irq or

Re: [RFCv2 4/6] mm: factor out madvise's core functionality

2019-05-31 Thread Oleksandr Natalenko
On Fri, May 31, 2019 at 03:43:11PM +0900, Minchan Kim wrote: > This patch factor out madvise's core functionality so that upcoming > patch can reuse it without duplication. It shouldn't change any behavior. > > Signed-off-by: Minchan Kim > --- > mm/madvise.c | 188

Re: [PATCH uprobe, thp 4/4] uprobe: collapse THP pmd after removing all uprobes

2019-05-31 Thread Kirill A. Shutemov
On Thu, May 30, 2019 at 05:26:38PM +, Song Liu wrote: > > > > On May 30, 2019, at 5:20 AM, Kirill A. Shutemov > > wrote: > > > > On Wed, May 29, 2019 at 02:20:49PM -0700, Song Liu wrote: > >> After all uprobes are removed from the huge page (with PTE pgtable), it > >> is possible to

[PATCH 0/3] ACPI: New eject flow to remove devices cautiously

2019-05-31 Thread Chester Lin
Currently there are two ways to handle ACPI device ejection. When an eject event happens on a container, the kernel just sends KOBJ_CHANGE to userland and userland should handle offline operation. For other device types, acpi_scan_try_to_offline() is called and it tries to put target device(s)

[PATCH 3/3] ACPI / device_sysfs: Add eject show attr to monitor eject status

2019-05-31 Thread Chester Lin
An acpi_eject_show attribute for users to monitor current status because sometimes it might take time to finish an ejection so we need to know whether it is still in progress or not. Signed-off-by: Chester Lin --- drivers/acpi/device_sysfs.c | 20 +++- drivers/acpi/internal.h

[PATCH 2/3] ACPI / hotplug: Eject status trace and auto-remove approach

2019-05-31 Thread Chester Lin
This is an eject-status trace mechanism which helps to count current online devices under the ejection target, and it can automatically reschedules an eject event when all related devices are offline. The number of online nodes can be updated when any node has been put offline successfully. Any

[PATCH 1/3] ACPI / hotplug: Send change events for offline/online requests when eject is triggered

2019-05-31 Thread Chester Lin
Here we change offline/online handling in device hotplug by sending change events to userland as notification so that userland can have control and determine when will be a good time to put them offline/online based on current workload. In this approach the real offline/online opertions are handed

Re: [PATCH net-next] ethtool: do not use regs->len after ops->get_regs

2019-05-31 Thread Michal Kubecek
On Thu, May 30, 2019 at 07:54:50PM -0400, Vivien Didelot wrote: > The kernel allocates a buffer of size ops->get_regs_len(), and pass > it to the kernel driver via ops->get_regs() for filling. > > There is no restriction about what the kernel drivers can or cannot > do with the regs->len member.

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-05-31 Thread Aubrey Li
On Fri, May 31, 2019 at 2:09 PM Aaron Lu wrote: > > On 2019/5/31 13:12, Aubrey Li wrote: > > On Fri, May 31, 2019 at 11:01 AM Aaron Lu > > wrote: > >> > >> This feels like "date" failed to schedule on some CPU > >> on time. > >> > >> My first reaction is: when shell wakes up from sleep, it will

[PATCH] pinctrl: qcom: Clear status bit on irq_unmask

2019-05-31 Thread Tengfei Fan
The gpio interrupt status bit is getting set after the irq is disabled and causing an immediate interrupt after enablling the irq, so clear status bit on irq_unmask. Signed-off-by: Tengfei Fan --- drivers/pinctrl/qcom/pinctrl-msm.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

Re: [net-next,v4 0/2] Enable SFP on ACPI based systems

2019-05-31 Thread Wolfram Sang
> > Are you happy for the i2c patch to be merged via net-next? > > Yes, that's fine my me. > > Wolfram do you have any objections? That's fine with me, I'd like an immutable branch, though. There are likely other changes to i2c.h coming and that would avoid merge conflicts. signature.asc

[RFCv2 6/6] mm: extend process_madvise syscall to support vector arrary

2019-05-31 Thread Minchan Kim
Currently, process_madvise syscall works for only one address range so user should call the syscall several times to give hints to multiple address ranges. However, it's not efficient to support atomicity of address range opreations as well as performance perspective. This patch extends

[RFCv2 5/6] mm: introduce external memory hinting API

2019-05-31 Thread Minchan Kim
There is some usecase that centralized userspace daemon want to give a memory hint like MADV_[COLD|PAGEEOUT] to other process. Android's ActivityManagerService is one of them. It's similar in spirit to madvise(MADV_WONTNEED), but the information required to make the reclaim decision is not known

[RFCv2 0/6] introduce memory hinting API for external process

2019-05-31 Thread Minchan Kim
- Background The Android terminology used for forking a new process and starting an app from scratch is a cold start, while resuming an existing app is a hot start. While we continually try to improve the performance of cold starts, hot starts will always be significantly less power hungry as

[RFCv2 4/6] mm: factor out madvise's core functionality

2019-05-31 Thread Minchan Kim
This patch factor out madvise's core functionality so that upcoming patch can reuse it without duplication. It shouldn't change any behavior. Signed-off-by: Minchan Kim --- mm/madvise.c | 188 +++ 1 file changed, 101 insertions(+), 87 deletions(-)

[RFCv2 3/6] mm: introduce MADV_PAGEOUT

2019-05-31 Thread Minchan Kim
When a process expects no accesses to a certain memory range for a long time, it could hint kernel that the pages can be reclaimed instantly but data should be preserved for future use. This could reduce workingset eviction so it ends up increasing performance. This patch introduces the new

[RFCv2 2/6] mm: change PAGEREF_RECLAIM_CLEAN with PAGE_REFRECLAIM

2019-05-31 Thread Minchan Kim
The local variable references in shrink_page_list is PAGEREF_RECLAIM_CLEAN as default. It is for preventing to reclaim dirty pages when CMA try to migrate pages. Strictly speaking, we don't need it because CMA didn't allow to write out by .may_writepage = 0 in reclaim_clean_pages_from_list.

[RFCv2 1/6] mm: introduce MADV_COLD

2019-05-31 Thread Minchan Kim
When a process expects no accesses to a certain memory range, it could give a hint to kernel that the pages can be reclaimed when memory pressure happens but data should be preserved for future use. This could reduce workingset eviction so it ends up increasing performance. This patch introduces

Re: [PATCH 1/2] KVM: LAPIC: Optimize timer latency consider world switch time

2019-05-31 Thread Wanpeng Li
On Fri, 31 May 2019 at 03:36, Sean Christopherson wrote: > > On Thu, May 23, 2019 at 12:18:50PM +0800, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Advance lapic timer tries to hidden the hypervisor overhead between the > > host emulated timer fires and the guest awares the timer is fired.

[PATCH v2 2/2] KVM: LAPIC: remove the trailing newline used in the fmt parameter of TP_printk

2019-05-31 Thread Wanpeng Li
From: Wanpeng Li The trailing newlines will lead to extra newlines in the trace file which looks like the following output, so remove it. qemu-system-x86-15695 [002] ...1 15774.839240: kvm_hv_timer_state: vcpu_id 0 hv_timer 1 qemu-system-x86-15695 [002] ...1 15774.839309: kvm_hv_timer_state:

[PATCH v2 1/2] KVM: LAPIC: Optimize timer latency consider world switch time

2019-05-31 Thread Wanpeng Li
From: Wanpeng Li Advance lapic timer tries to hidden the hypervisor overhead between the host emulated timer fires and the guest awares the timer is fired. However, even though after more sustaining optimizations, kvm-unit-tests/tscdeadline_latency still awares ~1000 cycles latency since we

[PATCH v3 4/4] ARM: dts: Add Avenger96 devicetree support based on STM32MP157A

2019-05-31 Thread Manivannan Sadhasivam
Add devicetree support for Avenger96 board based on STM32MP157A MPU from ST Micro. This board is one of the 96Boards Consumer Edition board from Arrow Electronics and has the following features: SoC: STM32MP157AAC PMIC: STPMIC1A RAM: 1024 Mbyte @ 533MHz Storage: eMMC v4.51: 8 Gbyte

[PATCH v3 1/4] ARM: dts: stm32mp157: Add missing pinctrl definitions

2019-05-31 Thread Manivannan Sadhasivam
Add missing pinctrl definitions for STM32MP157 MPU. Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 75 +++ 1 file changed, 75 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi

[PATCH v3 2/4] dt-bindings: arm: stm32: Convert STM32 SoC bindings to DT schema

2019-05-31 Thread Manivannan Sadhasivam
This commit converts STM32 SoC bindings to DT schema using jsonschema. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/arm/stm32/stm32.yaml | 29 +++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/stm32/stm32.yaml

[PATCH v3 0/4] Add Avenger96 board support

2019-05-31 Thread Manivannan Sadhasivam
Hello, This patchset adds Avenger96 board support. This board is one of the Consumer Edition boards of the 96Boards family from Arrow Electronics featuring STM32MP157A MPU and has the following features: SoC: STM32MP157AAC PMIC: STPMIC1A RAM: 1024 Mbyte @ 533MHz Storage: eMMC v4.51: 8 Gbyte

[PATCH v3 3/4] dt-bindings: arm: stm32: Document Avenger96 devicetree binding

2019-05-31 Thread Manivannan Sadhasivam
This commit documents Avenger96 devicetree binding based on STM32MP157 SoC. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml

[RFC PATCH v2 03/12] x86/mm/tlb: Refactor common code into flush_tlb_on_cpus()

2019-05-31 Thread Nadav Amit
arch_tlbbatch_flush() and flush_tlb_mm_range() have very similar code, which is effectively the same. Extract the mutual code into a new function flush_tlb_on_cpus(). There is one functional change, which should not affect correctness: flush_tlb_mm_range compared loaded_mm and the mm to figure

[RFC PATCH v2 04/12] x86/mm/tlb: Flush remote and local TLBs concurrently

2019-05-31 Thread Nadav Amit
To improve TLB shootdown performance, flush the remote and local TLBs concurrently. Introduce flush_tlb_multi() that does so. The current flush_tlb_others() interface is kept, since paravirtual interfaces need to be adapted first before it can be removed. This is left for future work. In such PV

[RFC PATCH v2 08/12] x86/tlb: Privatize cpu_tlbstate

2019-05-31 Thread Nadav Amit
cpu_tlbstate is mostly private and only the variable is_lazy is shared. This causes some false-sharing when TLB flushes are performed. Break cpu_tlbstate intro cpu_tlbstate and cpu_tlbstate_shared, and mark each one accordingly. Cc: Dave Hansen Cc: Andy Lutomirski Cc: Peter Zijlstra

[RFC PATCH v2 07/12] smp: Do not mark call_function_data as shared

2019-05-31 Thread Nadav Amit
cfd_data is marked as shared, but although it hold pointers to shared data structures, it is private per core. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Rik van Riel Cc: Andy Lutomirski Signed-off-by: Nadav Amit --- kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[RFC PATCH v2 09/12] x86/apic: Use non-atomic operations when possible

2019-05-31 Thread Nadav Amit
Using __clear_bit() and __cpumask_clear_cpu() is more efficient than using their atomic counterparts. Use them when atomicity is not needed, such as when manipulating bitmasks that are on the stack. Cc: Dave Hansen Cc: Andy Lutomirski Cc: Peter Zijlstra Signed-off-by: Nadav Amit ---

[RFC PATCH v2 05/12] x86/mm/tlb: Optimize local TLB flushes

2019-05-31 Thread Nadav Amit
While the updated smp infrastructure is capable of running a function on a single local core, it is not optimized for this case. The multiple function calls and the indirect branch introduce some overhead, making local TLB flushes slower than they were before the recent changes. Before calling

[RFC PATCH v2 10/12] smp: Enable data inlining for inter-processor function call

2019-05-31 Thread Nadav Amit
There are some opportunities to improve the performance of inter-processor function calls. First, currently call_single_data, which is used for communicating the data that is consumed by the function call is not cacheline aligned. This might lead to false sharing, since different structures are

[RFC PATCH v2 02/12] smp: Run functions concurrently in smp_call_function_many()

2019-05-31 Thread Nadav Amit
Currently, on_each_cpu() and similar functions do not exploit the potential of concurrency: the function is first executed remotely and only then it is executed locally. Functions such as TLB flush can take considerable time, so this provides an opportunity for performance optimization. To do so,

[RFC PATCH v2 11/12] x86/mm/tlb: Use async and inline messages for flushing

2019-05-31 Thread Nadav Amit
When we flush userspace mappings, we can defer the TLB flushes, as long the following conditions are met: 1. No tables are freed, since otherwise speculative page walks might cause machine-checks. 2. No one would access userspace before flush takes place. Specifically, NMI handlers and

[RFC PATCH v2 06/12] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-05-31 Thread Nadav Amit
Support the new interface of flush_tlb_multi, which also flushes the local CPU's TLB, instead of flush_tlb_others that does not. This interface is more performant since it parallelize remote and local TLB flushes. The actual implementation of flush_tlb_multi() is almost identical to that of

[RFC PATCH v2 12/12] x86/mm/tlb: Reverting the removal of flush_tlb_info from stack

2019-05-31 Thread Nadav Amit
Partially revert 3db6d5a5eca ("x86/mm/tlb: Remove 'struct flush_tlb_info' from the stack"). Now that we copy flush_tlb_info and inline it with the IPI information, we can put it back onto the stack. This simplifies the code and should be slightly more robust. The stack is also a bit more likely

[RFC PATCH v2 01/12] smp: Remove smp_call_function() and on_each_cpu() return values

2019-05-31 Thread Nadav Amit
The return value is fixed. Remove it and amend the callers. Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: Tony Luck Cc: Fenghua Yu Cc: Andrew Morton Signed-off-by: Nadav Amit --- arch/alpha/kernel/smp.c | 19 +-- arch/alpha/oprofile/common.c | 6

[RFC PATCH v2 00/12] x86: Flush remote TLBs concurrently and async

2019-05-31 Thread Nadav Amit
Currently, local and remote TLB flushes are not performed concurrently, which introduces unnecessary overhead - each INVLPG can take 100s of cycles. This patch-set allows TLB flushes to be run concurrently: first request the remote CPUs to initiate the flush, then run it locally, and finally wait

Re: [PATCH] PCI: endpoint: Add DMA to Linux PCI EP Framework

2019-05-31 Thread Vinod Koul
On 31-05-19, 10:50, Kishon Vijay Abraham I wrote: > Hi Vinod, > > On 31/05/19 10:37 AM, Vinod Koul wrote: > > Hi Kishon, > > > > On 30-05-19, 11:16, Kishon Vijay Abraham I wrote: > >> +Vinod Koul > >> > >> Hi, > >> > >> On 30/05/19 4:07 AM, Alan Mikhak wrote: > >>> On Mon, May 27, 2019 at 2:09

Re: [PATCH v3] ARM: dts: aspeed: Add YADRO VESNIN BMC

2019-05-31 Thread Andrew Jeffery
Hello Alexander, On Fri, 31 May 2019, at 15:42, Alexander Filippov wrote: > VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured > by YADRO. > > Signed-off-by: Alexander Filippov > --- > arch/arm/boot/dts/Makefile | 1 + >

Re: [PATCH] ipv6: Prevent overrun when parsing v6 header options

2019-05-31 Thread Herbert Xu
On Thu, May 30, 2019 at 10:17:04AM -0700, Eric Dumazet wrote: > > xfrm6_transport_output() seems buggy as well, > unless the skbs are linearized before entering these functions ? The headers that it's moving should be linearised. Is there something else I'm missing? Cheers, -- Email: Herbert

Re: [PATCH REBASED] mm, memcg: Make scan aggression always exclude protection

2019-05-31 Thread Michal Hocko
On Thu 30-05-19 13:52:10, Chris Down wrote: > Michal Hocko writes: > > On Wed 29-05-19 23:44:53, Chris Down wrote: > > > Michal Hocko writes: > > > > Maybe I am missing something so correct me if I am wrong but the new > > > > calculation actually means that we always allow to scan even min > > >

Re: [PATCH v5] perf record: collect user registers set jointly with dwarf stacks

2019-05-31 Thread Alexey Budankov
On 30.05.2019 22:41, Arnaldo Carvalho de Melo wrote: > Em Thu, May 30, 2019 at 10:03:36PM +0300, Alexey Budankov escreveu: >> >> When dwarf stacks are collected jointly with user specified register >> set using --user-regs option like below the full register context is >> captured on a sample:

Re: [net-next,v4 0/2] Enable SFP on ACPI based systems

2019-05-31 Thread Mika Westerberg
On Wed, May 29, 2019 at 05:51:32PM +0200, Andrew Lunn wrote: > On Wed, May 29, 2019 at 12:48:18PM +0300, Mika Westerberg wrote: > > On Tue, May 28, 2019 at 04:02:31PM -0700, Ruslan Babayev wrote: > > > Changes: > > > v2: > > > - more descriptive commit body > > > v3: > > > - made

Re: [RESEND PATCH v4 6/6] leds: lm36274: Introduce the TI LM36274 LED driver

2019-05-31 Thread Lee Jones
On Thu, 30 May 2019, Jacek Anaszewski wrote: > On 5/30/19 9:38 AM, Lee Jones wrote: > > On Wed, 29 May 2019, Jacek Anaszewski wrote: > > > > > On 5/29/19 3:58 PM, Lee Jones wrote: > > > > On Fri, 24 May 2019, Jacek Anaszewski wrote: > > > > > > > > > Hi, > > > > > > > > > > On 5/23/19 9:09 PM,

collect2: error: ld returned 1 exit status

2019-05-31 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 318adf8e4bfdcb0bce1833824564b1f24278927b commit: a3b9a99980d9fa01f6c18c359cf503b874f183de counter: add FlexTimer Module Quadrature decoder counter driver date: 5 weeks ago config: um-allyesconfig

[PATCH v3] ARM: dts: aspeed: Add YADRO VESNIN BMC

2019-05-31 Thread Alexander Filippov
VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured by YADRO. Signed-off-by: Alexander Filippov --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts | 234 2 files changed, 235 insertions(+) create mode

Re: [PATCH -mm] mm, swap: Fix bad swap file entry warning

2019-05-31 Thread Michal Hocko
On Fri 31-05-19 10:41:02, Huang, Ying wrote: > From: Huang Ying > > Mike reported the following warning messages > > get_swap_device: Bad swap file entry 1401 > > This is produced by > > - total_swapcache_pages() > - get_swap_device() > > Where get_swap_device() is used to

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-05-31 Thread Aaron Lu
On 2019/5/31 13:12, Aubrey Li wrote: > On Fri, May 31, 2019 at 11:01 AM Aaron Lu wrote: >> >> This feels like "date" failed to schedule on some CPU >> on time. >> >> My first reaction is: when shell wakes up from sleep, it will >> fork date. If the script is untagged and those workloads are >>

Re: [PATCH] arm64: dts: rockchip: Add missing PCIe pwr amd rst configuration

2019-05-31 Thread Manivannan Sadhasivam
On Fri, May 31, 2019 at 10:27:22AM +0530, Anand Moon wrote: > Hi Manivannan, > > On Fri, 31 May 2019 at 09:32, Manivannan Sadhasivam > wrote: > > > > Hi, > > > > On Thu, May 30, 2019 at 12:58:37PM +, Anand Moon wrote: > > > This patch add missing PCIe gpio and pinctrl for power (#PCIE_PWR) >

<    3   4   5   6   7   8   9   >