Re: [PATCH v2 0/7] crpyto: introduce OSCCA certificate and SM2 asymmetric algorithm

2020-05-29 Thread Tianjia Zhang
On 2020/4/16 14:01, Herbert Xu wrote: On Thu, Apr 02, 2020 at 08:34:57PM +0800, Tianjia Zhang wrote: Hello all, This new module implement the OSCCA certificate and SM2 public key algorithm. It was published by State Encryption Management Bureau, China. List of specifications for OSCCA certif

Re: [PATCH net] net: mvpp2: Enable autoneg bypass for 1000BaseX/2500BaseX ports

2020-05-29 Thread Thomas Bogendoerfer
On Thu, 28 May 2020 23:04:20 +0100 Russell King - ARM Linux admin wrote: > Can you explain this please? Just as we think we understand what's > going on here, you throw in a new comment that makes us confused. sorry about that. > You said previously that the mvpp2 was connected to a switch, wh

[PATCH 1/1] tty: serial: owl: Initialize lock before registering port

2020-05-29 Thread Cristian Ciocaltea
Running a lockdep-enabled kernel leads to the following splat when probing the owl-uart driver: [1.271784] b0124000.serial: ttyOWL2 at MMIO 0xb0124000 (irq = 22, base_baud = 150) is a owl-uart [1.281226] INFO: trying to register non-static key. [1.286179] the code is fine but need

[PATCH] ASoC: mediatek: mt6358: support DMIC one-wire mode

2020-05-29 Thread Jiaxin Yu
Supports DMIC one-wire mode. Adds a mixer control to enable and disable. Signed-off-by: Jiaxin Yu Reviewed-by: Tzung-Bi Shih --- sound/soc/codecs/mt6358.c | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/mt6358.c b/sound/soc/

Re: [PATCH] watchdog: sunxi_wdt: fix improper error exit code

2020-05-29 Thread Maxime Ripard
On Fri, May 29, 2020 at 05:45:14PM +0800, Frank Lee wrote: > From: Martin Wu > > sunxi_wdt_probe() should return -ENOMEM when devm_kzalloc() fails. > > Signed-off-by: Martin Wu > Signed-off-by: Frank Lee Acked-by: Maxime Ripard Thanks! Maxime signature.asc Description: PGP signature

Re: [PATCH] ASoC: mediatek: mt6358: support DMIC one-wire mode

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 07:04:53PM +0800, Jiaxin Yu wrote: > Supports DMIC one-wire mode. Adds a mixer control to enable and disable. What is DMIC one wire mode? This doesn't sound like something I'd expect to vary at runtime. signature.asc Description: PGP signature

Re: [PATCH] regulator: do not balance regulators without constraints

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 07:45:06AM +0200, Marek Szyprowski wrote: > On 28.05.2020 15:43, Mark Brown wrote: > > This forces every supply to have something which explicitly manages > > voltages which means that if one of the coupled supplies doesn't really > > care about the voltage (perhaps doesn't

Re: [PATCH net-next] net: phy: mscc: fix PHYs using the vsc8574_probe

2020-05-29 Thread Michael Walle
Am 29. Mai 2020 11:49:09 MESZ schrieb Antoine Tenart : >PHYs using the vsc8574_probe fail to be initialized and their >config_init return -EIO leading to errors like: >"could not attach PHY: -5". > >This is because when the conversion of the MSCC PHY driver to use the >shared PHY package helpers w

Re: [PATCH v5 3/6] irqchip: RISC-V per-HART local interrupt controller driver

2020-05-29 Thread Marc Zyngier
On 2020-05-29 11:45, Anup Patel wrote: On Fri, May 29, 2020 at 3:39 PM Marc Zyngier wrote: On 2020-05-21 14:32, Anup Patel wrote: [...] > +/* Get the OF device node used by INTC irq domain */ > +struct device_node *riscv_of_intc_domain_node(void) > +{ > + return intc_domain_node; > +}

Re: [PATCH v2 1/9] dt-bindings: mmc: Convert sdhci-pxa to json-schema

2020-05-29 Thread Ulf Hansson
On Fri, 29 May 2020 at 00:54, Rob Herring wrote: > > On Wed, May 27, 2020 at 09:59:10AM +0200, Ulf Hansson wrote: > > On Thu, 21 May 2020 at 11:14, Lubomir Rintel wrote: > > > > > > Convert the sdhci-pxa binding to DT schema format using json-schema. > > > > > > At the same time, fix a couple of

Re: [PATCH RFCv2 9/9] arm64: Support async page fault

2020-05-29 Thread Paolo Bonzini
On 29/05/20 11:41, Marc Zyngier wrote: >>> >>> >>> For x86 the advantage is that the processor can take care of raising the >>> stage2 page fault in the guest, so it's faster. >>> >> I think there might be too much overhead if the page can be populated >> quickly by host. For example, it's fast to

Re: [PATCHSET v5 0/12] Add support for async buffered reads

2020-05-29 Thread Sedat Dilek
On Fri, May 29, 2020 at 12:02 PM Sedat Dilek wrote: [ ... ] > As I saw stallings with e2scrub_reap.service and swap partition > (partly seen in the boot-process and noted the UUID 3f8e). > I disabled e2scrub_reap.service and deactivated swap partition in /etc/fstab. > I switched over from using

Re: [PATCH] ASoC: mediatek: mt6358: support DMIC one-wire mode

2020-05-29 Thread Tzung-Bi Shih
On Fri, May 29, 2020 at 7:09 PM Mark Brown wrote: > > On Fri, May 29, 2020 at 07:04:53PM +0800, Jiaxin Yu wrote: > > Supports DMIC one-wire mode. Adds a mixer control to enable and disable. > > What is DMIC one wire mode? This doesn't sound like something I'd > expect to vary at runtime. It mean

[PATCH v4 3/4] kdb: Make kdb_printf() console handling more robust

2020-05-29 Thread Sumit Garg
While rounding up CPUs via NMIs, its possible that a rounded up CPU maybe holding a console port lock leading to kgdb master CPU stuck in a deadlock during invocation of console write operations. A similar deadlock could also be possible while using synchronous breakpoints. So in order to avoid su

[PATCH v4 0/4] kdb: Improve console handling

2020-05-29 Thread Sumit Garg
This patch-set is aimed to improve console handling especially when kdb operates in NMI context. Brief description of enhancements: - Add status check for console prior to invoking corresponding handler. - Fixup to avoid possible deadlock in NMI context due to usage of locks in the console handl

[PATCH v4 4/4] kdb: Switch to use safer dbg_io_ops over console APIs

2020-05-29 Thread Sumit Garg
In kgdb context, calling console handlers aren't safe due to locks used in those handlers which could in turn lead to a deadlock. Although, using oops_in_progress increases the chance to bypass locks in most console handlers but it might not be sufficient enough in case a console uses more locks (V

[PATCH v4 2/4] kdb: Check status of console prior to invoking handlers

2020-05-29 Thread Sumit Garg
Check if a console is enabled prior to invoking corresponding write handler. Suggested-by: Sergey Senozhatsky Signed-off-by: Sumit Garg Reviewed-by: Daniel Thompson --- kernel/debug/kdb/kdb_io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/debug/kdb/kdb_io.c b/kernel/debug/kdb/

[PATCH v4 1/4] kdb: Re-factor kdb_printf() message write code

2020-05-29 Thread Sumit Garg
Re-factor kdb_printf() message write code in order to avoid duplication of code and thereby increase readability. Signed-off-by: Sumit Garg --- kernel/debug/kdb/kdb_io.c | 61 +-- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/kernel/d

Re: [PATCH v18 07/12] landlock: Support filesystem access-control

2020-05-29 Thread Mickaël Salaün
On 27/05/2020 05:07, Amir Goldstein wrote: > On Wed, May 27, 2020 at 3:36 AM Mickaël Salaün wrote: >> >> Thanks to the Landlock objects and ruleset, it is possible to identify >> inodes according to a process's domain. To enable an unprivileged >> process to express a file hierarchy, it first n

[BOOTLOADER SPECIFICATION RFC] The bootloader log format for TrenchBoot and others

2020-05-29 Thread Daniel Kiper
Hey, Below you can find my rough idea of the bootloader log format which is generic thing but initially will be used for TrenchBoot work. I discussed this proposal with Ross and Daniel S. So, the idea went through initial sanitization. Now I would like to take feedback from other folks too. So, pl

Re: [PATCH v5 4/5] cpufreq: qcom: Update the bandwidth levels on frequency change

2020-05-29 Thread Sibi Sankar
Hey Viresh, Thanks for taking time to review the series :) On 2020-05-29 15:30, Viresh Kumar wrote: On 28-05-20, 01:51, Sibi Sankar wrote: Add support to parse optional OPP table attached to the cpu node when the OPP bandwidth values are populated. This allows for scaling of DDR/L3 bandwidth le

Re: [PATCH v4 1/4] sysctl: Add register_sysctl_init() interface

2020-05-29 Thread Luis Chamberlain
On Fri, May 29, 2020 at 04:33:01PM +0800, Xiaoming Ni wrote: > On 2020/5/29 15:36, Luis Chamberlain wrote: > > On Fri, May 29, 2020 at 03:27:22PM +0800, Xiaoming Ni wrote: > > > On 2020/5/29 15:09, Luis Chamberlain wrote: > > > > On Tue, May 19, 2020 at 11:31:08AM +0800, Xiaoming Ni wrote: > > > >

Re: [PATCH 1/1] tty: serial: owl: Initialize lock before registering port

2020-05-29 Thread Greg Kroah-Hartman
On Fri, May 29, 2020 at 02:06:47PM +0300, Cristian Ciocaltea wrote: > Running a lockdep-enabled kernel leads to the following splat when > probing the owl-uart driver: > > [1.271784] b0124000.serial: ttyOWL2 at MMIO 0xb0124000 (irq = 22, > base_baud = 150) is a owl-uart > [1.281226] I

Re: [PATCH 1/1] tty: serial: owl: Initialize lock before registering port

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 2:09 PM Cristian Ciocaltea wrote: > > Running a lockdep-enabled kernel leads to the following splat when > probing the owl-uart driver: > > [1.271784] b0124000.serial: ttyOWL2 at MMIO 0xb0124000 (irq = 22, > base_baud = 150) is a owl-uart > [1.281226] INFO: try

[PATCH] nvme-fc: Only call nvme_cleanup_cmd() for normal operations

2020-05-29 Thread Daniel Wagner
Asynchronous event notifications do not have an request associated. When fcp_io() fails we unconditionally call nvme_cleanup_cmd() which leads to a crash. Fixes: 16686f3a6c3c ("nvme: move common call to nvme_cleanup_cmd to core layer") Cc: Max Gurtovoy Signed-off-by: Daniel Wagner --- drivers/n

Re: [PATCH v8 04/10] OPP: Add support for parsing interconnect bandwidth

2020-05-29 Thread Sibi Sankar
On 2020-05-29 10:14, Viresh Kumar wrote: On 12-05-20, 15:53, Georgi Djakov wrote: struct dev_pm_opp *_opp_allocate(struct opp_table *table) { struct dev_pm_opp *opp; - int count, supply_size; + int supply_count, supply_size, icc_size; /* Allocate space for at least

Re: [PATCH v2] bluetooth: hci_qca: Fix suspend/resume functionality failure

2020-05-29 Thread Marcel Holtmann
Hi Zijun, > @dev parameter of qca_suspend()/qca_resume() represents > serdev_device, but it is mistook for hci_dev and causes > succedent unexpected memory access. > > Fix by taking @dev as serdev_device. > > Fixes: 41d5b25fed0 ("Bluetooth: hci_qca: add PM support") > Signed-off-by: Zijun Hu >

Re: [PATCH v2] Bluetooth: btmtkuart: Improve exception handling in btmtuart_probe()

2020-05-29 Thread Marcel Holtmann
Hi Chuhong, > Calls of the functions clk_disable_unprepare() and hci_free_dev() > were missing for the exception handling. > Thus add the missed function calls together with corresponding > jump targets. > > Fixes: 055825614c6b ("Bluetooth: btmtkuart: add an implementation for clock > osc proper

Re: [PATCH v5 3/6] irqchip: RISC-V per-HART local interrupt controller driver

2020-05-29 Thread Anup Patel
On Fri, May 29, 2020 at 4:40 PM Marc Zyngier wrote: > > On 2020-05-29 11:45, Anup Patel wrote: > > On Fri, May 29, 2020 at 3:39 PM Marc Zyngier wrote: > >> > >> On 2020-05-21 14:32, Anup Patel wrote: > > [...] > > >> > +/* Get the OF device node used by INTC irq domain */ > >> > +struct device_no

Re: [PATCH v1] Bluetooth: hci_qca: Fix qca6390 enable failure after warm reboot

2020-05-29 Thread Marcel Holtmann
Hi Zijun, > On May 29, 2020, at 04:29, Zijun Hu wrote: > > Warm reboot can not reset controller qca6390 due to > lack of controllable power supply, so causes firmware > download failure during enable. > > Fixed by sending VSC EDL_SOC_RESET to reset qca6390 > within added device shutdown impleme

Re: [PATCH v4] bluetooth: hci_qca: Fix QCA6390 memdump failure

2020-05-29 Thread Marcel Holtmann
Hi Zijun, > QCA6390 memdump VSE sometimes come to bluetooth driver > with wrong sequence number as illustrated as follows: > frame # in dec: frame data in hex > 1396: ff fd 01 08 74 05 00 37 8f 14 > 1397: ff fd 01 08 75 05 00 ff bf 38 > 1414: ff fd 01 08 86 05 00 fb 5e 4b > 1399: ff fd 01 08 77 05

Re: [PATCH net-next 1/2] bridge: mrp: Set the priority of MRP instance

2020-05-29 Thread Horatiu Vultur
The 05/29/2020 11:12, Nikolay Aleksandrov wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On 29/05/2020 13:05, Horatiu Vultur wrote: > > Each MRP instance has a priority, a lower value means a higher priority. > > The priority of MRP insta

Re: [Intel-gfx] [PATCH 06/13] ocfs2: use new sysctl subdir helper register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
On Fri, May 29, 2020 at 01:23:19AM -0700, Kees Cook wrote: > On Fri, May 29, 2020 at 07:41:01AM +, Luis Chamberlain wrote: > > This simplifies the code considerably. The following coccinelle > > SmPL grammar rule was used to transform this code. > > > > // pycocci sysctl-subdir.cocci fs/ocfs2/

Re: edac: Fix reference count leak in edac_device_register_sysfs_main_kobj()

2020-05-29 Thread Borislav Petkov
Which part of "Please refrain from "reviewing" EDAC patches!" don't you understand? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette

Re: [PATCH v2 0/7] crpyto: introduce OSCCA certificate and SM2 asymmetric algorithm

2020-05-29 Thread Herbert Xu
On Fri, May 29, 2020 at 07:04:48PM +0800, Tianjia Zhang wrote: > > On 2020/4/16 14:01, Herbert Xu wrote: > > On Thu, Apr 02, 2020 at 08:34:57PM +0800, Tianjia Zhang wrote: > > > Hello all, > > > > > > This new module implement the OSCCA certificate and SM2 public key > > > algorithm. It was publi

Re: [PATCH] staging: gasket: Convert get_user_pages*() --> pin_user_pages*()

2020-05-29 Thread Dan Carpenter
Anyway, can you resend with the commit message re-written. To me the information that's most useful is from the lwn article: "In short, if pages are being pinned for access to the data contained within those pages, pin_user_pages() should be used. For cases where the intent is to manip

Re: [PATCH 1/1] tty: serial: owl: Initialize lock before registering port

2020-05-29 Thread Andreas Färber
Am 29.05.20 um 13:34 schrieb Greg Kroah-Hartman: On Fri, May 29, 2020 at 02:06:47PM +0300, Cristian Ciocaltea wrote: Running a lockdep-enabled kernel leads to the following splat when probing the owl-uart driver: [1.271784] b0124000.serial: ttyOWL2 at MMIO 0xb0124000 (irq = 22, base_baud =

[PATCH 3/3] ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board

2020-05-29 Thread Eugeniy Paltsev
This initial port adds support of ARC HS4x/HS4xD Development Kit board with some basic features such serial port, USB, SD/MMC, SPI flash, Ethernet and others. The HSDK-4xD board has much in common with its predecessor - HSDK board. However HSDK-4xD has some differences in comparison with its prede

linux-next: Tree for May 29

2020-05-29 Thread Stephen Rothwell
Hi all, News: there will be no linux-next release on Monday. Changes since 20200528: My fixes tree contains: 4cb4bfffe2c1 ("device_cgroup: Fix RCU list debugging warning") The drm-intel-fixes tree gained a build failure for which I reverted a commit. The s390 tree gained a conflict against

[PATCH 1/3] ARC: allow to overide default mcpu compiler flag

2020-05-29 Thread Eugeniy Paltsev
By default we set -mcpu=xxx compiler flag depending on the CPU ISA version. It's good starting point, however that may be not enough as for some platforms we may want to use some specific 'mcpu' options for better optimization or to workaround HW issues. We are going to use this option for HSDK-4x

[PATCH 0/3] ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board

2020-05-29 Thread Eugeniy Paltsev
Eugeniy Paltsev (3): ARC: allow to overide default mcpu compiler flag ARC: ARCv2: support loop buffer (LPB) disabling ARC: [plat-hsdk-4xd] initial port for HSDK-4xD board arch/arc/Kconfig| 13 ++ arch/arc/Makefile | 4 + arch/arc/boot/dts/hsdk-4xd.dt

[PATCH private 1/3] ARC: allow to overwrite default mcpu compiler flag

2020-05-29 Thread Eugeniy Paltsev
By default we set -mcpu=xxx compiler flag depending on the CPU ISA version. It's good starting point, however that may be not enough as for some platforms we may want to use some specific 'mcpu' options for better optimization or to workaround HW issues. We are going to use this option for HSDK-4x

[PATCH 2/3] ARC: ARCv2: support loop buffer (LPB) disabling

2020-05-29 Thread Eugeniy Paltsev
On HS cores, loop buffer (LPB) is programmable in runtime and can be optionally disabled. Signed-off-by: Eugeniy Paltsev --- arch/arc/Kconfig | 6 ++ arch/arc/kernel/head.S | 8 2 files changed, 14 insertions(+) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 2d4f85dc9

Re: 5.6.12 MCE on AMD EPYC 7502

2020-05-29 Thread Borislav Petkov
On Fri, May 29, 2020 at 01:55:29PM +0300, Dmitry Antipov wrote: > Hello, > > I'm facing the following kernel messages running Debian 9 with > custom 5.6.12 kernel running on AMD EPYC 7502 - based hardware: > > [138537.806814] mce: [Hardware Error]: Machine check events logged > [138537.806818] [H

Re: [Patch 1/2] media: v4l2-rect.h: add enclosed rectangle helper

2020-05-29 Thread Andrzej Pietrasiewicz
Hi Benoit, Thank you for the patch, W dniu 28.05.2020 o 15:26, Benoit Parrot pisze: Add a helper function to check if one rectangle is enclosed inside another. Signed-off-by: Benoit Parrot Acked-by: Andrzej Pietrasiewicz --- include/media/v4l2-rect.h | 20 1 file

Re: [Patch 2/2] media: use v4l2_rect_enclosed helper

2020-05-29 Thread Andrzej Pietrasiewicz
Hi Benoit, Thank you for the patch. W dniu 28.05.2020 o 15:26, Benoit Parrot pisze: Several drivers implement the same enclosed_rectangle() function to check if a rectangle is enclosed into another. Replace this with the newly added v4l2_rect_enclosed() helper function. Signed-off-by: Benoit P

Re: [PATCH 09/13] firmware_loader: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Xiaoming Ni
On 2020/5/29 18:26, Greg KH wrote: On Fri, May 29, 2020 at 07:41:04AM +, Luis Chamberlain wrote: From: Xiaoming Ni Move the firmware config sysctl table to fallback_table.c and use the new register_sysctl_subdir() helper. This removes the clutter from kernel/sysctl.c. Signed-off-by: Xiaom

Re: [PATCH 1/1] tty: serial: owl: Initialize lock before registering port

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 2:56 PM Andreas Färber wrote: > > Am 29.05.20 um 13:34 schrieb Greg Kroah-Hartman: > > On Fri, May 29, 2020 at 02:06:47PM +0300, Cristian Ciocaltea wrote: > >> Running a lockdep-enabled kernel leads to the following splat when > >> probing the owl-uart driver: ... > >> Fi

Re: [PATCH v3 2/3] riscv: Introduce CONFIG_RELOCATABLE

2020-05-29 Thread Anup Patel
On Sun, May 24, 2020 at 2:25 PM Alexandre Ghiti wrote: > > This config allows to compile the kernel as PIE and to relocate it at > any virtual address at runtime: this paves the way to KASLR and to 4-level > page table folding at runtime. Runtime relocation is possible since > relocation metadata

Re: [PATCH v4 03/11] dmaengine: Introduce min burst length capability

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:23:53AM +0300, Serge Semin wrote: > Some hardware aside from default 0/1 may have greater minimum burst > transactions length constraints. Here we introduce the DMA device > and slave capability, which if required can be initialized by the DMA > engine driver with the dev

Re: [PATCH v3 3/3] arch, scripts: Add script to check relocations at compile time

2020-05-29 Thread Anup Patel
On Sun, May 24, 2020 at 2:26 PM Alexandre Ghiti wrote: > > Relocating kernel at runtime is done very early in the boot process, so > it is not convenient to check for relocations there and react in case a > relocation was not expected. > > Powerpc architecture has a script that allows to check at

Re: [PATCH 11/13] random: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Xiaoming Ni
On 2020/5/29 18:26, Greg KH wrote: On Fri, May 29, 2020 at 07:41:06AM +, Luis Chamberlain wrote: From: Xiaoming Ni Move random_table sysctl from kernel/sysctl.c to drivers/char/random.c and use register_sysctl_subdir() to help remove the clutter out of kernel/sysctl.c. Signed-off-by: Xiao

Re: [PATCH 09/13] firmware_loader: simplify sysctl declaration with register_sysctl_subdir()

2020-05-29 Thread Luis Chamberlain
On Fri, May 29, 2020 at 12:26:13PM +0200, Greg KH wrote: > On Fri, May 29, 2020 at 07:41:04AM +, Luis Chamberlain wrote: > > From: Xiaoming Ni > > > > Move the firmware config sysctl table to fallback_table.c and use the > > new register_sysctl_subdir() helper. This removes the clutter from >

[PATCH 4/4] net: remove kernel_setsockopt

2020-05-29 Thread Christoph Hellwig
No users left. Signed-off-by: Christoph Hellwig --- include/linux/net.h | 2 -- net/socket.c| 31 --- 2 files changed, 33 deletions(-) diff --git a/include/linux/net.h b/include/linux/net.h index 74ef5d7315f70..e10f378194a59 100644 --- a/include/linux/net.h

remove kernel_setsockopt v4

2020-05-29 Thread Christoph Hellwig
Hi Dave and Marcelo, now that only the dlm calls to sctp are left for kernel_setsockopt, while we haven't really made much progress with the sctp setsockopt refactoring, how about this small series that splits out a sctp_setsockopt_bindx_kernel that takes a kernel space address array to share more

[PATCH 3/4] net: add a new bind_add method

2020-05-29 Thread Christoph Hellwig
The SCTP protocol allows to bind multiple address to a socket. That feature is currently only exposed as a socket option. Add a bind_add method struct proto that allows to bind additional addresses, and switch the dlm code to use the method instead of going through the socket option from kernel s

Re: [PATCH private 1/3] ARC: allow to overwrite default mcpu compiler flag

2020-05-29 Thread Eugeniy Paltsev
Oooops, this one is duplicate and should be dropped. --- Eugeniy Paltsev From: Eugeniy Paltsev Sent: Friday, May 29, 2020 14:55 To: linux-snps-...@lists.infradead.org; Vineet Gupta Cc: linux-kernel@vger.kernel.org; Alexey Brodkin; Eugeniy Paltsev Subjec

Re: [PATCH v30 09/20] mm: Introduce vm_ops->may_mprotect()

2020-05-29 Thread Borislav Petkov
On Fri, May 15, 2020 at 03:43:59AM +0300, Jarkko Sakkinen wrote: > From: Sean Christopherson > > Add vm_ops()->may_mprotect() to check additional constrains set by a "constraints" > subsystem for a mprotect() call. > > Signed-off-by: Sean Christopherson > Acked-by: Jethro Beekman > Signed-of

[PATCH 1/4] sctp: add sctp_sock_set_nodelay

2020-05-29 Thread Christoph Hellwig
Add a helper to directly set the SCTP_NODELAY sockopt from kernel space without going through a fake uaccess. Signed-off-by: Christoph Hellwig --- fs/dlm/lowcomms.c | 10 ++ include/net/sctp/sctp.h | 7 +++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/fs/dlm/

[PATCH 2/4] sctp: refactor sctp_setsockopt_bindx

2020-05-29 Thread Christoph Hellwig
Split out a sctp_setsockopt_bindx_kernel that takes a kernel pointer to the sockaddr and make sctp_setsockopt_bindx a small wrapper around it. This prepares for adding a new bind_add proto op. Signed-off-by: Christoph Hellwig --- net/sctp/socket.c | 61 ++

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

2020-05-29 Thread Stephen Rothwell
Hi all, Commit 560d6b3da024 ("ext4: mballoc: fix possible NULL ptr & remove BUG_ONs from DOUBLE_CHECK") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpeSVjh4PwUM.pgp Description: OpenPGP digital signature

Re: [PATCH v4 05/11] dmaengine: Introduce DMA-device device_caps callback

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:23:55AM +0300, Serge Semin wrote: > There are DMA devices (like ours version of Synopsys DW DMAC) which have > DMA capabilities non-uniformly redistributed amongst the device channels. > In order to provide a way of exposing the channel-specific parameters to > the DMA en

Re: [PATCH] i2c: sh_mobile: Fix compilation warning

2020-05-29 Thread Wolfram Sang
On Thu, May 09, 2019 at 10:13:46AM +0530, Viresh Kumar wrote: > This currently generates a warning: > > drivers/i2c/busses/i2c-sh_mobile.c: In function 'sh_mobile_i2c_isr': > drivers/i2c/busses/i2c-sh_mobile.c:399:26: warning: 'data' may be used > uninitialized in this function [-Wmaybe-uninitial

[PATCH v2] staging: wfx: fix coherency of hif_scan() prototype

2020-05-29 Thread Jerome Pouiller
From: Jérôme Pouiller The function hif_scan() return the timeout for the completion of the scan request. It is the only function from hif_tx.c that return another thing than just an error code. This behavior is not coherent with the rest of file. Worse, if value returned is positive, the caller c

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

2020-05-29 Thread Stephen Rothwell
Hi all, In commit feac90d756c0 ("Bluetooth: hci_qca: Fix suspend/resume functionality failure") Fixes tag Fixes: 41d5b25fed0 ("Bluetooth: hci_qca: add PM support") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more) or (

Re: [PATCH 1/1] i2c: sh_mobile: eliminate a misreported warning

2020-05-29 Thread Wolfram Sang
On Wed, Apr 29, 2020 at 08:40:17PM +0800, Zhen Lei wrote: > The warning is caused by the branches "if (pd->pos == -1)" and > "if (pd->pos == 0)", because they appear after "real_pos = pd->pos - 2", > so the compiler doesn't known the value of real_pos is negative through > these two branches. > >

Re: [PATCH 00/10] iommu/amd: Updates and Cleanups

2020-05-29 Thread Suravee Suthikulpanit
Joerg, On 5/27/2020 6:53 PM, Joerg Roedel wrote: Hi, here is a collection of patches that clean up a few things in the AMD IOMMU driver. Foremost, it moves all related files of the driver into a separate subdirectory. But the patches also remove usage of dev->archdata.iommu and clean up dev_da

[PATCH 2/2] staging: wfx: drop useless loop

2020-05-29 Thread Jerome Pouiller
From: Jérôme Pouiller It is guarantee that the loop will stop at first iteration. So drop the loop. Fixes: 6bf418c50f98a ("staging: wfx: change the way to choose frame to send") Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/queue.c | 19 --- 1 file changed, 8 insertion

[PATCH 1/2] staging: wfx: fix AC priority

2020-05-29 Thread Jerome Pouiller
From: Jérôme Pouiller In order to work properly all the queues of the device must be filled (the device chooses itself the queue to use depending of AC parameters and other things). It is the job of wfx_tx_queues_get_skb() to choose which queue must be filled. However, the sorting algorithm was i

Re: [PATCH 01/13] sysctl: add new register_sysctl_subdir() helper

2020-05-29 Thread Luis Chamberlain
On Fri, May 29, 2020 at 11:13:21AM +0300, Jani Nikula wrote: > On Fri, 29 May 2020, Luis Chamberlain wrote: > > Often enough all we need to do is create a subdirectory so that > > we can stuff sysctls underneath it. However, *if* that directory > > was already created early on the boot sequence we

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

2020-05-29 Thread Stephen Rothwell
Hi all, In commit 7b16993c2bb2 ("mmc: sdhci-msm: Clear tuning done flag while hs400 tuning") Fixes tag Fixes: ff06ce4 ("mmc: sdhci-msm: Add HS400 platform support") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more) or

[PATCH] net: octeon: mgmt: Repair filling of RX ring

2020-05-29 Thread Alexander A Sverdlin
From: Alexander Sverdlin The removal of mips_swiotlb_ops exposed a problem in octeon_mgmt Ethernet driver. mips_swiotlb_ops had an mb() after most of the operations and the removal of the ops had broken the receive functionality of the driver. My code inspection has shown no other places except o

Re: [PATCH v4 07/11] dmaengine: dw: Set DMA device max segment size parameter

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:23:57AM +0300, Serge Semin wrote: > Maximum block size DW DMAC configuration corresponds to the max segment > size DMA parameter in the DMA core subsystem notation. Lets set it with a > value specific to the probed DW DMA controller. It shall help the DMA > clients to cre

Re: [PATCH v4 08/11] dmaengine: dw: Add dummy device_caps callback

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 01:23:58AM +0300, Serge Semin wrote: > Since some DW DMA controllers (like one installed on Baikal-T1 SoC) may > have non-uniform DMA capabilities per device channels, let's add > the DW DMA specific device_caps callback to expose that specifics up to > the DMA consumer. It'

Re: [PATCH 05/15] drm/panfrost: use spinlock instead of atomic

2020-05-29 Thread Robin Murphy
On 2020-05-10 17:55, Clément Péron wrote: Convert busy_count to a simple int protected by spinlock. A little more reasoning might be nice. Signed-off-by: Clément Péron --- [...] diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.h b/drivers/gpu/drm/panfrost/panfrost_devfreq.h index 06

Re: system time goes weird in kvm guest after host suspend/resume

2020-05-29 Thread Thomas Gleixner
Miklos, Miklos Szeredi writes: > On Fri, May 29, 2020 at 11:51 AM Miklos Szeredi wrote: >> On Thu, May 28, 2020 at 10:43 PM Thomas Gleixner wrote: >> > >> > Miklos Szeredi writes: >> > > Bisected it to: >> > > >> > > b95a8a27c300 ("x86/vdso: Use generic VDSO clock mode storage") >> > > >> > >

[PATCH RFT] ravb: Mask PHY mode to avoid inserting delays twice

2020-05-29 Thread Geert Uytterhoeven
Until recently, the Micrel KSZ9031 PHY driver ignored any PHY mode ("RGMII-*ID") settings, but used the hardware defaults, augmented by explicit configuration of individual skew values using the "*-skew-ps" DT properties. The lack of PHY mode support was compensated by the EtherAVB MAC driver, whi

Re: clone3: allow creation of time namespace with offset

2020-05-29 Thread Michael Kerrisk (man-pages)
Hi Adrian, If there was a revision to this patch, I missed it. Is there still a plan to bring CLONE_NEWTIME to clone3()? Thanks, Michael On Tue, 17 Mar 2020 at 09:32, Adrian Reber wrote: > > This is an attempt to add time namespace support to clone3(). I am not > really sure which way clone3()

RE: [PATCH 4/4] net: remove kernel_setsockopt

2020-05-29 Thread David Laight
From: Christoph Hellwig > Sent: 29 May 2020 13:10 > > No users left. There is no point even proposing this until all the changes to remove its use have made it at least as far into 'net-next' and probably 'net'. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keyne

[PATCH] x86/resctrl: fix a NULL vs IS_ERR() static checker warning

2020-05-29 Thread Dan Carpenter
The callers don't expect *d_cdp to be set to an error pointer, they only check for NULL. This leads to a static checker warning: arch/x86/kernel/cpu/resctrl/rdtgroup.c:2648 __init_one_rdt_domain() warn: 'd_cdp' could be an error pointer I don't think this will lead to a real life bug, bu

Re: [PATCH 4/4] net: remove kernel_setsockopt

2020-05-29 Thread 'Christoph Hellwig'
On Fri, May 29, 2020 at 12:27:12PM +, David Laight wrote: > From: Christoph Hellwig > > Sent: 29 May 2020 13:10 > > > > No users left. > > There is no point even proposing this until all the changes to remove > its use have made it at least as far into 'net-next' and probably 'net'. If you l

Re: [PATCH v3 0/3] driver core: Add device link related sysfs files

2020-05-29 Thread Greg Kroah-Hartman
On Thu, May 28, 2020 at 02:18:23PM -0700, Saravana Kannan wrote: > On Thu, May 21, 2020 at 12:18 PM Saravana Kannan wrote: > > > > With fw_devlink and with sync_state() callback features, there's a lot > > of device/device link related information that's not available in sysfs. > > > > Exposing th

Re: system time goes weird in kvm guest after host suspend/resume

2020-05-29 Thread Miklos Szeredi
On Fri, May 29, 2020 at 2:21 PM Thomas Gleixner wrote: > > Miklos, > > Miklos Szeredi writes: > > On Fri, May 29, 2020 at 11:51 AM Miklos Szeredi wrote: > >> On Thu, May 28, 2020 at 10:43 PM Thomas Gleixner > >> wrote: > >> > > >> > Miklos Szeredi writes: > >> > > Bisected it to: > >> > > > >

Re: [PATCH 09/14] fs: don't change the address limit for ->write_iter in __kernel_write

2020-05-29 Thread Christoph Hellwig
On Thu, May 28, 2020 at 11:43:13AM -0700, Linus Torvalds wrote: > On Wed, May 27, 2020 at 10:41 PM Christoph Hellwig wrote: > > > > -ssize_t __kernel_write(struct file *file, const void *buf, size_t count, > > loff_t *pos) > > +ssize_t __kernel_write(struct file *file, const void *buf, size_t cou

Re: 28307d938f ("percpu: make pcpu_alloc() aware of current gfp .."): BUG: kernel reboot-without-warning in boot stage

2020-05-29 Thread Filipe Manana
On 29/05/20 08:16, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit 28307d938fb2e4056ed4c982c06d1503d7719813 > Author: Filipe Manana

[GIT PULL] irqchip updates for Linux 5.8

2020-05-29 Thread Marc Zyngier
Hi Thomas, Here is this merge window's crop of irqchip/irqdomain updates, a pretty quiet one (which nobody will complain about). On the menu this time, a handful of MIPS drivers, some welcome cleanups for irqdomain and irq_sim, the long overdue fixes for GICv3 ITS LPI balancing and managed MSIs,

Re: system time goes weird in kvm guest after host suspend/resume

2020-05-29 Thread Miklos Szeredi
On Fri, May 29, 2020 at 2:31 PM Miklos Szeredi wrote: > > Can you please describe the setup of this test? > > > > - Host kernel version 5.5.16-100.fc30.x86_64 > > - Guest kernel version 75caf310d16c ("Merge branch 'akpm' (patches from Andrew)") > > - Is the revert done on the host or guest

Re: [PATCH 05/15] drm/panfrost: use spinlock instead of atomic

2020-05-29 Thread Clément Péron
Hi Robin, On Fri, 29 May 2020 at 14:20, Robin Murphy wrote: > > On 2020-05-10 17:55, Clément Péron wrote: > > Convert busy_count to a simple int protected by spinlock. > > A little more reasoning might be nice. I have follow the modification requested for lima devfreq and clearly don't have any

Re: [PATCH 11/15] drm/panfrost: set devfreq clock name

2020-05-29 Thread Clément Péron
Hi Steven, On Thu, 28 May 2020 at 15:23, Steven Price wrote: > > On 10/05/2020 17:55, Clément Péron wrote: > > Some SoCs have several clocks defined and the OPP core > > needs to know the exact name of the clk to use. > > > > Set the clock name to "core". > > > > Signed-off-by: Clément Péron >

[PATCH] dcache: use of d_time under required configs

2020-05-29 Thread Anupam Aggarwal
struct dentry{}->d_time is used when CONFIG_NFS_FS or CONFIG_VBOXSF_FS is on. Limit the d_time only when either of configs CONFIG_NFS_FS or CONFIG_VBOXSF_FS is enabled With this change size of "struct dentry" is reduced by 8-bytes on 64-bit system, while of 32-bit system size remains unchanged dent

[PATCH] sparc: remove unused header file nfs_fs.h

2020-05-29 Thread Anupam Aggarwal
Remove unused header file linux/nfs_fs.h Signed-off-by: Anupam Aggarwal Signed-off-by: Vivek Trivedi Signed-off-by: Amit Sahrawat --- arch/sparc/kernel/sys_sparc32.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sparc/kernel/sys_sparc32.c b/arch/sparc/kernel/sys_sparc32.c index b5da3

[PATCH] init: include nfs header files when CONFIG_ROOT_NFS is enabled

2020-05-29 Thread Anupam Aggarwal
Move inclusion of header files linux/nfs_fs.h, linux/nfs_fs_sb.h & linux/nfs_mount.h under config CONFIG_ROOT_NFS Signed-off-by: Anupam Aggarwal Signed-off-by: Vivek Trivedi Signed-off-by: Amit Sahrawat --- init/do_mounts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init/do_mounts.c

Re: [PATCH] irqchip/gic-v3-its: Don't try to move a disabled irq

2020-05-29 Thread Saidi, Ali
Hi Marc, > On May 29, 2020, at 3:33 AM, Marc Zyngier wrote: > > Hi Ali, > >> On 2020-05-29 02:55, Ali Saidi wrote: >> If an interrupt is disabled the ITS driver has sent a discard removing >> the DeviceID and EventID from the ITT. After this occurs it can't be >> moved to another collection wit

Re: Some -serious- BPF-related litmus tests

2020-05-29 Thread Peter Zijlstra
On Thu, May 28, 2020 at 10:14:21PM -0700, Andrii Nakryiko wrote: > There is another cluster of applications which are unnecessarily more > complicated just for the fact that there is no ordering between > correlated events that happen on different CPUs. Per-CPU buffers are > not well suited for su

Re: [PATCH 10/15] drm/panfrost: add regulators to devfreq

2020-05-29 Thread Clément Péron
Hi Steven, On Thu, 28 May 2020 at 15:23, Steven Price wrote: > > On 10/05/2020 17:55, Clément Péron wrote: > > Some OPP tables specify voltage for each frequency. Devfreq can > > handle these regulators but they should be get only 1 time to avoid > > issue and know who is in charge. > > > > If OP

Re: [PATCH 08/15] drm/panfrost: move devfreq_init()/fini() in device

2020-05-29 Thread Clément Péron
Hi Steven On Thu, 28 May 2020 at 15:22, Steven Price wrote: > > On 10/05/2020 17:55, Clément Péron wrote: > > Later we will introduce devfreq probing regulator if they > > are present. As regulator should be probe only one time we > > need to get this logic in the device_init(). > > > > panfrost_

Re: [PATCH 01/13] sysctl: add new register_sysctl_subdir() helper

2020-05-29 Thread Eric W. Biederman
Luis Chamberlain writes: > Often enough all we need to do is create a subdirectory so that > we can stuff sysctls underneath it. However, *if* that directory > was already created early on the boot sequence we really have no > need to use the full boiler plate code for it, we can just use > local

Re: [PATCH 07/15] drm/panfrost: use device_property_present to check for OPP

2020-05-29 Thread Clément Péron
Hi Steven, On Thu, 28 May 2020 at 15:22, Steven Price wrote: > > On 10/05/2020 17:55, Clément Péron wrote: > > Instead of expecting an error from dev_pm_opp_of_add_table() > > do a simple device_property_present() check. > > > > Signed-off-by: Clément Péron > > I'm not sure I understand why this

Re: [PATCH 0/8] Convert the intel iommu driver to the dma-iommu api

2020-05-29 Thread Christoph Hellwig
On Thu, May 28, 2020 at 06:00:44PM -0600, Logan Gunthorpe wrote: > > This issue is most likely in the i915 driver and is most likely caused by > > the driver not respecting the return value of the dma_map_ops::map_sg > > function. You can see the driver ignoring the return value here: > > https:/

Re: [PATCH 01/13] sysctl: add new register_sysctl_subdir() helper

2020-05-29 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > Luis Chamberlain writes: > >> Often enough all we need to do is create a subdirectory so that >> we can stuff sysctls underneath it. However, *if* that directory >> was already created early on the boot sequence we really have no >> need to use

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