Re: [PATCH 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-11 Thread Miaohe Lin
On 2021/4/12 11:30, Huang, Ying wrote: > Miaohe Lin writes: > >> We will use percpu-refcount to serialize against concurrent swapoff. This >> patch adds the percpu_ref support for later fixup. >> >> Signed-off-by: Miaohe Lin >> --- >> include/linux/swap.h | 2 ++ >> mm/swapfile.c| 25 +

[PATCH] media: venus: Enable low power setting for encoder

2021-04-11 Thread Dikshita Agarwal
Set the FW to run in low power for encoder to accommodate more session without losing much on quality. Signed-off-by: Dikshita Agarwal --- drivers/media/platform/qcom/venus/core.h | 6 ++ drivers/media/platform/qcom/venus/helpers.c| 2 + drivers/media/platform/qcom/venus/hf

[PATCH] i40e: fix the panic when running bpf in xdpdrv mode

2021-04-11 Thread kerneljasonxing
From: Jason Xing Fix this by add more rules to calculate the value of @rss_size_max which could be used in allocating the queues when bpf is loaded, which, however, could cause the failure and then triger the NULL pointer of vsi->rx_rings. Prio to this fix, the machine doesn't care about how many

Re: [PATCH] serial: stm32: optimize spin lock usage

2021-04-11 Thread dillon min
Hi Greg, Thanks for the quick response, please ignore the last private mail. On Mon, Apr 12, 2021 at 1:52 PM Greg KH wrote: > > On Mon, Apr 12, 2021 at 12:34:21PM +0800, dillon.min...@gmail.com wrote: > > From: dillon min > > > > To avoid potential deadlock in spin_lock usage, change to use > >

Re: [PATCH v1 2/2] mmc: sdhci-of-aspeed: Support toggling SD bus signal voltage by GPIO

2021-04-11 Thread Steven Lee
The 04/09/2021 12:14, Andrew Jeffery wrote: > Hi Steven, > > On Thu, 8 Apr 2021, at 11:22, Steven Lee wrote: > > AST2600-A2 EVB provides reference design to support toggling signal > > voltage between 3.3v and 1.8v by power-switch-gpio pin that defined in > > the device tree. > > Is this somethin

[PATCH 2/2] iommu/mediatek-v1: Add error handle for mtk_iommu_probe

2021-04-11 Thread Yong Wu
In the original code, we lack the error handle. This patch adds them. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu_v1.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c index bed0bb9d63fd

[PATCH 1/2] iommu/mediatek-v1: Avoid build fail when build as module

2021-04-11 Thread Yong Wu
When this driver build as module, It build fail like: ERROR: modpost: "of_phandle_iterator_args" [drivers/iommu/mtk_iommu_v1.ko] undefined! This patch remove this interface to avoid this build fail. Reported-by: Valdis Kletnieks Signed-off-by: Yong Wu --- Currently below patch is only in linux

Re: [PATCH v2 2/2] ASoC: dt-bindings: renesas, rsnd: Clear warning 'ports' does not match any of the regexes

2021-04-11 Thread Leizhen (ThunderTown)
On 2021/4/9 4:42, Rob Herring wrote: > On Thu, Apr 08, 2021 at 08:28:08PM +0800, Leizhen (ThunderTown) wrote: >> >> >> On 2021/4/7 10:04, Leizhen (ThunderTown) wrote: >>> >>> >>> On 2021/4/2 4:20, Rob Herring wrote: On Wed, Mar 31, 2021 at 05:16:16PM +0800, Zhen Lei wrote: > Currently,

Re: [PATCH 4/8] dt-bindings: arm: mediatek: Add new document bindings for APU

2021-04-11 Thread Flora Fu
On Fri, 2021-04-09 at 13:25 -0500, Rob Herring wrote: > On Wed, Apr 07, 2021 at 11:28:02AM +0800, Flora Fu wrote: > > Document the apusys bindings. > > > > Signed-off-by: Flora Fu > > --- > > .../arm/mediatek/mediatek,apusys.yaml | 56 +++ > > 1 file changed, 56 insertion

RE: [PATCH net-next 0/3] net: add new properties for of_get_mac_address from nvmem

2021-04-11 Thread Joakim Zhang
Hi Jabuk, > -Original Message- > From: Jakub Kicinski > Sent: 2021年4月10日 2:44 > To: Joakim Zhang > Cc: da...@davemloft.net; robh...@kernel.org; and...@lunn.ch; > hkallwe...@gmail.com; li...@armlinux.org.uk; frowand.l...@gmail.com; > net...@vger.kernel.org; devicet...@vger.kernel.org; >

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

2021-04-11 Thread Tudor.Ambarus
On 4/12/21 2:00 AM, Stephen Rothwell wrote: > Hi all, > Hi! > In commit > > 2cfebcb2a22f ("pinctrl: at91-pio4: Fix slew rate disablement") > > Fixes tag > > Fixes: 440b144978ba ("pinctrl: at91-pio4: add support for slew-rate") > > has these problem(s): > > - Target SHA1 does not exist

RE: [PATCH net-next 1/3] dt-bindings: net: add new properties for of_get_mac_address from nvmem

2021-04-11 Thread Joakim Zhang
Hi Rob, > -Original Message- > From: Rob Herring > Sent: 2021年4月9日 21:50 > To: Joakim Zhang > Cc: David Miller ; Jakub Kicinski ; > Andrew Lunn ; Heiner Kallweit ; > Russell King ; Frank Rowand > ; netdev ; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; dl-linux-imx > > Su

[PATCH v1, 1/3] drm/mediatek: Separate aal module

2021-04-11 Thread Yongqiang Niu
mt8183 aal has no gamma function Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/Makefile | 3 +- drivers/gpu/drm/mediatek/mtk_disp_aal.c | 167 drivers/gpu/drm/mediatek/mtk_disp_drv.h | 9 ++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.

[PATCH v1, 3/3] drm/mediatek: gamma set with cmdq

2021-04-11 Thread Yongqiang Niu
gamma lut set in vsync active will caused display flash issue set gamma lut with cmdq Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_disp_aal.c | 4 ++-- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 7 --- drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 11 ++- d

[PATCH v1, 2/3] arm64: dts: mt8183: refine aal compatible name

2021-04-11 Thread Yongqiang Niu
mt8183 aal is different with mt8173 remove mt8173 compatible name for mt8183 aal Signed-off-by: Yongqiang Niu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediate

[PATCH v1, 0/3] gamma set with cmdq

2021-04-11 Thread Yongqiang Niu
This series are based on 5.12-rc2 and provide 3 patch to set gamma lut with cmdq Yongqiang Niu (3): drm/mediatek: Separate aal module arm64: dts: mt8183: refine aal compatible name drm/mediatek: gamma set with cmdq arch/arm64/boot/dts/mediatek/mt8183.dtsi| 3 +- drivers/gpu/drm/media

Re: [RFC PATCH] vdpa: mandate 1.0 device

2021-04-11 Thread Jason Wang
在 2021/4/10 上午12:04, Michael S. Tsirkin 写道: On Fri, Apr 09, 2021 at 12:47:55PM +0800, Jason Wang wrote: 在 2021/4/8 下午11:59, Michael S. Tsirkin 写道: On Thu, Apr 08, 2021 at 04:26:48PM +0800, Jason Wang wrote: This patch mandates 1.0 for vDPA devices. The goal is to have the semantic of normati

Re: [PATCH v8 0/3] ARM: Implement MODULE_PLT support in FTRACE

2021-04-11 Thread Alexander Sverdlin
Hi! On 09/04/2021 17:33, Qais Yousef wrote: > I still think the ifdefery in patch 3 is ugly. Any reason my suggestion didn't > work out for you? I struggle to see how this is better and why it was hard to > incorporate my suggestion. > > For example > > - old = ftrace_call_replace(ip

Re: [RFC/PATCH] powerpc/smp: Add SD_SHARE_PKG_RESOURCES flag to MC sched-domain

2021-04-11 Thread Srikar Dronamraju
* Gautham R. Shenoy [2021-04-02 11:07:54]: > > To remedy this, this patch proposes that the LLC be moved to the MC > level which is a group of cores in one half of the chip. > > SMT (SMT4) --> MC (Hemisphere)[LLC] --> DIE > I think marking Hemisphere as a LLC in a P10 scenario is a good

Re: [PATCH] implement flush_cache_vmap and flush_cache_vunmap for RISC-V

2021-04-11 Thread Jisheng Zhang
On Sun, 11 Apr 2021 14:41:07 -0700 (PDT) Palmer Dabbelt wrote: > > > On Sun, 28 Mar 2021 18:55:09 PDT (-0700), l...@jiuyang.me wrote: > > This patch implements flush_cache_vmap and flush_cache_vunmap for > > RISC-V, since these functions might modify PTE. Without this patch, > > SFENCE.VMA wo

Re: general protection fault in css_release_work_fn()

2021-04-11 Thread Christian Hesse
Christian Hesse on Mo, 2021/03/15 14:10: > Hello everybody, > > Christian Hesse on Tue, 2021/03/02 09:34: > > I see this on a git server with lots of ssh logins. It happens every few > > hours to days. No idea how to reproduce, guess it's a race condition? > > > > general protection fault, prob

Re: [PATCH] staging: rtl8188eu: replaced msleep() by usleep_range()

2021-04-11 Thread Greg KH
On Mon, Apr 12, 2021 at 11:40:53AM +0530, Mitali Borkar wrote: > Fixed the warning:-msleep < 20ms can sleep for up to 20ms by replacing > msleep(unsigned long msecs) by usleep_range(unsigned long min, unsigned long > max) > in usecs as msleep(1ms~20ms) can sleep for upto 20 ms. > > Signed-off-by:

Re: linux-next: Tree for Apr 9 (x86 boot problem)

2021-04-11 Thread Mike Rapoport
Hi Randy, On Sun, Apr 11, 2021 at 07:41:37PM -0700, Randy Dunlap wrote: > On 4/9/21 4:51 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20210408: > > > > Hi, > > I cannot boot linux-next 20210408 nor 20210409 on an antique > x86_64 laptop (Toshiba Portege). > > After many faile

[PATCH] staging: rtl8188eu: replaced msleep() by usleep_range()

2021-04-11 Thread Mitali Borkar
Fixed the warning:-msleep < 20ms can sleep for up to 20ms by replacing msleep(unsigned long msecs) by usleep_range(unsigned long min, unsigned long max) in usecs as msleep(1ms~20ms) can sleep for upto 20 ms. Signed-off-by: Mitali Borkar --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 +-

Re: [PATCH v7 01/28] mm: Optimise nth_page for contiguous memmap

2021-04-11 Thread Christoph Hellwig
On Fri, Apr 09, 2021 at 07:50:38PM +0100, Matthew Wilcox (Oracle) wrote: > Signed-off-by: Matthew Wilcox (Oracle) Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH] MIPS: Fix strnlen_user access check

2021-04-11 Thread Jinyang He
On 04/12/2021 11:02 AM, Tiezhu Yang wrote: On 04/11/2021 07:04 PM, Jinyang He wrote: Commit 04324f44cb69 ("MIPS: Remove get_fs/set_fs") brought a problem for strnlen_user(). Jump out when checking access_ok() with condition that (s + strlen(s)) < __UA_LIMIT <= (s + n). The old __strnlen_user_as

Re: [PATCH 0/3] nvmem: eeprom: add support for FRAM

2021-04-11 Thread Jiří Prchal
On 09. 04. 21 19:21, Christian Eggers wrote: Hi Jiri, I have two Fujitsu different FRAMs running with the stock at25 driver. I set the page size equal to the device size (as FRAMs have no pages). Are you able to run your FRAM with the unmodified driver? I assume that getting the device geom

Re: [RFC PATCH v3 1/3] regmap-irq: Extend sub-irq to support non-fixed reg strides

2021-04-11 Thread Matti Vaittinen
Hi All, On Wed, 2021-03-10 at 16:39 -0800, Guru Das Srinagesh wrote: > Qualcomm's MFD chips have a top level interrupt status register and > sub-irqs (peripherals). When a bit in the main status register goes > high, it means that the peripheral corresponding to that bit has an > unserviced inter

[PATCH] scsi: message: fusion: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/message/fusion/mptsas.c:783:14: warning: variable ‘vtarget’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/message/fusion/mptsas.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/driver

Re: [PATCH] serial: stm32: optimize spin lock usage

2021-04-11 Thread Greg KH
On Mon, Apr 12, 2021 at 12:34:21PM +0800, dillon.min...@gmail.com wrote: > From: dillon min > > To avoid potential deadlock in spin_lock usage, change to use > spin_lock_irqsave(), spin_unlock_irqrestore() in process(thread_fn) context. > spin_lock(), spin_unlock() under handler context. > > rem

[PATCH] [v2] usb: cdns3: Fix runtime PM imbalance on error

2021-04-11 Thread Dinghao Liu
When cdns3_gadget_start() fails, a pairing PM usage counter decrement is needed to keep the counter balanced. Signed-off-by: Dinghao Liu --- Changelog: v2: - Use pm_runtime_put_sync() to decrease refcount. --- drivers/usb/cdns3/cdns3-gadget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deleti

Re: [PATCH v2 1/9] riscv: add __init section marker to some functions

2021-04-11 Thread Jisheng Zhang
On Fri, 2 Apr 2021 09:38:02 +0530 Anup Patel wrote: > > > On Wed, Mar 31, 2021 at 10:00 PM Jisheng Zhang > wrote: > > > > From: Jisheng Zhang > > > > They are not needed after booting, so mark them as __init to move them > > to the __init section. > > > > Signed-off-by: Jisheng Zhang > > --

Re: Re: [PATCH] usb: cdns3: Fix rumtime PM imbalance on error

2021-04-11 Thread dinghao . liu
> On 21-04-07 13:22:26, Dinghao Liu wrote: > > When cdns3_gadget_start() fails, a pairing PM usage counter > > decrement is needed to keep the counter balanced. > > > > Signed-off-by: Dinghao Liu > > --- > > drivers/usb/cdns3/cdns3-gadget.c | 5 - > > 1 file changed, 4 insertions(+), 1 delet

[PATCH] [v2] iio: proximity: pulsedlight: Fix rumtime PM imbalance on error

2021-04-11 Thread Dinghao Liu
When lidar_write_control() fails, a pairing PM usage counter decrement is needed to keep the counter balanced. Fixes: 4ac4e086fd8c5 ("iio: pulsedlight-lidar-lite: add runtime PM") Signed-off-by: Dinghao Liu --- Changelog: v2: - Add the fix tag. --- drivers/iio/proximity/pulsedlight-lidar-lite-

Re: Linux 5.12-rc7

2021-04-11 Thread Guenter Roeck
On Sun, Apr 11, 2021 at 03:41:18PM -0700, Linus Torvalds wrote: > Oh well. rc5 was big. rc6 was small. And now rc7 is big again. In > fact, it's the biggest rc7 (at least in number of commits) we've had > in the 5.x series. > > It's mostly due to networking fixes (of which rc6 had none), and none

Re: [PATCH 4/6] usb: xhci-mtk: add support runtime PM

2021-04-11 Thread Ikjoon Jang
On Fri, Apr 9, 2021 at 4:54 PM Chunfeng Yun wrote: > > On Fri, 2021-04-09 at 13:45 +0800, Ikjoon Jang wrote: > > On Thu, Apr 8, 2021 at 5:35 PM Chunfeng Yun > > wrote: > > > > > > A dedicated wakeup irq will be used to handle runtime suspend/resume, > > > we use dev_pm_set_dedicated_wake_irq API

Re: [PATCH v7] RISC-V: enable XIP

2021-04-11 Thread Alex Ghiti
Le 4/9/21 à 10:42 AM, Vitaly Wool a écrit : On Fri, Apr 9, 2021 at 3:59 PM Mike Rapoport wrote: On Fri, Apr 09, 2021 at 02:46:17PM +0200, David Hildenbrand wrote: Also, will that memory properly be exposed in the resource tree as System RAM (e.g., /proc/iomem) ? Otherwise some things (/proc/k

Re: [PATCH v4 0/7] cpufreq-qcom-hw: Implement full OSM programming

2021-04-11 Thread Viresh Kumar
On 19-01-21, 18:45, AngeloGioacchino Del Regno wrote: > ** > ** NOTE: To "view the full picture", please look at the following > ** patch series: > ** https://patchwork.kernel.org/project/linux-arm-msm/list/?series=413355 > ** This is a subset of that series. > ** > > Chan

Re: [PATCH -next] phy: ti: j721e-wiz: Add missing include linux/slab.h

2021-04-11 Thread Vinod Koul
On 08-04-21, 09:28, Shixin Liu wrote: > When compiling with CONFIG_PHY_J721E_WIZ, Hulk Robot reported: > > drivers/phy/ti/phy-j721e-wiz.c: In function ‘wiz_mux_clk_register’: > drivers/phy/ti/phy-j721e-wiz.c:659:17: error: implicit declaration of > function ‘kzalloc’; did you mean ‘vzalloc’? > [

Re: [PATCH -next] phy: phy-twl4030-usb: Fix possible use-after-free in twl4030_usb_remove()

2021-04-11 Thread Vinod Koul
On 07-04-21, 17:27, Yang Yingliang wrote: > This driver's remove path calls cancel_delayed_work(). However, that > function does not wait until the work function finishes. This means > that the callback function may still be running after the driver's > remove function has finished, which would res

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

2021-04-11 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/asm-generic/bug.h:20, from arch/x86/include/asm/bug.h:93, from include/linux/bug.h:5, from include/linux/mmdeb

Re: [PATCH v6 1/3] bio: limit bio max size

2021-04-11 Thread kernel test robot
Hi Changheun, Thank you for the patch! Yet something to improve: [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on scsi/for-next linus/master v5.12-rc7] [cannot apply to block/for-next next-20210409] [If your patch is applied to the wrong git tree, kindly drop us a note. And

Re: [PATCH v6 1/3] bio: limit bio max size

2021-04-11 Thread kernel test robot
Hi Changheun, Thank you for the patch! Yet something to improve: [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on scsi/for-next linus/master v5.12-rc7] [cannot apply to block/for-next next-20210409] [If your patch is applied to the wrong git tree, kindly drop us a note. And

[PATCH v5,4/4] Documentation/admin-guide/module-signing.rst: add openssl command option example for CodeSign EKU

2021-04-11 Thread Lee, Chun-Yi
Add an openssl command option example for generating CodeSign extended key usage in X.509 when CONFIG_CHECK_CODESIGN_EKU is enabled. Signed-off-by: "Lee, Chun-Yi" --- Documentation/admin-guide/module-signing.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/admin-guide/

[PATCH v5,2/4] PKCS#7: Check codeSigning EKU for kernel module and kexec pe verification

2021-04-11 Thread Lee, Chun-Yi
This patch adds the logic for checking the CodeSigning extended key usage when verifying signature of kernel module or kexec PE binary in PKCS#7. Signed-off-by: "Lee, Chun-Yi" --- certs/system_keyring.c | 2 +- crypto/asymmetric_keys/Kconfig | 9 + crypto/asymmetric

[PATCH v5,3/4] modsign: Add codeSigning EKU when generating X.509 key generation config

2021-04-11 Thread Lee, Chun-Yi
Add codeSigning EKU to the X.509 key generation config for the build time autogenerated kernel key. Signed-off-by: "Lee, Chun-Yi" --- certs/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/certs/Makefile b/certs/Makefile index f4c25b67aad9..1ef4d6ca43b7 100644 --- a/certs/Makefile ++

[PATCH v5,1/4] X.509: Add CodeSigning extended key usage parsing

2021-04-11 Thread Lee, Chun-Yi
This patch adds the logic for parsing the CodeSign extended key usage extension in X.509. The parsing result will be set to the eku flag which is carried by public key. It can be used in the PKCS#7 verification. Signed-off-by: "Lee, Chun-Yi" --- crypto/asymmetric_keys/x509_cert_parser.c | 24 +++

[PATCH v5 0/4] Check codeSigning extended key usage extension

2021-04-11 Thread Lee, Chun-Yi
NIAP PP_OS certification requests that the OS shall validate the CodeSigning extended key usage extension field for integrity verifiction of exectable code: https://www.niap-ccevs.org/MMO/PP/-442-/ FIA_X509_EXT.1.1 This patchset adds the logic for parsing the codeSigning EKU extension

[PATCH] serial: stm32: optimize spin lock usage

2021-04-11 Thread dillon . minfei
From: dillon min To avoid potential deadlock in spin_lock usage, change to use spin_lock_irqsave(), spin_unlock_irqrestore() in process(thread_fn) context. spin_lock(), spin_unlock() under handler context. remove unused local_irq_save/restore call. Signed-off-by: dillon min --- Was verified on

Re: [PATCH v7 clocksource 3/5] clocksource: Check per-CPU clock synchronization when marked unstable

2021-04-11 Thread Paul E. McKenney
On Sun, Apr 11, 2021 at 09:46:12AM -0700, Paul E. McKenney wrote: > On Sun, Apr 11, 2021 at 12:33:44PM +0200, Thomas Gleixner wrote: > > On Sat, Apr 10 2021 at 17:20, Paul E. McKenney wrote: > > > On Sat, Apr 10, 2021 at 11:00:25AM +0200, Thomas Gleixner wrote: > > >> > + if (WARN_ON_ONCE(!cs)

RE: [PATCH v6 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-04-11 Thread Yuan, Perry
Hi Hans, Barnabás. Thanks for your review very much! I have no concern to change the most of the comments. Just one sysfs_emit replacement will cause problem , adding comments at below. > -Original Message- > From: Hans de Goede > Sent: Wednesday, April 7, 2021 11:16 PM > To: Barnabás P

答复: [PATCH v1 01/14] vfio: Create vfio_fs_type with inode per device

2021-04-11 Thread Zengtao (B)
> -邮件原件- > 发件人: Alex Williamson [mailto:alex.william...@redhat.com] > 发送时间: 2021年4月9日 22:24 > 收件人: Zengtao (B) > 抄送: coh...@redhat.com; k...@vger.kernel.org; > linux-kernel@vger.kernel.org; j...@nvidia.com; pet...@redhat.com > 主题: Re: [PATCH v1 01/14] vfio: Create vfio_fs_type with inode p

答复: [PATCH v1 01/14] vfio: Create vfio_fs_type with inode per device

2021-04-11 Thread Zengtao (B)
> -邮件原件- > 发件人: Jason Gunthorpe [mailto:j...@nvidia.com] > 发送时间: 2021年4月10日 1:32 > 收件人: Alex Williamson > 抄送: Zengtao (B) ; coh...@redhat.com; > k...@vger.kernel.org; linux-kernel@vger.kernel.org; pet...@redhat.com > 主题: Re: [PATCH v1 01/14] vfio: Create vfio_fs_type with inode per device

[PATCH] ide-cd: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/ide/ide-cd_ioctl.c:212:6: warning: variable ‘stat’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/ide/ide-cd_ioctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dri

mmotm 2021-04-11-20-47 uploaded

2021-04-11 Thread akpm
The mm-of-the-moment snapshot 2021-04-11-20-47 has been uploaded to https://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: https://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

[PATCH V2] mm/page_alloc: Ensure that HUGETLB_PAGE_ORDER is less than MAX_ORDER

2021-04-11 Thread Anshuman Khandual
pageblock_order must always be less than MAX_ORDER, otherwise it might lead to an warning during boot. A similar problem got fixed on arm64 platform with the commit 79cc2ed5a716 ("arm64/mm: Drop THP conditionality from FORCE_MAX_ZONEORDER"). Assert the above condition before HUGETLB_PAGE_ORDER gets

[PATCH v6 4/4] dt-bindings: serial: 8250: add aspeed,lpc-io-reg and aspeed,lpc-interrupts

2021-04-11 Thread Zev Weiss
These correspond to the existing lpc_address, sirq, and sirq_polarity sysfs attributes; the second element of aspeed,lpc-interrupts provides a replacement for the deprecated aspeed,sirq-polarity-sense property. Signed-off-by: Zev Weiss Reviewed-by: Rob Herring --- .../devicetree/bindings/serial

[PATCH v6 2/4] serial: 8250_aspeed_vuart: refactor sirq and lpc address setting code

2021-04-11 Thread Zev Weiss
This splits dedicated aspeed_vuart_set_{sirq,lpc_address}() functions out of the sysfs store functions in preparation for adding DT properties that will be poking the same registers. While we're at it, these functions now provide some basic bounds-checking on their arguments. Signed-off-by: Zev W

[PATCH v6 3/4] serial: 8250_aspeed_vuart: add aspeed,lpc-io-reg and aspeed,lpc-interrupts DT properties

2021-04-11 Thread Zev Weiss
These allow describing all the Aspeed VUART attributes currently available via sysfs. aspeed,lpc-interrupts provides a replacement for the deprecated aspeed,sirq-polarity-sense property. Signed-off-by: Zev Weiss --- drivers/tty/serial/8250/8250_aspeed_vuart.c | 51 - 1 file

[PATCH v6 0/4] serial: 8250_aspeed_vuart: generalized DT properties

2021-04-11 Thread Zev Weiss
This series generalizes the aspeed-vuart driver's device tree properties to cover all the attributes it currently exposes via sysfs. The aspeed,sirq-polarity-sense property was a bit of a design mistake in that it ties Aspeed VUART SIRQ polarity to SCU register bits that aren't really inherently r

[PATCH v6 1/4] dt-bindings: serial: 8250: deprecate aspeed,sirq-polarity-sense

2021-04-11 Thread Zev Weiss
This property ties SIRQ polarity to SCU register bits that don't necessarily have any direct relationship to it; the only use of it was removed in commit c82bf6e133d3 ("ARM: aspeed: g5: Do not set sirq polarity"). Signed-off-by: Zev Weiss Reviewed-by: Joel Stanley Acked-by: Rob Herring --- Doc

[RFC v4 net-next 3/4] dt-bindings: net: dsa: add MT7530 interrupt controller binding

2021-04-11 Thread DENG Qingfang
Add device tree binding to support MT7530 interrupt controller. Signed-off-by: DENG Qingfang Reviewed-by: Andrew Lunn --- RFC v3 -> RFC v4: - Add #interrupt-cells property. Documentation/devicetree/bindings/net/dsa/mt7530.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentat

[RFC v4 net-next 4/4] staging: mt7621-dts: enable MT7530 interrupt controller

2021-04-11 Thread DENG Qingfang
Enable MT7530 interrupt controller in the MT7621 SoC. Signed-off-by: DENG Qingfang Reviewed-by: Andrew Lunn --- RFC v3 -> RFC v4: - Add #interrupt-cells property. drivers/staging/mt7621-dts/mt7621.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/mt7621-dts/mt7621.dt

[RFC v4 net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-11 Thread DENG Qingfang
Add support for MT7530 interrupt controller to handle internal PHYs. In order to assign an IRQ number to each PHY, the registration of MDIO bus is also done in this driver. Signed-off-by: DENG Qingfang --- RFC v3 -> RFC v4: - No changes. drivers/net/dsa/Kconfig | 1 + drivers/net/dsa/mt7530.

[RFC v4 net-next 1/4] net: phy: add MediaTek PHY driver

2021-04-11 Thread DENG Qingfang
Add support for MediaTek PHYs found in MT7530 and MT7531 switches. The initialization procedure is from the vendor driver, but due to lack of documentation, the function of some register values remains unknown. Signed-off-by: DENG Qingfang --- RFC v3 -> RFC v4: - Remove unused include. drivers/

[RFC v4 net-next 0/4] MT7530 interrupt support

2021-04-11 Thread DENG Qingfang
Add support for MT7530 interrupt controller. DENG Qingfang (4): net: phy: add MediaTek PHY driver net: dsa: mt7530: add interrupt support dt-bindings: net: dsa: add MT7530 interrupt controller binding staging: mt7621-dts: enable MT7530 interrupt controller .../devicetree/bindings/net/dsa

[PATCH] thermal: ti-soc-thermal: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/thermal/ti-soc-thermal/ti-bandgap.c:1146:7: warning: variable ‘val’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/thermal/ti-soc-thermal/ti-bandgap.c | 3 +-- 1 file changed, 1 insertion(+)

Re: [PATCH net v3] net: sched: fix packet stuck problem for lockless qdisc

2021-04-11 Thread Yunsheng Lin
On 2021/4/12 11:21, Hillf Danton wrote: > On Mon, 12 Apr 2021 09:24:30 Yunsheng Lin wrote: >> On 2021/4/9 17:09, Hillf Danton wrote: >>> On Fri, 9 Apr 2021 07:31:03 Juergen Gross wrote: On 25.03.21 04:13, Yunsheng Lin wrote: I have a setup which is able to reproduce the issue quite reli

Re: [PATCH RFC net-next 1/3] net: dsa: allow for multiple CPU ports

2021-04-11 Thread DENG Qingfang
On Sat, Apr 10, 2021 at 03:34:47PM +0200, Ansuel Smith wrote: > Allow for multiple CPU ports in a DSA switch tree. By default the first > CPU port is assigned mimic the original assignement logic. A DSA driver > can define a function to declare a preferred CPU port based on the > provided port. If

Re: [PATCH 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-11 Thread Huang, Ying
Miaohe Lin writes: > We will use percpu-refcount to serialize against concurrent swapoff. This > patch adds the percpu_ref support for later fixup. > > Signed-off-by: Miaohe Lin > --- > include/linux/swap.h | 2 ++ > mm/swapfile.c| 25 ++--- > 2 files changed, 24 in

RE: [PATCH v2] usb: cdnsp: Fixes issue with Configure Endpoint command

2021-04-11 Thread Pawel Laszczak
> >On 21-04-07 08:36:29, Pawel Laszczak wrote: >> From: Pawel Laszczak >> >> Patch adds flag EP_UNCONFIGURED to detect whether endpoint was >> unconfigured. This flag is set in cdnsp_reset_device after Reset Device >> command. Among others this command disables all non control endpoints. >> Flag i

Re: [PATCH 2/5] swap: fix do_swap_page() race with swapoff

2021-04-11 Thread Miaohe Lin
On 2021/4/12 9:44, Huang, Ying wrote: > Miaohe Lin writes: > >> On 2021/4/10 1:17, Tim Chen wrote: >>> >>> >>> On 4/9/21 1:42 AM, Miaohe Lin wrote: On 2021/4/9 5:34, Tim Chen wrote: > > > On 4/8/21 6:08 AM, Miaohe Lin wrote: >> When I was investigating the swap code, I found

Re: [RESEND,v5,1/2] bio: limit bio max size

2021-04-11 Thread Ming Lei
On Sun, Apr 11, 2021 at 10:13:01PM +, Damien Le Moal wrote: > On 2021/04/09 23:47, Bart Van Assche wrote: > > On 4/7/21 3:27 AM, Damien Le Moal wrote: > >> On 2021/04/07 18:46, Changheun Lee wrote: > >>> I'll prepare new patch as you recommand. It will be added setting of > >>> limit_bio_size a

[PATCH] scsi: a100u2w: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/scsi/a100u2w.c:1092:8: warning: variable ‘bios_phys’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/a100u2w.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drive

[PATCH v3] drivers/clocksource/mediatek: Ack and disable interrupts on suspend

2021-04-11 Thread Evan Benn
Interrupts are disabled during suspend before this driver disables its timers. ARM trusted firmware will abort suspend if the timer irq is pending, so ack and disable the timer interrupt during suspend. Signed-off-by: Evan Benn --- Changes in v3: Move the ACK from the shutdown to the suspend fun

Re: [PATCH 4/5] mm/swap_state: fix potential faulted in race in swap_ra_info()

2021-04-11 Thread Miaohe Lin
On 2021/4/12 8:55, Huang, Ying wrote: > Miaohe Lin writes: > >> On 2021/4/9 16:50, Huang, Ying wrote: >>> Miaohe Lin writes: >>> While we released the pte lock, somebody else might faulted in this pte. So we should check whether it's swap pte first to guard against such race or sw

[PATCH v6 3/3] bio: add limit_bio_size sysfs

2021-04-11 Thread Changheun Lee
Add limit_bio_size block sysfs node to limit bio size. Queue flag QUEUE_FLAG_LIMIT_BIO_SIZE will be set if limit_bio_size is set. And bio max size will be limited by queue max sectors via QUEUE_FLAG_LIMIT_BIO_SIZE set. Signed-off-by: Changheun Lee --- Documentation/ABI/testing/sysfs-block | 10 +

[PATCH v6 2/3] ufs: set QUEUE_FLAG_LIMIT_BIO_SIZE

2021-04-11 Thread Changheun Lee
Set QUEUE_FLAG_LIMIT_BIO_SIZE queue flag to limit bio max size to queue max sectors size for UFS device. Signed-off-by: Changheun Lee --- drivers/scsi/scsi_lib.c | 2 ++ drivers/scsi/ufs/ufshcd.c | 1 + include/scsi/scsi_host.h | 2 ++ 3 files changed, 5 insertions(+) diff --git a/drivers/sc

[PATCH v6 1/3] bio: limit bio max size

2021-04-11 Thread Changheun Lee
bio size can grow up to 4GB when muli-page bvec is enabled. but sometimes it would lead to inefficient behaviors. in case of large chunk direct I/O, - 32MB chunk read in user space - all pages for 32MB would be merged to a bio structure if the pages physical addresses are contiguous. it makes some

[PATCH v6 0/3] limit bio max size

2021-04-11 Thread Changheun Lee
I found a inefficient behavior from multipage bvec. Large chunk DIO scenario is that. This patch series could be a solution to improve it. Changheun Lee (3): bio: limit bio max size ufs: set QUEUE_FLAG_LIMIT_BIO_SIZE bio: add limit_bio_size sysfs Documentation/ABI/testing/sysfs-block | 10

Re: [PATCH v2 3/6] ARM: dts: rockchip: remove interrupts properties from pwm nodes rv1108.dtsi

2021-04-11 Thread Chen-Yu Tsai
On Sun, Apr 11, 2021 at 9:11 PM Johan Jonker wrote: > > A test with the command below gives this error: > > /arch/arm/boot/dts/rv1108-evb.dt.yaml: > pwm@1028: 'interrupts' does not match any of the regexes: > 'pinctrl-[0-9]+' > > "interrupts" is an undocumented property, so remove them > from

Re: [Question] Is there a race window between swapoff vs synchronous swap_readpage

2021-04-11 Thread Miaohe Lin
On 2021/3/30 15:27, Yu Zhao wrote: > On Tue, Mar 30, 2021 at 12:57 AM Huang, Ying wrote: >> >> Yu Zhao writes: >> >>> On Mon, Mar 29, 2021 at 9:44 PM Huang, Ying wrote: Miaohe Lin writes: > On 2021/3/30 9:57, Huang, Ying wrote: >> Hi, Miaohe, >> >> Miaohe Lin wri

Re: [PATCH] mm/frontswap: fix frontswap_register_ops() race with swapon and swapoff

2021-04-11 Thread Miaohe Lin
On 2021/4/11 4:02, Yu Zhao wrote: > On Sat, Apr 10, 2021 at 5:01 AM Miaohe Lin wrote: >> >> On 2021/4/10 18:42, Yu Zhao wrote: >>> On Sat, Apr 10, 2021 at 1:30 AM Miaohe Lin wrote: Hi: On 2021/4/5 18:20, Miaohe Lin wrote: > frontswap_register_ops can race with swapon. Consider

[PATCH v2] nfc: pn533: remove redundant assignment

2021-04-11 Thread samirweng1979
From: wengjianfeng In many places,first assign a value to a variable and then return the variable. which is redundant, we should directly return the value. in pn533_rf_field funciton,return rc also in the if statement, so we use return 0 to replace the last return rc. Signed-off-by: wengjianfeng

Re: [PATCH v4 2/2] pwm: visconti: Add Toshiba Visconti SoC PWM support

2021-04-11 Thread Nobuhiro Iwamatsu
Hi, On Sat, Apr 10, 2021 at 08:52:22PM +0200, Uwe Kleine-König wrote: > Hello, > > one more comment: > > On Sat, Apr 10, 2021 at 08:08:37AM +0900, Nobuhiro Iwamatsu wrote: > > +static inline struct visconti_pwm_chip *to_visconti_chip(struct pwm_chip > > *chip) > > all functions but this one st

[PATCH] scsi: 3w-9xxx: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/scsi/3w-9xxx.c:942:24: warning: variable ‘response_que_value’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/3w-9xxx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

Re: [PATCH] MIPS: Fix strnlen_user access check

2021-04-11 Thread Tiezhu Yang
On 04/11/2021 07:04 PM, Jinyang He wrote: Commit 04324f44cb69 ("MIPS: Remove get_fs/set_fs") brought a problem for strnlen_user(). Jump out when checking access_ok() with condition that (s + strlen(s)) < __UA_LIMIT <= (s + n). The old __strnlen_user_asm() just checked (ua_limit & s) without check

Re: [PATCH v4 2/2] pwm: visconti: Add Toshiba Visconti SoC PWM support

2021-04-11 Thread Nobuhiro Iwamatsu
Hi Uwe, Thanks for your review. On Sat, Apr 10, 2021 at 03:53:21PM +0200, Uwe Kleine-König wrote: > Hello, > > just a few small details left to criticize ... > > On Sat, Apr 10, 2021 at 08:08:37AM +0900, Nobuhiro Iwamatsu wrote: > > diff --git a/drivers/pwm/pwm-visconti.c b/drivers/pwm/pwm-visc

[PATCH] staging: emxx_udc: remove useless variable

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: vers/staging/emxx_udc/emxx_udc.c:41:19: warning: ‘driver_desc’ defined but not used [-Wunused-const-variable=]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/staging/emxx_udc/emxx_udc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/driver

Re: [PATCH v3 12/27] perf parse-events: Support no alias assigned event inside hybrid PMU

2021-04-11 Thread Jin, Yao
Hi Jiri, On 4/9/2021 9:47 PM, Jiri Olsa wrote: On Mon, Mar 29, 2021 at 03:00:31PM +0800, Jin Yao wrote: SNIP + struct parse_events_state *parse_state) { struct perf_event_attr attr; LIST_HEAD(config_terms); @@ -521,7 +526,7 @@ int parse_events_add_ca

[PATCH] vfio/iommu_type1: Remove unused pinned_page_dirty_scope in vfio_iommu

2021-04-11 Thread Keqian Zhu
pinned_page_dirty_scope is optimized out by commit 010321565a7d ("vfio/iommu_type1: Mantain a counter for non_pinned_groups"), but appears again due to some issues during merging branches. We can safely remove it here. Signed-off-by: Keqian Zhu --- However, I'm not clear about the root problem.

Re: [PATCH v3] ARM: dts: aspeed: add ASRock E3C246D4I BMC

2021-04-11 Thread Zev Weiss
On Sun, Apr 11, 2021 at 09:20:59PM CDT, Joel Stanley wrote: On Mon, 12 Apr 2021 at 02:16, Andrew Jeffery wrote: On Thu, 1 Apr 2021, at 15:12, Zev Weiss wrote: > +&vuart { > + status = "okay"; > + aspeed,sirq-active-high; This should probably go away, but otherwise, Zev, this has a

Re: linux-next: Tree for Apr 9 (x86 boot problem)

2021-04-11 Thread Randy Dunlap
On 4/9/21 4:51 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20210408: > Hi, I cannot boot linux-next 20210408 nor 20210409 on an antique x86_64 laptop (Toshiba Portege). After many failed tests, I finally resorted to git bisect, which led me to: git bisect start # good: [e49d033bdd

Re: [PATCH v5 0/6] Add SiFive FU740 PCIe host controller driver support

2021-04-11 Thread Greentime Hu
Lorenzo Pieralisi 於 2021年4月9日 週五 下午4:54寫道: > > On Tue, 6 Apr 2021 17:26:28 +0800, Greentime Hu wrote: > > This patchset includes SiFive FU740 PCIe host controller driver. We also > > add pcie_aux clock and pcie_power_on_reset controller to prci driver for > > PCIe driver to use it. > > > > This is

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

2021-04-11 Thread Jens Axboe
On 4/11/21 8:26 PM, Sowjanya Komatineni wrote: > > On 4/11/21 7:14 PM, Jens Axboe wrote: >> On 4/11/21 4:34 PM, Stephen Rothwell wrote: >>> Hi all, >>> >>> Commit >>> >>>6fa6517fe62e ("ata: ahci_tegra: call tegra_powergate_power_off only when >>> PM domain is not present") >>> >>> is missing

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

2021-04-11 Thread Sowjanya Komatineni
On 4/11/21 7:14 PM, Jens Axboe wrote: On 4/11/21 4:34 PM, Stephen Rothwell wrote: Hi all, Commit 6fa6517fe62e ("ata: ahci_tegra: call tegra_powergate_power_off only when PM domain is not present") is missing a Signed-off-by from its author. Sowjana, please reply that you're OK with me

linux-next: manual merge of the vfs tree with the xfs tree

2021-04-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the vfs tree got a conflict in: fs/xfs/xfs_ioctl.c between commits: ceaf603c7024 ("xfs: move the di_projid field to struct xfs_inode") 031474c28a3a ("xfs: move the di_extsize field to struct xfs_inode") b33ce57d3e61 ("xfs: move the di_cowextsize field

Re: [PATCH v3] ARM: dts: aspeed: add ASRock E3C246D4I BMC

2021-04-11 Thread Joel Stanley
On Mon, 12 Apr 2021 at 02:16, Andrew Jeffery wrote: > On Thu, 1 Apr 2021, at 15:12, Zev Weiss wrote: > > +&vuart { > > + status = "okay"; > > + aspeed,sirq-active-high; > > This should probably go away, but otherwise, Zev, this has already been merged (both to mainline for v5.13 and in o

Re: [PATCH v3] ARM: dts: aspeed: add ASRock E3C246D4I BMC

2021-04-11 Thread Andrew Jeffery
On Thu, 1 Apr 2021, at 15:12, Zev Weiss wrote: > This is a relatively low-cost AST2500-based Xeon E-2100/E-2200 series > mini-ITX board that we hope can provide a decent platform for OpenBMC > development. > > This initial device-tree provides the necessary configuration for > basic BMC functio

[PATCH] gpio: mxs: remove useless function

2021-04-11 Thread Jiapeng Chong
Fix the following gcc warning: drivers/gpio/gpio-mxs.c:63:19: warning: kernel/sys_ni.cunused function 'is_imx28_gpio'. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpio/gpio-mxs.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpi

  1   2   3   4   5   6   >