[PATCH net-next 0/2] bridge: mrp: Add support for MRA role

2020-05-29 Thread Horatiu Vultur
This patch series extends the MRP with the MRA role. A node that has the MRA role can behave as a MRM or as a MRC. In case there are multiple nodes in the topology that has the MRA role then only one node can behave as MRM and all the others need to be have as MRC. The node that has the higher prio

Re: [PATCH v10 10/10] arm64: dts: Add node for ufs exynos7

2020-05-29 Thread Krzysztof Kozlowski
On Thu, May 28, 2020 at 06:46:58AM +0530, Alim Akhtar wrote: > Adding dt node foe UFS and UFS-PHY for exynos7 SoC. > > Signed-off-by: Alim Akhtar > Tested-by: Paweł Chmiel > --- > .../boot/dts/exynos/exynos7-espresso.dts | 4 ++ > arch/arm64/boot/dts/exynos/exynos7.dtsi | 43 +++

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

2020-05-29 Thread Horatiu Vultur
Each MRP instance has a priority, a lower value means a higher priority. The priority of MRP instance is stored in MRP_Test frame in this way all the MRP nodes in the ring can see other nodes priority. Signed-off-by: Horatiu Vultur --- include/net/switchdev.h| 1 + include/uapi/linux/if_

Re: [PATCH v8 0/5] support reserving crashkernel above 4G on arm64 kdump

2020-05-29 Thread Will Deacon
[+James Morse] On Thu, May 28, 2020 at 05:20:34PM -0500, John Donnelly wrote: > On 5/25/20 8:42 PM, Baoquan He wrote: > > On 05/21/20 at 05:38pm, Chen Zhou wrote: > > > This patch series enable reserving crashkernel above 4G in arm64. [...] > > > Chen Zhou (5): > > >x86: kdump: move reserve_

Re: [PATCH] MIPS: Fix build warning about "PTR_STR" redefined under CONFIG_TEST_PRINTF

2020-05-29 Thread Thomas Bogendoerfer
On Fri, May 29, 2020 at 09:24:06AM +0800, Huacai Chen wrote: > Hi, Tiezhu, > > On Thu, May 28, 2020 at 4:28 PM Tiezhu Yang wrote: > > > > Replace PTR_STR with INST_PTR_STR to fix the following build warning when > > CONFIG_TEST_PRINTF is set: > > > > CC lib/test_printf.o > > lib/test_print

Re: [V6 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-29 Thread Steve Lee
On Thu, May 28, 2020 at 11:15 PM Rob Herring wrote: > > On Thu, 28 May 2020 19:37:55 +0900, Steve Lee wrote: > > Add DT binding of max98390 amplifier driver. > > > > Signed-off-by: Steve Lee > > --- > > Changed since V5: > > * Change txt to yaml and fix up the examples. > > Changed since V4

Re: [PATCH v2 1/2] seccomp: notify user trap about unused filter

2020-05-29 Thread Kees Cook
On Fri, May 29, 2020 at 09:56:41AM +0200, Christian Brauner wrote: > On Thu, May 28, 2020 at 04:11:00PM -0700, Kees Cook wrote: > > void seccomp_filter_release(const struct task_struct *tsk) > > { > > struct seccomp_filter *orig = READ_ONCE(tsk->seccomp.filter); > > > > smp_store_release(&

linux-rt stall on imx6dl on patch-5.4.22-rt13.patch

2020-05-29 Thread Michael Nazzareno Trimarchi
Hi all I get this stack trace echo 3 > /proc/sys/vm/drop_caches chrt -f 99 sysbench --test=cpu --num-threads=2 First of all, I need to know that if it is a valid use case because was raised by the testing team and how can I start and where to take a look at it Best Regards Michael [ 161.709260

[PATCH] drm/nouveau/clk/gm20b: Fix memory leak in gm20b_clk_new

2020-05-29 Thread Dinghao Liu
When gk20a_clk_ctor() returns an error code, pointer "clk" should be released. It's the same when gm20b_clk_new() returns from elsewhere following this call. Signed-off-by: Dinghao Liu --- drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c | 8 1 file changed, 4 insertions(+), 4 deletions(

Re: [PATCH] usb: gadget: f_acm: don't disable disabled EP

2020-05-29 Thread Peter Chen
On 20-05-28 20:30:28, Michał Mirosław wrote: > Make debugging real problems easier by not trying to disable an EP that > was not yet enabled. > > Fixes: 4aab757ca44a ("usb: gadget: f_acm: eliminate abuse of ep->driver data") > Signed-off-by: Michał Mirosław > --- > drivers/usb/gadget/function/f_

Re: [PATCH v5 03/16] spi: dw: Locally wait for the DMA transactions completion

2020-05-29 Thread Serge Semin
On Fri, May 29, 2020 at 10:55:32AM +0300, Andy Shevchenko wrote: > On Fri, May 29, 2020 at 7:02 AM Serge Semin > wrote: > > > > Even if DMA transactions are finished it doesn't mean that the SPI > > transfers are also completed. It's specifically concerns the Tx-only > > SPI transfers, since there

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

2020-05-29 Thread Nikolay Aleksandrov
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 instance is stored in MRP_Test frame in this way > all the MRP nodes in the ring can see other nodes priority. > > Signed-off-by: Horatiu Vultur > --- > inc

Re: [PATCH v30 08/20] x86/sgx: Add functions to allocate and free EPC pages

2020-05-29 Thread Jarkko Sakkinen
On Thu, May 28, 2020 at 08:37:16PM -0700, Sean Christopherson wrote: > On Fri, May 29, 2020 at 06:28:16AM +0300, Jarkko Sakkinen wrote: > > On Thu, May 28, 2020 at 12:59:17PM -0700, Sean Christopherson wrote: > > > On Thu, May 28, 2020 at 10:07:18PM +0300, Jarkko Sakkinen wrote: > > > > * sgx_grab

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

2020-05-29 Thread Jani Nikula
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 really have no > need to use the full boiler plate code for it, we c

Re: [PATCH v30 08/20] x86/sgx: Add functions to allocate and free EPC pages

2020-05-29 Thread Jarkko Sakkinen
On Fri, May 29, 2020 at 11:13:09AM +0300, Jarkko Sakkinen wrote: > On Thu, May 28, 2020 at 08:37:16PM -0700, Sean Christopherson wrote: > > On Fri, May 29, 2020 at 06:28:16AM +0300, Jarkko Sakkinen wrote: > > > On Thu, May 28, 2020 at 12:59:17PM -0700, Sean Christopherson wrote: > > > > On Thu, May

Re: [PATCH 13/13] fs: move binfmt_misc sysctl to its own file

2020-05-29 Thread Kees Cook
On Fri, May 29, 2020 at 07:41:08AM +, Luis Chamberlain wrote: > This moves the binfmt_misc sysctl to its own file to help remove > clutter from kernel/sysctl.c. > > Signed-off-by: Luis Chamberlain > --- > fs/binfmt_misc.c | 1 + > kernel/sysctl.c | 7 --- > 2 files changed, 1 insertion(

Re: [PATCH 12/13] sysctl: add helper to register empty subdir

2020-05-29 Thread Kees Cook
On Fri, May 29, 2020 at 07:41:07AM +, Luis Chamberlain wrote: > The way to create a subdirectory from the base set of directories > is a bit obscure, so provide a helper which makes this clear, and > also helps remove boiler plate code required to do this work. > > Signed-off-by: Luis Chamberl

Re: [PATCH v2] twist: allow converting pr_devel()/pr_debug() into snprintf()

2020-05-29 Thread Petr Mladek
On Thu 2020-05-28 12:50:35, Linus Torvalds wrote: > On Thu, May 28, 2020 at 8:17 AM Tetsuo Handa > wrote: > > > > CONFIG_TWIST_FOR_SYZKALLER_TESTING is meant for linux-next only. > > But CONFIG_TWIST_KERNEL_BEHAVIOR is meant for Linus's tree. > > I really absolutely still detest this all. I don't

Re: [RFC PATCH v3 00/12] Integrity Policy Enforcement LSM (IPE)

2020-05-29 Thread Mickaël Salaün
Hi Jaskaran, On 17/05/2020 00:14, Jaskaran Singh Khurana wrote: > > Hello Mickael, > > On Thu, 14 May 2020, Mickaël Salaün wrote: > >> >> On 12/05/2020 22:46, Deven Bowers wrote: >>> >>> >>> On 5/11/2020 11:03 AM, Deven Bowers wrote: On 5/10/2020 2:28 AM, Mickaël Salaün wrote: >>

Re: [PATCH 1/2] dt-bindings: rtc: add wakeup-source for FlexTimer

2020-05-29 Thread Alexandre Belloni
On 29/05/2020 14:10:34+0800, Ran Wang wrote: > Signed-off-by: Ran Wang > --- > Documentation/devicetree/bindings/rtc/rtc-fsl-ftm-alarm.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/rtc/rtc-fsl-ftm-alarm.txt > b/Documentation/devicetree/bindings

Re: [PATCH] mm: memcontrol: fix an unused-function warning

2020-05-29 Thread Michal Hocko
On Thu 28-05-20 11:56:26, Arnd Bergmann wrote: > On NOMMU kernels without CONFIG_MEMCG_KMEM, we now get a harmless > warning about an unused function: > > mm/memcontrol.c:2595:13: error: unused function 'cancel_charge' > [-Werror,-Wunused-function] > > Hide this function in a matching #ifdef. >

Re: [GIT PULL] extcon next for v5.8

2020-05-29 Thread Chanwoo Choi
Dear Greg, On 5/29/20 5:03 PM, Greg KH wrote: > On Fri, May 29, 2020 at 12:11:03PM +0900, Chanwoo Choi wrote: >> Dear Greg, >> >> This is extcon-next pull request for v5.8. I add detailed description of >> this pull request on below. Please pull extcon with following updates. >> >> Best Regards, >

Re: [PATCH] omapfb: Fix reference count leak in display_init_sysfs.

2020-05-29 Thread Greg Kroah-Hartman
On Thu, May 28, 2020 at 02:44:23PM -0500, wu000...@umn.edu wrote: > From: Qiushi Wu > > kobject_init_and_add() takes reference even when it fails. > If this function returns an error, kobject_put() must be called to > properly clean up the memory associated with the object. > Because function oma

Re: [PATCH] MIPS: Fix build warning about "PTR_STR" redefined under CONFIG_TEST_PRINTF

2020-05-29 Thread Huacai Chen
Hi, Thomas, On Fri, May 29, 2020 at 4:05 PM Thomas Bogendoerfer wrote: > > On Fri, May 29, 2020 at 09:24:06AM +0800, Huacai Chen wrote: > > Hi, Tiezhu, > > > > On Thu, May 28, 2020 at 4:28 PM Tiezhu Yang wrote: > > > > > > Replace PTR_STR with INST_PTR_STR to fix the following build warning when

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

2020-05-29 Thread Kees Cook
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/stackglue.c > > @c1@ > expression E1; > identifier subdir, sysctls;

Re: [PATCH 2/2] rtc: fsl-ftm-alarm: fix freeze(s2idle) doesnot wake

2020-05-29 Thread Alexandre Belloni
On 29/05/2020 14:10:35+0800, Ran Wang wrote: > Use dev_pm_set_wake_irq() instead of flag IRQF_NO_SUSPEND to enable > wakeup system feature for both freeze(s2idle) and mem(deep). > > Use property 'wakeup-source' to control this feature. > > Signed-off-by: Ran Wang > --- > drivers/rtc/rtc-fsl-ftm

[PATCH V2 0/4] x86/entry: simply stack switching when exception on userspace

2020-05-29 Thread Lai Jiangshan
7f2590a110b8("x86/entry/64: Use a per-CPU trampoline stack for IDT entries") has resulted that when exception on userspace, the kernel (error_entry) always push the pt_regs to entry stack(sp0), and then copy them to the kernel stack. And recent x86/entry work makes interrupt also use idtentry and

[PATCH V2 4/4] x86/entry: don't copy to tmp in fixup_bad_iret

2020-05-29 Thread Lai Jiangshan
It is safe to do memcpy() in fixup_bad_iret() now. Signed-off-by: Lai Jiangshan --- arch/x86/kernel/traps.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index 9d16672865f8..1a0253a80a4c 100644 --- a/ar

[PATCH V2 1/4] x86/entry: avoid calling into sync_regs() when entering from userspace

2020-05-29 Thread Lai Jiangshan
7f2590a110b8("x86/entry/64: Use a per-CPU trampoline stack for IDT entries") made a change that when any exception happens on userspace, the entry code will save the pt_regs on the sp0 stack, and then copy it to the thread stack via sync_regs() and switch to thread stack afterward. And recent x86/

[PATCH V2 2/4] x86/entry: directly switch to kernel stack when .Lerror_bad_iret

2020-05-29 Thread Lai Jiangshan
Directly copy pt_regs to kernel stack when .Lerror_bad_iret. Directly switch to kernel stack when .Lerror_bad_iret. We can see that entry_64.S do the following things back to back when .Lerror_bad_iret: call fixup_bad_iret(), switch to sp0 stack with pt_regs copied call sync_regs(), switch to

[PATCH V2 3/4] x86/entry: remove unused sync_regs()

2020-05-29 Thread Lai Jiangshan
No more users. Signed-off-by: Lai Jiangshan --- arch/x86/include/asm/traps.h | 1 - arch/x86/kernel/traps.c | 13 - 2 files changed, 14 deletions(-) diff --git a/arch/x86/include/asm/traps.h b/arch/x86/include/asm/traps.h index 714b1a30e7b0..52cd29bde1d0 100644 --- a/arch/x86/

Re: linux-next: manual merge of the usb tree with the devicetree tree

2020-05-29 Thread Greg KH
On Thu, May 28, 2020 at 08:14:36AM -0600, Rob Herring wrote: > On Thu, May 28, 2020 at 4:49 AM Greg KH wrote: > > > > On Thu, May 28, 2020 at 04:22:15PM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > Today's linux-next merge of the usb tree got a conflict in: > > > > > > Documentation/

[PATCH] net: ethernet: mtk-star-emac: remove unused variable

2020-05-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The desc pointer is set but not used. Remove it. Reported-by: kbuild test robot Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver") Signed-off-by: Bartosz Golaszewski --- drivers/net/ethernet/mediatek/mtk_star_emac.c | 3 --- 1 file changed, 3 deletions(

[PATCHv5 0/3] optee: register drivers on optee bus

2020-05-29 Thread Maxim Uvarov
v5: - removed pr_err and fix typos in description (Jarkko Sakkinen) - added missed kfree in optee_open() v4: - sysfs entry is optee-ta-uuid (Jerome Forissier, Sumit Garg) - added Documentation/ABI/testing/sysfs-bus-optee-devices (Greg Kroah-Hartman) v3: - support tee-suppicant restart (Jen

[PATCHv5 2/3] optee: use uuid for sysfs driver entry

2020-05-29 Thread Maxim Uvarov
OP-TEE device names for sysfs need to be unique and it's better if they will mean something. UUID for name looks like good solution: /sys/bus/tee/devices/optee-ta- Signed-off-by: Maxim Uvarov --- Documentation/ABI/testing/sysfs-bus-optee-devices | 8 MAINTAINERS

[PATCHv5 3/3] tpm_ftpm_tee: register driver on TEE bus

2020-05-29 Thread Maxim Uvarov
Register driver on the TEE bus. The module tee registers bus, and module optee calls optee_enumerate_devices() to scan all devices on the bus. Trusted Application for this driver can be Early TA's (can be compiled into optee-os). In that case it will be on OPTEE bus before linux booting. Also optee

[PATCHv5 1/3] optee: do drivers initialization before and after tee-supplicant run

2020-05-29 Thread Maxim Uvarov
Some drivers (like ftpm) can operate only after tee-supplicant runs because of tee-supplicant provides things like storage services.  This patch splits probe of non tee-supplicant dependable drivers to the early stage, and after tee-supplicant run probe other drivers. Signed-off-by: Maxim Uvarov

Re: [PATCH] net: ethernet: mtk-star-emac: remove unused variable

2020-05-29 Thread Bartosz Golaszewski
pt., 29 maj 2020 o 10:26 Bartosz Golaszewski napisał(a): > > From: Bartosz Golaszewski > > The desc pointer is set but not used. Remove it. > > Reported-by: kbuild test robot > Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver") > Signed-off-by: Bartosz Golaszewski > --- > drivers

Re: linux-next: manual merge of the usb tree with the devicetree tree

2020-05-29 Thread Greg KH
On Fri, May 29, 2020 at 10:26:41AM +0200, Greg KH wrote: > On Thu, May 28, 2020 at 08:14:36AM -0600, Rob Herring wrote: > > On Thu, May 28, 2020 at 4:49 AM Greg KH wrote: > > > > > > On Thu, May 28, 2020 at 04:22:15PM +1000, Stephen Rothwell wrote: > > > > Hi all, > > > > > > > > Today's linux-nex

RE: [PATCH 0/3] misc: xilinx-sdfec: convert get_user_pages() --> pin_user_pages()

2020-05-29 Thread Dragan Cvetic
Hi John, Thank you for the suggestion, please find my comment below: > -Original Message- > From: John Hubbard > Sent: Wednesday 27 May 2020 02:26 > To: LKML > Cc: Souptick Joarder ; John Hubbard > ; Derek Kiernan ; Dragan > Cvetic ; Arnd Bergmann ; Greg > Kroah-Hartman ; Michal Sime

Re: [PATCH] PCI: aardvark: Don't touch PCIe registers if no card connected

2020-05-29 Thread Pali Rohár
On Thursday 28 May 2020 11:49:38 Bjorn Helgaas wrote: > On Thu, May 28, 2020 at 06:38:09PM +0200, Pali Rohár wrote: > > On Thursday 28 May 2020 11:26:04 Bjorn Helgaas wrote: > > > On Thu, May 28, 2020 at 04:31:41PM +0200, Pali Rohár wrote: > > > > When there is no PCIe card connected and advk_pcie_

Re: [PATCH] efi: Replace zero-length array and use struct_size() helper

2020-05-29 Thread Kees Cook
On Wed, May 27, 2020 at 12:14:25PM -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced i

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

2020-05-29 Thread Marc Zyngier
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 with a MOVI and a command error occurs if attempted. Before issuing the MOVI comma

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

2020-05-29 Thread Xiaoming Ni
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: --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -3358,6 +3358,25 @@ int __init sysctl

Re: [PATCH] tpm_tis_spi: Don't send anything during flow control

2020-05-29 Thread Paul Menzel
Dear Douglas, Thank you for the patch. Am 29.05.20 um 00:19 schrieb Douglas Anderson: During flow control we are just reading from the TPM, yet our spi_xfer has the tx_buf and rx_buf both non-NULL which means we're requesting a full duplex transfer. SPI is always somewhat of a full duplex pro

[GIT PULL v2] extcon next for v5.8

2020-05-29 Thread Chanwoo Choi
Dear Greg, This is extcon-next pull request for v5.8. I add detailed description of this pull request on below. Please pull extcon with following updates. Changes from v1: - Change the base commit from v5.7-rc7 to v5.7-rc5. Best Regards, Chanwoo Choi The following changes since commit 2ef96a5b

Re: [PATCH 1/3] dt-bindings: mips: Document two Loongson generic boards

2020-05-29 Thread WANG Xuerui
Hi Jiaxun, On 2020/5/29 11:43, Jiaxun Yang wrote: Document loongson3-8core-ls7a and loongson3-r4-ls7a, with two boards LS7A PCH. "with two boards LS7A PCH" -- maybe you mean "two boards with LS7A PCH"? Signed-off-by: Jiaxun Yang --- .../devicetree/bindings/mips/loongson/devices.yaml

Re: [PATCH v2 1/2] seccomp: notify user trap about unused filter

2020-05-29 Thread Christian Brauner
On Fri, May 29, 2020 at 01:06:59AM -0700, Kees Cook wrote: > On Fri, May 29, 2020 at 09:56:41AM +0200, Christian Brauner wrote: > > On Thu, May 28, 2020 at 04:11:00PM -0700, Kees Cook wrote: > > > void seccomp_filter_release(const struct task_struct *tsk) > > > { > > > struct seccomp_filter *orig

[PATCH] RDMA/hns: Uninitialized variable in modify_qp_init_to_rtr()

2020-05-29 Thread Dan Carpenter
The "dmac" variable is used before it is initialized. Fixes: 494c3b312255 ("RDMA/hns: Refactor the QP context filling process related to WQE buffer configure") Signed-off-by: Dan Carpenter --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v2] ext4: support xattr gnu.* namespace for the Hurd

2020-05-29 Thread Jan Nieuwenhuizen
Theodore Y. Ts'o writes: Hello! > On Mon, May 25, 2020 at 09:39:40PM +0200, Jan (janneke) Nieuwenhuizen wrote: >> The Hurd gained[0] support for moving the translator and author >> fields out of the inode and into the "gnu.*" xattr namespace. >> >> In anticipation of that, an xattr INDEX was res

Re: [GIT PULL v2] extcon next for v5.8

2020-05-29 Thread Greg KH
On Fri, May 29, 2020 at 05:44:55PM +0900, Chanwoo Choi wrote: > Dear Greg, > > This is extcon-next pull request for v5.8. I add detailed description of > this pull request on below. Please pull extcon with following updates. Much nicer, thanks, now pulled and pushed out. greg k-h

Re: [GIT PULL] GNSS updates for 5.8-rc1

2020-05-29 Thread Greg Kroah-Hartman
On Fri, May 29, 2020 at 09:49:15AM +0200, Johan Hovold wrote: > The following changes since commit 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8: > > Linux 5.7-rc5 (2020-05-10 15:16:58 -0700) > > are available in the Git repository at: > > https://git.kernel.org/pub/scm/linux/kernel/git/johan/gns

Re: Re:[PATCH] drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4

2020-05-29 Thread Ville Syrjälä
On Wed, May 27, 2020 at 09:33:27PM +0800, chenxb_99...@126.com wrote: > From: Xuebing Chen > > On Mon, May 25, 2020 at 04:34:28PM +0200, Daniel Vetter wrote: > > On Sat, May 23, 2020 at 11:49:07AM +0800, chenxb_99...@126.com wrote: > > > From: Xuebing Chen > > > > > > The provides drm_for_each

RE: [EXT] mwifiex: Firmware name for W8997 sdio wifi chip

2020-05-29 Thread Ganapathi Bhat
Hi Pali, > According to publicly available information, firmware for these W8xxx > Marvell wifi chips is vulnerable to security issue CVE-2019-6496 [1]. > > Are you able to update firmwares to the last versions and give us some > information which (old) firmware versions are affected by that secu

Re: linux-next: manual merge of the usb tree with the devicetree tree

2020-05-29 Thread Felipe Balbi
Hi, Greg KH writes: > On Fri, May 29, 2020 at 10:26:41AM +0200, Greg KH wrote: >> On Thu, May 28, 2020 at 08:14:36AM -0600, Rob Herring wrote: >> > On Thu, May 28, 2020 at 4:49 AM Greg KH wrote: >> > > >> > > On Thu, May 28, 2020 at 04:22:15PM +1000, Stephen Rothwell wrote: >> > > > Hi all, >>

[PATCH] mm/gup: documentation fix for pin_user_pages*() APIs

2020-05-29 Thread John Hubbard
All of the pin_user_pages*() API calls will cause pages to be dma-pinned. As such, they are all suitable for either DMA, RDMA, and/or Direct IO. The documentation should say so, but it was instead saying that three of the API calls were only suitable for Direct IO. This was discovered when a review

Re: [PATCH] edac: Fix reference count leak in edac_device_register_sysfs_main_kobj()

2020-05-29 Thread Markus Elfring
> object_init_and_add() should be handled when it return an error, > because kobject_init_and_add() takes reference even when it fails. I find this wording approach improvable. > Previous commit "b8eb718348b8" fixed a similar problem. Would you like to indicate with such information (according

Re: [PATCH] net: qrtr: Allocate workqueue before kernel_bind

2020-05-29 Thread Manivannan Sadhasivam
On Thu, May 28, 2020 at 04:05:26PM -0700, Chris Lew wrote: > A null pointer dereference in qrtr_ns_data_ready() is seen if a client > opens a qrtr socket before qrtr_ns_init() can bind to the control port. > When the control port is bound, the ENETRESET error will be broadcasted > and clients will

Re: [EXT] mwifiex: Firmware name for W8997 sdio wifi chip

2020-05-29 Thread Pali Rohár
On Friday 29 May 2020 08:43:56 Ganapathi Bhat wrote: > Hi Pali, > > > According to publicly available information, firmware for these W8xxx > > Marvell wifi chips is vulnerable to security issue CVE-2019-6496 [1]. > > > > Are you able to update firmwares to the last versions and give us some > >

Re: [PATCH v5 1/6] irqchip: Add Loongson HyperTransport Vector support

2020-05-29 Thread Marc Zyngier
On 2020-05-28 16:27, Jiaxun Yang wrote: This controller appears on Loongson-3 chips for receiving interrupt vectors from PCH's PIC and PCH's PCIe MSI interrupts. Signed-off-by: Jiaxun Yang --- v2: - Style cleanup - Set ack callback and set correct edge_irq handler v3: -

Re: [PATCH RESEND] Enable full width counting for KVM: x86/pmu

2020-05-29 Thread Paolo Bonzini
On 29/05/20 09:43, Like Xu wrote: > Hi Paolo, > > As you said, you will queue the v3 of KVM patch, but it looks like we > are missing that part at the top of the kvm/queue tree. > > For your convenience, let me resend v4 so that we can upstream this > feature in the next merged window. Also this

Re: [PATCH 05/28] KVM: nSVM: correctly inject INIT vmexits

2020-05-29 Thread Paolo Bonzini
On 29/05/20 08:46, Krish Sadhukhan wrote: >> >> +static void nested_svm_init(struct vcpu_svm *svm) > > Should this be named nested_svm_inject_init_vmexit in accordance with > nested_svm_inject_exception_vmexit that you did in patch# 3 ? There's also nested_svm_intr and nested_svm_nmi. I'll renam

Re: [PATCH 02/28] KVM: x86: enable event window in inject_pending_event

2020-05-29 Thread Paolo Bonzini
On 29/05/20 04:16, Krish Sadhukhan wrote: > > On 5/26/20 10:22 AM, Paolo Bonzini wrote: >> In case an interrupt arrives after nested.check_events but before the >> call to kvm_cpu_has_injectable_intr, we could end up enabling the >> interrupt >> window even if the interrupt is actually going to be

Re: [PATCH v5 01/16] spi: dw: Set xfer effective_speed_hz

2020-05-29 Thread Sergei Shtylyov
Hello! On 29.05.2020 6:58, Serge Semin wrote: Seeing DW APB SSI controller doesn't support setting the exactly requested SPI bus frequency, but only a rounded frequency determined by means of the odd-numbered half-worded reference clock divider, it would be good tune the SPI core up and initial

RE: [EXT] mwifiex: Firmware name for W8997 sdio wifi chip

2020-05-29 Thread Ganapathi Bhat
Hi Pali, > Hello Ganapathi! Thank you for information. Can you point me to git tree or > location where are firmware files already updated? https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git or https://github.com/NXP/mwifiex-firmware Regards, Ganapathi

Re: [PATCH v2 1/2] seccomp: notify user trap about unused filter

2020-05-29 Thread Christian Brauner
On Fri, May 29, 2020 at 01:32:03AM +0200, Jann Horn wrote: > On Fri, May 29, 2020 at 1:11 AM Kees Cook wrote: > > On Thu, May 28, 2020 at 05:14:11PM +0200, Christian Brauner wrote: > > > * @usage: reference count to manage the object lifetime. > > > * get/put helpers should be used whe

Re: WARNING: suspicious RCU usage in idtentry_exit

2020-05-29 Thread Thomas Gleixner
Dmitry, Dmitry Vyukov writes: > On Thu, May 28, 2020 at 10:48 PM Paul E. McKenney wrote: >> On Thu, May 28, 2020 at 10:19:02PM +0200, Thomas Gleixner wrote: >> OK, from the .config, another suggestion is to build the kernel >> with CONFIG_RCU_EQS_DEBUG=y. This still requires that this issue be

Re: [PATCH RESEND] Enable full width counting for KVM: x86/pmu

2020-05-29 Thread Xu, Like
On 2020/5/29 16:47, Paolo Bonzini wrote: On 29/05/20 09:43, Like Xu wrote: Hi Paolo, As you said, you will queue the v3 of KVM patch, but it looks like we are missing that part at the top of the kvm/queue tree. For your convenience, let me resend v4 so that we can upstream this feature in the

Re: [PATCH v5 0/6] Three Loongson irqchip support

2020-05-29 Thread Marc Zyngier
On Thu, 28 May 2020 23:27:48 +0800, Jiaxun Yang wrote: > v5: > - Add some range checks in dt-schema > > Jiaxun Yang (6): > irqchip: Add Loongson HyperTransport Vector support > dt-bindings: interrupt-controller: Add Loongson HTVEC > irqchip: Add Loongson PCH PIC controller > dt-bindings:

[GIT PULL] sound fixes for 5.7 (rc8 or final)

2020-05-29 Thread Takashi Iwai
Linus, please pull sound fixes for v5.7 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.7 The topmost commit is 630e36126e420e1756378b3427b42711ce0b9ddd sound fixes for 5.7 (rc8 or final) Only

[PATCH 6/6] KVM: X86: Move kvm_apic_set_version() to kvm_update_state_based_on_cpuid()

2020-05-29 Thread Xiaoyao Li
Obviously, kvm_apic_set_version() fits well in kvm_update_state_based_on_cpuid(). Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index 5d4da8970940..eb60098aca29 100644 --- a/a

[PATCH 4/6] KVM: X86: Split kvm_update_cpuid()

2020-05-29 Thread Xiaoyao Li
Split the part of updating KVM states from kvm_update_cpuid(), and put it into a new kvm_update_state_based_on_cpuid(). So it's clear that kvm_update_cpuid() is to update guest CPUID settings, while kvm_update_state_based_on_cpuid() is to update KVM states based on the updated CPUID settings. Sign

Re: [EXT] mwifiex: Firmware name for W8997 sdio wifi chip

2020-05-29 Thread Pali Rohár
On Friday 29 May 2020 08:49:18 Ganapathi Bhat wrote: > Hi Pali, > > > Hello Ganapathi! Thank you for information. Can you point me to git tree or > > location where are firmware files already updated? > > https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git > > or > > ht

[PATCH 3/6] KVM: X86: Introduce kvm_check_cpuid()

2020-05-29 Thread Xiaoyao Li
Use kvm_check_cpuid() to validate if userspace provides legal cpuid settings and call it before KVM updates CPUID. Signed-off-by: Xiaoyao Li --- Is the check of virutal address width really necessary? KVM doesn't check other bits at all. I guess the policy is that KVM allows illegal CPUID setting

[PATCH 1/6] KVM: X86: Reset vcpu->arch.cpuid_nent to 0 if SET_CPUID fails

2020-05-29 Thread Xiaoyao Li
It needs to invalidate CPUID configruations if usersapce provides illegal input. Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index cd708b0b460a..2f1a9650b7f2 100644 --- a/arch/x86/kvm/cpuid

[PATCH 2/6] KVM: X86: Go on updating other CPUID leaves when leaf 1 is absent

2020-05-29 Thread Xiaoyao Li
As handling of bits other leaf 1 added over time, kvm_update_cpuid() should not return directly if leaf 1 is absent, but should go on updateing other CPUID leaves. Signed-off-by: Xiaoyao Li --- arch/x86/kvm/cpuid.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-)

[PATCH 0/6] Refactor handling flow of SET_CPUID*

2020-05-29 Thread Xiaoyao Li
This serial is the extended version of https://lkml.kernel.org/r/20200528151927.14346-1-xiaoyao...@intel.com First two patches are bug fixing, and the other aim to refactor the flow of SET_CPUID* as: 1. cpuid check: check if userspace provides legal CPUID settings; 2. cpuid update: Update some sp

[PATCH 5/6] KVM: X86: Move kvm_x86_ops.cpuid_update() into kvm_update_state_based_on_cpuid()

2020-05-29 Thread Xiaoyao Li
kvm_x86_ops.cpuid_update() is used to update vmx/svm settings based on updated CPUID settings. So it's supposed to be called after CPUIDs are fully updated, i.e., kvm_update_cpuid(), not in the middle stage. Put it in kvm_update_state_based_on_cpuid() to make it clear that it's to update vmx/svm s

Re: [02/12] net: hns3: Destroy a mutex after initialisation failure in hclge_init_ae_dev()

2020-05-29 Thread Markus Elfring
>> Would you like to add the tag “Fixes” to the commit message? > > Since it seems not a very urgent issue, so i send it to the -next I suggest to take another look at the prioritisation for another completion of the exception handling. > and make it as a code optimization. I propose to reconsi

Re: [PATCH v3 2/2] usb: serial: xr_serial: Add gpiochip support

2020-05-29 Thread Johan Hovold
On Wed, May 27, 2020 at 08:39:59AM +0530, Manivannan Sadhasivam wrote: > Hi, > > On Tue, May 19, 2020 at 03:07:40PM +0200, Johan Hovold wrote: > > On Fri, May 01, 2020 at 12:19:24AM +0530, m...@kernel.org wrote: > > > From: Manivannan Sadhasivam > > > > > > Add gpiochip support for Maxlinear/Exa

Re: [PATCH v3 69/75] x86/realmode: Setup AP jump table

2020-05-29 Thread Borislav Petkov
On Tue, Apr 28, 2020 at 05:17:19PM +0200, Joerg Roedel wrote: > From: Tom Lendacky > > Setup the AP jump table to point to the SEV-ES trampoline code so that > the APs can boot. Tom, in his laconic way, doesn't want to explain to us why is this even needed... :) /me reads the code /me reads t

Re: [PATCH] bpf/sockmap: fix kernel panic at __tcp_bpf_recvmsg

2020-05-29 Thread dihu
On 2020/5/27 5:10, John Fastabend wrote: dihu wrote: From 865a45747de6b68fd02a0ff128a69a5c8feb73c3 Mon Sep 17 00:00:00 2001 From: dihu Date: Mon, 25 May 2020 17:23:16 +0800 Subject: [PATCH] bpf/sockmap: fix kernel panic at __tcp_bpf_recvmsg When user application calls read() with MSG_PEEK f

Re: [PATCH] edac: Fix reference count leak in edac_device_register_sysfs_main_kobj()

2020-05-29 Thread Borislav Petkov
On Fri, May 29, 2020 at 10:45:08AM +0200, Markus Elfring wrote: > Would you like to indicate with such information (according to > the topic “net-sysfs: Fix reference count leak in > rx|netdev_queue_add_kobject”) > that your issue was detected also with the help of the kernel fuzzing > tool “syzka

RE: [EXT] mwifiex: Firmware name for W8997 sdio wifi chip

2020-05-29 Thread Ganapathi Bhat
Hi Pali, > Hello Ganapathi! Seems that on both locations is older version of > sdsd8997_combo_v4.bin firmware, not the latest one. On both location is > available just version 16.68.1.p179. But we have newer version 16.68.1.p197. > Could you please recheck it? p179 do have the fix but we will tr

Re: [PATCH] mm/gup: documentation fix for pin_user_pages*() APIs

2020-05-29 Thread David Hildenbrand
On 29.05.20 10:45, John Hubbard wrote: > All of the pin_user_pages*() API calls will cause pages to be > dma-pinned. As such, they are all suitable for either DMA, RDMA, > and/or Direct IO. The documentation should say so, but it was > instead saying that three of the API calls were only suitable f

Re: [PATCH 1/2] sched/uclamp: Add a new sysctl to control RT default boost value

2020-05-29 Thread Qais Yousef
On 05/28/20 20:29, Peter Zijlstra wrote: > On Thu, May 28, 2020 at 05:51:31PM +0100, Qais Yousef wrote: > > > In my head, the simpler version of > > > > if (rt_task(p) && !uc->user_defined) > > // update_uclamp_min > > > > Is a single branch and write to cache, so should be fast.

Re: [EXT] mwifiex: Firmware name for W8997 sdio wifi chip

2020-05-29 Thread Pali Rohár
On Friday 29 May 2020 09:11:08 Ganapathi Bhat wrote: > Hi Pali, > > > Hello Ganapathi! Seems that on both locations is older version of > > sdsd8997_combo_v4.bin firmware, not the latest one. On both location is > > available just version 16.68.1.p179. But we have newer version 16.68.1.p197. > >

Re: [PATCH v4 0/7] mtd: spi-nor: add xSPI Octal DTR support

2020-05-29 Thread Pratyush Yadav
Hi Mason, On 29/05/20 03:36PM, Mason Yang wrote: > Mason Yang (7): > mtd: spi-nor: sfdp: get octal mode maximum speed from BFPT > mtd: spi-nor: sfdp: parse xSPI Profile 1.0 table I think you've misunderstood what Boris meant. The idea of specifying a dependency on a patch set is assuming tha

Re: [V6 PATCH 1/2] dt-bindings: Added device tree binding for max98390

2020-05-29 Thread Steve Lee
On Thu, May 28, 2020 at 11:17 PM Rob Herring wrote: > > On Thu, May 28, 2020 at 07:37:55PM +0900, Steve Lee wrote: > > Add DT binding of max98390 amplifier driver. > > > > Signed-off-by: Steve Lee > > --- > > Changed since V5: > > * Change txt to yaml and fix up the examples. > > Changed si

Re: [PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap

2020-05-29 Thread Mika Penttilä
Hi, On 29.5.2020 11.03, Jason Wang wrote: Currently the doorbell is relayed via eventfd which may have significant overhead because of the cost of vmexits or syscall. This patch introduces mmap() based doorbell mapping which can eliminate the overhead caused by vmexit or syscall. Just wonderin

Re: [PATCH v2 4/4] irqchip: qcom-pdc: Introduce irq_set_wake call

2020-05-29 Thread Maulik Shah
Hi, On 5/27/2020 3:45 PM, Stephen Boyd wrote: Quoting Maulik Shah (2020-05-23 10:11:13) Remove irq_disable callback to allow lazy disable for pdc interrupts. Add irq_set_wake callback that unmask interrupt in HW when drivers mark interrupt for wakeup. Interrupt will be cleared in HW during laz

Re: [PATCH] edac: Fix reference count leak in edac_device_register_sysfs_main_kobj()

2020-05-29 Thread Markus Elfring
… > +++ b/drivers/edac/edac_device_sysfs.c > @@ -275,6 +275,7 @@ int edac_device_register_sysfs_main_kobj(struct > edac_device_ctl_info *edac_dev) > > /* Error exit stack */ > err_kobj_reg: > + kobject_put(&edac_dev->kobj); > module_put(edac_dev->owner); > > err_out: I suggest t

Re: [PATCH] net: atm: Replace kmalloc with kzalloc in the error message

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 09:01:42AM +0800, Yi Wang wrote: > From: Liao Pingfang > > Use kzalloc instead of kmalloc in the error message according to > the previous kzalloc() call. Looking into the context (atomic!) and error message itself I would rather drop message completely. > Signed-off-by:

[PATCH v2 3/5] scsi: ufs-mediatek: Introduce low-power mode for device power supply

2020-05-29 Thread Stanley Chu
Allow device power supply to enter low-power mode if device will do nothing to save more power. Signed-off-by: Stanley Chu Reviewed-by: Pengshun Zhao --- drivers/scsi/ufs/ufs-mediatek.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/

[PATCH v2 0/5] scsi: ufs-mediatek: Fix clk-gating and introduce low-power mode for vccq2

2020-05-29 Thread Stanley Chu
Hi, This series fixes clk-gating issues and introduces low-power mode for vccq2 in MediaTek platforms. v1 -> v2: - Add patch [4] and [5] Stanley Chu (5): scsi: ufs-mediatek: Fix imprecise waiting time for ref-clk control scsi: ufs-mediatek: Do not gate clocks if auto-hibern8 is not entered

[PATCH v2 4/5] scsi: ufs-mediatek: Fix unbalanced clock on/off

2020-05-29 Thread Stanley Chu
MediaTek UFS clocks are separated to two parts and controlled by different modules: ufs-mediatek and phy-ufs-mediatek. If both Auto-Hibern8 and clk-gating feature are enabled, mphy power control is not balanced thus unbalanced control also happens to the clocks probed by phy-ufs-mediatek module.

[PATCH v2 5/5] scsi: ufs-mediatek: Allow unbound mphy

2020-05-29 Thread Stanley Chu
Allow unbound MPHY module since not every MediaTek UFS platform needs specific MPHY control. Signed-off-by: Stanley Chu Reviewed-by: Peter Wang --- drivers/scsi/ufs/ufs-mediatek.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-me

[PATCH v2 2/5] scsi: ufs-mediatek: Do not gate clocks if auto-hibern8 is not entered yet

2020-05-29 Thread Stanley Chu
There are some chances that link enters hibern8 lately by auto-hibern8 scheme during the clock-gating flow. Clocks shall not be gated if link is still active otherwise host or device may hang. Fix this by returning error code to the caller __ufshcd_setup_clocks() to skip gating clocks there if lin

[PATCH v2 1/5] scsi: ufs-mediatek: Fix imprecise waiting time for ref-clk control

2020-05-29 Thread Stanley Chu
Currently ref-clk control timeout is implemented by Jiffies. However jiffies is not accurate enough thus "false timeout" may happen. Use more accurate delay mechanism instead, for example, ktime. Signed-off-by: Stanley Chu Reviewed-by: Andy Teng --- drivers/scsi/ufs/ufs-mediatek.c | 7 ---

Re: [PATCH v4 1/7] mtd: spi-nor: sfdp: get octal mode maximum speed from BFPT

2020-05-29 Thread Pratyush Yadav
On 29/05/20 03:36PM, Mason Yang wrote: > Get maximum operation speed of device in octal mode from > BFPT 20th DWORD. I don't like the idea of getting the maximum operation speed from BFPT when the Profile 1.0 table already tells us that. For example, the 200MHz operation dummy cycles field in th

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