Re: [PATCH 6/7] ARM: s3c64xx: Switch to generic watchdog driver reset

2020-07-30 Thread Tomasz Figa
2020年7月29日(水) 21:15 Krzysztof Kozlowski : > > On Wed, Jul 29, 2020 at 07:33:33PM +0200, Tomasz Figa wrote: > > Hi Krzysztof, > > > > 2020年7月29日(水) 18:11 Krzysztof Kozlowski : > > > > > > Similarly to commit f6361c6b3880 ("ARM: S3C24XX: remove separate restart > > > code"), the platform watchdog res

Re: [PATCH] fbmem: pull fbcon_update_vcs() out of fb_set_var()

2020-07-30 Thread Daniel Vetter
On Thu, Jul 30, 2020 at 1:27 PM Tetsuo Handa wrote: > > On 2020/07/30 20:16, Daniel Vetter wrote: > > Patch looks good, except ... does this compile? fbcon_update_vcs is > > defined in fbcon.h, and that doesn't seem to be included here ... > > Maybe what we want is an fb_set_var_ioctl in fbmem.c s

powerpc64-linux-ld: mm/page_alloc.o:undefined reference to `node_reclaim_distance'

2020-07-30 Thread kernel test robot
: 11 months ago config: powerpc64-randconfig-r031-20200730 (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

Re: [PATCH v2 5/7] arch_topology,cpufreq,sched/core: constify arch_* cpumasks

2020-07-30 Thread Catalin Marinas
On Wed, Jul 22, 2020 at 10:37:30AM +0100, Ionela Voinescu wrote: > From: Valentin Schneider > > The passed cpumask arguments to: > - arch_set_freq_scale(), > - arch_set_thermal_pressure(), and > - arch_freq_counters_available() > > are only iterated over, so reflect this in the prototype. Thi

Re: [PATCH v2 6/7] arch_topology,arm,arm64: define arch_scale_freq_invariant()

2020-07-30 Thread Catalin Marinas
On Wed, Jul 22, 2020 at 10:37:31AM +0100, Ionela Voinescu wrote: > From: Valentin Schneider > > arch_scale_freq_invariant() is used by schedutil to determine whether > the scheduler's load-tracking signals are frequency invariant. Its > definition is overridable, though by default it is hardcoded

Re: [PATCH 6/7] ARM: s3c64xx: Switch to generic watchdog driver reset

2020-07-30 Thread Krzysztof Kozlowski
On Thu, Jul 30, 2020 at 01:34:38PM +0200, Tomasz Figa wrote: > 2020年7月29日(水) 21:15 Krzysztof Kozlowski : > > > > On Wed, Jul 29, 2020 at 07:33:33PM +0200, Tomasz Figa wrote: > > > Hi Krzysztof, > > > > > > 2020年7月29日(水) 18:11 Krzysztof Kozlowski : > > > > > > > > Similarly to commit f6361c6b3880 ("

linux-next: Tree for Jul 30

2020-07-30 Thread Stephen Rothwell
Hi all, Changes since 20200729: My fixes tree contains: dbf24e30ce2e ("device_cgroup: Fix RCU list debugging warning") Linus' tree gained a build failure for which I revertd a commit. The vfs tree lost its build failure. The printk tree lost its build failure. The net-next tree lost its bu

[PATCH 0/3] Venus - recovery from firmware crash

2020-07-30 Thread Stanimir Varbanov
Hello, The intention of this patchset is to correct the recovery sequence for Venus v4 (sdm845). Recently has been observed various recovery failures which leads to unreliable behavior in sys_error handler. To fix that the sys_error_handler is reworked, proper delays has been added over pmruntime

[PATCH] arm64: mm: add message to die() in die_kernel_fault()

2020-07-30 Thread Yue Hu
From: Yue Hu Just to identify the kernel fault more clearly. Signed-off-by: Yue Hu --- arch/arm64/mm/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index 8afb238..3a753c7 100644 --- a/arch/arm64/mm/fault.c +++ b/arch/ar

[PATCH 1/3] venus: parser: Prepare parser for multiple invocations

2020-07-30 Thread Stanimir Varbanov
Presently the hfi_parser has been called only once during driver probe. To prepare the parser function to be called multiple times from recovery we need to initialize few variables which are used during parsing time. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi_pars

[PATCH 3/3] venus: Add new interface queues reinit

2020-07-30 Thread Stanimir Varbanov
Presently the recovery mechanism is using two hfi functions to destroy and create interface queues. For the purpose of recovery we don't need to free and allocate the memory used for interface message queues, that's why we introduce new function which just reinit the queues. Also this will give to

[PATCH 2/3] venus: Rework recovery mechanism

2020-07-30 Thread Stanimir Varbanov
After power domains and clock restructuring the recovery for sdm845 and v4 did not work properly. Fix that by reworking the recovery function and the sequence. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.c | 24 ++- drivers/media/platform/qcom

Re: [Linux-kernel-mentees] [PATCH v3] media/v4l2-core: Fix kernel-infoleak in video_put_user()

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 11:18:04AM +0200, Arnd Bergmann wrote: > On Thu, Jul 30, 2020 at 10:38 AM Andy Shevchenko > wrote: > > On Thu, Jul 30, 2020 at 10:15:24AM +0200, Arnd Bergmann wrote: > > > On Thu, Jul 30, 2020 at 10:07 AM Bartosz Golaszewski > > > wrote: ... > > > I would argue that it

Upcoming: fscache rewrite

2020-07-30 Thread David Howells
Hi Linus, Trond/Anna, Steve, Eric, I have an fscache rewrite that I'm tempted to put in for the next merge window: https://lore.kernel.org/linux-fsdevel/159465784033.1376674.18106463693989811037.st...@warthog.procyon.org.uk/ It improves the code by: (*) Ripping out the stuff that uses

Re: [PATCH] media: uvcvideo: Replace HTTP links with HTTPS ones

2020-07-30 Thread Laurent Pinchart
Hi Alexander, Thank you for the patch. On Mon, Jul 13, 2020 at 06:22:46PM +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .s

[PATCH 05/23] user: Use generic ns_common::count

2020-07-30 Thread Kirill Tkhai
Convert user namespace to use generic counter. Signed-off-by: Kirill Tkhai --- include/linux/user_namespace.h |5 ++--- kernel/user.c |2 +- kernel/user_namespace.c|4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/linux/user_name

[PATCH 04/23] pid: Use generic ns_common::count

2020-07-30 Thread Kirill Tkhai
Convert pid namespace to use generic counter. Signed-off-by: Kirill Tkhai --- include/linux/pid_namespace.h |4 +--- kernel/pid.c |2 +- kernel/pid_namespace.c| 13 +++-- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/include/linux/pid_

[PATCH 07/23] cgroup: Use generic ns_common::count

2020-07-30 Thread Kirill Tkhai
Convert cgroup namespace to use generic counter. Signed-off-by: Kirill Tkhai --- include/linux/cgroup.h|5 ++--- kernel/cgroup/cgroup.c|2 +- kernel/cgroup/namespace.c |2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux

[PATCH 06/23] mnt: Use generic ns_common::count

2020-07-30 Thread Kirill Tkhai
Convert mount namespace to use generic counter. Signed-off-by: Kirill Tkhai --- fs/mount.h |3 +-- fs/namespace.c |4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/mount.h b/fs/mount.h index c3e0bb6e5782..f296862032ec 100644 --- a/fs/mount.h +++ b/fs/mount.h

[PATCH 02/23] uts: Use generic ns_common::count

2020-07-30 Thread Kirill Tkhai
Convert uts namespace to use generic counter instead of kref. Signed-off-by: Kirill Tkhai --- include/linux/utsname.h |9 - init/version.c |2 +- kernel/utsname.c|7 ++- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/include/linux/utsname

[PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Kirill Tkhai
Currently, every type of namespaces has its own counter, which is stored in ns-specific part. Say, @net has struct net::count, @pid has struct pid_namespace::kref, etc. This patchset introduces unified counter for all types of namespaces, and converts net namespace to use it first. Signed-off-by:

[PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Kirill Tkhai
Currently, there is no a way to list or iterate all or subset of namespaces in the system. Some namespaces are exposed in /proc/[pid]/ns/ directories, but some also may be as open files, which are not attached to a process. When a namespace open fd is sent over unix socket and then closed, it is im

[PATCH 03/23] ipc: Use generic ns_common::count

2020-07-30 Thread Kirill Tkhai
Convert uts namespace to use generic counter. Signed-off-by: Kirill Tkhai --- include/linux/ipc_namespace.h |3 +-- ipc/msgutil.c |2 +- ipc/namespace.c |4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux/ipc_namespace.h

[PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Kirill Tkhai
This patch introduces a new IDR and functions to add/remove and iterate registered namespaces in the system. It will be used to list namespaces in /proc/namespaces/... in next patches. The IDR is protected by ns_idr, and it's choosen to be a spinlock (not mutex) to allow calling ns_idr_unregister(

[PATCH 08/23] time: Use generic ns_common::count

2020-07-30 Thread Kirill Tkhai
Convert time namespace to use generic counter. Signed-off-by: Kirill Tkhai --- include/linux/time_namespace.h |9 - kernel/time/namespace.c|9 +++-- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/include/linux/time_namespace.h b/include/linux/time_nam

[PATCH 10/23] fs: Rename fs/proc/namespaces.c into fs/proc/task_namespaces.c

2020-07-30 Thread Kirill Tkhai
This file is about task namespaces, so we rename it. No functional changes. Signed-off-by: Kirill Tkhai --- fs/proc/Makefile |2 fs/proc/internal.h|2 fs/proc/namespaces.c | 183 - fs/proc/task_namespaces.c | 183 +

[PATCH 13/23] user: Add user namespaces into ns_idr

2020-07-30 Thread Kirill Tkhai
Now they are exposed in /proc/namespace/ directory. Signed-off-by: Kirill Tkhai --- kernel/user_namespace.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index 367a942bb484..bbfd7f0f9e7c 100644 --- a/kernel/user_

[PATCH 11/23] fs: Add /proc/namespaces/ directory

2020-07-30 Thread Kirill Tkhai
This is a new directory to show all namespaces, which can be accessed from this /proc tasks credentials. Every /proc is related to a pid_namespace, and the pid_namespace is related to a user_namespace. The items, we show in this /proc/namespaces/ directory, are the namespaces, whose user_namespace

[PATCH 15/23] pid: Eextract child_reaper check from pidns_for_children_get()

2020-07-30 Thread Kirill Tkhai
This check if for prohibiting access to /proc/[pid]/ns/pid_for_children before first task of the pid namespace is created. /proc/namespaces/ code will use this check too, so we move it into a separate function. Signed-off-by: Kirill Tkhai --- kernel/pid_namespace.c | 25 ++

[PATCH 14/23] net: Add net namespaces into ns_idr

2020-07-30 Thread Kirill Tkhai
Now they are exposed in /proc/namespace/ directory. We already wait RCU grace period in cleanup_net() before pernet_operations exit, so ns_idr_unregister() works as expected. Signed-off-by: Kirill Tkhai --- net/core/net_namespace.c | 12 +++- 1 file changed, 11 insertions(+), 1 deleti

[PATCH 16/23] proc_ns_operations: Add can_get method

2020-07-30 Thread Kirill Tkhai
This is a new method to prohibit some namespaces in intermediate state. Currently, it's used to prohibit pid namespace, whose child reaper is not created yet (similar to we have in /proc/[pid]/pid_for_children). Signed-off-by: Kirill Tkhai --- fs/proc/namespaces.c|5 + include/linux/

[PATCH 12/23] user: Free user_ns one RCU grace period after final counter put

2020-07-30 Thread Kirill Tkhai
This is needed to link user_ns into ns_idr in next patch. Signed-off-by: Kirill Tkhai --- include/linux/user_namespace.h |5 - kernel/user_namespace.c|9 - 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/include/linux/user_namespace.h b/include/linux/u

[PATCH 18/23] uts: Free uts namespace one RCU grace period after final counter put

2020-07-30 Thread Kirill Tkhai
This is needed to link uts_ns into ns_idr in next patch. Signed-off-by: Kirill Tkhai --- include/linux/utsname.h |1 + kernel/utsname.c| 10 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/include/linux/utsname.h b/include/linux/utsname.h index 2b1737c9b24

drivers/usb/host/ehci-hcd.c:1286: warning: "PLATFORM_DRIVER" redefined

2020-07-30 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 83bdc7275e6206f560d247be856bceba3e1ed8f2 commit: 88eaaecc44461f9fb147bf7ee6ccc6d4e9fc23e0 usb: host: Enable compile testing for some of drivers date: 7 months ago config: sparc-randconfig-r032-20200730

Re: [PATCH] mm: memcontrol: don't count limit-setting reclaim as memory pressure

2020-07-30 Thread Michal Hocko
On Tue 28-07-20 09:52:10, Johannes Weiner wrote: > When an outside process lowers one of the memory limits of a cgroup > (or uses the force_empty knob in cgroup1), direct reclaim is performed > in the context of the write(), in order to directly enforce the new > limit and have it being met by the

[PATCH 17/23] pid: Add pid namespaces into ns_idr

2020-07-30 Thread Kirill Tkhai
Now they are exposed in /proc/namespace/ directory. Note, that we already wait RCU grace period before pid namespace's memory is freed. Signed-off-by: Kirill Tkhai --- kernel/pid_namespace.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/kernel/pid_namespace.c b/kernel/pid_namesp

[PATCH 22/23] cgroup: Add cgroup namespaces into ns_idr

2020-07-30 Thread Kirill Tkhai
Now they are exposed in /proc/namespace/ directory. Signed-off-by: Kirill Tkhai --- include/linux/cgroup.h|1 + kernel/cgroup/namespace.c | 23 +++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index

[PATCH 23/23] time: Add time namespaces into ns_idr

2020-07-30 Thread Kirill Tkhai
Now they are exposed in /proc/namespace/ directory. Signed-off-by: Kirill Tkhai --- include/linux/time_namespace.h |1 + kernel/time/namespace.c| 11 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/include/linux/time_namespace.h b/include/linux/time_names

[PATCH 20/23] ipc: Add ipc namespaces into ns_idr

2020-07-30 Thread Kirill Tkhai
Now they are exposed in /proc/namespace/ directory. Signed-off-by: Kirill Tkhai --- ipc/namespace.c | 13 - ipc/shm.c |1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ipc/namespace.c b/ipc/namespace.c index 7bd0766ddc3b..ce6f87dd6d08 100644 --- a/ipc/n

[PATCH 21/23] mnt: Add mount namespaces into ns_idr

2020-07-30 Thread Kirill Tkhai
Now they are exposed in /proc/namespace/ directory. Signed-off-by: Kirill Tkhai --- fs/mount.h |1 + fs/namespace.c | 10 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/fs/mount.h b/fs/mount.h index f296862032ec..cde7f7bed8ec 100644 --- a/fs/mount.h +++ b/fs/

[PATCH 19/23] uts: Add uts namespaces into ns_idr

2020-07-30 Thread Kirill Tkhai
Now they are exposed in /proc/namespace/ directory. Signed-off-by: Kirill Tkhai --- kernel/utsname.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/kernel/utsname.c b/kernel/utsname.c index aebf4df5f592..883855ca16cd 100644 --- a/kernel/utsname.c +++ b/kernel/utsname.c @@ -70,

Re: linux-next: manual merge of the hmm tree with the drm tree

2020-07-30 Thread Jason Gunthorpe
On Thu, Jul 30, 2020 at 07:21:10PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the hmm tree got a conflict in: > > drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c > > between commit: > > 7763d24f3ba0 ("drm/nouveau/vmm/gp100-: fix mapping 2MB sysmem pages") >

Re: [PATCH 04/15] arm64: numa: simplify dummy_numa_init()

2020-07-30 Thread Catalin Marinas
On Tue, Jul 28, 2020 at 08:11:42AM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > dummy_numa_init() loops over memblock.memory and passes nid=0 to > numa_add_memblk() which essentially wraps memblock_set_node(). However, > memblock_set_node() can cope with entire memory span itself, so the

Re: [PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10

2020-07-30 Thread Michael Ellerman
Segher Boessenkool writes: > On Wed, Jul 29, 2020 at 03:44:56PM -0400, Vladis Dronov wrote: >> > > Certain warnings are emitted for powerpc code when building with a gcc-10 >> > > toolset: >> > > >> > > WARNING: modpost: vmlinux.o(.text.unlikely+0x377c): Section mismatch >> > > in >> > >

Re: [perf] Explicitly use python[3]-[config]

2020-07-30 Thread Sedat Dilek
On Thu, Jul 30, 2020 at 1:20 PM Arnaldo Carvalho de Melo wrote: > > Em Thu, Jul 30, 2020 at 12:06:55PM +0200, Sedat Dilek escreveu: > > Hi, > > > > I wanted to have some detailed numbers for building a Linux-kernel > > with GNU-eco-system means GNU/gcc-10 and GNU/binutils-2,35 VS. > > LLVM/Clang w

KASAN: slab-out-of-bounds Read in prism2sta_probe_usb

2020-07-30 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e3ee0e74 usb: common: usb-conn-gpio: Register charger git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=14ff152490 kernel config: ht

Re: [PATCH net-next RFC 02/13] devlink: Add reload levels data to dev get

2020-07-30 Thread Moshe Shemesh
On 7/30/2020 12:11 AM, Jakub Kicinski wrote: On Wed, 29 Jul 2020 17:37:41 +0300 Moshe Shemesh wrote: The fact that the driver supports fw_live_patch, does not necessarily mean that the currently running FW can be live upgraded to the currently flashed one, right? That's correct, though the fe

Re: [PATCH net-next RFC 09/13] devlink: Add enable_remote_dev_reset generic parameter

2020-07-30 Thread Moshe Shemesh
On 7/29/2020 11:57 PM, Jakub Kicinski wrote: On Wed, 29 Jul 2020 17:42:12 +0300 Moshe Shemesh wrote: On 7/28/2020 3:59 AM, Jakub Kicinski wrote: On Mon, 27 Jul 2020 14:02:29 +0300 Moshe Shemesh wrote: The enable_remote_dev_reset devlink param flags that the host admin allows device resets th

[patch V3 3/3] x86: Select POSIX_CPU_TIMERS_TASK_WORK

2020-07-30 Thread Thomas Gleixner
From: Thomas Gleixner Move POSIX CPU timer expiry and signal delivery into task context. Signed-off-by: Thomas Gleixner --- arch/x86/Kconfig |1 + 1 file changed, 1 insertion(+) --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -209,6 +209,7 @@ config X86 select HAVE_PERF_REGS

[patch V3 1/3] posix-cpu-timers: Split run_posix_cpu_timers()

2020-07-30 Thread Thomas Gleixner
From: Thomas Gleixner Split it up as a preparatory step to move the heavy lifting out of interrupt context. Signed-off-by: Thomas Gleixner --- kernel/time/posix-cpu-timers.c | 43 ++--- 1 file changed, 24 insertions(+), 19 deletions(-) --- a/kernel/time/

[patch V3 0/3] posix-cpu-timers: Move expiry into task work context

2020-07-30 Thread Thomas Gleixner
This is the 3rd installment of the series to move posix timer expiry heavy lifting out of hard interrupt context. Running posix CPU timers in hard interrupt context has a few downsides: - For PREEMPT_RT it cannot work as the expiry code needs to take sighand lock, which is a 'sleeping spinloc

[patch V3 2/3] posix-cpu-timers: Provide mechanisms to defer timer handling to task_work

2020-07-30 Thread Thomas Gleixner
From: Thomas Gleixner Running posix CPU timers in hard interrupt context has a few downsides: - For PREEMPT_RT it cannot work as the expiry code needs to take sighand lock, which is a 'sleeping spinlock' in RT. The original RT approach of offloading the posix CPU timer handling into a hig

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

2020-07-30 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 83bdc7275e6206f560d247be856bceba3e1ed8f2 commit: 797047f875b5463719cc70ba213eb691d453c946 net: ks8851: Implement Parallel bus operations date: 9 weeks ago config: arm-randconfig-s031-20200730 (attached as

Re: [PATCH 06/15] powerpc: fadamp: simplify fadump_reserve_crash_area()

2020-07-30 Thread Michael Ellerman
Mike Rapoport writes: > From: Mike Rapoport > > fadump_reserve_crash_area() reserves memory from a specified base address > till the end of the RAM. > > Replace iteration through the memblock.memory with a single call to > memblock_reserve() with appropriate that will take care of proper memory

Re: Upcoming: fscache rewrite

2020-07-30 Thread Matthew Wilcox
On Thu, Jul 30, 2020 at 12:51:16PM +0100, David Howells wrote: > (3) Al has objections to the ITER_MAPPING iov_iter type that I added > > > https://lore.kernel.org/linux-fsdevel/20200719014436.gg2786...@zeniv.linux.org.uk/ > > but note that iov_iter_for_each_range() is not actually u

Re: [PATCH 11/23] fs: Add /proc/namespaces/ directory

2020-07-30 Thread Alexey Dobriyan
On Thu, Jul 30, 2020 at 03:00:19PM +0300, Kirill Tkhai wrote: > # ls /proc/namespaces/ -l > lrwxrwxrwx 1 root root 0 Jul 29 16:50 'cgroup:[4026531835]' -> > 'cgroup:[4026531835]' > lrwxrwxrwx 1 root root 0 Jul 29 16:50 'ipc:[4026531839]' -> 'ipc:[4026531839]' > lrwxrwxrwx 1 root root 0 Jul 29 16:

[PATCH] lib: Convert test_uuid.c to KUnit

2020-07-30 Thread Arpitha Raghunandan
Converts test lib/test_uuid.c to KUnit Signed-off-by: Arpitha Raghunandan <98.a...@gmail.com> --- lib/Kconfig.debug | 7 +-- lib/Makefile | 2 +- lib/{test_uuid.c => uuid_kunit.c} | 84 +-- 3 files changed, 28 insertions(+), 65 de

Re: [PATCH] arm64/alternatives: move length validation inside the subsection

2020-07-30 Thread Catalin Marinas
On Wed, Jul 29, 2020 at 02:51:52PM -0700, Sami Tolvanen wrote: > Commit f7b93d42945c ("arm64/alternatives: use subsections for replacement > sequences") breaks LLVM's integrated assembler, because due to its > one-pass design, it cannot compute instruction sequence lengths before the > layout for t

Re: [PATCH 0/3] arm64: delete duplicated words

2020-07-30 Thread Catalin Marinas
On Sat, 25 Jul 2020 17:32:04 -0700, Randy Dunlap wrote: > Delete duplicated words in arch/arm64/ header files. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-ker...@lists.infradead.org > > arch/arm64/include/asm/pgtable-hwdef.h |4 ++-- > arch/arm64/include/asm/ptrace.h

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Matthew Wilcox
On Thu, Jul 30, 2020 at 03:00:08PM +0300, Kirill Tkhai wrote: > This patch introduces a new IDR and functions to add/remove and iterate > registered namespaces in the system. It will be used to list namespaces > in /proc/namespaces/... in next patches. Looks like you could use an XArray for this a

Re: [PATCH v5 00/75] x86: SEV-ES Guest Support

2020-07-30 Thread Joerg Roedel
Hi Mike, On Thu, Jul 30, 2020 at 01:27:48AM +, Mike Stunes wrote: > Thanks for the updated patches! I applied this patch-set onto commit > 01634f2bd42e ("Merge branch 'x86/urgent’”) from your tree. It boots, > but CPU 1 (on a two-CPU VM) is offline at boot, and `chcpu -e 1` returns: > > chcpu

Re: [PATCH] arm64: mm: add message to die() in die_kernel_fault()

2020-07-30 Thread Catalin Marinas
On Thu, Jul 30, 2020 at 07:47:57PM +0800, Yue Hu wrote: > From: Yue Hu > > Just to identify the kernel fault more clearly. > > Signed-off-by: Yue Hu > --- > arch/arm64/mm/fault.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fau

[PATCH v7 3/9] remoteproc: qcom: Add support for split q6 + m3 wlan firmware

2020-07-30 Thread Gokul Sriram Palanisamy
IPQ8074 supports split firmware for q6 and m3 as well. So add support for loading the m3 firmware before q6. Now the drivers works fine for both split and unified firmwares. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- drivers/remoteproc

[PATCH v7 5/9] remoteproc: qcom: Update regmap offsets for halt register

2020-07-30 Thread Gokul Sriram Palanisamy
Fixed issue in reading halt-regs parameter from device-tree. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R --- drivers/remoteproc/qcom_q6v5_wcss.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c

[PATCH v7 9/9] arm64: dts: qcom: Enable Q6v5 WCSS for ipq8074 SoC

2020-07-30 Thread Gokul Sriram Palanisamy
Enable remoteproc WCSS PIL driver with glink and ssr subdevices. Also configures shared memory and enables smp2p and mailboxes required for IPC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 121 +++

[PATCH v7 8/9] arm64: dts: Add support for scm on IPQ8074 SoCs

2020-07-30 Thread Gokul Sriram Palanisamy
Enables scm support, clock is not needed for enabling scm interface. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts

[PATCH v7 1/9] remoteproc: qcom: Add PRNG proxy clock

2020-07-30 Thread Gokul Sriram Palanisamy
PRNG clock is needed by the secure PIL, support for the same is added in subsequent patches. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- drivers/remoteproc/qcom_q6v5_wcss.c | 65 +++-- 1 file changed, 47

[PATCH v7 4/9] remoteproc: qcom: Add ssr subdevice identifier

2020-07-30 Thread Gokul Sriram Palanisamy
Add name for ssr subdevice on IPQ8074 SoC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- drivers/remoteproc/qcom_q6v5_wcss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c b/drivers/remoteproc/qco

Re: [PATCH RFC v6 1/6] dt-bindings: exynos-bus: Add documentation for interconnect properties

2020-07-30 Thread Sylwester Nawrocki
On 09.07.2020 23:04, Rob Herring wrote: > On Thu, Jul 02, 2020 at 06:37:19PM +0200, Sylwester Nawrocki wrote: >> Add documentation for new optional properties in the exynos bus nodes: >> samsung,interconnect-parent, #interconnect-cells, bus-width. >> These properties allow to specify the SoC interc

[PATCH v7 6/9] dt-bindings: clock: qcom: Add reset for WCSSAON

2020-07-30 Thread Gokul Sriram Palanisamy
Add binding for WCSSAON reset required for Q6v5 reset on IPQ8074 SoC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V Acked-by: Rob Herring Acked-by: Stephen Boyd --- include/dt-bindings/clock/qcom,gcc-ipq8074.h | 1 + 1 file changed, 1 inser

[PATCH v7 2/9] remoteproc: qcom: Add secure PIL support

2020-07-30 Thread Gokul Sriram Palanisamy
IPQ8074 uses secure PIL. Hence, adding the support for the same. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- drivers/remoteproc/qcom_q6v5_wcss.c | 43 ++--- 1 file changed, 40 insertions(+), 3 deletions(-

Re: [PATCH bpf-next 1/1] arm64: bpf: Add BPF exception tables

2020-07-30 Thread Qian Cai
On Tue, Jul 28, 2020 at 05:21:26PM +0200, Jean-Philippe Brucker wrote: > When a tracing BPF program attempts to read memory without using the > bpf_probe_read() helper, the verifier marks the load instruction with > the BPF_PROBE_MEM flag. Since the arm64 JIT does not currently recognize > this fla

[PATCH v7 0/9] remoteproc: qcom: q6v5-wcss: Add support for secure pil

2020-07-30 Thread Gokul Sriram Palanisamy
IPQ8074 needs support for secure pil as well. Also, currently only unified firmware is supported. IPQ8074 supports split firmware for q6 and m3, so adding support for that. This series is based on Govind's "[v8] Add non PAS wcss Q6 support for QCS404" changes since v6: - Rebased on top of the ab

[PATCH v7 7/9] clk: qcom: Add WCSSAON reset

2020-07-30 Thread Gokul Sriram Palanisamy
Add WCSSAON reset required for Q6v5 on IPQ8074 SoC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V Acked-by: Stephen Boyd --- drivers/clk/qcom/gcc-ipq8074.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/gcc-ipq8074.c b/

Re: [PATCH net-next RFC 01/13] devlink: Add reload level option to devlink reload command

2020-07-30 Thread Moshe Shemesh
On 7/30/2020 12:07 AM, Jakub Kicinski wrote: On Wed, 29 Jul 2020 17:54:08 +0300 Moshe Shemesh wrote: On 7/28/2020 11:06 PM, Jakub Kicinski wrote: On Tue, 28 Jul 2020 12:18:30 -0700 Jacob Keller wrote: On 7/28/2020 11:44 AM, Jakub Kicinski wrote: From user perspective what's important is w

drivers/crypto/marvell/cesa/tdma.c:117:40: sparse: sparse: incorrect type in assignment (different base types)

2020-07-30 Thread kernel test robot
Marvell date: 4 months ago config: arm-randconfig-s031-20200730 (attached as .config) compiler: arm-linux-gnueabi-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

[PATCH] iocost_monitor: start from the oldest usage index

2020-07-30 Thread Chengming Zhou
iocg usage_idx is the latest usage index, we should start from the oldest usage index to show the consecutive NR_USAGE_SLOTS usages. Signed-off-by: Chengming Zhou --- tools/cgroup/iocost_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cgroup/iocost_monitor.py

Re: [PATCH v4] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-30 Thread Heikki Krogerus
Hi, One more nitpick below... On Thu, Jul 30, 2020 at 12:25:31AM -0700, Badhri Jagan Sridharan wrote: > @@ -4786,10 +4807,28 @@ static int devm_tcpm_psy_register(struct tcpm_port > *port) > return PTR_ERR_OR_ZERO(port->psy); > } > > +static enum hrtimer_restart state_machine_timer_handl

drivers/video/fbdev/nvidia/nvidia.c:1411:20: sparse: sparse: incorrect type in argument 1 (different modifiers)

2020-07-30 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 83bdc7275e6206f560d247be856bceba3e1ed8f2 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 6 weeks ago config: arc-randconfig-s032-20200730 (attached

Re: Upcoming: fscache rewrite

2020-07-30 Thread David Howells
Matthew Wilcox wrote: > I suspect you don't need to call find_get_pages_contig(). If you look > at __readahead_batch() in pagemap.h, it does basically what you want > (other than being wrapped up inside the readahead iterator). You require > the pages already be pinned in the xarray, so there's

Re: [PATCH 1/4] KVM: SVM: nested: Don't allocate VMCB structures on stack

2020-07-30 Thread Joerg Roedel
Hi Sean, thanks for your review! On Wed, Jul 29, 2020 at 08:14:55AM -0700, Sean Christopherson wrote: > On Wed, Jul 29, 2020 at 03:22:31PM +0200, Joerg Roedel wrote: > Speaking of too large, would it be overly paranoid to add: > > BUILD_BUG_ON(sizeof(struct vmcb_control_area) + sizeof(struct

[PATCH] perf/x86: Reset the counter to prevent the leak for a RDPMC task

2020-07-30 Thread kan . liang
From: Kan Liang The counter value of a perf task may leak to another RDPMC task. For example, a perf stat task as below is running on CPU 0. perf stat -e 'branches,cycles' -- taskset -c 0 ./workload In the meantime, an RDPMC task, which is also running on CPU 0, may read the GP counters per

Re: [PATCH v2 0/9] Make check implementation arch agnostic

2020-07-30 Thread peterz
On Thu, Jul 30, 2020 at 10:46:43AM +0100, Julien Thierry wrote: > Julien Thierry (8): > objtool: Group headers to check in a single list > objtool: Make sync-check consider the target architecture > objtool: Move macros describing structures to arch-dependent code > objtool: Abstract alter

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread Julien Thierry
On 7/30/20 10:57 AM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 10:41:41AM +0100, Julien Thierry wrote: + if (file->elf->changed) + return elf_write(file->elf); + else + return 0; } I think we can do wi

Re: [RFC 1/7] mac80211: Add check for napi handle before WARN_ON

2020-07-30 Thread Johannes Berg
On Sun, 2020-07-26 at 21:49 +0530, Rakesh Pillai wrote: > We do have the usage of napi_gro_receive and netif_receive_skb in mac80211. > /* deliver to local stack */ > if (rx->napi) > napi_gro_receive(rx->napi, skb); > else >

Re: [PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-07-30 Thread Julien Thierry
On 7/30/20 11:03 AM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 10:41:43AM +0100, Julien Thierry wrote: One orc_entry is associated with each instruction in the object file, but having the orc_entry contained by the instruction structure forces architectures not implementing the orc

[PATCH 2/2] dt-bindings: mtd: Convert imx nand to json-schema

2020-07-30 Thread Anson Huang
Convert the i.MX nand controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/mtd/mxc-nand.txt | 19 -- .../devicetree/bindings/mtd/mxc-nand.yaml | 42 ++ 2 files changed, 42 insertions(+), 19

[PATCH 1/2] dt-bindings: mtd: Convert gpmi nand to json-schema

2020-07-30 Thread Anson Huang
Convert the gpmi nand controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/mtd/gpmi-nand.txt | 75 - .../devicetree/bindings/mtd/gpmi-nand.yaml | 118 + 2 files changed, 118 insertions(+

Re: [PATCH -next] powerpc: use for_each_child_of_node() macro

2020-07-30 Thread Michael Ellerman
On Tue, 28 Jul 2020 10:28:07 +0800, Qinglang Miao wrote: > Use for_each_child_of_node() macro instead of open coding it. Applied to powerpc/next. [1/1] powerpc: use for_each_child_of_node() macro https://git.kernel.org/powerpc/c/b6ac59d39a348af29477d7bfdc3ba23526e3f4ea cheers

Re: [PATCH][next] powerpc: Use fallthrough pseudo-keyword

2020-07-30 Thread Michael Ellerman
On Mon, 27 Jul 2020 17:42:01 -0500, Gustavo A. R. Silva wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > fall-through markings when it is the case. > > [1] > https://www.kernel.org/doc/html/v5

Re: [PATCH -next] powerpc/powernv/sriov: Remove unused but set variable 'phb'

2020-07-30 Thread Michael Ellerman
On Tue, 28 Jul 2020 01:11:12 +0800, Wei Yongjun wrote: > Gcc report warning as follows: > > arch/powerpc/platforms/powernv/pci-sriov.c:602:25: warning: > variable 'phb' set but not used [-Wunused-but-set-variable] > 602 | struct pnv_phb*phb; > | ^~~ > > [

Re: [PATCH v2 1/5] selftests/powerpc: Add test of stack expansion logic

2020-07-30 Thread Michael Ellerman
On Fri, 24 Jul 2020 19:25:24 +1000, Michael Ellerman wrote: > We have custom stack expansion checks that it turns out are extremely > badly tested and contain bugs, surprise. So add some tests that > exercise the code and capture the current boundary conditions. > > The signal test currently fails

Re: [char-misc-next V2] mei: hdcp: fix mei_hdcp_verify_mprime() input paramter

2020-07-30 Thread Gustavo A. R. Silva
Hi Tomas, On 7/30/20 02:02, Tomas Winkler wrote: > wired_cmd_repeater_auth_stream_req_in has a variable > length array at the end. we use struct_size() overflow > macro to determine the size for the allocation and sending > size. > My comments here: https://lore.kernel.org/lkml/66c9950c-ef54-423

Re: [PATCH v2 1/1] rcu/tree: Drop the lock before entering to page allocator

2020-07-30 Thread Joel Fernandes
On Mon, Jul 27, 2020 at 11:10:12PM +0200, Uladzislau Rezki (Sony) wrote: > If the kernel is built with CONFIG_PROVE_RAW_LOCK_NESTING > option, the lockedp will complain about violation of the > nesting rules: > > > [ 28.060389] = > [ 28.060389] [ BUG: Invalid wait

Re: [PATCH v4] scripts: use pkg-config to locate libcrypto

2020-07-30 Thread Rolf Eike Beer
Am Montag, 27. April 2020, 10:11:28 CEST schrieb Rolf Eike Beer: > From 082ba542ca4c710dcf592a6f9233603b9275d05d Mon Sep 17 00:00:00 2001 > From: Rolf Eike Beer > Date: Thu, 22 Nov 2018 16:40:49 +0100 > Subject: [PATCH 1/2] scripts: use pkg-config to locate libcrypto > > Otherwise build fails if

Re: [PATCH] perf/x86: Reset the counter to prevent the leak for a RDPMC task

2020-07-30 Thread peterz
On Thu, Jul 30, 2020 at 05:38:15AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > The counter value of a perf task may leak to another RDPMC task. Sure, but nowhere did you explain why that is a problem. > The RDPMC instruction is only available for the X86 platform. Only apply >

Re: [PATCH] arm64: mm: add message to die() in die_kernel_fault()

2020-07-30 Thread Yue Hu
On Thu, 30 Jul 2020 13:27:23 +0100 Catalin Marinas wrote: > On Thu, Jul 30, 2020 at 07:47:57PM +0800, Yue Hu wrote: > > From: Yue Hu > > > > Just to identify the kernel fault more clearly. > > > > Signed-off-by: Yue Hu > > --- > > arch/arm64/mm/fault.c | 2 +- > > 1 file changed, 1 insertion

[RFC PATCH 0/3] ARM: mstar: msc313 intc driver

2020-07-30 Thread Daniel Palmer
This is the first driver for the MStar/SigmaStar chips. All of the chips so far have two instances of this controller. One instance controls what are called "IRQ" interrupts by the vendor code I have seen. The other instance controls what are called "FIQ" interrupts by the vendor code. Presumabl

[RFC PATCH 2/3] ARM: mstar: msc313-intc interrupt controller driver

2020-07-30 Thread Daniel Palmer
Add a driver for the two peripheral interrupt controllers in MStar MSC313 and other MStar/Sigmastar Armv7 SoCs. Supports both the "IRQ" and "FIQ" controllers that forward interrupts from the various IP blocks inside the SoC to the ARM GIC. They are basically the same thing except for one differen

[RFC PATCH 1/3] dt: bindings: interrupt-controller: Add binding description for msc313-intc

2020-07-30 Thread Daniel Palmer
Adds a YAML description of the binding for the msc313-intc. Signed-off-by: Daniel Palmer Tested-by: Willy Tarreau --- .../mstar,msc313-intc.yaml| 79 +++ MAINTAINERS | 1 + 2 files changed, 80 insertions(+) create mode 1006

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