[PATCH 1/4] arm64: module: create module allocations without exec permissions

2019-05-23 Thread Ard Biesheuvel
Now that the core code manages the executable permissions of code regions of modules explicitly, it is no longer necessary to create the module vmalloc regions with RWX permissions, and we can create them with RW- permissions instead, which is preferred from a security perspective. Signed-off-by:

Re: [PATCH v1 1/3] x86/cpu: Create Zhaoxin processors architecture support file

2019-05-23 Thread gre...@linuxfoundation.org
On Thu, May 23, 2019 at 10:10:52AM +, TonyWWang-oc wrote: > Add x86 architecture support for new Zhaoxin processors. > Carve out initialization code needed by Zhaoxin processors into > a separate compilation unit. > > To identify Zhaoxin CPU, add a new vendor type X86_VENDOR_ZHAOXIN > for syst

[PATCH 4/4] arm64: bpf: do not allocate executable memory

2019-05-23 Thread Ard Biesheuvel
The BPF code now takes care of mapping the code pages executable after mapping them read-only, to ensure that no RWX mapped regions are needed, even transiently. This means we can drop the executable permissions from the mapping at allocation time. Signed-off-by: Ard Biesheuvel --- arch/arm64/ne

Re: [PATCH] fanotify: remove redundant capable(CAP_SYS_ADMIN)s

2019-05-23 Thread Amir Goldstein
On Thu, May 23, 2019 at 12:55 PM Christian Brauner wrote: > > On Wed, May 22, 2019 at 11:00:22PM +0300, Amir Goldstein wrote: > > On Wed, May 22, 2019 at 9:57 PM Christian Brauner > > wrote: > > > > > > On May 22, 2019 8:29:37 PM GMT+02:00, Amir Goldstein > > > wrote: > > > >On Wed, May 22, 20

[PATCH] powerpc: Remove variable ‘path’ since not used

2019-05-23 Thread Mathieu Malaterre
In commit eab00a208eb6 ("powerpc: Move `path` variable inside DEBUG_PROM") DEBUG_PROM sentinels were added to silence a warning (treated as error with W=1): arch/powerpc/kernel/prom_init.c:1388:8: error: variable ‘path’ set but not used [-Werror=unused-but-set-variable] Rework the original pat

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

2019-05-23 Thread Jarkko Sakkinen
On Wed, May 22, 2019 at 07:35:17PM -0700, Sean Christopherson wrote: > But actually, there's no need to disallow mmap() after ECREATE since the > LSM checks also apply to mmap(), e.g. FILE__EXECUTE would be needed to > mmap() any enclave pages PROT_EXEC. I guess my past self thought mmap() > bypas

Re: [PATCH 4.19 144/187] selftests/bpf: skip verifier tests for unsupported program types

2019-05-23 Thread Rantala, Tommi T. (Nokia - FI/Espoo)
On Thu, 2019-04-04 at 10:48 +0200, Greg Kroah-Hartman wrote: > 4.19-stable review patch. If anyone has any objections, please let > me know. > > -- > > [ Upstream commit 8184d44c9a577a2f1842ed6cc844bfd4a9981d8e ] > > Use recently introduced bpf_probe_prog_type() to skip tests in

Re: [PATCH 00/18] locking/atomic: atomic64 type cleanup

2019-05-23 Thread Mark Rutland
On Wed, May 22, 2019 at 11:18:59PM +0200, Arnd Bergmann wrote: > On Wed, May 22, 2019 at 3:23 PM Mark Rutland wrote: > > > > Currently architectures return inconsistent types for atomic64 ops. Some > > return > > long (e..g. powerpc), some return long long (e.g. arc), and some return s64 > > (e.g

Re: [PATCH v2] tipc: Avoid copying bytes beyond the supplied data

2019-05-23 Thread Ying Xue
On 5/23/19 4:46 AM, Chris Packham wrote: > On most distros that is generated from include/uapi in the kernel source > and packaged as part of libc or a kernel-headers package. So once this > patch is accepted and makes it into the distros > /usr/include/linux/tipc_config.h will have this fix. T

Re: ICM20602 buffer issues with the inv_mpu6050 driver

2019-05-23 Thread Jean-Baptiste Maneyrol
Hi Andreea, I understand the issue now. The problem is that temperature data are always present in the FIFO. Even when the attribute is disabled. This is a limitation of this chip and cannot be changed on the hardware side. When temp attribute is disabled while accel and gyro are on, the iio bu

Re: [PATCH 0/3] tty: drop unused iflag macro

2019-05-23 Thread Johan Hovold
On Thu, May 23, 2019 at 11:31:09AM +0200, Greg Kroah-Hartman wrote: > On Thu, May 23, 2019 at 11:21:27AM +0200, Johan Hovold wrote: > > On Fri, Apr 26, 2019 at 07:59:22AM +0200, Johan Hovold wrote: > > > I noticed that the RELEVANT_IFLAG() macro was unused in USB serial and > > > turns out there we

[PATCH 1/2] ocfs2: add last unlock times in locking_state

2019-05-23 Thread Gang He
ocfs2 file system uses locking_state file under debugfs to dump each ocfs2 file system's dlm lock resources, but the dlm lock resources in memory are becoming more and more after the files were touched by the user. it will become a bit difficult to analyze these dlm lock resource records in locking

[PATCH V3 2/2] ocfs2: add locking filter debugfs file

2019-05-23 Thread Gang He
Add locking filter debugfs file, which is used to filter lock resources dump from locking_state debugfs file. We use d_filter_secs field to filter lock resources dump, the default d_filter_secs(0) value filters nothing, otherwise, only dump the last N seconds active lock resources. This enhancement

Re: [PATCH] fanotify: remove redundant capable(CAP_SYS_ADMIN)s

2019-05-23 Thread Christian Brauner
On Thu, May 23, 2019 at 01:25:08PM +0300, Amir Goldstein wrote: > On Thu, May 23, 2019 at 12:55 PM Christian Brauner > wrote: > > > > On Wed, May 22, 2019 at 11:00:22PM +0300, Amir Goldstein wrote: > > > On Wed, May 22, 2019 at 9:57 PM Christian Brauner > > > wrote: > > > > > > > > On May 22, 2

Re: [PATCH] serial-uartlite: Fix null-ptr-deref in ulite_exit

2019-05-23 Thread Michal Simek
Hi Johan, On 23. 05. 19 11:18, Johan Hovold wrote: > On Tue, May 21, 2019 at 12:10:59PM +0200, Greg Kroah-Hartman wrote: >> On Fri, May 17, 2019 at 09:55:02AM +0200, Johan Hovold wrote: >>> On Thu, May 16, 2019 at 12:09:31PM +0800, YueHaibing wrote: If ulite_probe is not called or failed to r

[PATCH net-next v2 1/1] net: mscc: ocelot: Implement port policers via tc command

2019-05-23 Thread Joergen Andreasen
Hardware offload of matchall classifier and police action are now supported via the tc command. Supported police parameters are: rate and burst. Example: Add: tc qdisc add dev eth3 handle : ingress tc filter add dev eth3 parent : prio 1 handle 2 \ matchall skip_sw

[PATCH net-next v2 0/1] Add hw offload of TC police on MSCC ocelot

2019-05-23 Thread Joergen Andreasen
This patch series enables hardware offload of ingress port policing on the MSCC ocelot board. Changes v1 -> v2: v2 now consists of only one patch: "[PATCH net-next v2 1/1] net: mscc: ocelot: Implement port policers via tc command". The patch, "[PATCH net-next 00/13] net: act_police offload suppo

Re: [RFC PATCH 4/4] KVM: selftests: Add the sync_regs test for s390x

2019-05-23 Thread Andrew Jones
On Thu, May 16, 2019 at 01:12:53PM +0200, Thomas Huth wrote: > The test is an adaption of the same test for x86. Note that there > are some differences in the way how s390x deals with the kvm_valid_regs > in struct kvm_run, so some of the tests had to be removed. Also this > test is not using the u

r8169: Link only up after 16 s (A link change request failed with some changes committed already. Interface enp3s0 may have been left with an inconsistent configuration, please check.)

2019-05-23 Thread Paul Menzel
Dear Linux folks, I optimized the Linux kernel configuration on my ASRock E350M1, and it now boots really fast. Unfortunately, that seems to cause the network driver to hit some corner case, so that the link is supposedly down, although it should be up. The cable is plugged in the whole time. `

Re: [PATCH] ASoC: fsl_esai: fix the channel swap issue after xrun

2019-05-23 Thread S.j. Wang
Hi > On Thu, May 23, 2019 at 09:53:42AM +, S.j. Wang wrote: > > > > + /* > > > > + * Add fifo reset here, because the regcache_sync will > > > > + * write one more data to ETDR. > > > > + * Which will cause channel shift. > > > > > > Sounds like a bug to me...should fix it f

Re: [PATCH 00/18] locking/atomic: atomic64 type cleanup

2019-05-23 Thread Andrea Parri
> > While reading the series, I realized that the following expression: > > > > atomic64_t v; > > ... > > typeof(v.counter) my_val = atomic64_set(&v, VAL); > > > > is a valid expression on some architectures (in part., on architectures > > which #define atomic64_set() to WRITE_ONC

Re: [RFC PATCH 4/4] KVM: selftests: Add the sync_regs test for s390x

2019-05-23 Thread Thomas Huth
On 23/05/2019 12.56, Andrew Jones wrote: > On Thu, May 16, 2019 at 01:12:53PM +0200, Thomas Huth wrote: >> The test is an adaption of the same test for x86. Note that there >> are some differences in the way how s390x deals with the kvm_valid_regs >> in struct kvm_run, so some of the tests had to b

Re: [PATCH] ASoC: sound/soc/intel/boards: limit some drivers to X86 since headers are only in arch/x86/

2019-05-23 Thread Pierre-Louis Bossart
On 5/22/19 10:58 PM, Randy Dunlap wrote: From: Randy Dunlap Several drivers in sound/soc/intel/boards/ #include header files that only exist in arch/x86/include/asm. This causes build errors, so make these drivers depend on X86. Fixes these build errors (on ia64): ../sound/soc/intel/board

[PATCH v4] perf record: collect user registers set jointly with dwarf stacks

2019-05-23 Thread Alexey Budankov
When dwarf stacks are collected jointly with user specified register set using --user-regs option like below the full register context is still captured on a sample: $ perf record -g --call-graph dwarf,1024 --user-regs=IP,SP,BP -- stack_test2.g.O3 188143843893585 0x6b48 [0x4f8]: PERF_RECOR

Re: [Qemu-devel] Running linux on qemu omap

2019-05-23 Thread Thomas Huth
On 22/05/2019 20.19, Aaro Koskinen wrote: > Hi, > > On Wed, May 22, 2019 at 11:33:41AM +0200, Corentin Labbe wrote: >> qemu-system-arm -M help |grep OMAP >> cheetah Palm Tungsten|E aka. Cheetah PDA (OMAP310) >> n800 Nokia N800 tablet aka. RX-34 (OMAP2420) >> n810

Re: [alsa-devel] [PATCH] ASoc: fix sound/soc/intel/skylake/slk-ssp-clk.c build error on IA64

2019-05-23 Thread Pierre-Louis Bossart
On 5/22/19 10:58 PM, Randy Dunlap wrote: From: Randy Dunlap skl-ssp-clk.c does not build on IA64 because the driver uses the common clock interface, so make the driver depend on COMMON_CLK. Fixes this build error: ../sound/soc/intel/skylake/skl-ssp-clk.c:26:16: error: field 'hw' has incomp

[PATCH 8/8] staging: kpc2000: remove unnecessary include in cell_probe.c

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warning "Use #include instead of ". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2000/cell_probe.c index b1ce1e715

[PATCH 6/8] staging: kpc2000: use kzalloc(sizeof(var)...) in cell_probe.c

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warning "Prefer kzalloc(sizeof(*kudev)...) over kzalloc(sizeof(struct kpc_uio_device)...)" Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_

[PATCH 4/8] staging: kpc2000: fix alignment issues in cell_probe.c

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warnings "Alignment should match open parenthesis" and "Lines should not end with a '('". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 34 +--- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/drivers/staging

[PATCH 7/8] staging: kpc2000: remove unnecessary braces in cell_probe.c

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warnings "braces {} are not necessary for single statement blocks". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/

[PATCH 5/8] staging: kpc2000: remove extra blank lines in cell_probe.c

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warnings "Please don't use multiple blank lines". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2000/cell_probe.

[PATCH 0/8] Fix more coding style issues in staging/kpc2000

2019-05-23 Thread Simon Sandström
Hi, These patches fixes a few more minor coding style issues found in staging/kpc2000/cell_probe.c. There are only two more types of checkpatch.pl warnings left in this file with these patches applied: "line over 80 characters" and "Macro argument reuse". - Simon Simon Sandström (8): staging:

[PATCH 2/8] staging: kpc2000: use __func__ in debug messages

2019-05-23 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/cell_probe.c | 22 +--- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/staging

[PATCH 1/8] staging: kpc2000: add blank line after declarations

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warning "Missing a blank line after declarations". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2000/cell_prob

[PATCH 3/8] staging: kpc2000: add missing asterisk in comment

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl error "code indent should use tabs where possible". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2

Re: [PATCH v1 1/3] x86/cpu: Create Zhaoxin processors architecture support file

2019-05-23 Thread Borislav Petkov
On Thu, May 23, 2019 at 12:24:17PM +0200, gre...@linuxfoundation.org wrote: > This patch is totally corrupted, with leading spaces dropped and tabs > turned into spaces. Please read the email client documentation in the > kernel directory for how to fix your email client, or just use 'git > send-e

Re: [PATCH] fanotify: remove redundant capable(CAP_SYS_ADMIN)s

2019-05-23 Thread Amir Goldstein
On Thu, May 23, 2019 at 1:42 PM Christian Brauner wrote: > > On Thu, May 23, 2019 at 01:25:08PM +0300, Amir Goldstein wrote: > > On Thu, May 23, 2019 at 12:55 PM Christian Brauner > > wrote: > > > > > > On Wed, May 22, 2019 at 11:00:22PM +0300, Amir Goldstein wrote: > > > > On Wed, May 22, 2019

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

2019-05-23 Thread Uladzislau Rezki
On Wed, May 22, 2019 at 11:19:04AM -0700, Andrew Morton wrote: > On Wed, 22 May 2019 17:09:37 +0200 "Uladzislau Rezki (Sony)" > wrote: > > > Introduce ne_fit_preload()/ne_fit_preload_end() functions > > for preloading one extra vmap_area object to ensure that > > we have it available when fit ty

[PATCH 0/2] net: macb: Add support for SiFive FU540-C000

2019-05-23 Thread Yash Shah
On FU540, the management IP block is tightly coupled with the Cadence MACB IP block. It manages many of the boundary signals from the MACB IP This patchset controls the tx_clk input signal to the MACB IP. It switches between the local TX clock (125MHz) and PHY TX clocks. This is necessary to toggle

[PATCH 1/2] net/macb: bindings doc: add sifive fu540-c000 binding

2019-05-23 Thread Yash Shah
Add the compatibility string documentation for SiFive FU540-C interface. On the FU540, this driver also needs to read and write registers in a management IP block that monitors or drives boundary signals for the GEMGXL IP block that are not directly mapped to GEMGXL registers. Therefore, add ad

[PATCH 2/2] net: macb: Add support for SiFive FU540-C000

2019-05-23 Thread Yash Shah
The management IP block is tightly coupled with the Cadence MACB IP block on the FU540, and manages many of the boundary signals from the MACB IP. This patch only controls the tx_clk input signal to the MACB IP. Future patches may add support for monitoring or controlling other IP boundary signals.

[PATCH] powerpc/power: Expose pfn_is_nosave prototype

2019-05-23 Thread Mathieu Malaterre
The declaration for pfn_is_nosave is only available in kernel/power/power.h. Since this function can be override in arch, expose it globally. Having a prototype will make sure to avoid warning (sometime treated as error with W=1) such as: arch/powerpc/kernel/suspend.c:18:5: error: no previous pr

Re: [PATCH v2] powerpc/32: sstep: Move variable `rc` within CONFIG_PPC64 sentinels

2019-05-23 Thread Mathieu Malaterre
ping ? On Tue, Mar 12, 2019 at 10:23 PM Mathieu Malaterre wrote: > > Fix warnings treated as errors with W=1: > > arch/powerpc/lib/sstep.c:1172:31: error: variable 'rc' set but not used > [-Werror=unused-but-set-variable] > > Suggested-by: Christophe Leroy > Signed-off-by: Mathieu Malaterre

Re: [PATCH 3/4] mm/vmap: get rid of one single unlink_va() when merge

2019-05-23 Thread Uladzislau Rezki
On Wed, May 22, 2019 at 11:19:11AM -0700, Andrew Morton wrote: > On Wed, 22 May 2019 17:09:38 +0200 "Uladzislau Rezki (Sony)" > wrote: > > > It does not make sense to try to "unlink" the node that is > > definitely not linked with a list nor tree. On the first > > merge step VA just points to th

[PATCH] usb: avoid redundant allocation and free of memory

2019-05-23 Thread Weitao Hou
If usb is not attached, it's unnessary to allocate, copy and free memory Signed-off-by: Weitao Hou --- drivers/usb/core/devio.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index fa783531ee88..aa17dab6c4ea 100644

[PATCH v2 1/4] rtc: s35390a: clarify INT2 pin output modes

2019-05-23 Thread Richard Leitner
Fix the INT2 mode mask to not include the "TEST" flag. Furthermore remove the not needed reversion of bits when parsing the INT2 modes. Instead reverse the INT2_MODE defines to match the bit order from the datasheet. Additionally mention the flag names from the datasheet for the different modes in

Re: [PATCH 2/8] staging: kpc2000: use __func__ in debug messages

2019-05-23 Thread Greg KH
On Thu, May 23, 2019 at 01:36:07PM +0200, Simon Sandström wrote: > 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/cell_probe.c | 22 +--- >

[PATCH v2 3/4] rtc: s35390a: introduce struct device in probe

2019-05-23 Thread Richard Leitner
To simplify access and shorten code introduce a struct device pointer in the s35390a probe function. Signed-off-by: Richard Leitner --- drivers/rtc/rtc-s35390a.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-s35390a.c b/drivers/rtc/rt

[PATCH V4] hsr: fix don't prune the master node from the node_db

2019-05-23 Thread Andreas Oetken
Don't prune the master node in the hsr_prune_nodes function. Neither time_in[HSR_PT_SLAVE_A] nor time_in[HSR_PT_SLAVE_B] will ever be updated by hsr_register_frame_in for the master port. Thus, the master node will be repeatedly pruned leading to repeated packet loss. This bug never appeared becaus

Re: [PATCH] fanotify: remove redundant capable(CAP_SYS_ADMIN)s

2019-05-23 Thread Christian Brauner
On Thu, May 23, 2019 at 02:40:39PM +0300, Amir Goldstein wrote: > On Thu, May 23, 2019 at 1:42 PM Christian Brauner > wrote: > > > > On Thu, May 23, 2019 at 01:25:08PM +0300, Amir Goldstein wrote: > > > On Thu, May 23, 2019 at 12:55 PM Christian Brauner > > > wrote: > > > > > > > > On Wed, May

Re: [Qemu-devel] Running linux on qemu omap

2019-05-23 Thread Philippe Mathieu-Daudé
On 5/23/19 1:27 PM, Thomas Huth wrote: > On 22/05/2019 20.19, Aaro Koskinen wrote: >> Hi, >> >> On Wed, May 22, 2019 at 11:33:41AM +0200, Corentin Labbe wrote: >>> qemu-system-arm -M help |grep OMAP >>> cheetah Palm Tungsten|E aka. Cheetah PDA (OMAP310) >>> n800 Nokia N

[PATCH 1/4] net: ll_temac: Do not make promiscuous mode sticky on multicast

2019-05-23 Thread Esben Haabendal
When user has requested IFF_ALLMULTI or have set more than 4 multicast addresses, we should just use promiscuous mode, but not set it in flags, as it causes the interface to stay in promiscuous mode even when the non-IFF_PROMISC condition that caused promiscuous mode to be enabled has gone away. S

[PATCH 0/4] net: ll_temac: Fix and enable multicast support

2019-05-23 Thread Esben Haabendal
This patch series makes the necessary fixes to ll_temac driver to make multicast work, and enables support for it.so that multicast support can The main change is the change from mutex to spinlock of the lock used to synchronize access to the shared indirect register access. Esben Haabendal (4):

Re: [PATCH] powerpc/power: Expose pfn_is_nosave prototype

2019-05-23 Thread Christophe Leroy
Le 23/05/2019 à 13:47, Mathieu Malaterre a écrit : The declaration for pfn_is_nosave is only available in kernel/power/power.h. Since this function can be override in arch, expose it globally. Having a prototype will make sure to avoid warning (sometime treated as error with W=1) such as:

[PATCH v2 0/4] rtc: s35390a: uie_unsupported and minor fixes

2019-05-23 Thread Richard Leitner
As the s35390a does only support per-minute based alarms we have to set the uie_unsupported flag. Otherwise it delays for 10sec and fails afterwards with modern hwclock versions. Furthermore some other minor changes are made. All patches were tested on an i.MX6 platform. CHANGES v2: - use BIT

[PATCH 2/4] net: ll_temac: Prepare indirect register access for multicast support

2019-05-23 Thread Esben Haabendal
With .ndo_set_rx_mode/temac_set_multicast_list() being called in atomic context (holding addr_list_lock), and temac_set_multicast_list() needing to access temac indirect registers, the mutex used to synchronize indirect register is a no-no. Replace it with a spinlock, and avoid sleeping in temac_i

[PATCH 4/4] net: ll_temac: Enable multicast support

2019-05-23 Thread Esben Haabendal
Multicast support have been tested and is working now. Signed-off-by: Esben Haabendal --- drivers/net/ethernet/xilinx/ll_temac_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c i

[PATCH 3/4] net: ll_temac: Cleanup multicast filter on change

2019-05-23 Thread Esben Haabendal
Avoid leaving old address table entries when using multicast. If more than one multicast address were removed, only the first removed address would actually be cleared. Signed-off-by: Esben Haabendal --- drivers/net/ethernet/xilinx/ll_temac_main.c | 7 +-- 1 file changed, 5 insertions(+), 2

[PATCH v2 2/4] rtc: s35390a: set uie_unsupported

2019-05-23 Thread Richard Leitner
Alarms are only supported on a per minute basis. This is why uie_unsupported is set. Furthermore issue a warning when a second based alarm is requested. Signed-off-by: Richard Leitner --- drivers/rtc/rtc-s35390a.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/rtc/rtc-s35390a.

[PATCH v2 4/4] rtc: s35390a: change FLAG defines to use BIT macro

2019-05-23 Thread Richard Leitner
To be consistent change the S35390A_FLAG defines to use the BIT macro (like the S35390A_INT2_MODE defines). Signed-off-by: Richard Leitner --- drivers/rtc/rtc-s35390a.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-s35390a.c b/drivers/rtc/rtc-s3

Re: [PATCH 4/4] mm/vmap: move BUG_ON() check to the unlink_va()

2019-05-23 Thread Uladzislau Rezki
On Wed, May 22, 2019 at 11:19:16AM -0700, Andrew Morton wrote: > On Wed, 22 May 2019 17:09:39 +0200 "Uladzislau Rezki (Sony)" > wrote: > > > Move the BUG_ON()/RB_EMPTY_NODE() check under unlink_va() > > function, it means if an empty node gets freed it is a BUG > > thus is considered as faulty b

Re: [PATCH 2/8] staging: kpc2000: use __func__ in debug messages

2019-05-23 Thread Simon Sandström
On Thu, May 23, 2019 at 01:55:53PM +0200, Greg KH wrote: > On Thu, May 23, 2019 at 01:36:07PM +0200, Simon Sandström wrote: > > Fixes checkpatch.pl warning "Prefer using '"%s...", __func__' to using > > '', this function's name, in a string". > > > > Signed-off-by: Simon Sandström > > --- > > dr

Re: [PATCH] iio: accel: add missing sensor for some 2-in-1 based ultrabooks

2019-05-23 Thread Luís Ferreira
Hi Hams, https://github.com/systemd/systemd/pull/12322 https://github.com/hadess/iio-sensor-proxy/pull/262 As all the pull requests to systemd and iio-sensor-proxy has already been merged, I just need your review on this: https://github.com/systemd/systemd/pull/12449 Then, I guess this patch is

[PATCH] staging: pi433: Remove unnecessary return variable

2019-05-23 Thread Nishka Dasgupta
From: Nishka Dasgupta The variable retval is initialised to 0 and assigned a constant value later. Both of these can be returned separately, hence retval can be removed. Signed-off-by: Nishka Dasgupta --- drivers/staging/pi433/pi433_if.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(

Re: [PATCH] ALSA: Enable micmute LED for Huawei laptops

2019-05-23 Thread Takashi Iwai
On Thu, 23 May 2019 11:30:11 +0200, Ayman Bagabas wrote: > > Since this LED is found on all Huawei laptops, we can hook it to > huawei-wmi platform driver to control it. > > Also, some renames have been made to use product name instead of common > name to avoid confusions. > > Signed-off-by: Aym

Re: [PATCH 2/8] staging: kpc2000: use __func__ in debug messages

2019-05-23 Thread Greg KH
On Thu, May 23, 2019 at 02:09:37PM +0200, Simon Sandström wrote: > On Thu, May 23, 2019 at 01:55:53PM +0200, Greg KH wrote: > > On Thu, May 23, 2019 at 01:36:07PM +0200, Simon Sandström wrote: > > > Fixes checkpatch.pl warning "Prefer using '"%s...", __func__' to using > > > '', this function's nam

Re: [PATCH V7 0/4] Add support for crypto agile logs

2019-05-23 Thread Jarkko Sakkinen
On Thu, May 23, 2019 at 03:14:49PM +0300, Jarkko Sakkinen wrote: > On Mon, May 20, 2019 at 01:54:57PM -0700, Matthew Garrett wrote: > > Identical to previous version except without the KSAN workaround - Ard > > has a better solution for that. > > > Reviewed-by: Jarkko Sakkinen > Tested-by: Jarkk

Re: [alsa-devel] [PATCH] ASoC: sound/soc/intel/boards: limit some drivers to X86 since headers are only in arch/x86/

2019-05-23 Thread Takashi Iwai
On Thu, 23 May 2019 13:20:05 +0200, Pierre-Louis Bossart wrote: > > > > On 5/22/19 10:58 PM, Randy Dunlap wrote: > > From: Randy Dunlap > > > > Several drivers in sound/soc/intel/boards/ #include header files > > that only exist in arch/x86/include/asm. This causes build errors, > > so make th

Re: [PATCH] serial-uartlite: Fix null-ptr-deref in ulite_exit

2019-05-23 Thread Johan Hovold
On Thu, May 23, 2019 at 12:46:38PM +0200, Michal Simek wrote: > Hi Johan, > > On 23. 05. 19 11:18, Johan Hovold wrote: > > On Tue, May 21, 2019 at 12:10:59PM +0200, Greg Kroah-Hartman wrote: > >> On Fri, May 17, 2019 at 09:55:02AM +0200, Johan Hovold wrote: > >>> On Thu, May 16, 2019 at 12:09:31PM

Re: [PATCH v7 3/3] i2c-ocores: sifive: add polling mode workaround for FU540-C000 SoC.

2019-05-23 Thread Andrew Lunn
> Thank you Andrew for reviewing the patch set. > Can you please let me know weather you or Peter will be pick up the patch > for v5.3 or they should go in via some other tree? Hi Sagar Wolfram Sang should pick the patchset up. Andrew

Re: [PATCH 1/2] soc: imx: soc-imx8: Avoid unnecessary of_node_put() in error handling

2019-05-23 Thread Shawn Guo
On Tue, May 21, 2019 at 09:18:43AM +, Anson Huang wrote: > of_node_put() is called after of_match_node() successfully called, > then in the following error handling, of_node_put() is called again > which is unnecessary, this patch adjusts the location of of_node_put() > to avoid such scenario.

Re: [RESEND PATCH v4 5/6] dt-bindings: leds: Add LED bindings for the LM36274

2019-05-23 Thread Pavel Machek
On Wed 2019-05-22 14:27:32, Dan Murphy wrote: > Add the LM36274 LED specific bindings. > > Reviewed-by: Rob Herring > Signed-off-by: Dan Murphy > --- > .../devicetree/bindings/leds/leds-lm36274.txt | 82 +++ > 1 file changed, 82 insertions(+) > create mode 100644 Documentation/

Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation

2019-05-23 Thread Oliver Neukum
On So, 2019-05-19 at 22:56 -0700, Christoph Hellwig wrote: > Folks, you can't just pass arbitary GFP_ flags to dma allocation > routines, beause very often they are not just wrappers around > the page allocator. > > So no, you can't just fine grained control the flags, but the > existing code is j

[PATCH] tracing: silence GCC 9 array bounds warning

2019-05-23 Thread Miguel Ojeda
Starting with GCC 9, -Warray-bounds detects cases when memset is called starting on a member of a struct but the size to be cleared ends up writing over further members. Such a call happens in the trace code to clear, at once, all members after and including `seq` on struct trace_iterator: In

Re: [PATCH] serial-uartlite: Fix null-ptr-deref in ulite_exit

2019-05-23 Thread Michal Simek
On 23. 05. 19 14:31, Johan Hovold wrote: > On Thu, May 23, 2019 at 12:46:38PM +0200, Michal Simek wrote: >> Hi Johan, >> >> On 23. 05. 19 11:18, Johan Hovold wrote: >>> On Tue, May 21, 2019 at 12:10:59PM +0200, Greg Kroah-Hartman wrote: On Fri, May 17, 2019 at 09:55:02AM +0200, Johan Hovold wr

Re: perf: fuzzer causes crash in new XMM code

2019-05-23 Thread Liang, Kan
On 5/22/2019 6:50 PM, Jiri Olsa wrote: On Wed, May 22, 2019 at 05:54:58PM -0400, Liang, Kan wrote: SNIP [ 9680.197779] RSP: 002b:7fff595603a8 EFLAGS: 0206 ORIG_RAX: ff13 [ 9680.205489] RAX: 4985 RBX: 000c RCX: 000365ca [ 9680.212748] RDX:

Re: [PATCH] RDMA/mlx5: Use DIV_ROUND_UP_ULL macro to allow 32 bit to build

2019-05-23 Thread Steven Rostedt
On Thu, 23 May 2019 08:58:03 +0200 Michal Kubecek wrote: > > diff --git a/drivers/infiniband/hw/mlx5/main.c > > b/drivers/infiniband/hw/mlx5/main.c > > index abac70ad5c7c..40d4c5f7ea43 100644 > > --- a/drivers/infiniband/hw/mlx5/main.c > > +++ b/drivers/infiniband/hw/mlx5/main.c > > @@ -2344,7 +

Re: [PATCH 0/2] net: macb: Add support for SiFive FU540-C000

2019-05-23 Thread Andreas Schwab
On Mai 23 2019, Yash Shah wrote: > On FU540, the management IP block is tightly coupled with the Cadence > MACB IP block. It manages many of the boundary signals from the MACB IP > This patchset controls the tx_clk input signal to the MACB IP. It > switches between the local TX clock (125MHz) and

Re: [RESEND PATCH v4 6/6] leds: lm36274: Introduce the TI LM36274 LED driver

2019-05-23 Thread Pavel Machek
Hi! > +++ b/drivers/leds/leds-lm36274.c > +static int lm36274_parse_dt(struct lm36274 *lm36274_data) > +{ > + struct fwnode_handle *child = NULL; > + char label[LED_MAX_NAME_SIZE]; > + struct device *dev = &lm36274_data->pdev->dev; > + const char *name; > + int child_cnt; > +

[PATCHv3 1/4] firmware: stratix10-svc: extend svc to support RSU notify and WD features

2019-05-23 Thread richard . gong
From: Richard Gong Entend Intel Stratix10 service layer driver to support RSU notify and watchdog timeout features. RSU is used to provide our customers with protection against loading bad bitstream onto their devices when those devices are booting from flash RSU notifies provides users with an

[PATCHv3 0/4] add Intel Stratix10 remote system update driver

2019-05-23 Thread richard . gong
From: Richard Gong Since version 2 submission is too late for kernel 5.2, I submit version 3 of Intel Stratix10 Remote System Update (RSU) drive for kernel 5.3. There is only one additional change in version 3 patch sets, which updates kernel version to 5.3 in sysfs interface document. Intel St

Re: [PATCH 3/5] mm/hmm: Use mm_get_hmm() in hmm_range_register()

2019-05-23 Thread Jason Gunthorpe
On Mon, May 06, 2019 at 04:29:40PM -0700, rcampb...@nvidia.com wrote: > From: Ralph Campbell > > In hmm_range_register(), the call to hmm_get_or_create() implies that > hmm_range_register() could be called before hmm_mirror_register() when > in fact, that would violate the HMM API. > > Use mm_ge

[PATCHv3 4/4] MAINTAINERS: add maintainer for Intel Stratix10 FW drivers

2019-05-23 Thread richard . gong
From: Richard Gong Add myself as maintainer for the newly created Intel Stratix10 firmware drivers. Signed-off-by: Richard Gong Reviewed-by: Alan Tull --- v2: removed RSU binding text file v3: no change --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINE

[PATCH v2 9/9] staging: kpc2000: remove unnecessary oom message

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

[PATCH v2 5/9] staging: kpc2000: remove extra blank lines in cell_probe.c

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warnings "Please don't use multiple blank lines". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2000/cell_probe.

[PATCH v2 7/9] staging: kpc2000: remove unnecessary braces in cell_probe.c

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warnings "braces {} are not necessary for single statement blocks". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/

[PATCH v2 8/9] staging: kpc2000: remove unnecessary include in cell_probe.c

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warning "Use #include instead of ". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2000/cell_probe.c index 682d61da5

[PATCHv3 3/4] firmware: rsu: document sysfs interface

2019-05-23 Thread richard . gong
From: Richard Gong Describe Intel Stratix10 Remote System Update (RSU) device attributes Signed-off-by: Richard Gong Reviewed-by: Alan Tull --- v2: changed to use tab everywhere and wrap lines at 72 colums s/soc:firmware:svc:rsu/stratix10-rsu.0 added for watchdog v3: s/KernelVersion:5.

[PATCH v2 4/9] staging: kpc2000: fix alignment issues in cell_probe.c

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warnings "Alignment should match open parenthesis" and "Lines should not end with a '('". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 34 +--- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/drivers/staging

[PATCH v2 6/9] staging: kpc2000: use kzalloc(sizeof(var)...) in cell_probe.c

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warning "Prefer kzalloc(sizeof(*kudev)...) over kzalloc(sizeof(struct kpc_uio_device)...)" Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_

[PATCHv3 2/4] firmware: add Intel Stratix10 remote system update driver

2019-05-23 Thread richard . gong
From: Richard Gong The Intel Remote System Update (RSU) driver exposes interfaces access through the Intel Service Layer to user space via sysfs interface. The RSU interfaces report and control some of the optional RSU features on Intel Stratix 10 SoC. The RSU feature provides a way for customer

[PATCH bpf-next v2 RESEND 2/2] samples: bpf: Do not define bpf_printk macro

2019-05-23 Thread Michal Rostecki
The bpf_printk macro was moved to bpf_helpers.h which is included in all example programs. Signed-off-by: Michal Rostecki --- samples/bpf/hbm_kern.h | 11 ++- samples/bpf/tcp_basertt_kern.c | 7 --- samples/bpf/tcp_bufs_kern.c| 7 --- samples/bpf/tcp_cla

[PATCH bpf-next v2 RESEND 1/2] selftests: bpf: Move bpf_printk to bpf_helpers.h

2019-05-23 Thread Michal Rostecki
bpf_printk is a macro which is commonly used to print out debug messages in BPF programs and it was copied in many selftests and samples. Since all of them include bpf_helpers.h, this change moves the macro there. Signed-off-by: Michal Rostecki --- tools/testing/selftests/bpf/bpf_helpers.h

[PATCH v2 2/9] staging: kpc2000: use __func__ in debug messages

2019-05-23 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/cell_probe.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/staging/

[PATCH v2 1/9] staging: kpc2000: add blank line after declarations

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl warning "Missing a blank line after declarations". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2000/cell_prob

[PATCH v2 3/9] staging: kpc2000: add missing asterisk in comment

2019-05-23 Thread Simon Sandström
Fixes checkpatch.pl error "code indent should use tabs where possible". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/cell_probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/kpc2000/kpc2000/cell_probe.c b/drivers/staging/kpc2000/kpc2

[PATCH bpf-next v2 RESEND 0/2] Move bpf_printk to bpf_helpers.h

2019-05-23 Thread Michal Rostecki
This series of patches move the commonly used bpf_printk macro to bpf_helpers.h which is already included in all BPF programs which defined that macro on their own. v1->v2: - If HBM_DEBUG is not defined in hbm sample, undefine bpf_printk and set an empty macro for it. Michal Rostecki (2): sel

Re: [v4 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-23 Thread Huang, Ying
Yang Shi writes: > Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after > swapped out"), THP can be swapped out in a whole. But, nr_reclaimed > and some other vm counters still get inc'ed by one even though a whole > THP (512 pages) gets swapped out. > > This doesn't make too muc

[PATCH v2 0/9] Fix more coding style issues in staging/kpc2000

2019-05-23 Thread Simon Sandström
Hi, These patches fixes a few more minor coding style issues found in staging/kpc2000/cell_probe.c. There are only two more types of checkpatch.pl warnings left in this file with these patches applied: "line over 80 characters" and "Macro argument reuse". Changed in v2: don't bother fixing the __

Re: [PATCH V3 RESEND 3/4] defconfig: arm64: enable i.MX8 SCU octop driver

2019-05-23 Thread Shawn Guo
On Wed, May 22, 2019 at 01:47:05AM +, Peng Fan wrote: > Build in CONFIG_NVMEM_IMX_OCOTP_SCU. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Shawn Guo > Cc: Andy Gross > Cc: Maxime Ripard > Cc: Olof Johansson > Cc: Jagan Teki > Cc: Bjorn Andersson > Cc: Leonard Crestez > Cc: Marc Gonz

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