[Patch v4 0/2] Add compile time sanity check of GENMASK inputs

2019-10-09 Thread Rikard Falkeborn
Hello, Add build time validity checks of GENMASK (and GENMASK_ULL) inputs. The main differences from v3: - Patch v3 1/3 was merged into Linus tree through the x86 tree and is not part of this series any longer. - Disable the input check for GCC < 4.9 due to a gcc bug. Joe Perches sent a patch

Re: [PATCH 3/4] media: af9035: add support for Logilink VG0022A

2019-10-09 Thread Gon Solo
> This it930x-based device has an issue with si2068. > > When the si2168 firmware that came with the device is replaced > by a new one, any I2C data received from the tuner will be > replaced by 0xff. > > Probably, the vendor firmware has some patch specifically > designed for this device. So,

Re: [PATCH AUTOSEL 5.3 28/68] KVM: x86: Expose XSAVEERPTR to the guest

2019-10-09 Thread Sebastian Andrzej Siewior
On 2019-10-09 23:15:07 [+0200], Paolo Bonzini wrote: > > --- a/arch/x86/kvm/cpuid.c > > +++ b/arch/x86/kvm/cpuid.c > > @@ -479,6 +479,7 @@ static inline int __do_cpuid_func(struct > > kvm_cpuid_entry2 *entry, u32 function, > > > > /* cpuid 0x8008.ebx */ > > const u32

[PATCH v2] staging: qlge: correct a misspelled word

2019-10-09 Thread Jules Irenge
Fix a misspelling of "several" detected by checkpatch Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c index 5599525a19d5..28fc974ce982 100644 ---

Re: [PATCH v3 1/2] tpm: Use GFP_KERNEL for allocating struct tpm_buf

2019-10-09 Thread Jarkko Sakkinen
On Mon, Oct 07, 2019 at 12:12:08PM -0700, James Bottomley wrote: > From: James Bottomley > Subject: [PATCH] tpm: use GFP kernel for tpm_buf allocations > > The current code uses GFP_HIGHMEM, which is wrong because GFP_HIGHMEM > (on 32 bit systems) is memory ordinarily inaccessible to the kernel

Re: [PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-10-09 Thread Sean Christopherson
On Wed, Oct 09, 2019 at 10:59:10PM +0200, Paolo Bonzini wrote: > On 09/10/19 18:38, Sean Christopherson wrote: > > On Wed, Oct 09, 2019 at 12:40:53PM +0200, Paolo Bonzini wrote: > >> On 27/09/19 23:45, Sean Christopherson wrote: > >>> Rework vmx_set_rflags() to avoid the extra code need to handle

"reuse mergeable anon_vma as parent when fork" causes a crash on s390

2019-10-09 Thread Qian Cai
The linux-next commit "mm/rmap.c: reuse mergeable anon_vma as parent when fork" [1] causes a crash on s390 while compiling some C code. Reverted it fixes the issue. [1] https://lore.kernel.org/lkml/20191004160632.30251-1-richardw.y...@linux.intel.com/ 00: [  330.681233] vma 49a08008

[PATCH v4 3/3] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations

2019-10-09 Thread Jarkko Sakkinen
From: Vadim Sukhomlinov commit db4d8cb9c9f2af71c4d087817160d866ed572cc9 upstream TPM 2.0 Shutdown involve sending TPM2_Shutdown to TPM chip and disabling future TPM operations. TPM 1.2 behavior was different, future TPM operations weren't disabled, causing rare issues. This patch ensures that

[PATCH v4 1/3] tpm: migrate pubek_show to struct tpm_buf

2019-10-09 Thread Jarkko Sakkinen
commit da379f3c1db0c9a1fd27b11d24c9894b5edc7c75 upstream Migrated pubek_show to struct tpm_buf and cleaned up its implementation. Previously the output parameter structure was declared but left completely unused. Now it is used to refer different fields of the output. We can move it to

[PATCH v4 2/3] tpm: use tpm_try_get_ops() in tpm-sysfs.c.

2019-10-09 Thread Jarkko Sakkinen
commit 2677ca98ae377517930c183248221f69f771c921 upstream Use tpm_try_get_ops() in tpm-sysfs.c so that we can consider moving other decorations (locking, localities, power management for example) inside it. This direction can be of course taken only after other call sites for tpm_transmit() have

[PATCH v4 0/3] tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations

2019-10-09 Thread Jarkko Sakkinen
commit db4d8cb9c9f2af71c4d087817160d866ed572cc9 upstream This backport is for v4.14 and v4.19 The backport requires non-racy behaviour from TPM 1.x sysfs code. Thus, the dependecies for that are included. NOTE: 1/3 is only needed for v4.14. v4: * There was unnecessary assignment inside

[PATCH] rcu: avoid data-race in rcu_gp_fqs_check_wake()

2019-10-09 Thread Eric Dumazet
rcu_gp_fqs_check_wake() uses rcu_preempt_blocked_readers_cgp() to read ->gp_tasks while otehr cpus might write over this field. We need READ_ONCE()/WRITE_ONCE() pairs to avoid compiler tricks and KCSAN splats like the following : BUG: KCSAN: data-race in rcu_gp_fqs_check_wake /

Re: [PATCH 2/2] firmware: coreboot: Export active CBFS partition

2019-10-09 Thread Julius Werner
> Somehow we've gotten /sys/firmware/log to be the coreboot log, and quite > frankly that blows my mind that this path was accepted upstream. > Userspace has to know it's running on coreboot firmware to know that > /sys/firmware/log is actually the coreboot log. Not really sure I understand your

[PATCH] fs: annotate refault stalls from bdev_read_page

2019-10-09 Thread Minchan Kim
From: Minchan Kim If block device supports rw_page operation, it doesn't submit bio so annotation in submit_bio for refault stall doesn't work. It happens with zram in android, especially swap read path which could consume CPU cycle for decompress. Annotate bdev_read_page() to account the

Re: [PATCH v18 01/14] bitops: Introduce the for_each_set_clump8 macro

2019-10-09 Thread Andrew Morton
On Wed, 9 Oct 2019 13:14:37 -0400 William Breathitt Gray wrote: > This macro iterates for each 8-bit group of bits (clump) with set bits, > within a bitmap memory region. For each iteration, "start" is set to the > bit offset of the found clump, while the respective clump value is > stored to

Re: [PATCH AUTOSEL 5.3 28/68] KVM: x86: Expose XSAVEERPTR to the guest

2019-10-09 Thread Paolo Bonzini
On 09/10/19 19:05, Sasha Levin wrote: > From: Sebastian Andrzej Siewior > > [ Upstream commit 504ce1954fba888936c9d13ccc1e3db9b8f613d5 ] > > I was surprised to see that the guest reported `fxsave_leak' while the > host did not. After digging deeper I noticed that the bits are simply > masked

Re: [PATCH 11/16] x86/cpu: Print VMX features as separate line item in /proc/cpuinfo

2019-10-09 Thread Paolo Bonzini
On 09/10/19 21:16, Sean Christopherson wrote: > On Tue, Oct 08, 2019 at 08:57:30AM +0200, Paolo Bonzini wrote: >> On 07/10/19 21:56, Sean Christopherson wrote: >>> On Mon, Oct 07, 2019 at 07:12:37PM +0200, Paolo Bonzini wrote: On 04/10/19 23:56, Sean Christopherson wrote: > diff --git

Re: For review: rewritten pivot_root(2) manual page

2019-10-09 Thread Michael Kerrisk (man-pages)
Hello Eric, On 10/9/19 6:00 PM, Eric W. Biederman wrote: > "Michael Kerrisk (man-pages)" writes: > >> Hello Eric, >> >> Thank you. I was hoping you might jump in on this thread. >> >> Please see below. >> >> On 10/9/19 10:46 AM, Eric W. Biederman wrote: >>> "Michael Kerrisk (man-pages)"

[PATCH net-next v7 06/17] ethtool: netlink bitset handling

2019-10-09 Thread Michal Kubecek
The ethtool netlink code uses common framework for passing arbitrary length bit sets to allow future extensions. A bitset can be a list (only one bitmap) or can consist of value and mask pair (used e.g. when client want to modify only some bits). A bitset can use one of two formats: verbose (bit

[PATCH net-next v7 14/17] ethtool: set link settings with LINKINFO_SET request

2019-10-09 Thread Michal Kubecek
Implement LINKINFO_SET netlink request to set link settings queried by LINKINFO_GET message. Only physical port, phy MDIO address and MDI(-X) control can be set, attempt to modify MDI(-X) status and transceiver is rejected. When any data is modified, ETHTOOL_MSG_LINKINFO_NTF message in the same

[PATCH net-next v7 10/17] ethtool: provide string sets with STRSET_GET request

2019-10-09 Thread Michal Kubecek
Requests a contents of one or more string sets, i.e. indexed arrays of strings; this information is provided by ETHTOOL_GSSET_INFO and ETHTOOL_GSTRINGS commands of ioctl interface. Unlike ioctl interface, all information can be retrieved with one request and mulitple string sets can be requested

[PATCH net-next v7 16/17] ethtool: set link modes related data with LINKMODES_SET request

2019-10-09 Thread Michal Kubecek
Implement LINKMODES_SET netlink request to set advertised linkmodes and related attributes as ETHTOOL_SLINKSETTINGS and ETHTOOL_SSET commands do. The request allows setting autonegotiation flag, speed, duplex and advertised link modes. When any data is modified, ETHTOOL_MSG_LINKMODES_NTF message

[PATCH net-next v7 12/17] ethtool: provide link settings with LINKINFO_GET request

2019-10-09 Thread Michal Kubecek
Implement LINKINFO_GET netlink request to get basic link settings provided by ETHTOOL_GLINKSETTINGS and ETHTOOL_GSET ioctl commands. This request provides settings not directly related to autonegotiation and link mode selection: physical port, phy MDIO address, MDI(-X) status, MDI(-X) control and

[PATCH net-next v7 17/17] ethtool: provide link state with LINKSTATE_GET request

2019-10-09 Thread Michal Kubecek
Implement LINKSTATE_GET netlink request to get link state information. At the moment, only link up flag as provided by ETHTOOL_GLINK ioctl command is returned. LINKSTATE_GET request can be used with NLM_F_DUMP (without device identification) to request the information for all devices in current

[PATCH net-next v7 08/17] ethtool: move string arrays into common file

2019-10-09 Thread Michal Kubecek
Introduce file net/ethtool/common.c for code shared by ioctl and netlink ethtool interface. Move name tables of features, RSS hash functions, tunables and PHY tunables into this file. Signed-off-by: Michal Kubecek --- net/ethtool/Makefile | 2 +- net/ethtool/common.c | 85

[PATCH net-next v7 13/17] ethtool: add standard notification handler

2019-10-09 Thread Michal Kubecek
The ethtool netlink notifications have the same format as related GET replies so that if generic GET handling framework is used to process GET requests, its callbacks and instance of struct get_request_ops can be also used to compose corresponding notification message. Provide function

[PATCH net-next v7 11/17] ethtool: provide link mode names as a string set

2019-10-09 Thread Michal Kubecek
Unlike e.g. netdev features, the ethtool ioctl interface requires link mode table to be in sync between kernel and userspace for userspace to be able to display and set all link modes supported by kernel. The way arbitrary length bitsets are implemented in netlink interface, this is no longer

[PATCH net-next v7 15/17] ethtool: provide link mode information with LINKMODES_GET request

2019-10-09 Thread Michal Kubecek
Implement LINKMODES_GET netlink request to get link modes related information provided by ETHTOOL_GLINKSETTINGS and ETHTOOL_GSET ioctl commands. This request provides supported, advertised and peer advertised link modes, autonegotiation flag, speed and duplex. LINKMODES_GET request can be used

[PATCH net-next v7 09/17] ethtool: generic handlers for GET requests

2019-10-09 Thread Michal Kubecek
Significant part of GET request processing is common for most request types but unfortunately it cannot be easily separated from type specific code as we need to alternate between common actions (parsing common request header, allocating message and filling netlink/genetlink headers etc.) and

[PATCH net-next v7 07/17] ethtool: support for netlink notifications

2019-10-09 Thread Michal Kubecek
Add infrastructure for ethtool netlink notifications. There is only one multicast group "monitor" which is used to notify userspace about changes and actions performed. Notification messages (types using suffix _NTF) share the format with replies to GET requests. Notifications are supposed to be

[PATCH net-next v7 05/17] ethtool: helper functions for netlink interface

2019-10-09 Thread Michal Kubecek
Add common request/reply header definition and helpers to parse request header and fill reply header. Provide ethnl_update_* helpers to update structure members from request attributes (to be used for *_SET requests). Signed-off-by: Michal Kubecek --- include/uapi/linux/ethtool_netlink.h | 22

[PATCH net-next v7 03/17] ethtool: move to its own directory

2019-10-09 Thread Michal Kubecek
The ethtool netlink interface is going to be split into multiple files so that it will be more convenient to put all of them in a separate directory net/ethtool. Start by moving current ethtool.c with ioctl interface into this directory and renaming it to ioctl.c. Signed-off-by: Michal Kubecek

[PATCH net-next v7 02/17] netlink: rename nl80211_validate_nested() to nla_validate_nested()

2019-10-09 Thread Michal Kubecek
Function nl80211_validate_nested() is not specific to nl80211, it's a counterpart to nla_validate_nested_deprecated() with strict validation. For consistency with other validation and parse functions, rename it to nla_validate_nested(). Signed-off-by: Michal Kubecek Acked-by: Jiri Pirko

[PATCH net-next v7 01/17] rtnetlink: provide permanent hardware address in RTM_NEWLINK

2019-10-09 Thread Michal Kubecek
Permanent hardware address of a network device was traditionally provided via ethtool ioctl interface but as Jiri Pirko pointed out in a review of ethtool netlink interface, rtnetlink is much more suitable for it so let's add it to the RTM_NEWLINK message. Add IFLA_PERM_ADDRESS attribute to

[PATCH net-next v7 04/17] ethtool: introduce ethtool netlink interface

2019-10-09 Thread Michal Kubecek
Basic genetlink and init infrastructure for the netlink interface, register genetlink family "ethtool". Add CONFIG_ETHTOOL_NETLINK Kconfig option to make the build optional. Add initial overall interface description into Documentation/networking/ethtool-netlink.rst, further patches will add more

[PATCH net-next v7 00/17] ethtool netlink interface, part 1

2019-10-09 Thread Michal Kubecek
This is first part of netlink based alternative userspace interface for ethtool. It aims to address some long known issues with the ioctl interface, mainly lack of extensibility, raciness, limited error reporting and absence of notifications. The goal is to allow userspace ethtool utility to

Re: [PATCH v2 4/8] KVM: VMX: Optimize vmx_set_rflags() for unrestricted guest

2019-10-09 Thread Paolo Bonzini
On 09/10/19 18:38, Sean Christopherson wrote: > On Wed, Oct 09, 2019 at 12:40:53PM +0200, Paolo Bonzini wrote: >> On 27/09/19 23:45, Sean Christopherson wrote: >>> Rework vmx_set_rflags() to avoid the extra code need to handle emulation >>> of real mode and invalid state when unrestricted guest is

Re: [PATCH AUTOSEL 4.19 08/26] kvm: x86: Improve emulation of CPUID leaves 0BH and 1FH

2019-10-09 Thread Paolo Bonzini
On 09/10/19 19:05, Sasha Levin wrote: > From: Jim Mattson > > [ Upstream commit 43561123ab3759eb6ff47693aec1a307af0aef83 ] > > For these CPUID leaves, the EDX output is not dependent on the ECX > input (i.e. the SIGNIFCANT_INDEX flag doesn't apply to > EDX). Furthermore, the low byte of the ECX

Re: [RFC PATCH v3 4/6] psci: Add hvc call service for ptp_kvm.

2019-10-09 Thread Paolo Bonzini
On 09/10/19 18:05, John Stultz wrote: > On Wed, Oct 9, 2019 at 2:13 AM Paolo Bonzini wrote: >> John (Stultz), does that sound good to you? The context is that >> Jianyong would like to add a hypercall that returns a (cycles, >> nanoseconds) pair to the guest. On x86 we're relying on the

linux-next: Signed-off-by missing for commit in the nfs-anna tree

2019-10-09 Thread Stephen Rothwell
Hi all, Commit cb6aed8363f9 ("SUNRPC: fix race to sk_err after xs_error_report") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpV3lpP51YEk.pgp Description: OpenPGP digital signature

Re: [Outreachy kernel] [PATCH] staging: qlge: correct misspelled word

2019-10-09 Thread Julia Lawall
On Wed, 9 Oct 2019, Jules Irenge wrote: > Correct misspelled word " check Why is there a " in the above line? You don't need to put a newline after check. > issued by checkpatch.pl tool: > "CHECK: serveral may be misspelled - perhaps several?". It's not reall necessary to give the

Re: [PATCH AUTOSEL 4.19 26/26] Make filldir[64]() verify the directory entry filename is valid

2019-10-09 Thread Sasha Levin
On Wed, Oct 09, 2019 at 10:56:56AM -0700, Linus Torvalds wrote: On Wed, Oct 9, 2019 at 10:24 AM Sasha Levin wrote: From: Linus Torvalds [ Upstream commit 8a23eb804ca4f2be909e372cf5a9e7b30ae476cd ] I didn't mark this for stable because I expect things to still change - particularly the

Re: [Outreachy kernel] [PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each

2019-10-09 Thread Julia Lawall
On Wed, 9 Oct 2019, Jules Irenge wrote: > Fix multiple assignments warning " check > issued by checkpatch.pl tool: > "CHECK: multiple assignments should be avoided". > > Signed-off-by: Jules Irenge > --- > drivers/staging/qlge/qlge_dbg.c | 6 -- > 1 file changed, 4 insertions(+), 2

Re: [PATCH v11 04/16] leds: multicolor: Introduce a multicolor class definition

2019-10-09 Thread Dan Murphy
Bjorn On 10/9/19 3:11 PM, Bjorn Andersson wrote: On Tue, Oct 8, 2019 at 1:49 PM Dan Murphy wrote: 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

[PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each

2019-10-09 Thread Jules Irenge
Fix multiple assignments warning " check issued by checkpatch.pl tool: "CHECK: multiple assignments should be avoided". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/qlge/qlge_dbg.c

[PATCH v4 bpf-next 02/15] samples/bpf: fix cookie_uid_helper_example obj build

2019-10-09 Thread Ivan Khoronzhuk
Don't list userspace "cookie_uid_helper_example" object in list for bpf objects. 'always' target is used for listing bpf programs, but 'cookie_uid_helper_example.o' is a user space ELF file, and covered by rule `per_socket_stats_example`, so shouldn't be in 'always'. Let us remove `always +=

[PATCH v4 bpf-next 01/15] samples/bpf: fix HDR_PROBE "echo"

2019-10-09 Thread Ivan Khoronzhuk
echo should be replaced with echo -e to handle '\n' correctly, but instead, replace it with printf as some systems can't handle echo -e. Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bpf/Makefile

[PATCH v4 bpf-next 08/15] samples/bpf: base target programs rules on Makefile.target

2019-10-09 Thread Ivan Khoronzhuk
The main reason for that - HOSTCC and CC have different aims. HOSTCC is used to build programs running on host, that can cross-comple target programs with CC. It was tested for arm and arm64 cross compilation, based on linaro toolchain, but should work for others. So, in order to split cross

[PATCH v4 bpf-next 05/15] samples/bpf: use __LINUX_ARM_ARCH__ selector for arm

2019-10-09 Thread Ivan Khoronzhuk
For arm, -D__LINUX_ARM_ARCH__=X is min version used as instruction set selector and is absolutely required while parsing some parts of headers. It's present in KBUILD_CFLAGS but not in autoconf.h, so let's retrieve it from and add to programs cflags. In another case errors like "SMP is not

[PATCH v4 bpf-next 06/15] samples/bpf: drop unnecessarily inclusion for bpf_load

2019-10-09 Thread Ivan Khoronzhuk
Drop inclusion for bpf_load -I$(objtree)/usr/include as it is included for all objects anyway, with above line: KBUILD_HOSTCFLAGS += -I$(objtree)/usr/include Acked-by: Andrii Nakryiko Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v4 bpf-next 07/15] samples/bpf: add makefile.target for separate CC target build

2019-10-09 Thread Ivan Khoronzhuk
The Makefile.target is added only and will be used in sample/bpf/Makefile later in order to switch cross-compiling to CC from HOSTCC environment. The HOSTCC is supposed to build binaries and tools running on the host afterwards, in order to simplify build or so, like "fixdep" or else. In case of

[PATCH v4 bpf-next 15/15] samples/bpf: add preparation steps and sysroot info to readme

2019-10-09 Thread Ivan Khoronzhuk
Add couple preparation steps: clean and configuration. Also add newly added sysroot support info to cross-compile section. --- samples/bpf/README.rst | 41 - 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/samples/bpf/README.rst

[PATCH v4 bpf-next 14/15] samples/bpf: add sysroot support

2019-10-09 Thread Ivan Khoronzhuk
Basically it only enables that was added by previous couple fixes. Sysroot contains correct libs installed and its headers. Useful when working with NFC or virtual machine. Usage example: clean (on demand) make ARCH=arm -C samples/bpf clean make ARCH=arm -C tools clean make ARCH=arm

[PATCH v4 bpf-next 12/15] libbpf: add C/LDFLAGS to libbpf.so and test_libpf targets

2019-10-09 Thread Ivan Khoronzhuk
In case of C/LDFLAGS there is no way to pass them correctly to build command, for instance when --sysroot is used or external libraries are used, like -lelf, wich can be absent in toolchain. This can be used for samples/bpf cross-compiling allowing to get elf lib from sysroot. Signed-off-by: Ivan

[PATCH v4 bpf-next 13/15] samples/bpf: provide C/LDFLAGS to libbpf

2019-10-09 Thread Ivan Khoronzhuk
In order to build lib using C/LD flags of target arch, provide them to libbpf make. Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index a6c33496e8ca..6b161326ac67 100644

[PATCH v4 bpf-next 10/15] samples/bpf: use target CC environment for HDR_PROBE

2019-10-09 Thread Ivan Khoronzhuk
No need in hacking HOSTCC to be cross-compiler any more, so drop this trick and use target CC for HDR_PROBE. Acked-by: Andrii Nakryiko Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/samples/bpf/Makefile

[PATCH v4 bpf-next 11/15] libbpf: don't use cxx to test_libpf target

2019-10-09 Thread Ivan Khoronzhuk
No need to use C++ for test_libbpf target when libbpf is on C and it can be tested with C, after this change the CXXFLAGS in makefiles can be avoided, at least in bpf samples, when sysroot is used, passing same C/LDFLAGS as for lib. Add "return 0" in test_libbpf to void warn, but also remove

[PATCH v4 bpf-next 09/15] samples/bpf: use own flags but not HOSTCFLAGS

2019-10-09 Thread Ivan Khoronzhuk
While compiling natively, the host's cflags and ldflags are equal to ones used from HOSTCFLAGS and HOSTLDFLAGS. When cross compiling it should have own, used for target arch. While verification, for arm, arm64 and x86_64 the following flags were used always: -Wall -O2 -fomit-frame-pointer

[PATCH v4 bpf-next 03/15] samples/bpf: use --target from cross-compile

2019-10-09 Thread Ivan Khoronzhuk
For cross compiling the target triple can be inherited from cross-compile prefix as it's done in CLANG_FLAGS from kernel makefile. So copy-paste this decision from kernel Makefile. Acked-by: Andrii Nakryiko Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 2 +- 1 file changed, 1

[PATCH v4 bpf-next 00/15] samples: bpf: improve/fix cross-compilation

2019-10-09 Thread Ivan Khoronzhuk
This series contains mainly fixes/improvements for cross-compilation but not only, tested for arm, arm64, and intended for any arch. Also verified on native build (not cross compilation) for x86_64 and arm, arm64. Initial RFC link: https://lkml.org/lkml/2019/8/29/1665 Prev. version:

[PATCH v4 bpf-next 04/15] samples/bpf: use own EXTRA_CFLAGS for clang commands

2019-10-09 Thread Ivan Khoronzhuk
It can overlap with CFLAGS used for libraries built with gcc if not now then in next patches. Correct it here for simplicity. Acked-by: Andrii Nakryiko Signed-off-by: Ivan Khoronzhuk --- samples/bpf/Makefile | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 3/3] Input: mms114 - add support for mms345l

2019-10-09 Thread Dmitry Torokhov
On Wed, Oct 09, 2019 at 10:26:12AM +0300, Andi Shyti wrote: > Hi Dmitry, > > > > There was a related patch [2] that removes I2C_M_NOSTART for all models, > > > but it seems abandoned and I do not have any other model for testing. > > > Therefore, this patch implements the least instrusive

[PATCH RFC] perf_event: Add support for LSM and SELinux checks

2019-10-09 Thread Joel Fernandes (Google)
In currentl mainline, the degree of access to perf_event_open(2) system call depends on the perf_event_paranoid sysctl. This has a number of limitations: 1. The sysctl is only a single value. Many types of accesses are controlled based on the single value thus making the control very limited

Re: [PATCH v4 3/9] mm: pagewalk: Don't split transhuge pmds when a pmd_entry is present

2019-10-09 Thread Linus Torvalds
On Wed, Oct 9, 2019 at 1:06 PM Thomas Hellström (VMware) wrote: > > On 10/9/19 9:20 PM, Linus Torvalds wrote: > > > > Don't you get it? There *is* no PTE level if you didn't split. > > Hmm, This paragraph makes me think we have very different perceptions about > what I'm trying to achieve. It's

Re: Kernel Concurrency Sanitizer (KCSAN)

2019-10-09 Thread Andrea Parri
On Wed, Oct 09, 2019 at 09:45:50AM +0200, Dmitry Vyukov wrote: > On Sat, Oct 5, 2019 at 6:16 AM Dmitry Vyukov wrote: > > > > On Sat, Oct 5, 2019 at 2:58 AM Eric Dumazet wrote: > > > > This one is tricky. What I think we need to avoid is an onslaught of > > > > patches adding READ_ONCE/WRITE_ONCE

Re: Serial 8250 DMA Broken on OMAP3630

2019-10-09 Thread Tony Lindgren
* Adam Ford [191009 19:28]: > On Wed, Oct 9, 2019 at 12:34 PM Tony Lindgren wrote: > > From what I recall I tested that DMA on omap3 worked fine with runtime > > PM for console. Certainly there are issues still remaining though. > > > > If you want to disable dma for a specific port, just delete

Re: [PATCH v11 04/16] leds: multicolor: Introduce a multicolor class definition

2019-10-09 Thread Bjorn Andersson
On Tue, Oct 8, 2019 at 1:49 PM Dan Murphy wrote: > > 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

[PATCH] staging: qlge: Fix multiple assignments warning by splitting the assignement into two each

2019-10-09 Thread Jules Irenge
Fix multiple assignments warning " check issued by checkpatch.pl tool: "CHECK: multiple assignments should be avoided". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/qlge/qlge_dbg.c

Re: string.h: Mark 34 functions with __must_check

2019-10-09 Thread Markus Elfring
> I'm curious. How many warnings showed up when you applied this patch? I suggest to take another look at six places in a specific source file (for example). https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/lib/test_kasan.c?id=b92a953cb7f727c42a15ac2ea59bf3cf9c39370d#n595

Re: [PATCH v4 3/9] mm: pagewalk: Don't split transhuge pmds when a pmd_entry is present

2019-10-09 Thread VMware
On 10/9/19 9:20 PM, Linus Torvalds wrote: No. Your logic is garbage. The above code is completely broken. YOU CAN NOT AVOID TRHE SPLIT AND THEN GO ON AT THE PTE LEVEL. Don't you get it? There *is* no PTE level if you didn't split. Hmm, This paragraph makes me think we have very different

[PATCH 2/3] PCI: pciehp: Wait for PDS if in-band presence is disabled

2019-10-09 Thread Stuart Hayes
From: Alexandru Gagniuc When inband presence is disabled, PDS may come up at any time, or not at all. PDS being low may indicate that the card is still mating, and we could expect contact bounce to bring down the link as well. It is reasonable to assume that most cards will mate in a hotplug

[PATCH 3/3] PCI: pciehp: Add dmi table for in-band presence disabled

2019-10-09 Thread Stuart Hayes
Some systems have in-band presence detection disabled for hot-plug PCI slots, but do not report this in the slot capabilities 2 (SLTCAP2) register. On these systems, presence detect can become active well after the link is reported to be active, which can cause the slots to be disabled after a

[PATCH 1/3] PCI: pciehp: Add support for disabling in-band presence

2019-10-09 Thread Stuart Hayes
From: Alexandru Gagniuc The presence detect state (PDS) is normally a logical or of in-band and out-of-band presence. As of PCIe 4.0, there is the option to disable in-band presence so that the PDS bit always reflects the state of the out-of-band presence. The recommendation of the PCIe spec is

[PATCH 0/3] PCI: pciehp: Do not turn off slot if presence comes up after link

2019-10-09 Thread Stuart Hayes
In older PCIe specs, PDS (presence detect) would come up when the "in-band" presence detect pin connected, and would be up before DLLLA (link active). In PCIe 4.0 (as an ECN) and in PCIe 5.0, there is a new bit to show if in-band presence detection can be disabled for the slot, and another bit

ATTN: My Dear

2019-10-09 Thread Mr David Nicholas
ATTN: My Dear Good news,The BRITISH HIGH COMMISSION has actually verified and discovered that your payment has been unnecessarily Delayed by corrupt officials of the Company who are Trying to divert your fund of $4,700.000.00 Million into their private accounts. Therefore we have obtained an

Re: [PATCH] PM / runtime: Add support for wake-up reason for wakeirqs

2019-10-09 Thread Tony Lindgren
* Alan Stern [191009 18:51]: > On Wed, 9 Oct 2019, Tony Lindgren wrote: > > > With generic wakeirqs we can wake a device, but do not know if the > > device woke to a wakeirq. Let's add pm_runtime_wakeup_is_wakeirq() so > > a device can check the wake-up reason. > > People have tried many times

Re: Lay common foundation to make PVR/SGX work without hacks on OMAP34xx, OMAP36xx, AM335x and potentially OMAP4, OMAP5

2019-10-09 Thread H. Nikolaus Schaller
> Am 09.10.2019 um 18:34 schrieb Tero Kristo : > > On 09/10/2019 17:23, H. Nikolaus Schaller wrote: >>> Am 09.10.2019 um 15:55 schrieb Tero Kristo : >>> >>> On 09/10/2019 15:53, H. Nikolaus Schaller wrote: > Am 08.10.2019 um 22:15 schrieb H. Nikolaus Schaller : > > > But I

[PATCH] ARM: configs: at91: unselect PIT

2019-10-09 Thread Alexandre Belloni
The PIT is not required anymore to successfully boot and may actually harm in case preempt-rt is used because the PIT interrupt is shared. Disable it so the TCB clocksource is used. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 1 + arch/arm/configs/sama5_defconfig

Re: [PATCH v11 0/6] mm / virtio: Provide support for unused page reporting

2019-10-09 Thread Nitesh Narayan Lal
On 10/9/19 12:35 PM, Alexander Duyck wrote: > On Wed, 2019-10-09 at 11:21 -0400, Nitesh Narayan Lal wrote: >> On 10/7/19 1:06 PM, Nitesh Narayan Lal wrote: >> [...] So what was the size of your guest? One thing that just occurred to me is that you might be running a much smaller guest

[PATCH] staging: qlge: fix "alignment should match open parenthesis" checks

2019-10-09 Thread Jules Irenge
Fix "alignment should mactch open parenthesis" checks issued by checkpatch.pl tool: "CHECK: Alignment should match open parenthesis". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 127 1 file changed, 64 insertions(+), 63 deletions(-) diff

[PATCH] riscv: dts: HiFive Unleashed: add default chosen/stdout-path

2019-10-09 Thread Paul Walmsley
Add a default "stdout-path" to the kernel DTS file, as is present in many of the board DTS files elsewhere in the kernel tree. With this line present, earlyconsole can be enabled by simply passing "earlycon" on the kernel command line. No specific device details are necessary, since the

[PATCH] staging: qlge: correct misspelled word

2019-10-09 Thread Jules Irenge
Correct misspelled word " check issued by checkpatch.pl tool: "CHECK: serveral may be misspelled - perhaps several?". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_dbg.c

Re: IOMMU vs Ryzen embedded EMMC controller

2019-10-09 Thread Suthikulpanit, Suravee
Hi, On 10/9/19 2:25 PM, Jiri Kosina wrote: > On Fri, 27 Sep 2019, Shah, Nehal-bakulchandra wrote: > > Do you have BAR memory allocation failures in dmesg with IOMMU on? >>> >>> No. The device is *not* treated as PCI device and I still think that >>> this is the source of the evil. >>> >

[PATCH] staging: qlge: correct misspelled word

2019-10-09 Thread Jules Irenge
Correct misspelled word " check issued by checkpatch.pl tool: "CHECK: serveral may be misspelled - perhaps several?". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_dbg.c

Re: [PATCH v9 2/7] nfc: pn532: Add uart phy docs and rename it

2019-10-09 Thread Rob Herring
On Tue, 8 Oct 2019 16:05:39 +0200, Lars Poeschel wrote: > This adds documentation about the uart phy to the pn532 binding doc. As > the filename "pn533-i2c.txt" is not appropriate any more, rename it to > the more general "pn532.txt". > This also documents the deprecation of the compatible

Re: [PATCH v3 0/8] sched/fair: rework the CFS load balance

2019-10-09 Thread Phil Auld
On Tue, Oct 08, 2019 at 05:53:11PM +0200 Vincent Guittot wrote: > Hi Phil, > ... > While preparing v4, I have noticed that I have probably oversimplified > the end of find_idlest_group() in patch "sched/fair: optimize > find_idlest_group" when it compares local vs the idlest other group. >

Re: [PATCH v6 10/43] compat_ioctl: move rtc handling into rtc-dev.c

2019-10-09 Thread Arnd Bergmann
On Wed, Oct 9, 2019 at 9:25 PM Alexandre Belloni wrote: > > If you ever have to resend, the file is now named rtc/dev.c so you could > adjust the subject. Ok, I fixed up my local copy. Arnd

Re: [GIT PULL] arm64: Fixes for -rc3

2019-10-09 Thread pr-tracker-bot
The pull request you sent on Wed, 9 Oct 2019 14:30:54 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git tags/arm64-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e60329c97b9cc07ce15e3c39fc42e57bf14add92 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] Please pull RDMA subsystem changes

2019-10-09 Thread pr-tracker-bot
The pull request you sent on Wed, 9 Oct 2019 14:28:15 +: > git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8a8c600de5dc1d9a7f4b83269fddc80ebd3dd045 Thank you! -- Deet-doot-dot, I am a

Re: Serial 8250 DMA Broken on OMAP3630

2019-10-09 Thread Adam Ford
On Wed, Oct 9, 2019 at 12:34 PM Tony Lindgren wrote: > > * Adam Ford [191009 14:09]: > > On Wed, Oct 9, 2019 at 8:42 AM Vignesh Raghavendra wrote: > > > > > > Hi Adam, > > > > > > On 06/10/19 10:34 PM, Adam Ford wrote: > > > > Has anyone else had any issues using the CONFIG_SERIAL_8250_DMA on

Re: IOMMU vs Ryzen embedded EMMC controller

2019-10-09 Thread Jiri Kosina
On Fri, 27 Sep 2019, Shah, Nehal-bakulchandra wrote: > >>> Do you have BAR memory allocation failures in dmesg with IOMMU on? > > > > No. The device is *not* treated as PCI device and I still think that > > this is the source of the evil. > > > >>> Actually, sharing both working and

[PATCH v9 08/12] nvmet-tcp: don't check data_len in nvmet_tcp_map_data()

2019-10-09 Thread Logan Gunthorpe
With passthru, the data_len is no longer guaranteed to be set for all requests. Therefore, we should not check for it to be non-zero. Instead check if the SGL length is zero and map when appropriate. None of the other transports check data_len which is verified in core code. Signed-off-by: Logan

Re: [PATCH v6 10/43] compat_ioctl: move rtc handling into rtc-dev.c

2019-10-09 Thread Alexandre Belloni
Hi, If you ever have to resend, the file is now named rtc/dev.c so you could adjust the subject. On 09/10/2019 21:10:10+0200, Arnd Bergmann wrote: > We no longer need the rtc compat handling to be in common code, now that > all drivers are either moved to the rtc-class framework, or (rarely) >

[PATCH] xtensa: fix {get,put}_user() for 64bit values

2019-10-09 Thread Al Viro
First of all, on short copies __copy_{to,from}_user() return the amount of bytes left uncopied, *not* -EFAULT. get_user() and put_user() are expected to return -EFAULT on failure. Another problem is get_user(v32, (__u64 __user *)p); that should fetch 64bit value and the assign it to v32,

Re: [PATCH v4 3/9] mm: pagewalk: Don't split transhuge pmds when a pmd_entry is present

2019-10-09 Thread Linus Torvalds
On Wed, Oct 9, 2019 at 11:52 AM Thomas Hellstrom wrote: > > Hmm, so we have the following cases we need to handle when returning > from the pmd_entry() handler. No, we really don't. > 1) Huge pmd was handled - Returns 0 and continues. No. That case simply DOES NOT EXIST. The only case that

[PATCH] staging: qlge: fix "alignment should match open parenthesis" checks

2019-10-09 Thread Jules Irenge
Fix "alignment should mactch open parenthesis" checks issued by checkpatch.pl tool: "CHECK: Alignment should match open parenthesis". Signed-off-by: Jules Irenge --- drivers/staging/qlge/qlge_dbg.c | 127 1 file changed, 64 insertions(+), 63 deletions(-) diff

Re: [PATCH v3 1/2] dt-bindings: edac: al-mc-edac: Amazon's Annapurna Labs Memory Controller EDAC

2019-10-09 Thread Rob Herring
On Thu, Oct 03, 2019 at 02:49:22PM +0300, Talel Shenhar wrote: > Document Amazon's Annapurna Labs Memory Controller EDAC SoC binding. > > Signed-off-by: Talel Shenhar > --- > .../bindings/edac/amazon,al-mc-edac.yaml | 40 > ++ > 1 file changed, 40 insertions(+) >

Re: [PATCH 11/16] x86/cpu: Print VMX features as separate line item in /proc/cpuinfo

2019-10-09 Thread Sean Christopherson
On Tue, Oct 08, 2019 at 08:57:30AM +0200, Paolo Bonzini wrote: > On 07/10/19 21:56, Sean Christopherson wrote: > > On Mon, Oct 07, 2019 at 07:12:37PM +0200, Paolo Bonzini wrote: > >> On 04/10/19 23:56, Sean Christopherson wrote: > >>> diff --git a/arch/x86/kernel/cpu/proc.c

[PATCH v6 06/43] compat_sys_ioctl(): make parallel to do_vfs_ioctl()

2019-10-09 Thread Arnd Bergmann
From: Al Viro Handle ioctls that might be handled without reaching ->ioctl() in native case on the top level there. The counterpart of vfs_ioctl() (i.e. calling ->unlock_ioctl(), etc.) left as-is; eventually that would turn simply into the call of ->compat_ioctl(), but that'll take more work.

[PATCH v6 01/43] fix compat handling of FICLONERANGE, FIDEDUPERANGE and FS_IOC_FIEMAP

2019-10-09 Thread Arnd Bergmann
From: Al Viro Unlike FICLONE, all of those take a pointer argument; they do need compat_ptr() applied to arg. Fixes: d79bdd52d8be ("vfs: wire up compat ioctl for CLONE/CLONE_RANGE") Fixes: 54dbc1517237 ("vfs: hoist the btrfs deduplication ioctl to the vfs") Fixes: ceac204e1da9 ("fs: make fiemap

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