[PATCH v2 1/8] regulator: core: Introduce API for regulators coupling customization

2019-06-03 Thread Dmitry Osipenko
Right now regulator core supports only one type of regulators coupling, the "voltage max-spread" which keeps voltages of coupled regulators in a given range from each other. A more sophisticated coupling may be required in practice, one example is the NVIDIA Tegra SoC's which besides the

[PATCH v2 0/8] Introduce customized regulators coupling

2019-06-03 Thread Dmitry Osipenko
Hello, This series introduces a way of specifying a customized regulators coupler which is necessary for cases like a non-trivial DVFS implementation. For now I'm primarily targeting the CPUFreq driver of NVIDIA Tegra20 and Tegra30 SoC's to get into a better shape, such that things like CPU

[PATCH v2 4/8] regulator: core Bump MAX_COUPLED to 3

2019-06-03 Thread Dmitry Osipenko
NVIDIA Tegra20 SoC's couple 3 regulators, bump the MAX_COUPLED accordingly to support that case of coupling. Signed-off-by: Dmitry Osipenko --- include/linux/regulator/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/regulator/driver.h

Re: [PATCH v3] scsi: ibmvscsi: Don't use rc uninitialized in ibmvscsi_do_work

2019-06-03 Thread Tyrel Datwyler
On 06/03/2019 04:44 PM, Nathan Chancellor wrote: > clang warns: > > drivers/scsi/ibmvscsi/ibmvscsi.c:2126:7: warning: variable 'rc' is used > uninitialized whenever switch case is taken [-Wsometimes-uninitialized] > case IBMVSCSI_HOST_ACTION_NONE: > ^

Re: [PATCHv2 1/2] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()

2019-06-03 Thread Ira Weiny
On Mon, Jun 03, 2019 at 09:42:06AM -0700, Christoph Hellwig wrote: > > +#if defined(CONFIG_CMA) > > You can just use #ifdef here. > > > +static inline int reject_cma_pages(int nr_pinned, unsigned int gup_flags, > > + struct page **pages) > > Please use two instead of one tab to indent the

Re: [PATCH bpf v2] bpf: preallocate a perf_sample_data per event fd

2019-06-03 Thread Alexei Starovoitov
On Mon, Jun 3, 2019 at 4:48 PM Daniel Borkmann wrote: > > On 06/04/2019 01:27 AM, Alexei Starovoitov wrote: > > On Mon, Jun 3, 2019 at 3:59 PM Matt Mullins wrote: > >> > >> If these are invariably non-nested, I can easily keep bpf_misc_sd when > >> I resubmit. There was no technical reason

Re: [PATCH bpf v2] bpf: preallocate a perf_sample_data per event fd

2019-06-03 Thread Daniel Borkmann
On 06/04/2019 01:27 AM, Alexei Starovoitov wrote: > On Mon, Jun 3, 2019 at 3:59 PM Matt Mullins wrote: >> >> If these are invariably non-nested, I can easily keep bpf_misc_sd when >> I resubmit. There was no technical reason other than keeping the two >> codepaths as similar as possible. >> >>

RE: [RFC PATCH 3/9] x86/sgx: Allow userspace to add multiple pages in single ioctl()

2019-06-03 Thread Xing, Cedric
> -Original Message- > From: Christopherson, Sean J > Sent: Monday, June 03, 2019 1:37 PM > To: Hansen, Dave > Cc: Jarkko Sakkinen ; Andy Lutomirski > ; Xing, Cedric ; Stephen Smalley > ; James Morris ; Serge E . Hallyn > ; LSM List ; > Paul Moore ; Eric Paris ; >

RE: [RFC PATCH 3/9] x86/sgx: Allow userspace to add multiple pages in single ioctl()

2019-06-03 Thread Xing, Cedric
> From: Christopherson, Sean J > Sent: Monday, June 03, 2019 1:40 PM > > On Mon, Jun 03, 2019 at 01:08:04PM -0700, Sean Christopherson wrote: > > On Sun, Jun 02, 2019 at 11:26:09PM -0700, Xing, Cedric wrote: > > > > From: Christopherson, Sean J > > > > Sent: Friday, May 31, 2019 4:32 PM > > > > >

[PATCH v3] scsi: ibmvscsi: Don't use rc uninitialized in ibmvscsi_do_work

2019-06-03 Thread Nathan Chancellor
clang warns: drivers/scsi/ibmvscsi/ibmvscsi.c:2126:7: warning: variable 'rc' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] case IBMVSCSI_HOST_ACTION_NONE: ^ drivers/scsi/ibmvscsi/ibmvscsi.c:2151:6: note: uninitialized

Re: linux-next: build warning after merge of the scsi tree

2019-06-03 Thread Tyrel Datwyler
On 05/30/2019 08:36 PM, Stephen Rothwell wrote: > Hi all, > > After merging the scsi tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > drivers/scsi/ibmvscsi/ibmvscsi.c: In function 'ibmvscsi_work': > drivers/scsi/ibmvscsi/ibmvscsi.c:2151:5: warning: 'rc' may

Re: [PATCH v2] scsi: ibmvscsi: Don't use rc uninitialized in ibmvscsi_do_work

2019-06-03 Thread Tyrel Datwyler
On 06/03/2019 04:34 PM, Tyrel Datwyler wrote: > On 06/03/2019 04:25 PM, Tyrel Datwyler wrote: >> On 06/03/2019 03:19 PM, Nathan Chancellor wrote: >>> clang warns: >>> >>> drivers/scsi/ibmvscsi/ibmvscsi.c:2126:7: warning: variable 'rc' is used >>> uninitialized whenever switch case is taken

Re: [PATCH v2] scsi: ibmvscsi: Don't use rc uninitialized in ibmvscsi_do_work

2019-06-03 Thread Tyrel Datwyler
On 06/03/2019 04:25 PM, Tyrel Datwyler wrote: > On 06/03/2019 03:19 PM, Nathan Chancellor wrote: >> clang warns: >> >> drivers/scsi/ibmvscsi/ibmvscsi.c:2126:7: warning: variable 'rc' is used >> uninitialized whenever switch case is taken [-Wsometimes-uninitialized] >> case

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

2019-06-03 Thread shuah
On 6/3/19 3:07 AM, 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 should be made

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

2019-06-03 Thread shuah
On 6/3/19 3:08 AM, 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 know. This is

Re: [PATCH 1/4] arm64: dts: meson: g12a: add SDIO controller

2019-06-03 Thread Kevin Hilman
Neil Armstrong writes: > From: Jerome Brunet > > The Amlogic G12A SDIO Controller has a bug preventing direct DDR access, > add the port A (SDIO) pinctrl and controller nodes and mark this specific > controller with the amlogic,dram-access-quirk property. > > Signed-off-by: Jerome Brunet >

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

2019-06-03 Thread shuah
On 6/3/19 3:08 AM, 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 should be made by

Re: [PATCH] scsi: ibmvscsi: Don't use rc uninitialized in ibmvscsi_do_work

2019-06-03 Thread Tyrel Datwyler
On 06/02/2019 03:15 AM, Michael Ellerman wrote: > Hi Nathan, > > Nathan Chancellor writes: >> clang warns: >> >> drivers/scsi/ibmvscsi/ibmvscsi.c:2126:7: warning: variable 'rc' is used >> uninitialized whenever switch case is taken [-Wsometimes-uninitialized] >> case

Re: [PATCH bpf v2] bpf: preallocate a perf_sample_data per event fd

2019-06-03 Thread Alexei Starovoitov
On Mon, Jun 3, 2019 at 3:59 PM Matt Mullins wrote: > > If these are invariably non-nested, I can easily keep bpf_misc_sd when > I resubmit. There was no technical reason other than keeping the two > codepaths as similar as possible. > > What resource gives you worry about doing this for the

Re: [PATCH v2] scsi: ibmvscsi: Don't use rc uninitialized in ibmvscsi_do_work

2019-06-03 Thread Tyrel Datwyler
On 06/03/2019 03:19 PM, Nathan Chancellor wrote: > clang warns: > > drivers/scsi/ibmvscsi/ibmvscsi.c:2126:7: warning: variable 'rc' is used > uninitialized whenever switch case is taken [-Wsometimes-uninitialized] > case IBMVSCSI_HOST_ACTION_NONE: > ^

Re: [PATCH net-next v3] hinic: add LRO support

2019-06-03 Thread kbuild test robot
Hi Xue, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Xue-Chaojing/hinic-add-LRO-support/20190604-035042 reproduce: # apt-get install sparse # sparse version:

[RFC PATCH] hinic: hinic_rx_configure() can be static

2019-06-03 Thread kbuild test robot
Fixes: 7e8a92c6b00c ("hinic: add LRO support") Signed-off-by: kbuild test robot --- hinic_main.c |2 +- hinic_port.c |6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_main.c

[PATCH v2 1/2] arm64: smp: Moved cpu_logical_map[] to smp.h

2019-06-03 Thread Florian Fainelli
asm/smp.h is included by linux/smp.h and some drivers, in particular irqchip drivers can access cpu_logical_map[] in order to perform SMP affinity tasks. Make arm64 consistent with other architectures here. Signed-off-by: Florian Fainelli --- arch/arm64/include/asm/smp.h | 6 ++

[PATCH v2 2/2] ARM: smp: Moved cpu_logical_map[] to smp.h

2019-06-03 Thread Florian Fainelli
asm/smp.h is included by linux/smp.h and some drivers, in particular irqchip drivers can access cpu_logical_map[] in order to perform SMP affinity tasks. Make arm64 consistent with other architectures here. Signed-off-by: Florian Fainelli --- arch/arm/include/asm/smp.h | 6 ++

Re: [PATCH v2 net-next 00/10] PTP support for the SJA1105 DSA driver

2019-06-03 Thread David Miller
From: Vladimir Oltean Date: Tue, 4 Jun 2019 02:13:16 +0300 > This series appears in patchwork as "superseded": > https://patchwork.ozlabs.org/project/netdev/list/?series=111356=* > Perhaps it got mixed up with another one? No, there was a comment in this thread that there would be a respin with

[PATCH v2 0/2] ARM/ARM64: Move cpu_logical_map[] to smp.h

2019-06-03 Thread Florian Fainelli
Hi all, These two patches make ARM and ARM64 consistent with other architectures: sh, sparc, xtensa, mips, etc. to define cpu_logical_map under asm/smp.h, which is included by linux/smp.h. This allows other pieces of code like irqchip drivers to get access to cpu_logical_map[] using linux/smp.h.

Re: [PATCH v2 net-next 00/10] PTP support for the SJA1105 DSA driver

2019-06-03 Thread Vladimir Oltean
On Mon, 3 Jun 2019 at 00:40, Vladimir Oltean wrote: > > This patchset adds the following: > > - A timecounter/cyclecounter based PHC for the free-running >timestamping clock of this switch. > > - A state machine implemented in the DSA tagger for SJA1105, which >keeps track of metadata

Re: [PATCH] Smack: Restore the smackfsdef mount option and add missing prefixes

2019-06-03 Thread Casey Schaufler
On 6/3/2019 3:42 PM, James Morris wrote: > On Fri, 31 May 2019, David Howells wrote: > >> Should this go via Al's tree, James's tree, Casey's tree or directly to >> Linus? > If it's specific to one LSM (as this is), via Casey, who can decide to > forward to Al or Linus. I would very much

Re: [PATCH linux dev-5.1 v1] ARM: dts: aspeed: Add SGPM pinmux

2019-06-03 Thread Linus Walleij
Hi Hongwei, On Tue, Jun 4, 2019 at 12:44 AM Hongwei Zhang wrote: > > Add SGPM pinmux to ast2500-pinctrl function and group, to prepare for > supporting SGPIO in AST2500 SoC. > > Signed-off-by: Hongwei Zhang > --- > Documentation/devicetree/bindings/pinctrl/pinctrl-aspeed.txt | 2 +- >

Re: [PATCH net-next v3] hinic: add LRO support

2019-06-03 Thread Jesse Brandeburg
some review comments below... On Mon, 3 Jun 2019 04:35:36 + Xue Chaojing wrote: > This patch adds LRO support for the HiNIC driver. > > Signed-off-by: Xue Chaojing > --- > .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 2 + > .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 8 +- >

Re: [RFCv2 1/6] mm: introduce MADV_COLD

2019-06-03 Thread Minchan Kim
Hi Johannes, On Mon, Jun 03, 2019 at 05:50:59PM -0400, Johannes Weiner wrote: > On Mon, Jun 03, 2019 at 10:32:30PM +0200, Michal Hocko wrote: > > On Mon 03-06-19 13:27:17, Johannes Weiner wrote: > > > On Mon, Jun 03, 2019 at 09:16:07AM +0200, Michal Hocko wrote: > > > > On Fri 31-05-19 23:34:07,

Re: linux-next: runtime failure of next-20190603

2019-06-03 Thread Matthew Wilcox
On Mon, Jun 03, 2019 at 02:07:26PM -0700, Dave Hansen wrote: > On 6/2/19 11:22 PM, Stephen Rothwell wrote: > > My qemu powerpc_pseries_le_defconfig boots failed today with the > > following output at shutdown time: > ... > > [ 32.112430] NIP [c0bbeb38] xas_load+0x8/0xd0 > ... > >

[PATCH linux dev-5.1 v1] ARM: dts: aspeed: Add SGPM pinmux

2019-06-03 Thread Hongwei Zhang
Add SGPM pinmux to ast2500-pinctrl function and group, to prepare for supporting SGPIO in AST2500 SoC. Signed-off-by: Hongwei Zhang --- Documentation/devicetree/bindings/pinctrl/pinctrl-aspeed.txt | 2 +- arch/arm/boot/dts/aspeed-g5.dtsi | 5 +

Re: [PATCH bpf v2] bpf: preallocate a perf_sample_data per event fd

2019-06-03 Thread Matt Mullins
On Mon, 2019-06-03 at 15:22 +0200, Daniel Borkmann wrote: > On 06/03/2019 03:08 PM, Daniel Borkmann wrote: > > On 06/01/2019 12:37 AM, Matt Mullins wrote: > > > It is possible that a BPF program can be called while another BPF > > > program is executing bpf_perf_event_output. This has been

Re: A potential broken at platform driver?

2019-06-03 Thread Richard Gong
Hi Greg, On 6/3/19 1:02 PM, Greg KH wrote: On Mon, Jun 03, 2019 at 10:57:18AM -0500, Richard Gong wrote: Hi Greg, Following your suggestion, I replaced devm_device_add_groups() with .group = rus_groups in my version #4 submission. But I found out that RSU driver outputs the garbage data if I

Re: [PATCH v3 2/4] mm/vmap: preload a CPU with one object for split purpose

2019-06-03 Thread Roman Gushchin
On Mon, Jun 03, 2019 at 10:53:34PM +0200, Uladzislau Rezki wrote: > On Mon, Jun 03, 2019 at 07:53:12PM +0200, Uladzislau Rezki wrote: > > Hello, Roman! > > > > On Wed, May 29, 2019 at 04:34:40PM +, Roman Gushchin wrote: > > > On Wed, May 29, 2019 at 04:27:15PM +0200, Uladzislau Rezki wrote: >

Re: [PATCH] usb: dwc2: host: Fix wMaxPacketSize handling (fix webcam regression)

2019-06-03 Thread Matthias Kaehlcke
On Fri, May 31, 2019 at 01:04:12PM -0700, Douglas Anderson wrote: > In commit abb621844f6a ("usb: ch9: make usb_endpoint_maxp() return > only packet size") the API to usb_endpoint_maxp() changed. It used to > just return wMaxPacketSize but after that commit it returned > wMaxPacketSize with the

Re: [PATCH] Smack: Restore the smackfsdef mount option and add missing prefixes

2019-06-03 Thread James Morris
On Fri, 31 May 2019, David Howells wrote: > Should this go via Al's tree, James's tree, Casey's tree or directly to Linus? If it's specific to one LSM (as this is), via Casey, who can decide to forward to Al or Linus. -- James Morris

Re: [EXT] VPD access Blocked by commit 0d5370d1d85251e5893ab7c90a429464de2e140b

2019-06-03 Thread Bjorn Helgaas
On Mon, Jun 03, 2019 at 09:30:50PM +, Himanshu Madhani wrote: > On May 30, 2019, at 1:58 PM, Bjorn Helgaas wrote: >> On Thu, May 30, 2019 at 07:33:01PM +, Himanshu Madhani wrote: >>> We are able to successfully read VPD config data using lspci and cat >>> command > Missed the request for

Re: [PATCH v2 10/10] ARM: mach-meson: update with SPDX Licence identifier

2019-06-03 Thread Kevin Hilman
Neil Armstrong writes: > Signed-off-by: Neil Armstrong > --- > arch/arm/mach-meson/meson.c | 12 +--- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/arch/arm/mach-meson/meson.c b/arch/arm/mach-meson/meson.c > index c8d99df32f9b..04ae414d88c9 100644 > ---

Re: [RFC][Patch v10 2/2] virtio-balloon: page_hinting: reporting to the host

2019-06-03 Thread Alexander Duyck
On Mon, Jun 3, 2019 at 10:04 AM Nitesh Narayan Lal wrote: > > Enables the kernel to negotiate VIRTIO_BALLOON_F_HINTING feature with the > host. If it is available and page_hinting_flag is set to true, page_hinting > is enabled and its callbacks are configured along with the max_pages count >

Re: [PATCH V2 net-next 00/10] code optimizations & bugfixes for HNS3 driver

2019-06-03 Thread David Miller
From: Huazhong Tan Date: Mon, 3 Jun 2019 10:09:12 +0800 > This patch-set includes code optimizations and bugfixes for the HNS3 > ethernet controller driver. > > [patch 1/10] removes the redundant core reset type > > [patch 2/10 - 3/10] fixes two VLAN related issues > > [patch 4/10] fixes a TM

Re: [EXT] VPD access Blocked by commit 0d5370d1d85251e5893ab7c90a429464de2e140b

2019-06-03 Thread Himanshu Madhani
Hi Bjorn, > On May 30, 2019, at 1:58 PM, Bjorn Helgaas wrote: > > On Thu, May 30, 2019 at 07:33:01PM +, Himanshu Madhani wrote: > >> We are able to successfully read VPD config data using lspci and cat >> command > > Yes, you mentioned that in the very first email. I was hoping you >

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

2019-06-03 Thread Jarkko Sakkinen
On Thu, May 30, 2019 at 02:36:01PM -0700, Sean Christopherson wrote: > Assuming MRENCLAVE generated by Graphene or any other hosting scheme are > stable[1], then avoiding EXEC means the user can effectively > whitelist what enclaves are runnable by Graphene, even if the kernel > doesn't implement

[PATCH 4/7] staging: kpc2000: use __func__ in debug messages in core.c

2019-06-03 Thread Simon Sandström
Fixes checkpatch.pl warning "Prefer using '"%s...", __func__' to using '', this function's name, in a string". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/core.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 6/7] staging: kpc2000: use sizeof(var) in kzalloc call

2019-06-03 Thread Simon Sandström
Fixes checkpatch.pl warning "Prefer kzalloc(sizeof(*pcard)...) over kzalloc(sizeof(struct kp2000_device)...)". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c

[PATCH 3/7] staging: kpc2000: remove unnecessary oom message in core.c

2019-06-03 Thread Simon Sandström
Fixes checkpatch.pl warning "Possible unnecessary 'out of memory' message". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/core.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c

[PATCH 7/7] staging: kpc2000: fix incorrect code comment in core.c

2019-06-03 Thread Simon Sandström
Step 11 was removed from kp2000_pcie_probe in a previous commit but the comment was not changed to reflect this, so do it now. Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/7] staging: kpc2000: various minor checkpatch fixes

2019-06-03 Thread Simon Sandström
Here is a bunch of checkpatch fixes for core.c in staging/kpc2000. Some of these were sent earlier but not applied. Now rebased on top of staging-testing (incl. Jeremy's kpc2000 misc device removal commits). - Simon Simon Sandström (7): staging: kpc2000: simplify comparisons to NULL in

[PATCH 1/7] staging: kpc2000: simplify comparisons to NULL in core.c

2019-06-03 Thread Simon Sandström
Fixes checkpatch.pl warnings "Comparison to NULL could be written [...]" and "Comparisons should place the constant on the right side of the test". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff

[PATCH 5/7] staging: kpc2000: remove unnecessary include in core.c

2019-06-03 Thread Simon Sandström
Fixes checkpatch.pl warning "Use #include instead of ". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c b/drivers/staging/kpc2000/kpc2000/core.c index 6d4fc1f37c9f..3f17566a9d03

[PATCH 2/7] staging: kpc2000: remove unnecessary parentheses in core.c

2019-06-03 Thread Simon Sandström
Fixes checkpatch.pl check "Unnecessary parentheses around pdev->dev.kobj". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c

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

2019-06-03 Thread Jarkko Sakkinen
On Thu, May 30, 2019 at 11:01:10AM -0700, Sean Christopherson wrote: > - Requires enclave builder to mark enclave pages executable in the > non-enclave VMAs, which may unnecessarily require EXECMOD on the > source file, or even worse, EXECMEM, and potentially increases the > attack

Re: [PATCH v2 01/10] ARM: dts: meson: update with SPDX Licence identifier

2019-06-03 Thread Kevin Hilman
Neil Armstrong writes: > While the text specifies "of the GPL or the X11 license" the actual > license text matches the MIT license as specified at [0] > > [0] https://spdx.org/licenses/MIT.html > > Signed-off-by: Neil Armstrong Queued for v5.3 with Martin's tags (branch: v5.3/dt) Kevin

Re: [PATCH 00/10] arm64: meson-gx: misc fixes

2019-06-03 Thread Kevin Hilman
Neil Armstrong writes: > This patchset : > - Fixes GPIO key DT on Khadas VIM2 board > - Fixes regulator naming on Vega S95 board > - Enable SARADC on Wetek and Vega S95 boards > - Enable/Fix Bluetooth on VIM2, Wetek and Vega S95 boards > - Enable CEC & HDMI on Vega S95 board > - Adds ethernet

Re: [GIT PULL] ARC updates for 5.2-rc4

2019-06-03 Thread pr-tracker-bot
The pull request you sent on Mon, 3 Jun 2019 14:04:16 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/ tags/arc-5.2-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/788a024921c48985939f8241c1ff862a7374d8f9 Thank you! -- Deet-doot-dot, I am a

[PATCH 3/3 v2] arm64: dts: qcom: pm8998: Use qcom,pm8998-pon binding for second gen pon

2019-06-03 Thread John Stultz
This changes pm8998 to use the new qcom,pm8998-pon compatible string for the pon in order to support the gen2 pon functionality properly. Cc: Andy Gross Cc: David Brown Cc: Bjorn Andersson Cc: Amit Pundir Cc: Rob Herring Cc: Mark Rutland Cc: Sebastian Reichel Cc:

[PATCH 1/3 v2] dt-bindings: power: reset: qcom: Add qcom,pm8998-pon compatability line

2019-06-03 Thread John Stultz
Update bindings to support for qcom,pm8998-pon which uses gen2 pon Cc: Andy Gross Cc: David Brown Cc: Bjorn Andersson Cc: Amit Pundir Cc: Rob Herring Cc: Mark Rutland Cc: Sebastian Reichel Cc: linux-arm-...@vger.kernel.org Cc: devicet...@vger.kernel.org Reviewed-by: Bjorn Andersson

[PATCH 2/3 v2] reset: qcom-pon: Add support for gen2 pon

2019-06-03 Thread John Stultz
Add support for gen2 pon register so "reboot bootloader" can work on pixel3 and db845. Cc: Andy Gross Cc: David Brown Cc: Bjorn Andersson Cc: Amit Pundir Cc: Rob Herring Cc: Mark Rutland Cc: Sebastian Reichel Cc: linux-arm-...@vger.kernel.org Cc: devicet...@vger.kernel.org Reviewed-by:

[PATCH v2] scsi: ibmvscsi: Don't use rc uninitialized in ibmvscsi_do_work

2019-06-03 Thread Nathan Chancellor
clang warns: drivers/scsi/ibmvscsi/ibmvscsi.c:2126:7: warning: variable 'rc' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized] case IBMVSCSI_HOST_ACTION_NONE: ^ drivers/scsi/ibmvscsi/ibmvscsi.c:2151:6: note: uninitialized

[GIT PULL] ARC updates for 5.2-rc4

2019-06-03 Thread Vineet Gupta
Hi Linus, Please pull. Thx, -Vineet -> The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/

Re: [PATCH 1/1] ARM: dts: meson8b: mxq: improve support for the TRONFY MXQ S805

2019-06-03 Thread Kevin Hilman
hex dump writes: > Am Fr., 24. Mai 2019 um 20:19 Uhr schrieb Martin Blumenstingl < > martin.blumensti...@googlemail.com>: > >> The TRONFY MXQ comes with either 1GB or 2GB RAM. >> >> Both variants share (like most boards based on Amlogic reference >> designs): >> - 10/100 PHY (IC Plus IP101GR)

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

2019-06-03 Thread Jarkko Sakkinen
On Thu, May 30, 2019 at 09:14:10AM -0700, Andy Lutomirski wrote: > > What is the "source file" i.e. the target of the check? Enclave file, > > sigstruct file, or /dev/sgx/enclave? > > Enclave file -- that is, the file backing the vma from which the data > is loaded. Wonder why KVM gets away

[PATCH 02/11] mm: clean up and clarify lruvec lookup procedure

2019-06-03 Thread Johannes Weiner
There is a per-memcg lruvec and a NUMA node lruvec. Which one is being used is somewhat confusing right now, and it's easy to make mistakes - especially when it comes to global reclaim. How it works: when memory cgroups are enabled, we always use the root_mem_cgroup's per-node lruvecs. When

[PATCH 11/11] mm: vmscan: enforce inactive:active ratio at the reclaim root

2019-06-03 Thread Johannes Weiner
We split the LRU lists into inactive and an active parts to maximize workingset protection while allowing just enough inactive cache space to faciltate readahead and writeback for one-off file accesses (e.g. a linear scan through a file, or logging); or just enough inactive anon to maintain recent

Re: [PATCH v2] arm64: dts: meson-g12a-x96-max: Add Gigabit Ethernet Support

2019-06-03 Thread Kevin Hilman
Martin Blumenstingl writes: > On Mon, May 27, 2019 at 3:00 PM Neil Armstrong > wrote: >> >> Enable the network interface of the X96 Mac using an external >> Realtek RTL8211F gigabit PHY, needing the same broken-eee properties >> as the previous Amlogic SoC generations. >> >> Signed-off-by:

Re: [PATCH v6] platform/chrome: Add Wilco EC keyboard backlight LEDs support

2019-06-03 Thread Pavel Machek
Hi! > On 9/4/19 11:55, Pavel Machek wrote: > >> The EC is in charge of controlling the keyboard backlight on > >> the Wilco platform. We expose a standard LED class device at > >> /sys/class/leds/chromeos::kbd_backlight. This driver is modeled > > > > As discussed, please use platform::. > > >

[PATCH v2] PCI: rpaphp: Avoid a sometimes-uninitialized warning

2019-06-03 Thread Nathan Chancellor
When building with -Wsometimes-uninitialized, clang warns: drivers/pci/hotplug/rpaphp_core.c:243:14: warning: variable 'fndit' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] for (j = 0; j < entries; j++) {

Re: [PATCH] platform/chrome: cros_ec_lpc: Choose Microchip EC at runtime

2019-06-03 Thread Ezequiel Garcia
Hi Enric, On Thu, 2019-05-30 at 19:11 +0200, Enric Balletbo i Serra wrote: > On many boards, communication between the kernel and the Embedded > Controller happens over an LPC bus. In these cases, the kernel config > CONFIG_CROS_EC_LPC is enabled. Some of these LPC boards contain a > Microchip

Re: [PATCH net-next 04/10] net: ethernet: ti: cpts: add support for rftclk selection

2019-06-03 Thread David Miller
From: Grygorii Strashko Date: Sat, 1 Jun 2019 13:45:28 +0300 > +static int cpts_of_mux_clk_setup(struct cpts *cpts, struct device_node *node) > +{ > + unsigned int num_parents; > + const char **parent_names; > + struct device_node *refclk_np; > + struct clk_hw *clk_hw; > +

Re: [PATCH v2] arm64: dts: meson: g12a: Add hwrng node

2019-06-03 Thread Kevin Hilman
Martin Blumenstingl writes: > On Mon, May 27, 2019 at 2:51 PM Neil Armstrong > wrote: >> >> The Amlogic G12A has the hwrng module at the end of an unknown >> "EFUSE" bus. >> >> The hwrng is not enabled on the vendor G12A DTs, but is enabled on >> next generation SM1 SoC family sharing the

Re: [PATCH net-next] qed: Fix build error without CONFIG_DEVLINK

2019-06-03 Thread David Miller
From: YueHaibing Date: Sat, 1 Jun 2019 16:06:05 +0800 > Fix gcc build error while CONFIG_DEVLINK is not set > > drivers/net/ethernet/qlogic/qed/qed_main.o: In function `qed_remove': > qed_main.c:(.text+0x1eb4): undefined reference to `devlink_unregister' > > Select DEVLINK to fix this. > >

Re: [PATCH v2 3/3] arm64: dts: meson: g12a: add SDIO controller

2019-06-03 Thread Kevin Hilman
Neil Armstrong writes: > From: Jerome Brunet > > The Amlogic G12A SDIO Controller has a bug preventing direct DDR access, > add the port A (SDIO) pinctrl and controller nodes and mark this specific > controller with the amlogic,dram-access-quirk property. > > Signed-off-by: Jerome Brunet >

[PATCH 08/11] mm: vmscan: harmonize writeback congestion tracking for nodes & memcgs

2019-06-03 Thread Johannes Weiner
The current writeback congestion tracking has separate flags for kswapd reclaim (node level) and cgroup limit reclaim (memcg-node level). This is unnecessarily complicated: the lruvec is an existing abstraction layer for that node-memcg intersection. Introduce lruvec->flags and LRUVEC_CONGESTED.

Re: [PATCH] arm64: dts: meson: add dwmac-3.70a to ethmac compatible list

2019-06-03 Thread Kevin Hilman
Martin Blumenstingl writes: > Hi Jerome, > > On Fri, May 24, 2019 at 3:08 PM Jerome Brunet wrote: >> >> After discussing with Amlogic, the Synopsys GMAC version used by >> the gx and axg family is the 3.70a. Set this is in DT >> >> Signed-off-by: Jerome Brunet > Reviewed-by: Martin

Re: [PATCH v3] selinux: lsm: fix a missing-check bug in selinux_sb_eat_lsm_opts()

2019-06-03 Thread Paul Moore
On Mon, Jun 3, 2019 at 3:23 AM Ondrej Mosnacek wrote: > On Sat, Jun 1, 2019 at 4:15 AM Gen Zhang wrote: > > In selinux_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It > > returns NULL when fails. So 'arg' should be checked. And 'mnt_opts' > > should be freed when error. > > > >

[PATCH 09/11] mm: vmscan: move file exhaustion detection to the node level

2019-06-03 Thread Johannes Weiner
When file pages are lower than the watermark on a node, we try to force scan anonymous pages to counter-act the balancing algorithms preference for new file pages when they are likely thrashing. This is node-level decision, but it's currently made each time we look at an lruvec. This is

Re: [PATCH] PCI: rpaphp: Avoid a sometimes-uninitialized warning

2019-06-03 Thread Nick Desaulniers
On Mon, Jun 3, 2019 at 10:44 AM Nathan Chancellor wrote: > Looking at the loop in a vacuum as clang would, fndit could be > uninitialized if entries was ever zero or the if statement was > always true within the loop. Regardless of whether or not this > warning is a problem in practice, "found"

[PATCH 05/11] mm: vmscan: replace shrink_node() loop with a retry jump

2019-06-03 Thread Johannes Weiner
Most of the function body is inside a loop, which imposes an additional indentation and scoping level that makes the code a bit hard to follow and modify. The looping only happens in case of reclaim-compaction, which isn't the common case. So rather than adding yet another function level to the

[PATCH 06/11] mm: vmscan: turn shrink_node_memcg() into shrink_lruvec()

2019-06-03 Thread Johannes Weiner
A lruvec holds LRU pages owned by a certain NUMA node and cgroup. Instead of awkwardly passing around a combination of a pgdat and a memcg pointer, pass down the lruvec as soon as we can look it up. Nested callers that need to access node or cgroup properties can look them them up if necessary,

[PATCH 10/11] mm: vmscan: detect file thrashing at the reclaim root

2019-06-03 Thread Johannes Weiner
We use refault information to determine whether the cache workingset is stable or transitioning, and dynamically adjust the inactive:active file LRU ratio so as to maximize protection from one-off cache during stable periods, and minimize IO during transitions. With cgroups and their nested LRU

[PATCH 01/11] mm: vmscan: move inactive_list_is_low() swap check to the caller

2019-06-03 Thread Johannes Weiner
inactive_list_is_low() should be about one thing: checking the ratio between inactive and active list. Kitchensink checks like the one for swap space makes the function hard to use and modify its callsites. Luckly, most callers already have an understanding of the swap situation, so it's easy to

Re: [PATCH v2 2/4] iommu: Introduce device fault data

2019-06-03 Thread Jacob Pan
On Mon, 3 Jun 2019 15:57:47 +0100 Jean-Philippe Brucker wrote: > +/** > + * struct iommu_fault_page_request - Page Request data > + * @flags: encodes whether the corresponding fields are valid and > whether this > + * is the last page in group (IOMMU_FAULT_PAGE_REQUEST_* > values) > + *

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

2019-06-03 Thread Jarkko Sakkinen
On Thu, May 30, 2019 at 07:31:14AM -0700, Andy Lutomirski wrote: > - To create an X mapping of an enclave page that came from EADD, you > need EXECUTE on the source file. Optionally, we could also permit > this if you have EXECMOD. Source file? EADD ioctl takes memory buffer in right now. >

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

2019-06-03 Thread Jarkko Sakkinen
On Thu, May 30, 2019 at 11:04:24AM -0400, Stephen Smalley wrote: > Does this occur for both setting initial permissions and runtime permissions > or just runtime? Both userspace- and driver-initiated mmap/mprotect > operations or just userspace-initiated ones? Does the driver use interfaces >

Re: [PATCH net v1 2/2] net: ethernet: mediatek: Use NET_IP_ALIGN to judge if HW RX_2BYTE_OFFSET is enabled

2019-06-03 Thread David Miller
From: Date: Sat, 1 Jun 2019 08:16:27 +0800 > From: Sean Wang > > Should only enable HW RX_2BYTE_OFFSET function in the case NET_IP_ALIGN > equals to 2. > > Signed-off-by: Mark Lee > Signed-off-by: Sean Wang Applied.

Re: [PATCH net v1 1/2] net: ethernet: mediatek: Use hw_feature to judge if HWLRO is supported

2019-06-03 Thread David Miller
From: Date: Sat, 1 Jun 2019 08:16:26 +0800 > From: Sean Wang > > Should hw_feature as hardware capability flags to check if hardware LRO > got support. > > Signed-off-by: Mark Lee > Signed-off-by: Sean Wang Applied.

Re: possible deadlock in __do_page_fault (2)

2019-06-03 Thread syzbot
syzbot has bisected this bug to: commit 69d61f577d147b396be0991b2ac6f65057f7d445 Author: Mimi Zohar Date: Wed Apr 3 21:47:46 2019 + ima: verify mprotect change is consistent with mmap policy bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16461c5aa0 start commit:

Re: [PATCH v3] selinux: lsm: fix a missing-check bug in selinux_sb_eat_lsm_opts()

2019-06-03 Thread Paul Moore
On Fri, May 31, 2019 at 10:45 PM Gen Zhang wrote: > On Sat, Jun 01, 2019 at 03:25:27AM +0100, Al Viro wrote: > > On Sat, Jun 01, 2019 at 10:15:26AM +0800, Gen Zhang wrote: > > > In selinux_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It > > > returns NULL when fails. So 'arg' should be

[PATCH 04/11] mm: vmscan: naming fixes: cgroup_reclaim() and writeback_working()

2019-06-03 Thread Johannes Weiner
Seven years after introducing the global_reclaim() function, I still have to double take when reading a callsite. I don't know how others do it. This is a terrible name. Invert the meaning and rename it to cgroup_reclaim(). [ After all, "global reclaim" is just regular reclaim invoked from the

Re: [RFC PATCH 3/9] x86/sgx: Allow userspace to add multiple pages in single ioctl()

2019-06-03 Thread Dave Hansen
On 6/3/19 1:37 PM, Sean Christopherson wrote: > Heh, fair enough. IIRC, a while back someone posted about having problems > building a 512gb enclave in a 92mb EPC... > > How about this for the intermediate patch: > > struct sgx_enclave_add_region { > __u64 addr; >

Re: [RFC PATCH 3/9] x86/sgx: Allow userspace to add multiple pages in single ioctl()

2019-06-03 Thread Sean Christopherson
On Mon, Jun 03, 2019 at 01:08:04PM -0700, Sean Christopherson wrote: > On Sun, Jun 02, 2019 at 11:26:09PM -0700, Xing, Cedric wrote: > > > From: Christopherson, Sean J > > > Sent: Friday, May 31, 2019 4:32 PM > > > > > > +/** > > > + * sgx_ioc_enclave_add_pages - handler for

Re: [PATCH] net: mscc: ocelot: Fix some struct initializations

2019-06-03 Thread Nick Desaulniers
On Mon, Jun 3, 2019 at 1:51 PM Nathan Chancellor wrote: > Fixes: b596229448dd ("net: mscc: ocelot: Add support for tcam") > Link: https://github.com/ClangBuiltLinux/linux/issues/505 > Signed-off-by: Nathan Chancellor LGTM thanks Nathan. Reviewed-by: Nick Desaulniers -- Thanks, ~Nick

[PATCH 03/11] mm: vmscan: simplify lruvec_lru_size()

2019-06-03 Thread Johannes Weiner
This function currently takes the node or lruvec size and subtracts the zones that are excluded by the classzone index of the allocation. It uses four different types of counters to do this. Just add up the eligible zones. Signed-off-by: Johannes Weiner --- mm/vmscan.c | 19 +--

[PATCH 07/11] mm: vmscan: split shrink_node() into node part and memcgs part

2019-06-03 Thread Johannes Weiner
This function is getting long and unwieldy. The new shrink_node() handles the generic (node) reclaim aspects: - global vmpressure notifications - writeback and congestion throttling - reclaim/compaction management - kswapd giving up on unreclaimable nodes It then calls

Re: [PATCH net-next v1 0/6] Add MT7629 ethernet support

2019-06-03 Thread David Miller
From: Date: Sat, 1 Jun 2019 08:03:09 +0800 > From: Sean Wang > > MT7629 inlcudes two sets of SGMIIs used for external switch or PHY, and > embedded > switch (ESW) via GDM1, GePHY via GMAC2, so add several patches in the series > to > make the code base common with the old SoCs. > > The

Re: linux-next: runtime failure of next-20190603

2019-06-03 Thread Dave Hansen
On 6/2/19 11:22 PM, Stephen Rothwell wrote: > My qemu powerpc_pseries_le_defconfig boots failed today with the > following output at shutdown time: ... > [ 32.112430] NIP [c0bbeb38] xas_load+0x8/0xd0 ... > Reverting commit > > fa858b6eec3f ("XArray: Add xas_replace") > > made the

Re: [RFC PATCH 3/9] x86/sgx: Allow userspace to add multiple pages in single ioctl()

2019-06-03 Thread Sean Christopherson
On Mon, Jun 03, 2019 at 01:14:45PM -0700, Dave Hansen wrote: > On 5/31/19 4:31 PM, Sean Christopherson wrote: > > -struct sgx_enclave_add_page { > > +struct sgx_enclave_add_pages { > > __u64 addr; > > __u64 src; > > __u64 secinfo; > > + __u32 nr_pages; > > __u16 mrmask;

[PATCH 00/11] mm: fix page aging across multiple cgroups

2019-06-03 Thread Johannes Weiner
When applications are put into unconfigured cgroups for memory accounting purposes, the cgrouping itself should not change the behavior of the page reclaim code. We expect the VM to reclaim the coldest pages in the system. But right now the VM can reclaim hot pages in one cgroup while there is

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

2019-06-03 Thread Enric Balletbo i Serra
Nick, On 3/6/19 20:16, Raul E Rangel wrote: > 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 <== >

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