Re: [PATCH AUTOSEL 4.9 64/90] serial: uartps: Wait for tx_empty in console setup

2020-09-28 Thread Greg Kroah-Hartman
On Tue, Sep 29, 2020 at 01:43:22AM +0530, Naresh Kamboju wrote: > On Tue, 29 Sep 2020 at 01:41, Naresh Kamboju > wrote: > > > > On Fri, 18 Sep 2020 at 07:55, Sasha Levin wrote: > > > > > > From: Raviteja Narayanam > > > > > > [ Upstream commit 42e11948ddf68b9f799cad8c0ddeab0a39da33e8 ] > > > >

Re: [PATCH V1 vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module

2020-09-28 Thread Eli Cohen
On Tue, Sep 29, 2020 at 02:51:12AM -0400, Michael S. Tsirkin wrote: > On Tue, Sep 29, 2020 at 09:34:33AM +0300, Eli Cohen wrote: > > On Tue, Sep 29, 2020 at 02:26:44AM -0400, Michael S. Tsirkin wrote: > > > On Tue, Sep 29, 2020 at 09:20:26AM +0300, Eli Cohen wrote: > > > > On Mon, Sep 28, 2020 at 0

Re: WARNING in __kernel_read (2)

2020-09-28 Thread Christoph Hellwig
On Mon, Sep 28, 2020 at 11:46:48PM -0700, Eric Biggers wrote: > > Linus asked for it. What is the call chain that we hit it with? > > Call Trace: > kernel_read+0x52/0x70 fs/read_write.c:471 > kernel_read_file fs/exec.c:989 [inline] > kernel_read_file+0x2e5/0x620 fs/exec.c:952 > kernel_read_fi

Re: [PATCH v3] leds: tlc591xx: fix leak of device node iterator

2020-09-28 Thread Tomi Valkeinen
On 26/09/2020 19:27, Tobias Jordan wrote: > In one of the error paths of the for_each_child_of_node loop in > tlc591xx_probe, add missing call to of_node_put. > > Fixes: 1ab4531ad132 ("leds: tlc591xx: simplify driver by using the managed > led API") > Signed-off-by: Tobias Jordan > Reviewed-by:

Re: [PATCH] dt-bindings: Fix 'reg' size issues in zynqmp examples

2020-09-28 Thread Michal Simek
Hi Rob, On 28. 09. 20 17:59, Rob Herring wrote: > The default sizes in examples for 'reg' are 1 cell each. Fix the > incorrect sizes in zynqmp examples: > > Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.example.dt.yaml: > example-0: dma-controller@fd4c:reg:0: [0, 4249616384,

Re: [PATCH v3] Bluetooth: Check for encryption key size on connect

2020-09-28 Thread Archie Pusaka
Hi Marcel, On Tue, 29 Sep 2020 at 14:21, Marcel Holtmann wrote: > > Hi Archie, > > >>> When receiving connection, we only check whether the link has been > >>> encrypted, but not the encryption key size of the link. > >>> > >>> This patch adds check for encryption key size, and re

Re: [PATCH 4.19 38/92] kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler

2020-09-28 Thread Greg Kroah-Hartman
On Tue, Sep 29, 2020 at 02:49:54PM +0900, Masami Hiramatsu wrote: > Hi, > > On Mon, 28 Sep 2020 18:15:35 -0400 > Steven Rostedt wrote: > > > On Mon, 28 Sep 2020 18:09:42 -0400 > > Steven Rostedt wrote: > > > > > On Tue, 29 Sep 2020 01:32:59 +0530 > > > Naresh Kamboju wrote: > > > > > > > sta

Re: [PATCH V1 vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module

2020-09-28 Thread Michael S. Tsirkin
On Tue, Sep 29, 2020 at 09:34:33AM +0300, Eli Cohen wrote: > On Tue, Sep 29, 2020 at 02:26:44AM -0400, Michael S. Tsirkin wrote: > > On Tue, Sep 29, 2020 at 09:20:26AM +0300, Eli Cohen wrote: > > > On Mon, Sep 28, 2020 at 03:55:09PM -0400, Michael S. Tsirkin wrote: > > > > On Thu, Sep 24, 2020 at 0

[PATCH v3 7/8] powerpc: Remove __USE_RTC()

2020-09-28 Thread Christophe Leroy
Now that PowerPC 601 is gone, __USE_RTC() is never true. Remove it. That also leads to removing get_rtc() and get_rtcl() Signed-off-by: Christophe Leroy --- v2: Also remove get_rtc() and get_rtcl() --- arch/powerpc/include/asm/time.h | 28 +- arch/powerpc/kernel/time.c | 5

[PATCH v3 5/8] powerpc: Remove support for PowerPC 601

2020-09-28 Thread Christophe Leroy
PowerPC 601 has been retired. Remove all associated specific code. CPU_FTRS_PPC601 has CPU_FTR_COHERENT_ICACHE and CPU_FTR_COMMON. CPU_FTR_COMMON is already present via other CPU_FTRS. None of the remaining CPU selects CPU_FTR_COHERENT_ICACHE. So CPU_FTRS_PPC601 can be removed from the possible

[PATCH v3 8/8] powerpc: Remove get_tb_or_rtc()

2020-09-28 Thread Christophe Leroy
601 is gone, get_tb_or_rtc() is equivalent to get_tb(). Replace the former by the later. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/time.h | 5 - arch/powerpc/kernel/irq.c | 2 +- arch/powerpc/kernel/time.c | 6 +++--- 3 files changed, 4 insertions(+), 9 deletio

[PATCH v3 4/8] powerpc: Remove PowerPC 601

2020-09-28 Thread Christophe Leroy
Powerpc 601 is 25 years old. It is not selected by any defconfig. It requires a lot of special handling as it deviates from the standard 6xx. Retire it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/cputable.c | 15 --- arch/powerpc/platforms/Kconfig.cputype | 11

[PATCH v3 6/8] powerpc: Tidy up a bit after removal of PowerPC 601.

2020-09-28 Thread Christophe Leroy
The removal of the 601 left some standalone blocks from former if/else. Drop the { } and re-indent. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/btext.c| 11 +++-- arch/powerpc/mm/book3s32/mmu.c | 45 +++--- 2 files changed, 24 insertions(+), 32 del

[PATCH v3 2/8] powerpc: Remove CONFIG_PPC601_SYNC_FIX

2020-09-28 Thread Christophe Leroy
This config option isn't in any defconfig. The very first versions of Powerpc 601 have a bug which requires additional sync before and/or after some instructions. This was more than 25 years ago and time has come to retire those buggy versions of the 601 from the kernel. Signed-off-by: Christoph

[PATCH v3 3/8] powerpc: Drop SYNC_601() ISYNC_601() and SYNC()

2020-09-28 Thread Christophe Leroy
Those macros are now empty at all time. Drop them. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc_asm.h | 4 arch/powerpc/kernel/entry_32.S | 17 + arch/powerpc/kernel/fpu.S | 1 - arch/powerpc/kernel/head_32.S | 9 - arch/p

[PATCH v3 1/8] powerpc: Remove SYNC on non 6xx

2020-09-28 Thread Christophe Leroy
SYNC is usefull for Powerpc 601 only. On everything else, SYNC is empty. Remove it from code that is not made to run on 6xx. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_40x.S | 1 - arch/powerpc/kernel/head_booke.h | 1 - arch/powerpc/kernel/misc_64.S| 1 - 3 files change

Re: [PATCH v2] ARM: dts: r8a7742-iwg21d-q7: Add LCD support

2020-09-28 Thread Geert Uytterhoeven
Hi Prabhakar, On Mon, Sep 28, 2020 at 9:52 AM Prabhakar Mahadev Lad wrote: > > On Sun, Sep 27, 2020 at 10:04 PM Laurent Pinchart > > wrote: > > > On Sun, Sep 27, 2020 at 02:01:50PM +0100, Lad, Prabhakar wrote: > > > > On Mon, Aug 24, 2020 at 1:48 AM Laurent Pinchart wrote: > > > > > On Thu, Aug

Re: [PATCH v2 1/7] powerpc: Remove SYNC on non 6xx

2020-09-28 Thread Christophe Leroy
Le 29/09/2020 à 08:09, Christophe Leroy a écrit : SYNC is usefull for Powerpc 601 only. On everything else, SYNC is empty. Remove it from code that is not made to run on 6xx. Signed-off-by: Christophe Leroy Oops, the last patch of the series is missing. Will resend, sorry for the noise.

Re: [PATCH] target/i386: add -cpu,lbr=true support to enable guest LBR

2020-09-28 Thread Xu, Like
Hi Eduardo, On 2020/9/28 23:41, Eduardo Habkost wrote: On Mon, Sep 28, 2020 at 10:51:03PM +0800, Xu, Like wrote: Hi Eduardo, Thanks for your detailed review. On 2020/9/25 6:05, Eduardo Habkost wrote: I've just noticed this on my review queue (apologies for the long delay). Comments below:

Re: WARNING in __kernel_read (2)

2020-09-28 Thread Eric Biggers
On Tue, Sep 29, 2020 at 08:38:15AM +0200, Christoph Hellwig wrote: > On Mon, Sep 28, 2020 at 03:14:41PM -0700, Eric Biggers wrote: > > On Sat, Sep 26, 2020 at 01:17:04PM +, David Laight wrote: > > > From: David Laight > > > > Sent: 26 September 2020 12:16 > > > > To: 'syzbot' ; > > > > linux-f

Re: [PATCH v2 for v5.9] mm/page_alloc: handle a missing case for memalloc_nocma_{save/restore} APIs

2020-09-28 Thread Joonsoo Kim
2020년 9월 29일 (화) 오후 1:50, Andrew Morton 님이 작성: > > On Tue, 29 Sep 2020 10:28:05 +0900 Joonsoo Kim wrote: > > > > What about manually emptying the pcplists beforehand? > > > > It also increases the probability. schedule() or interrupt after emptying > > but > > before the allocation could invalida

Re: linux-next: build warning after merge of the tty tree

2020-09-28 Thread miaoqinglang
在 2020/9/29 14:01, Stephen Rothwell 写道: Hi all, After merging the tty tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/tty/serial/mvebu-uart.c: In function 'mvebu_uart_probe': drivers/tty/serial/mvebu-uart.c:806:6: warning: unused variable 'ret' [-Wunused-

Re: WARNING in __kernel_read (2)

2020-09-28 Thread Christoph Hellwig
On Mon, Sep 28, 2020 at 03:14:41PM -0700, Eric Biggers wrote: > On Sat, Sep 26, 2020 at 01:17:04PM +, David Laight wrote: > > From: David Laight > > > Sent: 26 September 2020 12:16 > > > To: 'syzbot' ; > > > linux-fsde...@vger.kernel.org; > > > linux-kernel@vger.kernel.org; syzkaller-b...@goog

Re: [PATCH RFC v7 1/6] dt-bindings: display: add Unisoc's drm master bindings

2020-09-28 Thread Kevin Tang
Hi Rob, Component framework include master and component, here is master subnode. It seems that everyone else does it, why not me? Your comments on v6: "We generally try to avoid this virtual node as it doesn't represent any h/w. Can't you bind the driver to the DPU directly?" I'm sorry, maybe is

Re: [PATCH V1 vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module

2020-09-28 Thread Eli Cohen
On Tue, Sep 29, 2020 at 02:26:44AM -0400, Michael S. Tsirkin wrote: > On Tue, Sep 29, 2020 at 09:20:26AM +0300, Eli Cohen wrote: > > On Mon, Sep 28, 2020 at 03:55:09PM -0400, Michael S. Tsirkin wrote: > > > On Thu, Sep 24, 2020 at 05:32:31PM +0300, Eli Cohen wrote: > > > > Change core vdpa function

[PATCH 5/8] staging: rtl8188eu: rename struct field bUsed -> used

2020-09-28 Thread Michael Straube
Rename field of struct rt_pmkid_list to avoid camel case. bUsed -> used Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c| 2 +- drivers/staging/rtl8188eu/include/rtw_security.h | 2 +- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 6 +++--- 3 files chang

[PATCH 3/8] staging: rtl8188eu: rename struct field Bssid -> bssid

2020-09-28 Thread Michael Straube
Rename field of struct rt_pmkid_list to avoid camel case. Bssid -> bssid Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c| 2 +- drivers/staging/rtl8188eu/include/rtw_security.h | 2 +- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 8 3 files ch

[PATCH 8/8] staging: rtl8188eu: clean up indent style issue

2020-09-28 Thread Michael Straube
Replace spaces with tab to clear checkpatch error. ERROR: code indent should use tabs where possible Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/driv

[PATCH 4/8] staging: rtl8188eu: use ETH_ALEN

2020-09-28 Thread Michael Straube
Use ETH_ALEN instead of hard coded array size. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/include/rtw_security.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_security.h b/drivers/staging/rtl8188eu/include/rtw_securit

[PATCH 7/8] staging: rtl8188eu: remove unused variable ratelen

2020-09-28 Thread Michael Straube
After the removal of cckrates_included() and cckrates_only_included() from rtw_wlan_util.c the variable/parameter 'ratelen' is unused now. Remove it from update_wireless_mode() and judge_network_type(). Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 6 ++---

[PATCH 6/8] staging: rtl8188eu: remove cckrates{only}_included()

2020-09-28 Thread Michael Straube
In rtw_ieee80211.c there are rtw_is_cckrates_included() and rtw_is_cckratesonly_included() which have the same functionality as cckrates_included() and cckrates_only_included() defined in rtw_wlan_util.c. Remove the functions from rtw_wlan_util.c and use those from rtw_ieee80211.c. Signed-off-by:

Re: Patch "ata: sata_mv, avoid trigerrable BUG_ON" has been added to the 4.4-stable tree

2020-09-28 Thread Jiri Slaby
On 28. 09. 20, 14:30, Greg KH wrote: >> commit 4b308d858a1a34dae1e38948f2c0497161d9ddd8 >> Author: Jiri Slaby >> Date: Thu Oct 31 10:59:46 2019 +0100 >> >> ata: sata_mv, avoid trigerrable BUG_ON >> >> [ Upstream commit e9f691d899188679746eeb96e6cb520459eda9b4 ] >> >> There

[PATCH 2/8] staging: rtl8188eu: clean up comparsions to NULL

2020-09-28 Thread Michael Straube
Clean up remaining comparsions to NULL reported by checkpatch. x == NULL -> !x x != NULL -> x Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_security.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_security.c

[PATCH 1/8] staging: rtl8188eu: remove unused macros and definitions

2020-09-28 Thread Michael Straube
Removep unused macros and definitions from rtw_security.h leftover from previous cleanup patches. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/include/rtw_security.h | 58 --- 1 file changed, 58 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_securit

Re: [PATCH V1 vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module

2020-09-28 Thread Michael S. Tsirkin
On Tue, Sep 29, 2020 at 09:20:26AM +0300, Eli Cohen wrote: > On Mon, Sep 28, 2020 at 03:55:09PM -0400, Michael S. Tsirkin wrote: > > On Thu, Sep 24, 2020 at 05:32:31PM +0300, Eli Cohen wrote: > > > Change core vdpa functionality into a loadbale module such that upcoming > > > block implementation w

Re: [PATCH v4 1/6] dt-bindings: ti-serdes-mux: Add defines for J7200 SoC

2020-09-28 Thread Peter Rosin
Hi! On 2020-09-21 16:39, Roger Quadros wrote: > There are 4 lanes in each J7200 SERDES. Each SERDES lane mux can > select upto 4 different IPs. Define all the possible functions. > > Cc: Peter Rosin > Signed-off-by: Roger Quadros Acked-by: Peter Rosin Thanks for taking care of this! Cheers,

[PATCH v2 0/2] Some small cleanup/fixes for SPMI driver

2020-09-28 Thread Mauro Carvalho Chehab
Hi Stephen, While double-checking against yesterday's linux-next, I noticed that those two patches weren't merge yet. As you replied to both with your Reviewed-by:, are you expecting them to be merged via someone's tree, or are you intending to merge them via your tree? Thanks! Mauro Mauro Ca

Re: [PATCH AUTOSEL 5.8 28/29] spi: fsl-dspi: fix use-after-free in remove path

2020-09-28 Thread Sascha Hauer
Hi Sasha, On Mon, Sep 28, 2020 at 09:30:25PM -0400, Sasha Levin wrote: > From: Sascha Hauer > > [ Upstream commit 530b5affc675ade5db4a03f04ed7cd66806c8a1a ] > > spi_unregister_controller() not only unregisters the controller, but > also frees the controller. This will free the driver data with

[PATCH v2 1/2] spmi: get rid of a warning when built with W=1

2020-09-28 Thread Mauro Carvalho Chehab
The SPMI core complaing with this warning when built with W=1: drivers/spmi/spmi.c: In function ‘spmi_controller_remove’: drivers/spmi/spmi.c:548:6: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable] 548 | int dummy; | ^ As th

Re: [PATCH 2/2] driver core: platform: provide devm_platform_iounremap_resource

2020-09-28 Thread pierre kuo
Hi Greg and Rafael: Would you please help to review these 2 patches? https://lkml.org/lkml/2020/9/20/112 https://lkml.org/lkml/2020/9/20/113 Appreciate ur help in advance. > > Combine platform_get_resource() and devm_iounremap_resource() to release > the iomem allocated by devm_platform_get_and_

[PATCH v2 2/2] spmi: fix some coding style issues at the spmi core

2020-09-28 Thread Mauro Carvalho Chehab
While preparing to port the HiSilicon 6421v600 SPMI driver, I noticed some coding style issues at the SPMI core. Address them. Reviewed-by: Stephen Boyd Signed-off-by: Mauro Carvalho Chehab --- drivers/spmi/spmi.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/

Re: [PATCH v3] Bluetooth: Check for encryption key size on connect

2020-09-28 Thread Marcel Holtmann
Hi Archie, >>> When receiving connection, we only check whether the link has been >>> encrypted, but not the encryption key size of the link. >>> >>> This patch adds check for encryption key size, and reject L2CAP >>> connection which size is below the specified threshold (def

Re: [PATCH 2/2] dt-bindings: document a new quirk for dwc3

2020-09-28 Thread Felipe Balbi
Mauro Carvalho Chehab writes: > Ping. > > Felipe, > > Em Thu, 17 Sep 2020 08:47:48 -0600 > Rob Herring escreveu: > >> On Thu, Sep 17, 2020 at 1:18 AM Mauro Carvalho Chehab >> wrote: >> > > >> > IMO, adding a new quirk is cleaner, and adopts the same solution >> > that it is currently used by ot

Re: [PATCH V1 vhost-next] vdpa/mlx5: Make vdpa core driver a distinct module

2020-09-28 Thread Eli Cohen
On Mon, Sep 28, 2020 at 03:55:09PM -0400, Michael S. Tsirkin wrote: > On Thu, Sep 24, 2020 at 05:32:31PM +0300, Eli Cohen wrote: > > Change core vdpa functionality into a loadbale module such that upcoming > > block implementation will be able to use it. > > > > Signed-off-by: Eli Cohen > > Why

[PATCH v4 1/2] iommu/tegra-smmu: Unwrap tegra_smmu_group_get

2020-09-28 Thread Nicolin Chen
The tegra_smmu_group_get was added to group devices in different SWGROUPs and it'd return a NULL group pointer upon a mismatch at tegra_smmu_find_group(), so for most of clients/devices, it very likely would mismatch and need a fallback generic_device_group(). But now tegra_smmu_group_get handles

[PATCH v4 0/2] iommu/tegra-smmu: Two followup changes

2020-09-28 Thread Nicolin Chen
Two followup patches for tegra-smmu: PATCH-1 is a clean-up patch for the recently applied SWGROUP change. PATCH-2 fixes a potential race condition Changelog v3->v4: * PATCH-2: Fixed typo in subject v2->v3: * PATCH-2: renamed "err_unlock" to "unlock" v1->v2: * Separated first two changs of V1 so

Re: linux-next: build failure after merge of the mhi tree

2020-09-28 Thread Kalle Valo
Manivannan Sadhasivam writes: >> I was looking at commit ed39d7816885 ("bus: mhi: Remove auto-start >> option") and noticed this in the commit log: >> >> This is really up to the MHI device(channel) driver to manage the state >> of its channels. >> >> So does this mean we have to make c

[PATCH v4 2/2] iommu/tegra-smmu: Expand mutex protection range

2020-09-28 Thread Nicolin Chen
This is used to protect potential race condition at use_count. since probes of client drivers, calling attach_dev(), may run concurrently. Signed-off-by: Nicolin Chen --- Changelog v3->v4: * Fixed typo "Expend" => "Expand" v2->v3: * Renamed label "err_unlock" to "unlock" v1->v2: * N/A drive

Re: [PATCH v4] Bluetooth: btusb: Add Qualcomm Bluetooth SoC WCN6855 support

2020-09-28 Thread Marcel Holtmann
Hi Rocky, > This patch add support for WCN6855 i.e. patch and nvm download > support. > > T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 > D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 > P: Vendor=0cf3 ProdID=e600 Rev= 0.01 > C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=10

Re: [PATCH] media: atomisp: Fixed error handling path

2020-09-28 Thread Dan Carpenter
On Tue, Sep 29, 2020 at 07:34:39AM +0530, Souptick Joarder wrote: > Hi Dan, > > > On Mon, Sep 28, 2020 at 2:08 PM Dan Carpenter > wrote: > > > > On Sun, Sep 27, 2020 at 08:38:04PM +0530, Souptick Joarder wrote: > > > Inside alloc_user_pages() based on flag value either pin_user_pages() > > > or

Re: [PATCH v3 -next] vdpa: mlx5: change Kconfig depends to fix build errors

2020-09-28 Thread Michael S. Tsirkin
On Tue, Sep 29, 2020 at 09:01:42AM +0300, Eli Cohen wrote: > On Fri, Sep 25, 2020 at 06:20:45AM -0400, Michael S. Tsirkin wrote: > > > > > > > > Hmm other drivers select VHOST_IOTLB, why not do the same? > > > > > > I can't see another driver doing that. > > > > Well grep VHOST_IOTLB and you wil

[PATCH v2 4/7] powerpc: Remove PowerPC 601

2020-09-28 Thread Christophe Leroy
Powerpc 601 is 25 years old. It is not selected by any defconfig. It requires a lot of special handling as it deviates from the standard 6xx. Retire it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/cputable.c | 15 --- arch/powerpc/platforms/Kconfig.cputype | 11

[PATCH v2 7/7] powerpc: Remove __USE_RTC()

2020-09-28 Thread Christophe Leroy
Now that PowerPC 601 is gone, __USE_RTC() is never true. Remove it. That also leads to removing get_rtc() and get_rtcl() Signed-off-by: Christophe Leroy --- v2: Also remove get_rtc() and get_rtcl() --- arch/powerpc/include/asm/time.h | 28 +- arch/powerpc/kernel/time.c | 5

[PATCH v2 5/7] powerpc: Remove support for PowerPC 601

2020-09-28 Thread Christophe Leroy
PowerPC 601 has been retired. Remove all associated specific code. CPU_FTRS_PPC601 has CPU_FTR_COHERENT_ICACHE and CPU_FTR_COMMON. CPU_FTR_COMMON is already present via other CPU_FTRS. None of the remaining CPU selects CPU_FTR_COHERENT_ICACHE. So CPU_FTRS_PPC601 can be removed from the possible

Re: [PATCH 2/2] dt-bindings: document a new quirk for dwc3

2020-09-28 Thread Mauro Carvalho Chehab
Ping. Felipe, Em Thu, 17 Sep 2020 08:47:48 -0600 Rob Herring escreveu: > On Thu, Sep 17, 2020 at 1:18 AM Mauro Carvalho Chehab > wrote: > > > > IMO, adding a new quirk is cleaner, and adopts the same solution > > that it is currently used by other drivers with Designware IP. > > We already

[PATCH v2 6/7] powerpc: Tidy up a bit after removal of PowerPC 601.

2020-09-28 Thread Christophe Leroy
The removal of the 601 left some standalone blocks from former if/else. Drop the { } and re-indent. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/btext.c| 11 +++-- arch/powerpc/mm/book3s32/mmu.c | 45 +++--- 2 files changed, 24 insertions(+), 32 del

[PATCH v2 2/7] powerpc: Remove CONFIG_PPC601_SYNC_FIX

2020-09-28 Thread Christophe Leroy
This config option isn't in any defconfig. The very first versions of Powerpc 601 have a bug which requires additional sync before and/or after some instructions. This was more than 25 years ago and time has come to retire those buggy versions of the 601 from the kernel. Signed-off-by: Christoph

[PATCH v2 3/7] powerpc: Drop SYNC_601() ISYNC_601() and SYNC()

2020-09-28 Thread Christophe Leroy
Those macros are now empty at all time. Drop them. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc_asm.h | 4 arch/powerpc/kernel/entry_32.S | 17 + arch/powerpc/kernel/fpu.S | 1 - arch/powerpc/kernel/head_32.S | 9 - arch/p

[PATCH v2 1/7] powerpc: Remove SYNC on non 6xx

2020-09-28 Thread Christophe Leroy
SYNC is usefull for Powerpc 601 only. On everything else, SYNC is empty. Remove it from code that is not made to run on 6xx. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_40x.S | 1 - arch/powerpc/kernel/head_booke.h | 1 - arch/powerpc/kernel/misc_64.S| 1 - 3 files change

Re: [PATCH] dt-bindings: usb: add properties for hard wired devices

2020-09-28 Thread Chunfeng Yun
On Mon, 2020-09-28 at 13:12 -0500, Rob Herring wrote: > On Mon, Sep 28, 2020 at 02:39:50PM +0800, Chunfeng Yun wrote: > > Add some optional properties which are needed for hard wired devices > > > > Signed-off-by: Chunfeng Yun > > --- > > Documentation/devicetree/bindings/usb/usb-hcd.yaml | 11 +

[rcu:urezki-pcount.2020.09.27a] BUILD SUCCESS 12e20d125d431ead1a468ed33937924d0109824e

2020-09-28 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a005-20200928 x86_64 randconfig-a003-20200928 x86_64 randconfig-a004-20200928 x86_64

Re: [PATCH v3 2/2] iommu/tegra-smmu: Expend mutex protection range

2020-09-28 Thread Nicolin Chen
On Tue, Sep 29, 2020 at 07:03:36AM +0100, Christoph Hellwig wrote: > On Mon, Sep 28, 2020 at 09:52:47PM -0700, Nicolin Chen wrote: > > This is used to protect potential race condition at use_count. > > since probes of client drivers, calling attach_dev(), may run > > concurrently. > > Shouldn't th

Re: [PATCH bpf-next v2 4/4] selftest: bpf: Test copying a sockmap and sockhash

2020-09-28 Thread Martin KaFai Lau
On Mon, Sep 28, 2020 at 10:08:05AM +0100, Lorenz Bauer wrote: [ ... ] > SEC("iter/sockmap") > -int count_elems(struct bpf_iter__sockmap *ctx) > +int copy(struct bpf_iter__sockmap *ctx) > { > struct sock *sk = ctx->sk; > __u32 tmp, *key = ctx->key; > int ret; > > - if (ke

Re: [PATCH v3 2/2] iommu/tegra-smmu: Expend mutex protection range

2020-09-28 Thread Christoph Hellwig
On Mon, Sep 28, 2020 at 09:52:47PM -0700, Nicolin Chen wrote: > This is used to protect potential race condition at use_count. > since probes of client drivers, calling attach_dev(), may run > concurrently. Shouldn't this read "expand" instead of "expend"?

Re: [RFC] mm/vmstat: Add events for HugeTLB migration

2020-09-28 Thread Anshuman Khandual
On 09/29/2020 03:34 AM, Mike Kravetz wrote: > On 9/25/20 2:12 AM, Anshuman Khandual wrote: >> Add following new vmstat events which will track HugeTLB page migration. >> >> 1. HUGETLB_MIGRATION_SUCCESS >> 2. HUGETLB_MIGRATION_FAILURE >> >> It follows the existing semantics to accommodate HugeTLB

Re: [RFC 2/3] iommu: Account for dma_mask and iommu aperture in IOVA reserved regions

2020-09-28 Thread Christoph Hellwig
On Mon, Sep 28, 2020 at 09:50:36PM +0200, Eric Auger wrote: > VFIO currently exposes the usable IOVA regions through the > VFIO_IOMMU_GET_INFO ioctl. However it fails to take into account > the dma_mask of the devices within the container. The top limit > currently is defined by the iommu aperture.

Re: [PATCH v3 -next] vdpa: mlx5: change Kconfig depends to fix build errors

2020-09-28 Thread Eli Cohen
On Fri, Sep 25, 2020 at 06:20:45AM -0400, Michael S. Tsirkin wrote: > > > > > > Hmm other drivers select VHOST_IOTLB, why not do the same? > > > > I can't see another driver doing that. > > Well grep VHOST_IOTLB and you will see some examples. $ git grep -wn VHOST_IOTLB drivers/vhost/Kconfig:2:

Re: [PATCH AUTOSEL 5.8 08/29] net: dsa: microchip: look for phy-mode in port nodes

2020-09-28 Thread Helmut Grohne
Hi Sascha, On Tue, Sep 29, 2020 at 03:30:05AM +0200, Sasha Levin wrote: > From: Helmut Grohne > > [ Upstream commit edecfa98f602a597666e3c5cab2677ada38d93c5 ] > > Documentation/devicetree/bindings/net/dsa/dsa.txt says that the phy-mode > property should be specified on port nodes. However, the

linux-next: build warning after merge of the tty tree

2020-09-28 Thread Stephen Rothwell
Hi all, After merging the tty tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/tty/serial/mvebu-uart.c: In function 'mvebu_uart_probe': drivers/tty/serial/mvebu-uart.c:806:6: warning: unused variable 'ret' [-Wunused-variable] 806 | int ret, id, irq; |

Re: [PATCH v4] mm: cma: indefinitely retry allocations in cma_alloc

2020-09-28 Thread Christoph Hellwig
On Mon, Sep 28, 2020 at 01:30:27PM -0700, Chris Goldsworthy wrote: > CMA allocations will fail if 'pinned' pages are in a CMA area, since we > cannot migrate pinned pages. The _refcount of a struct page being greater > than _mapcount for that page can cause pinning for anonymous pages. This > is b

Re: sound/soc/ti/j721e-evm.c:528:34: warning: unused variable 'j721e_audio_of_match'

2020-09-28 Thread Peter Ujfalusi
On 28/09/2020 21.04, Mark Brown wrote: > On Mon, Sep 28, 2020 at 10:52:54AM -0700, Nick Desaulniers wrote: >> On Mon, Sep 28, 2020 at 12:27 AM 'Peter Ujfalusi' via Clang Built > >>> Right, in the attached .config: >>> # CONFIG_OF is not set > >>> There must be a clean way to handle this withou

Re: [PATCH bpf-next v2 2/4] selftests: bpf: Add helper to compare socket cookies

2020-09-28 Thread Martin KaFai Lau
On Mon, Sep 28, 2020 at 10:08:03AM +0100, Lorenz Bauer wrote: > We compare socket cookies to ensure that insertion into a sockmap worked. > Pull this out into a helper function for use in other tests. > > Signed-off-by: Lorenz Bauer > --- > .../selftests/bpf/prog_tests/sockmap_basic.c | 50

RE: [PATCH 0/2] Enable support IPI_CPU_CRASH_STOP to be pseudo-NMI

2020-09-28 Thread ito-yui...@fujitsu.com
Hi Marc Thank you for your reply. > On 2020-09-28 03:43, ito-yui...@fujitsu.com wrote: > > Hi Marc, Sumit > > > > I would appreciate if you have any advice on this patch. > > I haven't had a chance to look into it, as I'm not even sure I'll take the > core > series in the first place (there are

[gustavoars-linux:for-linus/kspp] BUILD SUCCESS e1ea50331eaed753dfbc68e1263228c581cd6a10

2020-09-28 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a005-20200928 x86_64 randconfig-a003-20200928 x86_64 randconfig

Re: [PATCH v6 3/6] mm: introduce memfd_secret system call to create "secret" memory areas

2020-09-28 Thread Edgecombe, Rick P
On Thu, 2020-09-24 at 16:29 +0300, Mike Rapoport wrote: > Introduce "memfd_secret" system call with the ability to create > memory > areas visible only in the context of the owning process and not > mapped not > only to other processes but in the kernel page tables as well. > > The user will creat

Re: [PATCH 1/1] selinux: Measure state and hash of policy using IMA

2020-09-28 Thread Lakshmi Ramasubramanian
On 9/28/20 9:29 AM, Stephen Smalley wrote: On Sat, Sep 26, 2020 at 12:40 PM Lakshmi Ramasubramanian wrote: Critical data structures of security modules are currently not measured. Therefore an attestation service, for instance, would not be able to attest whether the security modules are alway

Re: [PATCH 4.19 38/92] kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler

2020-09-28 Thread Masami Hiramatsu
Hi, On Mon, 28 Sep 2020 18:15:35 -0400 Steven Rostedt wrote: > On Mon, 28 Sep 2020 18:09:42 -0400 > Steven Rostedt wrote: > > > On Tue, 29 Sep 2020 01:32:59 +0530 > > Naresh Kamboju wrote: > > > > > stable rc branch 4.19 build warning on arm64. > > > > > > ../kernel/kprobes.c: In function ‘

Re: PROBLEM: zstd bzImage decompression fails for some x86_32 config on 5.9-rc1

2020-09-28 Thread Feng Tang
On Tue, Sep 29, 2020 at 05:15:38AM +, Nick Terrell wrote: > > > > On Sep 28, 2020, at 11:02 AM, Nick Terrell wrote: > > > > > > > >> On Sep 28, 2020, at 1:55 AM, Feng Tang wrote: > >> > >> Hi Nick, > >> > >> 0day has found some kernel decomprssion failure case since 5.9-rc1 (X86_32 > >

Re: [PATCH 3/5] iommu/tegra-smmu: Use iommu_fwspec in .probe_/.attach_device()

2020-09-28 Thread Nicolin Chen
On Tue, Sep 29, 2020 at 07:06:37AM +0300, Dmitry Osipenko wrote: > ... > >> As I mentioned in another reply, I think tegra_smmu_find() should be all > >> you need in this case. > > > > This function is used by .probe_device() where its dev pointer is > > an SMMU client. IIUC, tegra_smmu_find() nee

Re: [PATCH v3 0/2] arm64/mm: Enable color zero pages

2020-09-28 Thread Gavin Shan
Hi Catalin, On 9/29/20 1:22 AM, Catalin Marinas wrote: On Mon, Sep 28, 2020 at 05:22:54PM +1000, Gavin Shan wrote: Testing === [1] The experiment reveals how heavily the (L1) data cache miss impacts the overall application's performance. The machine where the test is carried out h

[RFC PATCH] scripts/most_common_subject_prefix.pl: Find the most common commit subject prefix

2020-09-28 Thread Joe Perches
A common patch subject prefix for specific files is to use the lowest level directory or just the basename of the file without the file extension. For patches that touch multiple files, it's common to use the basename directory as the commit prefix. For example, patches to files in drivers/net/et

Re: [PATCH bpf-next v2 1/4] bpf: sockmap: enable map_update_elem from bpf_iter

2020-09-28 Thread Martin KaFai Lau
On Mon, Sep 28, 2020 at 10:08:02AM +0100, Lorenz Bauer wrote: > Allow passing a pointer to a BTF struct sock_common* when updating > a sockmap or sockhash. Since BTF pointers can fault and therefore be > NULL at runtime we need to add an additional !sk check to > sock_map_update_elem. Since we may

Re: general protection fault in gfs2_withdraw

2020-09-28 Thread syzbot
syzbot has bisected this issue to: commit 601ef0d52e9617588fcff3df26953592f2eb44ac Author: Bob Peterson Date: Tue Jan 28 19:23:45 2020 + gfs2: Force withdraw to replay journals and wait for it to finish bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=151d25e390 start

Re: [RFC PATCH 1/2] kvm/x86: intercept guest changes to X86_CR4_LA57

2020-09-28 Thread Lai Jiangshan
On Tue, Sep 29, 2020 at 12:24 AM Sean Christopherson wrote: > > On Mon, Sep 28, 2020 at 04:30:46PM +0800, Lai Jiangshan wrote: > > From: Lai Jiangshan > > > > When shadowpaping is enabled, guest should not be allowed > > to toggle X86_CR4_LA57. And X86_CR4_LA57 is a rarely changed > > bit, so we

Re: [PATCH v2 23/25] powerpc/signal: Create 'unsafe' versions of copy_[ck][fpr/vsx]_to_user()

2020-09-28 Thread Christophe Leroy
Le 29/09/2020 à 07:22, Christophe Leroy a écrit : Le 29/09/2020 à 04:04, Christopher M. Riedl a écrit : On Tue Aug 18, 2020 at 12:19 PM CDT, Christophe Leroy wrote: For the non VSX version, that's trivial. Just use unsafe_copy_to_user() instead of __copy_to_user(). For the VSX version, re

RE: [PATCH v6] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-09-28 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Tuesday, September 29, 2020 10:02 AM > To: 'Sebastian Andrzej Siewior' > Cc: a...@linux-foundation.org; herb...@gondor.apana.org.au; > da...@davemloft.net; linux-cry...@vger.kernel.org; linux...@kvack.org; > linux-kernel@vger

Re: [PATCH v2 23/25] powerpc/signal: Create 'unsafe' versions of copy_[ck][fpr/vsx]_to_user()

2020-09-28 Thread Christophe Leroy
Le 29/09/2020 à 04:04, Christopher M. Riedl a écrit : On Tue Aug 18, 2020 at 12:19 PM CDT, Christophe Leroy wrote: For the non VSX version, that's trivial. Just use unsafe_copy_to_user() instead of __copy_to_user(). For the VSX version, remove the intermediate step through a buffer and use u

Re: [PATCH v2 25/25] powerpc/signal32: Transform save_user_regs() and save_tm_user_regs() in 'unsafe' version

2020-09-28 Thread Christophe Leroy
Le 29/09/2020 à 04:55, Christopher M. Riedl a écrit : On Tue Aug 18, 2020 at 12:19 PM CDT, Christophe Leroy wrote: Change those two functions to be used within a user access block. For that, change save_general_regs() to and unsafe_save_general_regs(), then replace all user accesses by unsaf

Re: [PATCH WIP 1/6] media: vidtv: extract the initial CRC value to into a #define

2020-09-28 Thread Mauro Carvalho Chehab
Em Tue, 29 Sep 2020 00:26:20 -0300 "Daniel W. S. Almeida" escreveu: > From: Daniel W. S. Almeida On a very quick look, patches seem good. Why did you mark them as WIP? Next time, please add a patch 0, specially when you tag something as WIP, or RFC. > > The same constant (0x) is used

Re: [PATCH] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode

2020-09-28 Thread yue longguang
especially in public cloud case, statistic is related to monitorring and billing , both ingress and egress packets will go throught ipvs, even dr/tun mode. in dr/tun mode, ipvs need to do nothing except statistic, so skb->ipvs_property = 1 regards On Tue, Sep 29, 2020 at 1:04 PM longguang.yue w

Re: PROBLEM: zstd bzImage decompression fails for some x86_32 config on 5.9-rc1

2020-09-28 Thread Nick Terrell
> On Sep 28, 2020, at 11:02 AM, Nick Terrell wrote: > > > >> On Sep 28, 2020, at 1:55 AM, Feng Tang wrote: >> >> Hi Nick, >> >> 0day has found some kernel decomprssion failure case since 5.9-rc1 (X86_32 >> build), and it could be related with ZSTD code, though initially we bisected >> to s

Re: [PATCH v6 4/4] KVM: nSVM: implement on demand allocation of the nested state

2020-09-28 Thread Sean Christopherson
On Wed, Sep 23, 2020 at 12:10:25AM +0300, Maxim Levitsky wrote: > This way we don't waste memory on VMs which don't use nesting > virtualization even when the host enabled it for them. > > Signed-off-by: Maxim Levitsky > --- > arch/x86/kvm/svm/nested.c | 42 ++ > arch

Re: [PATCH v6 3/4] KVM: x86: allow kvm_x86_ops.set_efer to return an error value

2020-09-28 Thread Sean Christopherson
On Wed, Sep 23, 2020 at 12:10:24AM +0300, Maxim Levitsky wrote: > This will be used to signal an error to the userspace, in case > the vendor code failed during handling of this msr. (e.g -ENOMEM) > > Signed-off-by: Maxim Levitsky > --- > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > ind

[PATCH] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode

2020-09-28 Thread longguang.yue
It's ipvs's duty to do traffic statistic if packets get hit, no matter what mode it is. Signed-off-by: longguang.yue --- net/netfilter/ipvs/ip_vs_core.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c index

[PATCH v3 2/2] iommu/tegra-smmu: Expend mutex protection range

2020-09-28 Thread Nicolin Chen
This is used to protect potential race condition at use_count. since probes of client drivers, calling attach_dev(), may run concurrently. Signed-off-by: Nicolin Chen --- Changelog v2->v3: * Renamed label "err_unlock" to "unlock" v1->v2: * N/A drivers/iommu/tegra-smmu.c | 34

[PATCH v3 0/2] iommu/tegra-smmu: Two followup changes

2020-09-28 Thread Nicolin Chen
Two followup patches for tegra-smmu: PATCH-1 is a clean-up patch for the recently applied SWGROUP change. PATCH-2 fixes a potential race condition Changelog v2->v3: * PATCH-2: renamed "err_unlock" to "unlock" v1->v2: * Separated first two changs of V1 so they may get applied first, since the

[PATCH v3 1/2] iommu/tegra-smmu: Unwrap tegra_smmu_group_get

2020-09-28 Thread Nicolin Chen
The tegra_smmu_group_get was added to group devices in different SWGROUPs and it'd return a NULL group pointer upon a mismatch at tegra_smmu_find_group(), so for most of clients/devices, it very likely would mismatch and need a fallback generic_device_group(). But now tegra_smmu_group_get handles

Re: [PATCH] net/x25: Fix null-ptr-deref in x25_connect

2020-09-28 Thread Martin Schiller
On 2020-09-29 03:43, David Miller wrote: From: Martin Schiller Date: Mon, 28 Sep 2020 11:23:27 +0200 diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index 0bbb283f23c9..0524a5530b91 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c @@ -820,7 +820,7 @@ static int x25_connect(struct socket *

Re: [PATCH v2 for v5.9] mm/page_alloc: handle a missing case for memalloc_nocma_{save/restore} APIs

2020-09-28 Thread Andrew Morton
On Tue, 29 Sep 2020 10:28:05 +0900 Joonsoo Kim wrote: > > What about manually emptying the pcplists beforehand? > > It also increases the probability. schedule() or interrupt after emptying but > before the allocation could invalidate the effect. Keep local interrupts disabled across the pcp dr

Re: [PATCH v3] Bluetooth: Check for encryption key size on connect

2020-09-28 Thread Archie Pusaka
Hi Marcel, On Tue, 29 Sep 2020 at 00:43, Marcel Holtmann wrote: > > Hi Archie, > > > When receiving connection, we only check whether the link has been > > encrypted, but not the encryption key size of the link. > > > > This patch adds check for encryption key size, and reject L2C

  1   2   3   4   5   6   7   8   9   10   >