Re: [RFC PATCH v4] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-06-03 Thread Jes Sorensen
On 5/31/19 5:12 AM, Chris Chiu wrote: > We have 3 laptops which connect the wifi by the same RTL8723BU. > The PCI VID/PID of the wifi chip is 10EC:B720 which is supported. > They have the same problem with the in-kernel rtl8xxxu driver, the > iperf (as a client to an ethernet-connected server) gets

[PATCH] iio: light: stk3310: Add support for stk3335

2019-06-03 Thread Luca Weiss
From: Martijn Braam The stk3335 light/proximity sensor is similar to the stk3310 and stk3311 sensors and works with the stk3310 driver. Signed-off-by: Martijn Braam Signed-off-by: Luca Weiss --- drivers/iio/light/stk3310.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH] MIPS: config: Remove left-over BACKLIGHT_LCD_SUPPORT

2019-06-03 Thread Krzysztof Kozlowski
The CONFIG_BACKLIGHT_LCD_SUPPORT was removed in commit 8c5dc8d9f19c ("video: backlight: Remove useless BACKLIGHT_LCD_SUPPORT kernel symbol"). Options protected by CONFIG_BACKLIGHT_LCD_SUPPORT are now available directly. Signed-off-by: Krzysztof Kozlowski --- arch/mips/configs/gpr_defconfig

Re: [BUG BISECT] bug mm/vmalloc.c:470 (mm/vmalloc.c: get rid of one single unlink_va() when merge)

2019-06-03 Thread Dexuan-Linux Cui
On Mon, Jun 3, 2019 at 7:37 AM Krzysztof Kozlowski wrote: > > On Mon, 3 Jun 2019 at 16:32, Stephen Rothwell wrote: > > > > Hi Krzysztof, > > > > On Mon, 3 Jun 2019 16:10:40 +0200 Krzysztof Kozlowski > > wrote: > > > > > > Indeed it looks like effect of merge conflict resolution or applying. > >

[PATCH] sh: config: Remove left-over BACKLIGHT_LCD_SUPPORT

2019-06-03 Thread Krzysztof Kozlowski
The CONFIG_BACKLIGHT_LCD_SUPPORT was removed in commit 8c5dc8d9f19c ("video: backlight: Remove useless BACKLIGHT_LCD_SUPPORT kernel symbol"). Options protected by CONFIG_BACKLIGHT_LCD_SUPPORT are now available directly. Signed-off-by: Krzysztof Kozlowski --- arch/sh/configs/hp6xx_defconfig | 1

Re: [RESEND PATCH v3] KVM: x86: Add Intel CPUID.1F cpuid emulation support

2019-06-03 Thread Sean Christopherson
On Mon, Jun 03, 2019 at 06:56:17PM +0200, Radim Krčmář wrote: > > + break; > > + } > > entry->eax = min(entry->eax, (u32)(f_intel_pt ? 0x14 : 0xd)); > > Similarly in the existing code. If we don't have f_intel_pt, then we > should make sure that leaf 0x14 i

Re: [PATCH v3] mm: add account_locked_vm utility function

2019-06-03 Thread Alex Williamson
On Wed, 29 May 2019 16:50:19 -0400 Daniel Jordan wrote: > locked_vm accounting is done roughly the same way in five places, so > unify them in a helper. > > Include the helper's caller in the debug print to distinguish between > callsites. > > Error codes stay the same, so user-visible behavior

Re: [PATCH v2 0/5] Introduce OPP bandwidth bindings

2019-06-03 Thread Saravana Kannan
On Mon, Jun 3, 2019 at 8:56 AM Jordan Crouse wrote: > > On Fri, May 31, 2019 at 07:12:28PM -0700, Saravana Kannan wrote: > > I'll have to Nack this series because it's making a couple of wrong > > assumptions > > about bandwidth voting. > > > > Firstly, it's mixing up OPP to bandwidth mapping (Eg

Re: [RFC PATCH 46/57] driver: Add variants of driver_find_device()

2019-06-03 Thread Greg KH
On Mon, Jun 03, 2019 at 04:50:12PM +0100, Suzuki K Poulose wrote: > Add a wrappers to lookup a device by name for a given driver, by various > generic properties of a device. This can avoid the proliferation of custom > match functions throughout the drivers. > > Cc: Greg Kroah-Hartman > Cc: "Raf

Re: [RFC PATCH 46/57] driver: Add variants of driver_find_device()

2019-06-03 Thread Greg KH
On Mon, Jun 03, 2019 at 04:50:12PM +0100, Suzuki K Poulose wrote: > Add a wrappers to lookup a device by name for a given driver, by various > generic properties of a device. This can avoid the proliferation of custom > match functions throughout the drivers. > > Cc: Greg Kroah-Hartman > Cc: "Raf

Re: [RFC PATCH 46/57] driver: Add variants of driver_find_device()

2019-06-03 Thread Greg KH
On Mon, Jun 03, 2019 at 04:50:12PM +0100, Suzuki K Poulose wrote: > Add a wrappers to lookup a device by name for a given driver, by various > generic properties of a device. This can avoid the proliferation of custom > match functions throughout the drivers. > > Cc: Greg Kroah-Hartman > Cc: "Raf

Re: [RFC PATCH 02/57] drivers: ipmi: Drop device reference

2019-06-03 Thread Greg KH
On Mon, Jun 03, 2019 at 04:49:28PM +0100, Suzuki K Poulose wrote: > Drop the reference to a device found via bus_find_device() > > Cc: Corey Minyard > Cc: Arnd Bergmann > Cc: Greg Kroah-Hartman > Signed-off-by: Suzuki K Poulose > --- > drivers/char/ipmi/ipmi_si_platform.c | 1 + > 1 file chan

Re: [RFC PATCH 03/57] drivers: coresight: Drop device references found via bus_find_device

2019-06-03 Thread Greg KH
On Mon, Jun 03, 2019 at 04:49:29PM +0100, Suzuki K Poulose wrote: > We must drop references to the device found via bus_find_device(). > > Cc: Mathieu Poirier > Signed-off-by: Suzuki K Poulose > --- > drivers/hwtracing/coresight/coresight.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletio

Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver

2019-06-03 Thread Subash Abhinov Kasiviswanathan
I can't (or won't) comment right now on whether IPA needs its own netdev for rmnet to use. The IPA endpoints used for the modem network interfaces are enabled when the netdev is opened and disabled when closed. Outside of that, TX and RX are pretty much immediately passed through to the layer be

Re: [PATCH] Staging: emxx_udc: fix warning "sum of probable bitmasks, consider |"

2019-06-03 Thread Greg Kroah-Hartman
On Tue, Jun 04, 2019 at 12:24:12AM +0530, Hariprasad Kelam wrote: > Knowing the fact that operator '|' is faster than '+'. > Its better we replace + with | in this case. > > Issue reported by coccicheck > drivers/staging/emxx_udc/emxx_udc.h:94:34-35: WARNING: sum of probable > bitmasks, consider |

[PATCH v4 03/10] clocksource/drivers/tegra: Reset hardware state on init

2019-06-03 Thread Dmitry Osipenko
Reset timer's hardware state to ensure that initially it is in a predictable state. Signed-off-by: Dmitry Osipenko --- drivers/clocksource/timer-tegra20.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clocksource/timer-tegra20.c b/drivers/clocksource/timer-tegra20.c index 57e7a

Re: [RFC][Patch v10 1/2] mm: page_hinting: core infrastructure

2019-06-03 Thread Alexander Duyck
On Mon, Jun 3, 2019 at 10:04 AM Nitesh Narayan Lal wrote: > > This patch introduces the core infrastructure for free page hinting in > virtual environments. It enables the kernel to track the free pages which > can be reported to its hypervisor so that the hypervisor could > free and reuse that me

[PATCH v4 06/10] clocksource/drivers/tegra: Minor code clean up

2019-06-03 Thread Dmitry Osipenko
Correct typo and use proper upper casing for acronyms in the comments, use common style for error messages, prepend error messages with "tegra-timer:", add error message for cpuhp_setup_state() failure and clean up whitespaces in the code to fix checkpatch warnings. Signed-off-by: Dmitry Osipenko

[PATCH v4 05/10] clocksource/drivers/tegra: Release all IRQ's on request_irq() error

2019-06-03 Thread Dmitry Osipenko
Release all requested IRQ's on the request error to properly clean up allocated resources. Signed-off-by: Dmitry Osipenko --- drivers/clocksource/timer-tegra20.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/timer-tegra20.c b/drivers/clocksource/ti

[PATCH v4 10/10] clocksource/drivers/tegra: Rename timer-tegra20.c to timer-tegra.c

2019-06-03 Thread Dmitry Osipenko
Rename driver's source file to better reflect that it's not specific to older SoC generations. Suggested-by: Daniel Lezcano Signed-off-by: Dmitry Osipenko --- drivers/clocksource/Makefile | 2 +- drivers/clocksource/{timer-tegra20.c => timer-tegra.c} | 0 2 files chang

[PATCH v4 00/10] NVIDIA Tegra clocksource driver improvements

2019-06-03 Thread Dmitry Osipenko
Hello, This series primarily unifies the driver code across all Tegra SoC generations. In a result the clocksources are allocated per-CPU on older Tegra's and have a higher rating than the arch-timer where appropriate, the newer Tegra210 is getting support for microsecond clocksource and the drive

[PATCH v4 09/10] clocksource/drivers/tegra: Lower clocksource rating for some Tegra's

2019-06-03 Thread Dmitry Osipenko
Arch-timer is more preferable for a range of Tegra SoC generations as it has higher precision and is not affect by any kind of problems. Pointed-out-by: Peter De Schrijver Signed-off-by: Dmitry Osipenko --- drivers/clocksource/timer-tegra20.c | 30 + 1 file changed,

[PATCH v4 02/10] clocksource/drivers/tegra: Unify timer code

2019-06-03 Thread Dmitry Osipenko
Tegra132 is 64bit platform and it has the tegra20-timer hardware unit. Right now the corresponding timer code isn't compiled for ARM64, remove ifdef'iness from the code and compile tegra20-timer for both 32 and 64 bit platforms. Also note that like the older generations, Tegra210 has the microsecon

[PATCH v4 01/10] clocksource/drivers/tegra: Support per-CPU timers on all Tegra's

2019-06-03 Thread Dmitry Osipenko
Assign TMR1-4 per-CPU core on 32bit Tegra's in a way it is done for Tegra210. In a result each core can handle its own timer events, less code is unique to ARM64 and Tegra's clock events driver now has higher rating on all Tegra's, replacing the ARM's TWD timer which isn't very accurate due to the

[PATCH v4 07/10] clocksource/drivers/tegra: Use SPDX identifier

2019-06-03 Thread Dmitry Osipenko
Use SPDX tag for the license identification instead of a free form text to aid license-checking automation and for brevity. Signed-off-by: Dmitry Osipenko --- drivers/clocksource/timer-tegra20.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/clocksou

[PATCH v4 04/10] clocksource/drivers/tegra: Replace readl/writel with relaxed versions

2019-06-03 Thread Dmitry Osipenko
The readl/writel functions are inserting memory barrier to ensure that outstanding memory writes are completed, this results in L2 cache syncing being done on Tegra20 and Tegra30 which isn't a very cheap operation. Replace all readl/writel occurrences in the code with the relaxed versions since the

[PATCH v4 08/10] clocksource/drivers/tegra: Support COMPILE_TEST universally

2019-06-03 Thread Dmitry Osipenko
Remove build dependency on ARM for compile-testing to allow non-arch specific build-bots (like Intel's test robot) to compile the driver and report about problems. Signed-off-by: Dmitry Osipenko --- drivers/clocksource/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

memory leak in nf_hook_entries_grow

2019-06-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:3ab4436f Merge tag 'nfsd-5.2-1' of git://linux-nfs.org/~bf.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15feaf82a0 kernel config: https://syzkaller.appspot.com/x/.config?x=50393f7bfe444ff6 da

memory leak in proc_register

2019-06-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:9221dced Merge tag 'for-linus-20190601' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=179a80f2a0 kernel config: https://syzkaller.appspot.com/x/.config?x=50393f7bfe444ff6 da

Re: [PATCH] Documentation: coresight: Update the generic device names

2019-06-03 Thread Mathieu Poirier
Hi Suzuki, On Thu, May 30, 2019 at 04:11:17PM +0100, Suzuki K Poulose wrote: > Update the documentation to reflect the new naming scheme with > latest changes. > > Reported-by: Leo Yan > Cc: Mathieu Poirier > Cc: Jonathan Corbet > Signed-off-by: Suzuki K Poulose > --- > Documentation/trace/c

Re: [PATCH 6/6] svm: Temporary deactivate AVIC during ExtINT handling

2019-06-03 Thread Suthikulpanit, Suravee
Hi Jan, On 5/8/19 12:37 PM, Jan H. Schönherr wrote: > [CAUTION: External Email] > > Hi Suravee. > > I wonder, how this interacts with Hyper-V SynIC; see comments below. > > On 22/03/2019 12.57, Suthikulpanit, Suravee wrote: >> AMD AVIC does not support ExtINT. Therefore, AVIC must be temporary

[PATCHv6 0/3] vfio/mdev: Improve vfio/mdev core module

2019-06-03 Thread Parav Pandit
As we would like to use mdev subsystem for wider use case as discussed in [1], [2] apart from an offline discussion. This use case is also discussed with wider forum in [4] in track 'Lightweight NIC HW functions for container offload use cases'. This series is prep-work and improves vfio/mdev modu

[PATCHv6 2/3] vfio/mdev: Avoid creating sysfs remove file on stale device removal

2019-06-03 Thread Parav Pandit
If device is removal is initiated by two threads as below, mdev core attempts to create a syfs remove file on stale device. During this flow, below [1] call trace is observed. cpu-0cpu-1 -- mdev_unregister_

[PATCHv6 1/3] vfio/mdev: Improve the create/remove sequence

2019-06-03 Thread Parav Pandit
This patch addresses below two issues and prepares the code to address 3rd issue listed below. 1. mdev device is placed on the mdev bus before it is created in the vendor driver. Once a device is placed on the mdev bus without creating its supporting underlying vendor device, mdev driver's probe()

[PATCHv6 3/3] vfio/mdev: Synchronize device create/remove with parent removal

2019-06-03 Thread Parav Pandit
In following sequences, child devices created while removing mdev parent device can be left out, or it may lead to race of removing half initialized child mdev devices. issue-1: cpu-0 cpu-1 - -

[PATCH] Staging: emxx_udc: fix warning "sum of probable bitmasks, consider |"

2019-06-03 Thread Hariprasad Kelam
Knowing the fact that operator '|' is faster than '+'. Its better we replace + with | in this case. Issue reported by coccicheck drivers/staging/emxx_udc/emxx_udc.h:94:34-35: WARNING: sum of probable bitmasks, consider | Signed-off-by: Hariprasad Kelam --- drivers/staging/emxx_udc/emxx_udc.h |

WARNING: suspicious RCU usage in in_dev_dump_addr

2019-06-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:b33bc2b8 nexthop: Add entry to MAINTAINERS git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=13f46f52a0 kernel config: https://syzkaller.appspot.com/x/.config?x=1004db091673bbaf dashboard link: http

Re: [PATCH] ARM: mm: remove unused variables

2019-06-03 Thread Krzysztof Kozlowski
On Sun, 12 May 2019 at 13:51, YueHaibing wrote: > > Fix gcc warnings: > > arch/arm/mm/init.c: In function 'mem_init': > arch/arm/mm/init.c:456:13: warning: unused variable 'itcm_end' > [-Wunused-variable] > extern u32 itcm_end; > ^ > arch/arm/mm/init.c:455:13: warning: unused varia

Re: [QEMU PATCH] KVM: Support for page hinting

2019-06-03 Thread Nitesh Narayan Lal
On 6/3/19 2:34 PM, Alexander Duyck wrote: > On Mon, Jun 3, 2019 at 10:04 AM Nitesh Narayan Lal wrote: >> Enables QEMU to call madvise on the pages which are reported >> by the guest kernel. >> >> Signed-off-by: Nitesh Narayan Lal > What commit-id is this meant to apply on top of? I can't apply t

Re: single copy atomicity for double load/stores on 32-bit systems

2019-06-03 Thread Vineet Gupta
On 5/31/19 2:41 AM, David Laight wrote: >> While it seems reasonable form hardware pov to not implement such atomicity >> by >> default it seems there's an additional burden on application writers. They >> could >> be happily using a lockless algorithm with just a shared flag between 2 >> thread

Re: [RFC PATCH 8/9] LSM: x86/sgx: Introduce ->enclave_load() hook for Intel SGX

2019-06-03 Thread Dave Hansen
... >>> What ensures that the mapping referenced by src can't be changed >>> to an entirely different one (with a different vm_file) between >>> the time of check (here) and the time of use? >> >> Nothing. Holding mmap_sem across copy_from_user() would suffice, >> correct? > > I don't believe y

RE: [PATCHv5 3/3] vfio/mdev: Synchronize device create/remove with parent removal

2019-06-03 Thread Parav Pandit
> -Original Message- > From: Cornelia Huck > Sent: Monday, June 3, 2019 11:13 PM > To: Parav Pandit > Cc: k...@vger.kernel.org; linux-kernel@vger.kernel.org; > kwankh...@nvidia.com; alex.william...@redhat.com; c...@nvidia.com > Subject: Re: [PATCHv5 3/3] vfio/mdev: Synchronize device c

Re: single copy atomicity for double load/stores on 32-bit systems

2019-06-03 Thread Vineet Gupta
On 5/31/19 1:21 AM, Peter Zijlstra wrote: > And I'll stand by my earlier conviction that any architecture that has a > native u64 (be it a 64bit arch or a 32bit with double-width > instructions) but has an ABI that allows u32 alignment on them is daft. Why ? For 64-bit data on 32-bit systems, hard

Re: [PATCH v2] mmc: dw_mmc: Disable SDIO interrupts while suspended to fix suspend/resume

2019-06-03 Thread Doug Anderson
Ulf, On Tue, May 28, 2019 at 3:49 PM Doug Anderson wrote: > > > 1) As kind of stated above, did you consider a solution where the core > > simply disables the SDIO IRQ in case it isn't enabled for system > > wakeup? In this way all host drivers would benefit. > > I can give it a shot if you can g

Re: [RFC PATCH 39/57] drivers: mux: Use class_find_device_by_of_node helper

2019-06-03 Thread Peter Rosin
On 2019-06-03 18:45, Suzuki K Poulose wrote: > Hi Peter, > Sorry about that. The routine is a wrapper to class_find_device() > which uses a generic routine to match the of_node, instead of the > driver specific of_dev_node_match(). The series adds such wrappers for > {bus/drivers/class}_find_devic

Re: [RFC PATCH 8/9] LSM: x86/sgx: Introduce ->enclave_load() hook for Intel SGX

2019-06-03 Thread Stephen Smalley
On 6/3/19 10:42 AM, Sean Christopherson wrote: On Mon, Jun 03, 2019 at 10:19:18AM -0400, Stephen Smalley wrote: On 5/31/19 7:31 PM, Sean Christopherson wrote: enclave_load() is roughly analogous to the existing file_mprotect(). Due to the nature of SGX and its Enclave Page Cache (EPC), all enc

Re: [RFC][Patch v10 0/2] mm: Support for page hinting

2019-06-03 Thread Nitesh Narayan Lal
On 6/3/19 2:04 PM, Michael S. Tsirkin wrote: > On Mon, Jun 03, 2019 at 01:03:04PM -0400, Nitesh Narayan Lal wrote: >> This patch series proposes an efficient mechanism for communicating free >> memory >> from a guest to its hypervisor. It especially enables guests with no page >> cache >> (e.g.,

[PATCH v2 0/3] brcmfmac: sdio: Deal better w/ transmission errors waking from idle

2019-06-03 Thread Douglas Anderson
This series attempts to deal better with the expected transmission errors that we get when waking up (from idle) the SDIO-based WiFi on rk3288-veyron-minnie, rk3288-veyron-speedy, and rk3288-veyron-mickey. Some details about those errors can be found in , but to summarize

[PATCH v2 2/3] mmc: core: API for temporarily disabling auto-retuning due to errors

2019-06-03 Thread Douglas Anderson
Normally when the MMC core sees an "-EILSEQ" error returned by a host controller then it will trigger a retuning of the card. This is generally a good idea. However, if a command is expected to sometimes cause transfer errors then these transfer errors shouldn't cause a re-tuning. This re-tuning

[PATCH v2 3/3] brcmfmac: sdio: Disable auto-tuning around commands expected to fail

2019-06-03 Thread Douglas Anderson
There are certain cases, notably when transitioning between sleep and active state, when Broadcom SDIO WiFi cards will produce errors on the SDIO bus. This is evident from the source code where you can see that we try commands in a loop until we either get success or we've tried too many times. T

[PATCH v2 1/3] Revert "brcmfmac: disable command decode in sdio_aos"

2019-06-03 Thread Douglas Anderson
This reverts commit 29f6589140a10ece8c1d73f58043ea5b3473ab3e. After that patch landed I find that my kernel log on rk3288-veyron-minnie and rk3288-veyron-speedy is filled with: brcmfmac: brcmf_sdio_bus_sleep: error while changing bus sleep state -110 This seems to happen every time the Broadcom W

Re: [QEMU PATCH] KVM: Support for page hinting

2019-06-03 Thread Nitesh Narayan Lal
On 6/3/19 2:34 PM, Alexander Duyck wrote: > On Mon, Jun 3, 2019 at 10:04 AM Nitesh Narayan Lal wrote: >> Enables QEMU to call madvise on the pages which are reported >> by the guest kernel. >> >> Signed-off-by: Nitesh Narayan Lal > What commit-id is this meant to apply on top of? I can't apply t

[RESEND PATCH v3 07/30] mfd: cros_ec: Update ACPI interface definition

2019-06-03 Thread Gwendal Grignou
Add more fields and improve API when EC presents data through ACPI memory space. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 419 +++ 1 file changed, 293

[RESEND PATCH v3 05/30] mfd: cros_ec: Define commands as 4-digit UPPER CASE hex values

2019-06-03 Thread Gwendal Grignou
This change is required for compilation of embedded controller firmware to work properly (See CONFIG_HOSTCMD_SECTION_SORTED). Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 235 +++

[RESEND PATCH v3 00/30] Update cros_ec_commands.h

2019-06-03 Thread Gwendal Grignou
The interface between CrosEC embedded controller and the host, described by cros_ec_commands.h, as diverged from what the embedded controller really support. The source of thruth is at https://chromium.googlesource.com/chromiumos/platform/ec/+/master/include/ec_commands.h That include file is con

[RESEND PATCH v3 04/30] mfd: cros_ec: add ec_align macros

2019-06-03 Thread Gwendal Grignou
To reduce code and improve performance of the embedded controller firmware, pragma __aligned(2) or __aligned(4) are used when alignment to 16 or 32 bit boundary is expected. Define all ec_align to packed when compiling kernel. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by:

[RESEND PATCH v3 09/30] mfd: cros_ec: Remove zero-size structs

2019-06-03 Thread Gwendal Grignou
Empty structure size is different between C and C++. To prevent clang warning when compiling this include file in C++ programs, remove empty structures. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/c

[RESEND PATCH v3 14/30] mfd: cros_ec: Add EC transport protocol v4

2019-06-03 Thread Gwendal Grignou
Introduce a new transport procotol between EC and host. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 143 ++- 1 file changed, 141 insertions(+), 2 deletio

Re: [PATCH 5.1 00/40] 5.1.7-stable review

2019-06-03 Thread Jon Hunter
On 03/06/2019 10:08, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.1.7 release. > There are 40 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses shou

[RESEND PATCH v3 10/30] mfd: cros_ec: Add Flash V2 commands API

2019-06-03 Thread Gwendal Grignou
Added for supporting larger embedded controller flash. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 150 ++- 1 file changed, 147 insertions(+), 3 deletion

[RESEND PATCH v3 12/30] mfd: cros_ec: Add lightbar v2 API

2019-06-03 Thread Gwendal Grignou
New API split commands, improve EC command latency. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 124 ++- 1 file changed, 120 insertions(+), 4 deletions(-

[RESEND PATCH v3 15/30] mfd: cros_ec: Complete MEMS sensor API

2019-06-03 Thread Gwendal Grignou
Add new command for batched mode, add support for more sensors. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 464 +++ 1 file changed, 406 insertions(+), 5

Re: [QEMU PATCH] KVM: Support for page hinting

2019-06-03 Thread Alexander Duyck
On Mon, Jun 3, 2019 at 10:04 AM Nitesh Narayan Lal wrote: > > Enables QEMU to call madvise on the pages which are reported > by the guest kernel. > > Signed-off-by: Nitesh Narayan Lal What commit-id is this meant to apply on top of? I can't apply this to the latest development version of QEMU.

[RESEND PATCH v3 13/30] mfd: cros_ec: Expand hash API

2019-06-03 Thread Gwendal Grignou
Improve API to verify EC image signature. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/linux

[RESEND PATCH v3 24/30] mfd: cros_ec: Add API for EC-EC communication

2019-06-03 Thread Gwendal Grignou
Allow EC to talk to other ECs that are not presented to the host. Neeed when EC are present in detachable keyboard. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 95 ++

[RESEND PATCH v3 27/30] mfd: cros_ec: Add API for rwsig

2019-06-03 Thread Gwendal Grignou
Add command to retrieve signature of image stored in the RW memory slot(s). Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 26 ++ 1 file changed, 26 inserti

[RESEND PATCH v3 30/30] mfd: cros_ec: Update I2S API

2019-06-03 Thread Gwendal Grignou
Improve I2S API. Rename ec_response_codec_gain into ec_codec_i2s_gain, update caller accordlingly. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 44 +--- s

[RESEND PATCH v3 29/30] mfd: cros_ec: Add Management API entry points

2019-06-03 Thread Gwendal Grignou
Add commands for test and management. Add command space for future development. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 113 +++ 1 file changed, 113

[RESEND PATCH v3 22/30] mfd: cros_ec: Add Smart Battery Firmware update API

2019-06-03 Thread Gwendal Grignou
Add API to update battery firmware. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 73 1 file changed, 73 insertions(+) diff --git a/include/linux/mfd

[RESEND PATCH v3 21/30] mfd: cros_ec: Add Hibernate API

2019-06-03 Thread Gwendal Grignou
Add support for controlling hibernation of the Embedded Controller. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 72 +++- 1 file changed, 70 insertions(+)

[RESEND PATCH v3 25/30] mfd: cros_ec: Add API for Touchpad support

2019-06-03 Thread Gwendal Grignou
Add API to control touchpad presented by Embedded Controller. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 26 ++ 1 file changed, 26 insertions(+) diff -

[RESEND PATCH v3 23/30] mfd: cros_ec: Add I2C passthru protection API

2019-06-03 Thread Gwendal Grignou
Prevent direct i2c access to device behind EC when not in development mode. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 22 ++ 1 file changed, 22 insertions(

[RESEND PATCH v3 26/30] mfd: cros_ec: Add API for Fingerprint support

2019-06-03 Thread Gwendal Grignou
Add API for fingerprint sensor presented by embedded controller. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 228 +++ 1 file changed, 228 insertions(+)

[RESEND PATCH v3 28/30] mfd: cros_ec: Add SKU ID and Secure storage API

2019-06-03 Thread Gwendal Grignou
Add API to store SKU, Cros board information in EC flash memory. Add API to store security data in EC. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 107 ++

[RESEND PATCH v3 18/30] mfd: cros_ec: Fix temperature API

2019-06-03 Thread Gwendal Grignou
Improve API to retrieve temperature information. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 64 +--- 1 file changed, 57 insertions(+), 7 deletions(-) d

[RESEND PATCH v3 19/30] mfd: cros_ec: Complete Power and USB PD API

2019-06-03 Thread Gwendal Grignou
Improve API for USB Powe delivery and power management. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 236 ++- 1 file changed, 228 insertions(+), 8 deletio

[RESEND PATCH v3 20/30] mfd: cros_ec: Add API for keyboard testing

2019-06-03 Thread Gwendal Grignou
Add command to allow keyboard testing in factory. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/include/linux

[RESEND PATCH v3 16/30] mfd: cros_ec: Fix event processing API

2019-06-03 Thread Gwendal Grignou
Improve API between EC and Host to report events. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 87 1 file changed, 76 insertions(+), 11 deletions(-)

[RESEND PATCH v3 17/30] mfd: cros_ec: Add fingerprint API

2019-06-03 Thread Gwendal Grignou
Add support for fingerprint sensors managed by embedded controller. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 34 1 file changed, 34 insertions(+)

[RESEND PATCH v3 11/30] mfd: cros_ec: Add PWM_SET_DUTY API

2019-06-03 Thread Gwendal Grignou
Add API for fan control. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/include/linux/mfd/cr

[RESEND PATCH v3 01/30] mfd: cros_ec: Update license term

2019-06-03 Thread Gwendal Grignou
Update to SPDX-License-Identifier, GPL-2.0 Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/in

[RESEND PATCH v3 08/30] mfd: cros_ec: move HDMI CEC API definition

2019-06-03 Thread Gwendal Grignou
Move near the end of file. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 148 ++- 1 file changed, 75 insertions(+), 73 deletions(-) diff --git a/include/l

[RESEND PATCH v3 03/30] mfd: cros_ec: set comments properly

2019-06-03 Thread Gwendal Grignou
Fix comments syntax and spelling errors. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 65 +--- 1 file changed, 40 insertions(+), 25 deletions(-) diff --g

[RESEND PATCH v3 02/30] mfd: cros_ec: Zero BUILD_ macro

2019-06-03 Thread Gwendal Grignou
Defined out build macro used when compiling embedded controller firmware. Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 5 + 1 file changed, 5 insertions(+) diff --git a/incl

[RESEND PATCH v3 06/30] mfd: cros_ec: use BIT macro

2019-06-03 Thread Gwendal Grignou
Replace (1 << ...) with BIT(). Acked-by: Enric Balletbo i Serra Acked-by: Benson Leung Reviewed-by: Fabien Lahoudere Signed-off-by: Gwendal Grignou --- include/linux/mfd/cros_ec_commands.h | 110 +-- 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/inclu

Re: [PATCH 5.0 00/36] 5.0.21-stable review

2019-06-03 Thread Jon Hunter
On 03/06/2019 10:08, Greg Kroah-Hartman wrote: > Note, this is going to be the LAST 5.0.y kernel release. After this one, it > is > end-of-life, please move to 5.1.y at this point in time. If there is anything > wrong with the 5.1.y tree, preventing you from moving to 5.1.y, please let me > kn

Re: [PATCH 4.19 00/32] 4.19.48-stable review

2019-06-03 Thread Jon Hunter
On 03/06/2019 10:07, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.48 release. > There are 32 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: [PATCH] sched/fair: clean up asym packing

2019-06-03 Thread Vincent Guittot
On Mon, 3 Jun 2019 at 20:15, Valentin Schneider wrote: > > Hi, > > On 03/06/2019 15:17, Vincent Guittot wrote: > > Clean up asym packing to follow the default load balance behavior: > > - classify the group by creating a group_asym_capacity field. > > Being nitpicky here, this doesn't classify the

Re: [BUG BISECT] bug mm/vmalloc.c:470 (mm/vmalloc.c: get rid of one single unlink_va() when merge)

2019-06-03 Thread Krzysztof Kozlowski
On Mon, 3 Jun 2019 at 17:11, Stephen Rothwell wrote: > > Hi Krzysztof, > > On Mon, 3 Jun 2019 16:35:22 +0200 Krzysztof Kozlowski wrote: > > > > On Mon, 3 Jun 2019 at 16:32, Stephen Rothwell wrote: > > > > > > On Mon, 3 Jun 2019 16:10:40 +0200 Krzysztof Kozlowski > > > wrote: > > > > > > > > In

RE: [RFC PATCH 0/9] security: x86/sgx: SGX vs. LSM

2019-06-03 Thread Xing, Cedric
> From: Christopherson, Sean J > Sent: Monday, June 03, 2019 10:16 AM > > On Sun, Jun 02, 2019 at 12:29:35AM -0700, Xing, Cedric wrote: > > Hi Sean, > > > > Generally I agree with your direction but think ALLOW_* flags are > > completely internal to LSM because they can be both produced and > > co

Re: [PATCH 5.1 00/40] 5.1.7-stable review

2019-06-03 Thread Kevin Hilman
"kernelci.org bot" writes: > stable-rc/linux-5.1.y boot: 132 boots: 1 failed, 131 passed > (v5.1.6-41-ge674455b9242) > > Full Boot Summary: > https://kernelci.org/boot/all/job/stable-rc/branch/linux-5.1.y/kernel/v5.1.6-41-ge674455b9242/ > Full Build Summary: > https://kernelci.org/build/stable

[PATCH] ACPICA: Fix compilation with bare-metal toolchian

2019-06-03 Thread Laster K. (lazerl0rd)
An ifdef expects to be compiled with full-fledged Linux toolchain, but it's common to compile kernel with just bare-metal toolchain which doesn't define __linux__. So, also add __KERNEL__ check. Signed-off-by: Laster K. (lazerl0rd) --- include/acpi/platform/acenv.h | 2 +- include/acpi/platfor

Re: [PATCH v8 RESEND 2/5] regulator: rk808: add RK809 and RK817 support.

2019-06-03 Thread Mark Brown
On Mon, Jun 03, 2019 at 07:08:57PM +0200, Heiko Stuebner wrote: > default: > - pr_warn("%s ramp_delay: %d not supported, setting 1\n", > - rdev->desc->name, ramp_delay); > + dev_warn(&rdev->dev, > +"%s ramp_delay

[PATCH v2] platform/chrome: wilco_ec: Add version sysfs entries

2019-06-03 Thread Raul E Rangel
Add the ability to extract version information from the EC. Example Output: $ cd /sys/bus/platform/devices/GOOG000C:00 $ tail build_date build_revision version model_number ==> build_date <== 04/25/19 ==> build_revision <== d2592cae0 ==> version <== 00.00.14 ==> model_number <== 08B6 Signed-of

Re: [PATCH] sched/fair: clean up asym packing

2019-06-03 Thread Valentin Schneider
Hi, On 03/06/2019 15:17, Vincent Guittot wrote: > Clean up asym packing to follow the default load balance behavior: > - classify the group by creating a group_asym_capacity field. Being nitpicky here, this doesn't classify the group in the usual way - it doesn't get a specific group_type value (

Re: PROBLEM: oops spew with Linux 5.1.5 (NFS regression?)

2019-06-03 Thread Nick Bowler
On 2019-06-03, Nick Bowler wrote: > On 2019-05-29, Olga Kornievskaia wrote: >> On Wed, May 29, 2019 at 1:14 PM Trond Myklebust >>> OK, I think this is the same problem that Olga was seeing (Cced), and >>> it looks like I missed the use-after-free issue when the server returns >>> a credential er

Re: single copy atomicity for double load/stores on 32-bit systems

2019-06-03 Thread Vineet Gupta
On 5/31/19 1:21 AM, Peter Zijlstra wrote: >> I'm not sure how to interpret "natural alignment" for the case of double >> load/stores on 32-bit systems where the hardware and ABI allow for 4 byte >> alignment (ARCv2 LDD/STD, ARM LDRD/STRD ) > Natural alignment: !((uintptr_t)ptr % sizeof(*ptr)) >

Re: [PATCH][next] bpf: remove redundant assignment to err

2019-06-03 Thread Colin Ian King
On 03/06/2019 18:49, Jakub Kicinski wrote: > On Mon, 3 Jun 2019 18:39:16 +0100, Colin Ian King wrote: >> On 03/06/2019 18:21, Jakub Kicinski wrote: >>> On Mon, 3 Jun 2019 18:02:47 +0100, Colin King wrote: From: Colin Ian King The variable err is assigned with the value -EINVAL th

Re: [RFC][Patch v10 0/2] mm: Support for page hinting

2019-06-03 Thread Michael S. Tsirkin
On Mon, Jun 03, 2019 at 01:03:04PM -0400, Nitesh Narayan Lal wrote: > This patch series proposes an efficient mechanism for communicating free > memory > from a guest to its hypervisor. It especially enables guests with no page > cache > (e.g., nvdimm, virtio-pmem) or with small page caches (e.g.

RE: [RFC PATCH 0/9] security: x86/sgx: SGX vs. LSM

2019-06-03 Thread Xing, Cedric
> From: linux-sgx-ow...@vger.kernel.org [mailto:linux-sgx- > ow...@vger.kernel.org] On Behalf Of Stephen Smalley > Sent: Monday, June 03, 2019 10:47 AM > > On 6/2/19 3:29 AM, Xing, Cedric wrote: > > Hi Sean, > > > >> From: Christopherson, Sean J > >> Sent: Friday, May 31, 2019 4:32 PM > >> > >> Th

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