[PATCH] usb: phy: mxs: Disable external charger detect in mxs_phy_hw_init()

2019-05-29 Thread Andrey Smirnov
Since this driver already handles changer detction state, copy the workaround code currently residing in arch/arm/mach-imx/anatop.c into this drier to consolidate the places modifying it. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Felipe Balbi Cc: Shawn Guo Cc: Fabio Estevam Cc: NXP Li

Re: [PATCH net-next] macvlan: Replace strncpy() by strscpy()

2019-05-29 Thread David Miller
From: "Gustavo A. R. Silva" Date: Mon, 27 May 2019 13:38:55 -0500 > The strncpy() function is being deprecated. Replace it by the safer > strscpy() and fix the following Coverity warning: > > "Calling strncpy with a maximum size argument of 16 bytes on destination > array ifrr.ifr_ifrn.ifrn_name

Re: [PATCH net-next] macvlan: Replace strncpy() by strscpy()

2019-05-29 Thread David Miller
From: "Gustavo A. R. Silva" Date: Mon, 27 May 2019 13:38:55 -0500 > The strncpy() function is being deprecated. Replace it by the safer > strscpy() and fix the following Coverity warning: > > "Calling strncpy with a maximum size argument of 16 bytes on destination > array ifrr.ifr_ifrn.ifrn_name

[PATCH net v2] net: dsa: mv88e6xxx: fix handling of upper half of STATS_TYPE_PORT

2019-05-29 Thread Rasmus Villemoes
Currently, the upper half of a 4-byte STATS_TYPE_PORT statistic ends up in bits 47:32 of the return value, instead of bits 31:16 as they should. Fixes: 6e46e2d821bb ("net: dsa: mv88e6xxx: Fix u64 statistics") Signed-off-by: Rasmus Villemoes --- v2: include Fixes tag, use proper subject prefix.

Re: [PATCH] mm: Fail when offset == num in first check of vm_map_pages_zero()

2019-05-29 Thread Souptick Joarder
On Wed, May 29, 2019 at 1:38 AM Miguel Ojeda wrote: > > If the user asks us for offset == num, we should already fail in the > first check, i.e. the one testing for offsets beyond the object. > > At the moment, we are failing on the second test anyway, > since count cannot be 0. Still, to agree wi

[PATCH 2/2] power: supply: ucs1002: Add HWMON interface

2019-05-29 Thread Andrey Smirnov
Expose current sensors found on UCS1002 via HWMON. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Fabio Estevam Cc: Guenter Roeck Cc: Sebastian Reichel Cc: linux-kernel@vger.kernel.org Cc: linux...@vger.kernel.org --- drivers/power/supply/ucs1002_power.c | 9 - 1

[PATCH 1/2] power: supply: Add HWMON compatibility layer

2019-05-29 Thread Andrey Smirnov
Add code implementing HWMON adapter/compatibility layer to allow expositing various sensors present on power supply devices via HWMON subsystem. This is done in order to allow userspace to use single ABI/library(libsensors) to access/manipulate all of the sensors of the system. Signed-off-by: Andr

[PATCH 0/2] HWMON compatibility layer for power supplies

2019-05-29 Thread Andrey Smirnov
Everyone: This small series contains the code I wrote to expose various power supply sensors via HWMON layer in order to be able to access all of the sensors in the system with libsensors. Not sure if this is an something that can be accepted upstream, so I am hoping to get some quick feedback. T

Re: [PATCH v2 08/10] Input: elan_i2c - export true width/height

2019-05-29 Thread Benjamin Tissoires
On Wed, May 29, 2019 at 2:12 AM Sean O'Brien wrote: > > We do still use a maxed out major axis as a signal for a palm in the > touchscreen > logic, but I'm not too concerned because if that axis is maxed out, the > contact > should probably be treated as a palm anyway... > > I'm more concerned w

[PATCH 2/3] ARM: dts: imx6: rdu2: Disable WP for USDHC2 and USDHC3

2019-05-29 Thread Andrey Smirnov
RDU2 production units come with resistor connecting WP pin to correpsonding GPIO DNPed for both SD card slots. Drop any WP related configuration and mark both slots with "disable-wp". Reported-by: Chris Healy Reviewed-by: Chris Healy Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Fabio Esteva

[PATCH 1/3] ARM: dts: imx6: rdu2: Add node for UCS1002 USB charger chip

2019-05-29 Thread Andrey Smirnov
Add node for UCS1002 USB charger chip connected to front panel USB and replace "regulator-fixed" previously used to control VBUS. Signed-off-by: Lucas Stach Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: Lucas Stach Cc: linux-arm-ker...@lists.infradead.org

[PATCH 3/3] ARM: dts: imx6: rdu2: Limit USBH1 to Full Speed

2019-05-29 Thread Andrey Smirnov
Cabling used to connect devices to USBH1 on RDU2 does not meet USB spec cable quality and cable length requirements to operate at High Speed, so limit the port to Full Speed only. Reported-by: Chris Healy Reviewed-by: Chris Healy Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Fabio Estevam C

Re: [linux-sunxi] Re: [PATCH v2 00/10] Allwinner A64/H6 IR support

2019-05-29 Thread Maxime Ripard
On Tue, May 28, 2019 at 08:04:47PM +0200, Ondřej Jirman wrote: > Hello Clément, > > On Tue, May 28, 2019 at 06:21:19PM +0200, Clément Péron wrote: > > Hi Ondřej, > > > > On Mon, 27 May 2019 at 21:53, 'Ondřej Jirman' via linux-sunxi > > wrote: > > > > > > Hi Clément, > > > > > > On Mon, May 27, 201

Re: [PATCH, RFC 43/62] syscall/x86: Wire up a system call for MKTME encryption keys

2019-05-29 Thread Mike Rapoport
On Wed, May 08, 2019 at 05:44:03PM +0300, Kirill A. Shutemov wrote: > From: Alison Schofield > > encrypt_mprotect() is a new system call to support memory encryption. > > It takes the same parameters as legacy mprotect, plus an additional > key serial number that is mapped to an encryption keyid

Re: [PATCH, RFC 02/62] mm: Add helpers to setup zero page mappings

2019-05-29 Thread Mike Rapoport
On Wed, May 08, 2019 at 05:43:22PM +0300, Kirill A. Shutemov wrote: > When kernel setups an encrypted page mapping, encryption KeyID is Nit: "when kernel sets up an encrypted..." > derived from a VMA. KeyID is going to be part of vma->vm_page_prot and > it will be propagated transparently to page

Re: [PATCH, RFC 05/62] mm/page_alloc: Handle allocation for encrypted memory

2019-05-29 Thread Mike Rapoport
On Wed, May 08, 2019 at 05:43:25PM +0300, Kirill A. Shutemov wrote: > For encrypted memory, we need to allocate pages for a specific > encryption KeyID. > > There are two cases when we need to allocate a page for encryption: > > - Allocation for an encrypted VMA; > > - Allocation for migration

Re: [PATCH, RFC 57/62] x86/mktme: Overview of Multi-Key Total Memory Encryption

2019-05-29 Thread Mike Rapoport
On Wed, May 08, 2019 at 05:44:17PM +0300, Kirill A. Shutemov wrote: > From: Alison Schofield > > Provide an overview of MKTME on Intel Platforms. > > Signed-off-by: Alison Schofield > Signed-off-by: Kirill A. Shutemov > --- > Documentation/x86/mktme/index.rst | 8 +++ > Documentatio

Re: [PATCH 1/3] ARM: dts: imx6: rdu2: Add node for UCS1002 USB charger chip

2019-05-29 Thread Andrey Smirnov
On Wed, May 29, 2019 at 12:18 AM Andrey Smirnov wrote: > > Add node for UCS1002 USB charger chip connected to front panel USB and > replace "regulator-fixed" previously used to control VBUS. > > Signed-off-by: Lucas Stach > Signed-off-by: Andrey Smirnov > Cc: Shawn Guo > Cc: Chris Healy > Cc:

Re: [linux-sunxi] [RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies

2019-05-29 Thread Maxime Ripard
On Tue, May 28, 2019 at 09:35:44AM +0300, Priit Laes wrote: > Lime2 has battery connector so enable these supplies. > > Signed-off-by: Priit Laes Applied, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com signature.asc Description: PGP signature

Re: [UPSTREAM KERNEL] mm/zsmalloc.c: Add module parameter malloc_force_movable

2019-05-29 Thread Sergey Senozhatsky
On (05/29/19 09:22), Hui Zhu wrote: > When it enabled: > ~# echo 1 > /sys/module/zsmalloc/parameters/malloc_force_movable > ~# echo lz4 > /sys/module/zswap/parameters/compressor > ~# echo zsmalloc > /sys/module/zswap/parameters/zpool > ~# echo 1 > /sys/module/zswap/parameters/enabled > ~# swapon /s

[PATCH v2] x86/fpu: Use fault_in_pages_writeable() for pre-faulting

2019-05-29 Thread Sebastian Andrzej Siewior
From: Hugh Dickins Since commit d9c9ce34ed5c8 ("x86/fpu: Fault-in user stack if copy_fpstate_to_sigframe() fails") we use get_user_pages_unlocked() to pre-faulting user's memory if a write generates a pagefault while the handler is disabled. This works in general and uncovered a bug as repo

Re: [PATCH 4/6] mm: add a gup_fixup_start_addr hook

2019-05-29 Thread Christoph Hellwig
On Tue, May 28, 2019 at 09:57:25AM -0600, Khalid Aziz wrote: > Since untagging addresses is a generic need required for far more than > gup, I prefer the way Andrey wrote it - > Linus, what do you think of picking up that trivial prep patch for 5.2?

[PATCH] mtd: afs: remove unneeded NULL check

2019-05-29 Thread Ding Xiang
NULL check before kfree is unneeded, so remove it. Signed-off-by: Ding Xiang --- drivers/mtd/parsers/afs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/parsers/afs.c b/drivers/mtd/parsers/afs.c index 0c73002..972b260 100644 --- a/drivers/mtd/parsers/afs.c +++

Re: [PATCH 2/9] perf/x86/intel: Basic support for metrics counters

2019-05-29 Thread Peter Zijlstra
On Tue, May 28, 2019 at 02:21:49PM -0400, Liang, Kan wrote: > > > On 5/28/2019 8:15 AM, Peter Zijlstra wrote: > > On Tue, May 21, 2019 at 02:40:48PM -0700, kan.li...@linux.intel.com wrote: > > > +/* > > > + * We model PERF_METRICS as more magic fixed-mode PMCs, one for each > > > metric > > > +

Re: [PATCH 4/9] perf/x86/intel: Support hardware TopDown metrics

2019-05-29 Thread Peter Zijlstra
On Tue, May 28, 2019 at 02:23:09PM -0400, Liang, Kan wrote: > > > RDPMC > > > = > > > The TopDown can be collected per thread/process. To use TopDown > > > through RDPMC in applications on Icelake, the metrics and slots values > > > have to be saved/restored during context switching. > > >

Re: [PATCH, RFC 00/62] Intel MKTME enabling

2019-05-29 Thread Mike Rapoport
On Wed, May 08, 2019 at 05:43:20PM +0300, Kirill A. Shutemov wrote: > = Intro = > > The patchset brings enabling of Intel Multi-Key Total Memory Encryption. > It consists of changes into multiple subsystems: > > * Core MM: infrastructure for allocation pages, dealing with encrypted VMAs >and

Re: [PATCH v3 1/6] i2c: core: Allow whole core to use i2c_dev_irq_from_resources

2019-05-29 Thread Mika Westerberg
On Tue, May 28, 2019 at 03:28:55PM +0100, Charles Keepax wrote: > Remove the static from i2c_dev_irq_from _resources so that other parts > of the core code can use this helper function. > > Signed-off-by: Charles Keepax Reviewed-by: Mika Westerberg

Re: [PATCH 4/9] perf/x86/intel: Support hardware TopDown metrics

2019-05-29 Thread Peter Zijlstra
On Tue, May 28, 2019 at 02:24:14PM -0400, Liang, Kan wrote: > > > + if (!(txn_flags & PERF_PMU_TXN_REMOVE)) { > > > + /* Reset the metric value when reading > > > + * The SLOTS register must be reset when PERF_METRICS > > > reset, > > > +

Re: [PATCH v3 2/6] i2c: acpi: Use available IRQ helper functions

2019-05-29 Thread Mika Westerberg
On Tue, May 28, 2019 at 03:28:56PM +0100, Charles Keepax wrote: > Use the available IRQ helper functions, most of the functions have > additional helpful side affects like configuring the trigger type of the > IRQ. > > Signed-off-by: Charles Keepax Reviewed-by: Mika Westerberg

Re: [PATCH v3 3/6] i2c: acpi: Factor out getting the IRQ from ACPI

2019-05-29 Thread Mika Westerberg
On Tue, May 28, 2019 at 03:28:57PM +0100, Charles Keepax wrote: > In preparation for future refactoring factor out the fetch of the IRQ > into its own helper function. > > Signed-off-by: Charles Keepax Reviewed-by: Mika Westerberg

question on lazy tlb flush

2019-05-29 Thread Zhenzhong Duan
Hi Maintainers, A question raised when I learned below code.  Appreciate any help me understand the code. void native_flush_tlb_others(const struct cpumask *cpumask, const struct flush_tlb_info *info) { ...     /* * If no page tables were freed, we

[PATCH 1/1] rtc: rv3028: check return value

2019-05-29 Thread Xidong Wang
In rv3028_probe(), the return value of devm_regmap_init_i2c() should be checked before it is used. Signed-off-by: Xidong Wang --- drivers/rtc/rtc-rv3028.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/rtc/rtc-rv3028.c b/drivers/rtc/rtc-rv3028.c index 06884eb..29a8c4e 100644 ---

RE: [v4, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-29 Thread Jose Abreu
From: Biao Huang Date: Wed, May 29, 2019 at 02:38:44 > } else if (!netdev_mc_empty(dev)) { > - u32 mc_filter[2]; > + u32 mc_filter[8]; > struct netdev_hw_addr *ha; The reverse christmas tree also applies here. I also see some coding-style errors, like

Re: [PATCH v3 4/6] i2c: core: Move ACPI IRQ handling to probe time

2019-05-29 Thread Mika Westerberg
On Tue, May 28, 2019 at 03:28:58PM +0100, Charles Keepax wrote: > Bring the ACPI path in sync with the device tree path and handle all the > IRQ fetching at probe time. This leaves the only IRQ handling at device > registration time being that which is passed directly through the board > info as ei

Re: [PATCH 01/25] vfs: syscall: Add fsinfo() to query filesystem information [ver #13]

2019-05-29 Thread Miklos Szeredi
On Tue, May 28, 2019 at 5:11 PM David Howells wrote: > > Add a system call to allow filesystem information to be queried. A request > value can be given to indicate the desired attribute. Support is provided > for enumerating multi-value attributes. > [...] > +static u32 calc_sb_flags(u32 s_fl

Re: [PATCH v3 5/6] i2c: core: Move ACPI gpio IRQ handling into i2c_acpi_get_irq

2019-05-29 Thread Mika Westerberg
On Tue, May 28, 2019 at 03:28:59PM +0100, Charles Keepax wrote: > It makes sense to contain all the ACPI IRQ handling in a single helper > function. > > Signed-off-by: Charles Keepax Reviewed-by: Mika Westerberg

[PATCH v6 04/10] dt-bindings: usb: mtu3: add properties about USB Role Switch

2019-05-29 Thread Chunfeng Yun
Now the USB Role Switch is supported, so add properties about it, and modify some description related. Signed-off-by: Chunfeng Yun Reviewed-by: Rob Herring --- v4 no changes v5 changes: 1. modify decription about extcon and vbus-supply properties 2. make this patch depend on [1] [1]: [v3] d

[PATCH v6 09/10] usb: roles: add USB Type-B GPIO connector driver

2019-05-29 Thread Chunfeng Yun
Due to the requirement of usb-connector.txt binding, the old way using extcon to support USB Dual-Role switch is now deprecated when use Type-B connector. This patch introduces a driver of Type-B connector which typically uses an input GPIO to detect USB ID pin, and try to replace the function prov

[PATCH v6 02/10] dt-bindings: connector: add optional properties for Type-B

2019-05-29 Thread Chunfeng Yun
Add id-gpios, vbus-gpios, vbus-supply and pinctrl properties for usb-b-connector Signed-off-by: Chunfeng Yun Reviewed-by: Rob Herring --- v6 no changes v5 changes: 1. add reviewed by Rob v4 no changes v3 changes: 1. add GPIO direction, and use fixed-regulator for GPIO controlled VBUS re

[PATCH v6 03/10] dt-bindings: usb: add binding for Type-B GPIO connector driver

2019-05-29 Thread Chunfeng Yun
It's used to support dual role switch via GPIO when use Type-B receptacle, typically the USB ID pin is connected to an input GPIO pin Signed-off-by: Chunfeng Yun --- v6 changes: 1. remove status and port nodes in example 2. make vbus-supply as optional property v5 changes: 1. treat type-B con

[PATCH v6 01/10] dt-binding: usb: add usb-role-switch property

2019-05-29 Thread Chunfeng Yun
Add a property usb-role-switch to tell the driver that use USB Role Switch framework to handle the role switch, it's useful when the driver has already supported other ways, such as extcon framework etc. Cc: Biju Das Cc: Yu Chen Signed-off-by: Chunfeng Yun Reviewed-by: Rob Herring Reviewed-by:

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

2019-05-29 Thread Chunfeng Yun
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 instead of struct device. Signed-off-by: Heikki Krogerus --- v6: new patch --- drivers/usb/roles/class.c | 20 +

[PATCH v6 00/10] add USB Type-B GPIO connector driver

2019-05-29 Thread Chunfeng Yun
Because the USB Connector is introduced and the requirement of usb-connector.txt binding, the old way using extcon to support USB Dual-Role switch is now deprecated, meanwhile there is no available common driver when use Type-B connector, typically using an input GPIO to detect USB ID pin. This pat

[PATCH v6 05/10] usb: roles: Introduce stubs for the exiting functions in role.h.

2019-05-29 Thread Chunfeng Yun
From: Yu Chen This patch adds stubs for the exiting functions while CONFIG_USB_ROLE_SWITCH does not enabled. Cc: Greg Kroah-Hartman Cc: Heikki Krogerus Cc: Hans de Goede Cc: Andy Shevchenko Cc: John Stultz Reviewed-by: Heikki Krogerus Signed-off-by: Yu Chen --- v6: merge this patch [1]

[PATCH v6 08/10] usb: roles: get usb-role-switch from parent

2019-05-29 Thread Chunfeng Yun
when the USB host controller is the parent of the connector, usually type-B, sometimes don't need the graph, so we should check whether it's parent registers usb-role-switch or not firstly, and get it if exists. Signed-off-by: Heikki Krogerus Signed-off-by: Chunfeng Yun --- v6: new patch ---

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

2019-05-29 Thread Chunfeng Yun
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 instead of struct device. That allows locating device connections before the device entries have been created. Signed-off-by:

[PATCH v6 10/10] usb: mtu3: register a USB Role Switch for dual role mode

2019-05-29 Thread Chunfeng Yun
Because extcon is not allowed for new bindings, and the dual role switch is supported by USB Role Switch, especially for Type-C drivers, so register a USB Role Switch to support the new way Signed-off-by: Chunfeng Yun --- v6 no changes v5 no changes v4 changes: 1. assign fwnode member of usb_

Re: [PATCH v3 6/6] i2c: core: Tidy up handling of init_irq

2019-05-29 Thread Mika Westerberg
On Tue, May 28, 2019 at 03:29:00PM +0100, Charles Keepax wrote: > Only set init_irq during i2c_device_new and only handle client->irq on > the probe/remove paths. > > Suggested-by: Benjamin Tissoires > Signed-off-by: Charles Keepax Reviewed-by: Mika Westerberg

[PATCH v2 1/1] arm64: dts: rockchip: add core dtsi file for RK3399Pro SoCs

2019-05-29 Thread Jianqun Xu
This patch adds core dtsi file for Rockchip RK3399Pro SoCs, include rk3399.dtsi. Also enable these nodes: - pcie/pcie_phy - sdhci/sdio/emmc/sdmmc Signed-off-by: Jianqun Xu --- changes since v1: - remove dfi and dmc arch/arm64/boot/dts/rockchip/rk3399pro.dtsi | 74 + 1 file c

Re: [PATCH v1] KVM: x86: PMU Whitelist

2019-05-29 Thread Wei Wang
On 05/29/2019 02:14 AM, Eric Hankland wrote: On Mon, May 27, 2019 at 6:56 PM Wei Wang wrote: On 05/23/2019 06:23 AM, Eric Hankland wrote: - Add a VCPU ioctl that can control which events the guest can monitor. Signed-off-by: ehankland --- Some events can provide a guest with information abou

Re: Testing the recent RISC-V DT patchsets

2019-05-29 Thread Atish Patra
On 5/28/19 8:36 AM, Karsten Merker wrote: On Tue, May 28, 2019 at 05:10:42PM +0200, Loys Ollivier wrote: On Tue 28 May 2019 at 01:32, Paul Walmsley wrote: An update for those testing RISC-V patches: here's a new branch of riscv-pk/bbl that doesn't try to read or modify the DT data at all, whi

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

2019-05-29 Thread Jose Abreu
From: Voon Weifeng Date: Wed, May 29, 2019 at 11:18:33 > 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 MDIO Clause-

Re: [PATCH 4/9] perf/x86/intel: Support hardware TopDown metrics

2019-05-29 Thread Peter Zijlstra
On Tue, May 28, 2019 at 02:24:38PM -0400, Liang, Kan wrote: > > > On 5/28/2019 9:43 AM, Peter Zijlstra wrote: > > On Tue, May 21, 2019 at 02:40:50PM -0700, kan.li...@linux.intel.com wrote: > > > @@ -3287,6 +3304,13 @@ static int core_pmu_hw_config(struct perf_event > > > *event) > > >

Re: [linux-sunxi] Re: [PATCH v2 00/10] Allwinner A64/H6 IR support

2019-05-29 Thread Clément Péron
Hi, On Wed, 29 May 2019 at 09:19, Maxime Ripard wrote: > > On Tue, May 28, 2019 at 08:04:47PM +0200, Ondřej Jirman wrote: > > Hello Clément, > > > > On Tue, May 28, 2019 at 06:21:19PM +0200, Clément Péron wrote: > > > Hi Ondřej, > > > > > > On Mon, 27 May 2019 at 21:53, 'Ondřej Jirman' via linux-

Re: [PATCH 1/7] General notification queue with user mmap()'able ring buffer [ver #13]

2019-05-29 Thread Miklos Szeredi
On Tue, May 28, 2019 at 5:10 PM David Howells wrote: > > Implement a misc device that implements a general notification queue as a > ring buffer that can be mmap()'d from userspace. > > The way this is done is: > > (1) An application opens the device and indicates the size of the ring > buff

Re: [PATCH 4/9] perf/x86/intel: Support hardware TopDown metrics

2019-05-29 Thread Peter Zijlstra
On Tue, May 28, 2019 at 02:24:56PM -0400, Liang, Kan wrote: > > > On 5/28/2019 9:48 AM, Peter Zijlstra wrote: > > On Tue, May 21, 2019 at 02:40:50PM -0700, kan.li...@linux.intel.com wrote: > > > diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > > > index b980b9e95d2a..0d70814

Re: [PATCH 7/9] perf/x86/intel: Disable sampling read slots and topdown

2019-05-29 Thread Peter Zijlstra
On Tue, May 28, 2019 at 02:25:34PM -0400, Liang, Kan wrote: > > > +static int icl_validate_group(struct cpu_hw_events *cpuc, int n) > > > +{ > > > + bool has_sampling_slots = false, has_metrics = false; > > > + struct perf_event *e; > > > + int i; > > > + > > > + for (i = 0; i < n; i++) { > > > +

Re: [PATCH] RISC-V: defconfig: Enable NO_HZ_IDLE and HIGH_RES_TIMERS

2019-05-29 Thread Andreas Schwab
On Mai 28 2019, Palmer Dabbelt wrote: > My only issue here is testing: IIRC last time we tried this it ended up > causing > trouble. I've been running kernels with these settings since the beginning, and never seen any trouble. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fi

Re: [PATCH] usb: phy: mxs: Disable external charger detect in mxs_phy_hw_init()

2019-05-29 Thread Peter Chen
On Wed, May 29, 2019 at 3:01 PM Andrey Smirnov wrote: > > Since this driver already handles changer detction state, copy the > workaround code currently residing in arch/arm/mach-imx/anatop.c into > this drier to consolidate the places modifying it. > > Signed-off-by: Andrey Smirnov > Cc: Chris H

Re: [LKP] [ext4] 079f9927c7: ltp.mmap16.fail

2019-05-29 Thread Naresh Kamboju
Hi Ted, On Wed, 29 May 2019 at 09:26, Theodore Ts'o wrote: > > On Wed, May 29, 2019 at 10:52:56AM +0800, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > > > commit: 079f9927c7bfa026d963db1455197159ebe5b534 ("ext4: gracefully handle > > ext4_break_layouts

Re: [PATCH] clk-sunxi: fix a missing-check bug in sunxi_divs_clk_setup()

2019-05-29 Thread Maxime Ripard
On Tue, May 28, 2019 at 10:18:51AM +0800, Gen Zhang wrote: > In sunxi_divs_clk_setup(), 'derived_name' is allocated by kstrndup(). > It returns NULL when fails. 'derived_name' should be checked. > > Signed-off-by: Gen Zhang Applied, thanks Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kern

Re: need company for kernel upgrade

2019-05-29 Thread walter harms
Am 28.05.2019 21:35, schrieb Enrico Weigelt, metux IT consult: > On 28.05.19 12:58, Pavel Machek wrote: > > Hi, > >> On Fri 2019-05-24 01:01:16, Theodore Ts'o wrote: >>> On Thu, May 23, 2019 at 09:29:11AM +0200, walter harms wrote: No, the company i am working for has a custom b

Re: [PATCH 5/5] [RFC] devlink: Fix uninitialized error code in devlink_fmsg_prepare_skb()

2019-05-29 Thread Jiri Pirko
Tue, May 28, 2019 at 04:24:24PM CEST, ge...@linux-m68k.org wrote: >With gcc 4.1: > >net/core/devlink.c: In function ‘devlink_fmsg_prepare_skb’: >net/core/devlink.c:4325: warning: ‘err’ may be used uninitialized in this > function > >Indeed, if the list has less than *start entries, an unin

Re: [PATCH -next] usb: ohci-s3c2410: Remove set but not used variable 'hcd'

2019-05-29 Thread Krzysztof Kozlowski
On Tue, 28 May 2019 at 15:43, YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/usb/host/ohci-s3c2410.c: In function s3c2410_hcd_oc: > drivers/usb/host/ohci-s3c2410.c:296:18: warning: variable hcd set but not > used [-Wunused-but-set-variable] > > It is never used,

[PATCH v4 2/2] dt-bindings: iio: frequency: Add docs for ADF4371 PLL

2019-05-29 Thread Stefan Popa
Document support for Analog Devices ADF4371 SPI Wideband Synthesizer. Signed-off-by: Stefan Popa Reviewed-by: Rob Herring --- Changes in v2: - Nothing changed. Changes in v3: - Nothing changed. Changes in v4: - Nothing changed. .../devicetree/bindings/iio/frequency/adf4

Re: [PATCH] x86/power: Fix 'nosmt' vs. hibernation triple fault during resume

2019-05-29 Thread Rafael J. Wysocki
On Tue, May 28, 2019 at 11:31 PM Jiri Kosina wrote: > > From: Jiri Kosina > > As explained in > > 0cc3cd21657b ("cpu/hotplug: Boot HT siblings at least once") > > we always, no matter what, have to bring up x86 HT siblings during boot at > least once in order to avoid first MCE bringing t

Re: [PATCH v2 1/1] arm64: dts: rockchip: add core dtsi file for RK3399Pro SoCs

2019-05-29 Thread Heiko Stübner
Hi Jay, Am Mittwoch, 29. Mai 2019, 09:47:52 CEST schrieb Jianqun Xu: > This patch adds core dtsi file for Rockchip RK3399Pro SoCs, > include rk3399.dtsi. Also enable these nodes: > - pcie/pcie_phy > - sdhci/sdio/emmc/sdmmc > > Signed-off-by: Jianqun Xu > --- > changes since v1: > - remove dfi an

Re: [PATCH 04/25] vfs: Implement parameter value retrieval with fsinfo() [ver #13]

2019-05-29 Thread Miklos Szeredi
On Tue, May 28, 2019 at 5:11 PM David Howells wrote: > > Implement parameter value retrieval with fsinfo() - akin to parsing > /proc/mounts. > > This allows all the parameters to be retrieved in one go with: > > struct fsinfo_params params = { > .request= FSINFO_ATT

[PATCH] ipv4: tcp_input: fix stack out of bounds when parsing TCP options.

2019-05-29 Thread Young Xiao
The TCP option parsing routines in tcp_parse_options function could read one byte out of the buffer of the TCP options. 1 while (length > 0) { 2 int opcode = *ptr++; 3 int opsize; 4 5 switch (opcode) { 6 case TCPOPT_EOL: 7

Re: [PATCHv6 0/4] omapdrm: DSI command mode panel support

2019-05-29 Thread Tony Lindgren
* Tomi Valkeinen [190529 07:06]: > On 28/05/2019 13:18, Tony Lindgren wrote: > > > > My board is x15 rev A3, attached to AM5 EVM. I've also attached my kernel > > > config. > > > > Strange that this is not affecting other x15? I think timer12 would > > be blocked on HS devices though? > > Seems

[PATCH v4 1/2] iio: frequency: adf4371: Add support for ADF4371 PLL

2019-05-29 Thread Stefan Popa
The ADF4371 is a frequency synthesizer with an integrated voltage controlled oscillator (VCO) for phase-locked loops (PLLs). The ADF4371 has an integrated VCO with a fundamental output frequency ranging from 4000 MHz to 8000 MHz. In addition, the VCO frequency is connected to divide by 1, 2, 4, 8,

Re: [Ocfs2-devel] [PATCH 1/2] ocfs2: add last unlock times in locking_state

2019-05-29 Thread Gang He
Hi Wengang, >>> On 2019/5/29 at 1:22, in message <66083663-1d25-437b-ce98-07d200f44...@oracle.com>, Wengang wrote: > Hi Gang, > > This idea sounds cool! > Some comments in lines: > > On 05/23/2019 03:40 AM, Gang He wrote: >> ocfs2 file system uses locking_state file under debugfs to dump >> eac

RE: [PATCH net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-29 Thread Salil Mehta
> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On > Behalf Of Yunsheng Lin > Sent: Tuesday, May 28, 2019 2:04 AM > > On 2019/5/27 22:58, Stephen Hemminger wrote: > > On Mon, 27 May 2019 09:47:54 +0800 > > Yunsheng Lin wrote: > > > >> When user has configured a large n

Re: [PATCH 1/5] lightnvm: Fix uninitialized pointer in nvm_remove_tgt()

2019-05-29 Thread Geert Uytterhoeven
Hi Matias, On Wed, May 29, 2019 at 10:08 AM Matias Bjørling wrote: > On 5/28/19 4:24 PM, Geert Uytterhoeven wrote: > > With gcc 4.1: > > > > drivers/lightnvm/core.c: In function ‘nvm_remove_tgt’: > > drivers/lightnvm/core.c:510: warning: ‘t’ is used uninitialized in > > this function >

Re: [PATCH 2/9] perf/x86/intel: Basic support for metrics counters

2019-05-29 Thread Peter Zijlstra
On Tue, May 28, 2019 at 02:20:53PM -0400, Liang, Kan wrote: > On 5/28/2019 8:05 AM, Peter Zijlstra wrote: > > On Tue, May 21, 2019 at 02:40:48PM -0700, kan.li...@linux.intel.com wrote: > @@ -2155,9 +2155,19 @@ static void intel_pmu_disable_event(struct perf_event > *event) > retur

Re: [PATCH 1/3] mm: thp: make deferred split shrinker memcg aware

2019-05-29 Thread Kirill Tkhai
On 29.05.2019 05:43, Yang Shi wrote: > > > On 5/28/19 10:42 PM, Kirill Tkhai wrote: >> Hi, Yang, >> >> On 28.05.2019 15:44, Yang Shi wrote: >>> Currently THP deferred split shrinker is not memcg aware, this may cause >>> premature OOM with some configuration. For example the below test would >>>

[PATCH] kbuild: Remove -Waggregate-return from scripts/Makefile.extrawarn

2019-05-29 Thread Mathieu Malaterre
It makes little sense to pass -Waggregate-return these days since large part of the linux kernel rely on returning struct(s). For instance: ../include/linux/timekeeping.h: In function 'show_uptime': ../include/linux/ktime.h:91:34: error: function call has aggregate value [-Werror=aggregate-re

Re: [PATCH net-next 3/3] net: ethernet: ti: cpsw: add XDP support

2019-05-29 Thread Jesper Dangaard Brouer
On Thu, 23 May 2019 21:20:35 +0300 Ivan Khoronzhuk wrote: > +static struct page *cpsw_alloc_page(struct cpsw_common *cpsw) > +{ > + struct page_pool *pool = cpsw->rx_page_pool; > + struct page *page, *prev_page = NULL; > + int try = pool->p.pool_size << 2; > + int start_free = 0,

Re: [PATCH 4/6] mm: add a gup_fixup_start_addr hook

2019-05-29 Thread Catalin Marinas
Hi Christoph, On Sat, 25 May 2019 at 14:33, Christoph Hellwig wrote: > diff --git a/mm/gup.c b/mm/gup.c > index f173fcbaf1b2..1c21ecfbf38b 100644 > --- a/mm/gup.c > +++ b/mm/gup.c > @@ -2117,6 +2117,10 @@ static void gup_pgd_range(unsigned long addr, unsigned > long end, > } while (pgdp+

Email Win Final Notification

2019-05-29 Thread Samsung Europe
**DO NOT DELETE THIS MESSAGE Samsung Europe Prize Office Evert van de Beekstraat 310 1118 CX Schiphol-Holland www.samsung.com/europe OFFICIAL WIN NOTIFICATION. Email Prize Ticket Number: GLX/9627835/EU/PRIZE2ND. Dear Email User: Are you

[PATCH] arm64: dts: mt8183: Enable CPU idle-states

2019-05-29 Thread James Liao
Enable mcdi-cpu and mcdi-cluster on MT8183 CPUs. Signed-off-by: James Liao --- This patch bases on v5.1-rc1 and [1], adds idle-states for MT8183 CPUs. [1] https://patchwork.kernel.org/patch/10962375/ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 30 ++ 1 file changed,

Re: [PATCH 2/3] ARM: dts: imx6: rdu2: Disable WP for USDHC2 and USDHC3

2019-05-29 Thread Lucas Stach
Am Mittwoch, den 29.05.2019, 00:18 -0700 schrieb Andrey Smirnov: > RDU2 production units come with resistor connecting WP pin to > correpsonding GPIO DNPed for both SD card slots. Drop any WP related > configuration and mark both slots with "disable-wp". > > > Reported-by: Chris Healy > > Reviewe

Re: [PATCH 1/3] ARM: dts: imx6: rdu2: Add node for UCS1002 USB charger chip

2019-05-29 Thread Lucas Stach
Am Mittwoch, den 29.05.2019, 00:18 -0700 schrieb Andrey Smirnov: > Add node for UCS1002 USB charger chip connected to front panel USB and > replace "regulator-fixed" previously used to control VBUS. > > > Signed-off-by: Lucas Stach > > Signed-off-by: Andrey Smirnov > > Cc: Shawn Guo > > Cc: Chr

Re: [PATCH 3/3] ARM: dts: imx6: rdu2: Limit USBH1 to Full Speed

2019-05-29 Thread Lucas Stach
Am Mittwoch, den 29.05.2019, 00:18 -0700 schrieb Andrey Smirnov: > Cabling used to connect devices to USBH1 on RDU2 does not meet USB > spec cable quality and cable length requirements to operate at High > Speed, so limit the port to Full Speed only. > > > Reported-by: Chris Healy > > Reviewed-by

Re: [PATCH] mm: Fix recent_rotated history

2019-05-29 Thread Kirill Tkhai
Missed Johannes :( CC On 28.05.2019 19:09, Kirill Tkhai wrote: > Johannes pointed that after commit 886cf1901db9 > we lost all zone_reclaim_stat::recent_rotated > history. This commit fixes that. > > Fixes: 886cf1901db9 "mm: move recent_rotated pages calculation to > shrink_inactive_list()" > R

[PATCH bpf] libbpf: Return btf_fd in libbpf__probe_raw_btf

2019-05-29 Thread Michal Rostecki
Function load_sk_storage_btf expects that libbpf__probe_raw_btf is returning a btf descriptor, but before this change it was returning an information about whether the probe was successful (0 or 1). load_sk_storage_btf was using that value as an argument to the close function, which was resulting i

[PATCH net-next 2/2] net: stmmac: selftests: Use kfree_skb() instead of kfree()

2019-05-29 Thread Jose Abreu
kfree_skb() shall be used instead of kfree(). Fix it. Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support") Reported-by: kbuild test robot Reported-by: Dan Carpenter Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue --- driv

[PATCH net-next 0/2] net: stmmac: selftests: Two fixes

2019-05-29 Thread Jose Abreu
Two fixes reported by kbuild. Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Jose Abreu (2): net: stmmac: selftests: Fix sparse warning net: stmmac: selftests: Use kfree_skb() instead of kfree() drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c | 4 +

[PATCH 2/3] gpio: mpc8xxx: Use IRQF_SHARED mode to request IRQ

2019-05-29 Thread Chuanhua Han
GPIO3 and GPIO4 controllers share one irq number on Layerscape platform. In the current implementation, only one GPIO controller can register successfully. This patch is to allow two controllers to share a single interrupt number. Signed-off-by: Zhang Ying-22455 Signed-off-by: Chuanhua Han ---

[PATCH net-next 1/2] net: stmmac: selftests: Fix sparse warning

2019-05-29 Thread Jose Abreu
Variable shall be __be16. Fix it. Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support") Reported-by: kbuild test robot Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue --- drivers/net/ethernet/stmicro/stmmac/stmmac_selftests

Re: [RFC 1/3] softirq: Use preempt_latency_stop/start to trace preemption

2019-05-29 Thread Peter Zijlstra
On Tue, May 28, 2019 at 05:16:22PM +0200, Daniel Bristot de Oliveira wrote: > prempt_disable/enable tracepoints occurs only in the preemption > enabled <-> disable transition. As preempt_latency_stop() and > preempt_latency_start() already do this control, avoid code > duplication by using these fu

[PATCH 1/3] gpio: mpc8xxx: Enable port input and interrupt

2019-05-29 Thread Chuanhua Han
The GPIO Input Buffer Enable register is used to control the input enable of each individual GPIO port. When an individual GPIO port's direction is set to input (GPIO_GPDIR[DRn=0]), the associated input enable must be set (GPIOxGPIE[IEn]=1) to propagate the port value to the GPIO Data Register. Th

[PATCH 3/3] arm64: dts: ls1088a: Revise gpio registers to little-endian

2019-05-29 Thread Chuanhua Han
Since fsl-ls1088a Soc GPIO registers are used as little endian, the patch adds the little-endian attribute to each gpio node. Signed-off-by: Chuanhua Han --- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-l

Re: [PATCH] amd64-agp: fix arbitrary kernel memory writes

2019-05-29 Thread Greg KH
On Wed, May 29, 2019 at 12:52:01PM +0800, Young Xiao wrote: > pg_start is copied from userspace on AGPIOC_BIND and AGPIOC_UNBIND ioctl > cmds of agp_ioctl() and passed to agpioc_bind_wrap(). As said in the > comment, (pg_start + mem->page_count) may wrap in case of AGPIOC_BIND, > and it is not che

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

2019-05-29 Thread Peter Zijlstra
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 is correct. But think about this case: > > %< -- > THREAD

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

2019-05-29 Thread Voon, Weifeng
> > Did you rebase this series against latest net-next tree ? > > Because you are missing MMC module in your HWIF table entry. This module > was recently added with the addition of selftests. No, the base is on last Thursday. Let me rebased on the latest net-next and submit for v4. Thanks, Wei

[PATCH 1/1] clocksource/drivers/integrator: check return value

2019-05-29 Thread Xidong Wang
In integrator_ap_timer_init_of(), the return value of clk_prepare_enable() should be checked before clk is used. Signed-off-by: Xidong Wang --- drivers/clocksource/timer-integrator-ap.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-integrator-

Re: [PATCH net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-29 Thread Yunsheng Lin
On 2019/5/29 16:12, Salil Mehta wrote: >> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On >> Behalf Of Yunsheng Lin >> Sent: Tuesday, May 28, 2019 2:04 AM >> >> On 2019/5/27 22:58, Stephen Hemminger wrote: >>> On Mon, 27 May 2019 09:47:54 +0800 >>> Yunsheng Lin wrote:

Re: [LKP] [btrfs] c8eaeac7b7: aim7.jobs-per-min -11.7% regression

2019-05-29 Thread Huang, Ying
Hi, Josef, kernel test robot writes: > Greeting, > > FYI, we noticed a -11.7% regression of aim7.jobs-per-min due to commit: > > > commit: c8eaeac7b734347c3afba7008b7af62f37b9c140 ("btrfs: reserve delalloc > metadata differently") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.gi

Re: [PATCH] ARM: Add workaround for I-Cache line size mismatch between CPU cores

2019-05-29 Thread Krzysztof Kozlowski
On Tue, 28 May 2019 at 10:29, Marek Szyprowski wrote: > > Some big.LITTLE systems have I-Cache line size mismatch between > LITTLE and big cores. This patch adds a workaround for proper I-Cache > support on such systems. Without it, some class of the userspace code > (typically self-modifying) mig

  1   2   3   4   5   6   7   8   9   10   >