Re: [PATCH v2 2/2] dt-bindings: sound: Convert Samsung SMDK audio complex

2019-09-17 Thread Rob Herring
On Tue, Sep 17, 2019 at 7:06 AM Maciej Falkowski wrote: > > Convert Samsung SMDK audio complex to newer dt-schema format. > > Signed-off-by: Maciej Falkowski > Signed-off-by: Marek Szyprowski > --- > v2: > - Added missing Signed-off-by certificate > --- >

Re: [PATCH] rt-tests: backfire: Don't include asm/uaccess.h directly

2019-09-17 Thread John Kacur
On Tue, 17 Sep 2019, Sultan Alsawaf wrote: > On Mon, Sep 16, 2019 at 11:57:32PM +0200, John Kacur wrote: > > Signed-off-by: John Kacur > > But please in the future > > 1. Don't cc lkml on this > > 2. Include the maintainers in your patch > > Hi, > > Thanks for the sign-off. I was following

Re: [PATCH] rt-tests: backfire: Don't include asm/uaccess.h directly

2019-09-17 Thread John Kacur
On Tue, 17 Sep 2019, Sebastian Andrzej Siewior wrote: > On 2019-09-16 23:57:32 [+0200], John Kacur wrote: > > Signed-off-by: John Kacur > > Hmmm. I remember this thing came up years ago in the Debian BTS and then > that backfire module got removed from the Debian package because there > was

Re: [PATCH] spi: sifive: check return value for platform_get_resource()

2019-09-17 Thread Paul Walmsley
Aurobindo, On Tue, 17 Sep 2019, Aurabindo Jayamohanan wrote: > ‐‐‐ Original Message ‐‐‐ > On Tuesday, September 17, 2019 5:45 PM, Paul Walmsley > wrote: > > > On Tue, 17 Sep 2019, Baolin Wang wrote: > > > > > On Tue, 17 Sep 2019 at 17:12, Aurabindo Jayamohanan m...@aurabindo.in > >

Regression in fd5f7cde1b85 ("printk: Never set console_may_schedule in console_trylock()")

2019-09-17 Thread Uwe Kleine-König
Hello, Today it saw sysrq on an UART driven by drivers/tty/serial/imx.c report a lockdep issue. Bisecting pointed to fd5f7cde1b85 ("printk: Never set console_may_schedule in console_trylock()") When I type t I get: [ 87.940104] sysrq: SysRq : This sysrq operation is disabled. [

Re: [PATCH?] powerpc: Hard wire PT_SOFTE value to 1 in gpr_get() too

2019-09-17 Thread kbuild test robot
/powerpc-Hard-wire-PT_SOFTE-value-to-1-in-gpr_get-too/20190917-201613 config: powerpc-allmodconfig (attached as .config) compiler: powerpc64-linux-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x

Re: [RESEND v4 5/7] mm, slab_common: Make kmalloc_caches[] start at size KMALLOC_MIN_SIZE

2019-09-17 Thread Pengfei Li
On Mon, Sep 16, 2019 at 5:38 AM David Rientjes wrote: > > On Mon, 16 Sep 2019, Pengfei Li wrote: > > > Currently, kmalloc_cache[] is not sorted by size, kmalloc_cache[0] > > is kmalloc-96, kmalloc_cache[1] is kmalloc-192 (when ARCH_DMA_MINALIGN > > is not defined). > > > > As suggested by

Re: [PATCH] selftests/net: replace AF_MAX with INT_MAX in socket.c

2019-09-17 Thread shuah
On 9/17/19 1:12 AM, Marcelo Henrique Cerri wrote: So the problem arises because the headers we have in userspace might be older and not match what we have in the kernel. In that case, the actual value of AF_MAX in the userspace headers might be a valid protocol family in the new kernel. That

Re: divide error in cdc_ncm_update_rxtx_max

2019-09-17 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer still triggered crash: divide error in usbnet_update_max_qlen cdc_ncm 5-1:1.0: setting tx_max = 16384 divide error: [#1] SMP KASAN CPU: 1 PID: 1737 Comm: kworker/1:2 Not tainted 5.3.0-rc7+ #0 Hardware name: Google Google

Re: [PATCH RT v3 4/5] rcu: Disable use_softirq on PREEMPT_RT

2019-09-17 Thread Scott Wood
On Wed, 2019-09-11 at 17:57 +0100, Scott Wood wrote: > kernel/rcu/tree.c | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c > index fc8b00c61b32..ee0a5ec2c30f 100644 > --- a/kernel/rcu/tree.c > +++ b/kernel/rcu/tree.c > @@

Re: [PATCH 2/3] KVM: x86: hyper-v: set NoNonArchitecturalCoreSharing CPUID bit when SMT is impossible

2019-09-17 Thread Paolo Bonzini
On 17/09/19 11:33, Vitaly Kuznetsov wrote: > Jim Mattson writes: > >> On Mon, Sep 16, 2019 at 9:23 AM Vitaly Kuznetsov wrote: >>> >>> Hyper-V 2019 doesn't expose MD_CLEAR CPUID bit to guests when it cannot >>> guarantee that two virtual processors won't end up running on sibling SMT >>> threads

Re: printk meeting at LPC

2019-09-17 Thread Tetsuo Handa
On 2019/09/17 22:37, Steven Rostedt wrote: > On Tue, 17 Sep 2019 15:12:04 +0200 > Greg Kroah-Hartman wrote: > >>> Well, it's being used. I was thinking of dropping it if it was not. >>> Let's keep it then. >> >> I think it should be dropped, only one user of the kernel is using it in >> a

Re: [PATCH 2/3] pinctrl: meson-a1: add pinctrl driver for Meson A1 Soc

2019-09-17 Thread Jerome Brunet
On Tue 17 Sep 2019 at 13:51, Qianggui Song wrote: >>> diff --git a/drivers/pinctrl/meson/pinctrl-meson.c >>> b/drivers/pinctrl/meson/pinctrl-meson.c >>> index 8bba9d0..885b89d 100644 >>> --- a/drivers/pinctrl/meson/pinctrl-meson.c >>> +++ b/drivers/pinctrl/meson/pinctrl-meson.c >>> @@ -688,8

Re: [PATCH 1/3] cpu/SMT: create and export cpu_smt_possible()

2019-09-17 Thread Paolo Bonzini
On 16/09/19 19:16, Jim Mattson wrote: >> KVM needs to know if SMT is theoretically possible, this means it is >> supported and not forcefully disabled ('nosmt=force'). Create and >> export cpu_smt_possible() answering this question. > It seems to me that KVM really just wants to know if the

Re: [PATCH] spi: sifive: check return value for platform_get_resource()

2019-09-17 Thread Aurabindo Jayamohanan
Hi Paul, ‐‐‐ Original Message ‐‐‐ On Tuesday, September 17, 2019 5:45 PM, Paul Walmsley wrote: > On Tue, 17 Sep 2019, Baolin Wang wrote: > > > On Tue, 17 Sep 2019 at 17:12, Aurabindo Jayamohanan m...@aurabindo.in wrote: > > > > > platform_get_resource() may return NULL. If it is so,

Re: [PATCH RT v3 1/5] rcu: Acquire RCU lock when disabling BHs

2019-09-17 Thread Scott Wood
On Tue, 2019-09-17 at 09:44 +0200, Sebastian Andrzej Siewior wrote: > On 2019-09-11 17:57:25 [+0100], Scott Wood wrote: > > > > @@ -615,10 +645,7 @@ static inline void rcu_read_unlock(void) > > static inline void rcu_read_lock_bh(void) > > { > > local_bh_disable(); > > -

Re: [PATCH RT v3 3/5] sched: migrate_dis/enable: Use rt_invol_sleep

2019-09-17 Thread Scott Wood
On Tue, 2019-09-17 at 09:59 +0200, Sebastian Andrzej Siewior wrote: > On 2019-09-11 17:57:27 [+0100], Scott Wood wrote: > > diff --git a/kernel/cpu.c b/kernel/cpu.c > > index 885a195dfbe0..32c6175b63b6 100644 > > --- a/kernel/cpu.c > > +++ b/kernel/cpu.c > > @@ -308,7 +308,9 @@ void

Re: [PATCH 2/2] PCI: vmd: Fix shadow offsets to reflect spec changes

2019-09-17 Thread Lorenzo Pieralisi
On Tue, Sep 17, 2019 at 01:55:59PM +, Derrick, Jonathan wrote: > On Tue, 2019-09-17 at 11:41 +0100, Lorenzo Pieralisi wrote: > > On Mon, Sep 16, 2019 at 07:54:35AM -0600, Jon Derrick wrote: > > > The shadow offset scratchpad was moved to 0x2000-0x2010. Update the > > > location to get the

Re: Re: [PATCH] connector: report comm change event when modifying /proc/pid/task/tid/comm

2019-09-17 Thread KeMeng Shi
on 2019/9/17 at 5:10, Will Deacon wrote: >The rough idea looks ok to me but I have two concerns: > > (1) This looks like it will be visible to userspace, and this changes > the behaviour after ~8 years of not reporting this event. This do bother for users who only care the comm change via

Re: divide error in cdc_ncm_update_rxtx_max

2019-09-17 Thread Bjørn Mork
#syz test: https://github.com/google/kasan.git f0df5c1b >From dd2eb64899d5e695e5e05c674ecbbc3fce01b4b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= Date: Tue, 17 Sep 2019 15:46:03 +0200 Subject: [RFC] cdc_ncm: fix divide error when USB packet size is 0 MIME-Version: 1.0

Re: [PATCH 2/2] PCI: vmd: Fix shadow offsets to reflect spec changes

2019-09-17 Thread Derrick, Jonathan
On Tue, 2019-09-17 at 11:41 +0100, Lorenzo Pieralisi wrote: > On Mon, Sep 16, 2019 at 07:54:35AM -0600, Jon Derrick wrote: > > The shadow offset scratchpad was moved to 0x2000-0x2010. Update the > > location to get the correct shadow offset. > > Hi Jon, > > what does "was moved" mean ? Would

Re: [PATCH] dt-bindings: net: dwmac: fix 'mac-mode' type

2019-09-17 Thread Rob Herring
On Tue, Sep 17, 2019 at 2:31 AM Alexandru Ardelean wrote: > > The 'mac-mode' property is similar to 'phy-mode' and 'phy-connection-type', > which are enums of mode strings. > > The 'dwmac' driver supports almost all modes declared in the 'phy-mode' > enum (except for 1 or 2). But in general,

[PATCH] pwm: stm32-lp: add check in case requested period cannot be achieved

2019-09-17 Thread Fabrice Gasnier
LPTimer can use a 32KHz clock for counting. It depends on clock tree configuration. In such a case, PWM output frequency range is limited. Although unlikely, nothing prevents user from requesting a PWM frequency above counting clock (32KHz for instance): - This causes (prd - 1) = 0x to be

Re: [RFC][PATCH] pipe: Convert ring to head/tail

2019-09-17 Thread David Howells
Will Deacon wrote: > > + /* Barrier: head belongs to the write side, so order reading > > +* the data after reading the head pointer. > > +*/ > > + unsigned int head = READ_ONCE(pipe->head); > > Hmm, I don't understand this. Since READ_ONCE() doesn't

Re: [PATCH v2] ixgbe: Use memset_explicit directly in crypto cases

2019-09-17 Thread zhong jiang
On 2019/9/17 17:59, Sergei Shtylyov wrote: > Hello! > > On 17.09.2019 6:45, zhong jiang wrote: > >> It's better to use memset_explicit() to replace memset() in crypto cases. > >But you're using memzero_explicit() below? Sorry, stupid Oops. I will repost. Thank for your reminder. Sincerely,

Re: [PATCH] ARM: dts: imx6dl: SolidRun: add phy node with 100Mb/s max-speed

2019-09-17 Thread Russell King - ARM Linux admin
On Tue, Sep 17, 2019 at 04:32:53PM +0300, tinywrkb wrote: > On Tue, Sep 17, 2019 at 02:54:34PM +0200, Andrew Lunn wrote: > > On Tue, Sep 17, 2019 at 03:41:01PM +0300, tinywrkb wrote: > > > On Sun, Sep 15, 2019 at 03:56:52PM +0200, Andrew Lunn wrote: > > > > > Tinywrkb confirmed to me in private

Re: [RFC PATCH] mm/slub: remove left-over debugging code

2019-09-17 Thread Qian Cai
On Mon, 2019-09-16 at 11:32 -0700, David Rientjes wrote: > On Mon, 16 Sep 2019, Qian Cai wrote: > > > SLUB_RESILIENCY_TEST and SLUB_DEBUG_CMPXCHG look like some left-over > > debugging code during the internal development that probably nobody uses > > it anymore. Remove them to make the world

Re: linux-next: Tree for Sep 16 (kernel/sched/core.c)

2019-09-17 Thread Patrick Bellasi
On Tue, Sep 17, 2019 at 08:52:42 +0100, Ingo Molnar wrote... > * Randy Dunlap wrote: > >> On 9/16/19 3:38 PM, Mark Brown wrote: >> > Hi all, >> > >> > Changes since 20190915: >> > >> >> on x86_64: >> >> when CONFIG_CGROUPS is not set: Hi Randy, thanks for the report. >> CC

Re: [PATCH v3] KVM: hyperv: Fix Direct Synthetic timers assert an interrupt w/o lapic_in_kernel

2019-09-17 Thread Paolo Bonzini
On 16/09/19 09:42, Wanpeng Li wrote: > From: Wanpeng Li > > Reported by syzkaller: > > kasan: GPF could be caused by NULL-ptr deref or user memory access > general protection fault: [#1] PREEMPT SMP KASAN > RIP: 0010:__apic_accept_irq+0x46/0x740 arch/x86/kvm/lapic.c:1029

Re: printk meeting at LPC

2019-09-17 Thread Steven Rostedt
On Tue, 17 Sep 2019 15:12:04 +0200 Greg Kroah-Hartman wrote: > > Well, it's being used. I was thinking of dropping it if it was not. > > Let's keep it then. > > I think it should be dropped, only one user of the kernel is using it in > a legitimate way, which kind of implies it isn't needed.

Re: Linux 5.3-rc8

2019-09-17 Thread Alexander E. Patrakov
17.09.2019 18:11, Alexander E. Patrakov пишет: 17.09.2019 17:11, Theodore Y. Ts'o пишет: There are only two ways out of this mess.  The first option is we take functionality away from a userspace author who Really Wants A Secure Random Number Generator.  And there are an awful lot of programs

Re: [PATCH] KVM: x86: Manually flush collapsible SPTEs only when toggling flags

2019-09-17 Thread Paolo Bonzini
On 11/09/19 21:19, Sean Christopherson wrote: > Zapping collapsible sptes, a.k.a. 4k sptes that can be promoted into a > large page, is only necessary when changing only the dirty logging flag > of a memory region. If the memslot is also being moved, then all sptes > for the memslot are zapped

Re: [PATCH v3 0/4] KVM: selftests: Introduce VM_MODE_PXXV48_4K

2019-09-17 Thread Paolo Bonzini
On 30/08/19 03:36, Peter Xu wrote: > v3: > - pick r-b > - refine DEBUG macro [Drew] > > v2: > - pick r-bs > - rebased to master > - fix pa width detect, check cpuid(1):edx.PAE(bit 6) > - fix arm compilation issue [Drew] > - fix indents issues and ways to define macros [Drew] > - provide functions

Re: [PATCH] ARM: dts: imx6dl: SolidRun: add phy node with 100Mb/s max-speed

2019-09-17 Thread tinywrkb
On Tue, Sep 17, 2019 at 02:54:34PM +0200, Andrew Lunn wrote: > On Tue, Sep 17, 2019 at 03:41:01PM +0300, tinywrkb wrote: > > On Sun, Sep 15, 2019 at 03:56:52PM +0200, Andrew Lunn wrote: > > > > Tinywrkb confirmed to me in private communication that revert of > > > > 5502b218e001 fixes Ethernet for

[PATCH bpf-next 2/5] perf/core: Sync perf_event.h to tools

2019-09-17 Thread Daniel Xu
Signed-off-by: Daniel Xu --- tools/include/uapi/linux/perf_event.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index 7198ddd0c6b1..bd874c7257f0 100644 ---

[PATCH bpf-next 4/5] libbpf: Set read_format PERF_FORMAT_LOST on kprobe perf fds

2019-09-17 Thread Daniel Xu
There is no way to get the nmissed count from kprobes that are created using the perf API. The previous commits added read_format support for this count. Enable it in this commit. Signed-off-by: Daniel Xu --- tools/lib/bpf/libbpf.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-)

[PATCH bpf-next 5/5] libbpf: Add selftest for PERF_FORMAT_LOST perf read_format

2019-09-17 Thread Daniel Xu
Signed-off-by: Daniel Xu --- .../selftests/bpf/prog_tests/attach_probe.c | 32 ++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/prog_tests/attach_probe.c b/tools/testing/selftests/bpf/prog_tests/attach_probe.c index

[PATCH bpf-next 1/5] perf/core: Add PERF_FORMAT_LOST read_format

2019-09-17 Thread Daniel Xu
It's useful to know kprobe's nmissed count. For example with tracing tools, it's important to know when events may have been lost. debugfs currently exposes a control file to get this information, but it is not compatible with probes registered with the perf API. While bpf programs may be able

[PATCH bpf-next 3/5] libbpf: Add helpers to extract perf fd from bpf_link

2019-09-17 Thread Daniel Xu
It is sometimes necessary to perform operations on the underlying perf fd. There is not currently a way to extract the fd given a bpf_link, so add a a pair of casting and getting helpers. The casting and getting helpers are nice because they let us define broad categories of links that makes it

[PATCH bpf-next 0/5] Add PERF_FORMAT_LOST read_format

2019-09-17 Thread Daniel Xu
It's useful to know kprobe's nmissed count. For example with tracing tools, it's important to know when events may have been lost. debugfs currently exposes a control file to get this information, but it is not compatible with probes registered with the perf API. While bpf programs may be able

Re: [PATCH v2 0/2] KVM: x86: don't announce KVM_CAP_HYPERV_ENLIGHTENED_VMCS when it is unavailable

2019-09-17 Thread Paolo Bonzini
On 28/08/19 09:59, Vitaly Kuznetsov wrote: > It was discovered that hyperv_cpuid test now fails on AMD as it tries to > enable KVM_CAP_HYPERV_ENLIGHTENED_VMCS which is (wrongfully) reported as > available. > > Changes since v1: > - This is a v2 for '[PATCH 0/3] KVM: x86: fix a couple of issues

Re: [PATCH v2] extcon-intel-cht-wc: Don't reset USB data connection at probe

2019-09-17 Thread Yauhen Kharuzhy
On Tue, Sep 17, 2019 at 02:13:22PM +0300, Andy Shevchenko wrote: > On Tue, Sep 17, 2019 at 12:15:36AM +0300, Yauhen Kharuzhy wrote: > > Intel Cherry Trail Whiskey Cove extcon driver connect USB data lines to > > PMIC at driver probing for further charger detection. This causes reset of > > USB

Re: [RFC PATCH] mm/slub: remove left-over debugging code

2019-09-17 Thread Pengfei Li
On Tue, Sep 17, 2019 at 2:32 AM David Rientjes wrote: > > On Mon, 16 Sep 2019, Qian Cai wrote: > > > SLUB_RESILIENCY_TEST and SLUB_DEBUG_CMPXCHG look like some left-over > > debugging code during the internal development that probably nobody uses > > it anymore. Remove them to make the world

Re: [PATCH] dt-bindings: net: dwmac: fix 'mac-mode' type

2019-09-17 Thread Ardelean, Alexandru
On Tue, 2019-09-17 at 14:41 +0200, Andrew Lunn wrote: > [External] > > On Tue, Sep 17, 2019 at 01:30:52PM +0300, Alexandru Ardelean wrote: > > The 'mac-mode' property is similar to 'phy-mode' and 'phy-connection-type', > > which are enums of mode strings. > > > > The 'dwmac' driver supports

Re: [PATCH 5/5] cpufreq: qcom-hw: Move driver initialisation earlier

2019-09-17 Thread Sudeep Holla
On Tue, Sep 17, 2019 at 02:47:22PM +0200, Daniel Lezcano wrote: > > Hi Sudeep, > > On 17/09/2019 11:34, Sudeep Holla wrote: > > On Thu, Sep 12, 2019 at 04:02:34AM +0530, Amit Kucheria wrote: > >> Allow qcom-hw driver to initialise right after the cpufreq and thermal > >> subsystems are initialised

[PATCH] tty/amba-pl011: fix a -Wunused-function warning

2019-09-17 Thread Qian Cai
pl011_dma_probe() is only used in pl011_dma_startup() which does only exist when CONFIG_DMA_ENGINE=y, so remove the unused dummy version to silence the warning. Signed-off-by: Qian Cai --- drivers/tty/serial/amba-pl011.c | 4 1 file changed, 4 deletions(-) diff --git

Re: [PATCH v5 0/7] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-17 Thread Pengfei Li
On Tue, Sep 17, 2019 at 12:04 AM Christopher Lameter wrote: > > On Mon, 16 Sep 2019, Pengfei Li wrote: > > > The name of KMALLOC_NORMAL is contained in kmalloc_info[].name, > > but the names of KMALLOC_RECLAIM and KMALLOC_DMA are dynamically > > generated by kmalloc_cache_name(). > > > > Patch1

Re: printk meeting at LPC

2019-09-17 Thread Greg Kroah-Hartman
On Tue, Sep 17, 2019 at 09:02:54AM -0400, Steven Rostedt wrote: > On Tue, 17 Sep 2019 09:52:16 +0200 > Petr Mladek wrote: > > > Heh, I did some grepping and the return value is actually used on > > three locations: > > > > $> git grep "= printk(" > > drivers/scsi/aic7xxx/aic79xx_core.c:

Re: Linux 5.3-rc8

2019-09-17 Thread Alexander E. Patrakov
17.09.2019 17:11, Theodore Y. Ts'o пишет: There are only two ways out of this mess. The first option is we take functionality away from a userspace author who Really Wants A Secure Random Number Generator. And there are an awful lot of programs who really want secure crypto, becuase this is

Re: [PATCH] spi: sifive: check return value for platform_get_resource()

2019-09-17 Thread Geert Uytterhoeven
Hi Paul, On Tue, Sep 17, 2019 at 2:16 PM Paul Walmsley wrote: > On Tue, 17 Sep 2019, Baolin Wang wrote: > > On Tue, 17 Sep 2019 at 17:12, Aurabindo Jayamohanan > > wrote: > > > platform_get_resource() may return NULL. If it is so, return -ENXIO > > > > > > Signed-off-by: Aurabindo Jayamohanan

Re: [PATCH 0/6] ARM, arm64: Remove arm_pm_restart()

2019-09-17 Thread Guenter Roeck
On 9/17/19 12:01 AM, Arnd Bergmann wrote: On Mon, Sep 16, 2019 at 10:28 PM Thierry Reding wrote: All of the patches beyond the 6 in this set rely on the system reset and power "framework". I don't think there was broad concensus on that idea yet. Ok, I see. If you think it's worth another

Re: [PATCH v2 1/2] dt-bindings: sound: Convert Samsung I2S controller to dt-schema

2019-09-17 Thread Rob Herring
On Tue, Sep 17, 2019 at 7:05 AM Maciej Falkowski wrote: > > Convert Samsung I2S controller to newer dt-schema format. > > Signed-off-by: Maciej Falkowski > Signed-off-by: Marek Szyprowski > --- > v2: > - Added missing Signed-off-by certificate > --- >

Re: printk meeting at LPC

2019-09-17 Thread Steven Rostedt
On Tue, 17 Sep 2019 09:52:16 +0200 Petr Mladek wrote: > Heh, I did some grepping and the return value is actually used on > three locations: > > $> git grep "= printk(" > drivers/scsi/aic7xxx/aic79xx_core.c: printed = printk("%s[0x%x]", name, > value); > drivers/scsi/aic7xxx/aic79xx_core.c:

[PATCH v3 1/2] x86: Don't let pgprot_modify() change the page encryption bit

2019-09-17 Thread VMware
From: Thomas Hellstrom When SEV or SME is enabled and active, vm_get_page_prot() typically returns with the encryption bit set. This means that users of pgprot_modify(, vm_get_page_prot()) (mprotect_fixup, do_mmap) end up with a value of vma->vm_pg_prot that is not consistent with the intended

[PATCH v3 2/2] dma-mapping: Fix dma_pgprot() for unencrypted coherent pages

2019-09-17 Thread VMware
From: Thomas Hellstrom When dma_mmap_coherent() sets up a mapping to unencrypted coherent memory under SEV encryption and sometimes under SME encryption, it will actually set up an encrypted mapping rather than an unencrypted, causing devices that DMAs from that memory to read encrypted

[PATCH v3 0/2] Fix SEV user-space mapping of unencrypted coherent memory

2019-09-17 Thread VMware
This patchset fixes dma_mmap_coherent() mapping of unencrypted memory in otherwise encrypted environments, where it would incorrectly map that memory as encrypted. With SEV and sometimes with SME encryption, The dma api coherent memory is typically unencrypted, meaning the linear kernel map has

Re: [PATCH v5 0/9] Enable Sub-page Write Protection Support

2019-09-17 Thread Konrad Rzeszutek Wilk
On Tue, Sep 17, 2019 at 04:52:55PM +0800, Yang Weijiang wrote: > EPT-Based Sub-Page write Protection(SPP)is a HW capability which allows > Virtual Machine Monitor(VMM) to specify write-permission for guest > physical memory at a sub-page(128 byte) granularity. When this > capability is enabled,

Re: [PATCH] tracing/kprobe: Fix NULL pointer access in trace_porbe_unlink()

2019-09-17 Thread Steven Rostedt
On Tue, 17 Sep 2019 14:11:37 +0900 Masami Hiramatsu wrote: > Fix NULL pointer access in trace_probe_unlink() by initializing > trace_probe.list correctly in trace_probe_init(). > > In the error case of trace_probe_init(), it can call trace_probe_unlink() > before initializing trace_probe.list

Re: [PATCH] ARM: dts: imx6dl: SolidRun: add phy node with 100Mb/s max-speed

2019-09-17 Thread Andrew Lunn
On Tue, Sep 17, 2019 at 03:41:01PM +0300, tinywrkb wrote: > On Sun, Sep 15, 2019 at 03:56:52PM +0200, Andrew Lunn wrote: > > > Tinywrkb confirmed to me in private communication that revert of > > > 5502b218e001 fixes Ethernet for him on effected system. > > > > > > He also referred me to an old

Re: [PATCH v2 1/2] dt-bindings: sound: Convert Samsung I2S controller to dt-schema

2019-09-17 Thread Sylwester Nawrocki
On 9/17/19 14:04, Maciej Falkowski wrote: > Convert Samsung I2S controller to newer dt-schema format. > > Signed-off-by: Maciej Falkowski > Signed-off-by: Marek Szyprowski > --- a/Documentation/devicetree/bindings/sound/samsung-i2s.txt > +++ /dev/null > @@ -1,84 +0,0 @@ > -* Samsung I2S

Re: [PATCH 5/5] cpufreq: qcom-hw: Move driver initialisation earlier

2019-09-17 Thread Daniel Lezcano
On 12/09/2019 00:32, Amit Kucheria wrote: > Allow qcom-hw driver to initialise right after the cpufreq and thermal > subsystems are initialised in core_initcall so we get earlier access to > thermal mitigation. > > Signed-off-by: Amit Kucheria Acked-by: Daniel Lezcano > --- >

Re: Linux 5.3-rc8

2019-09-17 Thread Willy Tarreau
On Tue, Sep 17, 2019 at 12:30:15PM +, Ahmed S. Darwish wrote: > Sounds good? Sounds good to me except that I'd like to have the option to get poor randoms. getrandom() is used when /dev/urandom is not accessible or painful to use. Until we provide applications with a solution to this fairly

Re: Linux 5.3-rc8

2019-09-17 Thread Alexander E. Patrakov
17.09.2019 17:30, Ahmed S. Darwish пишет: On Tue, Sep 17, 2019 at 08:11:56AM -0400, Theodore Y. Ts'o wrote: On Tue, Sep 17, 2019 at 09:33:40AM +0200, Martin Steigerwald wrote: Willy Tarreau - 17.09.19, 07:24:38 CEST: On Mon, Sep 16, 2019 at 06:46:07PM -0700, Matthew Garrett wrote: Well, the

Re: [PATCH 5/5] cpufreq: qcom-hw: Move driver initialisation earlier

2019-09-17 Thread Daniel Lezcano
Hi Sudeep, On 17/09/2019 11:34, Sudeep Holla wrote: > On Thu, Sep 12, 2019 at 04:02:34AM +0530, Amit Kucheria wrote: >> Allow qcom-hw driver to initialise right after the cpufreq and thermal >> subsystems are initialised in core_initcall so we get earlier access to >> thermal mitigation. >> >>

[PATCH 2/5] dt-bindings: mfd: da9062: add regulator voltage selection documentation

2019-09-17 Thread Marco Felsch
Add the documentation which describe the voltage selection gpio support. This property can be applied to each subnode within the 'regulators' node so each regulator can be configured differently. Signed-off-by: Marco Felsch --- Documentation/devicetree/bindings/mfd/da9062.txt | 9 + 1

[PATCH 4/5] dt-bindings: mfd: da9062: add regulator gpio enable/disable documentation

2019-09-17 Thread Marco Felsch
At the gpio-based regulator enable/disable documentation. This property can be applied to each subnode within the 'regulators' node so each regulator can be configured differently. Signed-off-by: Marco Felsch --- Documentation/devicetree/bindings/mfd/da9062.txt | 7 +++ 1 file changed, 7

[PATCH 0/5] DA9062 PMIC fixes and features

2019-09-17 Thread Marco Felsch
Hi, the main purpose of this serie is to add the voltage selection support upon a given gpio input signal and to dis-/enable a regulator upon a gpio input signal. This series depends on [1]. [1] https://patchwork.ozlabs.org/project/linux-gpio/list/?series=131029 Regards, Marco Marco Felsch

[PATCH 5/5] regulator: da9062: add gpio based regulator dis-/enable support

2019-09-17 Thread Marco Felsch
Each regulator can be enabeld/disabled by the internal pmic state machine or by a gpio input signal. Typically the OTP configures the regulators to be enabled/disabled on a specific sequence number which is most the time fine. Sometimes we need to reconfigure that due to a PCB bug. This patch adds

[PATCH 1/5] regulator: da9062: fix suspend_enable/disable preparation

2019-09-17 Thread Marco Felsch
Currently the suspend reg_field maps to the pmic voltage selection bits and is used during suspend_enabe/disable() and during get_mode(). This seems to be wrong for both use cases. Use case one (suspend_enabe/disable): Those callbacks are used to mark a regulator device as enabled/disabled during

[PATCH 3/5] regulator: da9062: add voltage selection gpio support

2019-09-17 Thread Marco Felsch
The DA9062/1 devices can switch their regulator voltages between voltage-A (active) and voltage-B (suspend) settings. Switching the voltages can be controlled by ther internal state-machine or by a gpio input signal and can be configured for each individual regulator. This commit adds the

Re: [FYI] lm3532: right registration to work with LED-backlight

2019-09-17 Thread Pavel Machek
Hi! > >>> +++ b/drivers/leds/leds-lm3532.c > >>> @@ -629,7 +629,7 @@ static int lm3532_parse_node(struct lm3532_data *priv) > >>> > >>> lm3532_init_registers(led); > >>> > >>> - ret = devm_led_classdev_register(priv->dev, >led_dev); > >>> + ret =

Re: [PATCH v2 1/3] iio: accel: adxl372: Fix/remove limitation for FIFO samples

2019-09-17 Thread Popa, Stefan Serban
On Du, 2019-09-15 at 14:27 +0100, Jonathan Cameron wrote: > > > > On Tue, 10 Sep 2019 17:43:32 +0300 > Stefan Popa wrote: > > > > > > > > > > > Currently, the driver sets the FIFO_SAMPLES register with the number of > > sample sets (maximum of 170 for 3 axis data, 256 for 2-axis and 512

Re: possible deadlock in usb_deregister_dev (2)

2019-09-17 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger crash: Reported-and-tested-by: syzbot+f9549f5ee8a5416f0...@syzkaller.appspotmail.com Tested on: commit: f0df5c1b usb-fuzzer: main usb gadget fuzzer driver git tree:

Re: [PATCH] dt-bindings: net: dwmac: fix 'mac-mode' type

2019-09-17 Thread Andrew Lunn
On Tue, Sep 17, 2019 at 01:30:52PM +0300, Alexandru Ardelean wrote: > The 'mac-mode' property is similar to 'phy-mode' and 'phy-connection-type', > which are enums of mode strings. > > The 'dwmac' driver supports almost all modes declared in the 'phy-mode' > enum (except for 1 or 2). But in

Re: [PATCH] ARM: dts: imx6dl: SolidRun: add phy node with 100Mb/s max-speed

2019-09-17 Thread tinywrkb
On Sun, Sep 15, 2019 at 03:56:52PM +0200, Andrew Lunn wrote: > > Tinywrkb confirmed to me in private communication that revert of > > 5502b218e001 fixes Ethernet for him on effected system. > > > > He also referred me to an old Cubox-i spec that lists 10/100 Ethernet > > only for i.MX6

Re: [PATCH] hw_random: don't wait on add_early_randomness()

2019-09-17 Thread Herbert Xu
On Tue, Sep 17, 2019 at 11:54:50AM +0200, Laurent Vivier wrote: > add_early_randomness() is called by hwrng_register() when the > hardware is added. If this hardware and its module are present > at boot, and if there is no data available the boot hangs until > data are available and can't be

[PATCH] lm3532: right registration to work with LED-backlight

2019-09-17 Thread Pavel Machek
Use new registration support, which will eventually be needed for proper backlight support. Signed-off-by: Pavel Machek diff --git a/drivers/leds/leds-lm3532.c b/drivers/leds/leds-lm3532.c index 0507c65..23f49b6 100644 --- a/drivers/leds/leds-lm3532.c +++ b/drivers/leds/leds-lm3532.c @@ -577,6

[PATCH v2 0/2] iio: stm32-adc: fix a race with dma and irq

2019-09-17 Thread Fabrice Gasnier
This series fixes a race condition observed when using several ADCs with DMA and irq. There's a precusor patch to the fix. It keeps registers definitions as a whole block, to ease readability and allow simple (readl) access path to EOC bits in stm32-adc-core driver. --- Changes in v2: - Add a

[PATCH v2 1/2] iio: adc: stm32-adc: move registers definitions

2019-09-17 Thread Fabrice Gasnier
Move STM32 ADC registers definitions to common header. This is precursor patch to: - iio: adc: stm32-adc: fix a race when using several adcs with dma and irq It keeps registers definitions as a whole block, to ease readability and allow simple access path to EOC bits (readl) in stm32-adc-core

[PATCH v2 2/2] iio: adc: stm32-adc: fix a race when using several adcs with dma and irq

2019-09-17 Thread Fabrice Gasnier
End of conversion may be handled by using IRQ or DMA. There may be a race when two conversions complete at the same time on several ADCs. EOC can be read as 'set' for several ADCs, with: - an ADC configured to use IRQs. EOCIE bit is set. The handler is normally called in this case. - an ADC

[GIT PULL] OpenRISC updates for v5.4

2019-09-17 Thread Stafford Horne
Hi Linus, Please consider pulling, The following changes since commit a55aa89aab90fae7c815b0551b07be37db359d76: Linux 5.3-rc6 (2019-08-25 12:01:23 -0700) are available in the Git repository at: git://github.com/openrisc/linux.git tags/for-linus for you to fetch changes up to

Re: Linux 5.3-rc8

2019-09-17 Thread Ahmed S. Darwish
On Tue, Sep 17, 2019 at 08:11:56AM -0400, Theodore Y. Ts'o wrote: > On Tue, Sep 17, 2019 at 09:33:40AM +0200, Martin Steigerwald wrote: > > Willy Tarreau - 17.09.19, 07:24:38 CEST: > > > On Mon, Sep 16, 2019 at 06:46:07PM -0700, Matthew Garrett wrote: > > > > >Well, the patch actually made

Re: [PATCH] irqchip/sifive-plic: add irq_mask and irq_unmask

2019-09-17 Thread Paul Walmsley
Just tested this on the SiFive HiFive Unleashed. Seems to work OK; however I did not stress-test it. Tested-by: Paul Walmsley # HiFive Unleashed - Paul # !cat cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 1: 0 0 0 0

Re: possible deadlock in usb_deregister_dev (2)

2019-09-17 Thread Johan Hovold
On Mon, Sep 16, 2019 at 02:42:06PM -0700, syzbot wrote: > syzbot has found a reproducer for the following crash on: > > HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: KMSAN: uninit-value in ld_usb_read

2019-09-17 Thread Andrey Konovalov
On Mon, Sep 16, 2019 at 8:49 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:014077b5 DO-NOT-SUBMIT: usb-fuzzer: main usb gadget fuzzer.. > git tree: https://github.com/google/kmsan.git master > console output:

Re: BUG: bad usercopy in ld_usb_read (2)

2019-09-17 Thread Andrey Konovalov
On Mon, Sep 16, 2019 at 8:49 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: KASAN: slab-out-of-bounds Read in ld_usb_read (2)

2019-09-17 Thread Andrey Konovalov
On Mon, Sep 16, 2019 at 8:49 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

[PATCH] [RFC] vmscan.c: add a sysctl entry for controlling memory reclaim IO congestion_wait length

2019-09-17 Thread Lin Feng
This sysctl is named as mm_reclaim_congestion_wait_jiffies, default to HZ/10 as unchanged to old codes. It is in jiffies unit and can be set in range between [1, 100], so refers to CONFIG_HZ before tuning. In direct and background(kswapd) pages reclaim paths both may fall into calling

Re: [PATCH 3/3] dmaengine: sf-pdma: add platform DMA support for HiFive Unleashed A00

2019-09-17 Thread kbuild test robot
/dmaengine-sf-pdma-Add-platform-dma-driver/20190917-142826 config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

Re: WARNING: ODEBUG bug in usbhid_probe

2019-09-17 Thread Andrey Konovalov
On Mon, Sep 16, 2019 at 8:49 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: [PATCH v3] net: mdio: switch to using gpiod_get_optional()

2019-09-17 Thread Andrew Lunn
On Mon, Sep 16, 2019 at 05:09:33PM -0700, Dmitry Torokhov wrote: > The MDIO device reset line is optional and now that gpiod_get_optional() > returns proper value when GPIO support is compiled out, there is no > reason to use fwnode_get_named_gpiod() that I plan to hide away. > > Let's switch to

Re: KASAN: global-out-of-bounds Read in __pm_runtime_resume

2019-09-17 Thread Andrey Konovalov
On Mon, Sep 16, 2019 at 8:49 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: [PATCH] spi: sifive: check return value for platform_get_resource()

2019-09-17 Thread Paul Walmsley
On Tue, 17 Sep 2019, Baolin Wang wrote: > On Tue, 17 Sep 2019 at 17:12, Aurabindo Jayamohanan wrote: > > > > platform_get_resource() may return NULL. If it is so, return -ENXIO > > > > Signed-off-by: Aurabindo Jayamohanan > > --- > > drivers/spi/spi-sifive.c | 6 ++ > > 1 file changed, 6

[PATCH?] powerpc: Hard wire PT_SOFTE value to 1 in gpr_get() too

2019-09-17 Thread Oleg Nesterov
I don't have a ppc machine, this patch wasn't even compile tested, could you please review? The commit a8a4b03ab95f ("powerpc: Hard wire PT_SOFTE value to 1 in ptrace & signals") changed ptrace_get_reg(PT_SOFTE) to report 0x1, but PTRACE_GETREGS still copies pt_regs->softe as is. This is not

Re: Linux 5.3-rc8

2019-09-17 Thread Theodore Y. Ts'o
On Tue, Sep 17, 2019 at 09:33:40AM +0200, Martin Steigerwald wrote: > Willy Tarreau - 17.09.19, 07:24:38 CEST: > > On Mon, Sep 16, 2019 at 06:46:07PM -0700, Matthew Garrett wrote: > > > >Well, the patch actually made getrandom() return en error too, but > > > >you seem more interested in the

Re: possible deadlock in open_rio (3)

2019-09-17 Thread Andrey Konovalov
On Tue, Sep 17, 2019 at 1:19 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan.git usb-fuzzer > console output:

Re: possible deadlock in open_rio (2)

2019-09-17 Thread Andrey Konovalov
On Mon, Sep 16, 2019 at 6:40 PM Alan Stern wrote: > > On Mon, 16 Sep 2019, syzbot wrote: > > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:f0df5c1b usb-fuzzer: main usb gadget fuzzer driver > > git tree: https://github.com/google/kasan.git usb-fuzzer > >

Re: KASAN: use-after-free Read in shmem_fault (2)

2019-09-17 Thread Kirill A. Shutemov
On Mon, Sep 09, 2019 at 06:04:12PM +0300, Kirill A. Shutemov wrote: > On Mon, Sep 09, 2019 at 06:55:21AM -0700, Matthew Wilcox wrote: > > On Mon, Sep 02, 2019 at 05:20:30PM +0300, Kirill A. Shutemov wrote: > > > On Mon, Sep 02, 2019 at 06:52:54AM -0700, Matthew Wilcox wrote: > > > > On Sat, Aug

Re: [PATCH] [RFC] vmscan.c: add a sysctl entry for controlling memory reclaim IO congestion_wait length

2019-09-17 Thread Matthew Wilcox
On Tue, Sep 17, 2019 at 07:58:24PM +0800, Lin Feng wrote: > In direct and background(kswapd) pages reclaim paths both may fall into > calling msleep(100) or congestion_wait(HZ/10) or wait_iff_congested(HZ/10) > while under IO pressure, and the sleep length is hard-coded and the later > two will

[PATCH v2 2/2] dt-bindings: sound: Convert Samsung SMDK audio complex

2019-09-17 Thread Maciej Falkowski
Convert Samsung SMDK audio complex to newer dt-schema format. Signed-off-by: Maciej Falkowski Signed-off-by: Marek Szyprowski --- v2: - Added missing Signed-off-by certificate --- .../bindings/sound/samsung,smdk-wm8994.txt| 14 --- .../bindings/sound/samsung,smdk-wm8994.yaml | 38

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