Re: [PATCH net-next v2 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-27 Thread Wolfram Sang
On Fri, May 24, 2019 at 05:53:01PM -0700, Ruslan Babayev wrote: > This allows drivers to lookup i2c adapters on ACPI based systems similar to > of_get_i2c_adapter_by_node() with DT based systems. > > Signed-off-by: Ruslan Babayev > Cc: xe-linux-exter...@cisco.com Please have a look how your patc

Feature request for `hid-magicmouse`

2019-05-27 Thread Tord Johan Espe
Hi, This is the first time I have submitted any requests to the Linux development community, so please excuse me if I'm doing it wrong, but after reading the docs, it seemed like the correct way to do this was to identify the people involved with the module and send an email. My feature request i

Re: [PATCH v2 00/10] Allwinner A64/H6 IR support

2019-05-27 Thread Clément Péron
Hi Ondrej, On Mon, 27 May 2019 at 19:23, Ondřej Jirman wrote: > > Hi Clément, > > On Mon, May 27, 2019 at 06:31:17PM +0200, verejna wrote: > > Hi Clément, > > > > On Mon, May 27, 2019 at 04:59:35PM +0200, Clément Péron wrote: > > > Hi Ondřej, > > > > > > On Mon, 27 May 2019 at 15:48, Ondřej Jirma

Re: [PATCH 2/2] arch: wire-up clone6() syscall on x86

2019-05-27 Thread Linus Torvalds
On Mon, May 27, 2019 at 5:34 AM Christian Brauner wrote: > > Afaict, stack_size is *only* used on ia64: That's because ia64 "stacks" are an odd non-stack thing (like so much of the architecture). In computer science, a stack is a FIFO that grows/shrinks according to use. In practical implementat

Re: [RFC PATCH 4/6] x86/mm/tlb: Refactor common code into flush_tlb_on_cpus()

2019-05-27 Thread Nadav Amit
> On May 27, 2019, at 2:24 AM, Peter Zijlstra wrote: > > On Sat, May 25, 2019 at 01:22:01AM -0700, Nadav Amit wrote: > >> There is one functional change, which should not affect correctness: >> flush_tlb_mm_range compared loaded_mm and the mm to figure out if local >> flush is needed. Instead, t

Re: [PATCH] i2c: dev: fix potential memory leak in i2cdev_ioctl_rdwr

2019-05-27 Thread Wolfram Sang
On Tue, May 07, 2019 at 10:20:32PM +0800, Yingjoe Chen wrote: > If I2C_M_RECV_LEN check failed, msgs[i].buf allocated by memdup_user > will not be freed. Pump index up so it will be freed. > > Fixes: 838bfa6049fb ("i2c-dev: Add support for I2C_M_RECV_LEN") > Signed-off-by: Yingjoe Chen Nice catc

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

2019-05-27 Thread Peter Maydell
On Mon, 27 May 2019 at 16:56, Guenter Roeck wrote: > I'd be happy to use a different (supported) branch, but the Linaro branch > was the only one I could find that supports those boards. Unfortunately, > qemu changed so much since 2.3 that it is all but impossible to merge > the code into mainline

Re: [PATCH] i2c: imx: Use __maybe_unused instead of #if CONFIG_PM

2019-05-27 Thread Wolfram Sang
On Sun, May 05, 2019 at 03:31:55AM +, Anson Huang wrote: > Use __maybe_unused for runtime PM related functions instead > of #if CONFIG_PM to simply the code. > > Signed-off-by: Anson Huang Applied to for-next, thanks! signature.asc Description: PGP signature

[PATCH V2 1/3] perf/x86: Disable non generic regs for software/probe events

2019-05-27 Thread kan . liang
From: Kan Liang The perf fuzzer caused skylake machine to crash. [ 9680.085831] Call Trace: [ 9680.088301] [ 9680.090363] perf_output_sample_regs+0x43/0xa0 [ 9680.094928] perf_output_sample+0x3aa/0x7a0 [ 9680.099181] perf_event_output_forward+0x53/0x80 [ 9680.103917] __perf_event_overflow+

[PATCH V2 2/3] perf/x86/regs: Check reserved bits

2019-05-27 Thread kan . liang
From: Kan Liang The perf fuzzer triggers a warning which map to: if (WARN_ON_ONCE(idx >= ARRAY_SIZE(pt_regs_offset))) return 0; The bits between XMM registers and generic registers are reserved. But perf_reg_validate() doesn't check these bits. Add PERF_REG_X86_RESERVED

[PATCH V2 3/3] perf regs x86: Use PERF_REG_NON_GENERIC_MASK

2019-05-27 Thread kan . liang
From: Kan Liang Use the macro defined in kernel ABI header to replace the local name. No functional change. Signed-off-by: Kan Liang --- New for V2 tools/arch/x86/include/uapi/asm/perf_regs.h | 3 +++ tools/perf/arch/x86/include/perf_regs.h | 1 - tools/perf/arch/x86/util/perf_regs.c

Re: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox

2019-05-27 Thread Florian Fainelli
On 5/26/2019 10:19 PM, Peng Fan wrote: > Hi Florian, > >> Subject: Re: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox >> >> Hi, >> >> On 5/22/19 10:50 PM, Peng Fan wrote: >>> This is a modified version from Andre Przywara's patch series >>> >> https://eur01.safelinks.protection.outlo

Re: [PATCH 7/7] sched/fair: Rename weighted_cpuload() to cpu_load()

2019-05-27 Thread Peter Zijlstra
On Mon, May 27, 2019 at 12:24:07PM -0400, Rik van Riel wrote: > On Mon, 2019-05-27 at 07:21 +0100, Dietmar Eggemann wrote: > > This is done to align the per cpu (i.e. per rq) load with the util > > counterpart (cpu_util(int cpu)). The term 'weighted' is not needed > > since there is no 'unweighted'

Re: [RFC PATCH 4/6] x86/mm/tlb: Refactor common code into flush_tlb_on_cpus()

2019-05-27 Thread Peter Zijlstra
On Mon, May 27, 2019 at 06:59:01PM +, Nadav Amit wrote: > > On May 27, 2019, at 2:24 AM, Peter Zijlstra wrote: > > > > On Sat, May 25, 2019 at 01:22:01AM -0700, Nadav Amit wrote: > > > >> There is one functional change, which should not affect correctness: > >> flush_tlb_mm_range compared lo

RE: [EXT] Re: [PATCH] arm64: dts: ls1028a: Add temperature sensor node

2019-05-27 Thread Leo Li
> -Original Message- > From: Andy Tang > Sent: Monday, May 27, 2019 3:27 AM > To: Leo Li > Cc: Shawn Guo ; Rob Herring > ; Mark Rutland ; > moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE ker...@lists.infradead.org>; open list:OPEN FIRMWARE AND FLATTENED > DEVICE TREE BINDINGS ;

Re: [PATCH 1/1] i2c: iproc: Add multi byte read-write support for slave mode

2019-05-27 Thread Wolfram Sang
On Thu, May 09, 2019 at 09:51:48AM +0530, Rayagonda Kokatanur wrote: > Add multiple byte read-write support for slave mode. > > Signed-off-by: Rayagonda Kokatanur > Signed-off-by: Srinath Mannam Applied to for-next, thanks! But please quote only relevant parts of the message. signature.asc

Re: [PATCH] i2c: Allow selecting BCM2835 I2C controllers on ARCH_BRCMSTB

2019-05-27 Thread Wolfram Sang
On Thu, May 09, 2019 at 02:04:36PM -0700, Florian Fainelli wrote: > From: Kamal Dasu > > ARCH_BRCMSTB platforms have the BCM2835 I2C controllers, allow > selecting the i2c-bcm2835 driver on such platforms. > > Signed-off-by: Kamal Dasu > Signed-off-by: Florian Fainelli Applied to for-next, th

Re: [PATCH v2] rcu: Don't return a value from rcu_assign_pointer()

2019-05-27 Thread Paul E. McKenney
On Mon, May 27, 2019 at 10:57:52AM -0700, Joe Perches wrote: > On Mon, 2019-05-27 at 10:49 -0700, Paul E. McKenney wrote: > > On Mon, May 27, 2019 at 10:21:22AM -0700, Joe Perches wrote: > > > On Mon, 2019-05-27 at 09:10 -0700, Paul E. McKenney wrote: > > > > On Mon, May 27, 2019 at 10:49:57AM +020

Re: [PATCH 1/5] glibc: Perform rseq(2) registration at C startup and thread creation (v10)

2019-05-27 Thread Mathieu Desnoyers
- On May 27, 2019, at 7:19 AM, Florian Weimer fwei...@redhat.com wrote: > * Mathieu Desnoyers: > >> +/* volatile because fields can be read/updated by the kernel. */ >> +__thread volatile struct rseq __rseq_abi = { >> + .cpu_id = RSEQ_CPU_ID_UNINITIALIZED, >> +}; > > As I've explained repe

Re: [PATCH 1/2] fork: add clone6

2019-05-27 Thread Linus Torvalds
On Mon, May 27, 2019 at 3:42 AM Christian Brauner wrote: > > Hm, still pondering whether having one unsigned int argument passed > through registers that captures all the flags from the old clone() would > be a good idea. That sounds like a reasonable thing to do. Maybe we could continue to call

Re: [PATCH] i2c: i2c-meson: update with SPDX Licence identifier

2019-05-27 Thread Wolfram Sang
On Mon, May 20, 2019 at 04:01:33PM +0200, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong Applied to for-next, thanks! signature.asc Description: PGP signature

Re: [PATCH v2 00/10] Allwinner A64/H6 IR support

2019-05-27 Thread Ondřej Jirman
Hi Clément, On Mon, May 27, 2019 at 08:49:59PM +0200, Clément Péron wrote: > Hi Ondrej, > > > > > I'm testing on Orange Pi 3. > > > > With your patches, I get kernel lockup after ~1 minute of use (ssh stops > > responding/serial console stops responding). I don't have RC controller to > > test >

Re: [PATCH v4] locking/lock_events: Use this_cpu_add() when necessary

2019-05-27 Thread Linus Torvalds
On Mon, May 27, 2019 at 1:23 AM Peter Zijlstra wrote: > > That's disguisting... I see Linus already applied it, but yuck. That's > what we have raw_cpu_*() for. Ahh, I tried to look for that, but there was enough indirection and confusion that I wasn't sure they were generically available. And t

Need traffic for your website?

2019-05-27 Thread Alex Walker
Hi Do you need traffic for your website, or ecommerce store? We can bring 1-2 thousands of visitors to your website daily. No matter what you are selling, products or service. Getting more traffic is the key to your business. Please reply if interested, we will go options for you. Thanks, Alex

Re: [PATCH 1/2] fork: add clone6

2019-05-27 Thread Jann Horn
+Kees On Mon, May 27, 2019 at 9:27 PM Linus Torvalds wrote: > On Mon, May 27, 2019 at 3:42 AM Christian Brauner > wrote: > > Hm, still pondering whether having one unsigned int argument passed > > through registers that captures all the flags from the old clone() would > > be a good idea. > > T

memory leak in hsr_create_self_node

2019-05-27 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:cd6c84d8 Linux 5.2-rc2 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=169e2952a0 kernel config: https://syzkaller.appspot.com/x/.config?x=64479170dcaf0e11 dashboard link: https://syzkaller.appspo

Re: [PATCH] i2c: jz4780: Drop dependency on MACH_JZ4780

2019-05-27 Thread Wolfram Sang
On Wed, May 22, 2019 at 07:05:16PM +0200, Paul Cercueil wrote: > Depending on MACH_JZ4780 prevent us from creating a generic kernel that > works on more than one MIPS board. Instead, we just depend on MIPS being > set. > > Signed-off-by: Paul Cercueil Applied to for-next, thanks! signature.as

[PATCH] MAINTAINERS: Karthikeyan Ramasubramanian is MIA

2019-05-27 Thread Wolfram Sang
A mail just bounced back with "user unknown": 550 5.1.1 User doesn't exist I also couldn't find a more recent address in git history. So, remove this stale entry. Signed-off-by: Wolfram Sang --- I'd happily drop this patch if we can get a sign of life and a recent email address. MAINTAINERS

Re: [PATCH v2 00/10] Allwinner A64/H6 IR support

2019-05-27 Thread Ondřej Jirman
Hi Clément, On Mon, May 27, 2019 at 09:30:16PM +0200, verejna wrote: > Hi Clément, > > On Mon, May 27, 2019 at 08:49:59PM +0200, Clément Péron wrote: > > Hi Ondrej, > > > > > > > > I'm testing on Orange Pi 3. > > > > > > With your patches, I get kernel lockup after ~1 minute of use (ssh stops >

Re: [PATCH 2/2] serial: 8250: Add support for 8250/16550 as MFD function

2019-05-27 Thread Enrico Weigelt, metux IT consult
On 21.05.19 16:43, Greg Kroah-Hartman wrote: Hi, > Sometimes you need to go tell the hardware/firmware people not to do > foolish things. You can not always fix their problems in software. > Please push back on this. I've often been in the same situation. It's hopeless with those folks. Even wo

Re: [PATCH v3 1/9] leds: multicolor: Add sysfs interface definition

2019-05-27 Thread Jacek Anaszewski
Hi Dan, Thank you for the update. One thing is missing here - we need to document how legacy brightness levels map to the sub-LED color levels, i.e. what you do in multicolor_set_brightness(). Best regards, Jacek Anaszewski On 5/23/19 9:08 PM, Dan Murphy wrote: Add a documentation of LED Mult

Re: [PATCH v4 1/2] vmalloc: Fix calculation of direct map addr range

2019-05-27 Thread Edgecombe, Rick P
On Mon, 2019-05-27 at 14:20 +0200, Peter Zijlstra wrote: > On Tue, May 21, 2019 at 01:51:36PM -0700, Rick Edgecombe wrote: > > The calculation of the direct map address range to flush was wrong. > > This could cause problems on x86 if a RO direct map alias ever got > > loaded > > into the TLB. This

[PATCH v4 2/7] ASoC: sun4i-spdif: Move quirks to the top

2019-05-27 Thread Clément Péron
The quirks are actually defines in the middle of the file with short explanation. Move this at the top and add a section to have coherency with sun4i-i2s. Signed-off-by: Clément Péron Acked-by: Maxime Ripard --- sound/soc/sunxi/sun4i-spdif.c | 16 +++- 1 file changed, 11 insertions

[PATCH v4 1/7] dt-bindings: sound: sun4i-spdif: Add Allwinner H6 compatible

2019-05-27 Thread Clément Péron
Allwinner H6 has a SPDIF controller with an increase of the fifo size and a sligher difference in memory mapping compare to H3/A64. This make it not compatible with the previous generation. Introduce a specific bindings for H6 SoC. Signed-off-by: Clément Péron Reviewed-by: Rob Herring Acked-by

[PATCH v4 4/7] ASoC: sun4i-spdif: Add support for H6 SoC

2019-05-27 Thread Clément Péron
Allwinner H6 has a different mapping for the fifo register controller. Actually only the fifo TX bit is used in the drivers. Use the freshly introduced quirks to make this drivers compatible with the Allwinner H6. Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-spdif.c | 22

[PATCH v4 7/7] arm64: defconfig: Enable Sun4i SPDIF module

2019-05-27 Thread Clément Péron
Allwinner A64 and H6 use the Sun4i SPDIF driver. Enable this to allow a proper support. Signed-off-by: Clément Péron --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index b535f0f412cc..de5b65d45311

[PATCH v4 3/7] ASoC: sun4i-spdif: Add TX fifo bit flush quirks

2019-05-27 Thread Clément Péron
Allwinner H6 has a different bit to flush the TX FIFO. Add a quirks to prepare introduction of H6 SoC. Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-spdif.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/soc/sunxi/s

[PATCH v4 6/7] arm64: dts: allwinner: h6: Enable SPDIF for Beelink GS1

2019-05-27 Thread Clément Péron
Beelink GS1 board has a SPDIF out connector, so enable it in the device-tree. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boo

[PATCH v4 0/7] Allwinner H6 SPDIF support

2019-05-27 Thread Clément Péron
*H6 DMA support IS REQUIRED* Allwinner H6 SoC has a SPDIF controller called One Wire Audio (OWA) which is different from the previous H3 generation and not compatible. Difference are an increase of fifo sizes, some memory mapping are different and there is now the possibility to output the master

[PATCH v4 5/7] arm64: dts: allwinner: Add SPDIF node for Allwinner H6

2019-05-27 Thread Clément Péron
The Allwinner H6 has a SPDIF controller called OWA (One Wire Audio). Only one pinmuxing is available so set it as default. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 38 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/

[PATCH net-next] net: mvpp2: cls: Remove unnecessary comparison of unsigned integer with < 0

2019-05-27 Thread Gustavo A. R. Silva
There is no need to compare info->fs.location with < 0 because such comparison of an unsigned value is always false. Fix this by removing such comparison. Addresses-Coverity-ID: 1445598 ("Unsigned compared against 0") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/marvell/mvpp2/mvp

[PATCH v3 2/7] dmaengine: sun6i: Add a quirk for additional mbus clock

2019-05-27 Thread Clément Péron
From: Jernej Skrabec H6 DMA controller needs additional mbus clock to be enabled. Add a quirk for it and handle it accordingly. Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron --- drivers/dma/sun6i-dma.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-)

Re: [PATCH] powerpc: Fix loading of kernel + initramfs with kexec_file_load()

2019-05-27 Thread Thiago Jung Bauermann
Michael Ellerman writes: > On Wed, 2019-05-22 at 22:01:58 UTC, Thiago Jung Bauermann wrote: >> Commit b6664ba42f14 ("s390, kexec_file: drop arch_kexec_mem_walk()") >> changed kexec_add_buffer() to skip searching for a memory location if >> kexec_buf.mem is already set, and use the address that

[PATCH v3 0/7] Allwinner H6 DMA support

2019-05-27 Thread Clément Péron
Hi, This series has been first proposed by Jernej Skrabec[1]. As this series is mandatory for SPDIF/I2S support and because he is busy on Cedrus stuff. I asked him to make the minor change requested and repost it. Authorship remains to him. I have tested this series with SPDIF driver and added a

[PATCH v3 6/7] arm64: dts: allwinner: h6: Add DMA node

2019-05-27 Thread Clément Péron
From: Jernej Skrabec H6 has DMA controller which supports 16 channels. Add a node for it. Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/allwinne

[PATCH v3 1/7] dt-bindings: arm64: allwinner: h6: Add binding for DMA controller

2019-05-27 Thread Clément Péron
From: Jernej Skrabec DMA in H6 is similar to other DMA controller, except it is first which supports more than 32 request sources and has 16 channels. It also needs additional clock to be enabled. Signed-off-by: Jernej Skrabec Reviewed-by: Rob Herring Signed-off-by: Clément Péron --- Documen

[PATCH v3 5/7] dmaengine: sun6i: Add support for H6 DMA

2019-05-27 Thread Clément Péron
From: Jernej Skrabec H6 DMA has more than 32 supported DRQs, which means that configuration register is slightly rearranged. It also needs additional clock to be enabled. Add support for it. Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron --- drivers/dma/sun6i-dma.c | 40 +

[PATCH v3 7/7] arm64: defconfig: enable Allwinner DMA drivers

2019-05-27 Thread Clément Péron
Allwinner sun6i DMA drivers is used on A64 and H6 boards. Enable it as a module. Signed-off-by: Clément Péron --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 4d583514258c..b535f0f412cc 100644

[PATCH v3 4/7] dmaengine: sun6i: Add a quirk for setting mode fields

2019-05-27 Thread Clément Péron
From: Jernej Skrabec H6 DMA has mode fields in different position than any other currently supported DMA controller. Add a quirk for that. Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron --- drivers/dma/sun6i-dma.c | 46 - 1 file changed, 27

[PATCH v3 3/7] dmaengine: sun6i: Add a quirk for setting DRQ fields

2019-05-27 Thread Clément Péron
From: Jernej Skrabec H6 DMA has more than 32 possible DRQs. That means that current maximum of 31 DRQs is not enough anymore. Add a quirk which will set source and destination DRQ number. Signed-off-by: Jernej Skrabec Signed-off-by: Clément Péron --- drivers/dma/sun6i-dma.c | 48

[PATCH] fdomain: Add PCMCIA support

2019-05-27 Thread Ondrej Zary
Add PCMCIA card support to Future Domain SCSI driver. Tested with IBM SCSI PCMCIA Adapter 40G1890. Signed-off-by: Ondrej Zary --- drivers/scsi/fdomain.c | 7 ++- drivers/scsi/pcmcia/Kconfig | 10 + drivers/scsi/pcmcia/Makefile | 1 + drivers/scsi/pcmcia/fdomain_cs.c | 9

Re: [PATCH] drivers: staging: speakup: serialio: fix warning linux/serial.h is included more than once

2019-05-27 Thread Samuel Thibault
Hariprasad Kelam, le dim. 26 mai 2019 12:43:22 +0530, a ecrit: > fix below warning reported by includecheck > > ./drivers/staging/speakup/serialio.h: linux/serial.h is included more > than once. > > Signed-off-by: Hariprasad Kelam That was indeed the result of f79b0d9c223ca09cefffc72304a7bcbc4

Cocci spatch "of_table" - v5.2-rc1

2019-05-27 Thread Thomas Meyer
Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Run against version v5.2-rc1 P.S. If you find this email unwanted, set up a procmail rule junking on the header: X-Patch: Cocci

Re: [PATCH] mlx5: avoid 64-bit division

2019-05-27 Thread Michal Kubecek
On Mon, May 27, 2019 at 03:15:34PM -0300, Jason Gunthorpe wrote: > On Mon, May 20, 2019 at 01:19:02PM +0200, Michal Kubecek wrote: > > diff --git a/drivers/infiniband/hw/mlx5/main.c > > b/drivers/infiniband/hw/mlx5/main.c > > index abac70ad5c7c..340290b883fe 100644 > > +++ b/drivers/infiniband/hw/

[PATCH V3 1/8] genirq/timings: Fix next event index function

2019-05-27 Thread Daniel Lezcano
The current code was luckily working with most of the interval samples testing but actually it fails to correctly detect pattern repeatition breaking at the end of the buffer. Narrowing down the bug has been a real pain because of the pointers, so the routine is rewrite by using indexes instead.

[PATCH V3 8/8] genirq/timings: Add selftest for next event computation

2019-05-27 Thread Daniel Lezcano
The circular buffers are now validated at this point with the two previous patches. The next interrupt index algorithm which is the hardest part to validate can be validated with the tests provided with this patch. It uses the intervals stored in the arrays and insert all the values except the las

[PATCH V3 5/8] genirq/timings: Encapsulate storing function

2019-05-27 Thread Daniel Lezcano
For the next patches providing the selftest, we want to insert interval values directly in the buffer in order to check the correctness of the code. Encapsulate the code doing that in a always inline function in order to reuse it in the test code. No functional changes. Signed-off-by: Daniel Lezc

[PATCH V3 0/8] genirq/timings: Fixes and selftests

2019-05-27 Thread Daniel Lezcano
This series provides a couple of fixes, an optimization and the code to do the selftests. While writing the selftests, a couple of issues were spotted with the circular buffer handling and the routine searching for the pattern multiple times. In addition, a small optimization has been found while

[PATCH V3 2/8] genirq/timings: Fix timings buffer inspection

2019-05-27 Thread Daniel Lezcano
It appears the index beginning computation is not correct, the current code does: i = (irqts->count & IRQ_TIMINGS_MASK) - 1 If irqts->count is equal to zero, we end up with an index equal to -1, but that does not happen because the function checks against zero before and returns in such case

[PATCH V3 7/8] genirq/timings: Add selftest for irqs circular buffer

2019-05-27 Thread Daniel Lezcano
After testing the per cpu interrupt circular event, we want to make sure the per interrupt circular buffer usage is correct. Add tests to validate the interrupt circular buffer. Signed-off-by: Daniel Lezcano --- kernel/irq/timings.c | 139 +++ 1 file chan

[PATCH V3 6/8] genirq/timings: Add selftest for circular array

2019-05-27 Thread Daniel Lezcano
Due to the complexity of the code and the difficulty to debug it, let's add some selftests to the framework in order to spot issues or regression at boot time when the runtime testing is enabled for this subsystem. This tests the circular buffer at the limits and validates: - the encoding / decod

[PATCH V3 3/8] genirq/timings: Optimize the period detection speed

2019-05-27 Thread Daniel Lezcano
If we have a minimal period and if there is a period which is a multiple of it but lesser than the max period then it will be detected before and the minimal period will be never reached. 1 2 1 2 1 2 1 2 1 2 1 2 <-> <-> <-> <-> <-> <-> <-> <-> <-> In our case, the minimum period is

[PATCH V3 4/8] genirq/timings: Encapsulate timings push

2019-05-27 Thread Daniel Lezcano
For the next patches providing the selftest, we do want to artificially insert timings value in the circular buffer in order to check the correctness of the code. Encapsulate the common code between the future test code and the current with an always-inline tag. No functional change. Signed-off-b

[PATCH v5 2/2] vmalloc: Avoid rare case of flushing tlb with weird arguments

2019-05-27 Thread Rick Edgecombe
In a rare case, flush_tlb_kernel_range() could be called with a start higher than the end. In vm_remove_mappings(), in case page_address() returns 0 for all pages (for example they were all in highmem), _vm_unmap_aliases() will be called with start = ULONG_MAX, end = 0 and flush = 1. If at the sa

[PATCH v5 0/2] Fix issues with vmalloc flush flag

2019-05-27 Thread Rick Edgecombe
These two patches address issues with the recently added VM_FLUSH_RESET_PERMS vmalloc flag. Patch 1 addresses an issue that could cause a crash after other architectures besides x86 rely on this path. Patch 2 addresses an issue where in a rare case strange arguments could be provided to flush_tlb

[PATCH v5 1/2] vmalloc: Fix calculation of direct map addr range

2019-05-27 Thread Rick Edgecombe
The calculation of the direct map address range to flush was wrong. This could cause the RO direct map alias to not get flushed. Today this shouldn't be a problem because this flush is only needed on x86 right now and the spurious fault handler will fix cached RO->RW translations. In the future tho

Re: [PATCH net-next] macvlan: Replace strncpy() by strscpy()

2019-05-27 Thread Stephen Hemminger
On Mon, 27 May 2019 13:38:55 -0500 "Gustavo A. R. Silva" wrote: > The strncpy() function is being deprecated. Replace it by the safer > strscpy() and fix the following Coverity warning: > > "Calling strncpy with a maximum size argument of 16 bytes on destination > array ifrr.ifr_ifrn.ifrn_name o

Re: [PATCH net-next] macvlan: Replace strncpy() by strscpy()

2019-05-27 Thread Gustavo A. R. Silva
On 5/27/19 4:20 PM, Stephen Hemminger wrote: > On Mon, 27 May 2019 13:38:55 -0500 > "Gustavo A. R. Silva" wrote: > >> The strncpy() function is being deprecated. Replace it by the safer >> strscpy() and fix the following Coverity warning: >> >> "Calling strncpy with a maximum size argument of

Re: [PATCH net 4/4] net/udpgso_bench_tx: audit error queue

2019-05-27 Thread Fred Klassen
Willem, Thanks for spending so much time with me on this patch. I’m pretty new to this, so I know I am making lots of mistakes. I have been working on a v2 of the selftests in net-next, but want to review the layout of the report before I submit (see below). Also, I my v2 fix in net is still up f

Re: [PATCH net-next] macvlan: Replace strncpy() by strscpy()

2019-05-27 Thread Stephen Hemminger
On Mon, 27 May 2019 16:28:05 -0500 "Gustavo A. R. Silva" wrote: > On 5/27/19 4:20 PM, Stephen Hemminger wrote: > > On Mon, 27 May 2019 13:38:55 -0500 > > "Gustavo A. R. Silva" wrote: > > > >> The strncpy() function is being deprecated. Replace it by the safer > >> strscpy() and fix the follow

Re: [PATCH net 4/4] net/udpgso_bench_tx: audit error queue

2019-05-27 Thread Willem de Bruijn
On Mon, May 27, 2019 at 5:30 PM Fred Klassen wrote: > > Willem, > > Thanks for spending so much time with me on this patch. I’m pretty > new to this, so I know I am making lots of mistakes. I have been > working on a v2 of the selftests in net-next, but want to review the > layout of the report be

Re: 5.1.0-next-20190520 -- emacs segfaults on 32-bit machine Re: 5.2-rc0.8: emacs segfaults?! x220, with 32-bit userland

2019-05-27 Thread Pavel Machek
On Mon 2019-05-27 15:08:48, Sebastian Andrzej Siewior wrote: > On 2019-05-27 15:03:17 [+0200], Pavel Machek wrote: > > > could you please send me (offlist) your .config? Also, what kind of > > > userland do you run? Something like Debian stable? > > > > Yep, debian stable. > > Since we had a litt

linux-next: Fixes tag needs some work in the wireless-drivers-next tree

2019-05-27 Thread Stephen Rothwell
Hi all, In commit 9280f4fc06f4 ("ath10k: Fix the wrong value of enums for wmi tlv stats id") Fixes tag Fixes: f40a307eb92c ("ath10k: Fill rx duration for each peer in fw_stats for WCN3990) has these problem(s): - Subject has leading but no trailing quotes In commit 93ee3d108fc7 ("a

[PATCH 1/8] perf/x86: Add msr probe interface

2019-05-27 Thread Jiri Olsa
Adding perf_msr_probe function to provide interface for checking up on MSR register and set the related attribute group visibility. User defines following struct for each MSR register: struct perf_msr { u64 msr; struct attribute_group *grp; bool

[PATCH 2/8] perf/x86/msr: Use new probe function

2019-05-27 Thread Jiri Olsa
Using perf_msr_probe function to probe for msr events. The functionality is the same, with one exception, that perf_msr_probe checks for rdmsr to return value != 0 for given MSR register. Using the new attribute groups and adding the events via pmu::attr_update. Signed-off-by: Jiri Olsa --- ar

[PATCH 0/8] perf/x86: Rework msr probe interface

2019-05-27 Thread Jiri Olsa
hi, following up on [1], [2] and [3], this patchset adds update attribute groups to pmu, factors out the MSR probe code and use it in msr,cstate* and rapl PMUs. The functionality stays the same with one exception: the event is not exported if the rdmsr return zero on event's msr. And also: ;-) >

[PATCH 4/8] perf/x86/rapl: Use new msr detection interface

2019-05-27 Thread Jiri Olsa
Using perf_msr_probe function to probe for rapl msrs. Adding new rapl_model_match device table, that gathers events info for given model, following the msr and cstate module design. It will replace the current rapl_cpu_match device table and detection code in following patches. Signed-off-by: Ji

[tip:WIP.x86/core 28/29] arch/x86/kernel/cpu/acrn.c:52:2: error: implicit declaration of function 'entering_ack_irq'; did you mean 'spin_lock_irq'?

2019-05-27 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/core head: 830be9dae84c3a781f6d1594c4038c164bbae52b commit: 6fc278e883365e67dd4a35e25b756d9d0c9d913c [28/29] x86/acrn: Use HYPERVISOR_CALLBACK_VECTOR for ACRN guest upcall vector config: x86_64-randconfig-s505280430 (att

[PATCH 5/8] perf/x86/rapl: Get rapl_cntr_mask from new probe framework

2019-05-27 Thread Jiri Olsa
We get rapl_cntr_mask from perf_msr_probe call, as a replacement for current intel_rapl_init_fun::cntr_mask value for each model. Signed-off-by: Jiri Olsa --- arch/x86/events/intel/rapl.c | 38 ++-- 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/ar

[PATCH 7/8] perf/x86/rapl: Get attributes from new probe framework

2019-05-27 Thread Jiri Olsa
We no longer need model specific attribute arrays, because we get all this detected in rapl_events_attrs. Signed-off-by: Jiri Olsa --- arch/x86/events/intel/rapl.c | 89 1 file changed, 89 deletions(-) diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/eve

[PATCH 6/8] perf/x86/rapl: Get msr values from new probe framework

2019-05-27 Thread Jiri Olsa
There's no need to have special code for getting the bit and msr value for given event. We can now easily get it from rapl_msrs array. Also getting rid of RAPL_IDX_*, which is no longer needed and replacing INTEL_RAPL* with PERF_RAPL* enums. Signed-off-by: Jiri Olsa --- arch/x86/events/intel/ra

[PATCH 8/8] perf/x86/rapl: Get quirk state from new probe framework

2019-05-27 Thread Jiri Olsa
Getting the apply_quirk bool from new rapl_model_match array. And because apply_quirk was the last remaining piece of data in rapl_cpu_match, replacing it with rapl_model_match as device table. The switch to new perf_msr_probe detection API is done. Signed-off-by: Jiri Olsa --- arch/x86/events

[PATCH 3/8] perf/x86/cstate: Use new probe function

2019-05-27 Thread Jiri Olsa
Using perf_msr_probe function to probe for cstate events. The functionality is the same, with one exception, that perf_msr_probe checks for rdmsr to return value != 0 for given MSR register. Using the new attribute groups and adding the events via pmu::attr_update. Signed-off-by: Jiri Olsa ---

Re: [PATCH -next] fpga: dfl: fme: Remove set but not used variable 'fme'

2019-05-27 Thread Ben Widawsky
On 19-05-27 23:34:24, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/fpga/dfl-fme-main.c: In function fme_dev_destroy: > drivers/fpga/dfl-fme-main.c:216:18: warning: variable fme set but not used > [-Wunused-but-set-variable] > > It's never used since introduction

Re: [PATCH -next] fpga: dfl: afu: Remove set but not used variable 'afu'

2019-05-27 Thread Ben Widawsky
On 19-05-27 23:37:55, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/fpga/dfl-afu-main.c: In function afu_dev_destroy: > drivers/fpga/dfl-afu-main.c:529:18: warning: variable afu set but not used > [-Wunused-but-set-variable] > > It is never used since introductio

Re: uapi headers userspace build results

2019-05-27 Thread Randy Dunlap
Hi Jayant, What ever happened to this script and subsequent patches? thanks. On 6/19/18 11:17 AM, Randy Dunlap wrote: > On 06/18/2018 06:47 PM, Jayant Chowdhary wrote: >> Hi Randy, >> >> On 06/12/2018 05:07 PM, Randy Dunlap wrote: >>> On 06/12/2018 01:39 PM, Jayant Chowdhary wrote: Hi Randy

[GIT PULL] perf/urgent improvements and fixes

2019-05-27 Thread Arnaldo Carvalho de Melo
.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-5.2-20190527 for you to fetch changes up to b8e86fe4dfe0a14b7f24277c2864b179557f788c: tools headers UAPI: Sync kvm.h headers with the kernel sources (2019-05-27 11:05:32 -0300)

[PATCH 03/44] perf auxtrace: Fix itrace defaults for perf script

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Commit 4eb068157121 ("perf script: Make itrace script default to all calls") does not work for the case when '--itrace' only is used, because default_no_sample is not being passed. Example: Before: $ perf record -e intel_pt/cyc/u ls $ perf script --itrace > cmp1.txt

[PATCH 02/44] perf intel-pt: Fix itrace defaults for perf script

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Commit 4eb068157121 ("perf script: Make itrace script default to all calls") does not work because 'use_browser' is being used to determine whether to default to periodic sampling (i.e. better for perf report). The result is that nothing but CBR events display for perf script

[PATCH 11/44] perf beauty: Add generator for fspick's 'flags' arg values

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo $ tools/perf/trace/beauty/fspick.sh static const char *fspick_flags[] = { [ilog2(0x0001) + 1] = "CLOEXEC", [ilog2(0x0002) + 1] = "SYMLINK_NOFOLLOW", [ilog2(0x0004) + 1] = "NO_AUTOMOUNT", [ilog2(0x0008) + 1]

[PATCH 08/44] perf augmented_raw_syscalls: Fix up comment

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Cut'n'paste error, the second comment is about the syscalls that have as its second arg a string. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-zo5s6rloy42u41acsf6q3...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo

[PATCH 06/44] perf arm64: Fix mksyscalltbl when system kernel headers are ahead of the kernel

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Vitaly Chikunov When a host system has kernel headers that are newer than a compiling kernel, mksyscalltbl fails with errors such as: : In function 'main': :271:44: error: '__NR_kexec_file_load' undeclared (first use in this function) :271:44: note: each undeclared identifier is rep

[PATCH 01/44] perf-with-kcore.sh: Always allow fix_buildid_cache_permissions

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The user's buildid cache may contain entries added by root even if root has its own home directory (e.g. by using perfconfig to specify the same buildid dir), so remove that validation. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Link: http://lkml.kernel.org/r/20190412113830

[PATCH 14/44] perf trace: Beautify 'fsconfig' arguments

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Use existing beautifiers for the first arg, fd, assigned using the heuristic that looks for syscall arg names and associates SCA_FD with 'fd' named argumes, and wire up the recently introduced fsconfig cmd table generator. Now it should be possible to just use:

[PATCH 09/44] perf beauty: Add generator for 'move_mount' flags argument

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo $ tools/perf/trace/beauty/move_mount_flags.sh static const char *move_mount_flags[] = { [ilog2(0x0001) + 1] = "F_SYMLINKS", [ilog2(0x0002) + 1] = "F_AUTOMOUNTS", [ilog2(0x0004) + 1] = "F_EMPTY_PATH", [ilog2(0x0

[PATCH 05/44] perf data: Fix 'strncat may truncate' build failure with recent gcc

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Shawn Landden This strncat() is safe because the buffer was allocated with zalloc(), however gcc doesn't know that. Since the string always has 4 non-null bytes, just use memcpy() here. CC /home/shawn/linux/tools/perf/util/data-convert-bt.o In file included from /usr/include/st

[PATCH 13/44] perf beauty: Add generator for fsconfig's 'cmd' arg values

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo $ tools/perf/trace/beauty/fsconfig.sh static const char *fsconfig_cmds[] = { [0] = "SET_FLAG", [1] = "SET_STRING", [2] = "SET_BINARY", [3] = "SET_PATH", [4] = "SET_PATH_EMPTY", [5] = "SET_FD",

[PATCH 07/44] tools include UAPI: Update copy of files related to new fspick, fsmount, fsconfig, fsopen, move_mount and open_tree syscalls

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Copy the headers changed by these csets: d8076bdb56af ("uapi: Wire up the mount API syscalls on non-x86 arches [ver #2]") 9c8ad7a2ff0b ("uapi, x86: Fix the syscall numbering of the mount API syscalls [ver #2]") cf3cba4a429b ("vfs: syscall: Add fspick() to s

[PATCH 15/44] perf beauty: Add generator for fsmount's 'attr_flags' arg values

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo $ tools/perf/trace/beauty/fsmount.sh static const char *fsmount_attr_flags[] = { [ilog2(0x0001) + 1] = "RDONLY", [ilog2(0x0002) + 1] = "NOSUID", [ilog2(0x0004) + 1] = "NODEV", [ilog2(0x0008) + 1] = "NOEXEC"

[PATCH 04/44] perf intel-pt: Fix itrace defaults for perf script intel-pt documentation

2019-05-27 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Fix intel-pt documentation to reflect the change of itrace defaults for perf script. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: sta...@vger.kernel.org Fixes: 4eb068157121 ("perf script: Make itrace script default to all calls") Link: http://lkml.kernel.org/r/20190520113

<    1   2   3   4   5   6   7   8   9   >