[PATCH v13 00/14] huge vmalloc mappings

2021-03-17 Thread Nicholas Piggin
Important compound page fix thanks to Ding Tianhong. Thanks, Nick Since v12: - Use compound pages so it works with remap_vmalloc_range [noticed by Ding] - Fix debug_vm_pgtable.c compile error. Since v11: - ARM compile fix (patch 1) - debug_vm_pgtable compile fix Since v10: - Fixed code style,

Re: [PATCH] MIPS: fix memory reservation for non-usermem setups

2021-03-17 Thread Mike Rapoport
Hi Ilya, On Tue, Mar 16, 2021 at 10:10:09PM -0700, Ilya Lipnitskiy wrote: > Hi Thomas, > > On Fri, Mar 12, 2021 at 7:19 AM Thomas Bogendoerfer > wrote: > > > > On Sun, Mar 07, 2021 at 11:40:30AM -0800, Ilya Lipnitskiy wrote: > > > From: Tobias Wolf > > > > > > Commit 67a3ba25aa95 ("MIPS: Fix

Re: [net PATCH 4/9] octeontx2-af: Remove TOS field from MKEX TX

2021-03-17 Thread sundeep subbaraya
Hi Jakub, On Tue, Mar 16, 2021 at 10:53 PM Jakub Kicinski wrote: > > On Tue, 16 Mar 2021 14:57:08 +0530 Hariprasad Kelam wrote: > > From: Subbaraya Sundeep > > > > TOS overlaps with DMAC field in mcam search key and hence installing > > rules for TX side are failing. Hence remove TOS field from

[PATCH V3 0/2] Add support for ST magnetometer IIS2MDC

2021-03-17 Thread LI Qingwu
Changes in V3: Reword the commit message, add "Acked-by: Rob Herring" LI Qingwu (2): dt-bindings: iio: st,st-sensors add IIS2MDC. iio:magnetometer: Add Support for ST IIS2MDC Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 + drivers/iio/magnetometer/st_magn.h

[PATCH V3 1/2] dt-bindings: iio: st,st-sensors add IIS2MDC.

2021-03-17 Thread LI Qingwu
Add support for ST magnetometer IIS2MDC, an I2C/SPI interface 3-axis magnetometer sensor. The patch was tested on the instrument with IIS2MDC via I2C interface. Acked-by: Rob Herring Signed-off-by: LI Qingwu --- Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 + 1 file changed, 1

[PATCH V3 2/2] iio:magnetometer: Add Support for ST IIS2MDC

2021-03-17 Thread LI Qingwu
Add support for ST magnetometer IIS2MDC, an I2C/SPI interface 3-axis magnetometer. The patch was tested on the instrument with IIS2MDC via I2C interface. Signed-off-by: LI Qingwu --- drivers/iio/magnetometer/st_magn.h | 1 + drivers/iio/magnetometer/st_magn_core.c | 1 +

Re: [PATCH v3] phy: qcom-qmp: add hbr3_hbr2 voltage and premphasis swing table

2021-03-17 Thread Vinod Koul
On 16-03-21, 10:12, Kuogee Hsieh wrote: > Add hbr3_hbr2 voltage and premphasis swing table to support > HBR3 link rate. > > Changes in V2: > -- replaced upper case with lower case at hbr3_hbr2 table > > Changes in v3: > -- replace space with tab at hbr3_hbr2 table This should be after the ---

[PATCH v4 2/2] usb: dwc3: Add driver for Xilinx platforms

2021-03-17 Thread Manish Narani
Add a new driver for supporting Xilinx platforms. This driver is used for some sequence of operations required for Xilinx USB controllers. This driver is also used to choose between PIPE clock coming from SerDes and the Suspend Clock. Before the controller is out of reset, the clock selection

[PATCH v4 0/2] Add a separate DWC3 OF driver for Xilinx platforms

2021-03-17 Thread Manish Narani
This patch series documents the Xilinx Versal DWC3 controller. This also adds a new Xilinx specific driver for adding new features in the future. Changes in v2: - Addressed review comments from v1 - merged normal and runtime suspend resume functions as they are same

Re: [PATCH] sched: replace if (cond) BUG() with BUG_ON()

2021-03-17 Thread Christophe Leroy
Le 17/03/2021 à 07:45, Jiapeng Chong a écrit : Fix the following coccicheck warnings: ./arch/powerpc/platforms/cell/spufs/sched.c:908:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Consider using WARN_ON() instead of BUG_ON() if relevant. If not, explain in the commit

[PATCH][next] ixgbe: Fix out-of-bounds warning in ixgbe_host_interface_command()

2021-03-17 Thread Gustavo A. R. Silva
Fix the following out-of-bounds warning by replacing the one-element array in an anonymous union with a pointer: CC [M] drivers/net/ethernet/intel/ixgbe/ixgbe_common.o drivers/net/ethernet/intel/ixgbe/ixgbe_common.c: In function ‘ixgbe_host_interface_command’:

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

2021-03-17 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (htmldocs) produced this warning: Documentation/networking/switchdev.rst:482: WARNING: Unexpected indentation. Introduced by commit 0f22ad45f47c ("Documentation: networking: switchdev: clarify device driver behavior") --

Re: [PATCHv2 3/3] media: uvcvideo: add UVC 1.5 ROI control

2021-03-17 Thread Ricardo Ribalda Delgado
Hi On Wed, Mar 17, 2021 at 2:59 AM Sergey Senozhatsky wrote: > > On (21/03/16 19:46), Ricardo Ribalda Delgado wrote: > > > -static int uvc_ioctl_g_selection(struct file *file, void *fh, > > > -struct v4l2_selection *sel) > > > +/* UVC 1.5 ROI rectangle is half the

Re: [PATCH] powerpc: arch/powerpc/kernel/setup_64.c - cleanup warnings

2021-03-17 Thread Daniel Axtens
"heying (H)" writes: > Thank you for your reply. > > > 在 2021/3/17 11:04, Daniel Axtens 写道: >> Hi He Ying, >> >> Thank you for this patch. >> >> I'm not sure what the precise rules for Fixes are, but I wonder if this >> should have: >> >> Fixes: 9a32a7e78bd0 ("powerpc/64s: flush L1D after user

Re: [PATCH v5] x86: Remove unnecessary kmap() from sgx_ioc_enclave_init()

2021-03-17 Thread Ira Weiny
On Fri, Mar 05, 2021 at 04:20:58PM -0800, 'Ira Weiny' wrote: > From: Ira Weiny > > kmap is inefficient and we are trying to reduce the usage in the kernel. > There is no readily apparent reason why initp_page needs to be allocated > and kmap'ed() but sigstruct needs to be page aligned and token

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

2021-03-17 Thread Sergey Senozhatsky
On (21/03/17 18:53), Stephen Rothwell wrote: > Hi all, > > After merging the cifsd tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > ld: fs/cifsd/misc.o:(.opd+0xc0): multiple definition of `extract_sharename'; > fs/cifs/unc.o:(.opd+0x18): first defined here > ld:

Re: linux-next: Tree for Mar 16 (AD9467 & ADI_AXI_ADC)

2021-03-17 Thread Alexandru Ardelean
On Tue, Mar 16, 2021 at 11:20 PM Randy Dunlap wrote: > > On 3/15/21 9:50 PM, Stephen Rothwell wrote: > > Hi all, > > > > News: there will be no linux-next release on Friday this week. > > > > Warning: Some of the branches in linux-next are still based on v5.12-rc1, > > so please be careful if you

Re: [PATCH] MIPS: ralink: define stubs for clk_set_parent to fix compile testing

2021-03-17 Thread Krzysztof Kozlowski
On 16/03/2021 22:58, Thomas Bogendoerfer wrote: > On Tue, Mar 16, 2021 at 06:57:25PM +0100, Krzysztof Kozlowski wrote: >> The Ralink MIPS platform does not use Common Clock Framework and does >> not define certain clock operations leading to compile test failures: >> >>

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

2021-03-17 Thread Chen Yu
Hi Stephen, On Wed, Mar 17, 2021 at 06:56:05PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the net-next tree, today's linux-next build (sparc64 > defconfig) produced this warning: > > drivers/net/ethernet/intel/e1000e/netdev.c:6926:12: warning: > 'e1000e_pm_prepare' defined but

Re: [PATCH] mm,hwpoison: return -EBUSY when page already poisoned

2021-03-17 Thread Aili Yao
> > > > Returning true means you stop walking when you find the first entry pointing > > to a given pfn. But there could be multiple such entries, so if MCE SRAR is > > triggered by memory access to the larger address in hwpoisoned entries, the > > returned virtual address might be wrong. > >

[PATCH] media: venus: Fix internal buffer size calculations for v6.

2021-03-17 Thread Dikshita Agarwal
- Update persist buffer size for encoder to 204800. - Update persist buffer size calculation for h264 decoder. - h264d level 6 support needs update in internal buffer size. update below buffers size - h264 decoder colocated motion vector buffer. - h264 decoder VPP command buffer. - h265

linux-next: Tree for Mar 17

2021-03-17 Thread Stephen Rothwell
Hi all, News: there will be no linux-next release on Friday this week. Warning: Some of the branches in linux-next are still based on v5.12-rc1, so please be careful if you are trying to bisect a bug. News: if your -next included tree is based on Linus' tree tag v5.12-rc1{,-dontuse} (or

Re: [PATCH] sched: replace if (cond) BUG() with BUG_ON()

2021-03-17 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Jiapeng Chong wrote: > > > Fix the following coccicheck warnings: > > > > ./kernel/sched/core.c:8039:2-5: WARNING: Use BUG_ON instead of if > > condition followed by BUG. > > > > Reported-by: Abaci Robot > > Signed-off-by: Jiapeng Chong > > --- > >

[PATCH net-next resend] net: dsa: b53: relax is63xx() condition

2021-03-17 Thread Álvaro Fernández Rojas
BCM63xx switches are present on bcm63xx and bmips devices. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- drivers/net/dsa/b53/b53_priv.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/dsa/b53/b53_priv.h b/drivers/net/dsa/b53/b53_priv.h index

[PATCH] attr: replace if (cond) BUG() with BUG_ON()

2021-03-17 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./fs/attr.c:349:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/attr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/attr.c b/fs/attr.c index

[PATCH] mwifiex: Remove unneeded variable: "ret"

2021-03-17 Thread zuoqilin1
From: zuoqilin Remove unneeded variable: "ret" Signed-off-by: zuoqilin --- drivers/net/wireless/marvell/mwifiex/scan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/scan.c b/drivers/net/wireless/marvell/mwifiex/scan.c index

Re: [PATCH 2/2] erofs: use sync decompression for atomic contexts only

2021-03-17 Thread Chao Yu
On 2021/3/17 11:54, Huang Jianan via Linux-erofs wrote: Sync decompression was introduced to get rid of additional kworker scheduling overhead. But there is no such overhead in non-atomic contexts. Therefore, it should be better to turn off sync decompression to avoid the current thread waiting

[PATCH v2] perf stat: Align CSV output for summary mode

2021-03-17 Thread Jin Yao
perf-stat has supported the summary mode. But the summary lines break the CSV output so it's hard for scripts to parse the result. Before: # perf stat -x, -I1000 --interval-count 1 --summary 1.001323097,8013.48,msec,cpu-clock,8013483384,100.00,8.013,CPUs utilized

[PATCH] the print is redundant because platform_get_irq()

2021-03-17 Thread ChunyouTang
From: tangchunyou already prints an error. Signed-off-by: tangchunyou --- drivers/gpu/drm/mediatek/mtk_cec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_cec.c b/drivers/gpu/drm/mediatek/mtk_cec.c index cb29b64..332a4df 100644 ---

Re: [PATCH v2] arm64: configs: Enable PCIe support for imx8mq boards

2021-03-17 Thread Shawn Guo
On Thu, Mar 11, 2021 at 08:27:47PM +0100, Heiko Thiery wrote: > Enable PCI_IMX6 to get PCI support for imx8mq boards like imx8mq-evk, > imx8mq-kontron-pitx-imx8m and imx8mq-zii-ultra. > > Signed-off-by: Heiko Thiery > --- > v2: > - slightly modified the commit message (Fabio Estevam) > >

Re: [PATCHv2 2/3] media: uvcvideo: add ROI auto controls

2021-03-17 Thread Sergey Senozhatsky
Fixed Tomasz's email On (21/03/17 09:08), Ricardo Ribalda Delgado wrote: [..] > > > > + .id = V4L2_CID_REGION_OF_INTEREST_AUTO, > > > > + .name = "Region of Interest (auto)", > > > > + .entity = UVC_GUID_UVC_CAMERA, > > > > +

Re: [PATCH] MIPS: ralink: define stubs for clk_set_parent to fix compile testing

2021-03-17 Thread Krzysztof Kozlowski
On 17/03/2021 01:10, Dmitry Osipenko wrote: > 16.03.2021 20:57, Krzysztof Kozlowski пишет: >> The Ralink MIPS platform does not use Common Clock Framework and does >> not define certain clock operations leading to compile test failures: >> >> /usr/bin/mips-linux-gnu-ld:

Re: [PATCH 5/9] objtool: Rework rebuild_reloc logic

2021-03-17 Thread Peter Zijlstra
On Tue, Mar 16, 2021 at 10:34:17PM -0500, Josh Poimboeuf wrote: > On Fri, Mar 12, 2021 at 06:16:18PM +0100, Peter Zijlstra wrote: > > --- a/tools/objtool/elf.c > > +++ b/tools/objtool/elf.c > > @@ -479,6 +479,8 @@ void elf_add_reloc(struct elf *elf, stru > > > > list_add_tail(>list,

[PATCH 2/2] WIP: Provide has_alarm method

2021-03-17 Thread Łukasz Stelmach
Signed-off-by: Łukasz Stelmach --- drivers/rtc/rtc-ds1307.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index b21e06583bd5..dee60f459a3e 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -387,6 +387,13 @@

Re: [PATCH] drm/tilcdc: fix LCD pixel clock setting

2021-03-17 Thread Tomi Valkeinen
On 14/03/2021 17:13, Dario Binacchi wrote: As reported by TI spruh73x RM, the LCD pixel clock (LCD_PCLK) frequency is obtained by dividing LCD_CLK, the LCD controller reference clock, for CLKDIV: LCD_PCLK = LCD_CLK / CLKDIV where CLKDIV must be greater than 1. Therefore LCD_CLK must be set to

[PATCH 1/2] WIP: Introduce has_alarm method for rtc devices

2021-03-17 Thread Łukasz Stelmach
The method enables determining whether a device supports setting alarms or not before checking if the alarm to be set is in the past; thus, provides clear indication of support for alarms in a given configuration. Signed-off-by: Łukasz Stelmach --- How about has_alarm() method. It can be checked

[PATCH v4 1/3] firmware: xilinx: Add pinctrl support

2021-03-17 Thread Sai Krishna Potthuri
Adding pinctrl support to query platform specific information (pins) from firmware. Signed-off-by: Sai Krishna Potthuri Acked-by: Michal Simek --- drivers/firmware/xilinx/zynqmp.c | 114 +++ include/linux/firmware/xlnx-zynqmp.h | 90 + 2 files

[PATCH v4 2/3] dt-bindings: pinctrl: Add binding for ZynqMP pinctrl driver

2021-03-17 Thread Sai Krishna Potthuri
Adding documentation and dt-bindings file which contains MIO pin configuration defines for Xilinx ZynqMP pinctrl driver. Signed-off-by: Sai Krishna Potthuri Reviewed-by: Rob Herring --- .../bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml | 339 ++

[PATCH v4 3/3] pinctrl: Add Xilinx ZynqMP pinctrl driver support

2021-03-17 Thread Sai Krishna Potthuri
Adding pinctrl driver for Xilinx ZynqMP platform. This driver queries pin information from firmware and registers pin control accordingly. Signed-off-by: Sai Krishna Potthuri --- drivers/pinctrl/Kconfig | 13 + drivers/pinctrl/Makefile |1 +

Re: [PATCH] vhost: Fix vhost_vq_reset()

2021-03-17 Thread Stefano Garzarella
On Fri, Mar 12, 2021 at 03:09:13PM +0100, Laurent Vivier wrote: vhost_reset_is_le() is vhost_init_is_le(), and in the case of cross-endian legacy, vhost_init_is_le() depends on vq->user_be. vq->user_be is set by vhost_disable_cross_endian(). But in vhost_vq_reset(), we have:

Re: [PATCH v6 4/8] dt-bindings: regulator: Add document for MT6359 regulator

2021-03-17 Thread Hsin-hsiung Wang
Hi, Rob I am very grateful for the reviewing which addressed my yaml errors. I will check my codebase first and fix the error in the next patch. Thanks. On Tue, 2021-03-16 at 15:28 -0600, Rob Herring wrote: > On Tue, Mar 16, 2021 at 01:35:53AM +0800, Hsin-Hsiung Wang wrote: > > add dt-binding

{standard input}:3096: Error: operands mismatch -- statement `andl %a1,%d1' ignored

2021-03-17 Thread kernel test robot
: m68k-randconfig-r025-20210317 (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org

Re: [PATCH 0/6] usbip fixes to crashes found by syzbot

2021-03-17 Thread Tetsuo Handa
Shuah, this driver is getting more and more cryptic and buggy. Please explain the strategy for serialization before you write patches. > - Fix attach_store() to check usbip_event_happened() before > waking up threads. No, this helps nothing. > diff --git a/drivers/usb/usbip/vhci_sysfs.c

Re: [PATCH 0/3] AM64: Add SERDES DT bindings

2021-03-17 Thread Vinod Koul
On 10-03-21, 16:57, Kishon Vijay Abraham I wrote: > Patch series adds device tree bindings to support SERDES in AM64 > platform. > > This is split from [1] since this binding is also required for AM64 > USB DT patches to be merged. > > Vinod, > > Once the 1st patch of the series is reviewed by

[PATCH] fs: Fix typo issue

2021-03-17 Thread zuoqilin1
From: zuoqilin Change 'inacitve' to 'inactive'. Signed-off-by: zuoqilin --- fs/jfs/jfs_dmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c index 7aee156..91f4ec93 100644 --- a/fs/jfs/jfs_dmap.c +++ b/fs/jfs/jfs_dmap.c @@ -3660,7

[PATCH] um: replace if (cond) BUG() with BUG_ON()

2021-03-17 Thread Yang Li
Fix the following coccinelle reports: ./arch/um/kernel/mem.c:77:3-6: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/um/kernel/mem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/um/kernel/mem.c

Re: [PATCH 2/3] media/videobuf1|2: Mark follow_pfn usage as unsafe

2021-03-17 Thread Christoph Hellwig
On Tue, Mar 16, 2021 at 04:52:44PM +0100, Daniel Vetter wrote: > My understanding is mostly, but with some objections. And I kinda > don't want to let this die in a bikeshed and then not getting rid of > follow_pfn as a result. There's enough people who acked this, and the > full removal got some

Re: [PATCH v1 3/3] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys

2021-03-17 Thread Sumit Garg
Hi Richard, On Wed, 17 Mar 2021 at 04:45, Richard Weinberger wrote: > > Ahmad, > > On Tue, Mar 16, 2021 at 6:24 PM Ahmad Fatoum wrote: > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +struct caam_blob_priv *blobifier; > > Who is using this pointer too? >

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

2021-03-17 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (sparc64 defconfig) produced this warning: drivers/net/ethernet/intel/e1000e/netdev.c:6926:12: warning: 'e1000e_pm_prepare' defined but not used [-Wunused-function] static int e1000e_pm_prepare(struct device *dev)

Re: [PATCH] usb: typec: tcpm: Invoke power_supply_changed for tcpm-source-psy-

2021-03-17 Thread Heikki Krogerus
On Tue, Mar 16, 2021 at 02:56:57PM -0700, Badhri Jagan Sridharan wrote: > tcpm-source-psy- does not invoke power_supply_changed API when > one of the published power supply property is changed. > power_supply_changed needs to be called to notify > userspace clients(uevents) and kernel clients. >

RE: [PATCH v5 07/10] scsi: ufshpb: Add "Cold" regions timer

2021-03-17 Thread Avri Altman
> On 2021-03-16 17:21, Avri Altman wrote: > >> > +static void ufshpb_read_to_handler(struct work_struct *work) > >> > +{ > >> > + struct delayed_work *dwork = to_delayed_work(work); > >> > + struct ufshpb_lu *hpb; > >> > + struct victim_select_info *lru_info; > >> > + struct

[PATCH v4 3/3] mm/slub: Get rid of count_partial()

2021-03-17 Thread Xunlei Pang
Now the partial counters are ready, let's use them to get rid of count_partial(). The partial counters will involve in to calculate the accurate partial usage when CONFIG_SLUB_DEBUG_PARTIAL is on, otherwise simply assume their zero usage statistics. Tested-by: James Wang Signed-off-by: Xunlei

Re: [PATCHv2 1/3] media: v4l UAPI docs: document ROI selection targets

2021-03-17 Thread Ricardo Ribalda Delgado
Hi On Wed, Mar 17, 2021 at 2:31 AM Sergey Senozhatsky wrote: > > On (21/03/16 19:19), Ricardo Ribalda Delgado wrote: > > > +Configuration of Region of Interest (ROI) > > > += > > > + > > > +The range of coordinates of the top left corner, width and height

Re: [PATCH] optee: enable apci support

2021-03-17 Thread Jens Wiklander
On Fri, Mar 12, 2021 at 04:36:53PM +0800, Ran Wang wrote: > This patch add ACPI support for optee driver. > > Signed-off-by: Ran Wang > --- > drivers/tee/optee/core.c | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c >

Re: [PATCH] KVM: arm: memcg awareness

2021-03-17 Thread Wanpeng Li
On Wed, 17 Mar 2021 at 15:57, Michal Hocko wrote: > > On Wed 17-03-21 13:46:24, Wanpeng Li wrote: > > From: Wanpeng Li > > > > KVM allocations in the arm kvm code which are tied to the life > > of the VM process should be charged to the VM process's cgroup. > > How much memory are we talking

Re: [PATCH 2/3] media/videobuf1|2: Mark follow_pfn usage as unsafe

2021-03-17 Thread Daniel Vetter
On Wed, Mar 17, 2021 at 8:22 AM Christoph Hellwig wrote: > On Tue, Mar 16, 2021 at 04:52:44PM +0100, Daniel Vetter wrote: > > My understanding is mostly, but with some objections. And I kinda > > don't want to let this die in a bikeshed and then not getting rid of > > follow_pfn as a result.

Re: [PATCH] KVM: arm: memcg awareness

2021-03-17 Thread Wanpeng Li
On Wed, 17 Mar 2021 at 16:04, Wanpeng Li wrote: > > On Wed, 17 Mar 2021 at 15:57, Michal Hocko wrote: > > > > On Wed 17-03-21 13:46:24, Wanpeng Li wrote: > > > From: Wanpeng Li > > > > > > KVM allocations in the arm kvm code which are tied to the life > > > of the VM process should be charged

[PATCH] sound: soc: ti: Fix a typo in the file ams-delta.c

2021-03-17 Thread Bhaskar Chowdhury
s/functonality/functionality/ Signed-off-by: Bhaskar Chowdhury --- sound/soc/ti/ams-delta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/ti/ams-delta.c b/sound/soc/ti/ams-delta.c index 57feb473a579..31462587f922 100644 --- a/sound/soc/ti/ams-delta.c +++

Re: [PATCH v4 RESEND net-next] net: socket: use BIT() for MSG_*

2021-03-17 Thread Menglong Dong
Hello, On Wed, Mar 17, 2021 at 9:38 AM Guenter Roeck wrote: > > On Wed, Mar 17, 2021 at 01:02:51AM +0200, Andy Shevchenko wrote: > > On Wednesday, March 17, 2021, Guenter Roeck wrote: > > ... > > The problem is in net/packet/af_packet.c:packet_recvmsg(). This function, > as well as all other

Re: [PATCH v2 4/5] mtd: spi-nor: Move Software Write Protection logic out of the core

2021-03-17 Thread Michael Walle
Am 2021-03-17 07:09, schrieb tudor.amba...@microchip.com: On 3/15/21 8:23 AM, Vignesh Raghavendra wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe On 3/9/21 12:58 PM, tudor.amba...@microchip.com wrote: On 3/8/21 7:28 PM, Vignesh Raghavendra

[PATCH] drivers/block: Fix typo and remove duplicate word

2021-03-17 Thread zuoqilin1
From: zuoqilin Change 'untill' to 'until'. remove duplicate word 'the'. Signed-off-by: zuoqilin --- drivers/block/nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 4ff71b5..8e63efc 100644 --- a/drivers/block/nbd.c +++

Re: [PATCH] sched: Warn on long periods of pending need_resched

2021-03-17 Thread Ingo Molnar
* Josh Don wrote: > +static inline u64 resched_latency_check(struct rq *rq) > +{ > + int latency_warn_ms = READ_ONCE(sysctl_resched_latency_warn_ms); > + bool warn_only_once = (latency_warn_ms == > RESCHED_DEFAULT_WARN_LATENCY_MS); > + u64 need_resched_latency, now = rq_clock(rq);

Re: [syzbot] kernel panic: corrupted stack end in openat

2021-03-17 Thread Arnd Bergmann
On Wed, Mar 17, 2021 at 8:52 AM Dmitry Vyukov wrote: > On Tue, Mar 16, 2021 at 5:28 PM Arnd Bergmann wrote: > > On Tue, Mar 16, 2021 at 5:13 PM Dmitry Vyukov wrote: > > > On Tue, Mar 16, 2021 at 5:03 PM Arnd Bergmann wrote: > > > > On Tue, Mar 16, 2021 at 4:51 PM Russell King - ARM Linux admin

Re: [PATCH v6 1/2] RISC-V: Don't print SBI version for all detected extensions

2021-03-17 Thread Anup Patel
On Wed, Mar 17, 2021 at 10:38 AM Palmer Dabbelt wrote: > > On Mon, 15 Mar 2021 04:04:59 PDT (-0700), Anup Patel wrote: > > The sbi_init() already prints SBI version before detecting > > various SBI extensions so we don't need to print SBI version > > for all detected SBI extensions. > > > >

Re: [PATCH] sched: replace if (cond) BUG() with BUG_ON()

2021-03-17 Thread Ingo Molnar
* Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./kernel/sched/core.c:8039:2-5: WARNING: Use BUG_ON instead of if > condition followed by BUG. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > kernel/sched/core.c | 3 +-- > 1 file changed, 1

Re: Issue with kfence and kmemleak

2021-03-17 Thread Luis Henriques
On Tue, Mar 16, 2021 at 07:47:00PM +0100, Marco Elver wrote: > On Tue, Mar 16, 2021 at 06:19PM +, Catalin Marinas wrote: > > On Tue, Mar 16, 2021 at 06:30:00PM +0100, Marco Elver wrote: > > > On Tue, Mar 16, 2021 at 04:42PM +, Luis Henriques wrote: > > > > This is probably a known issue,

Re: [PATCH v5] printk: Userspace format enumeration support

2021-03-17 Thread Petr Mladek
On Tue 2021-03-16 14:28:12, Chris Down wrote: > Rasmus Villemoes writes: > > I think it's pointless renaming the symbol to _printk, with all the > > churn and reduced readability that involves (especially when reading > > assembly "why are we calling _printk and not printk here?"). There's > >

Re: [PATCH v15 0/4] Adding the Sparx5 Serdes driver

2021-03-17 Thread Vinod Koul
On 18-02-21, 17:14, Steen Hegelund wrote: > Adding the Sparx5 Serdes driver > > This series of patches provides the serdes driver for the Microchip Sparx5 > ethernet switch. > > The serdes driver supports the 10G and 25G serdes instances available in the > Sparx5. > > The Sparx5 serdes support

Re: [PATCH v2 1/2] media: staging/intel-ipu3: Fix memory leak in imu_fmt

2021-03-17 Thread Bingbu Cao
On 3/17/21 1:50 AM, Ricardo Ribalda wrote: > Hi Bingbu > > Thanks for your review > > On Tue, Mar 16, 2021 at 12:29 PM Bingbu Cao > wrote: >> >> Hi, Ricardo >> >> Thanks for your patch. >> It looks fine for me, do you mind squash 2 patchsets into 1 commit? > > Are you sure? There are two

Re: [PATCH v4 11/13] mm/mempolicy: huge-page allocation for many preferred

2021-03-17 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Feng-Tang/Introduced-multi-preference-mempolicy/20210317-114204 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a74e6a014c9d4d4161061f770c9b4f98372ac778

[PATCH v2] sched: replace if (cond) BUG() with WARN_ON()

2021-03-17 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/powerpc/platforms/cell/spufs/sched.c:908:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - replace BUG with WARN_ON.

[PATCH] selftests/kvm: add set_boot_cpu_id test

2021-03-17 Thread Emanuele Giuseppe Esposito
Test for the KVM_SET_BOOT_CPU_ID ioctl. Check that it correctly allows to change the BSP vcpu. Signed-off-by: Emanuele Giuseppe Esposito --- tools/testing/selftests/kvm/.gitignore| 1 + tools/testing/selftests/kvm/Makefile | 1 + .../selftests/kvm/x86_64/set_boot_cpu_id.c

linux-next: build failure after merge of the cifsd tree

2021-03-17 Thread Stephen Rothwell
Hi all, After merging the cifsd tree, today's linux-next build (powerpc allyesconfig) failed like this: ld: fs/cifsd/misc.o:(.opd+0xc0): multiple definition of `extract_sharename'; fs/cifs/unc.o:(.opd+0x18): first defined here ld: fs/cifsd/misc.o: in function `.extract_sharename':

[PATCH v5] rtc: rx6110: add ACPI bindings to I2C

2021-03-17 Thread Claudius Heine
From: Johannes Hahn This allows the RX6110 driver to be automatically assigned to the right device on the I2C bus. Signed-off-by: Johannes Hahn Co-developed-by: Claudius Heine Signed-off-by: Claudius Heine Reviewed-by: Andy Shevchenko Reported-by: kernel test robot ---

Re: [PATCH net-next 1/1] net: phy: fix invalid phy id when probe using C22

2021-03-17 Thread Heiner Kallweit
On 16.03.2021 09:57, Wong Vee Khee wrote: > When using Clause-22 to probe for PHY devices such as the Marvell > 88E2110, PHY ID with value 0 is read from the MII PHYID registers > which caused the PHY framework failed to attach the Marvell PHY > driver. > The issue occurs with a MAC driver that

[PATCH] drm/gma500: use NULL instead of using plain integer as pointer

2021-03-17 Thread Yang Li
This fixes the following sparse warnings: drivers/gpu/drm/gma500/psb_drv.c:303:56: warning: Using plain integer as NULL pointer Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/gma500/psb_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2] virtiofs: fix memory leak in virtio_fs_probe()

2021-03-17 Thread Luis Henriques
When accidentally passing twice the same tag to qemu, kmemleak ended up reporting a memory leak in virtiofs. Also, looking at the log I saw the following error (that's when I realised the duplicated tag): virtiofs: probe of virtio5 failed with error -17 Here's the kmemleak log for reference:

[PATCH] platform: x86: Typo fix in the file classmate-laptop.c

2021-03-17 Thread Bhaskar Chowdhury
s/derefence/dereference/ Signed-off-by: Bhaskar Chowdhury --- drivers/platform/x86/classmate-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/classmate-laptop.c b/drivers/platform/x86/classmate-laptop.c index 3e03e8d3a07f..9309ab5792cb 100644

Re: [PATCH] iio:imu:mpu6050: Modify matricies to matrices

2021-03-17 Thread Guoqing Chi
On Tue, 16 Mar 2021 22:04:33 -0700 Randy Dunlap wrote: > On 3/16/21 7:41 PM, Guoqing chi wrote: > > From: Guoqing Chi > > > > The complex number of "matrix" is "matrices". > > (I would say that the plural of matrix is matrices.) Yes??your suggest is better. I will resent patch V2 for this.

Re: [PATCH v2 4/5] mtd: spi-nor: Move Software Write Protection logic out of the core

2021-03-17 Thread Tudor.Ambarus
On 3/15/21 8:23 AM, Vignesh Raghavendra wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On 3/9/21 12:58 PM, tudor.amba...@microchip.com wrote: >> On 3/8/21 7:28 PM, Vignesh Raghavendra wrote: >>> EXTERNAL EMAIL: Do not click links or open

[PATCH v13 04/14] mm/vmalloc: rename vmap_*_range vmap_pages_*_range

2021-03-17 Thread Nicholas Piggin
The vmalloc mapper operates on a struct page * array rather than a linear physical address, re-name it to make this distinction clear. Reviewed-by: Miaohe Lin Reviewed-by: Christoph Hellwig Signed-off-by: Nicholas Piggin --- mm/vmalloc.c | 16 1 file changed, 8 insertions(+),

[PATCH v13 08/14] arm64: inline huge vmap supported functions

2021-03-17 Thread Nicholas Piggin
This allows unsupported levels to be constant folded away, and so p4d_free_pud_page can be removed because it's no longer linked to. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Acked-by: Catalin Marinas Signed-off-by: Nicholas Piggin ---

[PATCH v13 06/14] mm: HUGE_VMAP arch support cleanup

2021-03-17 Thread Nicholas Piggin
This changes the awkward approach where architectures provide init functions to determine which levels they can provide large mappings for, to one where the arch is queried for each call. This removes code and indirection, and allows constant-folding of dead code for unsupported levels. This

[PATCH v13 07/14] powerpc: inline huge vmap supported functions

2021-03-17 Thread Nicholas Piggin
This allows unsupported levels to be constant folded away, and so p4d_free_pud_page can be removed because it's no longer linked to. Cc: linuxppc-...@lists.ozlabs.org Acked-by: Michael Ellerman Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/vmalloc.h | 19 ---

[PATCH v13 09/14] x86: inline huge vmap supported functions

2021-03-17 Thread Nicholas Piggin
This allows unsupported levels to be constant folded away, and so p4d_free_pud_page can be removed because it's no longer linked to. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: x...@kernel.org Cc: "H. Peter Anvin" Signed-off-by: Nicholas Piggin ---

[PATCH v13 02/14] mm/vmalloc: fix HUGE_VMAP regression by enabling huge pages in vmalloc_to_page

2021-03-17 Thread Nicholas Piggin
vmalloc_to_page returns NULL for addresses mapped by larger pages[*]. Whether or not a vmap is huge depends on the architecture details, alignments, boot options, etc., which the caller can not be expected to know. Therefore HUGE_VMAP is a regression for vmalloc_to_page. This change teaches

[PATCH v13 01/14] ARM: mm: add missing pud_page define to 2-level page tables

2021-03-17 Thread Nicholas Piggin
ARM uses its own PMD folding scheme which is missing pud_page which should just pass through to pmd_page. Move this from the 3-level page table to common header. Cc: Russell King Cc: Ding Tianhong Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Nicholas Piggin ---

[PATCH v13 05/14] mm/ioremap: rename ioremap_*_range to vmap_*_range

2021-03-17 Thread Nicholas Piggin
This will be used as a generic kernel virtual mapping function, so re-name it in preparation. Reviewed-by: Miaohe Lin Reviewed-by: Christoph Hellwig Signed-off-by: Nicholas Piggin --- mm/ioremap.c | 64 +++- 1 file changed, 33 insertions(+), 31

[PATCH v13 03/14] mm: apply_to_pte_range warn and fail if a large pte is encountered

2021-03-17 Thread Nicholas Piggin
apply_to_pte_range might mistake a large pte for bad, or treat it as a page table, resulting in a crash or corruption. Add a test to warn and return error if large entries are found. Reviewed-by: Miaohe Lin Reviewed-by: Christoph Hellwig Signed-off-by: Nicholas Piggin --- mm/memory.c | 66

[PATCH] sched: replace if (cond) BUG() with BUG_ON()

2021-03-17 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/powerpc/platforms/cell/spufs/sched.c:908:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/powerpc/platforms/cell/spufs/sched.c | 3 +-- 1 file changed, 1 insertion(+),

Re: [question] Panic in dax_writeback_one

2021-03-17 Thread chenjun (AM)
Thanks for the advices. I will check out that. 在 2021/3/17 12:55, Dan Williams 写道: > On Tue, Mar 16, 2021 at 8:00 PM chenjun (AM) wrote: >> >> 在 2021/3/12 1:25, Dan Williams 写道: >>> On Thu, Mar 11, 2021 at 4:20 AM Matthew Wilcox wrote: On Thu, Mar 11, 2021 at 07:48:25AM +, chenjun

Re: [PATCH 1/2] erofs: use workqueue decompression for atomic contexts only

2021-03-17 Thread Chao Yu
On 2021/3/17 11:54, Huang Jianan via Linux-erofs wrote: z_erofs_decompressqueue_endio may not be executed in the atomic context, for example, when dm-verity is turned on. In this scenario, data can be decompressed directly to get rid of additional kworker scheduling overhead. Signed-off-by:

[PATCH 2/2] Fix spelling typo

2021-03-17 Thread qiumibaozi_1
From: ganjisheng Signed-off-by: ganjisheng --- drivers/mfd/88pm800.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/88pm800.c b/drivers/mfd/88pm800.c index c7f9649..4ffd9d2 100644 --- a/drivers/mfd/88pm800.c +++ b/drivers/mfd/88pm800.c @@ -285,10 +285,10 @@

[PATCH 00/11] i2c: imx-lpi2c: New features and bug fixes

2021-03-17 Thread Clark Wang
Hi, Here are some patches to add some new features and bug fixes/improvements. Each patch of these 11 patches is made on the basis of the previous patches. New features: - add bus recovery support - add edma mode support - add runtime pm support Improvements: - increase PM timeout to avoid

[PATCH 02/11] i2c: imx-lpi2c: add runtime pm support

2021-03-17 Thread Clark Wang
From: Fugang Duan - Add runtime pm support to dynamicly manage the clock. - Put the suspend to suspend_noirq. - Call .pm_runtime_force_suspend() to force runtime pm suspended in .suspend_noirq(). Signed-off-by: Fugang Duan Signed-off-by: Gao Pan Reviewed-by: Anson Huang ---

[PATCH 01/11] i2c: imx-lpi2c: directly retrun ISR when detect a NACK

2021-03-17 Thread Clark Wang
From: Gao Pan A NACK flag in ISR means i2c bus error. In such codition, there is no need to do read/write operation. It's better to return ISR directly and then stop i2c transfer. Signed-off-by: Gao Pan Signed-off-by: Clark Wang --- drivers/i2c/busses/i2c-imx-lpi2c.c | 12 +++- 1

[PATCH 07/11] i2c: imx-lpi2c: increase PM timeout to avoid operate clk frequently

2021-03-17 Thread Clark Wang
Switching the clock frequently will affect the data transmission efficiency, and prolong the timeout to reduce autosuspend times for lpi2c. Acked-by: Fugang Duan Signed-off-by: Clark Wang --- drivers/i2c/busses/i2c-imx-lpi2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 04/11] i2c: imx-lpi2c: manage irq resource request/release in runtime pm

2021-03-17 Thread Clark Wang
From: Fugang Duan Manage irq resource request/release in runtime pm to save irq domain's power. Signed-off-by: Frank Li Signed-off-by: Fugang Duan Reviewed-by: Frank Li --- drivers/i2c/busses/i2c-imx-lpi2c.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-)

[PATCH 08/11] i2c: imx-lpi2c: add bus recovery feature

2021-03-17 Thread Clark Wang
Add bus recovery feature for LPI2C. Need add gpio pinctrl, scl-gpios and sda-gpios configuration in dts. Signed-off-by: Clark Wang --- drivers/i2c/busses/i2c-imx-lpi2c.c | 83 ++ 1 file changed, 83 insertions(+) diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c

[PATCH 03/11] i2c: imx-lpi2c: add ipg clk for lpi2c driver

2021-03-17 Thread Clark Wang
The lpi2c IP needs two clks: ipg clk and per clk. The old lpi2c driver missed ipg clk. This patch adds ipg clk for lpi2c driver. Signed-off-by: Gao Pan Signed-off-by: Clark Wang Acked-by: Fugang Duan --- drivers/i2c/busses/i2c-imx-lpi2c.c | 28 +--- 1 file changed, 21

  1   2   3   4   5   6   7   8   9   10   >