Re: [PATCH 08/11] pragma once: convert scripts/atomic/

2021-02-28 Thread Peter Zijlstra
On Sun, Feb 28, 2021 at 08:03:18PM +0300, Alexey Dobriyan wrote: > From f10fe79897fa9600f144c76bc5df52dba28b7a66 Mon Sep 17 00:00:00 2001 > From: Alexey Dobriyan > Date: Tue, 9 Feb 2021 01:37:55 +0300 > Subject: [PATCH 08/11] pragma once: convert scripts/atomic/ > > Generate atomic headers

Re: [PATCH] mm: Generalize HUGETLB_PAGE_SIZE_VARIABLE

2021-02-28 Thread Christoph Hellwig
On Mon, Mar 01, 2021 at 01:13:41PM +0530, Anshuman Khandual wrote: > > doesn't this need a 'if HUGETLB_PAGE' > > While making HUGETLB_PAGE_SIZE_VARIABLE a generic option, also made it > dependent on HUGETLB_PAGE. Should not that gate HUGETLB_PAGE_SIZE_VARIABLE > when HUGETLB_PAGE is not available

Re: [PATCH] vdpa/mlx5: Fix wrong use of bit numbers

2021-02-28 Thread Jason Wang
On 2021/3/1 2:28 下午, Eli Cohen wrote: VIRTIO_F_VERSION_1 is a bit number. Use BIT_ULL() with mask conditionals. Also, in mlx5_vdpa_is_little_endian() use BIT_ULL for consistency with the rest of the code. Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")

Re: [PATCH] dts: remove c6x dts hard link file

2021-02-28 Thread Geert Uytterhoeven
Hi Wolfram, On Mon, Mar 1, 2021 at 7:28 AM Wolfram Sang wrote: > The architecture has gone and indexing software like 'mkid' complains > about the broken link. > > Signed-off-by: Wolfram Sang Thanks for your patch! With s/hard/symbolic/ in the oneline-summary: Reviewed-by: Geert Uytterhoeven

Re: [PATCH] perf trace: Ensure read cmdlines are null terminated.

2021-02-28 Thread Namhyung Kim
Hi Ian, On Sat, Feb 27, 2021 at 7:14 AM Ian Rogers wrote: > > Issue detected by address sanitizer. > > Fixes: cd4ceb63438e (perf util: Save pid-cmdline mapping into tracing header) > Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Thanks, Namhyung > --- >

Re: [PATCH] mm: Generalize HUGETLB_PAGE_SIZE_VARIABLE

2021-02-28 Thread Anshuman Khandual
On 3/1/21 11:53 AM, Christoph Hellwig wrote: > On Mon, Mar 01, 2021 at 11:20:53AM +0530, Anshuman Khandual wrote: >> HUGETLB_PAGE_SIZE_VARIABLE need not be defined for each individual >> platform subscribing it. Instead just make it generic. >> >> Cc: Michael Ellerman >> Cc: Benjamin

Re: [GIT PULL] Driver core / debugfs changes for 5.12-rc1

2021-02-28 Thread Saravana Kannan
On Sat, Feb 27, 2021 at 6:27 AM Greg KH wrote: > > On Wed, Feb 24, 2021 at 10:20:44AM -0800, Linus Torvalds wrote: > > On Wed, Feb 24, 2021 at 6:27 AM Greg KH wrote: > > > > > > [..] I've reverted that change at > > > the very end so we don't have to worry about regressions in 5.12. > > > >

Re: Re: [PATCH] iwlegacy: Add missing check in il4965_commit_rxon

2021-02-28 Thread dinghao . liu
> On Sun, Feb 28, 2021 at 08:25:22PM +0800, Dinghao Liu wrote: > > There is one il_set_tx_power() call in this function without > > return value check. Print error message and return error code > > on failure just like the other il_set_tx_power() call. > > We have few calls for il_set_tx_power(),

[PATCH] sata_dwc_460ex: Fix missing check in sata_dwc_isr

2021-02-28 Thread Dinghao Liu
ata_qc_from_tag() may return a null pointer and further lead to null-pointer-dereference. Add a return value check to avoid such case. Signed-off-by: Dinghao Liu --- drivers/ata/sata_dwc_460ex.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 2/3] mm: Force update of mem cgroup soft limit tree on usage excess

2021-02-28 Thread Michal Hocko
On Fri 26-02-21 16:56:28, Tim Chen wrote: > > > On 2/26/21 12:52 AM, Michal Hocko wrote: > > >> > >> Michal, > >> > >> Let's take an extreme case where memcg 1 always generate the > >> first event and memcg 2 generates the rest of 128*8-1 events > >> and the pattern repeat. > > > > I do not

Re: Question about the "EXPERIMENTAL" tag for dax in XFS

2021-02-28 Thread Yasunori Goto
Hello, Dan-san, On 2021/02/27 4:24, Dan Williams wrote: On Fri, Feb 26, 2021 at 11:05 AM Darrick J. Wong wrote: On Fri, Feb 26, 2021 at 09:45:45AM +, ruansy.f...@fujitsu.com wrote: Hi, guys Beside this patchset, I'd like to confirm something about the "EXPERIMENTAL" tag for dax in XFS.

[PATCH] Squashfs: fix xattr id and id lookup sanity checks

2021-02-28 Thread Phillip Lougher
The checks for maximum metadata block size is missing SQUASHFS_BLOCK_OFFSET (the two byte length count). Cc: sta...@vger.kernel.org Signed-off-by: Phillip Lougher --- fs/squashfs/id.c | 6 -- fs/squashfs/xattr_id.c | 6 -- 2 files changed, 8 insertions(+), 4 deletions(-) diff

Re: [PATCH] iwlegacy: Add missing check in il4965_commit_rxon

2021-02-28 Thread Stanislaw Gruszka
On Sun, Feb 28, 2021 at 08:25:22PM +0800, Dinghao Liu wrote: > There is one il_set_tx_power() call in this function without > return value check. Print error message and return error code > on failure just like the other il_set_tx_power() call. We have few calls for il_set_tx_power(), on some

Re: linux kernel bug???

2021-02-28 Thread Dmitry Vyukov
On Mon, Mar 1, 2021 at 8:10 AM Lukas Bulwahn wrote: > > Hi, > > On Mon, Mar 1, 2021 at 7:58 AM wrote: > > > > This is the first time for me to report something, so maybe the format is > > not right. Please correct me if I'm wrong. Thank you ~ > > When using Syzkaller to fuzz Linux kernel

[PATCH] PCI: acpiphp: Fixed coding style

2021-02-28 Thread chakravarthikulkarni
In this commit fixed coding style for braces and comments. Signed-off-by: chakravarthikulkarni --- drivers/pci/hotplug/acpiphp.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/pci/hotplug/acpiphp.h b/drivers/pci/hotplug/acpiphp.h index

Re: [PATCH 6/7] dma-iommu: implement ->alloc_noncontiguous

2021-02-28 Thread Christoph Hellwig
On Mon, Mar 01, 2021 at 04:17:42PM +0900, Sergey Senozhatsky wrote: > > > Do you think we could add the attrs parameter to the > > > dma_alloc_noncontiguous() API? > > > > Yes, we could probably do that. > > I can cook a patch, unless somebody is already looking into it. I plan to resend the

Re: [PATCH 6/7] dma-iommu: implement ->alloc_noncontiguous

2021-02-28 Thread Sergey Senozhatsky
On (21/02/16 09:49), Christoph Hellwig wrote: > > When working on the videobuf2 integration with Sergey I noticed that > > we always pass 0 as DMA attrs here, which removes the ability for > > drivers to use DMA_ATTR_ALLOC_SINGLE_PAGES. > > > > It's quite important from a system stability point

drivers/gpu/drm/msm/dp/dp_debug.c:218 dp_debug_init() warn: passing zero to 'PTR_ERR'

2021-02-28 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 commit: d11a93690df7e9a7e07c0784ecad019a627b1449 drm/msm/dp: add debugfs support to DP driver config: arm64-randconfig-m031-20210301 (attached as .config) compiler:

Re: [PATCH] media: i2c: adp1653: fix error handling from a call to adp1653_get_fault

2021-02-28 Thread Sakari Ailus
Hi Dan, Colin, On Sat, Feb 27, 2021 at 01:17:20PM +0300, Dan Carpenter wrote: > On Fri, Feb 26, 2021 at 11:22:29PM +, Colin King wrote: > > From: Colin Ian King > > > > The error check on rval from the call to adp1653_get_fault currently > > returns if rval is non-zero. This appears to be

Re: linux kernel bug???

2021-02-28 Thread Lukas Bulwahn
Hi, On Mon, Mar 1, 2021 at 7:58 AM wrote: > > This is the first time for me to report something, so maybe the format is not > right. Please correct me if I'm wrong. Thank you ~ > When using Syzkaller to fuzz Linux kernel 5.11.0, it reported one > null-ptr-def bug in file.c. The information is

Re: [PATCH v3 1/3] firmware: xilinx: Add pinctrl support

2021-02-28 Thread Michal Simek
Hi Noburiho, On 2/28/21 1:17 AM, Nobuhiro Iwamatsu wrote: > Hi, > > 2021年2月12日(金) 21:10 Sai Krishna Potthuri > : >> >> Adding pinctrl support to query platform specific information (pins) >> from firmware. >> >> Signed-off-by: Sai Krishna Potthuri >> Acked-by: Michal Simek >> --- >>

drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c:106 dpu_rm_init() warn: passing zero to 'PTR_ERR'

2021-02-28 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 commit: bb00a452d6f77391441ef7df48f7115dd459cd2f drm/msm/dpu: Refactor resource manager config: arm64-randconfig-m031-20210301 (attached as .config) compiler:

drivers/gpu/drm/msm/dp/dp_hpd.c:37 dp_hpd_connect() error: we previously assumed 'hpd_priv->dp_cb' could be null (see line 37)

2021-02-28 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 commit: c943b4948b5848fc0e07f875edbd35a973879e22 drm/msm/dp: add displayPort driver support config: arm64-randconfig-m031-20210301 (attached as .config) compiler:

[RFC PATCH v3 4/8] KVM: selftests: Make a generic helper to get vm guest mode strings

2021-02-28 Thread Yanan Wang
For generality and conciseness, make an API which can be used in all kvm libs and selftests to get vm guest mode strings. And the index i is checked in the API in case of possiable faults. Reviewed-by: Andrew Jones Suggested-by: Sean Christopherson Signed-off-by: Yanan Wang ---

[RFC PATCH v3 1/8] tools headers: sync headers of asm-generic/hugetlb_encode.h

2021-02-28 Thread Yanan Wang
This patch syncs contents of tools/include/asm-generic/hugetlb_encode.h and include/uapi/asm-generic/hugetlb_encode.h. Arch powerpc supports 16KB hugepages and ARM64 supports 32MB/512MB hugepages. The corresponding mmap flags have already been added in include/uapi/asm-generic/hugetlb_encode.h,

[RFC PATCH v3 6/8] KVM: selftests: List all hugetlb src types specified with page sizes

2021-02-28 Thread Yanan Wang
With VM_MEM_SRC_ANONYMOUS_HUGETLB, we currently can only use system default hugetlb pages to back the testing guest memory. In order to add flexibility, now list all the known hugetlb backing src types with different page sizes, so that we can specify use of hugetlb pages of the exact granularity

[RFC PATCH v3 8/8] KVM: selftests: Add a test for kvm page table code

2021-02-28 Thread Yanan Wang
This test serves as a performance tester and a bug reproducer for kvm page table code (GPA->HPA mappings), so it gives guidance for people trying to make some improvement for kvm. The function guest_code() can cover the conditions where a single vcpu or multiple vcpus access guest pages within

[RFC PATCH v3 0/7] KVM: selftests: some improvement and a new test for kvm page table

2021-02-28 Thread Yanan Wang
Hi, This v3 series can mainly include two parts. Based on kvm queue branch: https://git.kernel.org/pub/scm/virt/kvm/kvm.git/log/?h=queue Links of v1: https://lore.kernel.org/lkml/20210208090841.333724-1-wangyana...@huawei.com/ Links of v2:

[RFC PATCH v3 3/8] KVM: selftests: Use flag CLOCK_MONOTONIC_RAW for timing

2021-02-28 Thread Yanan Wang
In addition to function of CLOCK_MONOTONIC, flag CLOCK_MONOTONIC_RAW can also shield possiable impact of NTP, which can provide more robustness. Suggested-by: Vitaly Kuznetsov Signed-off-by: Yanan Wang --- tools/testing/selftests/kvm/demand_paging_test.c | 8

[RFC PATCH v3 7/8] KVM: selftests: Adapt vm_userspace_mem_region_add to new helpers

2021-02-28 Thread Yanan Wang
With VM_MEM_SRC_ANONYMOUS_THP specified in vm_userspace_mem_region_add(), we have to get the transparent hugepage size for HVA alignment. With the new helpers, we can use get_backing_src_pagesz() to check whether THP is configured and then get the exact configured hugepage size. As different

[RFC PATCH v3 5/8] KVM: selftests: Add a helper to get system configured THP page size

2021-02-28 Thread Yanan Wang
If we want to have some tests about transparent hugepages, the system configured THP hugepage size should better be known by the tests, which can be used for kinds of alignment or guest memory accessing of vcpus... So it makes sense to add a helper to get the transparent hugepage size. With

[RFC PATCH v3 2/8] tools headers: Add a macro to get HUGETLB page sizes for mmap

2021-02-28 Thread Yanan Wang
We know that if a system supports multiple hugetlb page sizes, the desired hugetlb page size can be specified in bits [26:31] of the flag arguments. The value in these 6 bits will be the shift of each hugetlb page size. So add a macro to get the page size shift and then calculate the

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c:31 dpu_setup_dspp_pcc() warn: variable dereferenced before check 'ctx' (see line 29)

2021-02-28 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 commit: 4259ff7ae509ed880b3a7bb685972c3a3bf4b74b drm/msm/dpu: add support for pcc color block in dpu driver config: arm64-randconfig-m031-20210301 (attached as

Re: [PATCH net-next RFC v4] net: hdlc_x25: Queue outgoing LAPB frames

2021-02-28 Thread Martin Schiller
On 2021-02-27 00:03, Xie He wrote: On Fri, Feb 26, 2021 at 6:21 AM Martin Schiller wrote: I have now had a look at it. It works as expected. I just wonder if it would not be more appropriate to call the lapb_register() already in x25_hdlc_open(), so that the layer2 (lapb) can already "work"

Re: [RFC PATCH 12/12] HV/Storvsc: Add bounce buffer support for Storvsc

2021-02-28 Thread Christoph Hellwig
This should be handled by the DMA mapping layer, just like for native SEV support.

Re: [PATCH V8 0/4] dt: Add fdtoverlay rule and statically build unittest

2021-02-28 Thread Viresh Kumar
On 12-02-21, 16:48, Viresh Kumar wrote: > Hi, > > This patchset adds a generic rule for applying overlays using fdtoverlay > tool and then updates unittests to get built statically using the same. > > V7->V8: > - Patch 1 is new. > - Platforms need to use dtb-y += foo.dtb instead of overlay-y +=

[PATCH V5 1/2] topology: Allow multiple entities to provide sched_freq_tick() callback

2021-02-28 Thread Viresh Kumar
This patch attempts to make it generic enough so other parts of the kernel can also provide their own implementation of scale_freq_tick() callback, which is called by the scheduler periodically to update the per-cpu freq_scale variable. The implementations now need to provide 'struct

[PATCH V5 2/2] cpufreq: CPPC: Add support for frequency invariance

2021-02-28 Thread Viresh Kumar
The Frequency Invariance Engine (FIE) is providing a frequency scaling correction factor that helps achieve more accurate load-tracking. Normally, this scaling factor can be obtained directly with the help of the cpufreq drivers as they know the exact frequency the hardware is running at. But

[PATCH V5 0/2] cpufreq: cppc: Add support for frequency invariance

2021-02-28 Thread Viresh Kumar
Hello, CPPC cpufreq driver is used for ARM servers and this patch series tries to provide counter-based frequency invariance support for them in the absence for architecture specific counters (like AMUs). This is tested by: - /me with some hacks on Hikey, as I didn't have access to the right

[PATCH] drm/amd/display: Remove unnecessary conversion to bool

2021-02-28 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c:298:33-38: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c | 2 +- 1 file changed, 1

[PATCH v3 4/4] clk: rockchip: add clock controller for rk3568

2021-02-28 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/Kconfig |7 + drivers/clk/rockchip/Makefile |1 + drivers/clk/rockchip/clk-rk3568.c | 1726 + drivers/clk/rockchip/clk.h| 30 +- 4

[PATCH v3 2/4] clk: rockchip: add dt-binding header for rk3568

2021-02-28 Thread Elaine Zhang
Add the dt-bindings header for the rk3568, that gets shared between the clock controller and the clock references in the dts. Add softreset ID for rk3568. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rk3568-cru.h | 926 + 1 file changed, 926 insertions(+)

[PATCH v3 3/4] clk: rockchip: support more core div setting

2021-02-28 Thread Elaine Zhang
Use arrays to support more core independent div settings. A55 supports each core to work at different frequencies, and each core has an independent divider control. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-cpu.c| 53 +--

[PATCH v3 1/4] dt-binding: clock: Document rockchip,rk3568-cru bindings

2021-02-28 Thread Elaine Zhang
Document the device tree bindings of the rockchip Rk3568 SoC clock driver in Documentation/devicetree/bindings/clock/rockchip,rk3568-cru.yaml. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,rk3568-cru.yaml | 60 +++ 1 file changed, 60 insertions(+) create mode

[PATCH v3 0/4] clk: rockchip: add clock controller for rk3568

2021-02-28 Thread Elaine Zhang
Add the clock tree definition for the new rk3568 SoC. Change in V3: [PATCH v3 1/4]: Fix some code styles. [PATCH v3 2/4]: No change. [PATCH v3 3/4]: No change. [PATCH v3 4/4]: No change. Change in V2: [PATCH v2 1/4]: Convert rockchip,rk3568-cru.txt to YAML, And update commit

RE: [PATCH V3 XRT Alveo 01/18] Documentation: fpga: Add a document describing XRT Alveo drivers

2021-02-28 Thread Sonal Santan
Hello Tom, > -Original Message- > From: Tom Rix > Sent: Friday, February 19, 2021 2:26 PM > To: Lizhi Hou ; linux-kernel@vger.kernel.org > Cc: Lizhi Hou ; linux-f...@vger.kernel.org; Max Zhen > ; Sonal Santan ; Michal Simek > ; Stefano Stabellini ; > devicet...@vger.kernel.org;

Re: [PATCH 1/5] dt-bindings: media: mtk-vcodec: Add dma-ranges property

2021-02-28 Thread Irui Wang
On Wed, 2021-02-10 at 16:53 -0600, Rob Herring wrote: > On Wed, Feb 03, 2021 at 04:37:48PM +0800, Irui Wang wrote: > > Adds dma-ranges property for DMA addresses translation. > > > > Signed-off-by: Irui Wang > > --- > > Documentation/devicetree/bindings/media/mediatek-vcodec.txt | 2 ++ > > 1

[PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-02-28 Thread Jie Deng
Add an I2C bus driver for virtio para-virtualization. The controller can be emulated by the backend driver in any device model software by following the virtio protocol. The device specification can be found on https://lists.oasis-open.org/archives/virtio-comment/202101/msg8.html. By

Re: [PATCH 1/3] crypto: sa2ul - Hide pointer and fix -Wpointer-to-int-cast in dev_dbg()

2021-02-28 Thread Krzysztof Kozlowski
On Mon, 1 Mar 2021 at 07:36, Herbert Xu wrote: > > On Sat, Feb 27, 2021 at 05:37:49PM +0100, Krzysztof Kozlowski wrote: > > > > I think this patch was lost, although you replied that the entire set > > is applied. > > > > Can you pick it up? > > I think it was not applicable because the following

Re: [PATCH 1/3] crypto: sa2ul - Hide pointer and fix -Wpointer-to-int-cast in dev_dbg()

2021-02-28 Thread Herbert Xu
On Sat, Feb 27, 2021 at 05:37:49PM +0100, Krzysztof Kozlowski wrote: > > I think this patch was lost, although you replied that the entire set > is applied. > > Can you pick it up? I think it was not applicable because the following had already been applied: commit

[PATCH] arch: mips: sibyte: Return -EFAULT if copy_to_user() fails

2021-02-28 Thread Wang Qing
The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing --- arch/mips/sibyte/common/sb_tbprof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] staging: rtl8192u avoid flex array of flex array

2021-02-28 Thread Dan Carpenter
On Sat, Feb 27, 2021 at 07:06:14PM -0600, Darryl T. Agostinelli wrote: > Undo the flex array in struct ieee80211_info_element. It is used as the flex > array type in other structs (creating a flex array of flex arrays) making > sparse unhappy. This change maintains the intent of the code and

[PATCH] vdpa/mlx5: Fix wrong use of bit numbers

2021-02-28 Thread Eli Cohen
VIRTIO_F_VERSION_1 is a bit number. Use BIT_ULL() with mask conditionals. Also, in mlx5_vdpa_is_little_endian() use BIT_ULL for consistency with the rest of the code. Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices") Signed-off-by: Eli Cohen ---

[PATCH 5/5] mm: memcontrol: use object cgroup for remote memory cgroup charging

2021-02-28 Thread Muchun Song
We spent a lot of energy to make slab accounting do not hold a refcount to memory cgroup, so the dying cgroup can be freed as soon as possible on cgroup offlined. But some users of remote memory cgroup charging (e.g. bpf and fsnotify) hold a refcount to memory cgroup for charging to it later.

[PATCH 3/5] mm: memcontrol: reparent the kmem pages on cgroup removal

2021-02-28 Thread Muchun Song
Currently the slab objects already reparent to it's parent memcg on cgroup removal. But there are still some corner objects which are not reparent (e.g. allocations larger than order-1 page on SLUB). Actually those objects are allocated directly from the buddy allocator. And they are chared as

[PATCH 4/5] mm: memcontrol: move remote memcg charging APIs to CONFIG_MEMCG_KMEM

2021-02-28 Thread Muchun Song
The remote memcg charing APIs is a mechanism to charge kernel memory to a given memcg. So we can move the infrastructure to the scope of the CONFIG_MEMCG_KMEM. As a bonus, on !CONFIG_MEMCG_KMEM build some functions and variables can be compiled out. Signed-off-by: Muchun Song ---

[PATCH 2/5] mm: memcontrol: make page_memcg{_rcu} only applicable for non-kmem page

2021-02-28 Thread Muchun Song
We want to reuse the obj_cgroup APIs to reparent the kmem pages when the memcg offlined. If we do this, we should store an object cgroup pointer to page->memcg_data for the kmem pages. Finally, page->memcg_data can have 3 different meanings. 1) For the slab pages, page->memcg_data points to an

[PATCH 1/5] mm: memcontrol: introduce obj_cgroup_{un}charge_page

2021-02-28 Thread Muchun Song
We know that the unit of charging slab object is bytes, the unit of charging kmem page is PAGE_SIZE. So If we want to reuse obj_cgroup APIs to charge the kmem pages, we should pass PAGE_SIZE (as third parameter) to obj_cgroup_charge(). Because the charing size is page size, we always need to

[PATCH 0/5] Use obj_cgroup APIs to change kmem pages

2021-02-28 Thread Muchun Song
Since Roman series "The new cgroup slab memory controller" applied. All slab objects are changed via the new APIs of obj_cgroup. This new APIs introduce a struct obj_cgroup instead of using struct mem_cgroup directly to charge slab objects. It prevents long-living objects from pinning the original

Re: [PATCH] mm: Generalize HUGETLB_PAGE_SIZE_VARIABLE

2021-02-28 Thread Christoph Hellwig
On Mon, Mar 01, 2021 at 11:20:53AM +0530, Anshuman Khandual wrote: > HUGETLB_PAGE_SIZE_VARIABLE need not be defined for each individual > platform subscribing it. Instead just make it generic. > > Cc: Michael Ellerman > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Andrew Morton > Cc:

Re: [PATCH] staging: rtl8723bs: Fixed indentation and coding style

2021-02-28 Thread Dan Carpenter
On Sun, Feb 28, 2021 at 03:32:30AM +0530, chakravarthikulkarni wrote: > @@ -795,14 +795,14 @@ struct RunInThread_param { > > > /* > - > -Result: > -0x00: success > -0x01: sucess, and check Response. > -0x02: cmd ignored due to duplicated sequcne number > -0x03: cmd dropped due to invalid cmd

[PATCH] dts: remove c6x dts hard link file

2021-02-28 Thread Wolfram Sang
The architecture has gone and indexing software like 'mkid' complains about the broken link. Signed-off-by: Wolfram Sang --- scripts/dtc/include-prefixes/c6x | 1 - 1 file changed, 1 deletion(-) delete mode 12 scripts/dtc/include-prefixes/c6x diff --git a/scripts/dtc/include-prefixes/c6x

[PATCH] arm64: dts: ti: k3-am64-main: Add GPIO DT nodes

2021-02-28 Thread Aswath Govindraju
Add device tree nodes for GPIO modules and interrupt controller in main domain. Signed-off-by: Aswath Govindraju --- This patch depends on, https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=439039 arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 45 1 file

Re: [PATCH] copy_file_range.2: Kernel v5.12 updates

2021-02-28 Thread Amir Goldstein
On Mon, Mar 1, 2021 at 12:25 AM Steve French wrote: > > On Sun, Feb 28, 2021 at 1:36 AM Amir Goldstein wrote: > > > > On Sun, Feb 28, 2021 at 1:08 AM Steve French wrote: > > > > > > On Fri, Feb 26, 2021 at 11:43 PM Amir Goldstein > > > wrote: > > > > > > > > On Sat, Feb 27, 2021 at 12:19 AM

[PATCH] configfs: Fix use-after-free issue in __configfs_open_file

2021-02-28 Thread Chao Yu
From: Daiyue Zhang Commit b0841eefd969 ("configfs: provide exclusion between IO and removals") uses ->frag_dead to mark the fragment state, thus no bothering with extra refcount on config_item when opening a file. The configfs_get_config_item was removed in __configfs_open_file, but not with

drivers/accessibility/speakup/speakup_dtlk.c:334:14: warning: performing pointer arithmetic on a null pointer has undefined behavior

2021-02-28 Thread kernel test robot
Hi Samuel, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 commit: 2067fd92d75b6d9085a43caf050bca5d88c491b8 staging/speakup: Move out of staging date: 7 months ago

Re: [linux-next:master 5983/6048] h8300-linux-ld: section .data VMA overlaps section __kcrctab VMA

2021-02-28 Thread Feng Tang
Hi Paul, On Wed, Feb 10, 2021 at 02:21:41AM +0800, Paul Moore wrote: > On Tue, Feb 9, 2021 at 1:09 PM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > master > > head: 59fa6a163ffabc1bf25c5e0e33899e268a96d3cc > > commit:

[PATCH] arm64: dts: ti: k3-am642-evm: Add support for SPI EEPROM

2021-02-28 Thread Aswath Govindraju
Add pinmux details and device tree node for the EEPROM attached to SPI0 module in main domain. Signed-off-by: Aswath Govindraju --- This patch depends on, https://patchwork.kernel.org/project/linux-arm-kernel/patch/20210301055109.17626-3-a-govindr...@ti.com/

[PATCH] inetpeer: use div64_ul() and clamp_val() calculate inet_peer_threshold

2021-02-28 Thread Yejune Deng
In inet_initpeers(), struct inet_peer on IA32 uses 128 bytes in nowdays. Get rid of the cascade and use div64_ul() and clamp_val() calculate that will not need to be adjusted in the future as suggested by Eric Dumazet. Suggested-by: Eric Dumazet Signed-off-by: Yejune Deng ---

[PATCH v3 4/4] MAINTAINERS: Add entry for Intel MAX 10 mfd driver

2021-02-28 Thread Xu Yilun
This patch adds maintainer info for Intel MAX 10 mfd driver. Signed-off-by: Xu Yilun Reviewed-by: Tom Rix --- v3: Add Tom Rix as the reviewer. --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b58a469..ab31c01 100644 ---

[PATCH v3 3/4] mfd: intel-m10-bmc: Add access table configuration to the regmap

2021-02-28 Thread Xu Yilun
From: Matthew Gerlach This patch adds access tables to the MAX 10 BMC regmap. This prevents the host from accessing the unwanted I/O space. It also filters out the invalid outputs when reading the regmap debugfs interface. Signed-off-by: Matthew Gerlach Signed-off-by: Xu Yilun Reviewed-by:

[PATCH v3 1/4] mfd: intel-m10-bmc: Fix the register access range

2021-02-28 Thread Xu Yilun
This patch fixes the max register address of MAX 10 BMC. The range 0x2000 ~ 0x20fc are for control registers of the QSPI flash controller, which are not accessible to host. Signed-off-by: Xu Yilun Reviewed-by: Tom Rix --- v2: no change. v3: no change, rebased to 5.12-rc1 ---

[PATCH v3 0/4] Some improvement for Intel MAX 10 MFD drivers

2021-02-28 Thread Xu Yilun
This patchset is some improvements for intel-m10-bmc and its subdevs. Main changes from v1: - Add a patch (#2) to simplify the definition of the legacy version reg. - Add a patch (#4), add entry in MAINTAINERS for intel-m10-bmc mfd driver and the subdev drivers. Main changes from v2: - Add Tom

[PATCH v3 2/4] mfd: intel-m10-bmc: Simplify the legacy version reg definition

2021-02-28 Thread Xu Yilun
The version register is the only one in the legacy I/O space to be accessed, so it is not necessary to define the legacy base & version register offset. A direct definition of the legacy version register address would be fine. Signed-off-by: Xu Yilun Reviewed-by: Tom Rix --- v3: no change,

Re: [PATCH v2] kdb: Get rid of custom debug heap allocator

2021-02-28 Thread Sumit Garg
On Fri, 26 Feb 2021 at 23:07, Daniel Thompson wrote: > > On Fri, Feb 26, 2021 at 06:12:13PM +0530, Sumit Garg wrote: > > On Fri, 26 Feb 2021 at 16:29, Daniel Thompson > > wrote: > > > > > > On Fri, Feb 26, 2021 at 03:23:06PM +0530, Sumit Garg wrote: > > > > Currently the only user for debug heap

Re: [PATCH] drivers: gnu: drm: i915: gvt: Fixed couple of spellings in the file gtt.c

2021-02-28 Thread Zhenyu Wang
On 2021.02.22 06:22:37 -0800, Randy Dunlap wrote: > On 2/22/21 6:21 AM, Randy Dunlap wrote: > > On 2/22/21 12:18 AM, Bhaskar Chowdhury wrote: > >> > >> s/negtive/negative/ > >> s/possilbe/possible/ > >> > >> Signed-off-by: Bhaskar Chowdhury > > > > Acked-by: Randy Dunlap > > except the Subject

Re: [PATCH] usb: dwc2: Add STM32 related debugfs entries

2021-02-28 Thread Minas Harutyunyan
On 2/28/2021 1:55 AM, Martin Devera wrote: > These are entries related to STM32MP1 PHY control. > > Signed-off-by: Martin Devera Acked-by: Minas Harutyunyan > --- > drivers/usb/dwc2/debugfs.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/usb/dwc2/debugfs.c

arch/mips/loongson64/cop2-ex.c:97:30: error: no member named 'fpu' in 'struct thread_struct'

2021-02-28 Thread kernel test robot
Hi Huacai, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8 commit: f83e4f9896eff614d0f2547a561fa5f39f9cddde MIPS: Loongson-3: Add some unaligned instructions emulation date:

Not yet merged patches

2021-02-28 Thread Eli Cohen
Hi Michael, I see that you did not include these in your latest pull request. https://lkml.org/lkml/2021/2/10/1386 https://lkml.org/lkml/2021/2/10/1383 https://lkml.org/lkml/2021/2/18/124 Are you going to merge them?

[PATCH 2/2] arm64: dts: ti: k3-am642-evm: Add USB support

2021-02-28 Thread Aswath Govindraju
AM64 EVM board has a micro USB 2.0 AB connector and the USB0_VBUS is connected with a resistor divider in between. USB0_DRVVBUS pin is muxed between USB0_DRVVBUS and GPIO1_79 signals. Add the corresponding properties and set the pinmux mode for USB subsystem in the evm dts file. Signed-off-by:

[PATCH 0/2] AM64: Add USB support

2021-02-28 Thread Aswath Govindraju
The following series of patches, add USB support for AM64. This series of patches depends on, https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=439039 Aswath Govindraju (2): arm64: dts: ti: k3-am64-main: Add DT node for USB subsystem arm64: dts: ti: k3-am642-evm: Add USB

[PATCH 1/2] arm64: dts: ti: k3-am64-main: Add DT node for USB subsystem

2021-02-28 Thread Aswath Govindraju
Add DT node for the single USB subsystem in main dtsi file. Signed-off-by: Aswath Govindraju Acked-by: Roger Quadros --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 30 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi

[PATCH] mm: Generalize HUGETLB_PAGE_SIZE_VARIABLE

2021-02-28 Thread Anshuman Khandual
HUGETLB_PAGE_SIZE_VARIABLE need not be defined for each individual platform subscribing it. Instead just make it generic. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Andrew Morton Cc: Christoph Hellwig Cc: linux-i...@vger.kernel.org Cc:

Re: [PATCH] arm64: dts: ti: k3-j721e-main: Update the speed modes supported and their itap delay values for MMCSD subsystems

2021-02-28 Thread Kishon Vijay Abraham I
On 25/02/21 6:57 pm, Aswath Govindraju wrote: > According to latest errata of J721e [1], HS400 mode is not supported > in MMCSD0 subsystem (i2024) and SDR104 mode is not supported in MMCSD1/2 > subsystems (i2090). Therefore, replace mmc-hs400-1_8v with mmc-hs200-1_8v > in MMCSD0 subsystem and add

Re: [PATCH] Input: elan_i2c - Reduce the resume time for new devices

2021-02-28 Thread Dmitry Torokhov
Hi Jingle, On Fri, Feb 26, 2021 at 03:35:37PM +0800, jingle.wu wrote: > @@ -273,10 +318,12 @@ static int __elan_initialize(struct elan_tp_data *data) > bool woken_up = false; > int error; > > - error = data->ops->initialize(client); > - if (error) { > -

Re: [PATCH v17 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-28 Thread Muchun Song
On Thu, Feb 25, 2021 at 9:24 PM Muchun Song wrote: > > When we free a HugeTLB page to the buddy allocator, we should allocate > the vmemmap pages associated with it. But we may cannot allocate vmemmap > pages when the system is under memory pressure, in this case, we just > refuse to free the

RE: [PATCH 0/2] tracing: Detect unsafe dereferencing of pointers from trace events

2021-02-28 Thread Pawel Laszczak
+ Peter Chen - Maintainer of CDNS3 driver > >[ Resending with an address that should work for Felipe ] > >On Sat, 27 Feb 2021 14:18:02 -0500 >Steven Rostedt wrote: > >> On Fri, 26 Feb 2021 14:21:00 -0800 >> Linus Torvalds wrote: >> >> > On Fri, Feb 26, 2021 at 11:07 AM Steven Rostedt >> >

[PATCH] selftests/sgx: fix EINIT failure dueto SGX_INVALID_SIGNATURE

2021-02-28 Thread Tianjia Zhang
q2 is not always 384-byte length. Sometimes it only has 383-byte. In this case, the valid portion of q2 is reordered reversely for little endian order, and the remaining portion is filled with zero. Signed-off-by: Tianjia Zhang --- tools/testing/selftests/sgx/sigstruct.c | 41

[PATCH] arm64/mm: Drop redundant ARCH_WANT_HUGE_PMD_SHARE

2021-02-28 Thread Anshuman Khandual
There is already an ARCH_WANT_HUGE_PMD_SHARE which is being selected for applicable configurations. Hence just drop the other redundant entry. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- This

[PATCH v2 3/3] f2fs: check if swapfile is section-alligned

2021-02-28 Thread Huang Jianan
If the swapfile isn't created by pin and fallocate, it can't be guaranteed section-aligned, so it may be selected by f2fs gc. When gc_pin_file_threshold is reached, the address of swapfile may change, but won't be synchronized to swap_extent, so swap will write to wrong address, which will cause

[PATCH V2] mm/memtest: Add ARCH_USE_MEMTEST

2021-02-28 Thread Anshuman Khandual
early_memtest() does not get called from all architectures. Hence enabling CONFIG_MEMTEST and providing a valid memtest=[1..N] kernel command line option might not trigger the memory pattern tests as would be expected in normal circumstances. This situation is misleading. The change here prevents

Re: [PATCH] cpufreq: qcom-hw: fix dereferencing freed memory 'data'

2021-02-28 Thread Viresh Kumar
On 28-02-21, 09:33, Shawn Guo wrote: > Commit 67fc209b527d ("cpufreq: qcom-hw: drop devm_xxx() calls from > init/exit hooks") introduces an issue of dereferencing freed memory > 'data'. Fix it. > > Fixes: 67fc209b527d ("cpufreq: qcom-hw: drop devm_xxx() calls from init/exit > hooks") >

Re: drivers/opp/of.c:959:12: warning: stack frame size of 2064 bytes in function '_of_add_table_indexed'

2021-02-28 Thread Viresh Kumar
On 28-02-21, 02:11, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 3fb6d0e00efc958d01c2f109c8453033a2d96796 > commit: 406e47652161d4f0d9bc4cd6237b36c51497ec75 opp: Create > _of_add_table_indexed() to reduce code

RE: [PATCH 04/13] PCI: hyperv: Drop msi_controller structure

2021-02-28 Thread Michael Kelley
From: Marc Zyngier Sent: Thursday, February 25, 2021 7:10 AM > > The Hyper-V PCI driver still makes use of a msi_controller structure, > but it looks more like a distant leftover than anything actually > useful, since it is initialised to 0 and never used for anything. > > Just remove it. > >

Re: [PATCH 3/9] arm64: dts: qcom: sc7280: Add device tree node for LLCC

2021-02-28 Thread Stephen Boyd
Quoting Sai Prakash Ranjan (2021-02-27 05:58:25) > On 2021-02-27 00:15, Stephen Boyd wrote: > > Quoting Sai Prakash Ranjan (2021-02-26 00:04:27) > >> On 2021-02-26 01:07, Stephen Boyd wrote: > >> > Quoting Sai Prakash Ranjan (2021-02-25 01:30:19) > >> >> Add a DT node for Last level cache (aka.

Re: possible deadlock in io_poll_double_wake (2)

2021-02-28 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: possible deadlock in io_poll_double_wake WARNING: possible recursive locking detected 5.11.0-syzkaller #0 Not tainted

[PATCH] can: c_can: move runtime PM enable/disable to c_can_platform

2021-02-28 Thread Tong Zhang
Currently doing modprobe c_can_pci will make kernel complain "Unbalanced pm_runtime_enable!", this is caused by pm_runtime_enable() called before pm is initialized in register_candev() and doing so will also cause it to enable twice. This fix is similar to 227619c3ff7c, move those

[PATCH] video: fbdev: fix use of 'dma_map_single'

2021-02-28 Thread Hui Tang
DMA_TO_DEVICE synchronisation must be done after the last modification of the memory region by the software and before it is handed off to the device. Signed-off-by: Hui Tang --- drivers/video/fbdev/grvga.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH] xfrm: Use actual socket sk instead of skb socket for xfrm_output_resume

2021-02-28 Thread Evan Nimmo
A situation can occur where the interface bound to the sk is different to the interface bound to the sk attached to the skb. The interface bound to the sk is the correct one however this information is lost inside xfrm_output2 and instead the sk on the skb is used in xfrm_output_resume instead.

[PATCH v2 2/2] hwmon: (pmbus): Add driver for Infineon IR36021

2021-02-28 Thread Chris Packham
The IR36021 is a dual‐loop digital multi‐phase buck controller. Signed-off-by: Chris Packham --- Changes in v2: - update against latest kernel for pmbus API changes - avoid double negation Documentation/hwmon/index.rst | 1 + Documentation/hwmon/ir36021.rst | 62 ++

  1   2   3   4   >