[RFC PATCH v5 08/11] ipe: add property for signed dmverity volumes

2020-07-28 Thread Deven Bowers
Allow IPE to leverage the stacked security blob infrastructure, and enlighten IPE to the block_device security blob. This allows IPE to have a property to express rules around a device-mapper verity volume whose root-hash has been signed, and the signature has been verified against the system

[RFC PATCH v5 05/11] fs: add security blob and hooks for block_device

2020-07-28 Thread Deven Bowers
Add a security blob and associated allocation, deallocation and set hooks for a block_device structure. Signed-off-by: Deven Bowers --- fs/block_dev.c| 8 include/linux/fs.h| 1 + include/linux/lsm_hook_defs.h | 5 +++ include/linux/lsm_hooks.h | 12

Re: [PATCH v36 23/24] docs: x86/sgx: Document SGX micro architecture and kernel internals

2020-07-28 Thread Pavel Machek
Hi! > +CPUs starting from Icelake use Total Memory Encryption (TME) in the place of > +MEE. TME throws away the Merkle tree, which means losing integrity and > +anti-replay protection but also enables variable size memory pools for EPC. > +Using this attack for benefit would require an interposer

Re: [PATCH 10/15] iio: sx9310: Simplify error return handling

2020-07-28 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 14:23:29) > On Tue, Jul 28, 2020 at 1:40 PM Stephen Boyd wrote: > > > > Quoting Daniel Campello (2020-07-28 08:12:53) > > > @@ -368,13 +368,13 @@ static int sx9310_wait_for_sample(struct > > > sx9310_data *data) > > > static int sx9310_read_proximity(struct

[PATCH] Staging : rtl8712 : Fixed a coding sytle issue

2020-07-28 Thread Ankit Baluni
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules. Signed-off-by: Ankit Baluni --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [PATCH 04/15] iio: sx9310: Remove acpi and of table macros

2020-07-28 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 13:47:15) > On Tue, Jul 28, 2020 at 12:09 PM Andy Shevchenko > wrote: > > > > On Tue, Jul 28, 2020 at 6:16 PM Daniel Campello > > wrote: > > > > > > Avoids unused warnings due to acpi/of table macros. > > > > > > > At the same time I would check if

Re: [PATCH 06/15] iio: sx9310: Align memory

2020-07-28 Thread Daniel Campello
On Tue, Jul 28, 2020 at 12:11 PM Andy Shevchenko wrote: > > On Tue, Jul 28, 2020 at 6:15 PM Daniel Campello wrote: > > > > Use __aligned(8) to ensure that the timestamp is correctly aligned > > when we call push_to_buffers > > > > Signed-off-by: Daniel Campello > > --- > > > >

[PATCH] platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role()

2020-07-28 Thread Azhar Shaikh
usb_role_switch_set_role() has the second argument as enum for usb_role. Currently depending upon the data role i.e. UFP(0) or DFP(1) is sent. This eventually translates to USB_ROLE_NONE in case of UFP and USB_ROLE_DEVICE in case of DFP. Correct this by sending correct enum values as

Re: [PATCH 10/15] iio: sx9310: Simplify error return handling

2020-07-28 Thread Daniel Campello
On Tue, Jul 28, 2020 at 1:40 PM Stephen Boyd wrote: > > Quoting Daniel Campello (2020-07-28 08:12:53) > > @@ -368,13 +368,13 @@ static int sx9310_wait_for_sample(struct sx9310_data > > *data) > > static int sx9310_read_proximity(struct sx9310_data *data, > >

Re: [GIT PULL][PATCH v9 0/7] Add support for ZSTD-compressed kernel and initramfs

2020-07-28 Thread Sedat Dilek
On Tue, Jul 28, 2020 at 1:10 AM Nick Terrell wrote: > > From: Nick Terrell > > Please pull from > > g...@github.com:terrelln/linux.git tags/v9-zstd > > to get these changes. Alternatively the patchset is included. > > Hi all, > > This patch set adds support for a ZSTD-compressed kernel,

Re: [PATCH RFC v6 0/6] Add Unisoc's drm kms module

2020-07-28 Thread Sam Ravnborg
Hi Kevin. Thanks for submitting this set of drivers. To better review the pataches can you please give some kind of high level overview. An ascii block diagram that identifies all the relevant blocks and how they relate would be great. This makes it easier to verify if the right modelling is

Re: [PATCH 4.19 00/86] 4.19.135-rc1 review

2020-07-28 Thread Pavel Machek
On Mon 2020-07-27 16:03:34, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.135 release. > There are 86 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. > >

Re: [PATCH v3 3/4] regulator: core: Add basic enable/disable support for sync_state() callbacks

2020-07-28 Thread Saravana Kannan
On Tue, Jul 21, 2020 at 1:18 PM Mark Brown wrote: > Hi Mark, It *might* be easier if you jump to the bottom and read the reasoning for the current design. The stuff in between is just me trying to clarify some misunderstandings. > On Mon, Jul 20, 2020 at 08:22:15PM -0700, Saravana Kannan wrote:

Re: [PATCH RFC v6 4/6] drm/sprd: add Unisoc's drm display controller driver

2020-07-28 Thread Sam Ravnborg
Hi Kevin. Some feedback in the following. I lost track of thing for the atomic modesettting stuff and I hope other will review that. Sam On Tue, Jul 28, 2020 at 06:07:57PM +0800, Kevin Tang wrote: > From: Kevin Tang > > Adds DPU(Display Processor Unit) support for the Unisoc's display

Re: [PATCH] staging/speakup: Update TODO list

2020-07-28 Thread Samuel Thibault
Greg KH, le mar. 28 juil. 2020 10:18:42 +0200, a ecrit: > On Sun, Jul 26, 2020 at 06:54:52PM +0200, Samuel Thibault wrote: > > Thanks to Okash's latest work, the TODO list is essentially empty, so > > the way out from staging now seems open. > > > > The status of the remaining issue mentioned in

[PATCH] staging/speakup: Move out of staging

2020-07-28 Thread Samuel Thibault
The nasty TODO items are done. Signed-off-by: Samuel Thibault --- .../ABI/stable}/sysfs-driver-speakup | 0 .../admin-guide}/spkguide.txt | 0 MAINTAINERS | 19 +-- drivers/accessibility/Kconfig | 2 ++

Re: [PATCH 08/10] media: uapi: h264: Clean slice invariants syntax elements

2020-07-28 Thread Nicolas Dufresne
Le mardi 28 juillet 2020 à 14:44 +0200, Maxime Ripard a écrit : > Hi, > > On Mon, Jul 27, 2020 at 11:39:12AM -0300, Ezequiel Garcia wrote: > > On Sat, 2020-07-25 at 23:34 +0900, Alexandre Courbot wrote: > > > On Thu, Jul 16, 2020 at 5:23 AM Ezequiel Garcia > > > wrote: > > > > The H.264

[tip:locking/header] BUILD SUCCESS e885d5d94793ef342e49d55672baabbc16e32bb1

2020-07-28 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig powerpc defconfig i386 randconfig-a003-20200728 i386 randconfig-a004-20200728 i386 randconfig-a005-20200728 i386

Re: [PATCH v6 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-07-28 Thread Mathieu Poirier
On Wed, Jul 15, 2020 at 08:33:17AM -0700, Ben Levinsky wrote: > R5 is included in Xilinx Zynq UltraScale MPSoC so by adding this > remotproc driver, we can boot the R5 sub-system in different > configurations. > > Acked-by: Stefano Stabellini > Acked-by: Ben Levinsky > Reviewed-by: Radhey Shyam

Re: rtsx_pci not restoring ASPM state after suspend/resume

2020-07-28 Thread James Ettle
On Mon, 2020-07-27 at 16:47 -0500, Bjorn Helgaas wrote: > > I don't see anything in rtsx that enables L0s. Can you collect the > dmesg log when booting with "pci=earlydump"? That will show whether > the BIOS left it this way. The PCI core isn't supposed to do this, > so > if it did, we need to

Re: [PATCH v4 3/6] mm/notifier: add migration invalidation type

2020-07-28 Thread Ralph Campbell
On 7/28/20 12:15 PM, Jason Gunthorpe wrote: On Thu, Jul 23, 2020 at 03:30:01PM -0700, Ralph Campbell wrote: static inline int mm_has_notifiers(struct mm_struct *mm) @@ -513,6 +519,7 @@ static inline void mmu_notifier_range_init(struct mmu_notifier_range *range, range->start =

BTF_KIND_FWD enums

2020-07-28 Thread Giuliano Procida
Hi. Re: https://github.com/torvalds/linux/commit/9d5f9f701b1891466fb3dbb1806ad97716f95cc3 Both GCC and LLVM support forward-declared (a.k.a. incomplete) enums as a language extension - https://gcc.gnu.org/onlinedocs/gcc/Incomplete-Enums.html. (C++11 has a different notion of incomplete enum

Re: [PATCH v4 0/5] MIPS: Loongson64: Process ISA Node in DeviceTree

2020-07-28 Thread Thomas Bogendoerfer
On Tue, Jul 28, 2020 at 11:36:54PM +0800, Jiaxun Yang wrote: > Hi, > > This series convert reservation of Loongson64 Logic PIO into DeviceTree based > method. > > It can be used to replace Huacai's > "MIPS: Loongson64: Reserve legacy MMIO space according to bridge type". > > Thanks. > > v2: >

Re: [PATCH v4 2/2] MIPS: ingenic: Enable JZ4780_NEMC manually

2020-07-28 Thread Thomas Bogendoerfer
On Tue, Jul 28, 2020 at 02:53:08PM +0200, Krzysztof Kozlowski wrote: > On Tue, Jul 28, 2020 at 02:51:23PM +0200, Paul Cercueil wrote: > > > > > > Le mar. 28 juil. 2020 à 14:00, Krzysztof Kozlowski a écrit > > : > > > On Tue, Jul 28, 2020 at 01:37:02PM +0200, Thomas Bogendoerfer wrote: > > > >

Re: [PATCH RFC v6 3/6] dt-bindings: display: add Unisoc's dpu bindings

2020-07-28 Thread Sam Ravnborg
Hi Kevin. On Tue, Jul 28, 2020 at 06:07:56PM +0800, Kevin Tang wrote: > From: Kevin Tang > > DPU (Display Processor Unit) is the Display Controller for the Unisoc SoCs > which transfers the image data from a video memory buffer to an internal > LCD interface. > > Cc: Orson Zhai > Cc: Chunyan

RE: [PATCH 3/4] igb/igb_ethtool.c : Remove unnecessary usages of memset.

2020-07-28 Thread Brown, Aaron F
> From: Suraj Upadhyay > Sent: Tuesday, July 14, 2020 12:42 PM > To: Kirsher, Jeffrey T ; da...@davemloft.net; > k...@kernel.org > Cc: intel-wired-...@lists.osuosl.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; kernel-janit...@vger.kernel.org > Subject: [PATCH 3/4]

RE: [PATCH 2/4] e1000e/ethtool.c : Remove unnecessary usages of memset.

2020-07-28 Thread Brown, Aaron F
> From: Suraj Upadhyay > Sent: Tuesday, July 14, 2020 12:41 PM > To: Kirsher, Jeffrey T ; da...@davemloft.net; > k...@kernel.org > Cc: intel-wired-...@lists.osuosl.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; kernel-janit...@vger.kernel.org > Subject: [PATCH 2/4] e1000e/ethtool.c

Re: [PATCH 04/15] iio: sx9310: Remove acpi and of table macros

2020-07-28 Thread Daniel Campello
On Tue, Jul 28, 2020 at 12:09 PM Andy Shevchenko wrote: > > On Tue, Jul 28, 2020 at 6:16 PM Daniel Campello wrote: > > > > Avoids unused warnings due to acpi/of table macros. > > > > At the same time I would check if mod_devicetable.h is included. I did the following and no error showed up:

RE: [PATCH 1/4] e1000/e1000_ethtool.c: Remove unnecessary usages of memset

2020-07-28 Thread Brown, Aaron F
> From: Suraj Upadhyay > Sent: Tuesday, July 14, 2020 12:41 PM > To: Kirsher, Jeffrey T ; da...@davemloft.net; > k...@kernel.org > Cc: intel-wired-...@lists.osuosl.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; kernel-janit...@vger.kernel.org > Subject: [PATCH 1/4]

Re: [PATCH RFC v6 2/6] drm/sprd: add Unisoc's drm kms master

2020-07-28 Thread Sam Ravnborg
Hi Kevin. Nice split of the driver. Some feedback in the following. Most to bring the driver up-to-date with what have happened since we saw it last time. Keeping up with the changes in drm is not always easy. Sam On Tue, Jul 28, 2020 at 06:07:55PM +0800, Kevin Tang wrote: > From:

[PATCH] hv_utils: Add validation for untrusted Hyper-V values

2020-07-28 Thread Andres Beltran
For additional robustness in the face of Hyper-V errors or malicious behavior, validate all values that originate from packets that Hyper-V has sent to the guest in the host-to-guest ring buffer. Ensure that invalid values cannot cause indexing off the end of the icversion_data array in

Re: [PATCH] tty: Add MOXA NPort Real TTY Driver

2020-07-28 Thread Pavel Machek
Hi! > + This driver can also be built as a module. The module will be called > + npreal2 by setting M. Odd wording... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures)

Re: [PATCH v2] powercap: Add Power Limit4 support

2020-07-28 Thread Pavel Machek
Hi! > Modern Intel Mobile platforms support power limit4 (PL4), which is > the SoC package level maximum power limit (in Watts). It can be used > to preemptively limits potential SoC power to prevent power spikes > from tripping the power adapter and battery over-current protection. > This patch

Re: Linux kernel in-tree Rust support

2020-07-28 Thread Pavel Machek
Hi! > > No, please make it a "is rust available" automatic config option. The > > exact same way we already do the compiler versions and check for > > various availability of compiler flags at config time. > > That sounds even better, and will definitely allow for more testing. > > We just need

Re: [PATCH v31 00/12] /dev/random - a new approach with full SP800-90B

2020-07-28 Thread Pavel Machek
Hi! > The following patch set provides a different approach to /dev/random which is > called > Linux Random Number Generator (LRNG) to collect entropy within the Linux > kernel. The > main improvements compared to the existing /dev/random is to provide > sufficient entropy > during boot

Re: [PATCH v3 19/19] arm64: lto: Strengthen READ_ONCE() to acquire when CONFIG_LTO=y

2020-07-28 Thread Pavel Machek
On Fri 2020-07-10 17:52:03, Will Deacon wrote: > When building with LTO, there is an increased risk of the compiler > converting an address dependency headed by a READ_ONCE() invocation > into a control dependency and consequently allowing for harmful > reordering by the CPU. > > Ensure that such

RE: [Intel-wired-lan] [PATCH v2] igb: reinit_locked() should be called with rtnl_lock

2020-07-28 Thread Brown, Aaron F
> From: Intel-wired-lan On Behalf Of > Francesco Ruggeri > Sent: Thursday, July 2, 2020 3:39 PM > To: linux-kernel@vger.kernel.org; net...@vger.kernel.org; intel-wired- > l...@lists.osuosl.org; k...@kernel.org; da...@davemloft.net; Kirsher, Jeffrey > T ; frugg...@arista.com > Subject:

Re: [PATCH net 0/3] net: lan78xx: fix NULL deref and memory leak

2020-07-28 Thread David Miller
From: Johan Hovold Date: Tue, 28 Jul 2020 14:10:28 +0200 > The first two patches fix a NULL-pointer dereference at probe that can > be triggered by a malicious device and a small transfer-buffer memory > leak, respectively. > > For another subsystem I would have marked them: > > Cc:

RE: [Intel-wired-lan] [v4][PATCH] e1000e: continue to init phy even when failed to disable ULP

2020-07-28 Thread Brown, Aaron F
> From: Intel-wired-lan On Behalf Of > Aaron Ma > Sent: Wednesday, June 17, 2020 11:55 PM > To: k...@kernel.org; Kirsher, Jeffrey T ; > da...@davemloft.net; intel-wired-...@lists.osuosl.org; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Lifshits, Vitaly > ; kai.heng.f...@canonical.com;

Re: [PATCH V4 2/3] mfd: Intel Platform Monitoring Technology support

2020-07-28 Thread David E. Box
Hi Lee, Thanks for this thorough review. Ack on all the comments with particular thanks for spoting the missing continue. David On Tue, 2020-07-28 at 08:58 +0100, Lee Jones wrote: > On Fri, 17 Jul 2020, David E. Box wrote: > > > Intel Platform Monitoring Technology (PMT) is an architecture for

Re: [PATCH v7] Makefile: Add clang-tidy and static analyzer support to makefile

2020-07-28 Thread Nick Desaulniers
On Mon, Jul 27, 2020 at 5:47 PM 'Nathan Huckleberry' via Clang Built Linux wrote: > > This patch adds clang-tidy and the clang static-analyzer as make > targets. The goal of this patch is to make static analysis tools > usable and extendable by any developer or researcher who is familiar > with

[PATCH net] ptp: ptp_clockmatrix: update to support 4.8.7 firmware

2020-07-28 Thread min.li.xe
From: Min Li With 4.8.7 firmware, adjtime can change delta instead of absolute time, which greately increases snap accuracy. PPS alignment doesn't have to be set for every single TOD change. Other minor changes includes: adding more debug logs, increasing snap accuracy for pre 4.8.7 firmware and

Re: [PATCH RFC v6 1/6] dt-bindings: display: add Unisoc's drm master bindings

2020-07-28 Thread Sam Ravnborg
Hi Kevin On Tue, Jul 28, 2020 at 06:07:54PM +0800, Kevin Tang wrote: > From: Kevin Tang > > The Unisoc DRM master device is a virtual device needed to list all > DPU devices or other display interface nodes that comprise the > graphics subsystem > > Cc: Orson Zhai > Cc: Chunyan Zhang >

[PATCH 0/6] Reclaim x86 psABI TIF flags

2020-07-28 Thread Gabriel Krisman Bertazi
Hi, This patch set reduces the number of arch-specific TIF_ flags in x86, as a clean up to reduce the pressure over the few remaining x86_32 TIF bits and as a preparation to have the arch-agnostic TIF_ flags shared by different architectures by the common syscall entry code recently published by

[PATCH 4/6] arch: x86: Expose psABI on thread_info

2020-07-28 Thread Gabriel Krisman Bertazi
Expose psABI in thread_info, in preparation for the TIF_IA32 and TIF_X32 flags removal. Signed-off-by: Gabriel Krisman Bertazi --- arch/x86/include/asm/thread_info.h | 2 ++ arch/x86/kernel/process_64.c | 3 +++ 2 files changed, 5 insertions(+) diff --git

[PATCH 5/6] arch: x86: Reclaim TIF_IA32 flag

2020-07-28 Thread Gabriel Krisman Bertazi
Dropping this as a TIF flag is interesting given the pressure over x86 remaining x86 flags, plus considering the current common entry code, reducing arch-specific flags is a good thing. Notice that no path really relies on TIF_IA32 as part of a critical path, therefore the cost of checking

[PATCH 6/6] arch: x86: Reclaim TIF_X32 flag

2020-07-28 Thread Gabriel Krisman Bertazi
Dropping this as a TIF flag is interesting given the pressure over x86 remaining x86 flags, plus considering the current common entry code, reducing arch-specific flags is a good thing. Notice that no path really relies on TIF_X32 as part of a critical path, therefore the cost of checking another

[PATCH 1/6] arch: x86: Don't use TIF flags for mm context

2020-07-28 Thread Gabriel Krisman Bertazi
TIF_IA32 and TIF_X32 are going away. Create a dedicated enum for the MM context. Signed-off-by: Gabriel Krisman Bertazi --- arch/x86/include/asm/mmu_context.h | 2 +- arch/x86/include/asm/thread_info.h | 6 ++ arch/x86/kernel/process_64.c | 4 ++-- 3 files changed, 9 insertions(+), 3

[PATCH 2/6] arch: x86: Wrap TIF_IA32 checks

2020-07-28 Thread Gabriel Krisman Bertazi
In preparation to remove TIF_IA32, add wrapper that check the process has IA32 ABI without using the flag directly. Signed-off-by: Gabriel Krisman Bertazi --- arch/x86/events/core.c | 2 +- arch/x86/events/intel/ds.c | 2 +- arch/x86/events/intel/lbr.c| 2 +-

[PATCH 3/6] arch: x86: Wrap TIF_X32 checks

2020-07-28 Thread Gabriel Krisman Bertazi
In preparation to remove TIF_X32, add a wrapper that checks the process is using the X32 ABI without using the flag directly. Signed-off-by: Gabriel Krisman Bertazi --- arch/x86/entry/vdso/vma.c | 2 +- arch/x86/include/asm/elf.h | 2 +- arch/x86/include/asm/thread_info.h | 1 +

Re: [PATCH 0/2] Small cleanups to ingenic-drm driver

2020-07-28 Thread Sam Ravnborg
Hi Paul. On Tue, Jul 28, 2020 at 05:16:39PM +0200, Paul Cercueil wrote: > Here are a few cleanups to the ingenic-drm driver. > - some error paths were missing and have been added; > - the mode validation has been moved to the .mode_valid helper callback. > > Cheers, > -Paul > > Paul Cercueil

Re: [PATCH 16/19] perf metric: Make compute_single function more precise

2020-07-28 Thread kajoljain
On 7/28/20 10:56 PM, Ian Rogers wrote: > On Tue, Jul 28, 2020 at 5:36 AM Arnaldo Carvalho de Melo > wrote: >> >> Em Sun, Jul 19, 2020 at 08:13:17PM +0200, Jiri Olsa escreveu: >>> So far compute_single function relies on the fact, that >>> there's only single metric defined within evlist in all

Re: [PATCHv2] coresight: etm4x: Fix etm4_count race by moving cpuhp callbacks to init

2020-07-28 Thread Mike Leach
Hi Sai, On Tue, 28 Jul 2020 at 08:51, Sai Prakash Ranjan wrote: > > etm4_count keeps track of number of ETMv4 registered and on some systems, > a race is observed on etm4_count variable which can lead to multiple calls > to cpuhp_setup_state_nocalls_cpuslocked(). This function internally calls >

Re: [PATCH 03/15] iio: sx9310: Fix irq handling

2020-07-28 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 13:07:00) > On Tue, Jul 28, 2020 at 12:08 PM Andy Shevchenko > wrote: > > > > On Tue, Jul 28, 2020 at 6:14 PM Daniel Campello > > wrote: > > > > > > Fixes enable/disable irq handling at various points. The driver needs to > > > only enable/disable irqs if

Re: [PATCH v2 6/8] x86/kaslr: Simplify process_gb_huge_pages

2020-07-28 Thread Kees Cook
On Tue, Jul 28, 2020 at 03:45:11PM -0400, Arvind Sankar wrote: > But the IS_ENABLED check allows the compiler to eliminate the entire > function at compile time. Ah, I thought it'd be a const false, which would do the same... -- Kees Cook

Re: [PATCH v3 15/19] IMA: Add support for file reads without contents

2020-07-28 Thread Kees Cook
On Tue, Jul 28, 2020 at 09:56:40PM +0200, Greg Kroah-Hartman wrote: > On Tue, Jul 28, 2020 at 12:44:50PM -0700, Kees Cook wrote: > > On Mon, Jul 27, 2020 at 09:23:34AM -0400, Mimi Zohar wrote: > > > On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: > > > > From: Scott Branden > > > > > > > >

Re: [PATCH v4 4/5] arm64: dts: sdm845: Add OPP tables and power-domains for venus

2020-07-28 Thread Lina Iyer
On Tue, Jul 28 2020 at 13:51 -0600, Stephen Boyd wrote: Quoting Lina Iyer (2020-07-28 09:52:12) On Mon, Jul 27 2020 at 18:45 -0600, Stephen Boyd wrote: >Quoting Lina Iyer (2020-07-24 09:28:25) >> On Fri, Jul 24 2020 at 03:03 -0600, Rajendra Nayak wrote: >> >Hi Maulik/Lina, >> > >> >On 7/23/2020

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

2020-07-28 Thread Ricardo Rivera-Matos
Hello, 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

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

2020-07-28 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.

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

2020-07-28 Thread Ricardo Rivera-Matos
From: Dan Murphy Convert the battery.txt file to yaml and fix up the examples. Signed-off-by: Dan Murphy Reviewed-by: Rob Herring --- .../bindings/power/supply/battery.txt | 86 +-- .../bindings/power/supply/battery.yaml| 139 ++ 2 files changed, 140

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

2020-07-28 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:

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

2020-07-28 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 Acked-by: Andrew F. Davis Tested-by: Guru Das Srinagesh Signed-off-by: Dan Murphy ---

[PATCH 4/6] PCI: vmd: Create IRQ allocation helper

2020-07-28 Thread Jon Derrick
Moves the IRQ allocation and SRCU initialization code to a new helper. No functional changes. Reviewed-by: Andy Shevchenko Signed-off-by: Jon Derrick --- drivers/pci/controller/vmd.c | 94 1 file changed, 53 insertions(+), 41 deletions(-) diff --git

[PATCH 3/6] PCI: vmd: Create IRQ Domain configuration helper

2020-07-28 Thread Jon Derrick
Moves the IRQ and MSI Domain configuration code to new helpers. No functional changes. Reviewed-by: Andy Shevchenko Signed-off-by: Jon Derrick --- drivers/pci/controller/vmd.c | 52 1 file changed, 35 insertions(+), 17 deletions(-) diff --git

Re: [PATCH 03/15] iio: sx9310: Fix irq handling

2020-07-28 Thread Daniel Campello
On Tue, Jul 28, 2020 at 12:08 PM Andy Shevchenko wrote: > > On Tue, Jul 28, 2020 at 6:14 PM Daniel Campello wrote: > > > > Fixes enable/disable irq handling at various points. The driver needs to > > only enable/disable irqs if there is an actual irq handler installed. > > > -

Re: [PATCH v2 8/8] x86/kaslr: Don't use 64-bit mem_vector for 32-bit kernel

2020-07-28 Thread Arvind Sankar
On Tue, Jul 28, 2020 at 12:37:12PM -0700, Kees Cook wrote: > On Mon, Jul 27, 2020 at 07:08:01PM -0400, Arvind Sankar wrote: > > Commit > > f28442497b5c ("x86/boot: Fix KASLR and memmap= collision") > > converted mem_vector type to use 64-bit on the 32-bit kernel as well, > > based on Thomas's

[PATCH 6/6] PCI: vmd: Disable MSI/X remapping when possible

2020-07-28 Thread Jon Derrick
VMD will retransmit child device MSI/X using its own MSI/X table and requester-id. This limits the number of MSI/X available to the whole child device domain to the number of VMD MSI/X interrupts. Some VMD devices have a mode where this remapping can be disabled, allowing child device interrupts

[PATCH 2/6] PCI: vmd: Create bus offset configuration helper

2020-07-28 Thread Jon Derrick
Moves the bus offset configuration discovery code to a new helper. Modifies the bus offset 2-bit decode switch to have a 0 case and a default error case, just in case the field is expanded in future hardware. Reviewed-by: Andy Shevchenko Signed-off-by: Jon Derrick ---

[PATCH 0/6] VMD MSI Remapping Bypass

2020-07-28 Thread Jon Derrick
The Intel Volume Management Device acts similar to a PCI-to-PCI bridge in that it changes downstream devices' requester-ids to its own. As VMD supports PCIe devices, it has its own MSI/X table and transmits child device MSI/X by remapping child device MSI/X and handling like a demultiplexer. Some

[PATCH 5/6] x86/apic/msi: Use Real PCI DMA device when configuring IRTE

2020-07-28 Thread Jon Derrick
VMD retransmits child device MSI/X with the VMD endpoint's requester-id. In order to support direct interrupt remapping of VMD child devices, ensure that the IRTE is programmed with the VMD endpoint's requester-id using pci_real_dma_dev(). Reviewed-by: Andy Shevchenko Signed-off-by: Jon Derrick

[PATCH 1/6] PCI: vmd: Create physical offset helper

2020-07-28 Thread Jon Derrick
Moves the guest-passthrough physical offset discovery code to a new helper. No functional changes. Reviewed-by: Andy Shevchenko Signed-off-by: Jon Derrick --- drivers/pci/controller/vmd.c | 105 +-- 1 file changed, 62 insertions(+), 43 deletions(-) diff --git

Re: [PATCH net-next RFC 01/13] devlink: Add reload level option to devlink reload command

2020-07-28 Thread Jakub Kicinski
On Tue, 28 Jul 2020 12:18:30 -0700 Jacob Keller wrote: > On 7/28/2020 11:44 AM, Jakub Kicinski wrote: > > From user perspective what's important is what the reset achieves (and > > perhaps how destructive it is). We can define the reset levels as: > > > > $ devlink dev reload pci/:82:00.0

Re: [PATCH v2 7/8] x86/kaslr: Clean up slot handling

2020-07-28 Thread Arvind Sankar
On Tue, Jul 28, 2020 at 12:34:45PM -0700, Kees Cook wrote: > On Mon, Jul 27, 2020 at 07:08:00PM -0400, Arvind Sankar wrote: > > The number of slots and slot areas can be unsigned int, since on 64-bit, > > the maximum amount of memory is 2^52, the minimum alignment is 2^21, so > > the slot number

Re: [PATCH v1] farsync: use generic power management

2020-07-28 Thread Bjorn Helgaas
On Tue, Jul 28, 2020 at 09:58:10AM +0530, Vaibhav Gupta wrote: > The .suspend() and .resume() callbacks are not defined for this driver. > Still, their power management structure follows the legacy framework. To > bring it under the generic framework, simply remove the binding of > callbacks from

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-07-28 Thread Alan Stern
On Tue, Jul 28, 2020 at 09:02:44AM +0200, Martin Kepplinger wrote: > Hi Alan, > > Any API cleanup is of course welcome. I just wanted to remind you that > the underlying problem: broken block device runtime pm. Your initial > proposed fix "almost" did it and mounting works but during file access,

Re: [PATCH] usb: hso: check for return value in hso_serial_common_create()

2020-07-28 Thread David Miller
From: Rustam Kovhaev Date: Mon, 27 Jul 2020 23:42:17 -0700 > in case of an error tty_register_device_attr() returns ERR_PTR(), > add IS_ERR() check > > Reported-and-tested-by: syzbot+67b2bd0e34f952d03...@syzkaller.appspotmail.com > Link:

Re: [PATCH v3 3/4] staging: rtl8723bs: include: Further clean up function declarations

2020-07-28 Thread Aditya Jain
On Sun, Jul 26, 2020 at 11:45 PM Aditya Jain wrote: > > On Sun, Jul 26, 2020 at 10:45 PM Joe Perches wrote: > > > > On Sun, 2020-07-26 at 17:02 +0200, Greg KH wrote: > > > On Sun, Jul 26, 2020 at 07:50:12PM +0530, Aditya Jain wrote: > > > > Cleaning up messy multiline function declarations in

Re: [PATCH v10 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2020-07-28 Thread Waiman Long
On 4/3/20 4:59 PM, Alex Kogan wrote: In CNA, spinning threads are organized in two queues, a primary queue for threads running on the same node as the current lock holder, and a secondary queue for threads running on other nodes. After acquiring the MCS lock and before acquiring the spinlock,

Re: [PATCH v3 00/19] Introduce partial kernel_read_file() support

2020-07-28 Thread Scott Branden
Hi Mimi, On 2020-07-28 11:48 a.m., Mimi Zohar wrote: > On Mon, 2020-07-27 at 12:18 -0700, Scott Branden wrote: >> Hi Mimi/Kees, >> >> On 2020-07-27 4:16 a.m., Mimi Zohar wrote: >>> On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: v3: - add reviews/acks - add "IMA: Add support

Re: [PATCH v3 15/19] IMA: Add support for file reads without contents

2020-07-28 Thread Greg Kroah-Hartman
On Tue, Jul 28, 2020 at 12:44:50PM -0700, Kees Cook wrote: > On Mon, Jul 27, 2020 at 09:23:34AM -0400, Mimi Zohar wrote: > > On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: > > > From: Scott Branden > > > > > > When the kernel_read_file LSM hook is called with contents=false, IMA > > > can

Re: [PATCH v1] farsync: use generic power management

2020-07-28 Thread David Miller
From: Vaibhav Gupta Date: Tue, 28 Jul 2020 09:58:10 +0530 > The .suspend() and .resume() callbacks are not defined for this driver. > Still, their power management structure follows the legacy framework. To > bring it under the generic framework, simply remove the binding of > callbacks from

Re: [PATCH] dmaengine: ti: omap-dma: Drop of_match_ptr to fix -Wunused-const-variable

2020-07-28 Thread Laurent Pinchart
Hi Krzysztof, Thank you for the patch. On Tue, Jul 28, 2020 at 07:09:39PM +0200, Krzysztof Kozlowski wrote: > The of_device_id is included unconditionally by of.h header and used > in the driver as well. Remove of_match_ptr to fix W=1 compile test > warning with !CONFIG_OF: > >

Re: [PATCH net 0/5] net: hns3: fixes for -net

2020-07-28 Thread David Miller
From: Huazhong Tan Date: Tue, 28 Jul 2020 10:16:47 +0800 > There are some bugfixes for the HNS3 ethernet driver. patch#1 fixes > a desc filling bug, patch#2 fixes a false TX timeout issue, and > patch#3~#5 fixes some bugs related to VLAN and FD. Series applied, thank you.

Re: [PATCH v4 4/5] arm64: dts: sdm845: Add OPP tables and power-domains for venus

2020-07-28 Thread Stephen Boyd
Quoting Rajendra Nayak (2020-07-27 21:17:28) > > On 7/28/2020 6:22 AM, Stephen Boyd wrote: > > Quoting Viresh Kumar (2020-07-27 08:38:06) > >> On 27-07-20, 17:38, Rajendra Nayak wrote: > >>> On 7/27/2020 11:23 AM, Rajendra Nayak wrote: > On 7/24/2020 7:39 PM, Stanimir Varbanov wrote: >

Re: linux-next: build failure after merge of the driver-core tree

2020-07-28 Thread Kees Cook
On Mon, Jul 27, 2020 at 12:17:38PM +0200, Greg KH wrote: > On Mon, Jul 27, 2020 at 04:55:39PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > After merging the driver-core tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > In file included from

Re: [PATCH] sched/fair: provide u64 read for 32-bits arch helper

2020-07-28 Thread Vincent Donnefort
Hi, On Tue, Jul 28, 2020 at 02:00:27PM +0200, pet...@infradead.org wrote: > On Tue, Jul 28, 2020 at 01:13:02PM +0200, pet...@infradead.org wrote: > > On Mon, Jul 27, 2020 at 04:23:03PM +0100, Vincent Donnefort wrote: > > > > > For 32-bit architectures, both min_vruntime and last_update_time are

Re: [PATCH] drivers/net/wan/lapbether: Use needed_headroom instead of hard_header_len

2020-07-28 Thread Brian Norris
(Reviewing as requested; I'm not familiar with this driver either, or really any WAN driver. It also seems that hard_header_len vs. needed_headroom aren't very well documented, and even I can't guarantee I understand them completely. So take my thoughts with a grain of salt.) Hi, On Sun, Jul 26,

Re: [PATCH v4 4/5] arm64: dts: sdm845: Add OPP tables and power-domains for venus

2020-07-28 Thread Stephen Boyd
Quoting Lina Iyer (2020-07-28 09:52:12) > On Mon, Jul 27 2020 at 18:45 -0600, Stephen Boyd wrote: > >Quoting Lina Iyer (2020-07-24 09:28:25) > >> On Fri, Jul 24 2020 at 03:03 -0600, Rajendra Nayak wrote: > >> >Hi Maulik/Lina, > >> > > >> >On 7/23/2020 11:36 PM, Stanimir Varbanov wrote: > >> >>Hi

Re: [PATCH 0/4] arm64: Initial support for Texas Instrument's J7200 Platform

2020-07-28 Thread Grygorii Strashko
On 28/07/2020 22:19, Grygorii Strashko wrote: On 23/07/2020 11:46, Lokesh Vutla wrote: This series adds initial support for latest new SoC, J7200, from Texas Instruments. The J7200 SoC is a part of the K3 Multicore SoC architecture platform. It is targeted for for automotive gateway,

Re: [PATCH 3/4] arm64: dts: ti: Add support for J7200 SoC

2020-07-28 Thread Suman Anna
Hi Grygorii, On 7/28/20 2:16 PM, Grygorii Strashko wrote: On 23/07/2020 11:46, Lokesh Vutla wrote: The J7200 SoC is a part of the K3 Multicore SoC architecture platform. It is targeted for automotive gateway, vehicle compute systems, Vehicle-to-Vehicle (V2V) and Vehicle-to-Everything (V2X)

Re: [PATCH] mm/slab.c: add node spinlock protect in __cache_free_alien

2020-07-28 Thread David Rientjes
On Tue, 28 Jul 2020, qiang.zh...@windriver.com wrote: > From: Zhang Qiang > > We should add node spinlock protect "n->alien" which may be > assigned to NULL in cpuup_canceled func. cause address access > exception. > Hi, do you have an example NULL pointer dereference where you have hit

Re: [PATCH v2 6/8] x86/kaslr: Simplify process_gb_huge_pages

2020-07-28 Thread Arvind Sankar
On Tue, Jul 28, 2020 at 12:27:17PM -0700, Kees Cook wrote: > On Mon, Jul 27, 2020 at 07:07:59PM -0400, Arvind Sankar wrote: > > Short-circuit the whole function on 32-bit. > > > > Replace the loop to determine the number of 1Gb pages with arithmetic. > > > > Fix one minor bug: if the end of the

Re: [PATCH] mm: memcontrol: don't count limit-setting reclaim as memory pressure

2020-07-28 Thread Chris Down
Johannes Weiner writes: When an outside process lowers one of the memory limits of a cgroup (or uses the force_empty knob in cgroup1), direct reclaim is performed in the context of the write(), in order to directly enforce the new limit and have it being met by the time the write() returns.

Re: [PATCH v3 15/19] IMA: Add support for file reads without contents

2020-07-28 Thread Kees Cook
On Mon, Jul 27, 2020 at 09:23:34AM -0400, Mimi Zohar wrote: > On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: > > From: Scott Branden > > > > When the kernel_read_file LSM hook is called with contents=false, IMA > > can appraise the file directly, without requiring a filled buffer. When > >

Re: [PATCH v3 12/19] firmware_loader: Use security_post_load_data()

2020-07-28 Thread Kees Cook
On Mon, Jul 27, 2020 at 06:57:45AM -0400, Mimi Zohar wrote: > On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: > > Now that security_post_load_data() is wired up, use it instead > > of the NULL file argument style of security_post_read_file(), > > and update the security_kernel_load_data() call

Re: [PATCH 02/15] iio: sx9310: Update macros declarations

2020-07-28 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 08:12:45) > Follows spec sheet for macro declarations. > > Signed-off-by: Daniel Campello > --- Reviewed-by: Stephen Boyd

Re: [PATCH v2 5/8] x86/kaslr: Simplify __process_mem_region

2020-07-28 Thread Arvind Sankar
On Tue, Jul 28, 2020 at 12:25:16PM -0700, Kees Cook wrote: > On Mon, Jul 27, 2020 at 07:07:58PM -0400, Arvind Sankar wrote: > > Get rid of unnecessary temporary variables and redundant tests in > > __process_mem_region. > > > > Fix one minor bug: in case of an overlap, the beginning of the region

Re: [PATCH 4/4] mm: mmu_notifier: Fix and extend kerneldoc

2020-07-28 Thread Jason Gunthorpe
On Tue, Jul 28, 2020 at 07:11:09PM +0200, Krzysztof Kozlowski wrote: > Fix W=1 compile warnings (invalid kerneldoc): > > mm/mmu_notifier.c:187: warning: Function parameter or member > 'interval_sub' not described in 'mmu_interval_read_bgin' > mm/mmu_notifier.c:708: warning: Function

Re: [PATCH 12/15] iio: sx9310: Miscellaneous format fixes

2020-07-28 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 08:12:55) > Miscellaneous format fixes throughout the whole file. > > Signed-off-by: Daniel Campello > --- Reviewed-by: Stephen Boyd

Re: [PATCH 11/15] iio: sx9310: Use variable to hold >dev

2020-07-28 Thread Stephen Boyd
Quoting Daniel Campello (2020-07-28 08:12:54) > Improves readability by storing >dev in a local variable. > > Signed-off-by: Daniel Campello > --- Reviewed-by: Stephen Boyd

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