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

2020-09-20 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

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

2020-09-20 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 v2 3/5] spi: spi-mtk-nor: use dma_alloc_coherent() for bounce buffer

2020-09-20 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 i

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

2020-09-20 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 2/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary

2020-09-20 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 wh

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

2020-09-20 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-20 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 10

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

2020-09-20 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 dma_di

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

2020-09-20 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 and

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

2020-09-20 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 i

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

2020-09-20 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’ [-W

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

2020-09-20 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 se

[PATCH] ipv6: route: convert comma to semicolon

2020-09-20 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

[PATCH] userns: Remove redundant assignment to variable ret

2020-09-20 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 b/kernel/user_namespace.

Re: a saner API for allocating DMA addressable pages v3

2020-09-20 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

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

2020-09-20 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: [PATCH] nvme: replace meaningless judgement by checking whether req is null

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

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

2020-09-20 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) > +{ > + kumap_atomic_indexed(addr

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

2020-09-20 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 ins

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

2020-09-20 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 insertions(

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

2020-09-20 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 rea

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

2020-09-20 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

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

2020-09-20 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 v4 04/11] usb: xhci-rcar: convert to readl_poll_timeout_atomic()

2020-09-20 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 --- drivers/usb

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

2020-09-20 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 insertions(+)

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

2020-09-20 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 b/drivers/usb/isp1760/isp1760-hcd.

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

2020-09-20 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 i

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

2020-09-20 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(-) di

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

2020-09-20 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 19

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

2020-09-20 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 --git

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

2020-09-20 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 03/11] usb: pci-quirks: convert to readl_poll_timeout_atomic()

2020-09-20 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-20 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 b/driv

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

2020-09-20 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 ind

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

2020-09-20 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 standard

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

2020-09-20 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 req/resp

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

2020-09-20 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: 07568d0369

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

2020-09-20 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-20 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 Documen

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

2020-09-20 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 al

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

2020-09-20 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 b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.d

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

2020-09-20 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 Si

Re: general protection fault in perf_misc_flags

2020-09-20 Thread Dmitry Vyukov
On Sat, Sep 19, 2020 at 1:08 PM Borislav Petkov wrote: > > On Sat, Sep 19, 2020 at 01:32:14AM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:92ab97ad Merge tag 'sh-for-5.9-part2' of git://git.libc.or.. > > git tree: upstream > > console o

Re: [PATCH v2] dm: Call proper helper to determine dax support

2020-09-20 Thread Naresh Kamboju
On Fri, 18 Sep 2020 at 11:18, Dan Williams wrote: > > From: Jan Kara > > DM was calling generic_fsdax_supported() to determine whether a device > referenced in the DM table supports DAX. However this is a helper for "leaf" > device drivers so that > they don't have to duplicate common generic ch

Re: [PATCH 3/3] exfat: replace memcpy with structure assignment

2020-09-20 Thread Namjae Jeon
2020-09-15 19:23 GMT-07:00, Sungjong Seo : >> Use structure assignment instead of memcpy. >> >> Signed-off-by: Tetsuhiro Kohada > > Acked-by: Sungjong Seo Applied. Thanks for your patch!

Re: [PATCH 4/4] perf test: Add expand cgroup event test

2020-09-20 Thread Namhyung Kim
On Fri, Sep 18, 2020 at 10:52 PM Jiri Olsa wrote: > > On Wed, Sep 16, 2020 at 03:31:29PM +0900, Namhyung Kim wrote: > > SNIP > > > +++ b/tools/perf/tests/tests.h > > @@ -123,6 +123,7 @@ const char *test__pfm_subtest_get_desc(int subtest); > > int test__pfm_subtest_get_nr(void); > > int test__par

Re: [PATCH 1/3] exfat: remove useless directory scan in exfat_add_entry()

2020-09-20 Thread Namjae Jeon
2020-09-15 19:22 GMT-07:00, Sungjong Seo : >> There is nothing in directory just created, so there is no need to scan. >> >> Signed-off-by: Tetsuhiro Kohada > > Acked-by: Sungjong Seo Applied. Thanks for your patch!

Re: [PATCH] s390/vfio-ap: fix unregister GISC when KVM is already gone results in OOPS

2020-09-20 Thread Christian Borntraeger
On 18.09.20 19:02, Tony Krowiak wrote: > Attempting to unregister Guest Interruption Subclass (GISC) when the > link between the matrix mdev and KVM has been removed results in the > following: > >"Kernel panic -not syncing: Fatal exception: panic_on_oops" I think the full backtrace would

Re: [PATCH 3/4] perf tools: Copy metric events properly when expand cgroups

2020-09-20 Thread Namhyung Kim
On Fri, Sep 18, 2020 at 10:45 PM Jiri Olsa wrote: > > On Wed, Sep 16, 2020 at 03:31:28PM +0900, Namhyung Kim wrote: > > SNIP > > > + free(new_expr); > > + return -ENOMEM; > > + } > > + > > +

Re: [PATCH 2/4] perf stat: Add --for-each-cgroup option

2020-09-20 Thread Namhyung Kim
On Fri, Sep 18, 2020 at 10:34 PM Jiri Olsa wrote: > > On Wed, Sep 16, 2020 at 03:31:27PM +0900, Namhyung Kim wrote: > > SNIP > > > +int evlist__expand_cgroup(struct evlist *evlist, const char *str) > > +{ > > + struct evlist *orig_list, *tmp_list; > > + struct evsel *pos, *evsel, *leader;

Re: [PATCH 1/4] perf evsel: Add evsel__clone() function

2020-09-20 Thread Namhyung Kim
Hi Jiri, On Fri, Sep 18, 2020 at 10:31 PM Jiri Olsa wrote: > > On Wed, Sep 16, 2020 at 03:31:26PM +0900, Namhyung Kim wrote: > > SNIP > > > +struct evsel *evsel__clone(struct evsel *orig) > > +{ > > + struct evsel *evsel; > > + struct evsel_config_term *pos, *tmp; > > + > > + BUG_ON(o

Re: KASAN: use-after-free Read in btrfs_scan_one_device

2020-09-20 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:325d0eab Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1512df5390 kernel config: https://syzkaller.appspot.com/x/.config?x=6a8a2ae52ed737db

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

2020-09-20 Thread Xu Yilun
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 block is to zero out all private memory when FPGA is to be reprogramme

[PATCH v3] add the FPGA Device Feature List (DFL) EMIF support

2020-09-20 Thread Xu Yilun
The driver supports the EMIF controller on Intel Programmable Acceleration Card (PAC). The controller manages the on-board memory of the PCIe card. Hi Moritz: I have sent 2 versions of the patch to Krzysztof who maintains the drivers/memory folder. And because this patch depends on the previous

Re: [PATCH v2 0/6] tools/bootconfig: Add boot-time tracing script

2020-09-20 Thread Masami Hiramatsu
Hi Steve, Can you also merge this series to tracing tree? Thank you, On Sat, 15 Aug 2020 23:01:00 +0900 Masami Hiramatsu wrote: > Hi, > > This is the 2nd version of the series to introduce scripts for the > boot-time tracing. In this version, I just updated 4/6 according to > Steve's comment.

[PATCH] drivers:staging:comedi:comedi.h: Fixed typos in comments

2020-09-20 Thread James Browning
Removed repeated words "the" and "in" Signed-off-by: James Browning --- drivers/staging/comedi/comedi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h index 09a940066c0e..b5d00a006dbb 100644 --- a/drivers/

Re: [PATCH v2 3/3] ARM: dts: add Plymovent M2M board

2020-09-20 Thread Oleksij Rempel
On Sun, Sep 13, 2020 at 12:49:45PM +0800, Shawn Guo wrote: > On Fri, Sep 11, 2020 at 08:03:12AM +0200, Marco Felsch wrote: > > On 20-09-11 07:09, Oleksij Rempel wrote: > > > Plymovent M2M is a control interface produced for the Plymovent filter > > > systems. > > > > > > Signed-off-by: David Jande

linux-next: manual merge of the usb tree with the pci tree

2020-09-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the usb tree got a conflict in: drivers/pci/controller/pcie-brcmstb.c between commit: 1cf1b0a6dd95 ("PCI: brcmstb: Add bcm7278 register info") from the pci tree and commit: f48cc509c935 ("Revert "PCI: brcmstb: Wait for Raspberry Pi's firmware when pr

KMSAN: uninit-value in hsr_fill_frame_info

2020-09-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c5a13b33 kmsan: clang-format core git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=13ef204b90 kernel config: https://syzkaller.appspot.com/x/.config?x=20f149ad694ba

Re: RE: RE: [PATCH v14 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-09-20 Thread Wendy Liang
Hi Ben On Sun, Sep 20, 2020 at 4:16 PM Ben Levinsky wrote: > > Hi All, > > > -Original Message- > > From: Wendy Liang > > Sent: Friday, September 18, 2020 6:53 PM > > To: Michael Auchter > > Cc: Ben Levinsky ; punit1.agra...@toshiba.co.jp; > > devicet...@vger.kernel.org; linux-remotep..

Re: RE: RE: [PATCH v14 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-09-20 Thread Wendy Liang
Hi Ben, On Sun, Sep 20, 2020 at 4:16 PM Ben Levinsky wrote: > > Hi All, > > > -Original Message- > > From: Wendy Liang > > Sent: Friday, September 18, 2020 6:53 PM > > To: Michael Auchter > > Cc: Ben Levinsky ; punit1.agra...@toshiba.co.jp; > > devicet...@vger.kernel.org; linux-remotep.

Re: [PATCH 2/2] drivers:staging:comedi:comedi.h Fixed typo in comment

2020-09-20 Thread Greg Kroah-Hartman
On Sun, Sep 20, 2020 at 09:14:49PM -0700, James Browning wrote: > Removed repeated word "in" > > Signed-off-by: James Browning > --- > drivers/staging/comedi/comedi.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) You sent two different patches that did different things, yet had the sa

Re: [PATCH] mmap_lock: add tracepoints around lock acquisition

2020-09-20 Thread Yafang Shao
On Fri, Sep 18, 2020 at 2:13 AM Axel Rasmussen wrote: > > The goal of these tracepoints is to be able to debug lock contention > issues. This lock is acquired on most (all?) mmap / munmap / page fault > operations, so a multi-threaded process which does a lot of these can > experience significant

Re: [PATCH v5 14/17] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-09-20 Thread Randy Dunlap
On 9/20/20 9:52 PM, Kishon Vijay Abraham I wrote: > Hi Randy, > > On 18/09/20 9:45 pm, Randy Dunlap wrote: >> On 9/17/20 11:42 PM, Kishon Vijay Abraham I wrote: >>> diff --git a/drivers/ntb/hw/epf/Kconfig b/drivers/ntb/hw/epf/Kconfig >>> new file mode 100644 >>> index ..6197d1aab344 >>

Re: WARNING in tracepoint_add_func

2020-09-20 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:325d0eab Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16992c8190 kernel config: https://syzkaller.appspot.com/x/.config?x=b12e84189082991c

Re: [PATCH v5 14/17] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-09-20 Thread Kishon Vijay Abraham I
Hi Randy, On 18/09/20 9:45 pm, Randy Dunlap wrote: > On 9/17/20 11:42 PM, Kishon Vijay Abraham I wrote: >> diff --git a/drivers/ntb/hw/epf/Kconfig b/drivers/ntb/hw/epf/Kconfig >> new file mode 100644 >> index ..6197d1aab344 >> --- /dev/null >> +++ b/drivers/ntb/hw/epf/Kconfig >> @@ -0,

[PATCH v2 2/2] vfio/pci: Don't regenerate vconfig for all BARs if !bardirty

2020-09-20 Thread Zenghui Yu
Now we regenerate vconfig for all the BARs via vfio_bar_fixup(), every time any offset of any of them are read. Though BARs aren't re-read regularly, the regeneration can be avoid if no BARs had been written since they were last read, in which case the vdev->bardirty is false. Let's predicate the

[PATCH v2 1/2] vfio/pci: Remove redundant declaration of vfio_pci_driver

2020-09-20 Thread Zenghui Yu
It was added by commit 137e5531351d ("vfio/pci: Add sriov_configure support") but duplicates a forward declaration earlier in the file. Remove it. Signed-off-by: Zenghui Yu Reviewed-by: Cornelia Huck --- * From v1: - Clarify the commit message per Alex's suggestion. - Add Cornelia's R-b tag

kernel v5.9-rc6 not compiling

2020-09-20 Thread bob
Hi.  I've been building kernels weekly since 1996.  Never had one not build before today.  v5.9-rc6 does not compile. Error:   AR  drivers/gpu/built-in.a make: *** [Makefile:1784: drivers] Error 2   CALL    scripts/checksyscalls.sh   CALL    scripts/atomic/check-atomics.sh   DESCEND  objtoo

Re: let import_iovec deal with compat_iovecs as well

2020-09-20 Thread 'Christoph Hellwig'
On Sat, Sep 19, 2020 at 02:24:10PM +, David Laight wrote: > I thought about that change while writing my import_iovec() => iovec_import() > patch - and thought that the io_uring code would (as usual) cause grief. > > Christoph - did you see those patches? No.

Re: [PATCH v5 12/17] PCI: endpoint: Add EP function driver to provide NTB functionality

2020-09-20 Thread Kishon Vijay Abraham I
Hi Randy, On 18/09/20 9:47 pm, Randy Dunlap wrote: > On 9/17/20 11:42 PM, Kishon Vijay Abraham I wrote: >> diff --git a/drivers/pci/endpoint/functions/Kconfig >> b/drivers/pci/endpoint/functions/Kconfig >> index 8820d0f7ec77..55ac7bb2d469 100644 >> --- a/drivers/pci/endpoint/functions/Kconfig >>

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Christoph Hellwig
On Sun, Sep 20, 2020 at 12:14:49PM -0700, Andy Lutomirski wrote: > I wonder if this is really quite cast in stone. We could also have > FMODE_SHITTY_COMPAT and set that when a file like this is *opened* in > compat mode. Then that particular struct file would be read and > written using the compa

[PATCH v4 4/4] Bluetooth: Add toggle to switch off interleave scan

2020-09-20 Thread Howard Chung
This patch add a configurable parameter to switch off the interleave scan feature. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud --- Changes in v4: - Set EnableAdvMonInterleaveScan default to Disable - Fix 80 chars limit in mgmt_config.c include/net/bluetooth/hci_core.h | 1 + net/blu

[PATCH v4 3/4] Bluetooth: Handle active scan case

2020-09-20 Thread Howard Chung
This patch adds code to handle the active scan during interleave scan. The interleave scan will be canceled when users start active scan, and it will be restarted after active scan stopped. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik --- (no changes since

[PATCH v4 2/4] Bluetooth: Handle system suspend resume case

2020-09-20 Thread Howard Chung
This patch adds code to handle the system suspension during interleave scan. The interleave scan will be canceled when the system is going to sleep, and will be restarted after waking up. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek Pa

[PATCH v4 1/4] Bluetooth: Interleave with allowlist scan

2020-09-20 Thread Howard Chung
This patch implements the interleaving between allowlist scan and no-filter scan. It'll be used to save power when at least one monitor is registered and at least one pending connection or one device to be scanned for. The durations of the allowlist scan and the no-filter scan are controlled by MG

[PATCH 2/2] drivers:staging:comedi:comedi.h Fixed typo in comment

2020-09-20 Thread James Browning
Removed repeated word "in" Signed-off-by: James Browning --- drivers/staging/comedi/comedi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h index 3bc74bea830d..b5d00a006dbb 100644 --- a/drivers/staging/comedi/

[PATCH 1/2] drivers:staging:comedi:comedi.h Fixed typo in comment

2020-09-20 Thread James Browning
Removed repeated "the". Signed-off-by: James Browning --- drivers/staging/comedi/comedi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h index 09a940066c0e..3bc74bea830d 100644 --- a/drivers/staging/comedi/com

[RFC PATCH] arm64: dts: mt8183: Add arm,no-tick-in-suspend

2020-09-20 Thread Nicolas Boichat
The armv8-timer on MT8183 (kukui family) actually ticks in suspend, but its precision is so low (measured 400+ ppm -- 35 seconds/day) that it's actually better to use a fallback option (RTC). Signed-off-by: Nicolas Boichat --- We asked MTK if there is anything that can be done to make the archtim

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

2020-09-20 Thread Stephen Rothwell
Hi all, After merging the iommu tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/gpu/drm/msm/msm_iommu.c: In function 'msm_iommu_pagetable_unmap': drivers/gpu/drm/msm/msm_iommu.c:46:2: error: implicit declaration of function 'iommu_flush_tlb_all'; did you mean 'i

[PATCH] mm/mempolicy: remove or narrow the lock on current

2020-09-20 Thread Wei Yang
It is not necessary to hold the lock of current when setting nodemask of a new policy. Signed-off-by: Wei Yang --- mm/mempolicy.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 906adc58d86f..3fde772ef5ef 100644 --- a/mm/mempolicy.c +

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

2020-09-20 Thread Robert Gadsdon
On 9/20/20 7:25 PM, Stuart Little wrote: An update on this: I've done a bisect, with the following result. --- cut here --- e2ec5128254518cae320d5dc631b71b94160f663 is the first bad commit commit e2ec5128254518cae320d5dc631b71b94160f663 Author: Jan Kara Date: Sun Sep 20 08:54:42 2020 -0700

[PATCH] clk: clk-prima2: fix return value check in prima2_clk_init()

2020-09-20 Thread Xu Wang
In case of error, the function clk_register() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Xu Wang --- drivers/clk/sirf/clk-prima2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/c

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

2020-09-20 Thread Leizhen (ThunderTown)
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 where the base of physical memory is >>> at a 16MiB boundary. Because the add

[PATCH v7 4/7] perf util: Link stream pair

2020-09-20 Thread Jin Yao
In previous patch, we have created an evsel_streams for one event, and top N hottest streams will be saved in a stream array in evsel_streams. This patch compares total streams among two evsel_streams. Once two streams are fully matched, they will be linked as a pair. From the pair, we can know w

[PATCH v7 7/7] perf diff: Support hot streams comparison

2020-09-20 Thread Jin Yao
This patch enables perf-diff with "--stream" option. "--stream": Enable hot streams comparison Now let's see example. perf record -b ... Generate perf.data.old with branch data perf record -b ... Generate perf.data with branch data perf diff --stream [ Matched hot streams ] hot chain

[PATCH v7 6/7] perf util: Report hot streams

2020-09-20 Thread Jin Yao
We show the streams separately. They are divided into different sections. 1. "Matched hot streams" 2. "Hot streams in old perf data only" 3. "Hot streams in new perf data only". For each stream, we report the cycles and hot percent (hits%). For example, cycles: 2, hits: 4.08% --

[PATCH v7 0/7] perf: Stream comparison

2020-09-20 Thread Jin Yao
Sometimes, a small change in a hot function reducing the cycles of this function, but the overall workload doesn't get faster. It is interesting where the cycles are moved to. What it would like is to diff before/after streams. The stream is the branch history which is aggregated by the branch rec

[PATCH v7 5/7] perf util: Calculate the sum of total streams hits

2020-09-20 Thread Jin Yao
We have used callchain_node->hit to measure the hot level of one stream. This patch calculates the sum of hits of total streams. Thus in next patch, we can use following formula to report hot percent for one stream. hot percent = callchain_node->hit / sum of total hits Signed-off-by: Jin Yao --

[PATCH v7 2/7] perf util: Get the evsel_streams by evsel_idx

2020-09-20 Thread Jin Yao
In previous patch, we have created evsel_streams array This patch returns the specified evsel_streams according to the evsel_idx. Signed-off-by: Jin Yao --- v7: - Rename functions: evsel_streams__entry v6: - Rebase to perf/core v5: - Rebase to perf/core v4: - Rename th

[PATCH v7 3/7] perf util: Compare two streams

2020-09-20 Thread Jin Yao
Stream is the branch history which is aggregated by the branch records from perf samples. Now we support the callchain as stream. If the callchain entries of one stream are fully matched with the callchain entries of another stream, we think two streams are matched. For example, cycles: 1, hi

[PATCH v7 1/7] perf util: Create streams

2020-09-20 Thread Jin Yao
We define the stream is the branch history which is aggregated by the branch records from perf samples. For example, the callchains aggregated from the branch records are considered as streams. By browsing the hot stream, we can understand the hot code path. Now we only support the callchain for s

[rcu:rcu/next] BUILD SUCCESS ec179933e2502ebd3cbc31eac42a64d00e0e9c07

2020-09-20 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a005-20200920 x86_64 randconfig-a003-20200920 x86_64 randconfig-a004-20200920 x86_64 randconfig-a002-20200920 x86_64

[PATCH] net: unix: remove redundant assignment to variable 'err'

2020-09-20 Thread Jing Xiangfeng
After commit 37ab4fa7844a ("net: unix: allow bind to fail on mutex lock"), the assignment to err is redundant. So remove it. Signed-off-by: Jing Xiangfeng --- net/unix/af_unix.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 92784e51ee7d..eb82bdc

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

2020-09-20 Thread Tian Tao
Rewrite the desrtoy callback function to release resources. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c b/drivers/gpu/drm/hisilicon/hib

[PATCH drm/hisilicon 0/3] support reading resolutions from EDID

2020-09-20 Thread Tian Tao
patch #1 add a new file to implements i2c adapters, #2 read the resolution from the edid, if that fails, set the resolution to fixed. patch #3 update the destroy callback function to release the i2c adapters. Tian Tao (3): drm/hisilicon: Support i2c driver algorithms for bit-shift adapters drm

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

2020-09-20 Thread 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 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_dr

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

2020-09-20 Thread 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 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 21 +-

linux-next: build warning after merge of the drm-msm tree

2020-09-20 Thread Stephen Rothwell
Hi all, After merging the drm-msm tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: In file included from include/linux/bitops.h:5, from include/linux/kernel.h:12, from include/linux/ascii85.h:11, from drivers/gpu/drm

linux-next: manual merge of the drm-msm tree with the drm tree

2020-09-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-msm tree got a conflict in: drivers/gpu/drm/msm/msm_iommu.c between commit: 7690a33f22ab ("drm: msm: fix common struct sg_table related issues") from the drm tree and commit: e3c64c7221f6 ("drm/msm: Set the global virtual address range from th

  1   2   3   4   5   >