[RFC PATCH V3 14/21] mmc: sdhci: UHS-II support, handle vdd2 in case of power-off

2020-07-10 Thread Ben Chuang
From: AKASHI Takahiro Configure a regulator for VDD2 in case of power-off. Signed-off-by: Ben Chuang Signed-off-by: AKASHI Takahiro --- drivers/mmc/host/sdhci.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 7f2537648a08..d38

[RFC PATCH V3 17/21] mmc: sdhci: UHS-II support, implement operations as a module

2020-07-10 Thread Ben Chuang
From: AKASHI Takahiro All the UHS-II operations in struct sdhci_uhs2_ops are implemented here and exported as a kernel module. Signed-off-by: Ben Chuang Signed-off-by: AKASHI Takahiro --- drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-uhs2.c | 794 ++

[RFC PATCH V3 18/21] mmc: sdhci-uhs2: add pre-detect_init hook

2020-07-10 Thread Ben Chuang
From: Ben Chuang This "pre" hook for detect_init(), uhs2_pre_detect_init, will be required to enable UHS-II support, at least, on GL9755. Signed-off-by: Ben Chuang Signed-off-by: AKASHI Takahiro --- drivers/mmc/host/sdhci-uhs2.c | 3 +++ drivers/mmc/host/sdhci.h | 2 ++ 2 files changed,

[RFC PATCH V3 16/21] mmc: sdhci: UHS-II support, export helper functions to a module

2020-07-10 Thread Ben Chuang
From: AKASHI Takahiro Those exported functions will be utilized in the following commit to implement UHS-II support as a kernel module. Signed-off-by: Ben Chuang Signed-off-by: AKASHI Takahiro --- drivers/mmc/host/sdhci.c | 14 -- drivers/mmc/host/sdhci.h | 10 ++ 2 files

[RFC PATCH V3 20/21] mmc: sdhci-uhs2: add post-mmc_attach_sd hook

2020-07-10 Thread Ben Chuang
From: Ben Chuang This "post" hook for mmc_attach_sd(), uhs2_post_attach_sd, will be required to enable UHS-II support, at least, on GL9755. Signed-off-by: Ben Chuang Signed-off-by: AKASHI Takahiro --- drivers/mmc/host/sdhci.c | 9 + drivers/mmc/host/sdhci.h | 1 + 2 files changed, 10

Re: [PATCH] net/9p: validate fds in p9_fd_open

2020-07-10 Thread Dominique Martinet
Christoph Hellwig wrote on Fri, Jul 10, 2020: > p9_fd_open just fgets file descriptors passed in from userspace, but > doesn't verify that they are valid for read or writing. This gets > cought down in the VFS when actually attemping a read or write, but a > new warning added in linux-next upsets

[RFC PATCH V3 19/21] mmc: core: add post-mmc_attach_sd hook

2020-07-10 Thread Ben Chuang
From: AKASHI Takahiro This "post" hook for mmc_attach_sd() will be required to enable UHS-II support, at least, on GL9755. Signed-off-by: Ben Chuang Signed-off-by: AKASHI Takahiro --- drivers/mmc/core/sd.c| 6 ++ include/linux/mmc/host.h | 1 + 2 files changed, 7 insertions(+) diff -

[RFC PATCH V3 21/21] mmc: sdhci-pci-gli: enable UHS-II mode for GL9755

2020-07-10 Thread Ben Chuang
From: Ben Chuang Changes are: * Disable GL9755 overcurrent interrupt when power on/off on UHS-II. * Enable the internal clock when do reset on UHS-II mode. * Set ZC to 0x0 for Sandisk cards and set ZC to 0xB for others. * Increase timeout value before detecting UHS-II interface. * Add vendor sett

Re: [PATCH 4/4] perf-probe: Warn if the target function is GNU Indirect function

2020-07-10 Thread Srikar Dronamraju
* Masami Hiramatsu [2020-07-09 17:07:31]: > Reported-by: Andi Kleen > Signed-off-by: Masami Hiramatsu > --- > tools/perf/util/probe-event.c |5 + > 1 file changed, 5 insertions(+) > > diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c > index 1e95a336862c..6711

Re: [PATCH 2/4] perf-probe: Fix wrong variable warning when the probe point is not found

2020-07-10 Thread Srikar Dronamraju
* Masami Hiramatsu [2020-07-09 17:07:12]: > Fix a wrong "variable not found" warning when the probe point is > not found in the debuginfo. > Since the debuginfo__find_probes() can return 0 even if it does not > find given probe point in the debuginfo, fill_empty_trace_arg() can > be called with t

Re: [PATCH 3/4] perf-probe: Fix memory leakage when the probe point is not found

2020-07-10 Thread Srikar Dronamraju
* Masami Hiramatsu [2020-07-09 17:07:22]: > Fix the memory leakage in debuginfo__find_trace_events() when the probe > point is not found in the debuginfo. If there is no probe point found in > the debuginfo, debuginfo__find_probes() will NOT return -ENOENT, but 0. > Thus the caller of debuginfo__

Re: [PATCH 3/3] ARM: imx_v6_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-10 Thread Andreas Kemnade
Hi, On Wed, 8 Jul 2020 07:25:23 +0800 Anson Huang wrote: > i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC > as built-in manually. > > Signed-off-by: Anson Huang > --- > arch/arm/configs/imx_v6_v7_defconfig | 1 + > 1 file changed, 1 insertion(+) > shouldn't this be done als

Re: [GIT PULL] EFI fixes

2020-07-10 Thread Lukas Wunner
On Fri, Jul 10, 2020 at 02:00:34PM +0300, Kirill A. Shutemov wrote: > On Fri, Jul 10, 2020 at 12:09:36PM +0200, Arnd Bergmann wrote: > > I forgot why we care though -- is there any behavior of gnu11 > > that we prefer over the gnu99 behavior, or is it just going with > > the times because it's the

Re: [PATCH 1/4] perf-probe: Avoid setting probes on same address on same event

2020-07-10 Thread Srikar Dronamraju
* Masami Hiramatsu [2020-07-09 17:07:01]: > There is a case that the several same-name symbols points > same address. In that case, perf probe returns an error. > > E.g. > > With this patch; > > # perf probe -x /lib64/libc-2.30.so -a "memcpy arg1=%di" > Failed to find the location of the '

Re: 答复: [External Mail]Re: [PATCH 1/5] power: supply: core: add quick charge type property

2020-07-10 Thread Greg KH
On Fri, Jul 10, 2020 at 10:59:51AM +, Fei1 Jiang 蒋飞 wrote: > #/**本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! > This e-mail and its attachments contain confidential information from > XIAOMI, which is intended only for

Re: [PATCH] virtio_balloon: fix sparse warning

2020-07-10 Thread David Hildenbrand
On 10.07.20 12:48, Michael S. Tsirkin wrote: > balloon uses virtio32_to_cpu instead of cpu_to_virtio32 > to convert a native endian number to virtio. > No practical difference but makes sparse warn. > Fix it up. > > Signed-off-by: Michael S. Tsirkin > --- > drivers/virtio/virtio_balloon.c | 2 +-

Re: [PATCH] sysctl: add bound to panic_timeout to prevent overflow

2020-07-10 Thread Matthew Wilcox
On Thu, Jul 09, 2020 at 08:31:39PM -0700, Randy Dunlap wrote: > > +/* this is needed for setting boundery for panic_timeout to prevent it > > from overflow*/ > > boundary (or max value) > overflow */ > > > +static int panic_time_max = INT_M

Re: [PATCH v7 1/9] net/compat: Add missing sock updates for SCM_RIGHTS

2020-07-10 Thread Christian Brauner
On Thu, Jul 09, 2020 at 11:26:34AM -0700, Kees Cook wrote: > Add missed sock updates to compat path via a new helper, which will be > used more in coming patches. (The net/core/scm.c code is left as-is here > to assist with -stable backports for the compat path.) > > Cc: sta...@vger.kernel.org > F

[PATCH] staging: rtl8712/: Using comparison to true is error prone

2020-07-10 Thread John Oldman
clear below issues reported by checkpatch.pl: CHECK: Using comparison to true is error prone CHECK: Comparison to NULL should be written "!oldest" Signed-off-by: John Oldman --- drivers/staging/rtl8712/rtl871x_mlme.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dr

fs/jbd2/journal.o: warning: objtool: get_slab()+0x3c: unreachable instruction

2020-07-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 42f82040ee66db13525dc6f14b8559890b2f4c1c commit: 0887a7ebc97770c7870abf3075a2e8cd502a7f52 ubsan: add trap instrumentation option date: 3 months ago config: x86_64-randconfig-m031-20200710 (attached as

Re: [PATCH] vt: Reject zero-sized screen buffer size.

2020-07-10 Thread Tetsuo Handa
On 2020/07/10 19:55, Greg Kroah-Hartman wrote: >> diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c >> index 48a8199f7845..8497e9206607 100644 >> --- a/drivers/tty/vt/vt.c >> +++ b/drivers/tty/vt/vt.c >> @@ -1126,7 +1126,7 @@ int vc_allocate(unsigned int currcons) /* return 0 on >> success */

Re: [PATCH] virtio_balloon: clear modern features under legacy

2020-07-10 Thread David Hildenbrand
On 10.07.20 13:31, Michael S. Tsirkin wrote: > Page reporting features were never supported by legacy hypervisors. > Supporting them poses a problem: should we use native endian-ness (like > current code assumes)? Or little endian-ness like the virtio spec says? > Rather than try to figure out, and

[PATCH] virtio_balloon: clear modern features under legacy

2020-07-10 Thread Michael S. Tsirkin
Page reporting features were never supported by legacy hypervisors. Supporting them poses a problem: should we use native endian-ness (like current code assumes)? Or little endian-ness like the virtio spec says? Rather than try to figure out, and since results of incorrect endian-ness are dire, let

Re: [PATCH RFC] kprobes: Remove MODULES dependency

2020-07-10 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 07:32:57PM +0900, Masami Hiramatsu wrote: > > - page = module_alloc(PAGE_SIZE); > > + page = vmalloc(PAGE_SIZE); > > No, you can not use vmalloc here. The reason why we use module_alloc() > is to allocate the executable memory for trampoline code. > So, you need to use

[PATCH v2] dt-bindings: usb: ti,keystone-dwc3.yaml: Improve schema

2020-07-10 Thread Roger Quadros
There were some review comments after the patch was integrated. Address those. Fixes: 1883a934e156 ("dt-bindings: usb: convert keystone-usb.txt to YAML") Signed-off-by: Roger Quadros --- .../bindings/usb/ti,keystone-dwc3.yaml| 51 ++- 1 file changed, 37 insertions(+), 14

Re: [PATCH V7 15/15] perf script: Show text poke address symbol

2020-07-10 Thread Arnaldo Carvalho de Melo
Em Tue, May 12, 2020 at 03:19:22PM +0300, Adrian Hunter escreveu: > It is generally more useful to show the symbol with an address. In this > case, the print function requires the 'machine' which means changing > callers to provide it as a parameter. It is optional because most events > do not need

[PATCH] vop: sparse warning fixup

2020-07-10 Thread Michael S. Tsirkin
vop_dc_to_vdev dropped an __iomem tag on its argument, causing a sparse warning. Fix it up. Signed-off-by: Michael S. Tsirkin --- drivers/misc/mic/vop/vop_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mic/vop/vop_main.c b/drivers/misc/mic/vop/vop_main.c

Re: 答复: [External Mail]Re: [PATCH 2/5] power: supply: core: add wireless charger adapter type property

2020-07-10 Thread Greg KH
On Fri, Jul 10, 2020 at 11:28:13AM +, Fei1 Jiang 蒋飞 wrote: > #/**本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! > This e-mail and its attachments contain confidential information from > XIAOMI, which is intended only for

Re: [PATCH] vt: Reject zero-sized screen buffer size.

2020-07-10 Thread Greg Kroah-Hartman
On Fri, Jul 10, 2020 at 08:31:42PM +0900, Tetsuo Handa wrote: > On 2020/07/10 19:55, Greg Kroah-Hartman wrote: > >> diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c > >> index 48a8199f7845..8497e9206607 100644 > >> --- a/drivers/tty/vt/vt.c > >> +++ b/drivers/tty/vt/vt.c > >> @@ -1126,7 +1126

Re: [PATCH V7 15/15] perf script: Show text poke address symbol

2020-07-10 Thread Adrian Hunter
On 10/07/20 2:34 pm, Arnaldo Carvalho de Melo wrote: > Em Tue, May 12, 2020 at 03:19:22PM +0300, Adrian Hunter escreveu: >> It is generally more useful to show the symbol with an address. In this >> case, the print function requires the 'machine' which means changing >> callers to provide it as a p

Re: [PATCH] tpm: avoid accessing cleared ops during shutdown

2020-07-10 Thread Jarkko Sakkinen
On Thu, Jul 09, 2020 at 05:22:09PM -0700, Andrey Pronin wrote: > This patch prevents NULL dereferencing when using chip->ops while > sending TPM2_Shutdown command if both tpm_class_shutdown handler and > tpm_del_char_device are called during system shutdown. > > Both these handlers set chip->ops t

Re: [PATCH v3 7/9] KVM: nSVM: implement nested_svm_load_cr3() and use it for host->guest switch

2020-07-10 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > On 09/07/20 19:57, Paolo Bonzini wrote: >> On 09/07/20 16:53, Vitaly Kuznetsov wrote: >>> + if (nested_npt_enabled(svm)) >>> + nested_svm_init_mmu_context(&svm->vcpu); >>> + >>> ret = nested_svm_load_cr3(&svm->vcpu, nested_vmcb->save.cr3, >>>

drivers/staging/wfx/hif_tx.c:53:2-8: preceding lock on line 38 (fwd)

2020-07-10 Thread Julia Lawall
559890b2f4c1c commit: 4f8b7fabb15df3658564a98971fc67029be1815d staging: wfx: allow to send commands to chip date: 9 months ago :: branch date: 10 hours ago :: commit date: 9 months ago config: openrisc-randconfig-c022-20200710 (attached as .config) compiler: or1k-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly

Re: [PATCH V7 00/15] perf/x86: Add perf text poke events

2020-07-10 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 08, 2020 at 09:34:23AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Jul 08, 2020 at 02:55:36PM +0300, Adrian Hunter escreveu: > > On 27/05/20 6:54 pm, Peter Zijlstra wrote: > > > On Wed, May 27, 2020 at 12:47:16PM -0300, Arnaldo Carvalho de Melo wrote: > > >> Em Wed, May 20, 2020

Re: [PATCH v1] regmap: Switch to use fwnode instead of OF one

2020-07-10 Thread Andy Shevchenko
On Fri, Jul 10, 2020 at 12:01:32PM +0100, Mark Brown wrote: > On Fri, Jul 10, 2020 at 01:05:58PM +0300, Andy Shevchenko wrote: > > > Hmm... Can you point out to where is it? I have rebased my branches on top > > of > > Linux Next daily and my patch still valid. > > It's in the regmap tree, -next

Re: [PATCH] staging: android: ion: Skip sync if not mapped

2020-07-10 Thread Greg Kroah-Hartman
On Tue, Jul 07, 2020 at 08:43:30PM -0700, John Stultz wrote: > On Fri, Jul 3, 2020 at 12:03 AM Greg Kroah-Hartman > wrote: > > On Tue, Apr 21, 2020 at 10:05:44AM +0200, Greg Kroah-Hartman wrote: > > > On Mon, Apr 20, 2020 at 01:03:39PM -0700, John Stultz wrote: > > > > The dmabuf heaps have been i

arch/mips/vdso/vdso-n32-image.c:13:35: sparse: expected void Makefile certs drivers fs include init net samples scripts security tools usr virt vdso

2020-07-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 42f82040ee66db13525dc6f14b8559890b2f4c1c commit: ad1df95419cc46b4a832cbb537716e3da9a98881 mips/vdso: Support mremap() for vDSO date: 6 months ago config: mips-randconfig-s031-20200710 (attached as .config

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-10 Thread Ezequiel Garcia
On Fri, 2020-07-10 at 10:13 +0200, Boris Brezillon wrote: > On Fri, 10 Jul 2020 01:21:07 -0300 > Ezequiel Garcia wrote: > > > Hello Jonas, > > > > In the context of the uAPI cleanup, > > I'm revisiting this patch. > > > > On Sun, 2019-09-01 at 12:45 +, Jonas Karlman wrote: > > > Add DPB ent

Re: [PATCH v7 04/11] dmaengine: Introduce max SG list entries capability

2020-07-10 Thread Peter Ujfalusi
Hi Sergey, On 10/07/2020 12.27, Serge Semin wrote: > Hello Peter > > On Fri, Jul 10, 2020 at 11:31:47AM +0300, Peter Ujfalusi wrote: >> >> >> On 10/07/2020 1.45, Serge Semin wrote: >>> Some devices may lack the support of the hardware accelerated SG list >>> entries automatic walking through and

Re: [PATCH 4/4] perf-probe: Warn if the target function is GNU Indirect function

2020-07-10 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 10, 2020 at 12:30:08PM +0900, Masami Hiramatsu escreveu: > On Thu, 9 Jul 2020 07:36:54 -0700 > Andi Kleen wrote: > > > > diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c > > > index 1e95a336862c..671176d39569 100644 > > > --- a/tools/perf/util/probe-event.c >

Re: [PATCH] nsfs: add NS_GET_INIT_PID ioctl

2020-07-10 Thread Qian Cai
On Thu, Jun 18, 2020 at 10:45:43AM +0200, Christian Brauner wrote: > Add an ioctl() to return the PID of the init process/child reaper of a pid > namespace as seen in the caller's pid namespace. > > LXCFS is a tiny fuse filesystem used to virtualize various aspects of > procfs. It is used actively

Re: [PATCH] nsfs: add NS_GET_INIT_PID ioctl

2020-07-10 Thread Christian Brauner
On Fri, Jul 10, 2020 at 07:58:36AM -0400, Qian Cai wrote: > On Thu, Jun 18, 2020 at 10:45:43AM +0200, Christian Brauner wrote: > > Add an ioctl() to return the PID of the init process/child reaper of a pid > > namespace as seen in the caller's pid namespace. > > > > LXCFS is a tiny fuse filesystem

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-10 Thread Boris Brezillon
On Fri, 10 Jul 2020 08:50:28 -0300 Ezequiel Garcia wrote: > On Fri, 2020-07-10 at 10:13 +0200, Boris Brezillon wrote: > > On Fri, 10 Jul 2020 01:21:07 -0300 > > Ezequiel Garcia wrote: > > > > > Hello Jonas, > > > > > > In the context of the uAPI cleanup, > > > I'm revisiting this patch. > >

Re: [PATCH 1/1] tty: serial: owl: Initialize lock before registering port

2020-07-10 Thread Cristian Ciocaltea
On Fri, May 29, 2020 at 01:34:19PM +0200, Greg Kroah-Hartman wrote: > On Fri, May 29, 2020 at 02:06:47PM +0300, Cristian Ciocaltea wrote: > > Running a lockdep-enabled kernel leads to the following splat when > > probing the owl-uart driver: > > > > [1.271784] b0124000.serial: ttyOWL2 at MMIO

Re: [PATCH v3 7/9] KVM: nSVM: implement nested_svm_load_cr3() and use it for host->guest switch

2020-07-10 Thread Paolo Bonzini
On 10/07/20 13:40, Vitaly Kuznetsov wrote: > Hm, it seems I missed svm_set_nested_state() path > completely. Surprisingly, state_test didn't fail) > > I'm struggling a bit to understand why we don't have kvm_set_cr3() on > svm_set_nested_state() path: enter_svm_guest_mode() does it through > neste

[PATCH net-next v1 4/5] net: phy: micrel: ksz8081 add MDI-X support

2020-07-10 Thread Oleksij Rempel
Add support for MDI-X status and configuration Signed-off-by: Oleksij Rempel --- drivers/net/phy/micrel.c | 89 1 file changed, 89 insertions(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index ec409b2cb984..221ba661645f 100644 ---

[PATCH net-next v1 3/5] net: phy: micrel: ksz886x add MDI-X support

2020-07-10 Thread Oleksij Rempel
Add support for MDI-X status and configuration Signed-off-by: Oleksij Rempel --- drivers/net/phy/micrel.c | 101 +++ 1 file changed, 101 insertions(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 12106fbea565..ec409b2cb984 100644 ---

[PATCH net-next v1 2/5] net: phy: micrel: apply resume errata workaround for ksz8873 and ksz8863

2020-07-10 Thread Oleksij Rempel
The ksz8873 and ksz8863 switches are affected by following errata: | "Receiver error in 100BASE-TX mode following Soft Power Down" | | Some KSZ8873 devices may exhibit receiver errors after transitioning | from Soft Power Down mode to Normal mode, as controlled by register 195 | (0xC3) bits [1:0].

[PATCH net-next v1 0/5] add cable test support for ksz8081 and ksz8873

2020-07-10 Thread Oleksij Rempel
This patch series provide support for cable testing on some of micrel PHYs. Since this PHYs do not allow to switch between cable pairs within the test register, I used MDI-X functionality to make it possible. Oleksij Rempel (5): net: phy: micrel: use consistent indention after define net: phy:

[PATCH net-next v1 1/5] net: phy: micrel: use consistent indention after define

2020-07-10 Thread Oleksij Rempel
This patch changes the indention to one space between "#define" and the macro. Signed-off-by: Oleksij Rempel --- drivers/net/phy/micrel.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 3fe55

[PATCH net-next v1 5/5] net: phy: micrel: ksz886x/ksz8081: add cabletest support

2020-07-10 Thread Oleksij Rempel
This patch support for cable test for the ksz886x switches and the ksz8081 PHY. The patch was tested on a KSZ8873RLL switch with following results: - port 1: - cannot detect any distance - provides inverted values (Errata: DS8830A: "LinkMD does not work on Port 1", http://ww1.mi

Re: [PATCH v1] regmap: Switch to use fwnode instead of OF one

2020-07-10 Thread Mark Brown
On Fri, Jul 10, 2020 at 02:46:22PM +0300, Andy Shevchenko wrote: > You mean it's being synchronised with git.kernel.org, but not yet contains > that > patch? Okay, I will monitor the regmap tree (as of now I didn't see any > update). 5cc2013bfeee756a1ee6da9bfbe42e52b4695035 signature.asc Desc

[PATCH v3] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-10 Thread Barry Song
Online nodes are not necessarily memory containing nodes. Splitting huge_cma in online nodes can lead to inconsistent hugetlb_cma size with user setting. For example, for one system with 4 numa nodes and only one of them has memory, if users set hugetlb_cma to 4GB, it will split into four 1GB. So o

[PATCH] vsock/virtio: annotate 'the_virtio_vsock' RCU pointer

2020-07-10 Thread Stefano Garzarella
Commit 0deab087b16a ("vsock/virtio: use RCU to avoid use-after-free on the_virtio_vsock") starts to use RCU to protect 'the_virtio_vsock' pointer, but we forgot to annotate it. This patch adds the annotation to fix the following sparse errors: net/vmw_vsock/virtio_transport.c:73:17: error: in

Re: [PATCH 2/2] soc: mediatek: devapc: add devapc-mt6779 driver

2020-07-10 Thread Matthias Brugger
On 07/07/2020 09:32, Neal Liu wrote: Hi Matthias, Thanks for your review. On Mon, 2020-07-06 at 13:27 +0200, Matthias Brugger wrote: CC linux-mediatek Please you ./scripts/get_maintainers.pl to find out to whom you should send the series. Yes, I already find out from get_maintainers.pl.

Re: [PATCH 4/4] perf-probe: Warn if the target function is GNU Indirect function

2020-07-10 Thread Masami Hiramatsu
On Fri, 10 Jul 2020 16:45:12 +0530 Srikar Dronamraju wrote: > * Masami Hiramatsu [2020-07-09 17:07:31]: > > > Reported-by: Andi Kleen > > Signed-off-by: Masami Hiramatsu > > --- > > tools/perf/util/probe-event.c |5 + > > 1 file changed, 5 insertions(+) > > > > diff --git a/tools/pe

Re: [PATCH v2 2/2] soc: mediatek: add mtk-devapc driver

2020-07-10 Thread Matthias Brugger
On 09/07/2020 11:12, Neal Liu wrote: MediaTek bus fabric provides TrustZone security support and data protection to prevent slaves from being accessed by unexpected masters. The security violation is logged and sent to the processor for further analysis or countermeasures. Any occurrence of s

Re: Beginning 5.8rc1 kernel USB headsets (ASUS ROG Delta and HyperX Cloud Orbit S) play sound as if in slow-motion.

2020-07-10 Thread Alexander Tsoy
В Пт, 10/07/2020 в 10:46 +0500, Mikhail Gavrilov пишет: > Beginning 5.8rc1 (git 69119673bd50) kernel USB headsets (ASUS ROG > Delta and HyperX Cloud Orbit S) play sound as if in slow-motion. > > And in 5.8rc4 (git dcde237b9b0e) this still not fixed yet. > The bisecting is problematic because rc1 a

Re: [PATCH 1/4] perf-probe: Avoid setting probes on same address on same event

2020-07-10 Thread Masami Hiramatsu
On Fri, 10 Jul 2020 16:48:47 +0530 Srikar Dronamraju wrote: > * Masami Hiramatsu [2020-07-09 17:07:01]: > > > There is a case that the several same-name symbols points > > same address. In that case, perf probe returns an error. > > > > E.g. > > > > With this patch; > > > > # perf probe -x

Re: [PATCH v3] kdb: remove unnecessary null check of dbg_io_ops

2020-07-10 Thread Cengiz Can
Hello Daniel, On 2020-07-01 01:32, Doug Anderson wrote: Reviewed-by: Douglas Anderson Tested-by: Douglas Anderson Wanted to ask about the status of this proposed patch. I have checked your tree in git.kernel.org but you might be collecting them somewhere else perhaps. Thank you for your t

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-10 Thread Ezequiel Garcia
On Fri, 2020-07-10 at 08:48 +, Jonas Karlman wrote: > On 2020-07-10 10:13, Boris Brezillon wrote: > > On Fri, 10 Jul 2020 01:21:07 -0300 > > Ezequiel Garcia wrote: > > > > > Hello Jonas, > > > > > > In the context of the uAPI cleanup, > > > I'm revisiting this patch. > > > > > > On Sun, 201

Re: [RFC PATCH 14/16] irq: Add support for core-wide protection of IRQ and softirq

2020-07-10 Thread Li, Aubrey
Hi Joel/Vineeth, On 2020/7/1 5:32, Vineeth Remanan Pillai wrote: > From: "Joel Fernandes (Google)" > > With current core scheduling patchset, non-threaded IRQ and softirq > victims can leak data from its hyperthread to a sibling hyperthread > running an attacker. > > For MDS, it is possible for

Re: [PATCH] doc:kmsg: explictly state the return value in case of SEEK_CUR

2020-07-10 Thread Petr Mladek
On Thu 2020-07-09 12:54:15, Bruno Meneguele wrote: > The commit 625d3449788f ("Revert "kernel/printk: add kmsg SEEK_CUR > handling"") reverted a change done to the return value in case a SEEK_CUR > operation was performed for kmsg buffer based on the fact that different > userspace apps were handli

[PATCH v3] vmalloc: Add the right hint when vmalloc failed

2020-07-10 Thread Tian Tao
In fact "vmalloc=" cmdline option is not available on many platforms.When the user encounters this error, add the correct hint to prevent misleading. Signed-off-by: Tian Tao v2: Add appropriate hints and let users decide if they can increase the size of the vmalloc by vmalloc= depending on their

Re: [PATCH 0/4] Add support for GPU load values

2020-07-10 Thread Christian Gmeiner
Hi Lucas, Am Fr., 10. Juli 2020 um 10:44 Uhr schrieb Christian Gmeiner : > > Hoi Lucas > > Am Fr., 10. Juli 2020 um 10:31 Uhr schrieb Lucas Stach > : > > > > Hi Christian, > > > > Am Freitag, den 10.07.2020, 09:41 +0200 schrieb Christian Gmeiner: > > > This patch series add support for loadavg va

kernel BUG at mm/vmalloc.c:LINE! (2)

2020-07-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7cc2a8ea Merge tag 'block-5.8-2020-07-01' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=129af75510 kernel config: https://syzkaller.appspot.com/x/.config?x=183dd243398ba7ec das

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-10 Thread Ezequiel Garcia
+Nicolas On Fri, 2020-07-10 at 14:05 +0200, Boris Brezillon wrote: > On Fri, 10 Jul 2020 08:50:28 -0300 > Ezequiel Garcia wrote: > > > On Fri, 2020-07-10 at 10:13 +0200, Boris Brezillon wrote: > > > On Fri, 10 Jul 2020 01:21:07 -0300 > > > Ezequiel Garcia wrote: > > > > > > > Hello Jonas, >

Re: sound/soc/codecs/zl38060.c:614:34: warning: unused variable 'zl38_dt_ids'

2020-07-10 Thread Mark Brown
On Thu, Jul 09, 2020 at 07:41:00PM -0700, Nathan Chancellor wrote: > When CONFIG_SND_SOC_ZL38060 is y, MODULE_DEVICE_TABLE expands to nothing > so zl38_dt_ids will be unused. This is a pretty common construct in the > kernel and the only way I can think of to resolve this through the code > is by

[PATCH net-next v3 0/7] Add devlink-health support for devlink ports

2020-07-10 Thread Moshe Shemesh
Implement support for devlink health reporters on per-port basis. This patchset comes to fix a design issue as some health reporters report on errors and run recovery on device level while the actual functionality is on port level. As for the current implemented devlink health reporters it is rele

[PATCH net-next v3 6/7] net/mlx5e: Move devlink port register and unregister calls

2020-07-10 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Register devlink ports upon NIC init. TX and RX health reporters handle errors which may occur early on at driver initialization. And because these reporters are to be moved to port context, they require devlink ports to be already registered. Signed-off-by: Vladyslav Ta

[PATCH net-next v3 4/7] devlink: Implement devlink health reporters on per-port basis

2020-07-10 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Add devlink-health reporter support on per-port basis. The main difference existing devlink-health is that port reporters are stored in per-devlink_port lists. Upon creation of such health reporter the reference to a port it belongs to is stored in reporter struct. Fill

Re: [PATCH v5 1/1] power: Emit changed uevent on wakeup_sysfs_add/remove

2020-07-10 Thread Greg Kroah-Hartman
On Tue, Jul 07, 2020 at 10:28:44AM -0700, Abhishek Pandit-Subedi wrote: > Udev rules that depend on the power/wakeup attribute don't get triggered > correctly if device_set_wakeup_capable is called after the device is > created. This can happen for several reasons (driver sets wakeup after > device

[PATCH net-next v3 1/7] devlink: Refactor devlink health reporter constructor

2020-07-10 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Prepare a common routine in devlink_health_reporter_create() for usage in similar functions for devlink port health reporters. Signed-off-by: Vladyslav Tarasiuk Reviewed-by: Moshe Shemesh Reviewed-by: Jiri Pirko --- net/core/devlink.c | 45 +++

[PATCH net-next v3 2/7] devlink: Rework devlink health reporter destructor

2020-07-10 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Devlink keeps its own reference to every reporter in a list and inits refcount to 1 upon reporter's creation. Existing destructor waits to free the memory indefinitely using msleep() until all references except devlink's own are put. Rework this mechanism by moving memor

[PATCH net-next v3 5/7] devlink: Add devlink health port reporters API

2020-07-10 Thread Moshe Shemesh
From: Vladyslav Tarasiuk In order to use new devlink port health reporters infrastructure, add corresponding constructor and destructor functions. Signed-off-by: Vladyslav Tarasiuk Reviewed-by: Moshe Shemesh Reviewed-by: Jiri Pirko --- include/net/devlink.h | 9 + net/core/devlink.c

[PATCH net-next v3 3/7] devlink: Create generic devlink health reporter search function

2020-07-10 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Add a generic __devlink_health_reporter_find_by_name() that can be used with arbitrary devlink health reporter list. Signed-off-by: Vladyslav Tarasiuk Reviewed-by: Moshe Shemesh Reviewed-by: Jiri Pirko --- net/core/devlink.c | 18 ++ 1 file changed, 1

[PATCH net-next v3 7/7] net/mlx5e: Move devlink-health rx and tx reporters to devlink port

2020-07-10 Thread Moshe Shemesh
From: Vladyslav Tarasiuk Utilize new devlink-health port reporters API to move rx and tx reporters from device to port. Signed-off-by: Vladyslav Tarasiuk Reviewed-by: Moshe Shemesh Reviewed-by: Jiri Pirko --- drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c | 9 +++-- drivers/ne

Re: [PATCH] mm: memcontrol: avoid workload stalls when lowering memory.high

2020-07-10 Thread Michal Hocko
On Thu 09-07-20 12:47:18, Roman Gushchin wrote: > Memory.high limit is implemented in a way such that the kernel > penalizes all threads which are allocating a memory over the limit. > Forcing all threads into the synchronous reclaim and adding some > artificial delays allows to slow down the memor

Re: [PATCH v3 7/9] KVM: nSVM: implement nested_svm_load_cr3() and use it for host->guest switch

2020-07-10 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > On 10/07/20 13:40, Vitaly Kuznetsov wrote: >> Hm, it seems I missed svm_set_nested_state() path >> completely. Surprisingly, state_test didn't fail) >> >> I'm struggling a bit to understand why we don't have kvm_set_cr3() on >> svm_set_nested_state() path: enter_svm_guest

Re: [PATCH v3 14/16] arm64: allwinner: A100: add the basical Allwinner A100 DTSI file

2020-07-10 Thread Maxime Ripard
Hi, Thanks for sending a new series On Wed, Jul 08, 2020 at 04:25:05PM +0800, Frank Lee wrote: > + thermal-zones { > + cpu_thermal_zone { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&t

Re: [PATCH v3 16/16] arm64: allwinner: A100: add support for Allwinner Perf1 board

2020-07-10 Thread Maxime Ripard
Hi, On Wed, Jul 08, 2020 at 04:28:21PM +0800, Frank Lee wrote: > A100 perf1 is an Allwinner A100-based SBC, with the following features: > > - 1GiB DDR3 DRAM > - AXP803 PMIC > - 2 USB 2.0 ports > - MicroSD slot and on-board eMMC module > - on-board Nand flash > - ··· > > Adds initial support for

Re: [PATCH] perf parse-events: report bpf errors

2020-07-10 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 08, 2020 at 08:47:32PM +0200, Jiri Olsa escreveu: > On Tue, Jul 07, 2020 at 02:14:49PM -0700, Ian Rogers wrote: > > Setting the parse_events_error directly doesn't increment num_errors > > causing the error message not to be displayed. Use the > > parse_events__handle_error function tha

Re: [PATCH v3 04/16] dt-bindings: pinctrl: sunxi: make gpio banks supplies required

2020-07-10 Thread Maxime Ripard
Hi, On Thu, Jul 09, 2020 at 07:17:13PM +0200, Ondřej Jirman wrote: > Hello, > > On Wed, Jul 08, 2020 at 03:19:30PM +0800, Frank Lee wrote: > > Since we don't really have to care about the existing DT for boards, > > it would be great to make the gpio banks supplies required. > > What if the bora

Re: [PATCH] perf kmem: pass additional arguments to record

2020-07-10 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 08, 2020 at 11:39:19AM -0700, Ian Rogers escreveu: > perf kmem has an input file option but current an output file option > fails: > ``` > $ sudo perf kmem record -o /tmp/p.data sleep 1   >  Error: unknown switch `o' > > Usage: perf kmem [] {record|stat} > >    -f, --force           d

Re: [PATCH for-next/seccomp 0/3] Check ENOSYS under tracing

2020-07-10 Thread Will Deacon
On Sat, Jul 04, 2020 at 11:12:29PM -0700, Kees Cook wrote: > This expands the seccomp selftest to poke a architectural behavior corner > that Keno Fischer noticed[1]. In the process, I took the opportunity > to do the kselftest harness variant refactoring I'd been meaning to do, > which made adding

Re: [PATCH] tty: serial: qcom-geni-serial: Drop the icc bw votes in suspend for console

2020-07-10 Thread Greg KH
On Thu, Jul 09, 2020 at 03:07:00PM +0530, Rajendra Nayak wrote: > When using the geni-serial as console, its important to be > able to hit the lowest possible power state in suspend, > even with no_console_suspend. > The only thing that prevents it today on platforms like the sc7180 > is the interc

drivers/i2c/busses/i2c-xgene-slimpro.c:134:9: sparse: sparse: incorrect type in assignment (different base types)

2020-07-10 Thread kernel test robot
-20200710 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.2-37-gc9676a3b

Re: [PATCH v2] mm, oom: make the calculation of oom badness more accurate

2020-07-10 Thread Qian Cai
//github.com/cailca/linux-mm # cd linux-mm; make # ./random 5 (just mmap and CoW) [ 261.362982][ T1770] Out of memory and no killable processes... [ 261.391982][ T1770] Kernel panic - not syncing: System is deadlocked on memory [ 261.428413][ T1770] CPU: 44 PID: 1770 Comm: random Not t

Re: [PATCH v3] vmalloc: Add the right hint when vmalloc failed

2020-07-10 Thread Matthew Wilcox
On Fri, Jul 10, 2020 at 08:17:52PM +0800, Tian Tao wrote: > In fact "vmalloc=" cmdline option is not available on many > platforms.When the user encounters this error, add the correct > hint to prevent misleading. i don't think this is an improvement.

Re: ptrace: seccomp: Return value when the call was already invalid

2020-07-10 Thread Will Deacon
On Sat, Jul 04, 2020 at 09:56:50PM -0700, Kees Cook wrote: > On Sat, Jul 04, 2020 at 01:33:56PM +0100, Will Deacon wrote: > > On Fri, Jul 03, 2020 at 08:52:05AM -0700, Kees Cook wrote: > > > On Fri, Jul 03, 2020 at 04:44:27PM +0100, Will Deacon wrote: > > > > On Fri, Jul 03, 2020 at 08:17:19AM -070

Re: [PATCH] kasan: Remove kasan_unpoison_stack_above_sp_to()

2020-07-10 Thread Andrey Konovalov
On Mon, Jul 6, 2020 at 4:35 PM Vincenzo Frascino wrote: > > The function kasan_unpoison_stack_above_sp_to() is defined in kasan code > but never used. The function was introduced as part of the commit: > >commit 9f7d416c36124667 ("kprobes: Unpoison stack in jprobe_return() for > KASAN") > > .

Re: [PATCH 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Krzysztof Kozlowski
On Fri, Jul 10, 2020 at 09:34:45AM +0100, Lukasz Luba wrote: > Hi Chanwoo, > > On 7/9/20 5:08 AM, Chanwoo Choi wrote: > > Hi Lukasz, > > > > On 7/9/20 12:34 AM, Lukasz Luba wrote: > > > In order to react faster and make better decisions under some workloads, > > > benchmarking the memory subsyste

[PATCH v5 0/5] net: macb: Wake-on-Lan magic packet fixes and GEM handling

2020-07-10 Thread nicolas.ferre
From: Nicolas Ferre Hi, Here is a split series to fix WoL magic-packet on the current macb driver. Only fixes in this one based on current net/master. Best regards, Nicolas Changes in v5: - Addressed the error code returned by phylink_ethtool_set_wol() as suggested by Russell. If PHY hand

[PATCH v5 1/5] net: macb: fix wakeup test in runtime suspend/resume routines

2020-07-10 Thread nicolas.ferre
From: Nicolas Ferre Use the proper struct device pointer to check if the wakeup flag and wakeup source are positioned. Use the one passed by function call which is equivalent to &bp->dev->dev.parent. It's preventing the trigger of a spurious interrupt in case the Wake-on-Lan feature is used. Fi

[PATCH v5 4/5] net: macb: fix macb_suspend() by removing call to netif_carrier_off()

2020-07-10 Thread nicolas.ferre
From: Nicolas Ferre As we now use the phylink call to phylink_stop() in the non-WoL path, there is no need for this call to netif_carrier_off() anymore. It can disturb the underlying phylink FSM. Fixes: 7897b071ac3b ("net: macb: convert to phylink") Cc: Claudiu Beznea Cc: Harini Katakam Cc: An

[PATCH v5 3/5] net: macb: fix macb_get/set_wol() when moving to phylink

2020-07-10 Thread nicolas.ferre
From: Nicolas Ferre Keep previous function goals and integrate phylink actions to them. phylink_ethtool_get_wol() is not enough to figure out if Ethernet driver supports Wake-on-Lan. Initialization of "supported" and "wolopts" members is done in phylink function, no need to keep them in calling

[PATCH v5 2/5] net: macb: mark device wake capable when "magic-packet" property present

2020-07-10 Thread nicolas.ferre
From: Nicolas Ferre Change the way the "magic-packet" DT property is handled in the macb_probe() function, matching DT binding documentation. Now we mark the device as "wakeup capable" instead of calling the device_init_wakeup() function that would enable the wakeup source. For Ethernet WoL, ena

[PATCH v5 5/5] net: macb: fix call to pm_runtime in the suspend/resume functions

2020-07-10 Thread nicolas.ferre
From: Nicolas Ferre The calls to pm_runtime_force_suspend/resume() functions are only relevant if the device is not configured to act as a WoL wakeup source. Add the device_may_wakeup() test before calling them. Fixes: 3e2a5e153906 ("net: macb: add wake-on-lan support via magic packet") Cc: Clau

include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'hashlimit_mt_common' - unexpected unlock

2020-07-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 42f82040ee66db13525dc6f14b8559890b2f4c1c commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 8 months ago config: alpha-randconfig-s032-20200710 (attached as .config

Re: [LKP] [sched/fair] 6c8116c914: stress-ng.mmapfork.ops_per_sec -38.0% regression

2020-07-10 Thread Vincent Guittot
On Fri, 10 Jul 2020 at 14:08, Tao Zhou wrote: > > Hi Vincent, > > Sorry for this so late reply. > > On Tue, Jun 30, 2020 at 04:22:10PM +0200, Vincent Guittot wrote: > > Hi Tao, > > > > On Tue, 30 Jun 2020 at 11:41, Tao Zhou wrote: > > > > > > Hi, > > > > > > On Tue, Jun 30, 2020 at 09:43:11AM +02

<    1   2   3   4   5   6   7   8   9   10   >