[PATCH v5 5/9] leds: Add multicolor ID to the color ID list

2019-09-11 Thread Dan Murphy
Add a new color ID that is declared as MULTICOLOR as with the multicolor framework declaring a definitive color is not accurate as the node can contain multiple colors. Signed-off-by: Dan Murphy --- drivers/leds/led-core.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v5 7/9] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers

2019-09-11 Thread Dan Murphy
Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024, LP5018, LP5012 and LP5009 RGB LED device driver. The LP5036/30/24/18/12/9 can control RGB LEDs individually or as part of a control bank group. These devices have the ability to adjust the mixing control for the RGB LEDs to

[PATCH v5 8/9] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2019-09-11 Thread Dan Murphy
Introduce the LP5036/30/24/18/12/9 RGB LED driver. The difference in these parts are the number of LED outputs where the: LP5036 can control 36 LEDs LP5030 can control 30 LEDs LP5024 can control 24 LEDs LP5018 can control 18 LEDs LP5012 can control 12 LEDs LP509 can control 9 LEDs The device has

[PATCH v3 0/6] Update clone3 self-tests

2019-09-11 Thread Eugene Syromiatnikov
Hello. This patch set updates clone3 selftest in several aspects: - adding checks for exit_signal invalid values handling; - adding clone3 to selftests targets; - enabling clone3 tests on all architectures; - minor cleanups of the clone3 test. This respin alignes additional clone3 self-tests

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

2019-09-11 Thread Dan Murphy
Add a documentation of LED Multicolor LED class specific sysfs attributes. Signed-off-by: Dan Murphy --- .../ABI/testing/sysfs-class-led-multicolor| 73 +++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-led-multicolor diff --git

[PATCH v3 3/6] selftests/clone3: use uint64_t for flags parameter

2019-09-11 Thread Eugene Syromiatnikov
Flags parameter in both userspace and kernel clone args is 64-bit wide, there's little reason to have it signed and 32-bit in tests. * tools/testing/selftests/clone3/clone3.c: Include and . (call_clone3): Change flags parameter type from int to uint64_t. (test_clone3): Change flags parameter

[PATCH v3 4/6] selftests/clone3: fix up format strings

2019-09-11 Thread Eugene Syromiatnikov
* tools/testing/selftests/clone3/clone3.c (test_clone3): Change format qualifier for printing size field from %d to %zu; place colon right after the word "says". Signed-off-by: Eugene Syromiatnikov --- tools/testing/selftests/clone3/clone3.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v3 6/6] selftests: add clone3 to TARGETS

2019-09-11 Thread Eugene Syromiatnikov
* tools/testing/selftests/Makefile (TARGETS): Add clone3. Signed-off-by: Eugene Syromiatnikov --- tools/testing/selftests/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 25b43a8c..05163e4 100644 ---

[PATCH v3 2/6] selftests/clone3: add a check for invalid exit_signal

2019-09-11 Thread Eugene Syromiatnikov
Check that the kernel fails calls with exit_signal with non-zero highest 32 bits, negative 32-bit exit_signal, and invalid exit_signal withing CSIGNAL mask, like legacy clone syscalls do. * tools/testing/selftests/clone3/clone3.c (enum test_mode): Add CLONE3_ARGS_INVAL_EXIT_SIGNAL_BIG,

[PATCH v3 5/6] selftests/clone3: enable clone3 self-tests on all architectures

2019-09-11 Thread Eugene Syromiatnikov
clone3() is available on most architectures, so there's no reason to restrict the respective self-tests to x86_64. * tools/testing/selftests/clone3/Makefile (TEST_GEN_PROGS): Set always, not only ifeq ($(ARCH),x86_64). Signed-off-by: Eugene Syromiatnikov ---

[PATCH v3 1/6] selftests/clone3: convert test modes into an enum

2019-09-11 Thread Eugene Syromiatnikov
* tools/testing/selftests/clone3/clone3.c (CLONE3_ARGS_NO_TEST, CLONE3_ARGS_ALL_0, CLONE3_ARGS_ALL_1): Change into an enum. (call_clone3): Change test_mode parameter type to enum test_mode; use switch statement for actions that dependent on test_mode selection. (test_clone3): Change test_mode

Re: [RFC PATCH 1/2] x86: Don't let pgprot_modify() change the page encryption bit

2019-09-11 Thread Andy Lutomirski
On Wed, Sep 11, 2019 at 12:49 AM Thomas Hellström (VMware) wrote: > > Hi, Andy. > > On 9/11/19 6:18 AM, Andy Lutomirski wrote: > > > > As a for-real example, take a look at arch/x86/entry/vdso/vma.c. The > > "vvar" VMA contains multiple pages that are backed by different types > > of memory.

Re: [PATCH] firmware: broadcom: add OP-TEE based BNXT f/w manager

2019-09-11 Thread Sheetal Tigadoli
Hi Scott, Thanks for reviewing and your comments On Tue, Sep 10, 2019 at 9:34 PM Scott Branden wrote: > > Hi Sheetal, > > Some comments inline. > > On 2019-09-10 8:17 a.m., Sheetal Tigadoli wrote: > > From: Vikas Gupta > > > > This driver registers on TEE bus to interact with OP-TEE based > >

[PATCH v4 2/2] drm/virtio: Use vmalloc for command buffer allocations.

2019-09-11 Thread David Riley
Userspace requested command buffer allocations could be too large to make as a contiguous allocation. Use vmalloc if necessary to satisfy those allocations. Signed-off-by: David Riley --- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 4 +- drivers/gpu/drm/virtio/virtgpu_vq.c| 78

[PATCH v3 0/3] LLVM/Clang fixes for pseries_defconfig

2019-09-11 Thread Nathan Chancellor
Hi all, This series includes a set of fixes for LLVM/Clang when building pseries_defconfig. These have been floating around as standalone patches so I decided to gather them up as a series so it was easier to review/apply them. The versioning is a bit wonky because of this reason, I have included

[PATCH v3 1/3] powerpc: Don't add -mabi= flags when building with Clang

2019-09-11 Thread Nathan Chancellor
When building pseries_defconfig, building vdso32 errors out: error: unknown target ABI 'elfv1' This happens because -m32 in clang changes the target to 32-bit, which does not allow the ABI to be changed, as the setABI virtual function is not overridden:

[PATCH v3 2/3] powerpc: Avoid clang warnings around setjmp and longjmp

2019-09-11 Thread Nathan Chancellor
Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when setjmp is used") disabled -Wbuiltin-requires-header because of a warning about the setjmp and longjmp declarations. r367387 in clang added another diagnostic around this, complaining that there is no jmp_buf declaration. In

[PATCH v3 3/3] powerpc/prom_init: Use -ffreestanding to avoid a reference to bcmp

2019-09-11 Thread Nathan Chancellor
r370454 gives LLVM the ability to convert certain loops into a reference to bcmp as an optimization; this breaks prom_init_check.sh: CALLarch/powerpc/kernel/prom_init_check.sh Error: External symbol 'bcmp' referenced from prom_init.c make[2]: *** [arch/powerpc/kernel/Makefile:196:

Re: [PATCH v3 16/26] NFS: Move mount parameterisation bits into their own file

2019-09-11 Thread Chuck Lever
> On Sep 11, 2019, at 12:16 PM, Scott Mayhew wrote: > > From: David Howells > > Split various bits relating to mount parameterisation out from > fs/nfs/super.c into their own file to form the basis of filesystem context > handling for NFS. > > No other changes are made to the code beyond

[PATCH v6 4/4] mm: refresh ZONE_DMA and ZONE_DMA32 comments in 'enum zone_type'

2019-09-11 Thread Nicolas Saenz Julienne
These zones usage has evolved with time and the comments were outdated. This joins both ZONE_DMA and ZONE_DMA32 explanation and gives up to date examples on how they are used on different architectures. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Christoph Hellwig Reviewed-by: Catalin

[PATCH v6 0/4] Raspberry Pi 4 DMA addressing support

2019-09-11 Thread Nicolas Saenz Julienne
Hi all, this series attempts to address some issues we found while bringing up the new Raspberry Pi 4 in arm64 and it's intended to serve as a follow up of these discussions: v5: https://lkml.org/lkml/2019/9/9/170 v4: https://lkml.org/lkml/2019/9/6/352 v3: https://lkml.org/lkml/2019/9/2/589 v2:

[PATCH v6 1/4] arm64: mm: use arm64_dma_phys_limit instead of calling max_zone_dma_phys()

2019-09-11 Thread Nicolas Saenz Julienne
By the time we call zones_sizes_init() arm64_dma_phys_limit already contains the result of max_zone_dma_phys(). We use the variable instead of calling the function directly to save some precious cpu time. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Catalin Marinas ---

Re: [PATCH] module: Fix link failure due to invalid relocation on namespace offset

2019-09-11 Thread Jessica Yu
+++ Will Deacon [11/09/19 13:26 +0100]: Commit 8651ec01daed ("module: add support for symbol namespaces.") broke linking for arm64 defconfig: | lib/crypto/arc4.o: In function `__ksymtab_arc4_setkey': | arc4.c:(___ksymtab+arc4_setkey+0x8): undefined reference to `no symbol' |

[PATCH v6 3/4] arm64: use both ZONE_DMA and ZONE_DMA32

2019-09-11 Thread Nicolas Saenz Julienne
So far all arm64 devices have supported 32 bit DMA masks for their peripherals. This is not true anymore for the Raspberry Pi 4 as most of it's peripherals can only address the first GB of memory on a total of up to 4 GB. This goes against ZONE_DMA32's intent, as it's expected for ZONE_DMA32 to

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

2019-09-11 Thread Florian Weimer
* Mathieu Desnoyers: > +#ifdef SHARED > + if (rtld_active ()) > +{ > + /* Register rseq ABI to the kernel. */ > + (void) rseq_register_current_thread (); > +} > +#else I think this will need *another* check for the inner libc in an audit module. See what we do in malloc.

[PATCH v6 2/4] arm64: rename variables used to calculate ZONE_DMA32's size

2019-09-11 Thread Nicolas Saenz Julienne
Let the name indicate that they are used to calculate ZONE_DMA32's size as opposed to ZONE_DMA. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Catalin Marinas --- arch/arm64/mm/init.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH v2] leds: lm3532: Fix optional led-max-microamp prop error handling

2019-09-11 Thread Dan Murphy
Fix the error handling for the led-max-microamp property. Need to check if the property is present and then if it is retrieve the setting and its max boundary Reported-by: Pavel Machek Signed-off-by: Dan Murphy --- v2 - Changed full scale current check to use min function

Re: [PATCH] ftgmac100: Disable HW checksum generation on AST2500

2019-09-11 Thread Vijay Khemka
On 9/10/19, 4:08 PM, "Linux-aspeed on behalf of Vijay Khemka" wrote: On 9/10/19, 3:50 PM, "Linux-aspeed on behalf of Vijay Khemka" wrote: On 9/10/19, 3:05 PM, "Florian Fainelli" wrote: On 9/10/19 2:37 PM, Vijay Khemka

Re: [PATCH] ftgmac100: Disable HW checksum generation on AST2500

2019-09-11 Thread Florian Fainelli
On 9/11/19 11:30 AM, Vijay Khemka wrote: > > > On 9/10/19, 4:08 PM, "Linux-aspeed on behalf of Vijay Khemka" > vijaykhe...@fb.com> wrote: > > > > On 9/10/19, 3:50 PM, "Linux-aspeed on behalf of Vijay Khemka" > vijaykhe...@fb.com> wrote: > > > >

[GIT PULL 1/2] arm64: dts: exynos: Pull for v5.4

2019-09-11 Thread Krzysztof Kozlowski
Hi, Unfortunately the patches were applied right after closing the linux-next. Best regards, Krzysztof The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at:

[GIT PULL 2/2] ARM: samsung: mach/soc for v5.4, second pull

2019-09-11 Thread Krzysztof Kozlowski
Hi, Late pull, on top of previous pull request. Unfortunately the patches were applied right after closing the linux-next. Best regards, Krzysztof The following changes since commit c663d542bfb40eeeb6d393ed155c23a4666d65e1: MAINTAINERS: Extend patterns for Samsung SoC, Security Subsystem

ATN:PLEASE/ I AM Mr Mohammad Z. Raqab

2019-09-11 Thread Mr Mohammad Z. Raqab
ATN:PLEASE/ I AM Mr Mohammad Z. Raqab Before I introduce myself, I wish to inform you that this letter is not a hoax mail and I urge you to treat it serious. This letter must , come to you as a big surprise, but I believe it is only a day that people meet and become great friends and business

Re: [Ksummit-discuss] [PATCH v2 3/3] libnvdimm, MAINTAINERS: Maintainer Entry Profile

2019-09-11 Thread Dan Carpenter
On Wed, Sep 11, 2019 at 08:48:59AM -0700, Dan Williams wrote: > +Coding Style Addendum > +- > +libnvdimm expects multi-line statements to be double indented. I.e. > + > +if (x... > +&& ...y) { That looks horrible and it causes a checkpatch

Re: [PATCH v3 3/7] usb: mtu3: support ip-sleep wakeup for MT8183

2019-09-11 Thread Guenter Roeck
On Fri, Aug 30, 2019 at 03:40:50PM +0800, Chunfeng Yun wrote: > Support USB wakeup by ip-sleep mode for MT8183, it's similar to > MT8173 > > Signed-off-by: Chunfeng Yun > --- > v3: changes micros define > > v2: no changes > --- > drivers/usb/mtu3/mtu3_host.c | 14 +- > 1 file

Re: [PATCH v7 5/7] power: reset: add driver for mt6323 poweroff

2019-09-11 Thread Sean Wang
Hi, Frank On Tue, 2019-09-10 at 09:04 +0200, Frank Wunderlich wrote: > From: Josef Friedl > > add poweroff driver for mt6323 and make Makefile and Kconfig-Entries > > Suggested-by: Frank Wunderlich > Signed-off-by: Josef Friedl > Signed-off-by: Frank Wunderlich > Acked-by: Sebastian Reichel

Re: [PATCH] ftgmac100: Disable HW checksum generation on AST2500

2019-09-11 Thread Vijay Khemka
On 9/11/19, 11:34 AM, "Florian Fainelli" wrote: On 9/11/19 11:30 AM, Vijay Khemka wrote: > > > On 9/10/19, 4:08 PM, "Linux-aspeed on behalf of Vijay Khemka" wrote: > > > > On 9/10/19, 3:50 PM, "Linux-aspeed on behalf of Vijay Khemka" wrote:

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

2019-09-11 Thread Carlos O'Donell
On 9/11/19 2:26 PM, Florian Weimer wrote: > * Mathieu Desnoyers: > >> +#ifdef SHARED >> + if (rtld_active ()) >> +{ >> + /* Register rseq ABI to the kernel. */ >> + (void) rseq_register_current_thread (); >> +} >> +#else > > I think this will need *another* check for the

Re: [PATCH v3 16/26] NFS: Move mount parameterisation bits into their own file

2019-09-11 Thread Trond Myklebust
On Wed, 2019-09-11 at 14:24 -0400, Chuck Lever wrote: > > On Sep 11, 2019, at 12:16 PM, Scott Mayhew > > wrote: > > > > From: David Howells > > > > Split various bits relating to mount parameterisation out from > > fs/nfs/super.c into their own file to form the basis of filesystem > > context

Re: [PATCH v4] Staging: exfat: avoid use of strcpy

2019-09-11 Thread Dan Carpenter
On Wed, Sep 11, 2019 at 09:53:03PM +0200, Sandro Volery wrote: > diff --git a/drivers/staging/exfat/exfat_core.c > b/drivers/staging/exfat/exfat_core.c > index da8c58149c35..4336fee444ce 100644 > --- a/drivers/staging/exfat/exfat_core.c > +++ b/drivers/staging/exfat/exfat_core.c > @@ -2960,18

Re: [PATCH v3 1/8] cpufreq: ti-cpufreq: add support for omap34xx and omap36xx

2019-09-11 Thread Adam Ford
On Wed, Sep 11, 2019 at 12:47 PM H. Nikolaus Schaller wrote: > > This adds code and tables to read the silicon revision and > eFuse (speed binned / 720 MHz grade) bits for selecting > opp-v2 table entries. > > Since these bits are not always part of the syscon register > range (like for am33xx,

Re: [PATCH v4 1/9] dt-bindings: display: renesas,cmm: Add R-Car CMM documentation

2019-09-11 Thread Kieran Bingham
Hi Jacopo, On 06/09/2019 14:54, Jacopo Mondi wrote: > Add device tree bindings documentation for the Renesas R-Car Display > Unit Color Management Module. > > CMM is the image enhancement module available on each R-Car DU video > channel on R-Car Gen2 and Gen3 SoCs (V3H and V3M excluded). > >

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

2019-09-11 Thread Florian Weimer
* Carlos O'Donell: > It would be easier to merge the patch set if it were just an unconditional > registration like we do for set_robust_list(). Note that this depends on the in-tree system call numbers list, which I still need to finish according to Joseph's specifications. (We have something

Re: [PATCH v4] Staging: exfat: avoid use of strcpy

2019-09-11 Thread Sandro Volery
> On 11 Sep 2019, at 21:06, Dan Carpenter wrote: > > On Wed, Sep 11, 2019 at 09:53:03PM +0200, Sandro Volery wrote: >> diff --git a/drivers/staging/exfat/exfat_core.c >> b/drivers/staging/exfat/exfat_core.c >> index da8c58149c35..4336fee444ce 100644 >> ---

[PATCH] KVM: x86: Manually flush collapsible SPTEs only when toggling flags

2019-09-11 Thread Sean Christopherson
Zapping collapsible sptes, a.k.a. 4k sptes that can be promoted into a large page, is only necessary when changing only the dirty logging flag of a memory region. If the memslot is also being moved, then all sptes for the memslot are zapped when it is invalidated. When a memslot is being

Re: [PATCH v4] Staging: exfat: avoid use of strcpy

2019-09-11 Thread Dan Carpenter
No worries... We all have days like that occasionally. :P regards, dan carpenter

Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD

2019-09-11 Thread Qian Cai
> On Sep 11, 2019, at 12:34 PM, Waiman Long wrote: > > On 9/11/19 5:01 PM, Qian Cai wrote: >> >>> On Sep 11, 2019, at 11:05 AM, Waiman Long wrote: >>> >>> When allocating a large amount of static hugepages (~500-1500GB) on a >>> system with large number of CPUs (4, 8 or even 16 sockets),

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

2019-09-11 Thread Carlos O'Donell
On 9/11/19 3:08 PM, Florian Weimer wrote: > * Carlos O'Donell: > >> It would be easier to merge the patch set if it were just an unconditional >> registration like we do for set_robust_list(). > > Note that this depends on the in-tree system call numbers list, which I > still need to finish

[PATCH] KVM: PPC: Remove superfluous check for non-zero return value

2019-09-11 Thread Thomas Huth
After the kfree()s haven been removed in the previous commit 9798f4ea71ea ("fix rollback when kvmppc_xive_create fails"), the code can be simplified even more to simply always "return ret" now. Signed-off-by: Thomas Huth --- arch/powerpc/kvm/book3s_xive.c| 5 +

Re: [PATCH 0/3] fix emulation error on Windows bootup

2019-09-11 Thread Sean Christopherson
On Wed, Sep 11, 2019 at 05:51:05PM +0200, Paolo Bonzini wrote: > On 27/08/19 15:07, Jan Dakinevich wrote: > > This series intended to fix (again) a bug that was a subject of the > > following change: > > > > 6ea6e84 ("KVM: x86: inject exceptions produced by x86_decode_insn") > > > > Suddenly,

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

2019-09-11 Thread Florian Weimer
* Carlos O'Donell: > On 9/11/19 3:08 PM, Florian Weimer wrote: >> * Carlos O'Donell: >> >>> It would be easier to merge the patch set if it were just an unconditional >>> registration like we do for set_robust_list(). >> >> Note that this depends on the in-tree system call numbers list, which I

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

2019-09-11 Thread Florian Weimer
* Florian Weimer: > * Carlos O'Donell: > >> On 9/11/19 3:08 PM, Florian Weimer wrote: >>> * Carlos O'Donell: >>> It would be easier to merge the patch set if it were just an unconditional registration like we do for set_robust_list(). >>> >>> Note that this depends on the in-tree

Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD

2019-09-11 Thread Matthew Wilcox
On Wed, Sep 11, 2019 at 04:05:37PM +0100, Waiman Long wrote: > To remove the unacceptable delays, we have to limit the amount of wait > time on the mmap_sem. So the new down_write_timedlock() function is > used to acquire the write lock on the mmap_sem with a timeout value of > 10ms which should

Re: [PATCH v3] module: add link_flag pram in ref_module func to decide whether add usage link

2019-09-11 Thread Jessica Yu
+++ Zhiqiang Liu [20/07/19 22:40 +0800]: Users can call ref_module func in their modules to construct relationships with other modules. However, the holders '/sys/module//holders' of the target module donot include the users` module. So lsmod command misses detailed info of 'Used by'. When load

Re: [PATCH] x86/boot/64: Make level2_kernel_pgt pages invalid outside kernel area.

2019-09-11 Thread Steve Wahl
On Wed, Sep 11, 2019 at 03:28:56AM +0300, Kirill A. Shutemov wrote: > On Tue, Sep 10, 2019 at 09:28:10AM -0500, Steve Wahl wrote: > > On Mon, Sep 09, 2019 at 11:14:14AM +0300, Kirill A. Shutemov wrote: > > > On Fri, Sep 06, 2019 at 04:29:50PM -0500, Steve Wahl wrote: > > > > ... > > > > The answer

[PATCH v8 1/4] arm64: defconfig: Enable CONFIG_ENERGY_MODEL

2019-09-11 Thread Quentin Perret
From: Quentin Perret The recently introduced Energy Model (EM) framework manages power cost tables for the CPUs of the system. Its only user right now is the scheduler, in the context of Energy Aware Scheduling (EAS). However, the EM framework also offers a generic infrastructure that could

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

2019-09-11 Thread Rich Felker
On Wed, Sep 11, 2019 at 09:54:23PM +0200, Florian Weimer wrote: > * Carlos O'Donell: > > > On 9/11/19 3:08 PM, Florian Weimer wrote: > >> * Carlos O'Donell: > >> > >>> It would be easier to merge the patch set if it were just an unconditional > >>> registration like we do for set_robust_list().

[PATCH] platform/chrome: null check create_singlethread_workqueue

2019-09-11 Thread Navid Emamdoost
In cros_usbpd_logger_probe the return value of create_singlethread_workqueue may be null, it should be checked. Signed-off-by: Navid Emamdoost --- drivers/platform/chrome/cros_usbpd_logger.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/platform/chrome/cros_usbpd_logger.c

[PATCH] media: gspca: null check create_singlethread_workqueue

2019-09-11 Thread Navid Emamdoost
In sd_start the return value of create_singlethread_workqueue needs null check. Signed-off-by: Navid Emamdoost --- drivers/media/usb/gspca/sq905c.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/usb/gspca/sq905c.c b/drivers/media/usb/gspca/sq905c.c index

[PATCH] mm/memory_hotplug.c: s/is/if

2019-09-11 Thread Souptick Joarder
Corrected typo in documentation. Signed-off-by: Souptick Joarder --- mm/memory_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index dc0118f..5a404d3 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1795,7

[PATCH] media: usb: null check create_singlethread_workqueue

2019-09-11 Thread Navid Emamdoost
In sd_start return value of create_singlethread_workqueue needs null check. Signed-off-by: Navid Emamdoost --- drivers/media/usb/gspca/sq905.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/usb/gspca/sq905.c b/drivers/media/usb/gspca/sq905.c index

Re: [PATCH] bpf: validate bpf_func when BPF_JIT is enabled

2019-09-11 Thread Sami Tolvanen
On Wed, Sep 11, 2019 at 12:43 AM Yonghong Song wrote: > How about this: > > if (!IS_ENABLED(CONFIG_BPF_JIT_ALWAYS_ON) && !prog->jited) > goto out; > > if (unlikely(hdr->magic != BPF_BINARY_HEADER_MAGIC || > !arch_bpf_jit_check_func(prog))) { >

Re: [Ksummit-discuss] [PATCH v2 3/3] libnvdimm, MAINTAINERS: Maintainer Entry Profile

2019-09-11 Thread Joe Perches
On Wed, 2019-09-11 at 08:48 -0700, Dan Williams wrote: > Document the basic policies of the libnvdimm subsystem and provide a first > example of a Maintainer Entry Profile for others to duplicate and edit. [] > +Coding Style Addendum > +- > +libnvdimm expects multi-line

KASAN: slab-out-of-bounds Read in handle_vmptrld

2019-09-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1e3778cb Merge tag 'scsi-fixes' of git://git.kernel.org/pu.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15bdfc5e60 kernel config: https://syzkaller.appspot.com/x/.config?x=b89bb446a3faaba4

WARNING in handle_desc

2019-09-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:6d028043 Add linux-next specific files for 20190830 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=14467cf660 kernel config: https://syzkaller.appspot.com/x/.config?x=82a6bec43ab0cb69

Re: [PATCH 4/8] x86/platform/uv: Setup UV functions for Hubless UV Systems

2019-09-11 Thread Mike Travis
On 9/10/2019 11:07 PM, Ingo Molnar wrote: * Mike Travis wrote: +/* Initialize UV hubless systems */ +static __init int uv_system_init_hubless(void) +{ + int rc; + + /* Setup PCH NMI handler */ + uv_nmi_setup_hubless(); + + /* Init kernel/BIOS interface */ +

Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD

2019-09-11 Thread Waiman Long
On 9/11/19 8:57 PM, Matthew Wilcox wrote: > On Wed, Sep 11, 2019 at 04:05:37PM +0100, Waiman Long wrote: >> To remove the unacceptable delays, we have to limit the amount of wait >> time on the mmap_sem. So the new down_write_timedlock() function is >> used to acquire the write lock on the

Re: [PATCH v3 2/3] powerpc: Avoid clang warnings around setjmp and longjmp

2019-09-11 Thread Nick Desaulniers
On Wed, Sep 11, 2019 at 11:21 AM Nathan Chancellor wrote: > > Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when > setjmp is used") disabled -Wbuiltin-requires-header because of a warning > about the setjmp and longjmp declarations. > > r367387 in clang added another diagnostic

Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD

2019-09-11 Thread Waiman Long
On 9/11/19 8:42 PM, Qian Cai wrote: > >> On Sep 11, 2019, at 12:34 PM, Waiman Long wrote: >> >> On 9/11/19 5:01 PM, Qian Cai wrote: On Sep 11, 2019, at 11:05 AM, Waiman Long wrote: When allocating a large amount of static hugepages (~500-1500GB) on a system with large number

Re: [PATCH 4/8] x86/platform/uv: Setup UV functions for Hubless UV Systems

2019-09-11 Thread Mike Travis
On 9/11/2019 1:44 PM, Mike Travis wrote: On 9/10/2019 11:07 PM, Ingo Molnar wrote: * Mike Travis wrote: +/* Initialize UV hubless systems */ +static __init int uv_system_init_hubless(void) +{ +    int rc; + +    /* Setup PCH NMI handler */ +    uv_nmi_setup_hubless(); + +    /* Init

Re: [PATCH v3 3/3] powerpc/prom_init: Use -ffreestanding to avoid a reference to bcmp

2019-09-11 Thread Nick Desaulniers
On Wed, Sep 11, 2019 at 11:21 AM Nathan Chancellor wrote: > > r370454 gives LLVM the ability to convert certain loops into a reference > to bcmp as an optimization; this breaks prom_init_check.sh: > > CALLarch/powerpc/kernel/prom_init_check.sh > Error: External symbol 'bcmp' referenced from

Re: [GIT PULL 1/2] arm64: dts: exynos: Pull for v5.4

2019-09-11 Thread Arnd Bergmann
On Wed, Sep 11, 2019 at 8:36 PM Krzysztof Kozlowski wrote: > > Hi, > > Unfortunately the patches were applied right after closing the linux-next. Hi Krzysztof, I took a look at these and am not convinced this is right: > 1. Fix boot of Exynos7 due to wrong address/size of memory node, The

Re: [PATCH] bpf: validate bpf_func when BPF_JIT is enabled

2019-09-11 Thread Sami Tolvanen
On Wed, Sep 11, 2019 at 5:09 AM Toke Høiland-Jørgensen wrote: > > Björn Töpel writes: > > I ran the "xdp_rxq_info" sample with and without Sami's patch: > > Thanks for doing this! Yes, thanks for testing this Björn! > Or (1/22998700 - 1/23923874) * 10**9 == 1.7 nanoseconds of overhead. > > I

Re: [GIT PULL 2/2] ARM: samsung: mach/soc for v5.4, second pull

2019-09-11 Thread Arnd Bergmann
On Wed, Sep 11, 2019 at 8:36 PM Krzysztof Kozlowski wrote: > > Samsung mach/soc changes for v5.4, part 2 > > 1. Fix system restart on S3C6410 due to missing match of watchdog, > 2. Enable suppor for ARM architected timers on Exynos.

Re: [PATCH 1/3] docs: scsi: fix typo

2019-09-11 Thread Joe Perches
On Wed, 2019-09-11 at 17:37 -0300, André Almeida wrote: > "Busses" is the third person conjugation of verb "to buss" in the > present tense. "Buses" is the plural of bus, as in "serial bus". busses and buses are both acceptable plurals of bus https://www.dictionary.com/browse/bus

[PATCH v2] Added QUIRKs for ADATA XPG SX8200 Pro 512GB

2019-09-11 Thread Gabriel C
Booting with default_ps_max_latency_us >6000 makes the device fail. Also SUBNQN is NULL and gives a warning on each boot/resume. $ nvme id-ctrl /dev/nvme0 | grep ^subnqn subnqn: (null) I use this device with an Acer Nitro 5 (AN515-43-R8BF) Laptop. To be sure is not a Laptop issue

Re: [PATCH v2 0/2] mmc: core: Fix Marvell WiFi reset by adding SDIO API to replug card

2019-09-11 Thread Doug Anderson
Hi, On Thu, Jul 25, 2019 at 6:28 AM Ulf Hansson wrote: > > On Mon, 22 Jul 2019 at 21:41, Douglas Anderson wrote: > > > > As talked about in the thread at: > > > > http://lkml.kernel.org/r/CAD=FV=X7P2F1k_zwHc0mbtfk55-rucTz_GoDH=pl6zwqkyc...@mail.gmail.com > > > > ...when the Marvell WiFi card

Re: [PATCH] Added QUIRKs for ADATA XPG SX8200 Pro 512GB

2019-09-11 Thread Gabriel C
Am Mi., 11. Sept. 2019 um 19:39 Uhr schrieb Gabriel C : > > Am Mi., 11. Sept. 2019 um 19:21 Uhr schrieb Sagi Grimberg : > > > > This does not apply on nvme-5.4, can you please respin a patch > > that cleanly applies? > > Sure , just tell me from where to pull nvme-5.4 tree. > My match was against

[GIT PULL] integrity subsystem updates for v5.4

2019-09-11 Thread Mimi Zohar
Hi Linus, The major feature in this pull request is IMA support for measuring and appraising appended file signatures.  In addition are a couple of bug fixes and code cleanup to use struct_size(). In addition to the PE/COFF and IMA xattr signatures, the kexec kernel image may be signed with an

Re: [PATCH v2] Added QUIRKs for ADATA XPG SX8200 Pro 512GB

2019-09-11 Thread Jens Axboe
On 9/11/19 3:21 PM, Gabriel C wrote: > Booting with default_ps_max_latency_us >6000 makes the device fail. > Also SUBNQN is NULL and gives a warning on each boot/resume. >$ nvme id-ctrl /dev/nvme0 | grep ^subnqn > subnqn: (null) > > I use this device with an Acer Nitro 5

Re: Linux 5.3-rc8

2019-09-11 Thread Ahmed S. Darwish
On Wed, Sep 11, 2019 at 05:45:38PM +0100, Linus Torvalds wrote: > On Wed, Sep 11, 2019 at 5:07 PM Theodore Y. Ts'o wrote: > > > > > > Ted, comments? I'd hate to revert the ext4 thing just because it > > > happens to expose a bad thing in user space. > > > > Unfortuantely, I very much doubt this

Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD

2019-09-11 Thread Qian Cai
> On Sep 11, 2019, at 4:54 PM, Waiman Long wrote: > > On 9/11/19 8:42 PM, Qian Cai wrote: >> >>> On Sep 11, 2019, at 12:34 PM, Waiman Long wrote: >>> >>> On 9/11/19 5:01 PM, Qian Cai wrote: > On Sep 11, 2019, at 11:05 AM, Waiman Long wrote: > > When allocating a large amount

Re: [Ksummit-discuss] [PATCH v2 3/3] libnvdimm, MAINTAINERS: Maintainer Entry Profile

2019-09-11 Thread Jens Axboe
On 9/11/19 12:43 PM, Dan Carpenter wrote: > On Wed, Sep 11, 2019 at 08:48:59AM -0700, Dan Williams wrote: >> +Coding Style Addendum >> +- >> +libnvdimm expects multi-line statements to be double indented. I.e. >> + >> +if (x... >> +&& ...y) { >

Re: [PATCH v2] Added QUIRKs for ADATA XPG SX8200 Pro 512GB

2019-09-11 Thread Gabriel C
Am Mi., 11. Sept. 2019 um 23:33 Uhr schrieb Jens Axboe : > > On 9/11/19 3:21 PM, Gabriel C wrote: > > Booting with default_ps_max_latency_us >6000 makes the device fail. > > Also SUBNQN is NULL and gives a warning on each boot/resume. > >$ nvme id-ctrl /dev/nvme0 | grep ^subnqn > >

[PATCH 0/4] Cleanup arm64 driver dependencies

2019-09-11 Thread Amit Kucheria
I was using initcall_debugging on a QCOM platform and ran across a bunch of driver initcalls that are enabled even if their SoC support is disabled. Here are some fixups for a subset of them. Amit Kucheria (4): arm64: Kconfig: Fix XGENE driver dependencies arm64: Kconfig: Fix BRCMSTB driver

[PATCH 4/4] arm64: Kconfig: Fix EXYNOS driver dependencies

2019-09-11 Thread Amit Kucheria
Push various EXYNOS drivers behind ARCH_EXYNOS dependency so that it doesn't get enabled by default on other platforms. Signed-off-by: Amit Kucheria --- drivers/clk/Kconfig | 1 + drivers/regulator/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/clk/Kconfig

[PATCH 2/4] arm64: Kconfig: Fix BRCMSTB driver dependencies

2019-09-11 Thread Amit Kucheria
Push various BRCMSTB drivers behind ARCH_BRCMSTB dependency so that it doesn't get enabled by default on other platforms. Signed-off-by: Amit Kucheria --- drivers/bus/Kconfig | 1 + drivers/power/reset/Kconfig | 1 + drivers/soc/bcm/Kconfig | 1 + 3 files changed, 3 insertions(+)

[PATCH 1/4] arm64: Kconfig: Fix XGENE driver dependencies

2019-09-11 Thread Amit Kucheria
Push various XGENE drivers behind ARCH_XGENE dependency so that it doesn't get enabled by default on other platforms. Signed-off-by: Amit Kucheria --- arch/arm64/Kconfig.platforms | 3 +++ drivers/clk/Kconfig| 2 +- drivers/gpio/Kconfig | 1 +

[PATCH 3/4] arm64: Kconfig: Fix VEXPRESS driver dependencies

2019-09-11 Thread Amit Kucheria
Push various VEXPRESS drivers behind ARCH_VEXPRESS dependency so that it doesn't get enabled by default on other platforms. Signed-off-by: Amit Kucheria --- drivers/bus/Kconfig | 2 +- drivers/clk/versatile/Kconfig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v2] Added QUIRKs for ADATA XPG SX8200 Pro 512GB

2019-09-11 Thread Jens Axboe
On 9/11/19 4:18 PM, Gabriel C wrote: > Am Mi., 11. Sept. 2019 um 23:33 Uhr schrieb Jens Axboe : >> >> On 9/11/19 3:21 PM, Gabriel C wrote: >>>Booting with default_ps_max_latency_us >6000 makes the device fail. >>>Also SUBNQN is NULL and gives a warning on each boot/resume. >>> $ nvme

[PATCH 3/5] cpufreq: Initialize cpufreq-dt driver earlier

2019-09-11 Thread Amit Kucheria
This allows HW drivers that depend on cpufreq-dt to initialise earlier. Signed-off-by: Amit Kucheria --- drivers/cpufreq/cpufreq-dt-platdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index

[PATCH 4/5] clk: qcom: Initialise clock drivers earlier

2019-09-11 Thread Amit Kucheria
Initialise the clock drivers on sdm845 and qcs404 in core_initcall so we can have earlier access to cpufreq during booting. Signed-off-by: Amit Kucheria --- drivers/clk/qcom/clk-rpmh.c | 2 +- drivers/clk/qcom/gcc-qcs404.c | 2 +- drivers/clk/qcom/gcc-sdm845.c | 2 +- 3 files changed, 3

[PATCH 1/5] thermal: Initialize thermal subsystem earlier

2019-09-11 Thread Amit Kucheria
From: Lina Iyer Now that the thermal framework is built-in, in order to facilitate thermal mitigation as early as possible in the boot cycle, move the thermal framework initialization to core_initcall. However, netlink initialization happens only as part of subsys_initcall. At this time in the

[PATCH 2/5] cpufreq: Initialise the governors in core_initcall

2019-09-11 Thread Amit Kucheria
Initialise the cpufreq governors earlier to allow for earlier performance control during the boot process. Signed-off-by: Amit Kucheria --- drivers/cpufreq/cpufreq_conservative.c | 2 +- drivers/cpufreq/cpufreq_ondemand.c | 2 +- drivers/cpufreq/cpufreq_performance.c | 2 +-

[PATCH 5/5] cpufreq: qcom-hw: Move driver initialisation earlier

2019-09-11 Thread Amit Kucheria
Allow qcom-hw driver to initialise right after the cpufreq and thermal subsystems are initialised in core_initcall so we get earlier access to thermal mitigation. Signed-off-by: Amit Kucheria --- drivers/cpufreq/qcom-cpufreq-hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/5] Initialise thermal framework earlier during boot

2019-09-11 Thread Amit Kucheria
Device boot needs to be as fast as possible while keeping under the thermal envelope. Now that thermal framework is built-in to the kernel, we can initialize it earlier to enable thermal mitigation during boot. We also need the cpufreq HW drivers to be initialised earlier to act as the cooling

Re: [PATCH] mm: Add callback for defining compaction completion

2019-09-11 Thread Nitin Gupta
On Wed, 2019-09-11 at 08:45 +0200, Michal Hocko wrote: > On Tue 10-09-19 22:27:53, Nitin Gupta wrote: > [...] > > > On Tue 10-09-19 13:07:32, Nitin Gupta wrote: > > > > For some applications we need to allocate almost all memory as > > > > hugepages. > > > > However, on a running system, higher

Re: [PATCH v4 1/2] net: phy: dp83867: Add documentation for SGMII mode type

2019-09-11 Thread David Miller
From: Vitaly Gaiduk Date: Mon, 9 Sep 2019 20:19:25 +0300 > Add documentation of ti,sgmii-ref-clock-output-enable > which can be used to select SGMII mode type (4 or 6-wire). > > Signed-off-by: Vitaly Gaiduk Applied.

Re: [PATCH v4 2/2] net: phy: dp83867: Add SGMII mode type switching

2019-09-11 Thread David Miller
From: Vitaly Gaiduk Date: Mon, 9 Sep 2019 20:19:24 +0300 > This patch adds ability to switch beetween two PHY SGMII modes. > Some hardware, for example, FPGA IP designs may use 6-wire mode > which enables differential SGMII clock to MAC. > > Signed-off-by: Vitaly Gaiduk Applied.

Re: Linux 5.3-rc8

2019-09-11 Thread Ahmed S. Darwish
On Wed, Sep 11, 2019 at 11:41:44PM +0200, Ahmed S. Darwish wrote: > On Wed, Sep 11, 2019 at 05:45:38PM +0100, Linus Torvalds wrote: [...] > > > > Well, even on a PC, sometimes rdrand just isn't there. AMD has screwed > > it up a few times, and older Intel chips just don't have it. > > > > So I'd

Re: [PATCH net-next] net: stmmac: pci: Add HAPS support using GMAC5

2019-09-11 Thread David Miller
From: Jose Abreu Date: Mon, 9 Sep 2019 18:54:26 +0200 > Add the support for Synopsys HAPS board that uses GMAC5. > > Signed-off-by: Jose Abreu Applied.

<    2   3   4   5   6   7   8   >