RE: [PATCH 2/2] arm64: dts: lx2160a: add device tree for lx2162aqds board

2020-09-21 Thread Meenakshi Aggarwal
> -Original Message- > From: Shawn Guo > Sent: Saturday, September 12, 2020 3:19 PM > To: Meenakshi Aggarwal > Cc: robh...@kernel.org; Varun Sethi ; Leo Li > ; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; Ioana Ciornei > ; Kuldeep

Re: PROBLEM: 5.9.0-rc6 fails to compile due to 'redefinition of ‘dax_supported’'

2020-09-21 Thread Naresh Kamboju
On Mon, 21 Sep 2020 at 06:34, Stuart Little wrote: > > I am trying to compile for an x86_64 machine (Intel(R) Core(TM) i7-7500U CPU > @ 2.70GHz). The config file I am currently using is at > > https://termbin.com/xin7 > > The build for 5.9.0-rc6 fails with the following errors: > arm and mips

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

2020-09-21 Thread Sven Eckelmann
On Sunday, 20 September 2020 21:59:19 CEST Stephen Rothwell wrote: > Hi all, Yes, I've accidentally swapped the IDs while adding them to the various patches. The correct ones should have been: * 097930e85f90 ("batman-adv: bla: fix type misuse for backbone_gw hash indexing") Fixes:

[Patch v2 2/3] rtc: pcf2127: add "no-watchdog" property

2020-09-21 Thread Qiang Zhao
From: Zhao Qiang Commit 0e735eaae165 ("rtc: pcf2127: add watchdog feature support") adds watchdog feature for pcf2127, then it will be registered as a watchdog device even though it is not used as watchdog. Pcf2127 always be registered as watchdog0(default watchdog device), even though it is not

[Patch v2 1/3] dt-bindings: rtc: pcf2127: Add bindings for nxp,pcf2127

2020-09-21 Thread Qiang Zhao
From: Zhao Qiang Add bindings for nxp,pcf2127 Signed-off-by: Zhao Qiang --- Changes for v2: - modify the format to yaml - add compitable "nxp,pca2129" .../devicetree/bindings/rtc/nxp,pcf2127.yaml | 41 ++ 1 file changed, 41 insertions(+) create mode 100644

[Patch v2 3/3] arm64: dts: lx2160a: Add "no-watchdog" property to pcf2127

2020-09-21 Thread Qiang Zhao
From: Zhao Qiang pcf2127 on lx2160a are not used as watchdog. Signed-off-by: Zhao Qiang --- arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts

Re: [PATCH] Bluetooth: Fix the vulnerable issue on enc key size

2020-09-21 Thread 陆朱伟
Hi Marcel, > On September 20, 2020 14:10, Marcel Holtmann wrote: > > Hi Alex, > > > When someone attacks the service provider, it creates connection, > > authenticates. Then it requests key size of one byte and it identifies > > the key with brute force methods. > > > > After l2cap info

Re: [PATCH v2 2/5] spi: spi-mtk-nor: fix mishandled logics in checking SPI memory operation

2020-09-21 Thread Ikjoon Jang
On Fri, Sep 18, 2020 at 9:09 PM Chuanhong Guo wrote: > > Hi! > > On Fri, Sep 18, 2020 at 4:34 PM Ikjoon Jang wrote: > > > > Fix a simple bug which can limits its transfer size, > > and add a simple helper function for code cleanups. > > > > Fixes: a59b2c7c56bf ("spi: spi-mtk-nor: support

[PATCH v4 03/11] usb: pci-quirks: convert to readl_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Mathias Nyman Signed-off-by: Chunfeng Yun --- v2~v4: no changes --- drivers/usb/host/pci-quirks.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c

[PATCH v4 02/11] usb: early: ehci-dbgp: convert to readl_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: "Eric W. Biederman" Cc: Petr Mladek Signed-off-by: Chunfeng Yun --- v2~v4: no changes --- drivers/usb/early/ehci-dbgp.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/usb/early/ehci-dbgp.c

[PATCH v4 05/11] usb: oxu210hp-hcd: convert to readl_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2~v4: no changes --- drivers/usb/host/oxu210hp-hcd.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c

[PATCH v4 06/11] usb: fotg210-hcd: convert to readl_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2~v4: no changes --- drivers/usb/host/fotg210-hcd.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index

[PATCH v4 01/11] usb: early: convert to readl_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Lu Baolu Cc: Mathias Nyman Signed-off-by: Chunfeng Yun Reviewed-by: Jann Horn --- v4: add reviewed-by Jann v2~v3: no changes --- drivers/usb/early/xhci-dbc.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff

[PATCH v4 04/11] usb: xhci-rcar: convert to readl_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Mathias Nyman Cc: Yoshihiro Shimoda Signed-off-by: Chunfeng Yun --- v4: changes 1. remove unnecessary parentheses suggested by Yoshihiro 2. fix the wrong return value suggested by Yoshihiro & Daniel v2~v3: no changes ---

[PATCH v4 11/11] iopoll: update kerneldoc of read_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Arguments description of read_poll_timeout_atomic() is out of date, update it. Cc: Alan Stern Signed-off-by: Chunfeng Yun --- v4: no changes v3: fix typo in commit message suggested by Sergei v2: new patch, suggested by Alan --- include/linux/iopoll.h | 4 ++-- 1 file changed, 2

[PATCH v4 09/11] usb: phy: phy-mv-usb: convert to readl_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v4: no changes v3: re-align argument of log suggested by Sergei v2: udelay 10us instead of 20us according to kerneldoc --- drivers/usb/phy/phy-mv-usb.c | 18 -- 1 file changed, 8 insertions(+), 10

[PATCH v4 07/11] usb: isp1760-hcd: convert to readl_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2~v4: no changes --- drivers/usb/isp1760/isp1760-hcd.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/usb/isp1760/isp1760-hcd.c

[PATCH v4 08/11] usb: phy-ulpi-viewport: convert to readl_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Signed-off-by: Chunfeng Yun --- v2~v4: no changes --- drivers/usb/phy/phy-ulpi-viewport.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/usb/phy/phy-ulpi-viewport.c b/drivers/usb/phy/phy-ulpi-viewport.c

[PATCH v4 10/11] usb: udc: net2280: convert to readl_poll_timeout_atomic()

2020-09-21 Thread Chunfeng Yun
Use readl_poll_timeout_atomic() to simplify code Cc: Alan Stern Cc: Felipe Balbi Signed-off-by: Chunfeng Yun Acked-by: Alan Stern --- v3~v4: no changes v2: add Acked-by Alan --- drivers/usb/gadget/udc/net2280.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-)

[PATCH v3 0/2] add Intel MAX 10 BMC MFD driver & hwmon sub driver

2020-09-21 Thread Xu Yilun
I recently realized that maintainers may have trouble to apply patches to their trees if the patches depend on other being-reviewed patches. So I'm trying to wrapper the 2 patches into one patchset and let all the maintainers see the dependencies. But the patch version is then not aligned between

[PATCH v3 2/2] hwmon: intel-m10-bmc-hwmon: add hwmon support for Intel MAX 10 BMC

2020-09-21 Thread Xu Yilun
This patch adds hwmon functionality for Intel MAX 10 BMC chip. This BMC chip connects to a set of sensor chips to monitor current, voltage, thermal and power of different components on board. The BMC firmware is responsible for sensor data sampling and recording in shared registers. Host driver

Re: [patch RFC 01/15] mm/highmem: Un-EXPORT __kmap_atomic_idx()

2020-09-21 Thread Christoph Hellwig
On Sat, Sep 19, 2020 at 11:17:52AM +0200, Thomas Gleixner wrote: > Nothing in modules can use that. > > Signed-off-by: Thomas Gleixner Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH 2/2] pinctrl: at91-pio4: add support for sama7g5 SoC

2020-09-21 Thread Ludovic Desroches
On Thu, Sep 17, 2020 at 04:12:57PM +0300, Eugen Hristev wrote: > Add support for sama7g5 pinctrl block, which has 5 PIO banks. > > Signed-off-by: Eugen Hristev Acked-by: Ludovic Desroches Thanks. Ludovic > --- > drivers/pinctrl/pinctrl-at91-pio4.c | 7 +++ > 1 file changed, 7

Re: [PATCH 1/2] dt-bindings: pinctrl: at91-pio4: add microchip,sama7g5

2020-09-21 Thread Ludovic Desroches
On Thu, Sep 17, 2020 at 04:12:56PM +0300, Eugen Hristev wrote: > Add compatible string for microchip sama7g5 SoC. > > Signed-off-by: Eugen Hristev Acked-by: Ludovic Desroches Thanks Ludovic > --- > .../devicetree/bindings/pinctrl/atmel,at91-pio4-pinctrl.txt | 4 +++- > 1 file changed, 3

Re: [patch RFC 02/15] highmem: Provide generic variant of kmap_atomic*

2020-09-21 Thread Christoph Hellwig
> +# ifndef ARCH_NEEDS_KMAP_HIGH_GET > +static inline void *arch_kmap_temporary_high_get(struct page *page) > +{ > + return NULL; > +} > +# endif Turn this into a macro and use #ifndef on the symbol name? > +static inline void __kunmap_atomic(void *addr) > +{ > +

Re: [PATCH] nvme: replace meaningless judgement by checking whether req is null

2020-09-21 Thread Christoph Hellwig
Thanks, this looks much more sensible than the previous versions.

Re: [PATCH 3/3] perf list: Add 'pfm' to list libpfm4 events

2020-09-21 Thread Namhyung Kim
Hi all, Can you please take a look at this? Thanks Namhyung On Wed, Sep 9, 2020 at 2:59 PM Namhyung Kim wrote: > > Print libpfm4 events with 'perf list pfm' command like others. > When libpfm4 support is not enabled, it'd print nothing. > Also it support glob pattern matching for event name.

Re: a saner API for allocating DMA addressable pages v3

2020-09-21 Thread Christoph Hellwig
Any comments? Thomas: this should be identical to the git tree I gave you for mips testing, and you add your tested-by (and reviewd-by tags where applicable)? Helge: for parisc this should effectively be the same as the first version, but I've dropped the tested-by tags due to the reshuffle, and

[PATCH] userns: Remove redundant assignment to variable ret

2020-09-21 Thread Jing Xiangfeng
After commit d2f007dbe7e4 ("userns: also map extents in the reverse map to kernel IDs"), the assignment to ret is redundant. So remove it. Signed-off-by: Jing Xiangfeng --- kernel/user_namespace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/user_namespace.c

[PATCH] ipv6: route: convert comma to semicolon

2020-09-21 Thread Xu Wang
Replace a comma between expression statements by a semicolon. Signed-off-by: Xu Wang --- net/ipv6/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 5e7e25e2523a..fb075d9545b9 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c

[RFC v2] cpuidle : Add support for pseudo-cpuidle driver

2020-09-21 Thread Abhishek Goel
This option adds support for a testing cpuidle driver, which allows user to define custom idle states with their respective latencies and residencies. This is useful for testing the behaviour of governors on customized set of idle states. This can be used as of now by hard-coding the customized

Re: [PATCH 1/4] ARM/omap1: switch to use dma_direct_set_offset for lbus DMA offsets

2020-09-21 Thread Tony Lindgren
* Janusz Krzysztofik [200919 22:29]: > Hi Tony, > > On Friday, September 18, 2020 7:49:33 A.M. CEST Tony Lindgren wrote: > > * Christoph Hellwig [200917 17:37]: > > > Switch the omap1510 platform ohci device to use dma_direct_set_offset > > > to set the DMA offset instead of using direct hooks

[PATCH] powercap: include header to fix -Wmissing-prototypes

2020-09-21 Thread Herrington
Include the linux/idle_inject.h header to fix W=1 build warning: vers/powercap/idle_inject.c:152:6: warning: no previous prototype for ‘idle_inject_set_duration’ [-Wmissing-prototypes] drivers/powercap/idle_inject.c:167:6: warning: no previous prototype for ‘idle_inject_get_duration’

Re: [PATCH] ARM: dts: am335x: guardian: switch to AM33XX_PADCONF

2020-09-21 Thread Tony Lindgren
* Drew Fustini [200919 19:53]: > Change the pin defintions from AM33XX_IOPAD to AM33XX_PADCONF macro so > that it correctly handles changes to #pinctrl-cells. Thanks for fixing this. I wonder if we should now also change the define for the old AM33XX_IOPAD macro? Or just remove it completely

Re: [PATCH 1/4] ARM/omap1: switch to use dma_direct_set_offset for lbus DMA offsets

2020-09-21 Thread Christoph Hellwig
On Mon, Sep 21, 2020 at 09:44:18AM +0300, Tony Lindgren wrote: > * Janusz Krzysztofik [200919 22:29]: > > Hi Tony, > > > > On Friday, September 18, 2020 7:49:33 A.M. CEST Tony Lindgren wrote: > > > * Christoph Hellwig [200917 17:37]: > > > > Switch the omap1510 platform ohci device to use

Re: [PATCH 2/5] fs,nfs: lift compat nfs4 mount data handling into the nfs code

2020-09-21 Thread Christoph Hellwig
On Thu, Sep 17, 2020 at 07:18:26PM +0200, Christoph Hellwig wrote: > On Thu, Sep 17, 2020 at 06:16:04PM +0100, Al Viro wrote: > > On Thu, Sep 17, 2020 at 10:22:33AM +0200, Christoph Hellwig wrote: > > > There is no reason the generic fs code should bother with NFS specific > > > binary mount data

[PATCH] mailbox: pcc: remove the .owner when using the platform_create_bundle

2020-09-21 Thread Tian Tao
the platform_create_bundle is a macro that implements __platform_create_bundle has set he parameters module to THIS_MODULE. Signed-off-by: Tian Tao --- drivers/mailbox/pcc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c index ef9ecd1..4b1a2d2

Re: [PATCH v2 2/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary

2020-09-21 Thread Ard Biesheuvel
On Mon, 21 Sep 2020 at 05:35, Leizhen (ThunderTown) wrote: > > > > On 2020/9/17 22:00, Ard Biesheuvel wrote: > > On Tue, 15 Sep 2020 at 22:06, Russell King - ARM Linux admin > > wrote: > >> > >> On Tue, Sep 15, 2020 at 09:16:15PM +0800, Zhen Lei wrote: > >>> Currently, only support the kernels

Re: [PATCH] pm: runtime: fix timer_expires on 32bits arch

2020-09-21 Thread Vincent Guittot
On Fri, 18 Sep 2020 at 18:55, Grygorii Strashko wrote: > > The commit 8234f6734c5d ("PM-runtime: Switch autosuspend over to using > hrtimers") switched PM runtime autosuspend to use hrtimers and all related > time accounting in ns, but missed update the struct > dev_pm_info->timer_expires to u64.

Re: [PATCH v2 3/5] spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer

2020-09-21 Thread Ikjoon Jang
On Fri, Sep 18, 2020 at 9:25 PM Chuanhong Guo wrote: > > Hi! > > On Fri, Sep 18, 2020 at 4:35 PM Ikjoon Jang wrote: > > > > Use dma_alloc_coherent() for bounce buffer instead of kmalloc. > > The commit message should explain why such a change is > needed. (i.e. why using dma_alloc_coherent here

Re: [PATCH v2 4/5] spi: spi-mtk-nor: support 36bit dma addressing to mediatek

2020-09-21 Thread Ikjoon Jang
On Sat, Sep 19, 2020 at 11:26 PM Yingjoe Chen wrote: > > On Fri, 2020-09-18 at 16:31 +0800, Ikjoon Jang wrote: > > This patch enables 36bit dma address support to spi-mtk-nor. > > Currently 36bit dma addressing is enabled only for mt8192-nor. [snip] > > Do we need to set sp->high_dma when we have

Re: [PATCH v9 3/3] mm/madvise: introduce process_madvise() syscall: an external memory hinting API

2020-09-21 Thread Christoph Hellwig
On Mon, Aug 31, 2020 at 05:06:33PM -0700, Minchan Kim wrote: > There is usecase that System Management Software(SMS) want to give a > memory hint like MADV_[COLD|PAGEEOUT] to other processes and in the > case of Android, it is the ActivityManagerService. > > The information required to make the

Re: [[PATCH]] mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged

2020-09-21 Thread Michal Hocko
On Fri 18-09-20 08:32:13, Vijay Balakrishna wrote: > > > On 9/17/2020 10:45 PM, Michal Hocko wrote: > > On Thu 17-09-20 11:03:56, Vijay Balakrishna wrote: > > [...] > > > > > The auto tuned value is incorrect post hotplug memory operation, in > > > > > our use > > > > > case memoy hot add

RE: [PATCH] net: phy: realtek: fix rtl8211e rx/tx delay config

2020-09-21 Thread 劉偉權
Hi Andrew, I removed below register layout descriptions because these descriptions did not match register definitions for rtl8211e extension page 164 reg 0x1c at all. 8:6 = PHY Address 5:4 = Auto-Negotiation 3 = Mode 2 = RXD 1 = TXD 0 = SELRGV1 I think it is a misunderstanding. These definitions

[PATCH v2] powercap: include header to fix -Wmissing-prototypes

2020-09-21 Thread Herrington
Include the linux/idle_inject.h header to fix W=1 build warning: drivers/powercap/idle_inject.c:152:6: warning: no previous prototype for ‘idle_inject_set_duration’ [-Wmissing-prototypes] drivers/powercap/idle_inject.c:167:6: warning: no previous prototype for ‘idle_inject_get_duration’

[PATCH] dma: debug: convert comma to semicolon

2020-09-21 Thread Xu Wang
Replace a comma between expression statements by a semicolon. Signed-off-by: Xu Wang --- kernel/dma/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c index 8e9f7b301c6d..126ada40ef09 100644 --- a/kernel/dma/debug.c +++

Re: [PATCH v9 3/3] mm/madvise: introduce process_madvise() syscall: an external memory hinting API

2020-09-21 Thread Michal Hocko
On Mon 21-09-20 07:56:33, Christoph Hellwig wrote: > On Mon, Aug 31, 2020 at 05:06:33PM -0700, Minchan Kim wrote: > > There is usecase that System Management Software(SMS) want to give a > > memory hint like MADV_[COLD|PAGEEOUT] to other processes and in the > > case of Android, it is the

Re: [PATCH 05/14] RDMA/efa: drop double zeroing

2020-09-21 Thread Gal Pressman
On 20/09/2020 14:26, Julia Lawall wrote: > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,n,flags; > @@ > > x = > - kcalloc >

Re: [RFC PATCH 0/3] Add writing support to vmcore for reusing oldmem

2020-09-21 Thread Kairui Song
On Thu, Sep 10, 2020 at 12:43 AM Kairui Song wrote: > > On Wed, Sep 9, 2020 at 10:04 PM Eric W. Biederman > wrote: > > > > Kairui Song writes: > > > > > Currently vmcore only supports reading, this patch series is an RFC > > > to add writing support to vmcore. It's x86_64 only yet, I'll add

[PATCH 08/14] dasd: cleanup dasd_scan_partitions

2020-09-21 Thread Christoph Hellwig
Use blkdev_get_by_dev instead of bdget_disk + blkdev_get. Signed-off-by: Christoph Hellwig --- drivers/s390/block/dasd_genhd.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/s390/block/dasd_genhd.c b/drivers/s390/block/dasd_genhd.c index

[PATCH 11/14] PM: rewrite is_hibernate_resume_dev to not require an inode

2020-09-21 Thread Christoph Hellwig
Just check the dev_t to help simplifying the code. Signed-off-by: Christoph Hellwig Acked-by: Rafael J. Wysocki --- fs/block_dev.c | 2 +- include/linux/suspend.h | 4 ++-- kernel/power/user.c | 12 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH 02/14] block: cleanup partition scanning in register_disk

2020-09-21 Thread Christoph Hellwig
Use blkdev_get_by_dev instead of open coding it using bdget_disk + blkdev_get, and split the code to read the partition table into a separate helper to make it a little more obvious. Signed-off-by: Christoph Hellwig --- block/genhd.c | 33 ++--- 1 file changed, 14

Re: [PATCH net-next] net: use in_softirq() to indicate the NAPI context in napi_consume_skb()

2020-09-21 Thread Eric Dumazet
On Mon, Sep 21, 2020 at 4:08 AM Yunsheng Lin wrote: > > When napi_consume_skb() is called in the tx desc cleaning process, > it is usually in the softirq context(BH disabled, or are processing > softirqs), but it may also be in the task context, such as in the > netpoll or loopback selftest

[PATCH 01/14] block: move the NEED_PART_SCAN flag to struct gendisk

2020-09-21 Thread Christoph Hellwig
We can only scan for partitions on the whole disk, so move the flag from struct block_device to struct gendisk. Signed-off-by: Christoph Hellwig --- block/genhd.c | 4 ++-- drivers/block/nbd.c | 8 drivers/ide/ide-gd.c | 2 +- fs/block_dev.c| 7

[PATCH 09/14] ocfs2: cleanup o2hb_region_dev_store

2020-09-21 Thread Christoph Hellwig
Use blkdev_get_by_dev instead of igrab (aka open coded bdgrab) + blkdev_get. Signed-off-by: Christoph Hellwig Reviewed-by: Joseph Qi --- fs/ocfs2/cluster/heartbeat.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/fs/ocfs2/cluster/heartbeat.c

[PATCH 03/14] block: cleanup blkdev_bszset

2020-09-21 Thread Christoph Hellwig
Use blkdev_get_by_dev instead of bdgrab + blkdev_get. Signed-off-by: Christoph Hellwig --- block/ioctl.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/block/ioctl.c b/block/ioctl.c index ae74d0409afab9..06262c28f0c6c1 100644 --- a/block/ioctl.c +++

Re: [PATCH drm/hisilicon 1/3] drm/hisilicon: Support i2c driver algorithms for bit-shift adapters

2020-09-21 Thread Thomas Zimmermann
Hi Am 21.09.20 um 05:25 schrieb Tian Tao: > Adding driver implementation to support i2c driver algorithms for > bit-shift adapters, so hibmc will using the interface provided by > drm to read edid. > > Signed-off-by: Tian Tao > --- > drivers/gpu/drm/hisilicon/hibmc/Makefile| 2 +- >

[PATCH 10/14] mm: cleanup claim_swapfile

2020-09-21 Thread Christoph Hellwig
Use blkdev_get_by_dev instead of bdgrab + blkdev_get. Signed-off-by: Christoph Hellwig --- mm/swapfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/swapfile.c b/mm/swapfile.c index 12f59e641b5e29..7438c4affc75fa 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@

[PATCH 13/14] PM: mm: cleanup swsusp_swap_check

2020-09-21 Thread Christoph Hellwig
Use blkdev_get_by_dev instead of bdget + blkdev_get. Signed-off-by: Christoph Hellwig Acked-by: Rafael J. Wysocki --- kernel/power/swap.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/kernel/power/swap.c b/kernel/power/swap.c index

[PATCH 12/14] mm: split swap_type_of

2020-09-21 Thread Christoph Hellwig
swap_type_of is used for two entirely different purposes: (1) check what swap type a given device/offset corresponds to (2) find the first available swap device that can be written to Mixing both in a single function creates an unreadable mess. Create two separate functions instead, and

remove blkdev_get as a public API v2

2020-09-21 Thread Christoph Hellwig
Hi Jens, this series removes blkdev_get as a public API, leaving it as just an implementation detail of blkdev_get_by_path and blkdev_get_by_dev. The reason for that is that blkdev_get is a very confusing API that requires a struct block_device to be fed in, but then actually consumes the

[PATCH 04/14] pktcdvd: remove the if 0'ed pkt_start_recovery function

2020-09-21 Thread Christoph Hellwig
Remove code which has been dead since the initial commit. Signed-off-by: Christoph Hellwig --- drivers/block/pktcdvd.c | 67 ++--- 1 file changed, 2 insertions(+), 65 deletions(-) diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index

[PATCH 07/14] raw: don't keep unopened block device around

2020-09-21 Thread Christoph Hellwig
Turn binding into a normal dev_t as the struct block device doesn't buy us anything and use blkdev_open_by_dev to actually open it. Signed-off-by: Christoph Hellwig --- drivers/char/raw.c | 51 +- 1 file changed, 19 insertions(+), 32 deletions(-)

[PATCH 05/14] pktcdvd: use blkdev_get_by_dev instead of open coding it

2020-09-21 Thread Christoph Hellwig
Replace bdget + blkdev_get by blkdev_get_by_dev. Signed-off-by: Christoph Hellwig --- drivers/block/pktcdvd.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index bc870a5f15f77b..467dbd06b7cdb1

[PATCH 14/14] block: mark blkdev_get static

2020-09-21 Thread Christoph Hellwig
There are no users outside the core block code left now. Signed-off-by: Christoph Hellwig --- fs/block_dev.c | 3 +-- include/linux/blkdev.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 2898d69be6b3e4..6b9d19ffa5af7b 100644

[PATCH 06/14] zram: cleanup backing_dev_store

2020-09-21 Thread Christoph Hellwig
Use blkdev_get_by_dev instead of bdgrab + blkdev_get. Signed-off-by: Christoph Hellwig --- drivers/block/zram/zram_drv.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index a356275605b104..91ccfe444525b4

[RESEND PATCH] dt-bindings: ata: renesas,rcar-sata: Add r8a774e1 support

2020-09-21 Thread Lad Prabhakar
Document SATA support for the RZ/G2H, no driver change required. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Acked-by: Rob Herring Reviewed-by: Geert Uytterhoeven --- Hi All, This patch is part of series [1] (orignal patch [2]) where rest of the patches have been picked

Re: [PATCH v3] memory: dfl-emif: add the DFL EMIF private feature driver

2020-09-21 Thread Krzysztof Kozlowski
On Mon, Sep 21, 2020 at 01:31:20PM +0800, Xu Yilun wrote: > This driver is for the EMIF private feature implemented under FPGA > Device Feature List (DFL) framework. It is used to expose memory > interface status information as well as memory clearing control. > > The purpose of memory clearing

[PATCH 0/4 v2] sched/fair: Improve fairness between cfs tasks

2020-09-21 Thread Vincent Guittot
When the system doesn't have enough cycles for all tasks, the scheduler must ensure a fair split of those CPUs cycles between CFS tasks. The fairness of some use cases can't be solved with a static distribution of the tasks on the system and requires a periodic rebalancing of the system but this

[PATCH 4/4 v2] sched/fair: reduce busy load balance interval

2020-09-21 Thread Vincent Guittot
The busy_factor, which increases load balance interval when a cpu is busy, is set to 32 by default. This value generates some huge LB interval on large system like the THX2 made of 2 node x 28 cores x 4 threads. For such system, the interval increases from 112ms to 3584ms at MC level. And from

[PATCH 3/4 v2] sched/fair: minimize concurrent LBs between domain level

2020-09-21 Thread Vincent Guittot
sched domains tend to trigger simultaneously the load balance loop but the larger domains often need more time to collect statistics. This slowness makes the larger domain trying to detach tasks from a rq whereas tasks already migrated somewhere else at a sub-domain level. This is not a real

[PATCH 2/4 v2] sched/fair: reduce minimal imbalance threshold

2020-09-21 Thread Vincent Guittot
The 25% default imbalance threshold for DIE and NUMA domain is large enough to generate significant unfairness between threads. A typical example is the case of 11 threads running on 2x4 CPUs. The imbalance of 20% between the 2 groups of 4 cores is just low enough to not trigger the load balance

[PATCH 1/4 v2] sched/fair: relax constraint on task's load during load balance

2020-09-21 Thread Vincent Guittot
Some UCs like 9 always running tasks on 8 CPUs can't be balanced and the load balancer currently migrates the waiting task between the CPUs in an almost random manner. The success of a rq pulling a task depends of the value of nr_balance_failed of its domains and its ability to be faster than

Re: [PATCH drm/hisilicon 2/3] drm/hisilicon: Features to support reading resolutions from EDID

2020-09-21 Thread Thomas Zimmermann
Hi Am 21.09.20 um 05:25 schrieb Tian Tao: > Use drm_get_edid to get the resolution, if that fails, set it to > a fixed resolution. > > Signed-off-by: Tian Tao > --- > drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 35 > > 1 file changed, 29 insertions(+), 6

[PATCH 2/3] soundwire: intel: enable test modes

2020-09-21 Thread Bard Liao
From: Pierre-Louis Bossart This patch adds debugfs support to override the Master and Slave data modes. The settings only take effect prior to a new stream being prepared/enabled, or on resume. The test mode can be set to verify data integrity and detect bus clashes, but can only be used to

Re: [PATCH drm/hisilicon 3/3] drm/hisilicon: Releasing Resources in the Destroy callback Function

2020-09-21 Thread Thomas Zimmermann
Hi The code looks correcet, but I think this patch should be merged into patch 2. Anyone who initializes the i2c adapter certainly wants it cleaned up as well :) Best regards Thomas Am 21.09.20 um 05:25 schrieb Tian Tao: > Rewrite the desrtoy callback function to release resources. > >

[PATCH 0/3] soundwire: enable Data Port test modes

2020-09-21 Thread Bard Liao
Test modes are required for all SoundWire IP, and help debug integration issues. This series adds debugfs support and data port test fail interrupt to enable data port test mode feature on Intel platforms. Pierre-Louis Bossart (3): soundwire: enable Data Port test modes soundwire: intel:

[PATCH v2] sched/numa: use runnable_avg to classify node

2020-09-21 Thread Vincent Guittot
Use runnable_avg to classify numa node state similarly to what is done for normal load balancer. This helps to ensure that numa and normal balancers use the same view of the state of the system. - large arm64system: 2 nodes / 224 CPUs hackbench -l (256000/#grp) -g #grp grptip/sched/core

[PATCH net-next] hinic: improve the comments of function header

2020-09-21 Thread Luo bin
Fix the warnings about function header comments when building hinic driver with "W=1" option. Signed-off-by: Luo bin --- drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c | 2 +- drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c | 6 +- drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c | 3

Re: [PATCH 11/20] dt-bindings: usb: renesas,usbhs: Add r8a774e1 support

2020-09-21 Thread Geert Uytterhoeven
Hi Greg, On Sun, Sep 20, 2020 at 4:08 PM Greg Kroah-Hartman wrote: > On Sat, Sep 19, 2020 at 11:54:05AM +0100, Lad, Prabhakar wrote: > > On Thu, Jul 16, 2020 at 6:19 PM Lad Prabhakar > > wrote: > > > > > > Document RZ/G2H (R8A774E1) SoC bindings. > > > > > > Signed-off-by: Lad Prabhakar > > >

Re: [PATCH 07/20] dt-bindings: usb: renesas,usb3-peri: Document r8a774e1 support

2020-09-21 Thread Geert Uytterhoeven
Hi Greg, On Sun, Sep 20, 2020 at 4:08 PM Greg Kroah-Hartman wrote: > On Sat, Sep 19, 2020 at 11:50:07AM +0100, Lad, Prabhakar wrote: > > On Thu, Jul 16, 2020 at 6:19 PM Lad Prabhakar > > wrote: > > > > > > Document RZ/G2H (R8A774E1) SoC bindings. > > > > > > Signed-off-by: Lad Prabhakar > > >

Re: PROBLEM: 5.9.0-rc6 fails to compile due to 'redefinition of ‘dax_supported’'

2020-09-21 Thread Greg KH
On Mon, Sep 21, 2020 at 11:34:17AM +0530, Naresh Kamboju wrote: > On Mon, 21 Sep 2020 at 06:34, Stuart Little wrote: > > > > I am trying to compile for an x86_64 machine (Intel(R) Core(TM) i7-7500U > > CPU @ 2.70GHz). The config file I am currently using is at > > > > https://termbin.com/xin7 >

[PATCH v2 00/12] crypto: caam - xts(aes) updates

2020-09-21 Thread Andrei Botila
From: Andrei Botila This patch series fixes some problems in CAAM's implementation of xts(aes): - CAAM until Era 9 can't process XTS with 16B IV - CAAM can only process in hardware XTS key lengths of 16B and 32B - These hardware limitations are resolved through a fallback - CAAM used to

[PATCH v2 01/12] crypto: caam/jr - add fallback for XTS with more than 8B IV

2020-09-21 Thread Andrei Botila
From: Andrei Botila A hardware limitation exists for CAAM until Era 9 which restricts the accelerator to IVs with only 8 bytes. When CAAM has a lower era a fallback is necessary to process 16 bytes IV. Fixes: c6415a6016bf ("crypto: caam - add support for acipher xts(aes)") Cc: # v4.4+

[PATCH v2 02/12] crypto: caam/qi - add fallback for XTS with more than 8B IV

2020-09-21 Thread Andrei Botila
From: Andrei Botila A hardware limitation exists for CAAM until Era 9 which restricts the accelerator to IVs with only 8 bytes. When CAAM has a lower era a fallback is necessary to process 16 bytes IV. Fixes: b189817cf789 ("crypto: caam/qi - add ablkcipher and authenc algorithms") Cc: # v4.12+

Re: [PATCH net-next] ipvs: Remove unused macros

2020-09-21 Thread Simon Horman
On Fri, Sep 18, 2020 at 09:16:56PM +0800, YueHaibing wrote: > They are not used since commit e4ff67513096 ("ipvs: add > sync_maxlen parameter for the sync daemon") > > Signed-off-by: YueHaibing Thanks, this look good to me. Acked-by: Simon Horman Pablo, please consider this for nf-next. >

[PATCH v2 03/12] crypto: caam/qi2 - add fallback for XTS with more than 8B IV

2020-09-21 Thread Andrei Botila
From: Andrei Botila A hardware limitation exists for CAAM until Era 9 which restricts the accelerator to IVs with only 8 bytes. When CAAM has a lower era a fallback is necessary to process 16 bytes IV. Fixes: 226853ac3ebe ("crypto: caam/qi2 - add skcipher algorithms") Cc: # v4.20+

[PATCH v2 11/12] crypto: caam/qi - add support for XTS with 16B IV

2020-09-21 Thread Andrei Botila
From: Andrei Botila Newer CAAM versions (Era 9+) support 16B IVs. Since for these devices the HW limitation is no longer present newer version should process the requests containing 16B IVs directly in hardware without using a fallback. Signed-off-by: Andrei Botila ---

[PATCH v2 10/12] crypto: caam/jr - add support for XTS with 16B IV

2020-09-21 Thread Andrei Botila
From: Andrei Botila Newer CAAM versions (Era 9+) support 16B IVs. Since for these devices the HW limitation is no longer present newer version should process the requests containing 16B IVs directly in hardware without using a fallback. Signed-off-by: Andrei Botila ---

[PATCH v2 06/12] crypto: caam/qi2 - add support for more XTS key lengths

2020-09-21 Thread Andrei Botila
From: Andrei Botila CAAM accelerator only supports XTS-AES-128 and XTS-AES-256 since it adheres strictly to the standard. All the other key lengths are accepted and processed through a fallback as long as they pass the xts_verify_key() checks. Fixes: 226853ac3ebe ("crypto: caam/qi2 - add

[PATCH v2 07/12] crypto: caam/jr - add xts check for block length equal to zero

2020-09-21 Thread Andrei Botila
From: Andrei Botila XTS should not return succes when dealing with block length equal to zero. This is different than the rest of the skcipher algorithms. Fixes: 31bb2f0da1b50 ("crypto: caam - check zero-length input") Cc: # v5.4+ Signed-off-by: Andrei Botila ---

[PATCH v2 05/12] crypto: caam/qi - add support for more XTS key lengths

2020-09-21 Thread Andrei Botila
From: Andrei Botila CAAM accelerator only supports XTS-AES-128 and XTS-AES-256 since it adheres strictly to the standard. All the other key lengths are accepted and processed through a fallback as long as they pass the xts_verify_key() checks. Fixes: b189817cf789 ("crypto: caam/qi - add

[PATCH v2 08/12] crypto: caam/qi - add xts check for block length equal to zero

2020-09-21 Thread Andrei Botila
From: Andrei Botila XTS should not return succes when dealing with block length equal to zero. This is different than the rest of the skcipher algorithms. Fixes: 31bb2f0da1b50 ("crypto: caam - check zero-length input") Cc: # v5.4+ Signed-off-by: Andrei Botila ---

[PATCH v2 09/12] crypto: caam/qi2 - add xts check for block length equal to zero

2020-09-21 Thread Andrei Botila
From: Andrei Botila XTS should not return succes when dealing with block length equal to zero. This is different than the rest of the skcipher algorithms. Fixes: 31bb2f0da1b50 ("crypto: caam - check zero-length input") Cc: # v5.4+ Signed-off-by: Andrei Botila ---

[PATCH v2 12/12] crypto: caam/qi2 - add support for XTS with 16B IV

2020-09-21 Thread Andrei Botila
From: Andrei Botila Newer CAAM versions (Era 9+) support 16B IVs. Since for these devices the HW limitation is no longer present newer version should process the requests containing 16B IVs directly in hardware without using a fallback. Signed-off-by: Andrei Botila ---

[PATCH v2 04/12] crypto: caam/jr - add support for more XTS key lengths

2020-09-21 Thread Andrei Botila
From: Andrei Botila CAAM accelerator only supports XTS-AES-128 and XTS-AES-256 since it adheres strictly to the standard. All the other key lengths are accepted and processed through a fallback as long as they pass the xts_verify_key() checks. Fixes: c6415a6016bf ("crypto: caam - add support

Re: [PATCH v2] checkpatch: extend author Signed-off-by check for split From: header

2020-09-21 Thread Lukas Bulwahn
On Sun, 20 Sep 2020, Joe Perches wrote: > On Sun, 2020-09-20 at 21:52 +0530, Dwaipayan Ray wrote: > > On Sun, Sep 20, 2020 at 8:39 PM Joe Perches wrote: > > > On Sun, 2020-09-20 at 14:47 +0530, Dwaipayan Ray wrote: > > > > Checkpatch did not handle cases where the author From: header > > > >

Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends

2020-09-21 Thread Thomas Gleixner
On Sun, Sep 20 2020 at 10:42, Linus Torvalds wrote: > On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: >> >> I think the more obvious solution is to split the whole exercise: >> >> schedule() >> prepare_switch() >> unmap() >> >> switch_to() >> >> finish_switch() >>

Questions about drivers/mfd/mfd-core.c

2020-09-21 Thread 冯锐
Hi Jones, I have a question about drivers/mfd/mfd-core.c and need your help. The driver in drivers/misc/cardreader/rtsx_pcr.c call 'mfd_add_devices' and 'mfd_remove_devices' in probe and remove functions Before Linus 5.9-rc1, the two functions can run properly, but in Linus 5.9-rc1 when I

Re: [PATCH v2 1/4] selftests/seccomp: Record syscall during ptrace entry

2020-09-21 Thread Christian Brauner
On Sat, Sep 19, 2020 at 01:06:34AM -0700, Kees Cook wrote: > In preparation for performing actions during ptrace syscall exit, save > the syscall number during ptrace syscall entry. Some architectures do > no have the syscall number available during ptrace syscall exit. > > Suggested-by: Thadeu

  1   2   3   4   5   6   7   8   9   10   >