Re: 答复: 答复: 答复: [PATCH] input: alps-fix the issue the special alps trackpoint do not work.

2019-05-23 Thread Peter Hutterer
On Wed, May 22, 2019 at 09:40:30AM +0200, Pali Rohár wrote: > On Wednesday 22 May 2019 07:30:43 Xiaoxiao Liu wrote: > > Hi Pali, > > > > Ok, and cannot you set ALPS_DUALPOINT flag based on that > > alps_check_is_trackpoint() result and then update > > alps_process_packet_ss4_v3() code to supports

Re: [PATCH v2] perf/x86: always include regs->ip in callchain

2019-05-23 Thread Kairui Song
On Thu, May 23, 2019 at 1:34 PM Song Liu wrote: > > Commit d15d356887e7 removes regs->ip for !perf_hw_regs(regs) case. This > patch adds regs->ip back. > > Fixes: d15d356887e7 ("perf/x86: Make perf callchains work without > CONFIG_FRAME_POINTER") > Cc: Kairui Song > Cc: Peter Zijlstra (Intel)

Re: [PATCH v3 14/16] powerpc/32: implement fast entry for syscalls on BOOKE

2019-05-23 Thread Paul Mackerras
On Tue, Apr 30, 2019 at 12:39:03PM +, Christophe Leroy wrote: > This patch implements a fast entry for syscalls. > > Syscalls don't have to preserve non volatile registers except LR. > > This patch then implement a fast entry for syscalls, where > volatile registers get clobbered. > > As

Re: [PATCH 5/5] mm/hmm: Fix mm stale reference use in hmm_free()

2019-05-23 Thread John Hubbard
On 5/22/19 6:25 PM, Jason Gunthorpe wrote: On Wed, May 22, 2019 at 05:54:17PM -0700, Ralph Campbell wrote: On 5/22/19 4:36 PM, Jason Gunthorpe wrote: On Mon, May 06, 2019 at 04:35:14PM -0700, rcampb...@nvidia.com wrote: From: Ralph Campbell The last reference to struct hmm may be released

Re: [PATCH] mailbox: stm32_ipcc: add spinlock to fix channels concurrent access

2019-05-23 Thread Fabien DESSENNE
Hi Arnaud, Thank you for the patch. On 22/05/2019 10:25 AM, Arnaud Pouliquen wrote: > Add spinlock protection on IPCC register update to avoid race condition. > Without this fix, stm32_ipcc_set_bits and stm32_ipcc_clr_bits can be > called in parallel for different channels. This results in

Re: [PATCH v4 3/3] mtd: spinand: Add support for GigaDevice GD5F1GQ4UFxxG

2019-05-23 Thread Schrempf Frieder
On 23.05.19 00:05, Jeff Kletsky wrote: > From: Jeff Kletsky > > The GigaDevice GD5F1GQ4UFxxG SPI NAND is in current production devices > and, while it has the same logical layout as the E-series devices, > it differs in the SPI interfacing in significant ways. > > This support is contingent on

Re: Getting empty callchain from perf_callchain_kernel()

2019-05-23 Thread Kairui Song
On Thu, May 23, 2019 at 7:46 AM Josh Poimboeuf wrote: > > On Wed, May 22, 2019 at 12:45:17PM -0500, Josh Poimboeuf wrote: > > On Wed, May 22, 2019 at 02:49:07PM +, Alexei Starovoitov wrote: > > > The one that is broken is prog_tests/stacktrace_map.c > > > There we attach bpf to standard

Re: Linux Testing Microconference at LPC

2019-05-23 Thread Dmitry Vyukov
On Thu, May 23, 2019 at 2:08 AM wrote: > > From: Dmitry Vyukov > > On Fri, Apr 26, 2019 at 11:03 PM Tim Bird wrote: > > > > > > I'm in the process now of planning Automated Testing Summit 2019, > > > which is tentatively planned for Lyon, France on October 31. This is > > > > This is _November_

[PATCH] powerpc/32s: Include header file to fix a warning

2019-05-23 Thread Mathieu Malaterre
In commit 2edb16efc899 ("powerpc/32: Add KASAN support") support for KASAN has been added. However building it as module leads to (warning treated as error with W=1): arch/powerpc/mm/kasan/kasan_init_32.c:135:7: error: no previous prototype for 'module_alloc' [-Werror=missing-prototypes] Make

[PATCH 0/6] Add anx6345 DP/eDP bridge for Olimex Teres-I

2019-05-23 Thread Torsten Duwe
Hi all, left over from my previous Teres-I device tree series, here comes the revised anx6345 node for the Teres-I, along with the driver. The innolux panel attached to it is already known; pinebooks can be enabled on top of this series, once their panels are introduced. Changes from the

Re: [PATCHv2 3/4] printk: factor out register_console() code

2019-05-23 Thread Sergey Senozhatsky
Hello, On (05/15/19 16:36), Petr Mladek wrote: [..] > > > > console_unlock(); > > console_sysfs_notify(); > > + console_lock(); > > I have got an idea how to get rid of this weirdness: > > 1. The check for bcon seems to be just an optimization. There is not need >to remove boot

Re: [PATCH] powerpc/32s: Include header file to fix a warning

2019-05-23 Thread Christophe Leroy
Le 23/05/2019 à 08:49, Mathieu Malaterre a écrit : In commit 2edb16efc899 ("powerpc/32: Add KASAN support") support for KASAN has been added. However building it as module leads to (warning treated as error with W=1): arch/powerpc/mm/kasan/kasan_init_32.c:135:7: error: no previous

Re: [PATCH v6 0/5] prerequisites for device reserved local mem rework

2019-05-23 Thread Christoph Hellwig
As we seem to be getting ready to merge this series: can the usb maintainers please commit it to an immutable branch that I can pull into the dma-mapping tree? These changes are a preparation for reworking the per-device DMA coherent allocator, and I'd prefer not to wait for the next merge

Re: [PATCH v4 0/3] mtd: spinand: Add support for GigaDevice GD5F1GQ4UFxxG

2019-05-23 Thread Schrempf Frieder
Hi Jeff, On 23.05.19 00:05, Jeff Kletsky wrote: > Addresses changes in macros and related data structures introduced by >commit 377e517b5fa5 >mtd: nand: Add max_bad_eraseblocks_per_lun info to memorg > > Resolves issue detected by kbuild test robot >Tue, 21 May 2019 17:28:09

Re: [PATCH] RDMA/mlx5: Use DIV_ROUND_UP_ULL macro to allow 32 bit to build

2019-05-23 Thread Michal Kubecek
On Wed, May 22, 2019 at 02:54:50PM -0400, Steven Rostedt wrote: > > From: Steven Rostedt (VMware) > > When testing 32 bit x86, my build failed with: > > ERROR: "__udivdi3" [drivers/infiniband/hw/mlx5/mlx5_ib.ko] undefined! > > It appears that a few non-ULL roundup() calls were made, which

Re: -Wuninitialized warning in drivers/misc/sgi-xp/xpc_partition.c

2019-05-23 Thread Stephen Hines
Hi Nathan, Since this kind of self-initialization is considered undefined behavior, the simplest fix here is to just initialize to NULL. It's a reasonable interpretation of what is currently written, and will at least make the existing code more deterministic. Thanks, Steve On Wed, May 22, 2019

Re: [PATCHv2 4/4] printk: make sure we always print console disabled message

2019-05-23 Thread Sergey Senozhatsky
On (05/15/19 16:47), Petr Mladek wrote: > On Fri 2019-04-26 14:44:45, Sergey Senozhatsky wrote: > > > > Forgot to mention that the series is still in RFC phase. > > > > > > On (04/26/19 14:33), Sergey Senozhatsky wrote: > > [..] > > > +++ b/kernel/printk/printk.c > > > @@ -2613,6 +2613,12 @@

Re: [PATCH v3 14/16] powerpc/32: implement fast entry for syscalls on BOOKE

2019-05-23 Thread Christophe Leroy
Le 23/05/2019 à 08:14, Paul Mackerras a écrit : On Tue, Apr 30, 2019 at 12:39:03PM +, Christophe Leroy wrote: This patch implements a fast entry for syscalls. Syscalls don't have to preserve non volatile registers except LR. This patch then implement a fast entry for syscalls, where

[PATCH 08/23] iommu/dma: Factor out remapped pages lookup

2019-05-23 Thread Christoph Hellwig
From: Robin Murphy Since we duplicate the find_vm_area() logic a few times in places where we only care aboute the pages, factor out a helper to abstract it. Signed-off-by: Robin Murphy [hch: don't warn when not finding a region, as we'll rely on that later] Signed-off-by: Christoph Hellwig

[PATCH V3] hsr: fix don't prune the master node from the node_db

2019-05-23 Thread Andreas Oetken
Don't prune master node in the hsr_prune_nodes function. Neither time_in[HSR_PT_SLAVE_A], nor time_in[HSR_PT_SLAVE_B], will ever be updated by hsr_register_frame_in for the master port. Thus the master node will be repeatedly pruned leading to repeated packet loss. This bug never appeared because

Re: [PATCH v6 0/5] prerequisites for device reserved local mem rework

2019-05-23 Thread Greg KH
On Thu, May 23, 2019 at 08:56:02AM +0200, Christoph Hellwig wrote: > As we seem to be getting ready to merge this series: can the usb > maintainers please commit it to an immutable branch that I can pull > into the dma-mapping tree? These changes are a preparation for > reworking the per-device

Re: [PATCH v6 0/5] prerequisites for device reserved local mem rework

2019-05-23 Thread Christoph Hellwig
On Thu, May 23, 2019 at 09:07:55AM +0200, Greg KH wrote: > I have no objection for you just taking this whole series as-is, no need > to worry about merge conflicts with the USB tree, I doubt anything will > be touching this area of code anytime soon. > > So if you want to take it now, feel free

Re: [PATCH] staging: unisys: visornic: Replace GFP_ATOMIC with GFP_KERNEL

2019-05-23 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 10:35:30PM +0530, Hariprasad Kelam wrote: > As per below information > > GFP_KERNEL FLAG > > This is a normal allocation and might block. This is the flag to use in > process context code when it is safe to sleep. > > GFP_ATOMIC FLAG > > The allocation is high-priority

Re: [PATCH RESEND] input: adp5589: Add gpio_set_multiple interface

2019-05-23 Thread Dmitry Torokhov
Hi Bogdan, On Tue, May 21, 2019 at 11:38:22AM +0300, Bogdan Togorean wrote: > This patch implements the gpio_set_multiple interface for ADP558x chip. > > Signed-off-by: Bogdan Togorean > --- > drivers/input/keyboard/adp5589-keys.c | 25 + > 1 file changed, 25

Re: [PATCH v2] staging: rtl8723bs: core: rtw_mlme_ext: fix warning Unneeded variable: "ret"

2019-05-23 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 11:25:01PM +0530, Hariprasad Kelam wrote: > This patch fixes below warnings reported by coccicheck > > drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:1888:14-17: Unneeded > variable: "ret". Return "_FAIL" on line 1920 > drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:466:5-8:

Re: [PATCH] input: silead: Add MSSL0017 to acpi_device_id.

2019-05-23 Thread Dmitry Torokhov
On Wed, May 22, 2019 at 12:12:47PM +0200, Hans de Goede wrote: > Hi, > > On 22-05-19 06:54, Danct12 wrote: > > On Chuwi Hi10 Plus, the Silead device id is MSSL0017. > > > > Signed-off-by: Danct12 > > Patch looks good to me: > > Reviewed-by: Hans de Goede We however need to have a real name

Re: [PATCH] staging: fieldbus: anybuss: Remove unnecessary variables

2019-05-23 Thread Greg KH
On Thu, May 23, 2019 at 12:05:01PM +0530, Nishka Dasgupta wrote: > In the functions export_reset_0 and export_reset_1 in arcx-anybus.c, > the only operation performed before return is passing the variable cd > (which takes the value of a function call on one of the parameters) as > argument to

Re: [PATCH] staging: fieldbus: anybuss: Remove variable

2019-05-23 Thread Greg KH
On Thu, May 23, 2019 at 12:35:26PM +0530, Nishka Dasgupta wrote: > Variable client, assigned to priv->client, is used only once in a > function argument; hence, it can be removed and the function argument > replaced with priv->client directly. > Issue found with Coccinelle. > > Signed-off-by:

Re: [PATCH v3] staging: rtl8723bs: core: rtw_ap: fix Unneeded variable: "ret". Return "0

2019-05-23 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 10:41:37PM +0530, Hariprasad Kelam wrote: > Function "rtw_sta_flush" always returns 0 value. > So change return type of rtw_sta_flush from int to void. > > Same thing applies for rtw_hostapd_sta_flush > > Signed-off-by: Hariprasad Kelam > -- > Changes v2 - >

Re: [PATCH 1/6] staging: kpc2000: fix indent in cell_probe.c

2019-05-23 Thread Greg KH
On Wed, May 22, 2019 at 10:58:44PM +0200, Simon Sandström wrote: > Use tabs instead of spaces for indentation. > > Signed-off-by: Simon Sandström > --- > drivers/staging/kpc2000/kpc2000/cell_probe.c | 574 +-- > 1 file changed, 287 insertions(+), 287 deletions(-) > > diff --git

Re: [PATCH] powerpc/powernv: fix variable "c" set but not used

2019-05-23 Thread Christophe Leroy
Le 23/05/2019 à 04:31, Qian Cai a écrit : The commit 58629c0dc349 ("powerpc/powernv/npu: Fault user page into the hypervisor's pagetable") introduced a variable "c" to be used in __get_user() and __get_user_nocheck() which need to stay as macros for performance reasons, and "c" is not

[PATCH 1/1] infiniband/mm: convert put_page() to put_user_page*()

2019-05-23 Thread john . hubbard
From: John Hubbard For infiniband code that retains pages via get_user_pages*(), release those pages via the new put_user_page(), or put_user_pages*(), instead of put_page() This is a tiny part of the second step of fixing the problem described in [1]. The steps are: 1) Provide

[PATCH 0/1] infiniband/mm: convert put_page() to put_user_page*()

2019-05-23 Thread john . hubbard
From: John Hubbard Hi Jason and all, IIUC, now that we have the put_user_pages() merged in to linux.git, we can start sending up the callsite conversions via different subsystem maintainer trees. Here's one for linux-rdma. I've left the various Reviewed-by: and Tested-by: tags on here, even

Re: [PATCH 1/3] dt-bindings: clock: imx8mm: Add SNVS clock

2019-05-23 Thread Shawn Guo
On Wed, May 15, 2019 at 01:29:53AM +, Anson Huang wrote: > Add macro for the SNVS clock of the i.MX8MM. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH 1/6] staging: kpc2000: fix indent in cell_probe.c

2019-05-23 Thread Greg KH
On Thu, May 23, 2019 at 09:26:25AM +0200, Greg KH wrote: > On Wed, May 22, 2019 at 10:58:44PM +0200, Simon Sandström wrote: > > Use tabs instead of spaces for indentation. > > > > Signed-off-by: Simon Sandström > > --- > > drivers/staging/kpc2000/kpc2000/cell_probe.c | 574 +-- >

Re: need company for kernel upgrade

2019-05-23 Thread walter harms
Am 23.05.2019 00:31, schrieb Aung: > Hello > > I thought you build a kernel, then using SCP or dd to overwite uImage > file to replace > the previous kernel image into the file system, then reboot it. Or are > you trying to > upgrade without rebooting? Cheers! > No, the company i am working

Re: [PATCH 2/3] clk: imx8mm: add SNVS clock to clock tree

2019-05-23 Thread Shawn Guo
On Wed, May 15, 2019 at 01:29:57AM +, Anson Huang wrote: > i.MX8MM has clock gate for SNVS module, add it into clock tree > for SNVS RTC driver to manage. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH] staging: pi433: cleanup to adhere with linux coding style

2019-05-23 Thread Greg Kroah-Hartman
On Wed, May 22, 2019 at 06:06:22PM -0700, Shobhit Kukreti wrote: > The linux coding style emphasizes on a limit of 80 characters > per line. Cleaned up several over 80 character warnings in following files: > > pi433_if.c > pi433_if.h > rf69.c > > Signed-off-by: Shobhit Kukreti > --- >

Re: [PATCH 3/3] arm64: dts: imx8mm: add clock for SNVS RTC node

2019-05-23 Thread Shawn Guo
On Wed, May 15, 2019 at 01:30:02AM +, Anson Huang wrote: > i.MX8MM has clock gate for SNVS module, add clock info to SNVS > RTC node for clock management. > > Signed-off-by: Anson Huang Applied, thanks.

[PATCH net-next v2 4/5] net: stmmac: add xPCS functions for device with DWMACv5.1

2019-05-23 Thread Voon Weifeng
From: Ong Boon Leong We introduce support for driver that has v5.10 IP and is also using xPCS as MMD. This can be easily enabled for other product that integrates xPCS that is not using v5.00 IP. Reviewed-by: Chuah Kim Tatt Reviewed-by: Voon Weifeng Reviewed-by: Kweh Hock Leong Reviewed-by:

[PATCH net-next v2 5/5] net: stmmac: add EHL SGMII 1Gbps PCI info and PCI ID

2019-05-23 Thread Voon Weifeng
Added EHL SGMII 1Gbps PCI ID. Different MII and speed will have different PCI ID. Signed-off-by: Voon Weifeng --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 111 +++ 1 file changed, 111 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c

[PATCH net-next v2 2/5] net: stmmac: introducing support for DWC xPCS logics

2019-05-23 Thread Voon Weifeng
From: Ong Boon Leong xPCS is DWC Ethernet Physical Coding Sublayer that may be integrated into a GbE controller that uses DWC EQoS MAC controller. An example of HW configuration is shown below:- <-GBE Controller-->|<--External PHY chip--> +--+ ++

[PATCH net-next v2 0/5] net: stmmac: enable EHL SGMII

2019-05-23 Thread Voon Weifeng
012345678901234567890123456789012345678901234567890123456789012345678901234 This patch-set is to enable Ethernet controller (DW Ethernet QoS and DW Ethernet PCS) with SGMII interface in Elkhart Lake. The DW Ethernet PCS is the Physical Coding Sublayer that is between Ethernet MAC and PHY and uses

[PATCH net-next v2 1/5] net: stmmac: enable clause 45 mdio support

2019-05-23 Thread Voon Weifeng
From: Kweh Hock Leong DWMAC4 is capable to support clause 45 mdio communication. This patch enable the feature on stmmac_mdio_write() and stmmac_mdio_read() by following phy_write_mmd() and phy_read_mmd() mdiobus read write implementation format. Reviewed-by: Li, Yifan Signed-off-by: Kweh Hock

[PATCH net-next v2 3/5] net: stmmac: add xpcs function hooks into main driver and ethtool

2019-05-23 Thread Voon Weifeng
From: Ong Boon Leong With xPCS functions now ready, we add them into the main driver and ethtool logics. To differentiate from EQoS MAC PCS and DWC Ethernet xPCS, we introduce 'has_xpcs' in platform data as a mean to indicate whether GBE controller includes xPCS or not. To support

[PATCH 2/2] serial: 8250-mtk: modify uart DMA rx

2019-05-23 Thread Long Cheng
Modify uart rx and complete for DMA Signed-off-by: Long Cheng --- drivers/tty/serial/8250/8250_mtk.c | 49 +++- 1 file changed, 20 insertions(+), 29 deletions(-) diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c index

[PATCH v13 1/2] arm: dts: mt2712: add uart APDMA to device tree

2019-05-23 Thread Long Cheng
1. add uart APDMA controller device node 2. add uart 0/1/2/3/4/5 DMA function Signed-off-by: Long Cheng --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 51 + 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi

[PATCH v13 0/2] add uart DMA function

2019-05-23 Thread Long Cheng
In Mediatek SOCs, the uart can support DMA function. Base on DMA engine formwork, we add the DMA code to support uart. And put the code under drivers/dma/mediatek. This series contains document bindings, Kconfig to control the function enable or not, device tree including interrupt and dma

[PATCH net-next 00/18] net: stmmac: Improvements and Selftests

2019-05-23 Thread Jose Abreu
[ Thanks to the introducion of selftests this series ended up being a misc of improvements and the selftests additions per-se. ] This introduces selftests support in stmmac driver. We add 9 basic sanity checks and MAC loopback support for all cores within the driver. This way more tests can

[PATCH net-next 04/18] net: stmmac: dwmac4/5: Add MAC loopback support

2019-05-23 Thread Jose Abreu
In preparation for the addition of stmmac selftests we implement the MAC loopback callback in dwmac4/5 cores. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/dwmac4.h |

[PATCH net-next 01/18] net: stmmac: Add MAC loopback callback to HWIF

2019-05-23 Thread Jose Abreu
In preparation for the addition of selftests support for stmmac we add a new callback to HWIF that can be used to set the controller in loopback mode. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Corentin Labbe ---

[PATCH net-next 06/18] net: ethernet: stmmac: dwmac-sun8i: Enable control of loopback

2019-05-23 Thread Jose Abreu
From: Corentin Labbe This patch enable use of set_mac_loopback in dwmac-sun8i Signed-off-by: Corentin Labbe Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 13 + 1

[PATCH net-next 17/18] net: stmmac: dwmac4/5: Clear unused address entries

2019-05-23 Thread Jose Abreu
In case we don't use a given address entry we need to clear it because it could contain previous values that are no longer valid. Found out while running stmmac selftests. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue ---

[PATCH net-next 11/18] net: stmmac: Introduce selftests support

2019-05-23 Thread Jose Abreu
We add support for selftests on stmmac driver with 9 basic sanity checks for now: - MAC Loopback - PHY Loopback - MMC Counters - EEE - Hash Filter Multicast - Perfect Filter Unicast - Multicast Filter All - Unicast Filter All

[PATCH net-next 08/18] net: stmmac: dwmac1000: Also pass control frames while in promisc mode

2019-05-23 Thread Jose Abreu
In order for the selftests to run the Flow Control selftest we need to also pass pause frames to the stack. Pass this type of frames while in promiscuous mode. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue ---

[PATCH net-next 18/18] net: stmmac: Prevent missing interrupts when running NAPI

2019-05-23 Thread Jose Abreu
When we trigger NAPI we are disabling interrupts but in case we receive or send a packet in the meantime, as interrupts are disabled, we will miss this event. Trigger both NAPI instances (RX and TX) when at least one event happens so that we don't miss any interrupts. Signed-off-by: Jose Abreu

[PATCH net-next 02/18] net: stmmac: dwmac100: Add MAC loopback support

2019-05-23 Thread Jose Abreu
In preparation for the addition of stmmac selftests we implement the MAC loopback callback in dwmac100 core. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c |

Re: [PATCH 0/2] Allow pinctrl framework to create links

2019-05-23 Thread Linus Walleij
Hi Benjamin! On Wed, May 22, 2019 at 5:29 PM Benjamin Gaignard wrote: > Some pin controllers may need to ensure suspend/resume calls ordering between > themselves and their clients. > That is the case for STMFX (an I2C GPIO expender) which need to be suspended > after all it clients to let them

[PATCH net-next 14/18] net: stmmac: dwmac4/5: Fix Hash Filter

2019-05-23 Thread Jose Abreu
In order for hash filter to work we need to set the HPF bit. Fout out while running stmmac selftests Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue --- drivers/net/ethernet/stmicro/stmmac/dwmac4.h | 1 +

[PATCH net-next 12/18] net: stmmac: dwmac1000: Fix Hash Filter

2019-05-23 Thread Jose Abreu
In order for hash filter to work we need to set the HPF bit. Found out while running stmmac selftests. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue --- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c | 1 + 1 file changed, 1

[PATCH net-next 10/18] net: stmmac: dwxgmac2: Also pass control frames while in promisc mode

2019-05-23 Thread Jose Abreu
In order for the selftests to run the Flow Control selftest we need to also pass pause frames to the stack. Pass this type of frames while in promiscuous mode. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue ---

[PATCH net-next 07/18] net: stmmac: Switch MMC functions to HWIF callbacks

2019-05-23 Thread Jose Abreu
XGMAC has a different MMC module. Lets use HWIF callbacks for MMC module so that correct callbacks are automatically selected. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue --- drivers/net/ethernet/stmicro/stmmac/common.h |

[PATCH net-next 09/18] net: stmmac: dwmac4/5: Also pass control frames while in promisc mode

2019-05-23 Thread Jose Abreu
In order for the selftests to run the Flow Control selftest we need to also pass pause frames to the stack. Pass this type of frames while in promiscuous mode. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue ---

[PATCH net-next 13/18] net: stmmac: dwmac1000: Clear unused address entries

2019-05-23 Thread Jose Abreu
In case we don't use a given address entry we need to clear it because it could contain previous values that are no longer valid. Found out while running stmmac selftests. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue ---

[PATCH net-next 15/18] net: stmmac: dwmac4/5: Do not disable whole RX in dma_stop_rx()

2019-05-23 Thread Jose Abreu
We don't need to disable the whole RX when dma_stop_rx() is called because there may be the need of just disabling 1 DMA channel. This is also needed for stmmac Flow Control selftest. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue

[PATCH net-next 16/18] net: stmmac: dwxgmac2: Do not disable whole RX in dma_stop_rx()

2019-05-23 Thread Jose Abreu
We don't need to disable the whole RX when dma_stop_rx() is called because there may be the need of just disabling 1 DMA channel. This is also needed for stmmac Flow Control selftest. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue

Re: [PATCH v2] arm64: dts: ls1028a: Add esdhc node in dts

2019-05-23 Thread Shawn Guo
On Wed, May 15, 2019 at 12:00:46PM +0800, Yinbo Zhu wrote: > From: Ashish Kumar > > This patch is to add esdhc node and enable SD UHS-I, > eMMC HS200 for ls1028ardb/ls1028aqds board. > > Signed-off-by: Ashish Kumar > Signed-off-by: Yangbo Lu > Signed-off-by: Yinbo Zhu > --- > Change in v2: >

[PATCH net-next 03/18] net: stmmac: dwmac1000: Add MAC loopback support

2019-05-23 Thread Jose Abreu
In preparation for the addition of stmmac selftests we implement the MAC loopback callback in dwmac1000 core. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c

[PATCH net-next 05/18] net: stmmac: dwxgmac2: Add MAC loopback support

2019-05-23 Thread Jose Abreu
In preparation for the addition of stmmac selftests we implement the MAC loopback callback in dwxgmac2 core. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h |

Re: [RESEND][PATCH] arm64: dts: lx2160a: Enable usb3-lpm-capable for usb3 node

2019-05-23 Thread Shawn Guo
On Wed, May 15, 2019 at 02:04:34PM +0800, Ran Wang wrote: > Enable USB3 HW LPM feature for lx2160a and active patch for > snps erratum A-010131. It will disable U1/U2 temperary when > initiate U3 request. > > Signed-off-by: Ran Wang > --- > Depend on:

Re: [PATCH] powerpc/powernv: fix variable "c" set but not used

2019-05-23 Thread Christoph Hellwig
On Thu, May 23, 2019 at 09:26:53AM +0200, Christophe Leroy wrote: > You are not fixing the problem, you are just hiding it. > > If the result of __get_user() is unneeded, it means __get_user() is not the > good function to use. > > Should use fault_in_pages_readable() instead. Also it is not

Re: [PATCH AUTOSEL 5.1 011/375] ip6: fix skb leak in ip6frag_expire_frag_queue()

2019-05-23 Thread Stefan Bader
On 22.05.19 21:15, Sasha Levin wrote: > From: Eric Dumazet > > [ Upstream commit 47d3d7fdb10a21c223036b58bd70ffdc24a472c4 ] > > Since ip6frag_expire_frag_queue() now pulls the head skb > from frag queue, we should no longer use skb_get(), since > this leads to an skb leak. > > Stefan Bader

Re: [PATCH 01/12] perf tools: Separate generic code in dso__data_file_size

2019-05-23 Thread Jiri Olsa
On Thu, May 23, 2019 at 12:10:02PM +0900, Namhyung Kim wrote: > Hi Jirka, > > On Mon, May 13, 2019 at 10:00:15PM +0200, Jiri Olsa wrote: > > On Mon, May 13, 2019 at 04:47:54PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Wed, May 08, 2019 at 03:19:59PM +0200, Jiri Olsa escreveu: > > > > Moving

[PATCH 4/4] powerpc/powernv: remove the unused vas_win_paste_addr and vas_win_id functions

2019-05-23 Thread Christoph Hellwig
These two function have never been used since they were added to the kernel. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/vas.h | 10 -- arch/powerpc/platforms/powernv/vas-window.c | 19 --- arch/powerpc/platforms/powernv/vas.h| 20

[PATCH 3/4] powerpc/powernv: remove dead NPU DMA code

2019-05-23 Thread Christoph Hellwig
None of these routines were ever used since they were added to the kernel. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/book3s/64/mmu.h | 2 - arch/powerpc/include/asm/powernv.h | 22 - arch/powerpc/mm/book3s64/mmu_context.c | 1 -

[PATCH 2/4] powerpc/powernv: remove the unused tunneling exports

2019-05-23 Thread Christoph Hellwig
These have been unused ever since they've been added to the kernel. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/pnv-pci.h| 4 -- arch/powerpc/platforms/powernv/pci-ioda.c | 4 +- arch/powerpc/platforms/powernv/pci.c | 71 ---

remove dead powernv code v2

2019-05-23 Thread Christoph Hellwig
Hi all, the powerpc powernv port has a fairly large chunk of code that never had any upstream user. We generally strive to not keep dead code around, and this was affirmed at least years Maintainer summit. Changes since v1: - rebased to v5.2-rc1 - remove even more dead code

[PATCH 1/4] powerpc/powernv: remove the unused pnv_pci_set_p2p function

2019-05-23 Thread Christoph Hellwig
This function has never been used since it has been added to the tree. We also now have proper PCIe P2P APIs in the core kernel, and any new P2P support should be using those. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/opal-api.h| 6 --

RE: [RESEND][PATCH] arm64: dts: lx2160a: Enable usb3-lpm-capable for usb3 node

2019-05-23 Thread Ran Wang
Hi Shawn, On Thursday, May 23, 2019 15:43, Shawn Guo wrote: > > On Wed, May 15, 2019 at 02:04:34PM +0800, Ran Wang wrote: > > Enable USB3 HW LPM feature for lx2160a and active patch for snps > > erratum A-010131. It will disable U1/U2 temperary when initiate U3 > > request. > > > >

Re: [PATCH 4.14 082/115] cifs: fix memory leak in SMB2_read

2019-05-23 Thread Lars Persson
On Wed, May 15, 2019 at 1:19 PM Greg Kroah-Hartman wrote: > > [ Upstream commit 05fd5c2c61732152a6bddc318aae62d7e436629b ] > > Commit 088aaf17aa79300cab14dbee2569c58cfafd7d6e introduced a leak where > if SMB2_read() returned an error we would return without freeing the > request buffer. > > Cc:

Re: [PATCHv2] arm64: dts: ls1028a: add flexspi nodes

2019-05-23 Thread Shawn Guo
On Wed, May 15, 2019 at 11:09:25AM +, Xiaowei Bao wrote: > From: Xiaowei Bao > > Add fspi node property for LS1028A SoC for FlexSPI driver. > Property added for the FlexSPI controller and for the connected > slave device for the LS1028ARDB and LS1028AQDS target. > This is having one SPI-NOR

Re: [PATCH 1/6] staging: kpc2000: fix indent in cell_probe.c

2019-05-23 Thread Simon Sandström
On Thu, May 23, 2019 at 09:27:59AM +0200, Greg KH wrote: > On Thu, May 23, 2019 at 09:26:25AM +0200, Greg KH wrote: > > > > This chunk does not match what you said this commit did :( > > > > Please fix up and resend. > > Actually, wait, rebase and resend after I apply your other patches. > I'll

Re: [PATCH v5] proc/sysctl: add shared variables for range check

2019-05-23 Thread Aaron Tomlin
On Tue 2019-04-30 20:01 +0200, Matteo Croce wrote: > In the sysctl code the proc_dointvec_minmax() function is often used to > validate the user supplied value between an allowed range. This function > uses the extra1 and extra2 members from struct ctl_table as minimum and > maximum allowed value.

[PATCH 1/8] ceph: fix error handling in ceph_get_caps()

2019-05-23 Thread Yan, Zheng
The function return 0 even when interrupted or try_get_cap_refs() return error. Introduce by commit 1199d7da2d "ceph: simplify arguments and return semantics of try_get_cap_refs" Signed-off-by: "Yan, Zheng" --- fs/ceph/caps.c | 22 +++--- 1 file changed, 11 insertions(+), 11

[PATCH 6/8] ceph: use READ_ONCE to access d_parent in RCU critical section

2019-05-23 Thread Yan, Zheng
Signed-off-by: "Yan, Zheng" --- fs/ceph/mds_client.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 60e8ddbdfdc5..870754e9d572 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -913,7 +913,7 @@ static

[PATCH 8/8] ceph: hold i_ceph_lock when removing caps for freeing inode

2019-05-23 Thread Yan, Zheng
ceph_d_revalidate(, LOOKUP_RCU) may call __ceph_caps_issued_mask() on a freeing inode. Cc: sta...@vger.kernel.org Signed-off-by: "Yan, Zheng" --- fs/ceph/caps.c | 10 ++ fs/ceph/inode.c | 2 +- fs/ceph/super.h | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git

[PATCH 4/8] ceph: close race between d_name_cmp() and update_dentry_lease()

2019-05-23 Thread Yan, Zheng
d_name_cmp() and update_dentry_lease() lock and unlock dentry->d_lock respectively. Dentry may get renamed between them. The fix is moving the dentry name compare into update_dentry_lease(). This patch introduce two version of update_dentry_lease(). One version is for the case that parent inode

[PATCH 5/8] ceph: fix dir_lease_is_valid()

2019-05-23 Thread Yan, Zheng
It should call __ceph_dentry_dir_lease_touch() under dentry->d_lock. Besides, ceph_dentry(dentry) can be NULL when called by LOOKUP_RCU d_revalidate() Cc: sta...@vger.kernel.org # v5.1+ Signed-off-by: "Yan, Zheng" --- fs/ceph/dir.c | 26 +- 1 file changed, 17

[PATCH 7/8] ceph: ensure d_name/d_parent stability in ceph_mdsc_lease_send_msg()

2019-05-23 Thread Yan, Zheng
Signed-off-by: "Yan, Zheng" --- fs/ceph/dir.c| 7 +++ fs/ceph/mds_client.c | 24 +--- fs/ceph/mds_client.h | 1 - 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 1271024a3797..72efad28857c 100644 ---

[PATCH 3/8] ceph: avoid iput_final() while holding mutex or in dispatch thread

2019-05-23 Thread Yan, Zheng
iput_final() may wait for reahahead pages. The wait can cause deadlock. For example: Workqueue: ceph-msgr ceph_con_workfn [libceph] Call Trace: schedule+0x36/0x80 io_schedule+0x16/0x40 __lock_page+0x101/0x140 truncate_inode_pages_range+0x556/0x9f0

[PATCH 2/8] ceph: single workqueue for inode related works

2019-05-23 Thread Yan, Zheng
We have three workqueue for inode works. Later patch will introduce one more work for inode. It's not good to introcuce more workqueue and add more 'struct work_struct' to 'struct ceph_inode_info'. Signed-off-by: "Yan, Zheng" --- fs/ceph/file.c | 2 +- fs/ceph/inode.c | 124

RE: [EXT] Re: [PATCHv2] arm64: dts: ls1028a: add flexspi nodes

2019-05-23 Thread Xiaowei Bao
Hi Shawn, -Original Message- From: Shawn Guo Sent: 2019年5月23日 16:01 To: Xiaowei Bao Cc: Leo Li ; robh...@kernel.org; mark.rutl...@arm.com; linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; linux-kernel@vger.kernel.org Subject: [EXT] Re: [PATCHv2] arm64: dts: ls1028a:

Re: [RESEND PATCH v4 3/6] mfd: ti-lmu: Add LM36274 support to the ti-lmu

2019-05-23 Thread Pavel Machek
On Wed 2019-05-22 14:27:30, Dan Murphy wrote: > Add the LM36274 register support to the ti-lmu MFD driver. > > Signed-off-by: Dan Murphy Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures)

Re: [PATCH v3 14/16] powerpc/32: implement fast entry for syscalls on BOOKE

2019-05-23 Thread Christophe Leroy
Le 23/05/2019 à 09:00, Christophe Leroy a écrit : [...] arch/powerpc/kernel/head_fsl_booke.o: In function `SystemCall': arch/powerpc/kernel/head_fsl_booke.S:416: undefined reference to `kvmppc_handler_BOOKE_INTERRUPT_SYSCALL_SPRN_SRR1' Makefile:1052: recipe for target 'vmlinux' failed

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-23 Thread Jarkko Sakkinen
On Wed, May 22, 2019 at 03:42:45PM -0700, Andy Lutomirski wrote: > As far as I know from this whole discussion, we still haven't come up > with any credible way to avoid tracking, per enclave page, whether > that page came from unmodified PROT_EXEC memory. So is this in the context that the

Re: [PATCH 1/3] perf report: Fix OOM error in TUI mode on s390

2019-05-23 Thread Thomas-Mich Richter
On 5/22/19 8:08 PM, Arnaldo Carvalho de Melo wrote: > Em Wed, May 22, 2019 at 04:45:59PM +0200, Thomas Richter escreveu: > . >> >> This size kills the TUI interface when executing the following >> code: >> >> process_sample_event() >> hist_entry_iter__add() >>

Re: [RESEND PATCH v4 4/6] regulator: lm363x: Add support for LM36274

2019-05-23 Thread Pavel Machek
On Wed 2019-05-22 14:27:31, Dan Murphy wrote: > Adding regulator support for the LM36274 backlight driver. > This device can leverage this existing code as the functionality > and registers are common enough between the LM36274 and the LM363x > series of devices. > > Signed-off-by: Dan Murphy

Re: [PATCH] lib/sort: Add the sort_r() variant

2019-05-23 Thread Boris Brezillon
Hi Andrew, On Wed, 22 May 2019 11:33:15 -0700 Andrew Morton wrote: > On Wed, 22 May 2019 13:25:50 +0200 Boris Brezillon > wrote: > > > Some users might need extra context to compare 2 elements. This patch > > adds the sort_r() which is similar to the qsort_r() variant of qsort(). > > > >

Re: [PATCH] proc: report eip and esp for all threads when coredumping

2019-05-23 Thread Jan Lübbe
On Wed, 2019-05-22 at 11:00 -0700, Andrew Morton wrote: > On Wed, 22 May 2019 18:16:14 +0200 Jan Luebbe wrote: > > > Commit 0a1eb2d474ed ("fs/proc: Stop reporting eip and esp in > > /proc/PID/stat") stopped reporting eip/esp and commit fd7d56270b52 > > ("fs/proc: Report eip/esp in /prod/PID/stat

Re: [EXT] Re: [PATCHv2] arm64: dts: ls1028a: add flexspi nodes

2019-05-23 Thread Shawn Guo
On Thu, May 23, 2019 at 08:06:42AM +, Xiaowei Bao wrote: > > + compatible = "nxp,lx2160a-fspi", "simple-bus"; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + reg = <0x0 0x20c 0x0 0x1>, > > + <0x0 0x2000 0x0

  1   2   3   4   5   6   7   8   9   10   >