Re: [PATCH 2/4] MIPS: kvm: Use vm_get_page_prot to get protection bits

2020-11-13 Thread Huacai Chen
Hi, Thomas, On Fri, Nov 13, 2020 at 7:13 PM Thomas Bogendoerfer wrote: > > MIPS protection bits are setup during runtime so using defines like > PAGE_SHARED ignores this runtime changes. Using vm_get_page_prot > to get correct page protection fixes this. Is there some visible bugs if without this

Re: [PATCH] s5p-jpeg: hangle error condition in s5p_jpeg_probe

2020-11-13 Thread baskov
On 2020-11-14 00:35, Jacek Anaszewski wrote: There is a typo in the subject: s/hangle/handle/ Thanks for pointing out, sorry for that. Apparently, there is also a typo in my name -> s/Evgeiny/Evgeniy/ -- Respectfully, Baskov Evgeniy

[PATCH -next] scsi: be2iscsi: Mark beiscsi_attrs with static keyword

2020-11-13 Thread Zou Wei
Fix the following sparse warning: ./be_main.c:167:25: warning: symbol 'beiscsi_attrs' was not declared. Should it be static? Signed-off-by: Zou Wei --- drivers/scsi/be2iscsi/be_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/

[PATCH -next] drm/virtio: Make virtgpu_dmabuf_ops with static keyword

2020-11-13 Thread Zou Wei
Fix the following sparse warning: ./virtgpu_prime.c:46:33: warning: symbol 'virtgpu_dmabuf_ops' was not declared. Should it be static? Signed-off-by: Zou Wei --- drivers/gpu/drm/virtio/virtgpu_prime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/virtio/vi

Re: [PATCH] ARM: configs: sunxi: enable Realtek PHY

2020-11-13 Thread Jernej Škrabec
Dne četrtek, 12. november 2020 ob 21:26:52 CET je Corentin Labbe napisal(a): > Lot of sunxi boards has a Realtek PHY, so let's enable it. > > Signed-off-by: Corentin Labbe > --- > arch/arm/configs/sunxi_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/configs/sunxi_de

Re: [RFC bpf-next 1/3] bpf: add module support to btf display helpers

2020-11-13 Thread Andrii Nakryiko
On Fri, Nov 13, 2020 at 10:11 AM Alan Maguire wrote: > > bpf_snprintf_btf and bpf_seq_printf_btf use a "struct btf_ptr *" > argument that specifies type information about the type to > be displayed. Augment this information to include a module > name, allowing such display to support module types

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-11-13 Thread Al Viro
On Fri, Nov 13, 2020 at 11:19:34PM -0700, Nathan Chancellor wrote: > Assuming so, I have attached the output both with and without the > WARN_ON. Looks like mountinfo is what is causing the error? Cute... FWIW, on #origin + that commit with fix folded in I don't see anything unusual in reads fro

Re: [RFC bpf-next 3/3] selftests/bpf: verify module-specific types can be shown via bpf_snprintf_btf

2020-11-13 Thread Andrii Nakryiko
On Fri, Nov 13, 2020 at 10:11 AM Alan Maguire wrote: > > Verify that specifying a module name in "struct btf_ptr *" along > with a type id of a module-specific type will succeed. > > veth_stats_rx() is chosen because its function signature consists > of a module-specific type "struct veth_stats" a

Re: [RFC bpf-next 2/3] libbpf: bpf__find_by_name[_kind] should use btf__get_nr_types()

2020-11-13 Thread Andrii Nakryiko
On Fri, Nov 13, 2020 at 10:11 AM Alan Maguire wrote: > > When operating on split BTF, btf__find_by_name[_kind] will not > iterate over all types since they use btf->nr_types to show > the number of types to iterate over. For split BTF this is > the number of types _on top of base BTF_, so it will

[PATCH v2] mm/shmem.c: make shmem_mapping() inline

2020-11-13 Thread Hui Su
inline the shmem_mapping(), and use shmem_mapping() instead of 'inode->i_mapping->a_ops == &shmem_aops' in shmem_evict_inode(). v1->v2: remove the inline for func declaration in shmem_fs.h Reviewed-by: Pankaj Gupta Reported-by: kernel test robot Signed-off-by: Hui Su --- mm/shmem.c | 4 ++--

RE: [PATCH RESEND net-next 18/18] net: phy: adin: remove the use of the .ack_interrupt()

2020-11-13 Thread Ardelean, Alexandru
> -Original Message- > From: Ioana Ciornei > Sent: Friday, November 13, 2020 6:52 PM > To: Andrew Lunn ; Heiner Kallweit ; > Russell King ; Florian Fainelli ; > Jakub Kicinski ; net...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: Ioana Ciornei ; Ardelean, Alexandru > > Subjec

RE: [PATCH RESEND net-next 17/18] net: phy: adin: implement generic .handle_interrupt() callback

2020-11-13 Thread Ardelean, Alexandru
> -Original Message- > From: Ioana Ciornei > Sent: Friday, November 13, 2020 6:52 PM > To: Andrew Lunn ; Heiner Kallweit ; > Russell King ; Florian Fainelli ; > Jakub Kicinski ; net...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: Ioana Ciornei ; Ardelean, Alexandru > > Subjec

Re: [PATCH 1/3] arm64: dts: ti: k3-j7200-main: Add gpio nodes in main domain

2020-11-13 Thread Sekhar Nori
interrupt provider >>> >>> Which I don't see in my logs. My guess is some other patch(es) in your >>> patch stack either uncovers this warning or causes it. >> >> Oh boy! I sent you and myself on wild goose chase! Really sorry about >> messing up

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-11-13 Thread Al Viro
On Fri, Nov 13, 2020 at 09:14:20PM -0700, Nathan Chancellor wrote: > Unfortunately that patch does not solve my issue. Is there any other > debugging I should add? Hmm... I wonder which file it is; how about if (WARN_ON(!iovec.iov_len)) printk(KERN_ERR "od

Re: [PATCH] mm/shmem.c: make shmem_mapping() inline

2020-11-13 Thread Hui Su
On Sat, Nov 14, 2020 at 12:54:47AM +0800, kernel test robot wrote: > Hi Hui, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on mmotm/master] > > url: > https://github.com/0day-ci/linux/commits/Hui-Su/mm-shmem-c-make-shmem

[PATCH] rtlwifi: rtl8192de: remove the useless value assignment

2020-11-13 Thread xiakaixu1987
From: Kaixu Xia The variable u4tmp is overwritten by the following call and the assignment is useless, so remove it. Reported-by: Tosk Robot Signed-off-by: Kaixu Xia --- drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

Re: [RFC 07/11] coresight: sink: Add TRBE driver

2020-11-13 Thread Tingwei Zhang
Hi Anshuman, On Tue, Nov 10, 2020 at 08:45:05PM +0800, Anshuman Khandual wrote: > Trace Buffer Extension (TRBE) implements a trace buffer per CPU which is > accessible via the system registers. The TRBE supports different addressing > modes including CPU virtual address and buffer modes including

Re: [RFC 06/11] coresight: ete: Detect ETE as one of the supported ETMs

2020-11-13 Thread Tingwei Zhang
Hi Anshuman, On Tue, Nov 10, 2020 at 08:45:04PM +0800, Anshuman Khandual wrote: > From: Suzuki K Poulose > > Add ETE as one of the supported device types we support > with ETM4x driver. The devices are named following the > existing convention as ete. > > ETE mandates that the trace resource st

Re: [RFC 00/11] arm64: coresight: Enable ETE and TRBE

2020-11-13 Thread Tingwei Zhang
Hi Anshuman, On Tue, Nov 10, 2020 at 08:44:58PM +0800, Anshuman Khandual wrote: > This series enables future IP trace features Embedded Trace Extension (ETE) > and Trace Buffer Extension (TRBE). This series depends on the ETM system > register instruction support series [0] and the v8.4 Self hoste

Re: [PATCH v4 5/5] drm/i915/display: Introduce DEFINE_SHOW_STORE_ATTRIBUTE for debugfs

2020-11-13 Thread kernel test robot
Hi Luo, Thank you for the patch! Yet something to improve: [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on scsi/for-next linus/master v5.10-rc3 next-20201113] [cannot apply to hnaz-linux-mm/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And

[PATCH] USB: serial: mos7720: defer state restore to a workqueue

2020-11-13 Thread Davidlohr Bueso
The parallel port restore operation currently defers writes to a tasklet, if it sees a locked disconnect mutex. The driver goes to a lot of trouble to ensure writes happen in a non-blocking context, but things can be greatly simplified if it's done in regular process context and this is not a syst

Re: [Nouveau] [PATCH 1/8] drm/nouveau/kms/nv50-: Use atomic encoder callbacks everywhere

2020-11-13 Thread Ben Skeggs
I've merged all of these. Sent the first to 5.10-fixes for the regression there, the rest will go in with a later -next pull request. Thanks, Ben. On Sat, 14 Nov 2020 at 10:14, Lyude Paul wrote: > > It turns out that I forgot to go through and make sure that I converted all > encoder callbacks

[PATCH] rtc: Fix memleak in sun6i_rtc_clk_init

2020-11-13 Thread Youling Tang
When rtc->base or rtc->int_osc or rtc->losc or rtc->ext_losc is NULL, we should free clk_data and rtc before the function returns to prevent memleak. Signed-off-by: Youling Tang --- drivers/rtc/rtc-sun6i.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc

Re: [PATCH 1/3] arm64: dts: ti: k3-j7200-main: Add gpio nodes in main domain

2020-11-13 Thread Grygorii Strashko
reproduce this behavior. Using v5.10-rc1 as baseline (happens the same with next-20201113 as well. v5.10-rc1: https://pastebin.ubuntu.com/p/Pn9HDqRjQ4/ (recording: https://asciinema.org/a/55YVpql9Bq8rh8fePTxI2xObO) v5.10-rc1 + 1st patch in the series(since we a

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-11-13 Thread Nathan Chancellor
On Sat, Nov 14, 2020 at 03:54:53AM +, Al Viro wrote: > On Fri, Nov 13, 2020 at 08:01:24PM -0700, Nathan Chancellor wrote: > > Sure thing, it does trigger. > > > > [0.235058] [ cut here ] > > [0.235062] WARNING: CPU: 15 PID: 237 at fs/seq_file.c:176 > > seq_read

[PATCH 2/2] arm: Fix kfree NULL pointer in omap2xxx_clkt_vps_init

2020-11-13 Thread Youling Tang
The returns pointer is NULL when kzalloc fails to apply for space, so fix kfree NULL pointer. Signed-off-by: Youling Tang --- arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c b/arch/

[PATCH 1/2] arm: Fix memleak in omap2xxx_clkt_vps_init

2020-11-13 Thread Youling Tang
If the clk_register fails, we should free hw before function returns to prevent memleak. Signed-off-by: Youling Tang --- arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c b/arch/arm/mach-omap2/clkt

[PATCH] dmaengine: pl330: _prep_dma_memcpy: Fix wrong burst size

2020-11-13 Thread Sugar Zhang
Actually, burst size is equal to '1 << desc->rqcfg.brst_size'. we should use burst size, not desc->rqcfg.brst_size. dma memcpy performance on Rockchip RV1126 @ 1512MHz A7, 1056MHz LPDDR3, 200MHz DMA: dmatest: /# echo dma0chan0 > /sys/module/dmatest/parameters/channel /# echo 4194304 > /sys/modul

[PATCH net-next 2/3] net: ethernet: ti: cpsw_new: enable broadcast/multicast rate limit support

2020-11-13 Thread Grygorii Strashko
This patch enables support for ingress broadcast(BC)/multicast(MC) rate limiting in TI CPSW switchdev driver (the corresponding ALE support was added in previous patch) by implementing HW offload for simple tc-flower policer with matches on dst_mac: - ff:ff:ff:ff:ff:ff has to be used for BC rate l

[PATCH net-next 0/3] net: ethernet: ti: cpsw: enable broadcast/multicast rate limit support

2020-11-13 Thread Grygorii Strashko
Hi This series first adds supports for the ALE feature to rate limit number ingress broadcast(BC)/multicast(MC) packets per/sec which main purpose is BC/MC storm prevention. And then enables corresponding support for ingress broadcast(BC)/multicast(MC) rate limiting for TI CPSW switchdev and AM65

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-11-13 Thread Al Viro
On Fri, Nov 13, 2020 at 08:01:24PM -0700, Nathan Chancellor wrote: > Sure thing, it does trigger. > > [0.235058] [ cut here ] > [0.235062] WARNING: CPU: 15 PID: 237 at fs/seq_file.c:176 > seq_read_iter+0x3b3/0x3f0 > [0.235064] CPU: 15 PID: 237 Comm: localhost N

[PATCH net-next 3/3] net: ethernet: ti: am65-cpsw: enable broadcast/multicast rate limit support

2020-11-13 Thread Grygorii Strashko
This patch enables support for ingress broadcast(BC)/multicast(MC) rate limiting in TI AM65x CPSW driver (the corresponding ALE support was added in previous patch) by implementing HW offload for simple tc-flower policer with matches on dst_mac: - ff:ff:ff:ff:ff:ff has to be used for BC rate limit

[PATCH net-next 1/3] drivers: net: cpsw: ale: add broadcast/multicast rate limit support

2020-11-13 Thread Grygorii Strashko
The CPSW ALE supports feature to rate limit number ingress broadcast(BC)/multicast(MC) packets per/sec which main purpose is BC/MC storm prevention. The ALE BC/MC packet rate limit configuration consist of two parts: - global ALE_CONTROL.ENABLE_RATE_LIMIT bit 0 which enables rate limiting global

Re: [PATCH kernel v3] genirq/irqdomain: Add reference counting to IRQs

2020-11-13 Thread Alexey Kardashevskiy
On 14/11/2020 05:19, Cédric Le Goater wrote: On 11/9/20 10:46 AM, Alexey Kardashevskiy wrote: PCI devices share 4 legacy INTx interrupts from the same PCI host bridge. Device drivers map/unmap hardware interrupts via irq_create_mapping()/ irq_dispose_mapping(). The problem with that these int

Re: [PATCH 1/2] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-11-13 Thread Rik van Riel
On Thu, 2020-11-12 at 11:52 +0100, Michal Hocko wrote: > On Thu 05-11-20 14:15:07, Rik van Riel wrote: > > > > This patch applies the same configurated limitation of THPs to > > shmem > > hugepage allocations, to prevent that from happening. > > I believe you should also exaplain why we want to c

Re: [PATCH 2/2] mm,thp,shm: limit gfp mask to no more than specified

2020-11-13 Thread Rik van Riel
On Thu, 2020-11-12 at 12:22 +0100, Michal Hocko wrote: > [Cc Chris for i915 and Andray] > > On Thu 05-11-20 14:15:08, Rik van Riel wrote: > > Matthew Wilcox pointed out that the i915 driver opportunistically > > allocates tmpfs memory, but will happily reclaim some of its > > pool if no memory is

Re: [PATCH kernel v3] genirq/irqdomain: Add reference counting to IRQs

2020-11-13 Thread Alexey Kardashevskiy
On 14/11/2020 05:34, Marc Zyngier wrote: Hi Alexey, On 2020-11-09 09:46, Alexey Kardashevskiy wrote: PCI devices share 4 legacy INTx interrupts from the same PCI host bridge. Device drivers map/unmap hardware interrupts via irq_create_mapping()/ irq_dispose_mapping(). The problem with that t

[PATCH 05/10] tracepoints: Migrate to use SYSCALL_WORK flag

2020-11-13 Thread Gabriel Krisman Bertazi
For architectures that rely on the generic syscall entry code, use the syscall_work field in struct thread_info and the specific SYSCALL_WORK flag. This set of flags has the advantage of being architecture independent. Users of the flag outside of the generic entry code should rely on the accesso

[PATCH 02/10] kernel: entry: Expose helpers to migrate TIF to SYSCALL_WORK flags

2020-11-13 Thread Gabriel Krisman Bertazi
With the goal to split the syscall work related flags into a separate field that is architecture independent, expose transitional helpers that resolve to either the TIF flags or to the corresponding SYSCALL_WORK flags. This will allow architectures to migrate only when they port to the generic sys

[PATCH 04/10] seccomp: Migrate to use SYSCALL_WORK flag

2020-11-13 Thread Gabriel Krisman Bertazi
When one the generic syscall entry code, use the syscall_work field in struct thread_info and specific SYSCALL_WORK flags to setup this syscall work. This flag has the advantage of being architecture independent. Users of the flag outside of the generic entry code should rely on the accessor macr

[PATCH 09/10] kernel: entry: Drop usage of TIF flags in the generic syscall code

2020-11-13 Thread Gabriel Krisman Bertazi
Now that the flags migration in the common syscall entry is complete and the code relies exclusively on syscall_work, clean up the accesses to TI flags in that path. Signed-off-by: Gabriel Krisman Bertazi --- include/linux/entry-common.h | 20 +--- kernel/entry/common.c|

[PATCH 03/10] kernel: entry: Wire up syscall_work in common entry code

2020-11-13 Thread Gabriel Krisman Bertazi
Prepares the common entry code to use the SYSCALL_WORK flags. They will be defined in subsequent patches for each type of syscall work. SYSCALL_WORK_ENTRY/EXIT are defined for the transition, as they will replace the TIF_ equivalent defines. Signed-off-by: Gabriel Krisman Bertazi --- include/lin

[PATCH 06/10] ptrace: Migrate to use SYSCALL_TRACE flag

2020-11-13 Thread Gabriel Krisman Bertazi
For architectures that rely on the generic syscall entry code, use the syscall_work field in struct thread_info and the specific SYSCALL_WORK flag. This set of flags has the advantage of being architecture independent. Users of the flag outside of the generic entry code should rely on the accesso

[PATCH 00/10] Migrate syscall entry/exit work to SYSCALL_WORK flagset

2020-11-13 Thread Gabriel Krisman Bertazi
Thomas, This a refactor work moving the work done by features like seccomp, ptrace, audit and tracepoints out of the TI flags. The reasons are: 1) Scarcity of TI flags in x86 32-bit. 2) TI flags are defined by the architecture, while these features are arch-independent. 3) Communit

[PATCH 07/10] ptrace: Migrate TIF_SYSCALL_EMU to use SYSCALL_WORK flag

2020-11-13 Thread Gabriel Krisman Bertazi
For architectures that rely on the generic syscall entry code, use the syscall_work field in struct thread_info and the specific SYSCALL_WORK flag. This set of flags has the advantage of being architecture independent. Users of the flag outside of the generic entry code should rely on the accesso

[PATCH 10/10] x86: Reclaim unused x86 TI flags

2020-11-13 Thread Gabriel Krisman Bertazi
Reclaim TI flags that were migrated to syscall_work flags. Signed-off-by: Gabriel Krisman Bertazi --- arch/x86/include/asm/thread_info.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index b217f63e73b7..33b

[PATCH 01/10] x86: Expose syscall_work field in thread_info

2020-11-13 Thread Gabriel Krisman Bertazi
This field will be used by SYSCALL_WORK flags, migrated from TI flags. Signed-off-by: Gabriel Krisman Bertazi --- arch/x86/include/asm/thread_info.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index 93277a8d2ef0..b2

[PATCH 08/10] audit: Migrate to use SYSCALL_WORK flag

2020-11-13 Thread Gabriel Krisman Bertazi
For architectures that rely on the generic syscall entry code, use the syscall_work field in struct thread_info and the specific SYSCALL_WORK flag. This set of flags has the advantage of being architecture independent. Users of the flag outside of the generic entry code should rely on the accesso

Re: [PATCH v6 1/2] kunit: Support for Parameterized Testing

2020-11-13 Thread David Gow
On Sat, Nov 14, 2020 at 9:38 AM Arpitha Raghunandan <98.a...@gmail.com> wrote: > > On 14/11/20 5:44 am, Marco Elver wrote: > > > > Arpitha: Do you want to send v7, but with the following modifications > > from what I proposed? Assuming nobody objects. > > > > 1. Remove the num_params counter and do

Re: [SPECIFICATION RFC] The firmware and bootloader log specification

2020-11-13 Thread Randy Dunlap
On 11/13/20 3:52 PM, Daniel Kiper wrote: > Hey, > > > Here is the description (pseudocode) of the structures which will be > used to store the log data. > > Anyway, I am aware that this is not specification per se. Yes, you have caveats here. I'm sure that you either already know or would lear

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-11-13 Thread Nathan Chancellor
On Sat, Nov 14, 2020 at 01:17:54AM +, Al Viro wrote: > On Fri, Nov 13, 2020 at 04:54:53PM -0700, Nathan Chancellor wrote: > > > This patch in -next (6a9f696d1627bacc91d1cebcfb177f474484e8ba) breaks > > WSL2's interoperability feature, where Windows paths automatically get > > added to PATH on

Re: [net-next,v2,4/5] seg6: add support for the SRv6 End.DT4 behavior

2020-11-13 Thread David Ahern
On 11/13/20 7:29 PM, Andrea Mayer wrote: > Hi Jakub, > > On Fri, 13 Nov 2020 18:01:26 -0800 > Jakub Kicinski wrote: > >>> UAPI solution 2 >>> >>> we turn "table" into an optional parameter and we add the "vrftable" >>> optional >>> parameter. DT4 can only be used with the "vrftable" (hence it i

Re: [PATCH v2] perf data: Allow to use stdio functions for pipe mode

2020-11-13 Thread Namhyung Kim
Gentle ping! :) On Fri, Oct 30, 2020 at 2:47 PM Namhyung Kim wrote: > > When perf data is in a pipe, it reads each event separately using > read(2) syscall. This is a huge performance bottleneck when > processing large data like in perf inject. Also perf inject needs to > use write(2) syscall

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Suren Baghdasaryan
On Fri, Nov 13, 2020 at 6:16 PM Andrew Morton wrote: > > On Fri, 13 Nov 2020 17:57:02 -0800 Suren Baghdasaryan > wrote: > > > On Fri, Nov 13, 2020 at 5:18 PM Andrew Morton > > wrote: > > > > > > On Fri, 13 Nov 2020 17:09:37 -0800 Suren Baghdasaryan > > > wrote: > > > > > > > > > > Seems to m

[RFC] depopulate_range_driver_managed() for removing page-table mappings for hot-added memory blocks

2020-11-13 Thread Sudarshan Rajagopalan
Hello, When memory blocks are removed, along with removing the memmap entries, memory resource and memory block devices, the arch specific arch_remove_memory() is called which takes care of tearing down the page-tables. Suppose there’s a usecase where the removed memory blocks will be adde

[PATCH] perf stat: Take cgroups into account for shadow stats

2020-11-13 Thread Namhyung Kim
As of now it doesn't consider cgroups when collecting shadow stats and metrics so counter values from different cgroups will be saved in a same slot. This resulted in an incorrect numbers when those cgroups have different workloads. For example, let's look at the below - the cgroup A and C runs s

Re: [PATCH net-next] net: phy: mscc: Add PTP support for 2 more VSC PHYs

2020-11-13 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Thu, 12 Nov 2020 10:22:50 +0100 you wrote: > Add VSC8572 and VSC8574 in the PTP configuration > as they also support PTP. > > The relevant datasheets can be found here: > - VSC8572: https://www.microchip.com/wwwproduc

Re: [net-next,v2,4/5] seg6: add support for the SRv6 End.DT4 behavior

2020-11-13 Thread Andrea Mayer
Hi Jakub, On Fri, 13 Nov 2020 18:01:26 -0800 Jakub Kicinski wrote: > > UAPI solution 2 > > > > we turn "table" into an optional parameter and we add the "vrftable" > > optional > > parameter. DT4 can only be used with the "vrftable" (hence it is a required > > parameter for DT4). > > DT6 can b

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Andrew Morton
On Fri, 13 Nov 2020 17:57:02 -0800 Suren Baghdasaryan wrote: > On Fri, Nov 13, 2020 at 5:18 PM Andrew Morton > wrote: > > > > On Fri, 13 Nov 2020 17:09:37 -0800 Suren Baghdasaryan > > wrote: > > > > > > > > Seems to me that the ability to reap another process's memory is a > > > > > > general

[GIT PULL] hwmon fixes for v5.10-rc4

2020-11-13 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux v5.10-rc4 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-v5.10-rc4 Thanks, Guenter -- The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-2

Re: [net-next,v2,4/5] seg6: add support for the SRv6 End.DT4 behavior

2020-11-13 Thread Jakub Kicinski
On Sat, 14 Nov 2020 02:50:58 +0100 Andrea Mayer wrote: > Hi Jakub, > Please see my responses inline: > > On Fri, 13 Nov 2020 15:54:37 -0800 > Jakub Kicinski wrote: > > > On Sat, 14 Nov 2020 00:00:24 +0100 Andrea Mayer wrote: > > > On Fri, 13 Nov 2020 13:40:10 -0800 > > > Jakub Kicinski wrote:

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Suren Baghdasaryan
On Fri, Nov 13, 2020 at 5:18 PM Andrew Morton wrote: > > On Fri, 13 Nov 2020 17:09:37 -0800 Suren Baghdasaryan > wrote: > > > > > > Seems to me that the ability to reap another process's memory is a > > > > > generally useful one, and that it should not be tied to delivering a > > > > > signal i

Re: [net-next,v2,4/5] seg6: add support for the SRv6 End.DT4 behavior

2020-11-13 Thread Andrea Mayer
Hi Jakub, Please see my responses inline: On Fri, 13 Nov 2020 15:54:37 -0800 Jakub Kicinski wrote: > On Sat, 14 Nov 2020 00:00:24 +0100 Andrea Mayer wrote: > > On Fri, 13 Nov 2020 13:40:10 -0800 > > Jakub Kicinski wrote: > > > > I can tackle the v6 version but how do we face the compatibility

Re: [RFC PATCH 3/6] mm: page_owner: add support for splitting to any order in split page_owner.

2020-11-13 Thread Roman Gushchin
On Fri, Nov 13, 2020 at 08:08:58PM -0500, Zi Yan wrote: > On 13 Nov 2020, at 19:15, Roman Gushchin wrote: > > > On Wed, Nov 11, 2020 at 03:40:05PM -0500, Zi Yan wrote: > > > From: Zi Yan > > > > > > It adds a new_order parameter to set new page order in page owner. > > > It prepares for upcoming

Re: [PATCH V4 3/5] arm64: dts: ti: am65/j721e: Fix up un-necessary status set to "okay" for crypto

2020-11-13 Thread J, KEERTHY
On 11/14/2020 2:48 AM, Nishanth Menon wrote: The default state of a device tree node is "okay". There is no specific use of explicitly adding status = "okay" in the SoC dtsi. Reviewed-by: Keerthy Signed-off-by: Nishanth Menon Reviewed-by: Tony Lindgren Acked-by: Tero Kristo Cc: Keerth

Re: [PATCH v6 1/2] kunit: Support for Parameterized Testing

2020-11-13 Thread Arpitha Raghunandan
On 14/11/20 5:44 am, Marco Elver wrote: > On Fri, 13 Nov 2020 at 23:37, David Gow wrote: >> >> On Fri, Nov 13, 2020 at 6:31 PM Marco Elver wrote: >>> >>> On Fri, Nov 13, 2020 at 01:17PM +0800, David Gow wrote: On Thu, Nov 12, 2020 at 8:37 PM Marco Elver wrote: >>> [...] >> (It also migh

Re: [RFC PATCH 5/9] cxl/mem: Find device capabilities

2020-11-13 Thread Ben Widawsky
On 20-11-13 12:26:03, Bjorn Helgaas wrote: > On Tue, Nov 10, 2020 at 09:43:52PM -0800, Ben Widawsky wrote: > > CXL devices contain an array of capabilities that describe the > > interactions software can interact with the device, or firmware running > > on the device. A CXL compliant device must im

Re: [PATCH v2 1/2] x86/pci: use unsigned int in check_reserved_t

2020-11-13 Thread Randy Dunlap
On 11/13/20 4:23 PM, Sami Tolvanen wrote: > Use unsigned int instead of raw unsigned in check_reserved_t to follow > the kernel's style guidelines. > > Signed-off-by: Sami Tolvanen Acked-by: Randy Dunlap Thanks. > --- > arch/x86/pci/mmconfig-shared.c | 4 ++-- > 1 file changed, 2 insertions(

Re: [PATCH v2 2/2] x86/e820: fix the function type for e820__mapped_all

2020-11-13 Thread Randy Dunlap
On 11/13/20 4:23 PM, Sami Tolvanen wrote: > e820__mapped_all is passed as a callback to is_mmconf_reserved, which > expects a function of type: > > typedef bool (*check_reserved_t)(u64 start, u64 end, unsigned int type); > > This trips indirect call checking with Clang's Control-Flow Integrity >

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-11-13 Thread Al Viro
On Fri, Nov 13, 2020 at 04:54:53PM -0700, Nathan Chancellor wrote: > This patch in -next (6a9f696d1627bacc91d1cebcfb177f474484e8ba) breaks > WSL2's interoperability feature, where Windows paths automatically get > added to PATH on start up so that Windows binaries can be accessed from > within Lin

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Andrew Morton
On Fri, 13 Nov 2020 17:09:37 -0800 Suren Baghdasaryan wrote: > > > > Seems to me that the ability to reap another process's memory is a > > > > generally useful one, and that it should not be tied to delivering a > > > > signal in this fashion. > > > > > > > > And we do have the new process_madvi

Re: [PATCH v3 5/6] i2c: iproc: handle master read request

2020-11-13 Thread Dhananjay Phadke
On Tue, 10 Nov 2020 11:24:36 -0800, Ray Jui wrote: Yes it's true that for master write-read events both IS_S_RD_EVENT_SHIFT and IS_S_RX_EVENT_SHIFT are coming together. So before the slave starts transmitting data to the master, it should first read all data from rx-fifo i.e.

Re: [RFC PATCH 3/6] mm: page_owner: add support for splitting to any order in split page_owner.

2020-11-13 Thread Zi Yan
On 13 Nov 2020, at 19:15, Roman Gushchin wrote: On Wed, Nov 11, 2020 at 03:40:05PM -0500, Zi Yan wrote: From: Zi Yan It adds a new_order parameter to set new page order in page owner. It prepares for upcoming changes to support split huge page to any lower order. Signed-off-by: Zi Yan ---

Re: linux-next: build failure after merge of the akpm tree

2020-11-13 Thread Andrew Morton
On Fri, 13 Nov 2020 18:02:39 +1100 Stephen Rothwell wrote: > Hi all, > > After merging the akpm tree, today's linux-next build (i386 defconfig) > failed like this: > > mm/secretmem.c: In function 'secretmem_memcg_charge': > mm/secretmem.c:72:4: error: 'struct page' has no member named 'memcg_d

Re: [RFC PATCH 4/9] cxl/mem: Map memory device registers

2020-11-13 Thread Ben Widawsky
On 20-11-13 12:17:32, Bjorn Helgaas wrote: > On Tue, Nov 10, 2020 at 09:43:51PM -0800, Ben Widawsky wrote: > > All the necessary bits are initialized in order to find and map the > > register space for CXL Memory Devices. This is accomplished by using the > > Register Locator DVSEC (CXL 2.0 - 8.1.9

Re: [RFC PATCH 3/9] cxl/mem: Add a driver for the type-3 mailbox

2020-11-13 Thread Ben Widawsky
On 20-11-13 12:17:28, Bjorn Helgaas wrote: > On Tue, Nov 10, 2020 at 09:43:50PM -0800, Ben Widawsky wrote: > > From: Dan Williams > > > > The CXL.mem protocol allows a device to act as a provider of "System > > RAM" and/or "Persistent Memory" that is fully coherent as if the memory > > was attach

[PATCH net-next] net: linux/skbuff.h: combine NET + KCOV handling

2020-11-13 Thread Randy Dunlap
r.kernel.org --- include/linux/skbuff.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- linux-next-20201113.orig/include/linux/skbuff.h +++ linux-next-20201113/include/linux/skbuff.h @@ -4151,7 +4151,7 @@ enum skb_ext_id { #if IS_ENABLED(CONFIG_MPTCP) SKB_EXT_MPTCP

Re: [PATCH v2 08/10] ARM: dts: NSP: Add a SRAB compatible string for each board

2020-11-13 Thread Vladimir Oltean
On Wed, Nov 11, 2020 at 08:50:18PM -0800, Florian Fainelli wrote: > Provide a valid compatible string for the Ethernet switch node based on > the board including the switch. This allows us to have sane defaults and > silences the following warnings: > > arch/arm/boot/dts/bcm958522er.dt.yaml: >

Re: [PATCH v2 09/10] ARM: dts: NSP: Provide defaults ports container node

2020-11-13 Thread Vladimir Oltean
On Wed, Nov 11, 2020 at 08:50:19PM -0800, Florian Fainelli wrote: > Provide an empty 'ports' container node with the correct #address-cells > and #size-cells properties. This silences the following warning: > > arch/arm/boot/dts/bcm958522er.dt.yaml: > ethernet-switch@36000: 'oneOf' conditional fai

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Suren Baghdasaryan
On Fri, Nov 13, 2020 at 5:00 PM Andrew Morton wrote: > > On Fri, 13 Nov 2020 16:06:25 -0800 Suren Baghdasaryan > wrote: > > > On Fri, Nov 13, 2020 at 3:55 PM Andrew Morton > > wrote: > > > > > > On Fri, 13 Nov 2020 09:34:48 -0800 Suren Baghdasaryan > > > wrote: > > > > > > > When a process i

Re: #PF from NMI

2020-11-13 Thread Paul E. McKenney
On Sat, Nov 14, 2020 at 12:13:58AM +0100, Thomas Gleixner wrote: > On Fri, Nov 13 2020 at 13:53, Peter Zijlstra wrote: > > [ 139.226724] WARNING: CPU: 9 PID: 2290 at kernel/rcu/tree.c:932 > > __rcu_irq_enter_check_tick+0x84/0xd0 > > [ 139.226753] irqentry_enter+0x25/0x40 > > [ 139.226753] exc

Re: [PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Andrew Morton
On Fri, 13 Nov 2020 16:06:25 -0800 Suren Baghdasaryan wrote: > On Fri, Nov 13, 2020 at 3:55 PM Andrew Morton > wrote: > > > > On Fri, 13 Nov 2020 09:34:48 -0800 Suren Baghdasaryan > > wrote: > > > > > When a process is being killed it might be in an uninterruptible sleep > > > which leads to

Re: [RFC PATCH 4/6] mm: thp: add support for split huge page to any lower order pages.

2020-11-13 Thread Zi Yan
On 13 Nov 2020, at 19:52, Roman Gushchin wrote: > On Wed, Nov 11, 2020 at 03:40:06PM -0500, Zi Yan wrote: >> From: Zi Yan >> >> To split a THP to any lower order pages, we need to reform THPs on >> subpages at given order and add page refcount based on the new page >> order. Also we need to reini

Re: Error: invalid switch -me200

2020-11-13 Thread Segher Boessenkool
On Fri, Nov 13, 2020 at 04:37:38PM -0800, Fāng-ruì Sòng wrote: > On Fri, Nov 13, 2020 at 4:23 PM Segher Boessenkool > wrote: > > On Fri, Nov 13, 2020 at 12:14:18PM -0800, Nick Desaulniers wrote: > > > > > > Error: invalid switch -me200 > > > > > > Error: unrecognized option -me200 > > > > > > > >

[PATCH v5 0/6] Intel MAX10 BMC Secure Update Driver

2020-11-13 Thread Russ Weight
The Intel MAX10 BMC Secure Update driver instantiates the FPGA Security Manager class driver and provides the callback functions required to support secure updates on Intel n3000 PAC devices. This driver is implemented as a sub-driver of the Intel MAX10 BMC mfd driver. Future instances of the MAX10

[PATCH v5 4/6] fpga: m10bmc-sec: expose max10 canceled keys in sysfs

2020-11-13 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to provide sysfs files to expose the canceled code signing key (CSK) bit vectors. These use the standard bitmap list format (e.g. 1,2-6,9). Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v5: - No change v4: - Moved sysfs files for displaying the

[PATCH v5 3/6] fpga: m10bmc-sec: expose max10 flash update count

2020-11-13 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to provide a sysfs file to expose the flash update count for the FPGA user image. Signed-off-by: Russ Weight Reviewed-by: Tom Rix --- v5: - Renamed sysfs node user_flash_count to flash_count and updated the sysfs documentation accordingly. v4: -

[PATCH v5 5/6] fpga: m10bmc-sec: add max10 secure update functions

2020-11-13 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to include the functions that enable secure updates of BMC images, FPGA images, etc. Signed-off-by: Russ Weight --- v5: - No change v4: - No change v3: - Changed: iops -> sops, imgr -> smgr, IFPGA_ -> FPGA_, ifpga_ to fpga_ - Changed "MAX10 BMC Se

[PATCH v5 2/6] fpga: m10bmc-sec: create max10 bmc secure update driver

2020-11-13 Thread Russ Weight
Create a platform driver that can be invoked as a sub driver for the Intel MAX10 BMC in order to support secure updates. This sub-driver will invoke an instance of the FPGA Security Manager class driver in order to expose sysfs interfaces for managing and monitoring secure updates to FPGA and BMC i

[PATCH v5 1/6] mfd: intel-m10-bmc: support for MAX10 BMC Secure Updates

2020-11-13 Thread Russ Weight
Add macros and definitions required by the MAX10 BMC Secure Update driver. Signed-off-by: Russ Weight Acked-by: Lee Jones --- v5: - Renamed USER_FLASH_COUNT to STAGING_FLASH_COUNT v4: - No change v3: - Changed "MAX10 BMC Secure Engine driver" to "MAX10 BMC Secure Update driver" - Rem

[PATCH v5 6/6] fpga: m10bmc-sec: add max10 get_hw_errinfo callback func

2020-11-13 Thread Russ Weight
Extend the MAX10 BMC Secure Update driver to include a function that returns 64 bits of additional HW specific data for errors that require additional information. This callback function enables the hw_errinfo sysfs node in the Intel Security Manager class driver. Signed-off-by: Russ Weight --- v

Re: [RFC PATCH 2/6] mm: memcg: make memcg huge page split support any order split.

2020-11-13 Thread Zi Yan
On 13 Nov 2020, at 19:23, Roman Gushchin wrote: > On Wed, Nov 11, 2020 at 03:40:04PM -0500, Zi Yan wrote: >> From: Zi Yan >> >> It reads thp_nr_pages and splits to provided new_nr. It prepares for >> upcoming changes to support split huge page to any lower order. >> >> Signed-off-by: Zi Yan >> -

Re: [PATCH net-next v2 09/11] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-11-13 Thread Vladimir Oltean
On Fri, Nov 13, 2020 at 07:57:32PM +0100, Christian Eggers wrote: > On Friday, 13 November 2020, 03:40:20 CET, Vladimir Oltean wrote: > > On Thu, Nov 12, 2020 at 04:35:35PM +0100, Christian Eggers wrote: > [...] > > > @@ -103,6 +108,10 @@ static int ksz9477_ptp_adjtime(struct ptp_clock_info > > > *

Re: [RFC PATCH 4/6] mm: thp: add support for split huge page to any lower order pages.

2020-11-13 Thread Roman Gushchin
On Wed, Nov 11, 2020 at 03:40:06PM -0500, Zi Yan wrote: > From: Zi Yan > > To split a THP to any lower order pages, we need to reform THPs on > subpages at given order and add page refcount based on the new page > order. Also we need to reinitialize page_deferred_list after removing > the page fr

Re: [PATCH v6 22/25] x86/asm: annotate indirect jumps

2020-11-13 Thread Josh Poimboeuf
On Fri, Nov 13, 2020 at 03:31:34PM -0800, Sami Tolvanen wrote: > > #else /* !CONFIG_STACK_VALIDATION */ > > @@ -123,6 +129,8 @@ struct unwind_hint { > > .macro UNWIND_HINT sp_reg:req sp_offset=0 type:req end=0 > > .endm > > #endif > > +.macro STACK_FRAME_NON_STANDARD func:req > > +.endm > > Th

Re: [PATCH v4] zram: break the strict dependency from lzo

2020-11-13 Thread Sergey Senozhatsky
On (20/11/04 12:41), Minchan Kim wrote: > On Wed, Nov 04, 2020 at 02:12:35PM +, Rui Salvaterra wrote: > > Hi, Minchan, > > > > On Tue, 3 Nov 2020 at 21:29, Minchan Kim wrote: > > > > > > Can't we just provide choice/endchoice in Kconfig to select default > > > comp algorithm from admin? > >

Re: [PATCH v2 net-next] net: stmmac: platform: use optional clk/reset get APIs

2020-11-13 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Thu, 12 Nov 2020 09:27:37 +0800 you wrote: > Use the devm_reset_control_get_optional() and devm_clk_get_optional() > rather than open coding them. > > Signed-off-by: Jisheng Zhang > --- > Since v1: > - keep wrapped as

Re: Error: invalid switch -me200

2020-11-13 Thread Fāng-ruì Sòng
On Fri, Nov 13, 2020 at 4:23 PM Segher Boessenkool wrote: > > On Fri, Nov 13, 2020 at 12:14:18PM -0800, Nick Desaulniers wrote: > > > > > Error: invalid switch -me200 > > > > > Error: unrecognized option -me200 > > > > > > > > 251 cpu-as-$(CONFIG_E200) += -Wa,-me200 > > > > > > > > Are those all

Re: [PATCH 24/24] perf record: Add --buildid-mmap option to enable mmap's build id

2020-11-13 Thread Namhyung Kim
On Fri, Nov 13, 2020 at 8:09 PM Jiri Olsa wrote: > > On Fri, Nov 13, 2020 at 01:40:00PM +0900, Namhyung Kim wrote: > > On Mon, Nov 09, 2020 at 10:54:15PM +0100, Jiri Olsa wrote: > > > Adding --buildid-mmap option to enable build id in mmap2 events. > > > It will only work if there's kernel support

Re: Error: invalid switch -me200

2020-11-13 Thread Segher Boessenkool
On Fri, Nov 13, 2020 at 12:14:18PM -0800, Nick Desaulniers wrote: > > > > Error: invalid switch -me200 > > > > Error: unrecognized option -me200 > > > > > > 251 cpu-as-$(CONFIG_E200) += -Wa,-me200 > > > > > > Are those all broken configs, or is Kconfig messed up such that > > > randconfig can sel

  1   2   3   4   5   6   7   8   9   10   >