Re: [PATCH] bitops: simplify get_count_order_long()

2020-05-27 Thread Andrew Morton
On Wed, 27 May 2020 22:45:42 + Wei Yang wrote: > /* a tiny module only meant to test get_count_order/long */ > unsigned int order_comb[][2] = { > {0x0003, 2}, > {0x0004, 2}, > {0x1fff, 13}, > {0x2000, 13}, > {0x5000, 32}, >

[PATCH V2] nilfs2: Fix reference count leak in nilfs_sysfs_create_device_group

2020-05-27 Thread wu000273
From: Qiushi Wu kobject_init_and_add() takes reference even when it fails. In nilfs_sysfs_create_device_group(), the memory allocated by kobject_init_and_add() is not freed when kobject_init_and_add() fails. Fix this issue by calling kobject_put() to clean up the kobject. Fixes: da7141fb78db

Re: [v3 2/2] dts: ppc: t1024rdb: remove interrupts property

2020-05-27 Thread Li Yang
On Tue, May 26, 2020 at 10:52 PM Biwen Li wrote: > > From: Biwen Li > > Since the interrupt pin for RTC DS1339 is not connected > to the CPU on T1024RDB, remove the interrupt property > from the device tree. > > This also fix the following warning for hwclock.util-linux: > $ hwclock.util-linux >

Re: [v3 1/2] dts: ppc: t4240rdb: remove interrupts property

2020-05-27 Thread Li Yang
On Tue, May 26, 2020 at 10:49 PM Biwen Li wrote: > > From: Biwen Li > > Since the interrupt pin for RTC DS1374 is not connected > to the CPU on T4240RDB, remove the interrupt property > from the device tree. > > This also fix the following warning for hwclock.util-linux: > $ hwclock.util-linux >

[PATCH] selftests/x86: Add a syscall_arg_fault_64 test for negative GSBASE

2020-05-27 Thread Andy Lutomirski
If the kernel erroneously allows WRGSBASE and user code writes a negative value, paranoid_entry will get confused. Check for this by writing a negative value to GSBASE and doing SYSENTER with TF set. A successful run looks like: [RUN] SYSENTER with TF, invalid state, and GSBASE < 0

Re: [PATCH 08/15] efi/x86: Move command-line initrd loading to efi_main

2020-05-27 Thread Arvind Sankar
On Wed, May 27, 2020 at 03:56:45PM -0700, Dan Williams wrote: > On Wed, May 27, 2020 at 3:47 PM Arvind Sankar wrote: > > > > On Wed, May 27, 2020 at 10:30:18PM +, Williams, Dan J wrote: > > > On Fri, 2020-05-08 at 20:01 +0200, Ard Biesheuvel wrote: > > > > From: Arvind Sankar > > > > > > > >

Re: [PATCH v2 0/2] workqueue: Make the workqueue code PREEMPT_RT safe

2020-05-27 Thread Linus Torvalds
On Wed, May 27, 2020 at 12:47 PM Sebastian Andrzej Siewior wrote: > > v1…v2: Use rcuwait instead of swait. Thanks, both series look sane to me. I only scanned the other one, but I didn't see anything that made me go "Hmm". Linus

Re: [PATCH 08/15] efi/x86: Move command-line initrd loading to efi_main

2020-05-27 Thread Dan Williams
On Wed, May 27, 2020 at 3:47 PM Arvind Sankar wrote: > > On Wed, May 27, 2020 at 10:30:18PM +, Williams, Dan J wrote: > > On Fri, 2020-05-08 at 20:01 +0200, Ard Biesheuvel wrote: > > > From: Arvind Sankar > > > > > > Consolidate the initrd loading in efi_main. > > > > > > The command line

Re: [PATCH 1/2] seccomp: notify user trap about unused filter

2020-05-27 Thread Tycho Andersen
On Wed, May 27, 2020 at 03:36:09PM -0700, Kees Cook wrote: > On Wed, May 27, 2020 at 03:52:03PM -0600, Tycho Andersen wrote: > > On Wed, May 27, 2020 at 02:43:49PM -0700, Kees Cook wrote: > > > (While I'm here -- why can there be only one listener per task? The > > > notifications are

Re: [PATCH 1/2] xen-pciback: Use dev_printk() when possible

2020-05-27 Thread Bjorn Helgaas
On Wed, May 27, 2020 at 03:34:26PM -0700, Boris Ostrovsky wrote: > On 5/27/20 1:43 PM, Bjorn Helgaas wrote: > > @@ -155,8 +157,8 @@ int xen_pcibk_config_read(struct pci_dev *dev, int > > offset, int size, > > u32 value = 0, tmp_val; > > > > if (unlikely(verbose_request)) > > -

[PATCH v2 4/5] perf/x86/rapl: make perf_probe_msr() more robust and flexible

2020-05-27 Thread Stephane Eranian
This patch modifies perf_probe_msr() by allowing passing of struct perf_msr array where some entries are not populated, i.e., they have either an msr address of 0 or no attribute_group pointer. This helps with certain call paths, e.g., RAPL. In case the grp is NULL, the default sysfs visibility

[PATCH v2 5/5] perf/x86/rapl: add AMD Fam17h RAPL support

2020-05-27 Thread Stephane Eranian
This patch enables AMD Fam17h RAPL support for the Package level metric. The support is as per AMD Fam17h Model31h (Zen2) and model 00-ffh (Zen1) PPR. The same output is available via the energy-pkg pseudo event: $ perf stat -a -I 1000 --per-socket -e power/energy-pkg/ Signed-off-by: Stephane

[PATCH v2 2/5] perf/x86/rapl: refactor code for Intel/AMD sharing

2020-05-27 Thread Stephane Eranian
This patch modifies the rapl_model struct to include architecture specific knowledge to Intel specific structure, and in particular the MSR for POWER_UNIT and the rapl_msrs array. No functional changes. Signed-off-by: Stephane Eranian --- arch/x86/events/rapl.c | 29

[PATCH v2 0/5] perf/x86/rapl: Enable RAPL for AMD Fam17h

2020-05-27 Thread Stephane Eranian
This patch series adds support for AMD Fam17h RAPL counters. As per AMD PPR, Fam17h support Package RAPL counters to monitor power usage. The RAPL counter operates as with Intel RAPL. As such, it is beneficial to share the code. The series first moves the rapl.c file to common perf_events x86 and

[PATCH v2 1/5] perf/x86/rapl: move RAPL support to common x86 code

2020-05-27 Thread Stephane Eranian
To prepare for support of both Intel and AMD RAPL. Signed-off-by: Stephane Eranian --- arch/x86/events/Kconfig| 6 +++--- arch/x86/events/Makefile | 1 + arch/x86/events/intel/Makefile | 2 -- arch/x86/events/{intel => }/rapl.c | 9 ++--- 4 files changed, 10

Re: [PATCH 08/15] efi/x86: Move command-line initrd loading to efi_main

2020-05-27 Thread Arvind Sankar
On Wed, May 27, 2020 at 10:30:18PM +, Williams, Dan J wrote: > On Fri, 2020-05-08 at 20:01 +0200, Ard Biesheuvel wrote: > > From: Arvind Sankar > > > > Consolidate the initrd loading in efi_main. > > > > The command line options now need to be parsed only once. > > > > Signed-off-by:

[PATCH v2 3/5] perf/x86/rapl: flip logic on default events visibility

2020-05-27 Thread Stephane Eranian
This patch modifies the default visibility of the attribute_group for each RAPL event. By default if the grp.is_visible field is NULL, then sysfs considers that it must display the attribute group. If the field is not NULL (callback function), then the return value of the callback determines the

Re: [RFC PATCH 2/2] drm: xlnx: driver for Xilinx DSI TX Subsystem

2020-05-27 Thread Laurent Pinchart
Hi Hyun, On Wed, May 27, 2020 at 10:54:35AM -0700, Hyun Kwon wrote: > On Sat, 2020-05-23 at 20:08:13 -0700, Laurent Pinchart wrote: > > On Mon, May 04, 2020 at 11:43:48AM -0700, Hyun Kwon wrote: > >> On Mon, 2020-04-20 at 14:20:56 -0700, Venkateshwar Rao Gannavarapu wrote: > >>> The Xilinx MIPI

Re: [PATCH] bitops: simplify get_count_order_long()

2020-05-27 Thread Wei Yang
On Mon, May 25, 2020 at 03:31:46PM -0700, Andrew Morton wrote: >On Mon, 25 May 2020 21:57:41 + Wei Yang wrote: > >> I see the patch just merged, so I suppose to add the above test code into >> that >> one? > >Well, that's not really test code. > >But yes, something which tests both the

Re: [PATCH 1/2] seccomp: notify user trap about unused filter

2020-05-27 Thread Christian Brauner
On Wed, May 27, 2020 at 03:37:58PM -0700, Kees Cook wrote: > On Thu, May 28, 2020 at 12:05:32AM +0200, Christian Brauner wrote: > > The main question also is, is there precedence where the kernel just > > closes the file descriptor for userspace behind it's back? I'm not sure > > I've heard of

Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver

2020-05-27 Thread kbuild test robot
Hi Serge, I love your patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on char-misc/char-misc-testing staging/staging-testing linus/master v5.7-rc7 next-20200526] [if your patch is applied to the wrong git tree, please drop us a note to help

Re: [PATCH 1/2] seccomp: notify user trap about unused filter

2020-05-27 Thread Kees Cook
On Thu, May 28, 2020 at 12:05:32AM +0200, Christian Brauner wrote: > The main question also is, is there precedence where the kernel just > closes the file descriptor for userspace behind it's back? I'm not sure > I've heard of this before. That's not how that works afaict; it's also > not how we

Re: [PATCH 2/2] xenbus: Use dev_printk() when possible

2020-05-27 Thread Boris Ostrovsky
On 5/27/20 1:43 PM, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Use dev_printk() when possible to include device and driver information in > the conventional format. > > Add "#define dev_fmt" to preserve KBUILD_MODNAME in messages. > > No functional change intended. > > Signed-off-by: Bjorn

Re: [PATCH 1/2] seccomp: notify user trap about unused filter

2020-05-27 Thread Kees Cook
On Wed, May 27, 2020 at 03:52:03PM -0600, Tycho Andersen wrote: > On Wed, May 27, 2020 at 02:43:49PM -0700, Kees Cook wrote: > > (While I'm here -- why can there be only one listener per task? The > > notifications are filter-specific, not task-specific?) > > Not sure what you mean here? tatic

[PATCH v5 16/19] mm: memcg/slab: remove redundant check in memcg_accumulate_slabinfo()

2020-05-27 Thread Roman Gushchin
memcg_accumulate_slabinfo() is never called with a non-root kmem_cache as a first argument, so the is_root_cache(s) check is redundant and can be removed without any functional change. Signed-off-by: Roman Gushchin Reviewed-by: Vlastimil Babka --- mm/slab_common.c | 3 --- 1 file changed, 3

[PATCH v5 00/19] The new cgroup slab memory controller

2020-05-27 Thread Roman Gushchin
This is a fifth version of the slab cgroup controller rework. The patchset moves the accounting from the page level to the object level. It allows to share slab pages between memory cgroups. This leads to a significant win in the slab utilization (up to 45%) and the corresponding drop in the

Re: [PATCH] binfmt_elf_fdpic: fix execfd build regression

2020-05-27 Thread Valdis Klētnieks
On Wed, 27 May 2020 17:08:57 -0500, Eric W. Biederman said: > Is there an easy to build-test configuration that includes > binfmt_elf_fdpic? I tripped over it with a 'make ARM=arch allmodconfig', but any config that includes CONFIG_BINFMT_ELF_FDPIC should suffice. I haven't checked the 'depends'

[PATCH] ACPI: CPPC: Fix reference count leak in acpi_cppc_processor_probe.

2020-05-27 Thread wu000273
From: Qiushi Wu kobject_init_and_add() takes reference even when it fails. If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Previous commit "b8eb718348b8" fixed a similar problem. Fixes: 158c998ea44b ("ACPI / CPPC: add

[PATCH v5 10/19] mm: memcg/slab: deprecate memory.kmem.slabinfo

2020-05-27 Thread Roman Gushchin
Deprecate memory.kmem.slabinfo. An empty file will be presented if corresponding config options are enabled. The interface is implementation dependent, isn't present in cgroup v2, and is generally useful only for core mm debugging purposes. In other words, it doesn't provide any value for the

Re: [PATCH 1/2] xen-pciback: Use dev_printk() when possible

2020-05-27 Thread Boris Ostrovsky
On 5/27/20 1:43 PM, Bjorn Helgaas wrote: > @@ -155,8 +157,8 @@ int xen_pcibk_config_read(struct pci_dev *dev, int > offset, int size, > u32 value = 0, tmp_val; > > if (unlikely(verbose_request)) > - printk(KERN_DEBUG DRV_NAME ": %s: read %d bytes at 0x%x\n", > -

[PATCH v5 08/19] mm: memcg/slab: save obj_cgroup for non-root slab objects

2020-05-27 Thread Roman Gushchin
Store the obj_cgroup pointer in the corresponding place of page->obj_cgroups for each allocated non-root slab object. Make sure that each allocated object holds a reference to obj_cgroup. Objcg pointer is obtained from the memcg->objcg dereferencing in memcg_kmem_get_cache() and passed from

[PATCH v5 09/19] mm: memcg/slab: charge individual slab objects instead of pages

2020-05-27 Thread Roman Gushchin
Switch to per-object accounting of non-root slab objects. Charging is performed using obj_cgroup API in the pre_alloc hook. Obj_cgroup is charged with the size of the object and the size of metadata: as now it's the size of an obj_cgroup pointer. If the amount of memory has been charged

[PATCH v5 03/19] mm: memcg: convert vmstat slab counters to bytes

2020-05-27 Thread Roman Gushchin
In order to prepare for per-object slab memory accounting, convert NR_SLAB_RECLAIMABLE and NR_SLAB_UNRECLAIMABLE vmstat items to bytes. To make it obvious, rename them to NR_SLAB_RECLAIMABLE_B and NR_SLAB_UNRECLAIMABLE_B (similar to NR_KERNEL_STACK_KB). Internally global and per-node counters

[PATCH v5 17/19] mm: memcg/slab: use a single set of kmem_caches for all allocations

2020-05-27 Thread Roman Gushchin
Instead of having two sets of kmem_caches: one for system-wide and non-accounted allocations and the second one shared by all accounted allocations, we can use just one. The idea is simple: space for obj_cgroup metadata can be allocated on demand and filled only for accounted allocations. It

[PATCH v5 06/19] mm: memcg/slab: obj_cgroup API

2020-05-27 Thread Roman Gushchin
Obj_cgroup API provides an ability to account sub-page sized kernel objects, which potentially outlive the original memory cgroup. The top-level API consists of the following functions: bool obj_cgroup_tryget(struct obj_cgroup *objcg); void obj_cgroup_get(struct obj_cgroup *objcg); void

[PATCH v5 15/19] mm: memcg/slab: deprecate slab_root_caches

2020-05-27 Thread Roman Gushchin
Currently there are two lists of kmem_caches: 1) slab_caches, which contains all kmem_caches, 2) slab_root_caches, which contains only root kmem_caches. And there is some preprocessor magic to have a single list if CONFIG_MEMCG_KMEM isn't enabled. It was required earlier because the number of

[PATCH v5 13/19] mm: memcg/slab: simplify memcg cache creation

2020-05-27 Thread Roman Gushchin
Because the number of non-root kmem_caches doesn't depend on the number of memory cgroups anymore and is generally not very big, there is no more need for a dedicated workqueue. Also, as there is no more need to pass any arguments to the memcg_create_kmem_cache() except the root kmem_cache, it's

[PATCH v5 18/19] kselftests: cgroup: add kernel memory accounting tests

2020-05-27 Thread Roman Gushchin
Add some tests to cover the kernel memory accounting functionality. These are covering some issues (and changes) we had recently. 1) A test which allocates a lot of negative dentries, checks memcg slab statistics, creates memory pressure by setting memory.max to some low value and checks that

[PATCH v5 12/19] mm: memcg/slab: use a single set of kmem_caches for all accounted allocations

2020-05-27 Thread Roman Gushchin
This is fairly big but mostly red patch, which makes all accounted slab allocations use a single set of kmem_caches instead of creating a separate set for each memory cgroup. Because the number of non-root kmem_caches is now capped by the number of root kmem_caches, there is no need to shrink or

[PATCH v5 05/19] mm: memcontrol: decouple reference counting from page accounting

2020-05-27 Thread Roman Gushchin
From: Johannes Weiner The reference counting of a memcg is currently coupled directly to how many 4k pages are charged to it. This doesn't work well with Roman's new slab controller, which maintains pools of objects and doesn't want to keep an extra balance sheet for the pages backing those

[PATCH v5 07/19] mm: memcg/slab: allocate obj_cgroups for non-root slab pages

2020-05-27 Thread Roman Gushchin
Allocate and release memory to store obj_cgroup pointers for each non-root slab page. Reuse page->mem_cgroup pointer to store a pointer to the allocated space. To distinguish between obj_cgroups and memcg pointers in case when it's not obvious which one is used (as in page_cgroup_ino()), let's

[PATCH v5 11/19] mm: memcg/slab: move memcg_kmem_bypass() to memcontrol.h

2020-05-27 Thread Roman Gushchin
To make the memcg_kmem_bypass() function available outside of the memcontrol.c, let's move it to memcontrol.h. The function is small and nicely fits into static inline sort of functions. It will be used from the slab code. Signed-off-by: Roman Gushchin Reviewed-by: Vlastimil Babka ---

[PATCH v5 14/19] mm: memcg/slab: remove memcg_kmem_get_cache()

2020-05-27 Thread Roman Gushchin
The memcg_kmem_get_cache() function became really trivial, so let's just inline it into the single call point: memcg_slab_pre_alloc_hook(). It will make the code less bulky and can also help the compiler to generate a better code. Signed-off-by: Roman Gushchin Reviewed-by: Vlastimil Babka ---

[PATCH v5 04/19] mm: slub: implement SLUB version of obj_to_index()

2020-05-27 Thread Roman Gushchin
This commit implements SLUB version of the obj_to_index() function, which will be required to calculate the offset of obj_cgroup in the obj_cgroups vector to store/obtain the objcg ownership data. To make it faster, let's repeat the SLAB's trick introduced by commit 6a2d7a955d8d ("[PATCH] SLAB:

[PATCH v5 01/19] mm: memcg: factor out memcg- and lruvec-level changes out of __mod_lruvec_state()

2020-05-27 Thread Roman Gushchin
To convert memcg and lruvec slab counters to bytes there must be a way to change these counters without touching node counters. Factor out __mod_memcg_lruvec_state() out of __mod_lruvec_state(). Signed-off-by: Roman Gushchin Acked-by: Johannes Weiner Reviewed-by: Vlastimil Babka ---

[PATCH v5 02/19] mm: memcg: prepare for byte-sized vmstat items

2020-05-27 Thread Roman Gushchin
To implement per-object slab memory accounting, we need to convert slab vmstat counters to bytes. Actually, out of 4 levels of counters: global, per-node, per-memcg and per-lruvec only two last levels will require byte-sized counters. It's because global and per-node counters will be counting the

Re: [PATCH 3/3] perf jvmti: Fix demangling Java symbols

2020-05-27 Thread Arnaldo Carvalho de Melo
Em Wed, May 27, 2020 at 01:23:00PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, May 27, 2020 at 11:20:57AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Mon, Apr 27, 2020 at 02:15:16PM +0800, Nick Gasson escreveu: > > > For a Java method signature like: > > > > > >

[PATCH 2/2] mm/gup: frame_vector: convert get_user_pages() --> pin_user_pages()

2020-05-27 Thread John Hubbard
This code was using get_user_pages*(), and all of the callers so far were in a "Case 2" scenario (DMA/RDMA), using the categorization from [1]. That means that it's time to convert the get_user_pages*() + put_page() calls to pin_user_pages*() + unpin_user_pages() calls. There is some helpful

[PATCH 0/2] mm/gup: introduce pin_user_pages_locked(), use it in frame_vector.c

2020-05-27 Thread John Hubbard
Hi, This applies on top of the pin_user_pages_unlocked() patch that I sent earlier [1]. This adds yet one more pin_user_pages*() variant, and uses that to convert mm/frame_vector.c. With this, along with maybe 20 or 30 other recent patches in various trees, we are close to having the relevant

[PATCH 1/2] mm/gup: introduce pin_user_pages_locked()

2020-05-27 Thread John Hubbard
Introduce pin_user_pages_locked(), which is nearly identical to get_user_pages_locked() except that it sets FOLL_PIN and rejects FOLL_GET. Signed-off-by: John Hubbard --- include/linux/mm.h | 2 ++ mm/gup.c | 30 ++ 2 files changed, 32 insertions(+) diff

Re: [PATCH 08/15] efi/x86: Move command-line initrd loading to efi_main

2020-05-27 Thread Williams, Dan J
On Fri, 2020-05-08 at 20:01 +0200, Ard Biesheuvel wrote: > From: Arvind Sankar > > Consolidate the initrd loading in efi_main. > > The command line options now need to be parsed only once. > > Signed-off-by: Arvind Sankar > Link: >

Re: [PATCH] binfmt_elf_fdpic: fix execfd build regression

2020-05-27 Thread Arnd Bergmann
On Thu, May 28, 2020 at 12:12 AM Eric W. Biederman wrote: > > Arnd Bergmann writes: > > > The change to bprm->have_execfd was incomplete, leading > > to a build failure: > > > > fs/binfmt_elf_fdpic.c: In function 'create_elf_fdpic_tables': > > fs/binfmt_elf_fdpic.c:591:27: error:

Re: [PATCH 2/2] kobject: send KOBJ_REMOVE uevent when the object is removed from sysfs

2020-05-27 Thread Guenter Roeck
On Wed, May 27, 2020 at 11:01:16AM +0200, Rafael J. Wysocki wrote: > > So Guenter, can you please test the patch below to see if it still introduces > the problems seen by you on ARM? > arm64 and arm64be boot tests pass with the patch below. Some arm boot tests fail, but I think that is due to

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread David Ahern
On 5/27/20 3:07 PM, Paolo Bonzini wrote: > I see what you meant now. statsfs can also be used to enumerate objects > if one is so inclined (with the prototype in patch 7, for example, each > network interface becomes a directory). there are many use cases that have 100's to 1000's have network

Re: [PATCH] nilfs2: Fix reference count leak in nilfs_sysfs_create_device_group

2020-05-27 Thread Ryusuke Konishi
Qiushi Wu, Can we call kobject_del() instead of kobject_put() when kobject_init_and_add() failed ? If it's unclear, I think we should fix this by calling kobject_put() when kobject_init_and_add() fails, and goto free_dev_subgroups. Regards, On Thu, May 28, 2020 at 5:10 AM wrote: > >

[PATCH] staging: tegra-video: fix V4L2 dependency

2020-05-27 Thread Arnd Bergmann
Rather than using a dependency on VIDEO_V4L2, this driver uses "select", which fails when other dependencies are missing: WARNING: unmet direct dependencies detected for VIDEO_V4L2 Depends on [n]: MEDIA_SUPPORT [=y] && (I2C [=y] || I2C [=y]=n) && VIDEO_DEV [=n] Selected by [y]: -

Re: [PATCH] binfmt_elf_fdpic: fix execfd build regression

2020-05-27 Thread Eric W. Biederman
Arnd Bergmann writes: > The change to bprm->have_execfd was incomplete, leading > to a build failure: > > fs/binfmt_elf_fdpic.c: In function 'create_elf_fdpic_tables': > fs/binfmt_elf_fdpic.c:591:27: error: 'BINPRM_FLAGS_EXECFD' undeclared > > Change the last user of BINPRM_FLAGS_EXECFD in a

Re: remove kernel_getsockopt

2020-05-27 Thread David Miller
From: Christoph Hellwig Date: Wed, 27 May 2020 20:22:27 +0200 > this series reduces scope from the last round and just removes > kernel_getsockopt to avoid conflicting with the sctp cleanup series. Series applied to net-next, thanks.

Re: [Freedreno] [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-05-27 Thread Doug Anderson
Hi, On Fri, May 15, 2020 at 9:37 AM Doug Anderson wrote: > > Hi, > > On Fri, May 15, 2020 at 5:06 AM wrote: > > > > On 2020-05-14 21:47, Doug Anderson wrote: > > > Hi, > > > > > > On Fri, May 1, 2020 at 6:31 AM Kalyan Thota > > > wrote: > > >> > > >> "The PM core always increments the runtime

Re: [PATCH v2] sctp: check assoc before SCTP_ADDR_{MADE_PRIM,ADDED} event

2020-05-27 Thread Marcelo Ricardo Leitner
On Wed, May 27, 2020 at 11:56:40AM +0200, Jonas Falkevik wrote: > Make sure SCTP_ADDR_{MADE_PRIM,ADDED} are sent only for associations > that have been established. > > These events are described in rfc6458#section-6.1 > SCTP_PEER_ADDR_CHANGE: > This tag indicates that an address that is > part

Re: [PATCH bpf-next 1/4] bpf: Generalize bpf_sk_storage

2020-05-27 Thread kbuild test robot
the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/KP-Singh/Generalizing-bpf_local_storage/20200527-011230 base: https://git.kernel.org/pub/scm/linux/kernel

Re: [PATCH] sctp: fix typo sctp_ulpevent_nofity_peer_addr_change

2020-05-27 Thread David Miller
From: Jonas Falkevik Date: Wed, 27 May 2020 11:59:43 +0200 > change typo in function name "nofity" to "notify" > sctp_ulpevent_nofity_peer_addr_change -> > sctp_ulpevent_notify_peer_addr_change > > Signed-off-by: Jonas Falkevik Applied to net-next, thanks.

Re: [PATCH] ASoC: rt5682: split i2c driver into separate module

2020-05-27 Thread Mark Brown
On Wed, May 27, 2020 at 11:57:33PM +0200, Arnd Bergmann wrote: > On Wed, May 27, 2020 at 10:57 PM Mark Brown wrote: > > On Wed, May 27, 2020 at 09:34:13PM +0200, Arnd Bergmann wrote: > > > +static const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = { > > > + "AVDD", > > > + "MICVDD",

Re: [PATCH v5 03/14] PCI: cadence: Convert all r/w accessors to perform only 32-bit accesses

2020-05-27 Thread Kishon Vijay Abraham I
Hi Rob, On 5/27/2020 10:07 PM, Rob Herring wrote: > On Wed, May 27, 2020 at 4:49 AM Kishon Vijay Abraham I wrote: >> >> Hi Rob, >> >> On 5/26/2020 8:42 PM, Rob Herring wrote: >>> On Sun, May 24, 2020 at 9:30 PM Kishon Vijay Abraham I >>> wrote: Hi Rob, On 5/22/2020 9:24 PM,

linux-next: Signed-off-by missing for commits in the coresight tree

2020-05-27 Thread Stephen Rothwell
Hi all, Commits 32de512f3f4c ("dt-bindings: arm: coresight: Add optional property to replicators") 73fe4652e020 ("coresight: replicator: Reset replicator if context is lost") fa7c3883f1f2 ("dt-bindings: arm: coresight: Add support to skip trace unit power up") dec0cca9cd91 ("coresight:

Re: [PATCH 1/2] seccomp: notify user trap about unused filter

2020-05-27 Thread Christian Brauner
On Wed, May 27, 2020 at 02:43:49PM -0700, Kees Cook wrote: > On Wed, May 27, 2020 at 01:19:01PM +0200, Christian Brauner wrote: > > loop. But this is problematic since we don't get a notification when the > > seccomp filter has become unused and so we currently never remove the > > seccomp

Re: [PATCH 4/4] thermal: core: genetlink support for events/cmd/sampling

2020-05-27 Thread Ram Chandrasekar
On 5/15/2020 8:10 AM, Daniel Lezcano wrote: Initially the thermal framework had a very simple notification mechanism to send generic netlink messages to the userspace. The notification function was never called from anywhere and the corresponding dead code was removed. It was probably a

Re: [PATCH net-next 5/8] net: phy: mscc: 1588 block initialization

2020-05-27 Thread kbuild test robot
Hi Antoine, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] [also build test ERROR on next-20200526] [cannot apply to robh/for-next net/master linus/master v5.7-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help

Re: [PATCH] nilfs2: Fix reference count leak in nilfs_sysfs_create_snapshot_group.

2020-05-27 Thread Ryusuke Konishi
Andrew, Apply this, please. Acked-by: Ryusuke Konishi On Thu, May 28, 2020 at 4:55 AM wrote: > > From: Qiushi Wu > > kobject_init_and_add() takes reference even when it fails. > If this function returns an error, kobject_put() must be called to > properly clean up the memory associated with

Re: [PATCH] docs: block: Create blk-mq documentation

2020-05-27 Thread Randy Dunlap
On 5/27/20 1:09 PM, André Almeida wrote: > Create a documentation providing a background and explanation around the > operation of the Multi-Queue Block IO Queueing Mechanism (blk-mq). > > The reference for writing this documentation was the source code and > "Linux Block IO: Introducing

Re: [PATCH] drivers: ipa: remove discription of nonexistent element

2020-05-27 Thread David Miller
From: Wang Wenhu Date: Tue, 26 May 2020 20:32:22 -0700 > No element named "client" exists within "struct ipa_endpoint". > It might be a heritage forgotten to be removed. Delete it now. > > Signed-off-by: Wang Wenhu Applied.

Re: [PATCH] drivers: ipa: fix typoes for ipa

2020-05-27 Thread David Miller
From: Wang Wenhu Date: Tue, 26 May 2020 20:19:24 -0700 > Change "transactio" -> "transaction". Also an alignment correction. > > Signed-off-by: Wang Wenhu Applied.

Re: [PATCH] ASoC: rt5682: split i2c driver into separate module

2020-05-27 Thread Arnd Bergmann
On Wed, May 27, 2020 at 10:57 PM Mark Brown wrote: > > On Wed, May 27, 2020 at 09:34:13PM +0200, Arnd Bergmann wrote: > > > index ..c891aa80757f > > --- /dev/null > > +++ b/sound/soc/codecs/rt5682-i2c.c > > @@ -0,0 +1,341 @@ > > +// SPDX-License-Identifier: GPL-2.0-only > > +/* > > +

Re: [PATCH] ASoC: rt5682: split i2c driver into separate module

2020-05-27 Thread Pierre-Louis Bossart
On 5/27/20 2:34 PM, Arnd Bergmann wrote: With SND_SOC_AMD_RV_RT5682_MACH using the i2c version of the driver, we can easily get a build failure when I2C is built-in but soundwire is not: WARNING: unmet direct dependencies detected for SND_SOC_RT5682 Depends on [m]: SOUND [=y] && !UML

[GIT PULL] soc/fsl drivers changes for next(v5.8)

2020-05-27 Thread Li Yang
Hi soc maintainers, Please merge the following new changes for soc/fsl drivers. Regards, Leo The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: Linux 5.7-rc1 (2020-04-12 12:35:55 -0700) are available in the Git repository at:

Re: [PATCH V2 net-next 0/4] net: hns3: misc updates for -next

2020-05-27 Thread David Miller
From: Huazhong Tan Date: Wed, 27 May 2020 08:59:13 +0800 > This patchset includes some misc updates for the HNS3 ethernet driver. > > #1 adds a resetting check in hclgevf_init_nic_client_instance(). > #2 adds a preparatory work for RMDA VF's driver. > #3 removes some unnecessary operations in

Re: [PATCH] fs/binfmt_elf.c: allocate initialized memory in fill_thread_core_info()

2020-05-27 Thread Kees Cook
On Mon, Apr 20, 2020 at 03:41:40PM -0700, Kees Cook wrote: > On Mon, Apr 20, 2020 at 03:33:52PM -0700, Andrew Morton wrote: > > On Sun, 19 Apr 2020 12:08:48 +0200 gli...@google.com wrote: > > > > > KMSAN reported uninitialized data being written to disk when dumping > > > core. As a result,

Re: [PATCH net-next 0/2] net: mscc: allow forwarding ioctl operations to attached PHYs

2020-05-27 Thread David Miller
From: Antoine Tenart Date: Tue, 26 May 2020 17:01:47 +0200 > These two patches allow forwarding ioctl to the PHY MII implementation, > and support is added for offloading timestamping operations to > compatible attached PHYs. Series applied, thanks.

Re: [PATCH 1/2] seccomp: notify user trap about unused filter

2020-05-27 Thread Tycho Andersen
On Wed, May 27, 2020 at 02:43:49PM -0700, Kees Cook wrote: > (While I'm here -- why can there be only one listener per task? The > notifications are filter-specific, not task-specific?) Not sure what you mean here? > > To fix this, we introduce a new "live" reference counter that tracks the > >

linux-next: Fixes tag needs some work in the kvm-fixes tree

2020-05-27 Thread Stephen Rothwell
Hi all, In commit f4cfcd2d5aea ("KVM: x86: don't expose MSR_IA32_UMWAIT_CONTROL unconditionally") Fixes tag Fixes: 6e3ba4abce ("KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or

Re: [PATCH] arm64: vdso32: force vdso32 to be compiled as -marm

2020-05-27 Thread Nick Desaulniers
On Wed, May 27, 2020 at 1:31 PM Nick Desaulniers wrote: > > On Wed, May 27, 2020 at 1:14 PM Nick Desaulniers > wrote: > > > > On Wed, May 27, 2020 at 12:28 PM Robin Murphy wrote: > > > > > > On 2020-05-27 18:55, Nick Desaulniers wrote: > > > > On Wed, May 27, 2020 at 6:45 AM Robin Murphy > >

[PATCH v2 cgroup/for-5.8] cgroup: add cpu.stat file to root cgroup

2020-05-27 Thread Boris Burkov
Currently, the root cgroup does not have a cpu.stat file. Add one which is consistent with /proc/stat to capture global cpu statistics that might not fall under cgroup accounting. We haven't done this in the past because the data are already presented in /proc/stat and we didn't want to add

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Paolo Bonzini
On 27/05/20 23:27, Jakub Kicinski wrote: > On Wed, 27 May 2020 23:07:53 +0200 Paolo Bonzini wrote: >>> Again, I have little KVM knowledge, but BPF also uses a fd-based API, >>> and carries stats over the same syscall interface. >> >> Can BPF stats (for BPF scripts created by whatever process is

Re: [PATCH mmotm] mm/swap: fix livelock in __read_swap_cache_async()

2020-05-27 Thread Hugh Dickins
On Tue, 26 May 2020, Johannes Weiner wrote: > On Thu, May 21, 2020 at 10:56:20PM -0700, Hugh Dickins wrote: > > I've only seen this livelock on one machine (repeatably, but not to > > order), and not fully analyzed it - two processes seen looping around > > getting -EEXIST from

Re: [PATCH 1/2] seccomp: notify user trap about unused filter

2020-05-27 Thread Kees Cook
On Wed, May 27, 2020 at 01:19:01PM +0200, Christian Brauner wrote: > loop. But this is problematic since we don't get a notification when the > seccomp filter has become unused and so we currently never remove the > seccomp notifier fd from the event loop and just keep accumulating fds > in the

Re: [PATCH v3 0/8] kernel: taint when the driver firmware crashes

2020-05-27 Thread Jakub Kicinski
On Wed, 27 May 2020 03:19:18 + Luis Chamberlain wrote: > I read your patch, and granted, I will accept I was under the incorrect > assumption that this can only be used by networking devices, however it > the devlink approach achieves getting userspace the ability with > iproute2 devlink util

Re: [PATCH resend 3/3] mm: fix LRU balancing effect of new transparent huge pages

2020-05-27 Thread Shakeel Butt
On Wed, May 27, 2020 at 1:46 PM Andrew Morton wrote: > > On Wed, 27 May 2020 15:41:48 -0400 Johannes Weiner wrote: > > > On Wed, May 27, 2020 at 11:29:58AM -0700, Shakeel Butt wrote: > > > From: Johannes Weiner > > > > > > Currently, THP are counted as single pages until they are split right >

[git pull] coredump infoleak fix

2020-05-27 Thread Al Viro
xstate note on boxes with xsaves support can leak uninitialized data into coredumps The following changes since commit 4e89b7210403fa4a8acafe7c602b6212b7af6c3b: fix multiplication overflow in copy_fdtable() (2020-05-19 18:29:36 -0400) are available in the git repository at:

Re: [PATCH bpf-next] libbpf: Export bpf_object__load_vmlinux_btf

2020-05-27 Thread Andrii Nakryiko
On Wed, May 27, 2020 at 10:12 AM Daniel Xu wrote: > > Hi Andrii, > > On Tue May 26, 2020 at 3:09 PM PST, Andrii Nakryiko wrote: > > On Tue, May 26, 2020 at 7:09 PM Daniel Xu wrote: > > > > > > Right now the libbpf model encourages loading the entire object at once. > > > In this model, libbpf

Re: [PATCH] mm,thp: stop leaking unreleased file pages

2020-05-27 Thread Hugh Dickins
On Tue, 26 May 2020, Johannes Weiner wrote: > On Sat, May 23, 2020 at 06:50:15PM -0700, Hugh Dickins wrote: > > When collapse_file() calls try_to_release_page(), it has already > > isolated the page: so if releasing buffers happens to fail (as it > > sometimes does), remember to

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Jakub Kicinski
On Wed, 27 May 2020 23:07:53 +0200 Paolo Bonzini wrote: > > Again, I have little KVM knowledge, but BPF also uses a fd-based API, > > and carries stats over the same syscall interface. > > Can BPF stats (for BPF scripts created by whatever process is running in > the system) be collected by an

Re: [PATCH v3 6/8] mm: parallelize deferred_init_memmap()

2020-05-27 Thread Alexander Duyck
On Wed, May 27, 2020 at 10:37 AM Daniel Jordan wrote: > > Deferred struct page init is a significant bottleneck in kernel boot. > Optimizing it maximizes availability for large-memory systems and allows > spinning up short-lived VMs as needed without having to leave them > running. It also

Re: [RFC 00/16] KVM protected memory extension

2020-05-27 Thread Mike Rapoport
On Wed, May 27, 2020 at 08:45:33AM -0700, Dave Hansen wrote: > On 5/26/20 4:38 AM, Mike Rapoport wrote: > > On Tue, May 26, 2020 at 01:16:14PM +0300, Liran Alon wrote: > >> On 26/05/2020 9:17, Mike Rapoport wrote: > >>> On Mon, May 25, 2020 at 04:47:18PM +0300, Liran Alon wrote: > On

[PATCH 4/4] ARM: dts: r8a7742: Add CMT SoC specific support

2020-05-27 Thread Lad Prabhakar
Add CMT[01] support to r8a7742 SoC DT. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu --- arch/arm/boot/dts/r8a7742.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742.dtsi b/arch/arm/boot/dts/r8a7742.dtsi

[PATCH 3/4] dt-bindings: timer: renesas,cmt: Document r8a7742 CMT support

2020-05-27 Thread Lad Prabhakar
Document SoC specific compatible strings for r8a7742. No driver change is needed as the fallback strings will activate the right code. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu --- Documentation/devicetree/bindings/timer/renesas,cmt.txt | 2 ++ 1 file changed, 2

[PATCH 2/4] ARM: dts: r8a7742: Add thermal device to DT

2020-05-27 Thread Lad Prabhakar
This patch instantiates the thermal sensor module with thermal-zone support. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu --- arch/arm/boot/dts/r8a7742.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742.dtsi

[PATCH 1/4] dt-bindings: thermal: rcar-thermal: Add device tree support for r8a7742

2020-05-27 Thread Lad Prabhakar
Add thermal sensor support for r8a7742 SoC. The Renesas RZ/G1H (r8a7742) thermal sensor module is identical to the R-Car Gen2 family. No driver change is needed due to the fallback compatible value "renesas,rcar-gen2-thermal". Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu

[PATCH 0/4] Add thermal and CMT to R8A7742 SOC

2020-05-27 Thread Lad Prabhakar
Hi All, This patch series adds thermal and CMT support on RZ/G1H (R8A7742) SOC DT. Cheers, Prabhakar Lad Prabhakar (4): dt-bindings: thermal: rcar-thermal: Add device tree support for r8a7742 ARM: dts: r8a7742: Add thermal device to DT dt-bindings: timer: renesas,cmt: Document r8a7742

Re: [PATCH v3 5/8] mm: don't track number of pages during deferred initialization

2020-05-27 Thread Alexander Duyck
On Wed, May 27, 2020 at 10:37 AM Daniel Jordan wrote: > > Deferred page init used to report the number of pages initialized: > > node 0 initialised, 32439114 pages in 97ms > > Tracking this makes the code more complicated when using multiple > threads. Given that the statistic probably has

Re: [PATCH v3 0/7] Statsfs: a new ram-based file system for Linux kernel statistics

2020-05-27 Thread Andrew Lunn
On Tue, May 26, 2020 at 01:03:10PM +0200, Emanuele Giuseppe Esposito wrote: > There is currently no common way for Linux kernel subsystems to expose > statistics to userspace shared throughout the Linux kernel; subsystems have > to take care of gathering and displaying statistics by themselves,

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