Re: [PATCH][next] mm/zswap: fix a couple of memory leaks and rework kzalloc failure check

2020-06-22 Thread Dan Carpenter
On Mon, Jun 22, 2020 at 04:35:46PM +0100, Colin King wrote: > From: Colin Ian King > > kzalloc failures return NULL on out of memory errors, so replace the > IS_ERR_OR_NULL check with the usual null pointer check. Fix two memory > leaks with on acomp and acomp_ctx by ensuring these objects are f

Re: [PATCH v2 1/2] Bluetooth: btusb: fix up firmware download sequence

2020-06-22 Thread sean.wang
From: Sean Wang >Hi Sean, > >> From: Sean Wang >> >> Data RAM on the device have to be powered on before starting to >> download the firmware. >> >> v1->v2: >> rebased to bluetooth-next >> >> Fixes: a1c49c434e15 ("Bluetooth: btusb: Add protocol support for >> MediaTek MT7668U USB devices")

Re: Strange problem with SCTP+IPv6

2020-06-22 Thread Marcelo Ricardo Leitner
On Mon, Jun 22, 2020 at 08:01:24PM +0200, Michael Tuexen wrote: > > On 22. Jun 2020, at 18:57, Corey Minyard wrote: > > > > On Mon, Jun 22, 2020 at 08:01:23PM +0800, Xin Long wrote: > >> On Sun, Jun 21, 2020 at 11:56 PM Corey Minyard wrote: > >>> > >>> I've stumbled upon a strange problem with

Re: [PATCH 1/2] x86/fpu: Reset MXCSR to default in kernel_fpu_begin()

2020-06-22 Thread Andy Lutomirski
On Mon, Jun 22, 2020 at 10:09 AM Borislav Petkov wrote: > > On Fri, Jun 19, 2020 at 11:01:44AM -0700, Andy Lutomirski wrote: > > On Fri, Jun 19, 2020 at 10:41 AM Borislav Petkov wrote: > > > > > > From: Petteri Aimonen > > > > > > Previously, kernel floating point code would run with the MXCSR c

Re: Strange problem with SCTP+IPv6

2020-06-22 Thread Michael Tuexen
> On 22. Jun 2020, at 20:32, Marcelo Ricardo Leitner > wrote: > > On Mon, Jun 22, 2020 at 08:01:24PM +0200, Michael Tuexen wrote: >>> On 22. Jun 2020, at 18:57, Corey Minyard wrote: >>> >>> On Mon, Jun 22, 2020 at 08:01:23PM +0800, Xin Long wrote: On Sun, Jun 21, 2020 at 11:56 PM Corey Mi

LTP: crypto: af_alg02 regression on linux-next 20200621 tag

2020-06-22 Thread Naresh Kamboju
LTP crypto regressions noticed on linux next 20200621. The common case for all tests is timeout after 15 minutes which means tests got hung and LTP timers killed those test runs after timeout. The root cause of the failure is under investigation. ltp-crypto-tests: * af_alg02 - failed *

Re: [PATCH 1/2] x86/fpu: Reset MXCSR to default in kernel_fpu_begin()

2020-06-22 Thread Petteri Aimonen
> We want to make sure that GCC puts things in the right order. I > suppose that even a memory clobber is insufficient here, though. amdgpu worked around that by using a noinline function: https://github.com/torvalds/linux/commit/59dfb0c64d3853d20dc84f4561f28d4f5a2ddc7d#diff-a82b8ab0e6b4f9abfd334

Re: [PATCH 1/2] x86/fpu: Reset MXCSR to default in kernel_fpu_begin()

2020-06-22 Thread Dave Hansen
On 6/22/20 11:33 AM, Andy Lutomirski wrote: > Suppose you do: > > double x = 1.0; > > kernel_fpu_begin(); > > x += 2.0; > > We want to make sure that GCC puts things in the right order. I > suppose that even a memory clobber is insufficient here, though. Even with CONFIG_PREEMPT disabled, we

Re: [PATCH 3/5] Huawei BMA: Adding Huawei BMA driver: host_veth_drv

2020-06-22 Thread Andrew Lunn
On Tue, Jun 23, 2020 at 12:03:09AM +0800, yunaixin03...@163.com wrote: > From: yunaixin > > The BMA software is a system management software offered by Huawei. It > supports the status monitoring, performance monitoring, and event monitoring > of various components, including server CPUs, memor

Re: [PATCH v6 10/19] mm: memcg/slab: deprecate memory.kmem.slabinfo

2020-06-22 Thread Shakeel Butt
On Mon, Jun 22, 2020 at 11:25 AM Roman Gushchin wrote: > > On Mon, Jun 22, 2020 at 11:09:47AM -0700, Shakeel Butt wrote: > > On Mon, Jun 22, 2020 at 11:02 AM Roman Gushchin wrote: > > > > > > On Mon, Jun 22, 2020 at 10:12:46AM -0700, Shakeel Butt wrote: > > > > On Mon, Jun 8, 2020 at 4:07 PM Roma

Re: [PATCH v2 11/16] media: sur40: Remove uninitialized_var() usage

2020-06-22 Thread Nick Desaulniers
On Fri, Jun 19, 2020 at 8:30 PM Kees Cook wrote: > > Using uninitialized_var() is dangerous as it papers over real bugs[1] > (or can in the future), and suppresses unrelated compiler warnings (e.g. > "unused variable"). If the compiler thinks it is uninitialized, either > simply initialize the var

Re: [PATCH] Replace HTTP links with HTTPS ones: Documentation/admin-guide

2020-06-22 Thread Jonathan Neuschäfer
>Subject: [PATCH] Replace HTTP links with HTTPS ones: Documentation/admin-guide You already sent a patch with the exact same subject line. Please use an incrementing version number (PATCH v2, PATCH v3, etc.) for revised versions of a patch, and describe the differences below the --- line. This is

Re: [PATCH 1/2] x86/fpu: Reset MXCSR to default in kernel_fpu_begin()

2020-06-22 Thread Andy Lutomirski
On Mon, Jun 22, 2020 at 11:38 AM Dave Hansen wrote: > > On 6/22/20 11:33 AM, Andy Lutomirski wrote: > > Suppose you do: > > > > double x = 1.0; > > > > kernel_fpu_begin(); > > > > x += 2.0; > > > > We want to make sure that GCC puts things in the right order. I > > suppose that even a memory clob

Re: [PATCH v6 14/19] mm: memcg/slab: remove memcg_kmem_get_cache()

2020-06-22 Thread Shakeel Butt
On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > The memcg_kmem_get_cache() function became really trivial, > so let's just inline it into the single call point: > memcg_slab_pre_alloc_hook(). > > It will make the code less bulky and can also help the compiler > to generate a better code.

Re: [RFC PATCH] xen/privcmd: Convert get_user_pages*() to pin_user_pages*()

2020-06-22 Thread Souptick Joarder
On Fri, Jun 19, 2020 at 1:00 PM John Hubbard wrote: > > On 2020-06-18 20:12, Souptick Joarder wrote: > > On Wed, Jun 17, 2020 at 11:29 PM Boris Ostrovsky > > wrote: > >> > >> On 6/16/20 11:14 PM, Souptick Joarder wrote: > >>> In 2019, we introduced pin_user_pages*() and now we are converting > >>

Re: [PATCH 08/16] nouveau/hmm: fault one page at a time

2020-06-22 Thread Ralph Campbell
On 6/22/20 10:22 AM, Jason Gunthorpe wrote: On Fri, Jun 19, 2020 at 02:56:41PM -0700, Ralph Campbell wrote: The SVM page fault handler groups faults into a range of contiguous virtual addresses and requests hmm_range_fault() to populate and return the page frame number of system memory mapped

Re: [PATCH] objtool: Fix memory leak in special_get_alts()

2020-06-22 Thread Markus Elfring
I propose to avoid a typo in the previous patch subject. > Free alt before returning to avoid memory leak. Would you like to add the tag “Fixes” to the commit message? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=625d3449

Re: [PATCH 17/21] x86/fpu: Use proper mask to replace full instruction mask

2020-06-22 Thread Liang, Kan
On 6/22/2020 2:05 PM, Dave Hansen wrote: On 6/22/20 10:47 AM, Liang, Kan wrote: I'm wondering if we should just take these copy_*regs_to_*() functions and uninline them.  Yeah, they are basically wrapping one instruction, but it might literally be the most heavyweight instruction in the whole

Re: [PATCH 21/21] perf/x86/intel/lbr: Support XSAVES for arch LBR read

2020-06-22 Thread Cyrill Gorcunov
On Fri, Jun 19, 2020 at 07:04:09AM -0700, kan.li...@linux.intel.com wrote: ... > +static void intel_pmu_arch_lbr_read_xsave(struct cpu_hw_events *cpuc) > +{ > + struct x86_perf_task_context_arch_lbr_xsave *xsave = cpuc->lbr_xsave; > + struct arch_lbr_entry *lbr; > + int i; > + > + i

arm-linux-gnueabi-ld: section .data VMA overlaps section __ksymtab VMA

2020-06-22 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dd0d718152e4c65b173070d48ea9dfc06894c3e5 commit: a81068181aad78a5f6980408a4b6115d22bb8aed media: move CEC USB drivers to a separate directory date: 10 weeks ago config: arm-randconfig-r012-20200622

Re: [PATCH v4 1/2] remoteproc: qcom: Add per subsystem SSR notification

2020-06-22 Thread Bjorn Andersson
On Sat 20 Jun 12:48 PDT 2020, risha...@codeaurora.org wrote: > On 2020-06-18 16:35, Bjorn Andersson wrote: > > On Thu 18 Jun 16:00 PDT 2020, Alex Elder wrote: > > > > > On 5/27/20 10:34 PM, Rishabh Bhatnagar wrote: > > > > Currently there is a single notification chain which is called whenever >

[PATCH v2 2/2] thunderbolt: Add support for authenticate on disconnect

2020-06-22 Thread Mario Limonciello
Some external devices can support completing thunderbolt authentication when they are unplugged. For this to work though, the link controller must remain operational. The only device known to support this right now is the Dell WD19TB, so add a quirk for this. Signed-off-by: Mario Limonciello ---

[PATCH v2 1/2] thunderbolt: Add support for separating the flush to SPI and authenticate

2020-06-22 Thread Mario Limonciello
This allows userspace to have a shorter period of time that the device is unusable and to call it at a more convenient time. For example flushing the image may happen while the user is using the machine and authenticating/rebooting may happen while logging out. Signed-off-by: Mario Limonciello -

[PATCH v2 0/2] Allow breaking up Thunderbolt/USB4 updates

2020-06-22 Thread Mario Limonciello
Currently updates to Thunderbolt and USB4 controllers are fully atomic actions. When writing into the non-active NVM nothing gets flushed to the hardware until authenticate is sent. There has been some desire to improve the perceived performance of these updates, particularly for userland that may

Re: [PATCH 1/4] powerpc/pseries/iommu: Update call to ibm,query-pe-dma-windows

2020-06-22 Thread Leonardo Bras
Hello Alexey, thank you for the feedback! On Mon, 2020-06-22 at 20:02 +1000, Alexey Kardashevskiy wrote: > > On 19/06/2020 15:06, Leonardo Bras wrote: > > From LoPAR level 2.8, "ibm,ddw-extensions" index 3 can make the number of > > outputs from "ibm,query-pe-dma-windows" go from 5 to 6. > > > >

[PATCH v29 07/16] ARM: dts: n900: Add reg property to the LP5523 channel node

2020-06-22 Thread Dan Murphy
Add the reg property to each channel node. This update is to accommodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Signed-off-by: Dan Murphy Acked-by: T

[PATCH v29 16/16] leds: lp5523: Fix various formatting issues in the code

2020-06-22 Thread Dan Murphy
Fix checkpatch errors and warnings for the LP5523.c device driver. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5523.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/leds/leds-lp5523.c b/dr

[PATCH v29 02/16] leds: Add multicolor ID to the color ID list

2020-06-22 Thread Dan Murphy
Add a new color ID that is declared as MULTICOLOR as with the multicolor framework declaring a definitive color is not accurate as the node can contain multiple colors. Signed-off-by: Dan Murphy --- drivers/leds/led-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/leds/led-core

[PATCH v29 05/16] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2020-06-22 Thread Dan Murphy
Introduce the LP5036/30/24/18/12/9 RGB LED driver. The difference in these parts are the number of LED outputs where the: LP5036 can control 36 LEDs LP5030 can control 30 LEDs LP5024 can control 24 LEDs LP5018 can control 18 LEDs LP5012 can control 12 LEDs LP5009 can control 9 LEDs The device has

Re: [PATCH 2/4] powerpc/pseries/iommu: Implement ibm,reset-pe-dma-windows rtas call

2020-06-22 Thread Leonardo Bras
Hello Alexey, thanks for the feedback! On Mon, 2020-06-22 at 20:02 +1000, Alexey Kardashevskiy wrote: > > On 19/06/2020 15:06, Leonardo Bras wrote: > > Platforms supporting the DDW option starting with LoPAR level 2.7 implement > > ibm,ddw-extensions. The first extension available (index 2) carri

[PATCH v29 13/16] leds: lp5523: Update the lp5523 code to add multicolor brightness function

2020-06-22 Thread Dan Murphy
Add the multicolor brightness call back to support the multicolor framework. This call back allows setting brightness on grouped channels in a single function. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5523.c | 20

[PATCH v29 15/16] leds: lp55xx: Fix file permissions to use DEVICE_ATTR macros

2020-06-22 Thread Dan Murphy
Fix the checkpatch warnings for the use of the file permission macros. In converting the file permissions to the DEVICE_ATTR_XX macros the call back function names needed to be updated within the code. This means that the lp55xx_ needed to be dropped in the name to keep in harmony with the ABI doc

Re: [PATCH 1/2] x86/fpu: Reset MXCSR to default in kernel_fpu_begin()

2020-06-22 Thread Borislav Petkov
On Mon, Jun 22, 2020 at 11:40:38AM -0700, Andy Lutomirski wrote: > On Mon, Jun 22, 2020 at 11:38 AM Dave Hansen wrote: > > > > On 6/22/20 11:33 AM, Andy Lutomirski wrote: > > > Suppose you do: > > > > > > double x = 1.0; > > > > > > kernel_fpu_begin(); > > > > > > x += 2.0; > > > > > > We want to

[PATCH v29 06/16] dt-bindings: leds: Convert leds-lp55xx to yaml

2020-06-22 Thread Dan Murphy
Convert the leds-lp55xx.txt to yaml binding. Signed-off-by: Dan Murphy --- .../devicetree/bindings/leds/leds-lp55xx.txt | 228 -- .../devicetree/bindings/leds/leds-lp55xx.yaml | 220 + 2 files changed, 220 insertions(+), 228 deletions(-) delete mode 100644 Docum

Re: [PATCH 4/4] powerpc/pseries/iommu: Remove default DMA window before creating DDW

2020-06-22 Thread Leonardo Bras
Hello Alexey, thanks for the feedback! On Mon, 2020-06-22 at 20:02 +1000, Alexey Kardashevskiy wrote: > > On 19/06/2020 15:06, Leonardo Bras wrote: > > On LoPAR "DMA Window Manipulation Calls", it's recommended to remove the > > default DMA window for the device, before attempting to configure a

[PATCH v29 03/16] leds: multicolor: Introduce a multicolor class definition

2020-06-22 Thread Dan Murphy
Introduce a multicolor class that groups colored LEDs within a LED node. The multi color class groups monochrome LEDs and allows controlling two aspects of the final combined color: hue and lightness. The former is controlled via the intensity file and the latter is controlled via brightness file.

[PATCH v29 00/16] Multicolor Framework v29

2020-06-22 Thread Dan Murphy
Hello This is the multi color LED framework. This framework presents clustered colored LEDs into an array and allows the user space to adjust the brightness of the cluster using a single file write. The individual colored LEDs intensities are controlled via a single file that is an array of LED

[PATCH v29 09/16] ARM: dts: ste-href: Add reg property to the LP5521 channel nodes

2020-06-22 Thread Dan Murphy
Add the reg property to each channel node. This update is to accommodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Signed-off-by: Dan Murphy CC: Linus W

[PATCH v29 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-06-22 Thread Dan Murphy
Add DT bindings for the LEDs multicolor class framework. Add multicolor ID to the color ID list for device tree bindings. CC: Rob Herring Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-multicolor.yaml | 37 +++ inc

[PATCH v29 10/16] leds: lp55xx: Convert LED class registration to devm_*

2020-06-22 Thread Dan Murphy
Convert the LED class registration calls to the LED devm_* registration calls. Acked-by: Jacek Anaszewski Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5521.c| 9 +++-- drivers/leds/leds-lp5523.c| 9 +++-- drivers/leds/leds-lp5562.c|

[PATCH v29 12/16] ARM: defconfig: u8500: Add LP55XX_COMMON config flag

2020-06-22 Thread Dan Murphy
The dependencies for the LP55XX LED drivers have been updated so that the child devices (i.e. LP5521) now depends on the LP55XX_COMMON config flag as opposed to the device selecting the LP55XX_COMMON flag. The LP55XX_COMMON needs to be set in the defconfig. CC: Linus Walleij Signed-off-by: Dan M

[PATCH v29 14/16] leds: lp5521: Add multicolor framework multicolor brightness support

2020-06-22 Thread Dan Murphy
Add the multicolor brightness call back to support the multicolor framework. This function allows setting the brightness across grouped LED channels in a single call. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5521.c | 20 +++

[PATCH v29 11/16] leds: lp55xx: Add multicolor framework support to lp55xx

2020-06-22 Thread Dan Murphy
Add multicolor framework support for the lp55xx family. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 11 +- drivers/leds/leds-lp5521.c| 14 +- drivers/leds/leds-lp5523.c| 14 +- dr

Re: [PATCH 3/4] powerpc/pseries/iommu: Move window-removing part of remove_ddw into remove_dma_window

2020-06-22 Thread Leonardo Bras
Hello Alexey, thanks for the feedback! On Mon, 2020-06-22 at 20:02 +1000, Alexey Kardashevskiy wrote: > > On 19/06/2020 15:06, Leonardo Bras wrote: > > Move the window-removing part of remove_ddw into a new function > > (remove_dma_window), so it can be used to remove other DMA windows. > > > >

[PATCH v29 04/16] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers

2020-06-22 Thread Dan Murphy
Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024, LP5018, LP5012 and LP5009 RGB LED device driver. The LP5036/30/24/18/12/9 can control RGB LEDs individually or as part of a control bank group. These devices have the ability to adjust the mixing control for the RGB LEDs to o

[PATCH v29 08/16] ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node

2020-06-22 Thread Dan Murphy
Add the reg property to each channel node. This update is to accommodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Acked-by: Pavel Machek Signed-off-by:

Re: [PATCH v2] gpio: rcar: handle pm_runtime_get_sync failure case

2020-06-22 Thread Geert Uytterhoeven
Hi Bartosz, On Mon, Jun 22, 2020 at 6:54 PM Bartosz Golaszewski wrote: > śr., 17 cze 2020 o 09:43 Geert Uytterhoeven napisał(a): > > On Wed, Jun 17, 2020 at 9:40 AM Navid Emamdoost > > wrote: > > > Calling pm_runtime_get_sync increments the counter even in case of > > > failure, causing incorre

Re: [PATCH v2] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-06-22 Thread Nayna
On 6/22/20 1:27 PM, Bruno Meneguele wrote: IMA_APPRAISE_BOOTPARAM has been marked as dependent on !IMA_ARCH_POLICY in compile time, enforcing the appraisal whenever the kernel had the arch policy option enabled. However it breaks systems where the option is actually set but the system wasn't b

Re: [PATCH 2/2] selftests/fpu: Add an FPU selftest

2020-06-22 Thread Borislav Petkov
On Mon, Jun 22, 2020 at 11:26:50AM -0700, Andy Lutomirski wrote: > For all the ridiculous distro gcc versions out there. Also, it seems > less fragile, since it tests for what you actually care about Let's cross that bridge when we get there. Do you know of an actual compiler not supporting -mpr

[PATCH] kbuild: Provide way to actually disable stack protector

2020-06-22 Thread Kees Cook
Some builds of GCC enable stack protector by default. Simply removing the arguments is not sufficient to disable stack protector, as the stack protector for those GCC builds must be explicitly disabled. (Removing the arguments is left as-is just to be sure there are no ordering problems. If -fno-st

Re: [PATCH v2 09/16] rcu/tree: Maintain separate array for vmalloc ptrs

2020-06-22 Thread Uladzislau Rezki
> > > > > > Very good. When does kfree_rcu() and friends move out of kernel/rcu? > > > > > Do you mean to move the whole logic of kfree_rcu() from top to down to mm/? > > I do mean exactly that. > > That was my goal some years back when Rao Shoaib was making the first > attempt along these lin

Re: [PATCH] cpu/speculation: Add prototype for cpu_show_srbds

2020-06-22 Thread mark gross
ack Reviewed-by: mark gross --mark On Wed, Jun 17, 2020 at 07:14:10AM -0700, Guenter Roeck wrote: > 0-day is not happy that there is no prototype for cpu_show_srbds(). > > drivers/base/cpu.c:565:16: error: > no previous prototype for 'cpu_show_srbds' > > Reported-by: kernel test

Re: [PATCH 21/21] perf/x86/intel/lbr: Support XSAVES for arch LBR read

2020-06-22 Thread Liang, Kan
On 6/22/2020 2:49 PM, Cyrill Gorcunov wrote: On Fri, Jun 19, 2020 at 07:04:09AM -0700, kan.li...@linux.intel.com wrote: ... +static void intel_pmu_arch_lbr_read_xsave(struct cpu_hw_events *cpuc) +{ + struct x86_perf_task_context_arch_lbr_xsave *xsave = cpuc->lbr_xsave; + struct ar

Re: [RFC PATCH] xen/privcmd: Convert get_user_pages*() to pin_user_pages*()

2020-06-22 Thread Boris Ostrovsky
On 6/22/20 2:52 PM, Souptick Joarder wrote: > > I read the code again. I think, this check is needed to handle a scenario when > lock_pages() return -ENOSPC. Better to keep this check. Let me post v2 of this > RFC for a clear view. Actually, error handling seems to be somewhat broken here. If loc

Re: [PATCH v2 1/3] mfd: core: Make a best effort attempt to match devices with the correct of_nodes

2020-06-22 Thread Lee Jones
On Mon, 22 Jun 2020, Frank Rowand wrote: > On 2020-06-22 10:10, Lee Jones wrote: > > On Mon, 22 Jun 2020, Frank Rowand wrote: > > > >> On 2020-06-22 03:50, Lee Jones wrote: > >>> On Thu, 18 Jun 2020, Frank Rowand wrote: > >>> > On 2020-06-15 04:26, Lee Jones wrote: > > On Sun, 14 Jun 202

Re: [PATCH 2/2] riscv: Use PUD/PGDIR entries for linear mapping when possible

2020-06-22 Thread Atish Patra
On Sun, Jun 21, 2020 at 2:39 AM Alex Ghiti wrote: > > Hi Atish, > > Le 6/20/20 à 5:04 AM, Alex Ghiti a écrit : > > Hi Atish, > > > > Le 6/19/20 à 2:16 PM, Atish Patra a écrit : > >> On Thu, Jun 18, 2020 at 9:28 PM Alex Ghiti wrote: > >>> Hi Atish, > >>> > >>> Le 6/18/20 à 8:47 PM, Atish Patra a é

drivers/w1/slaves/w1_ds28e04.c:342:13: sparse: sparse: incorrect type in argument 2 (different address spaces)

2020-06-22 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 625d3449788f85569096780592549d0340e9c0c7 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 4 days ago config: s390-randconfig-s032-20200622 (attached

Re: [PATCH v2 00/11] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-06-22 Thread Tom Lendacky
On 6/22/20 1:01 PM, Paolo Bonzini wrote: > On 22/06/20 19:57, Tom Lendacky wrote: In bare-metal, there's no guarantee a CPU will report all the faults in a single PF error code. And because of race conditions, software can never rely on that behavior. Whenever the OS thinks it has cu

Re: [PATCH v2 1/2] sched: Add PF_MEMALLOC_NOLOCKDEP flag

2020-06-22 Thread Peter Zijlstra
On Thu, Jun 18, 2020 at 10:01:10AM +1000, Dave Chinner wrote: > And, really, if we are playing "re-use existing bits" games because > we've run out of process flags, all these memalloc flags should be > moved to a new field in the task, say current->memalloc_flags. You > could also move PF_SWAPWRI

Re: [PATCH v2] x86/mm: use max memory block size on bare metal

2020-06-22 Thread Daniel Jordan
Hello Michal, (I've been away and may be slow to respond for a little while) On Fri, Jun 19, 2020 at 02:07:04PM +0200, Michal Hocko wrote: > On Tue 09-06-20 18:54:51, Daniel Jordan wrote: > [...] > > @@ -1390,6 +1391,15 @@ static unsigned long probe_memory_block_size(void) > > goto do

[PATCH] KVM: x86/mmu: Don't put invalid SPs back on the list of active pages

2020-06-22 Thread Sean Christopherson
Delete a shadow page from the invalidation list instead of throwing it back on the list of active pages when it's a root shadow page with active users. Invalid active root pages will be explicitly freed by mmu_free_root_page() when the root_count hits zero, i.e. they don't need to be put on the ac

[PATCH] ring-buffer: Zero out time extend if it is nested and not absolute

2020-06-22 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently the ring buffer makes events that happen in interrupts that preempt another event have a delta of zero. (Hopefully we can change this soon). But this is to deal with the races of updating a global counter with lockless and nesting functions updating delta

[PATCH v13 2/4] dt-bindings: power: Convert battery.txt to battery.yaml

2020-06-22 Thread Ricardo Rivera-Matos
From: Dan Murphy Convert the battery.txt file to yaml and fix up the examples. Signed-off-by: Dan Murphy --- .../bindings/power/supply/battery.txt | 83 +-- .../bindings/power/supply/battery.yaml| 139 ++ 2 files changed, 141 insertions(+), 81 deletions

[PATCH v13 4/4] power: supply: bq25150 introduce the bq25150

2020-06-22 Thread Ricardo Rivera-Matos
Introduce the bq2515x family of chargers. The BQ2515X family of devices are highly integrated battery management ICs that integrate the most common functions for wearable devices namely a charger, an output voltage rail, ADC for battery and system monitoring, and a push-button controller. Datashe

[PATCH v13 3/4] dt-bindings: power: Add the bindings for the bq2515x family of chargers.

2020-06-22 Thread Ricardo Rivera-Matos
The BQ2515X family of devices are highly integrated battery management ICs that integrate the most common functions for wearable devices namely a charger, an output voltage rail, ADC for battery and system monitoring, and a push-button controller. Datasheets: http://www.ti.com/lit/ds/symlink/bq251

[PATCH v13 0/4] Add JEITA properties and introduce the bq2515x charger

2020-06-22 Thread Ricardo Rivera-Matos
This patchset adds additional health properties to the power_supply header. These additional properties are taken from the JEITA specification. This patchset also introduces the bq2515x family of charging ICs. Dan Murphy (2): power_supply: Add additional health properties to the header dt-bind

Re: [RFC] Bypass filesystems for reading cached pages

2020-06-22 Thread Matthew Wilcox
On Mon, Jun 22, 2020 at 10:32:15AM +1000, Dave Chinner wrote: > On Fri, Jun 19, 2020 at 08:50:36AM -0700, Matthew Wilcox wrote: > > > > This patch lifts the IOCB_CACHED idea expressed by Andreas to the VFS. > > The advantage of this patch is that we can avoid taking any filesystem > > lock, as lon

[PATCH v7 2/5] remoteproc: qcom: Introduce helper to store pil info in IMEM

2020-06-22 Thread Bjorn Andersson
A region in IMEM is used to communicate load addresses of remoteproc to post mortem debug tools. Implement a helper function that can be used to store this information in order to enable these tools to process collected ramdumps. Reviewed-by: Mathieu Poirier Reviewed-by: Vinod Koul Signed-off-by

[PATCH v7 1/5] dt-bindings: remoteproc: Add Qualcomm PIL info binding

2020-06-22 Thread Bjorn Andersson
Add a devicetree binding for the Qualcomm peripheral image loader relocation information region found in the IMEM. Reviewed-by: Mathieu Poirier Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v6: - None .../binding

[PATCH v7 0/5] remoteproc: qcom: PIL info support

2020-06-22 Thread Bjorn Andersson
Introduce support for filling out the relocation information in IMEM, to aid post mortem debug tools to locate the various remoteprocs. Bjorn Andersson (5): dt-bindings: remoteproc: Add Qualcomm PIL info binding remoteproc: qcom: Introduce helper to store pil info in IMEM remoteproc: qcom: U

[PATCH v7 4/5] arm64: dts: qcom: qcs404: Add IMEM and PIL info region

2020-06-22 Thread Bjorn Andersson
Add a simple-mfd representing IMEM on QCS404 and define the PIL relocation info region, so that post mortem tools will be able to locate the loaded remoteprocs. Reviewed-by: Stephen Boyd Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v6: - None arch/arm64/boot/dts/q

[PATCH v13 1/4] power_supply: Add additional health properties to the header

2020-06-22 Thread Ricardo Rivera-Matos
From: Dan Murphy Add HEALTH_WARM, HEALTH_COOL and HEALTH_HOT to the health enum. HEALTH_WARM, HEALTH_COOL, and HEALTH_HOT properties are taken from JEITA specification JISC8712:2015 Tested-by: Guru Das Srinagesh Signed-off-by: Dan Murphy --- Documentation/ABI/testing/sysfs-class-power | 3 ++

[PATCH v7 5/5] arm64: dts: qcom: sdm845: Add IMEM and PIL info region

2020-06-22 Thread Bjorn Andersson
Add a simple-mfd representing IMEM on SDM845 and define the PIL relocation info region, so that post mortem tools will be able to locate the loaded remoteprocs. Reviewed-by: Stephen Boyd Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v6: - None arch/arm64/boot/dts/q

[PATCH v7 3/5] remoteproc: qcom: Update PIL relocation info on load

2020-06-22 Thread Bjorn Andersson
Update the PIL relocation information in IMEM with information about where the firmware for various remoteprocs are loaded. Reviewed-by: Vinod Koul Reviewed-by: Stephen Boyd Signed-off-by: Bjorn Andersson --- Changes since v6: - None drivers/remoteproc/Kconfig | 5 + drivers/re

Re: [RFC PATCH] xen/privcmd: Convert get_user_pages*() to pin_user_pages*()

2020-06-22 Thread Souptick Joarder
On Tue, Jun 23, 2020 at 12:40 AM Boris Ostrovsky wrote: > > On 6/22/20 2:52 PM, Souptick Joarder wrote: > > > > I read the code again. I think, this check is needed to handle a scenario > > when > > lock_pages() return -ENOSPC. Better to keep this check. Let me post v2 of > > this > > RFC for a

Re: [PATCH v6 17/19] mm: memcg/slab: use a single set of kmem_caches for all allocations

2020-06-22 Thread Shakeel Butt
On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > Instead of having two sets of kmem_caches: one for system-wide and > non-accounted allocations and the second one shared by all accounted > allocations, we can use just one. > > The idea is simple: space for obj_cgroup metadata can be alloca

Re: [PATCH v2] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-06-22 Thread Bruno Meneguele
On Mon, Jun 22, 2020 at 03:01:27PM -0400, Nayna wrote: > > On 6/22/20 1:27 PM, Bruno Meneguele wrote: > > IMA_APPRAISE_BOOTPARAM has been marked as dependent on !IMA_ARCH_POLICY in > > compile time, enforcing the appraisal whenever the kernel had the arch > > policy option enabled. > > > > Howeve

Re: debugfs_create_u32_array() memory leaks

2020-06-22 Thread Jakub Kicinski
On Sat, 20 Jun 2020 09:45:42 +0200 Greg Kroah-Hartman wrote: > On Fri, Jun 19, 2020 at 04:17:34PM -0700, Jakub Kicinski wrote: > > Hi! > > > > I'm trying to use debugfs_create_u32_array() in drivers/net/netdevsim > > and it causes memory leaks: > > > > unreferenced object 0x8880546642a0 (size

[PATCH v3 0/7] Add support for Sony SDM630-based boards

2020-06-22 Thread Konrad Dybcio
changes since v3: - order nodes by address (I might have made some mistakes but I tried hard..) - remove qcom,sdm630-mtp - use pretty device names instead of codenames - fix an overlooked indentation - add a compatible for sdm660 for mailbox and document it - drop the already-applied socinfo patch

[PATCH v3 1/7] pinctrl: qcom: spmi-gpio: Add pm660(l) compatibility

2020-06-22 Thread Konrad Dybcio
Add support for pm660(l) SPMI GPIOs. The PMICs feature 13 and 12 GPIOs respectively, though with a lot of holes inbetween. Signed-off-by: Konrad Dybcio --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-gpio.c b

[PATCH v3 2/7] Documentation: Document pm660(l) SPMI GPIOs compatible

2020-06-22 Thread Konrad Dybcio
Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt b/Documentation/devicetree/bindings/pinctrl/qcom,pmic-gpio.txt index 7be5de8d253f..c3d1

[PATCH v3 7/7] mailbox: qcom: Add sdm660 hmss compatible

2020-06-22 Thread Konrad Dybcio
The Qualcomm SDM660 platform has a APCS HMSS GLOBAL block, add the compatible for this. Signed-off-by: Konrad Dybcio --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + drivers/mailbox/qcom-apcs-ipc-mailbox.c | 5 + 2 files changed, 6 insertions(+) d

[PATCH v3 3/7] arm64: dts: qcom: pm660(l): Add base dts files

2020-06-22 Thread Konrad Dybcio
Add base DTS files for pm660(l) along with GPIOs, power-on and rtc nodes. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm660.dtsi | 50 arch/arm64/boot/dts/qcom/pm660l.dtsi | 36 2 files changed, 86 insertions(+) create mode 100644

[PATCH v3 5/7] arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)

2020-06-22 Thread Konrad Dybcio
Add device tree support for the Sony Xperia XA2, XA2 Plus and XA2 Ultra smartphones. They are all based on the Sony Nile platform (sdm630) and share a lot of common code. The differences are really minor, so a Nile-common DTSI has been created to reduce clutter. XA2 - Pioneer XA2 Plus - Voyager XA

[PATCH v3 6/7] arm64: dts: qcom: Add support for Sony Xperia 10/10 Plus (Ganges platform)

2020-06-22 Thread Konrad Dybcio
From: Martin Botka Add device tree support for the Sony Xperia 10 and 10 Plus smartphones. They are all based on the Sony Ganges platform (sdm630/636) and share a lot of common code. The differences are really minor, so a Ganges-common DTSI has been created to reduce clutter. 10 - Kirin 10 Plus

[PATCH v3 4/7] arm64: dts: qcom: sdm630: Add sdm630 dts file

2020-06-22 Thread Konrad Dybcio
Add devicetree files for SDM630 SoC and its pin configuration. This commit adds basic nodes like cpu, psci and other required configuration for booting up from eMMC to the serial console. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 1174 ++ 1 f

Re: [RFC PATCH] xen/privcmd: Convert get_user_pages*() to pin_user_pages*()

2020-06-22 Thread Boris Ostrovsky
On 6/22/20 3:28 PM, Souptick Joarder wrote: > On Tue, Jun 23, 2020 at 12:40 AM Boris Ostrovsky > wrote: >> On 6/22/20 2:52 PM, Souptick Joarder wrote: >>> I read the code again. I think, this check is needed to handle a scenario >>> when >>> lock_pages() return -ENOSPC. Better to keep this check.

[PATCH v8 0/4] introduce memory hinting API for external process

2020-06-22 Thread Minchan Kim
Now, we have MADV_PAGEOUT and MADV_COLD as madvise hinting API. With that, application could give hints to kernel what memory range are preferred to be reclaimed. However, in some platform(e.g., Android), the information required to make the hinting decision is not known to the app. Instead, it is

Re: [PATCH v2] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-06-22 Thread Mimi Zohar
On Mon, 2020-06-22 at 14:27 -0300, Bruno Meneguele wrote: > IMA_APPRAISE_BOOTPARAM has been marked as dependent on !IMA_ARCH_POLICY in > compile time, enforcing the appraisal whenever the kernel had the arch > policy option enabled. > > However it breaks systems where the option is actually set bu

[PATCH v8 1/4] mm/madvise: pass task and mm to do_madvise

2020-06-22 Thread Minchan Kim
Patch series "introduce memory hinting API for external process", v8. Now, we have MADV_PAGEOUT and MADV_COLD as madvise hinting API. With that, application could give hints to kernel what memory range are preferred to be reclaimed. However, in some platform(e.g., Android), the information requi

[PATCH v8 2/4] pid: move pidfd_get_pid() to pid.c

2020-06-22 Thread Minchan Kim
process_madvise syscall needs pidfd_get_pid function to translate pidfd to pid so this patch move the function to kernel/pid.c. Link: http://lkml.kernel.org/r/20200302193630.68771-5-minc...@kernel.org Signed-off-by: Minchan Kim Reviewed-by: Suren Baghdasaryan Suggested-by: Alexander Duyck Revie

[PATCH v8 4/4] mm/madvise: check fatal signal pending of target process

2020-06-22 Thread Minchan Kim
Bail out to prevent unnecessary CPU overhead if target process has pending fatal signal during (MADV_COLD|MADV_PAGEOUT) operation. Link: http://lkml.kernel.org/r/20200302193630.68771-4-minc...@kernel.org Signed-off-by: Minchan Kim Reviewed-by: Suren Baghdasaryan Reviewed-by: Vlastimil Babka Cc:

[PATCH v8 3/4] mm/madvise: introduce process_madvise() syscall: an external memory hinting API

2020-06-22 Thread Minchan Kim
There is usecase that System Management Software(SMS) want to give a memory hint like MADV_[COLD|PAGEEOUT] to other processes and in the case of Android, it is the ActivityManagerService. The information required to make the reclaim decision is not known to the app. Instead, it is known to the ce

Re: [PATCH 00/11] Add support for HiHope RZ/G2M[N] Rev.3.0/4.0

2020-06-22 Thread Geert Uytterhoeven
Hi Prabhakar, On Mon, Jun 22, 2020 at 7:52 PM Lad, Prabhakar wrote: > On Sun, Jun 7, 2020 at 7:35 PM Lad Prabhakar > wrote: > > This patch series adds supports for HiHope RZ/G2M[N] Rev.3.0/4.0 > > boards. > > > > Patches are based on top of renesas-arm-dt-for-v5.9 branch [1]. > > > > [1] git://g

Re: debugfs_create_u32_array() memory leaks

2020-06-22 Thread Greg Kroah-Hartman
On Mon, Jun 22, 2020 at 12:23:32PM -0700, Jakub Kicinski wrote: > On Sat, 20 Jun 2020 09:45:42 +0200 Greg Kroah-Hartman wrote: > > On Fri, Jun 19, 2020 at 04:17:34PM -0700, Jakub Kicinski wrote: > > > Hi! > > > > > > I'm trying to use debugfs_create_u32_array() in drivers/net/netdevsim > > > and i

[PATCH v4 1/5] jump_label: Provide CONFIG-driven build state defaults

2020-06-22 Thread Kees Cook
Choosing the initial state of static branches changes the assembly layout (if the condition is expected to be likely, inline, or unlikely, out of line via a jump). A few places in the kernel use (or could be using) a CONFIG to choose the default state, so provide the infrastructure to do this and c

Re: [PATCH 21/21] perf/x86/intel/lbr: Support XSAVES for arch LBR read

2020-06-22 Thread Cyrill Gorcunov
On Mon, Jun 22, 2020 at 03:11:07PM -0400, Liang, Kan wrote: > > > > The goto and "return" statement before the "rollback" label > > looks pretty ugly. I'm sorry I didn't follow the series > > in details so if you plan to add more handlers at "rollback" > > then sure. > > > > There were several h

[PATCH v4 5/5] arm64: entry: Enable random_kstack_offset support

2020-06-22 Thread Kees Cook
Allow for a randomized stack offset on a per-syscall basis, with roughly 5 bits of entropy. In order to avoid unconditional stack canaries on syscall entry, also downgrade from -fstack-protector-strong to -fstack-protector to avoid triggering checks due to alloca(). Examining the resulting syscall

[PATCH v4 2/5] init_on_alloc: Unpessimize default-on builds

2020-06-22 Thread Kees Cook
Right now, the state of CONFIG_INIT_ON_ALLOC_DEFAULT_ON (and ...ON_FREE...) did not change the assembly ordering of the static branch tests. Use the new jump_label macro to check CONFIG settings to default to the "expected" state, unpessimizes the resulting assembly code. Reviewed-by: Alexander Po

[PATCH v4 3/5] stack: Optionally randomize kernel stack offset each syscall

2020-06-22 Thread Kees Cook
This provides the ability for architectures to enable kernel stack base address offset randomization. This feature is controlled by the boot param "randomize_kstack_offset=on/off", with its default value set by CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT. This feature is based on the original idea from

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