[tip:perf/urgent] tools headers UAPI: Update tools's copy of kvm.h headers

2019-07-29 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: e0d99c4d24fd8861da724b88ebd18a9fae8a2260 Gitweb: https://git.kernel.org/tip/e0d99c4d24fd8861da724b88ebd18a9fae8a2260 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 26 Jul 2019 12:43:23 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 26 Jul 2019 12:43:23 -0300

[tip:perf/urgent] tools include UAPI: Sync x86's syscalls_64.tbl and generic unistd.h to pick up clone3 and pidfd_open

2019-07-29 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 820571af721990e354649368e641313f85a29976 Gitweb: https://git.kernel.org/tip/820571af721990e354649368e641313f85a29976 Author: Arnaldo Carvalho de Melo AuthorDate: Fri, 26 Jul 2019 12:31:28 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 26 Jul 2019 12:31:28 -0300

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

2019-07-29 Thread Stephen Rothwell
Hi all, Commit cc1c097b880a ("net/mlx5: fix -Wtype-limits compilation warnings") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgp6mtDmcXy77.pgp Description: OpenPGP digital signature

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

2019-07-29 Thread Stephen Rothwell
Hi all, In commit 473d924d7d46 ("can: fix ioctl function removal") Fixes tag Fixes: 60649d4e0af ("can: remove obsolete empty ioctl() handler") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more) or (for git v2.11 or

Re: [GIT PULL] perf/urgent fixes

2019-07-29 Thread Ingo Molnar
; > perf/x86/intel: Mark expected switch fall-throughs (2019-07-25 15:57:03 > +0200) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-urgent-for-mingo-5.3-20190729 > > for you to fetch changes up

Re: [PATCH v2] driver core: Remove device link creation limitation

2019-07-29 Thread Rafael J. Wysocki
On Mon, Jul 29, 2019 at 10:47 PM Saravana Kannan wrote: > > Rafael, > > This is the fix you need. Or something link this. > > I had asked you to reject DL_FLAG_MANAGED as an input flag if you are > marking it as internal (in the comments). But looks like you were also > trying to check for

Re: [PATCH v3] sched/core: Don't use dying mm as active_mm of kthreads

2019-07-29 Thread Rik van Riel
On Mon, 2019-07-29 at 17:07 -0400, Waiman Long wrote: > It was found that a dying mm_struct where the owning task has exited > can stay on as active_mm of kernel threads as long as no other user > tasks run on those CPUs that use it as active_mm. This prolongs the > life time of dying mm holding

[PATCH] watchdog device drivers:pc87413_wdt: Rewriting of pc87413_wdt driver to utilize common watchdog interface

2019-07-29 Thread Mark Balantzyan
There is a potential for the variable swc_base_addr in the call chain of the driver initialization function (init) to be used before initialization. This brought up the need for, by rewriting the driver to use the common watchdog interface, ensuring to have all resources in place. This patch

Re: [PATCH v2 3/6] pwm: jz4740: Apply configuration atomically

2019-07-29 Thread Paul Cercueil
Hi Uwe, Le mer. 24 juil. 2019 à 2:47, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : Hello Paul, On Tue, Jul 23, 2019 at 04:46:40PM -0400, Paul Cercueil wrote: Le lun. 22 juil. 2019 à 15:34, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : > On Fri, Jun 07, 2019 at 05:44:07PM +0200, Paul

[PATCH 04/12] tools headers UAPI: Update tools's copy of drm.h headers

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Picking the changes from: c5d3e39caa45 ("drm/i915: Engine discovery query") a88b6e4cbafd ("drm/i915: Allow specification of parallel execbuf") ee1136908e9b ("drm/i915/execlists: Virtual engine bonding") 6d06779e8672 ("drm/i915: Load balancing across a

[PATCH 07/12] tools headers UAPI: Sync sched.h with the kernel

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To get the changes in: a509a7cd7974 ("sched/uclamp: Extend sched_setattr() to support utilization clamping") 1d6362fa0cfc ("sched/core: Allow sched_setattr() to use the current policy") 7f192e3cd316 ("fork: add clone3") And silence this perf build warning:

[PATCH 03/12] tools headers UAPI: Update tools's copy of mman.h headers

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick up the changes from: 8aa3c927ec10 ("mm/mmap: move common defines to mman-common.h") 22fcea6f85f2 ("mm: move MAP_SYNC to asm-generic/mman-common.h") 0bf5f9492389 ("mm: fix the MAP_UNINITIALIZED flag") To address the following perf build warnings:

[GIT PULL] perf/urgent fixes

2019-07-29 Thread Arnaldo Carvalho de Melo
in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-5.3-20190729 for you to fetch changes up to 8aa259b10a6a759c50137bbbf225df0c17ca5d27: libbpf: fix missing __WORDSIZE definition (2019-07-29 10:18:08 -0300

[PATCH 09/12] perf header: Fix divide by zero error if f_header.attr_size==0

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Vince Weaver So I have been having lots of trouble with hand-crafted perf.data files causing segfaults and the like, so I have started fuzzing the perf tool. First issue found: If f_header.attr_size is 0 in the perf.data file, then perf will crash with a divide-by-zero error. Committer

[PATCH 05/12] tools perf beauty: Fix usbdevfs_ioctl table generator to handle _IOC()

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In addition to _IOW() and _IOR(), to handle this case: #define USBDEVFS_CONNINFO_EX(len) _IOC(_IOC_READ, 'U', 32, len) That will happen in the next sync of this header file. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Luis Cláudio Gonçalves Cc: Namhyung Kim Link:

[PATCH 06/12] tools headers UAPI: Sync usbdevice_fs.h with the kernels to get new ioctl

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To get the changes in: 6d101f24f1dd ("USB: add usbfs ioctl to retrieve the connection parameters") And address this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/usbdevice_fs.h' differs from latest version at

[PATCH 02/12] tools headers UAPI: Update tools's copy of kvm.h headers

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Picking the changes from: 66bb8a065f5a ("KVM: x86: PMU Event Filter") f087a02941fe ("KVM: nVMX: Stash L1's CR3 in vmcs01.GUEST_CR3 on nested entry w/o EPT") 99adb567632b ("KVM: arm/arm64: Add save/restore support for firmware workaround state") Silencing

[PATCH 08/12] tools headers UAPI: Sync if_link.h with the kernel

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick the changes in: 07a4ddec3ce9 ("bonding: add an option to specify a delay between peer notifications") And silence this build warning: Kernel ABI header at 'tools/include/uapi/linux/if_link.h' differs from latest version at

Re: [PATCH] mips: avoid explicit UB in assignment of mips_io_port_base

2019-07-29 Thread Nathan Chancellor
On Mon, Jul 29, 2019 at 02:10:12PM -0700, Nick Desaulniers wrote: > The code in question is modifying a variable declared const through > pointer manipulation. Such code is explicitly undefined behavior, and > is the lone issue preventing malta_defconfig from booting when built > with Clang: > >

[PATCH 01/12] tools include UAPI: Sync x86's syscalls_64.tbl and generic unistd.h to pick up clone3 and pidfd_open

2019-07-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo 05a70a8ec287 ("unistd: protect clone3 via __ARCH_WANT_SYS_CLONE3") 8f3220a80654 ("arch: wire-up clone3() syscall") 7615d9e1780e ("arch: wire-up pidfd_open()") Silencing the following tools/perf build warnings Warning: Kernel ABI header at

Re: [PATCH 03/14] sched,fair: redefine runnable_load_avg as the sum of task_h_load

2019-07-29 Thread Rik van Riel
On Mon, 2019-07-29 at 22:05 +0200, Peter Zijlstra wrote: > On Mon, Jul 22, 2019 at 01:33:37PM -0400, Rik van Riel wrote: > > @@ -3012,25 +2983,24 @@ static inline int > > throttled_hierarchy(struct cfs_rq *cfs_rq); > > static void update_cfs_group(struct sched_entity *se) > > { > > struct

Re: [PATCH v3] sched/core: Don't use dying mm as active_mm of kthreads

2019-07-29 Thread Waiman Long
On 7/29/19 5:07 PM, Waiman Long wrote: > It was found that a dying mm_struct where the owning task has exited > can stay on as active_mm of kernel threads as long as no other user > tasks run on those CPUs that use it as active_mm. This prolongs the > life time of dying mm holding up some

[PATCH] mips: avoid explicit UB in assignment of mips_io_port_base

2019-07-29 Thread Nick Desaulniers
The code in question is modifying a variable declared const through pointer manipulation. Such code is explicitly undefined behavior, and is the lone issue preventing malta_defconfig from booting when built with Clang: If an attempt is made to modify an object defined with a const-qualified type

Re: [PATCH] driver core: platform: return -ENXIO for missing GpioInt

2019-07-29 Thread Enrico Granata
On Mon, Jul 29, 2019 at 2:03 PM Brian Norris wrote: > > On Mon, Jul 29, 2019 at 1:54 PM Nathan Chancellor > wrote: > > On Mon, Jul 29, 2019 at 01:49:54PM -0700, Brian Norris wrote: > > > Side note: it might have helped alleviate some of this pain if there > > > were email notifications to the

Re: [PATCH] net: wan: sdla: Mark expected switch fall-through

2019-07-29 Thread David Miller
From: "Gustavo A. R. Silva" Date: Mon, 29 Jul 2019 15:01:39 -0500 > Mark switch cases where we are expecting to fall through. > > This patch fixes the following warning (Building: i386): > > drivers/net/wan/sdla.c: In function ‘sdla_errors’: > drivers/net/wan/sdla.c:414:7: warning: this

Re: [PATCH][V2] drivers: thermal: processor_thermal_device: fix missing bitwise-or operators

2019-07-29 Thread Srinivas Pandruvada
On Mon, 2019-07-29 at 13:03 +0100, Colin King wrote: > From: Colin Ian King > > The variable val is having the top 8 bits cleared and then the > variable is being > re-assinged and setting just the top 8 bits. I believe the intention > was bitwise-or > in the top 8 bits. Fix this by replacing

Re: [RFC PATCH 15/16] RISC-V: KVM: Add SBI v0.1 support

2019-07-29 Thread Atish Patra
On Mon, 2019-07-29 at 22:08 +0200, Paolo Bonzini wrote: > On 29/07/19 21:51, Atish Patra wrote: > > On Mon, 2019-07-29 at 21:40 +0200, Paolo Bonzini wrote: > > > On 29/07/19 13:57, Anup Patel wrote: > > > > + csr_write(CSR_HSTATUS, vcpu->arch.guest_context.hstatus > > > > | > > > >

[PATCH v3] sched/core: Don't use dying mm as active_mm of kthreads

2019-07-29 Thread Waiman Long
It was found that a dying mm_struct where the owning task has exited can stay on as active_mm of kernel threads as long as no other user tasks run on those CPUs that use it as active_mm. This prolongs the life time of dying mm holding up some resources that cannot be freed on a mostly idle system.

Re: [PATCH v2] sched/core: Don't use dying mm as active_mm of kthreads

2019-07-29 Thread Waiman Long
On 7/29/19 4:18 AM, Qais Yousef wrote: > On 07/27/19 13:10, Waiman Long wrote: >> It was found that a dying mm_struct where the owning task has exited >> can stay on as active_mm of kernel threads as long as no other user >> tasks run on those CPUs that use it as active_mm. This prolongs the >>

Re: [PATCH] driver core: platform: return -ENXIO for missing GpioInt

2019-07-29 Thread Brian Norris
On Mon, Jul 29, 2019 at 1:54 PM Nathan Chancellor wrote: > On Mon, Jul 29, 2019 at 01:49:54PM -0700, Brian Norris wrote: > > Side note: it might have helped alleviate some of this pain if there > > were email notifications to the mailing list when a patch gets applied. > > I didn't realize (and

[PATCH] scsi: wd33c93: Mark expected swich fall-through

2019-07-29 Thread Gustavo A. R. Silva
Mark switch cases where we are expecting to fall through. This patch fixes the following warning (Building: m68k): drivers/scsi/wd33c93.c: In function ‘round_4’: drivers/scsi/wd33c93.c:1856:11: warning: this statement may fall through [-Wimplicit-fallthrough=] case 2: ++x; ^~~

Re: [PATCH] net: sctp: drop unneeded likely() call around IS_ERR()

2019-07-29 Thread David Miller
From: "Enrico Weigelt, metux IT consult" Date: Mon, 29 Jul 2019 20:55:21 +0200 > From: Enrico Weigelt > > IS_ERR() already calls unlikely(), so this extra unlikely() call > around IS_ERR() is not needed. > > Signed-off-by: Enrico Weigelt Applied.

Re: [PATCH 5.2 083/215] net/ipv4: fib_trie: Avoid cryptic ternary expressions

2019-07-29 Thread Nick Desaulniers
On Mon, Jul 29, 2019 at 1:57 PM Matthias Kaehlcke wrote: > > On Mon, Jul 29, 2019 at 01:54:22PM -0700, Matthias Kaehlcke wrote: > > Hi Greg, > > > > Toralf just pointed out in another thread that the commit message and > > the content of this patch don't match

Re: [RFC] net: phy: read link status twice when phy_check_link_status()

2019-07-29 Thread Heiner Kallweit
On 29.07.2019 05:59, liuyonglong wrote: > > > On 2019/7/27 2:14, Heiner Kallweit wrote: >> On 26.07.2019 11:53, Yonglong Liu wrote: >>> According to the datasheet of Marvell phy and Realtek phy, the >>> copper link status should read twice, or it may get a fake link >>> up status, and cause

Re: [PATCH 5.2 083/215] net/ipv4: fib_trie: Avoid cryptic ternary expressions

2019-07-29 Thread Matthias Kaehlcke
On Mon, Jul 29, 2019 at 01:54:22PM -0700, Matthias Kaehlcke wrote: > Hi Greg, > > Toralf just pointed out in another thread that the commit message and > the content of this patch don't match (https://lkml.org/lkml/2019/7/29/1475) > > I did some minor digging, the content of the queued patch is:

Re: [PATCH] driver core: platform: return -ENXIO for missing GpioInt

2019-07-29 Thread Enrico Granata
On Mon, Jul 29, 2019 at 1:50 PM Brian Norris wrote: > > Commit daaef255dc96 ("driver: platform: Support parsing GpioInt 0 in > platform_get_irq()") broke the Embedded Controller driver on most LPC > Chromebooks (i.e., most x86 Chromebooks), because cros_ec_lpc expects > platform_get_irq() to

[PATCH v2] Fix annotate.c use of uninitialized value error

2019-07-29 Thread Numfor Mbiziwo-Tiapo
Our local MSAN (Memory Sanitizer) build of perf throws a warning that comes from the "dso__disassemble_filename" function in "tools/perf/util/annotate.c" when running perf record. The warning stems from the call to readlink, in which "build_id_path" was being read into "linkname". Since readlink

[v5 2/2] gpio: aspeed: Add SGPIO driver

2019-07-29 Thread Hongwei Zhang
Add SGPIO driver support for Aspeed AST2500 SoC. Signed-off-by: Hongwei Zhang --- drivers/gpio/sgpio-aspeed.c | 521 1 file changed, 521 insertions(+) create mode 100644 drivers/gpio/sgpio-aspeed.c diff --git a/drivers/gpio/sgpio-aspeed.c

Re: [PATCH V2 2/4] drivers: qcom: rpmh-rsc: avoid locking in the interrupt handler

2019-07-29 Thread Stephen Boyd
Quoting Lina Iyer (2019-07-29 12:01:39) > On Thu, Jul 25 2019 at 09:44 -0600, Doug Anderson wrote: > >On Thu, Jul 25, 2019 at 8:18 AM Lina Iyer wrote: > >> > >> On Wed, Jul 24 2019 at 17:28 -0600, Doug Anderson wrote: > >> > > >> >Jumping in without reading all the context, but I saw this fly by

[PATCH v2] sound: dmasound_atari: Mark expected switch fall-through

2019-07-29 Thread Gustavo A. R. Silva
Mark switch cases where we are expecting to fall through. This patch fixes the following warning (Building: m68k): sound/oss/dmasound/dmasound_atari.c: warning: this statement may fall through [-Wimplicit-fallthrough=]: => 1449:24 Notice that, in this particular case, the code comment is

Re: [PATCH] driver core: platform: return -ENXIO for missing GpioInt

2019-07-29 Thread Nathan Chancellor
On Mon, Jul 29, 2019 at 01:49:54PM -0700, Brian Norris wrote: > Commit daaef255dc96 ("driver: platform: Support parsing GpioInt 0 in > platform_get_irq()") broke the Embedded Controller driver on most LPC > Chromebooks (i.e., most x86 Chromebooks), because cros_ec_lpc expects > platform_get_irq()

Re: [PATCH 5.2 083/215] net/ipv4: fib_trie: Avoid cryptic ternary expressions

2019-07-29 Thread Matthias Kaehlcke
Hi Greg, Toralf just pointed out in another thread that the commit message and the content of this patch don't match (https://lkml.org/lkml/2019/7/29/1475) I did some minor digging, the content of the queued patch is: commit 4df607cc6fe8e46b258ff2a53d0a60ca3008ffc7 Author: Nathan Huckleberry

Re: platform/x86/pcengines-apuv2: Missing apu4

2019-07-29 Thread Gerhard Wiesinger
On 29.07.2019 10:35, Enrico Weigelt, metux IT consult wrote: On 26.07.19 16:56, Gerhard Wiesinger wrote: Hello, I saw that the apu4 board is completly missing (also on 5.3rc1). Can you please add it. Should be very easy, see below. Still in the pipeline - don't have an apu4 board for

Re: sched: Unexpected reschedule of offline CPU#2!

2019-07-29 Thread Guenter Roeck
On Mon, Jul 29, 2019 at 12:47:45PM +0200, Peter Zijlstra wrote: > On Mon, Jul 29, 2019 at 12:38:30PM +0200, Thomas Gleixner wrote: > > On Mon, 29 Jul 2019, Peter Zijlstra wrote: > > > On Mon, Jul 29, 2019 at 11:58:24AM +0200, Thomas Gleixner wrote: > > > > On Mon, 29 Jul 2019, Peter Zijlstra

[PATCH] driver core: platform: return -ENXIO for missing GpioInt

2019-07-29 Thread Brian Norris
Commit daaef255dc96 ("driver: platform: Support parsing GpioInt 0 in platform_get_irq()") broke the Embedded Controller driver on most LPC Chromebooks (i.e., most x86 Chromebooks), because cros_ec_lpc expects platform_get_irq() to return -ENXIO for non-existent IRQs. Unfortunately,

Re: [PATCH v4 6/9] leds: multicolor: Introduce a multicolor class definition

2019-07-29 Thread Jacek Anaszewski
Dan, On 7/25/19 8:28 PM, Dan Murphy wrote: > Introduce a multicolor class that groups colored LEDs > within a LED node. > > The framework allows for dynamically setting individual LEDs > or setting brightness levels of LEDs and updating them virtually > simultaneously. > > Signed-off-by: Dan

Re: [PATCH v2 QEMU] virtio-balloon: Provide a interface for "bubble hinting"

2019-07-29 Thread Michael S. Tsirkin
On Mon, Jul 29, 2019 at 01:21:32PM -0700, Alexander Duyck wrote: > On Mon, Jul 29, 2019 at 12:25 PM Michael S. Tsirkin wrote: > > > > On Mon, Jul 29, 2019 at 09:58:04AM -0700, Alexander Duyck wrote: > > > On Wed, Jul 24, 2019 at 1:42 PM Michael S. Tsirkin > > > wrote: > > > > > > > > On Wed,

Re: [PATCH 0/2] Don't use SIGMINSTKSZ when enforcing alternative signal stack size for compat tasks

2019-07-29 Thread Aurelien Jarno
On 2018-07-25 14:45, Will Deacon wrote: > Hi all, > > The Debian folks have observed a failure in the 32-bit arm glibc testsuite > when running under a 64-bit kernel. They tracked this down to sigaltstack(2) > enforcing the alternative signal stack to be at least SIGMINSTKSZ bytes, > which is

Re: [PATCH] powerpc: workaround clang codegen bug in dcbz

2019-07-29 Thread Nick Desaulniers
On Mon, Jul 29, 2019 at 1:47 PM Nathan Chancellor wrote: > > On Mon, Jul 29, 2019 at 01:45:35PM -0700, Nick Desaulniers wrote: > > On Mon, Jul 29, 2019 at 1:32 PM Nathan Chancellor > > wrote: > > > > > > On Mon, Jul 29, 2019 at 01:25:41PM -0700, Nick Desaulniers wrote: > > > > But I'm not sure

Re: [PATCH v4 3/9] dt: bindings: Add multicolor class dt bindings documention

2019-07-29 Thread Jacek Anaszewski
Dan, On 7/25/19 8:28 PM, Dan Murphy wrote: > Add DT bindings for the LEDs multicolor class framework. > > Signed-off-by: Dan Murphy > --- > .../bindings/leds/leds-class-multicolor.txt | 96 +++ > 1 file changed, 96 insertions(+) > create mode 100644 >

Re: [PATCH] powerpc: workaround clang codegen bug in dcbz

2019-07-29 Thread Nathan Chancellor
On Mon, Jul 29, 2019 at 01:45:35PM -0700, Nick Desaulniers wrote: > On Mon, Jul 29, 2019 at 1:32 PM Nathan Chancellor > wrote: > > > > On Mon, Jul 29, 2019 at 01:25:41PM -0700, Nick Desaulniers wrote: > > > But I'm not sure how the inlined code generated would be affected. > > > > For the record:

Re: [PATCH v2] driver core: Remove device link creation limitation

2019-07-29 Thread Saravana Kannan
Rafael, This is the fix you need. Or something link this. I had asked you to reject DL_FLAG_MANAGED as an input flag if you are marking it as internal (in the comments). But looks like you were also trying to check for "undefined" bit positions. However, the check isn't correct because

Re: [PATCH v4 2/9] documention: leds: Add multicolor class documentation

2019-07-29 Thread Jacek Anaszewski
Dan, Now we will need this in rst format. It doesn't involve much tweaking to the txt, but some details like links to other documents can be enhanced. I've also come across an issue of lack of line break after listed quoted strings but I don't see such occurrence here. There might be still some

Re: [PATCH] powerpc: workaround clang codegen bug in dcbz

2019-07-29 Thread Nick Desaulniers
On Mon, Jul 29, 2019 at 1:32 PM Nathan Chancellor wrote: > > On Mon, Jul 29, 2019 at 01:25:41PM -0700, Nick Desaulniers wrote: > > But I'm not sure how the inlined code generated would be affected. > > For the record: > > https://godbolt.org/z/z57VU7 > > This seems consistent with what Michael

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

2019-07-29 Thread Jacek Anaszewski
Hi Dan, Thank you for the v4. I have a bunch of comments below. Please take a look. On 7/25/19 8:28 PM, Dan Murphy wrote: > Add a documentation of LED Multicolor LED class specific > sysfs attributes. > > Signed-off-by: Dan Murphy > --- > .../ABI/testing/sysfs-class-led-multicolor| 67

Re: [PATCH] x86: drop REG_OUT macro from hweight functions

2019-07-29 Thread Alexey Dobriyan
On Mon, Jul 29, 2019 at 12:04:47PM +0200, Peter Zijlstra wrote: > +#define _ASM_ARG1B __ASM_FORM_RAW(dil) > +#define _ASM_ARG2B __ASM_FORM_RAW(sil) > +#define _ASM_ARG3B __ASM_FORM_RAW(dl) > +#define _ASM_ARG4B __ASM_FORM_RAW(cl) > +#define _ASM_ARG5B __ASM_FORM_RAW(r8b) > +#define

[v6 2/2] gpio: aspeed: Add SGPIO driver

2019-07-29 Thread Hongwei Zhang
Hello Linus, Thanks for your detailed comments. We just submitted a v6 of sgpio-aspeed.c, it includes the updates based on your initial feedback: 1. fix a bug in aspeed_sgpio_dir_out() 2. some comments clean up. Regards, --Hongwei > From: Linus Walleij > Sent: Sunday, July 28, 2019 7:38 PM

Re: Kernel patch commit message and content do differ

2019-07-29 Thread Matthias Kaehlcke
Hi, On Mon, Jul 29, 2019 at 10:20:25PM +0200, Toralf Förster wrote: > May I ask you to clarify why > https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/diff/queue-5.2/net-ipv4-fib_trie-avoid-cryptic-ternary-expressions.patch?id=e1b76013997246a0d14b7443acbb393577d2a1e8 >

Re: [PATCH] Use term cumul-fence instead of fence in ->prop ordering example

2019-07-29 Thread Alan Stern
On Mon, 29 Jul 2019, Joel Fernandes (Google) wrote: > To reduce ambiguity in the more exotic ->prop ordering example, let us > use the term cumul-fence instead fence for the 2 fences, so that the > implict ->rfe on loads/stores to Y are covered by the description. > > Link:

Re: [PATCH v2] sched/core: Don't use dying mm as active_mm of kthreads

2019-07-29 Thread Waiman Long
On 7/29/19 2:58 PM, Michal Hocko wrote: > On Mon 29-07-19 11:27:35, Waiman Long wrote: >> On 7/29/19 5:12 AM, Michal Hocko wrote: >>> On Sat 27-07-19 13:10:47, Waiman Long wrote: It was found that a dying mm_struct where the owning task has exited can stay on as active_mm of kernel

Re: [PATCH] ubifs: ubifs_tnc_start_commit: Fix OOB in layout_in_gaps

2019-07-29 Thread Richard Weinberger
On Mon, Jul 29, 2019 at 6:51 PM Richard Weinberger wrote: > > - ubifs_assert(c, p < c->gap_lebs + c->lst.idx_lebs); > > + ubifs_assert(c, p < c->lst.idx_lebs); I wonder, doesn't this assert trigger too? -- Thanks, //richard

Re: [PATCH] powerpc: workaround clang codegen bug in dcbz

2019-07-29 Thread Nathan Chancellor
On Mon, Jul 29, 2019 at 01:25:41PM -0700, Nick Desaulniers wrote: > Commit 6c5875843b87 ("powerpc: slightly improve cache helpers") exposed > what looks like a codegen bug in Clang's handling of `%y` output > template with `Z` constraint. This is resulting in panics during boot > for 32b powerpc

[PATCH v2] Makefile: rules for printing kernel architecture and localversion

2019-07-29 Thread Enrico Weigelt, metux IT consult
trivial rule to print out the kernel arch and localversion, so external tools, like distro packagers, can easily get it. v2: add help text Signed-off-by: Enrico Weigelt, metux IT consult --- Makefile | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index

[v6 2/2] gpio: aspeed: Add SGPIO driver

2019-07-29 Thread Hongwei Zhang
Add SGPIO driver support for Aspeed AST2500 SoC. Signed-off-by: Hongwei Zhang --- drivers/gpio/sgpio-aspeed.c | 521 1 file changed, 521 insertions(+) create mode 100644 drivers/gpio/sgpio-aspeed.c diff --git a/drivers/gpio/sgpio-aspeed.c

Re: [PATCH v2] powerpc: slightly improve cache helpers

2019-07-29 Thread Nick Desaulniers
On Thu, Jul 25, 2019 at 2:30 PM Nick Desaulniers wrote: > > On Mon, Jul 22, 2019 at 10:58 AM Segher Boessenkool > wrote: > > > > On Mon, Jul 22, 2019 at 10:21:07AM -0700, Nick Desaulniers wrote: > > > On Sun, Jul 21, 2019 at 11:19 PM Segher Boessenkool > > > wrote: > > > > On Sun, Jul 21, 2019

Re: [PATCH v2 4/7] ASoC: dt-bindings: Document dl-mask property

2019-07-29 Thread Daniel Baluta
On Mon, Jul 29, 2019 at 11:15 PM Nicolin Chen wrote: > > On Sun, Jul 28, 2019 at 10:24:26PM +0300, Daniel Baluta wrote: > > SAI supports up to 8 data lines. This property let the user > > configure how many data lines should be used per transfer > > direction (Tx/Rx). > > This sounds a bit less

[PATCH] powerpc: workaround clang codegen bug in dcbz

2019-07-29 Thread Nick Desaulniers
Commit 6c5875843b87 ("powerpc: slightly improve cache helpers") exposed what looks like a codegen bug in Clang's handling of `%y` output template with `Z` constraint. This is resulting in panics during boot for 32b powerpc builds w/ Clang, as reported by our CI. Add back the original code that

Re: [PATCH 03/14] sched,fair: redefine runnable_load_avg as the sum of task_h_load

2019-07-29 Thread Peter Zijlstra
On Mon, Jul 22, 2019 at 01:33:37PM -0400, Rik van Riel wrote: > @@ -263,8 +258,8 @@ ___update_load_avg(struct sched_avg *sa, unsigned long > load, unsigned long runna > > int __update_load_avg_blocked_se(u64 now, struct sched_entity *se) > { > - if (___update_load_sum(now, >avg, 0, 0, 0))

[PATCH] watchdog: scx200_wdt: Mark expected switch fall-through

2019-07-29 Thread Gustavo A. R. Silva
Mark switch cases where we are expecting to fall through. This patch fixes the following warning (Building: i386): drivers/watchdog/scx200_wdt.c: In function ‘scx200_wdt_ioctl’: drivers/watchdog/scx200_wdt.c:188:3: warning: this statement may fall through [-Wimplicit-fallthrough=]

[PATCH] net: wan: sdla: Mark expected switch fall-through

2019-07-29 Thread Gustavo A. R. Silva
Mark switch cases where we are expecting to fall through. This patch fixes the following warning (Building: i386): drivers/net/wan/sdla.c: In function ‘sdla_errors’: drivers/net/wan/sdla.c:414:7: warning: this statement may fall through [-Wimplicit-fallthrough=] if (cmd ==

[PATCH] net/socket: fix GCC8+ Wpacked-not-aligned warnings

2019-07-29 Thread Qian Cai
In file included from ./include/linux/sctp.h:42, from net/core/skbuff.c:47: ./include/uapi/linux/sctp.h:395:1: warning: alignment 4 of 'struct sctp_paddr_change' is less than 8 [-Wpacked-not-aligned] } __attribute__((packed, aligned(4))); ^ ./include/uapi/linux/sctp.h:728:1:

RE: [PATCH net] hv_sock: Fix hang when a connection is closed

2019-07-29 Thread Dexuan Cui
> From: Sunil Muthuswamy > Sent: Monday, July 29, 2019 10:21 AM > > --- a/net/vmw_vsock/hyperv_transport.c > > +++ b/net/vmw_vsock/hyperv_transport.c > > @@ -309,9 +309,16 @@ static void hvs_close_connection(struct > vmbus_channel *chan) > > { > > struct sock *sk =

Re: [PATCH v2 QEMU] virtio-balloon: Provide a interface for "bubble hinting"

2019-07-29 Thread Alexander Duyck
On Mon, Jul 29, 2019 at 12:25 PM Michael S. Tsirkin wrote: > > On Mon, Jul 29, 2019 at 09:58:04AM -0700, Alexander Duyck wrote: > > On Wed, Jul 24, 2019 at 1:42 PM Michael S. Tsirkin wrote: > > > > > > On Wed, Jul 24, 2019 at 04:29:27PM -0400, Nitesh Narayan Lal wrote: > > > > > > > > On 7/24/19

Re: [PATCH v2 3/7] ASoC: fsl_sai: Add support to enable multiple data lines

2019-07-29 Thread Nicolin Chen
On Sun, Jul 28, 2019 at 10:24:25PM +0300, Daniel Baluta wrote: > SAI supports up to 8 Rx/Tx data lines which can be enabled > using TCE/RCE bits of TCR3/RCR3 registers. > > Data lines to be enabled are read from DT fsl,dl-mask property. > By default (if no DT entry is provided) only data line 0

Re: [PATCH] watchdog: scx200_wdt: Mark expected switch fall-through

2019-07-29 Thread Guenter Roeck
On Mon, Jul 29, 2019 at 03:06:02PM -0500, Gustavo A. R. Silva wrote: > Mark switch cases where we are expecting to fall through. > > This patch fixes the following warning (Building: i386): > > drivers/watchdog/scx200_wdt.c: In function ‘scx200_wdt_ioctl’: > drivers/watchdog/scx200_wdt.c:188:3:

Kernel patch commit message and content do differ

2019-07-29 Thread Toralf Förster
May I ask you to clarify why https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/diff/queue-5.2/net-ipv4-fib_trie-avoid-cryptic-ternary-expressions.patch?id=e1b76013997246a0d14b7443acbb393577d2a1e8 speaks about a ternary operator, whereas the diff shows a changed #define?

Re: [alsa-devel] [PATCH v2 1/7] ASoC: fsl_sai: Add registers definition for multiple datalines

2019-07-29 Thread Mark Brown
On Mon, Jul 29, 2019 at 10:57:43PM +0300, Daniel Baluta wrote: > On Mon, Jul 29, 2019 at 10:42 PM Nicolin Chen wrote: > > On Sun, Jul 28, 2019 at 10:24:23PM +0300, Daniel Baluta wrote: > > > @@ -704,7 +711,14 @@ static bool fsl_sai_readable_reg(struct device *dev, > > > unsigned int reg) > > >

Re: [PATCH v3 10/13] objtool: Make recordmcount into an objtool subcmd

2019-07-29 Thread Matt Helsley
> On Jul 28, 2019, at 10:48 AM, Josh Poimboeuf wrote: > > On Wed, Jul 24, 2019 at 02:05:04PM -0700, Matt Helsley wrote: >> diff --git a/scripts/Makefile.build b/scripts/Makefile.build >> index 08b70ee9614a..43707491317c 100644 >> --- a/scripts/Makefile.build >> +++ b/scripts/Makefile.build >>

[PATCH 4.14 000/293] 4.14.135-stable review

2019-07-29 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.135 release. There are 293 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed 31 Jul 2019 07:05:01 PM UTC. Anything

Re: [PATCH v4 0/3] Introduce Bandwidth OPPs for interconnects

2019-07-29 Thread Saravana Kannan
On Mon, Jul 29, 2019 at 2:35 AM Viresh Kumar wrote: > > On 26-07-19, 16:15, Saravana Kannan wrote: > > Interconnects and interconnect paths quantify their performance levels in > > terms of bandwidth and not in terms of frequency. So similar to how we have > > frequency based OPP tables in DT and

[PATCH 4.14 036/293] net: axienet: Fix race condition causing TX hang

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 7de44285c1f69ccfbe8be1d6a16fcd956681fee6 ] It is possible that the interrupt handler fires and frees up space in the TX ring in between checking for sufficient TX ring space and stopping the TX queue in axienet_start_xmit. If this happens, the queue wake from the interrupt

[PATCH 4.14 037/293] s390/qdio: handle PENDING state for QEBSM devices

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 04310324c6f482921c071444833e70fe861b73d9 ] When a CQ-enabled device uses QEBSM for SBAL state inspection, get_buf_states() can return the PENDING state for an Output Queue. get_outbound_buffer_frontier() isn't prepared for this, and any PENDING buffer will permanently stall all

[PATCH 4.14 040/293] ipset: Fix memory accounting for hash types on resize

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 11921796f4799ca9c61c4b22cc54d84aa69f8a35 ] If a fresh array block is allocated during resize, the current in-memory set size should be increased by the size of the block, not replaced by it. Before the fix, adding entries to a hash set type, leading to a table resize, caused an

[PATCH 4.14 042/293] perf test 6: Fix missing kvm module load for s390

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 53fe307dfd309e425b171f6272d64296a54f4dff ] Command # perf test -Fv 6 fails with error running test 100 'kvm-s390:kvm_s390_create_vm' failed to parse event 'kvm-s390:kvm_s390_create_vm', err -1, str 'unknown tracepoint' event syntax error:

[PATCH 4.14 044/293] iommu: Fix a leak in iommu_insert_resv_region

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit ad0834dedaa15c3a176f783c0373f836e44b4700 ] In case we expand an existing region, we unlink this latter and insert the larger one. In that case we should free the original region after the insertion. Also we can immediately return. Fixes: 6c65fb318e8b ("iommu:

[PATCH 4.14 013/293] media: spi: IR LED: add missing of table registration

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 24e4cf770371df6ad49ed873f21618d9878f64c8 ] MODULE_DEVICE_TABLE(of, should be called to complete DT OF mathing mechanism and register it. Before this patch: modinfo drivers/media/rc/ir-spi.ko | grep alias After this patch: modinfo drivers/media/rc/ir-spi.ko | grep alias

[PATCH 4.14 002/293] MIPS: fix build on non-linux hosts

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 1196364f21ffe5d1e6d83cafd6a2edb89404a3ae ] calc_vmlinuz_load_addr.c requires SZ_64K to be defined for alignment purposes. It included "../../../../include/linux/sizes.h" to define that size, however "sizes.h" tries to include which assumes linux system headers. These may not

[PATCH 4.14 038/293] RAS/CEC: Fix pfn insertion

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 6d8e294bf5f0e85c34e8b14b064e2965f53f38b0 ] When inserting random PFNs for debugging the CEC through (debugfs)/ras/cec/pfn, depending on the return value of pfn_set(), multiple values get inserted per a single write. That is because simple_attr_write() interprets a retval of 0

[PATCH 4.14 006/293] wil6210: fix potential out-of-bounds read

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit bfabdd6997323adbedccb13a3fed1967fb8cf8f5 ] Notice that *rc* can evaluate to up to 5, include/linux/netdevice.h: enum gro_result { GRO_MERGED, GRO_MERGED_FREE, GRO_HELD, GRO_NORMAL, GRO_DROP, GRO_CONSUMED, }; typedef enum

[PATCH 4.14 028/293] crypto: talitos - properly handle split ICV.

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit eae55a586c3c8b50982bad3c3426e9c9dd7a0075 ] The driver assumes that the ICV is as a single piece in the last element of the scatterlist. This assumption is wrong. This patch ensures that the ICV is properly handled regardless of the scatterlist layout. Fixes: 9c4a79653b35

[PATCH 4.14 031/293] locking/lockdep: Fix merging of hlocks with non-zero references

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit d9349850e188b8b59e5322fda17ff389a1c0cd7d ] The sequence static DEFINE_WW_CLASS(test_ww_class); struct ww_acquire_ctx ww_ctx; struct ww_mutex ww_lock_a; struct ww_mutex ww_lock_b; struct ww_mutex ww_lock_c; struct mutex lock_c;

Re: [PATCH v2 QEMU] virtio-balloon: Provide a interface for "bubble hinting"

2019-07-29 Thread Michael S. Tsirkin
On Mon, Jul 29, 2019 at 09:58:04AM -0700, Alexander Duyck wrote: > On Wed, Jul 24, 2019 at 1:42 PM Michael S. Tsirkin wrote: > > > > On Wed, Jul 24, 2019 at 04:29:27PM -0400, Nitesh Narayan Lal wrote: > > > > > > On 7/24/19 4:18 PM, Alexander Duyck wrote: > > > > On Wed, 2019-07-24 at 15:02

Re: [PATCH] rdma: siw: remove unused variable

2019-07-29 Thread John Hubbard
On 7/29/19 12:45 PM, Doug Ledford wrote: > On Mon, 2019-07-29 at 16:03 -0300, Jason Gunthorpe wrote: >> On Mon, Jul 29, 2019 at 02:19:35PM -0400, Doug Ledford wrote: >>> On Fri, 2019-07-26 at 11:25 +0200, Anders Roxell wrote: The variable 'p' si no longer used and the compiler rightly

[PATCH 4.14 048/293] bpf: silence warning messages in core

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit aee450cbe482a8c2f6fa5b05b178ef8b8ff107ca ] Compiling kernel/bpf/core.c with W=1 causes a flood of warnings: kernel/bpf/core.c:1198:65: warning: initialized field overwritten [-Woverride-init] 1198 | #define BPF_INSN_3_TBL(x, y, z) [BPF_##x | BPF_##y | BPF_##z] = true |

[PATCH 4.14 052/293] xfrm: fix sa selector validation

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit b8d6d0079757cbd1b69724cfd1c08e2171c68cee ] After commit b38ff4075a80, the following command does not work anymore: $ ip xfrm state add src 10.125.0.2 dst 10.125.0.1 proto esp spi 34 reqid 1 \ mode tunnel enc 'cbc(aes)' 0xb0abdba8b782ad9d364ec81e3a7d82a1 auth-trunc \

[PATCH 4.14 071/293] media: hdpvr: fix locking and a missing msleep

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 6bc5a4a1927556ff9adce1aa95ea408c95453225 ] This driver has three locking issues: - The wait_event_interruptible() condition calls hdpvr_get_next_buffer(dev) which uses a mutex, which is not allowed. Rewrite with list_empty_careful() that doesn't need locking. - In

[PATCH 4.14 069/293] media: coda: increment sequence offset for the last returned frame

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit b3b7d96817cdb8b6fc353867705275dce8f41ccc ] If no more frames are decoded in bitstream end mode, and a previously decoded frame has been returned, the firmware still increments the frame number. To avoid a sequence number mismatch after decoder restart, increment the

[PATCH 4.14 055/293] x86/atomic: Fix smp_mb__{before,after}_atomic()

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 69d927bba39517d0980462efc051875b7f4db185 ] Recent probing at the Linux Kernel Memory Model uncovered a 'surprise'. Strongly ordered architectures where the atomic RmW primitive implies full memory ordering and smp_mb__{before,after}_atomic() are a simple barrier() (such as x86)

[PATCH 4.14 078/293] ath10k: fix PCIE device wake up failed

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 011d4111c8c602ea829fa4917af1818eb0500a90 ] Observed PCIE device wake up failed after ~120 iterations of soft-reboot test. The error message is "ath10k_pci :01:00.0: failed to wake up device : -110" The call trace as below: ath10k_pci_probe -> ath10k_pci_force_wake ->

[PATCH 4.14 081/293] clocksource/drivers/exynos_mct: Increase priority over ARM arch timer

2019-07-29 Thread Greg Kroah-Hartman
[ Upstream commit 6282edb72bed5324352522d732080d4c1b9dfed6 ] Exynos SoCs based on CA7/CA15 have 2 timer interfaces: custom Exynos MCT (Multi Core Timer) and standard ARM Architected Timers. There are use cases, where both timer interfaces are used simultanously. One of such examples is using

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