Re: [PATCH 3/3] powerpc: fix -Wimplicit-fallthrough

2020-11-16 Thread Nathan Chancellor
On Sun, Nov 15, 2020 at 08:35:32PM -0800, Nick Desaulniers wrote: > The "fallthrough" pseudo-keyword was added as a portable way to denote > intentional fallthrough. Clang will still warn on cases where there is a > fallthrough to an immediate break. Add explicit breaks for those cases. > > Link:

Re: [PATCH 1/3] powerpc: boot: include compiler_attributes.h

2020-11-16 Thread Nathan Chancellor
On Sun, Nov 15, 2020 at 08:35:30PM -0800, Nick Desaulniers wrote: > The kernel uses `-include` to include include/linux/compiler_types.h > into all translation units (see scripts/Makefile.lib), which #includes > compiler_attributes.h. > > arch/powerpc/boot/ uses different compiler flags from the

[PATCH net] net: b44: fix error return code in b44_init_one()

2020-11-16 Thread Zhang Changzhong
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 39a6f4bce6b4 ("b44: replace the ssb_dma API with the generic DMA API") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong --- drivers/net/ethernet/broadcom/b44.c | 3

[PATCH v6 19/34] bpf: eliminate rlimit-based memory accounting for bpf_struct_ops maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf_struct_ops maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/bpf_struct_ops.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff

[PATCH v1 2/2] bus: mhi: core: Process execution environment changes serially

2020-11-16 Thread Bhaumik Bhatt
In current design, whenever the BHI interrupt is fired, the execution environment is updated. This can cause race conditions and impede any ongoing power up/down processing. For example, if a power down is in progress and the host has updated the execution environment to a local "disabled" state,

[PATCH v1 0/2] Serialize execution environment changes for MHI

2020-11-16 Thread Bhaumik Bhatt
During full boot chain firmware download, the PM state worker downloads the AMSS image after waiting for the SBL execution environment change in PBL mode itself. Since getting rid of the firmware load worker thread, this design needs to change and MHI host must download the AMSS image from the SBL

[PATCH v6 03/34] mm: introduce page memcg flags

2020-11-16 Thread Roman Gushchin
The lowest bit in page->memcg_data is used to distinguish between struct memory_cgroup pointer and a pointer to a objcgs array. All checks and modifications of this bit are open-coded. Let's formalize it using page memcg flags, defined in enum page_memcg_data_flags. Additional flags might be

[PATCH v6 10/34] bpf: memcg-based memory accounting for cgroup storage maps

2020-11-16 Thread Roman Gushchin
Account memory used by cgroup storage maps including metadata structures. Account the percpu memory for the percpu flavor of cgroup storage. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/local_storage.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-)

[PATCH] arch: x86: platform: retire arch/x86/platform/goldfish

2020-11-16 Thread rkir
From: Roman Kiryanov The Android Studio Emulator (aka goldfish) does not use arch/x86/platform/goldfish since 5.4 kernel. Signed-off-by: Roman Kiryanov --- arch/x86/platform/Makefile| 1 - arch/x86/platform/goldfish/Makefile | 2 - arch/x86/platform/goldfish/goldfish.c | 54

[PATCH v6 33/34] bpf: eliminate rlimit-based memory accounting for bpf progs

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf progs. It has been replaced with memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- include/linux/bpf.h | 11 -- kernel/bpf/core.c| 12 ++- kernel/bpf/syscall.c | 86

[PATCH v6 20/34] bpf: eliminate rlimit-based memory accounting for cpumap maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for cpumap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/cpumap.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git

[PATCH v6 29/34] bpf: eliminate rlimit-based memory accounting for stackmap maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for stackmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/stackmap.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git

[PATCH v6 21/34] bpf: eliminate rlimit-based memory accounting for cgroup storage maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for cgroup storage maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/local_storage.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff

[PATCH v1 1/2] bus: mhi: core: Download AMSS image from appropriate function

2020-11-16 Thread Bhaumik Bhatt
During full boot chain firmware download, the PM state worker downloads the AMSS image after waiting for the SBL execution environment change in PBL mode itself. Since getting rid of the firmware load worker thread, this design needs to change and MHI host must download the AMSS image from the SBL

[PATCH v6 08/34] bpf: refine memcg-based memory accounting for arraymap maps

2020-11-16 Thread Roman Gushchin
Include percpu arrays and auxiliary data into the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/arraymap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index

[PATCH v6 02/34] mm: memcontrol/slab: use helpers to access slab page's memcg_data

2020-11-16 Thread Roman Gushchin
To gather all direct accesses to struct page's memcg_data field in one place, let's introduce 3 new helpers to use in the slab accounting code: struct obj_cgroup **page_objcgs(struct page *page); struct obj_cgroup **page_objcgs_check(struct page *page); bool set_page_objcgs(struct page

[PATCH v6 04/34] mm: convert page kmemcg type to a page memcg flag

2020-11-16 Thread Roman Gushchin
PageKmemcg flag is currently defined as a page type (like buddy, offline, table and guard). Semantically it means that the page was accounted as a kernel memory by the page allocator and has to be uncharged on the release. As a side effect of defining the flag as a page type, the accounted page

[PATCH v6 30/34] bpf: eliminate rlimit-based memory accounting for xskmap maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for xskmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- net/xdp/xskmap.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/net/xdp/xskmap.c

[PATCH v6 17/34] bpf: refine memcg-based memory accounting for xskmap maps

2020-11-16 Thread Roman Gushchin
Extend xskmap memory accounting to include the memory taken by the xsk_map_node structure. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- net/xdp/xskmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/xdp/xskmap.c b/net/xdp/xskmap.c index

[PATCH v6 00/34] bpf: switch to memcg-based memory accounting

2020-11-16 Thread Roman Gushchin
Currently bpf is using the memlock rlimit for the memory accounting. This approach has its downsides and over time has created a significant amount of problems: 1) The limit is per-user, but because most bpf operations are performed as root, the limit has a little value. 2) It's hard to come

[PATCH v6 12/34] bpf: refine memcg-based memory accounting for hashtab maps

2020-11-16 Thread Roman Gushchin
Include percpu objects and the size of map metadata into the accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu Reviewed-by: Shakeel Butt --- kernel/bpf/hashtab.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/bpf/hashtab.c

[PATCH v6 23/34] bpf: eliminate rlimit-based memory accounting for hashtab maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for hashtab maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/hashtab.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git

[PATCH v6 07/34] bpf: memcg-based memory accounting for bpf maps

2020-11-16 Thread Roman Gushchin
This patch enables memcg-based memory accounting for memory allocated by __bpf_map_area_alloc(), which is used by many types of bpf maps for large memory allocations. Following patches in the series will refine the accounting for some of the map types. Signed-off-by: Roman Gushchin Acked-by:

[PATCH v6 16/34] bpf: refine memcg-based memory accounting for sockmap and sockhash maps

2020-11-16 Thread Roman Gushchin
Include internal metadata into the memcg-based memory accounting. Also include the memory allocated on updating an element. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- net/core/sock_map.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/core/sock_map.c

[PATCH net] atl1e: fix error return code in atl1e_probe()

2020-11-16 Thread Zhang Changzhong
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 85eb5bc33717 ("net: atheros: switch from 'pci_' to 'dma_' API") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong --- drivers/net/ethernet/atheros/atl1e/atl1e_main.c

[PATCH v6 13/34] bpf: memcg-based memory accounting for lpm_trie maps

2020-11-16 Thread Roman Gushchin
Include lpm trie and lpm trie node objects into the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/lpm_trie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/lpm_trie.c b/kernel/bpf/lpm_trie.c index

[PATCH v6 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-16 Thread Roman Gushchin
Patch series "mm: allow mapping accounted kernel pages to userspace", v6. Currently a non-slab kernel page which has been charged to a memory cgroup can't be mapped to userspace. The underlying reason is simple: PageKmemcg flag is defined as a page type (like buddy, offline, etc), so it takes a

[PATCH v6 28/34] bpf: eliminate rlimit-based memory accounting for sockmap and sockhash maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for sockmap and sockhash maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- net/core/sock_map.c | 33 ++--- 1 file changed, 6 insertions(+), 27

[PATCH] Bluetooth: btusb: Add the missed release_firmware() in btusb_mtk_setup_firmware()

2020-11-16 Thread Jing Xiangfeng
btusb_mtk_setup_firmware() misses to call release_firmware() in an error path. Jump to err_release_fw to fix it. Fixes: f645125711c8 ("Bluetooth: btusb: fix up firmware download sequence") Signed-off-by: Jing Xiangfeng --- drivers/bluetooth/btusb.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v6 25/34] bpf: eliminate rlimit-based memory accounting for queue_stack_maps maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for queue_stack maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/queue_stack_maps.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git

[PATCH v6 09/34] bpf: refine memcg-based memory accounting for cpumap maps

2020-11-16 Thread Roman Gushchin
Include metadata and percpu data into the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/cpumap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/cpumap.c b/kernel/bpf/cpumap.c index c61a23b564aa..563f96cc8a9d

[PATCH v6 06/34] bpf: prepare for memcg-based memory accounting for bpf maps

2020-11-16 Thread Roman Gushchin
In the absolute majority of cases if a process is making a kernel allocation, it's memory cgroup is getting charged. Bpf maps can be updated from an interrupt context and in such case there is no process which can be charged. It makes the memory accounting of bpf maps non-trivial. Fortunately,

[PATCH v6 27/34] bpf: eliminate rlimit-based memory accounting for bpf ringbuffer

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf ringbuffer. It has been replaced with the memcg-based memory accounting. bpf_ringbuf_alloc() can't return anything except ERR_PTR(-ENOMEM) and a valid pointer, so to simplify the code make it return NULL in the first case. This allows to drop a

Re: [PATCH] mm: memcg: remove obsolete memcg_has_children()

2020-11-16 Thread Nathan Chancellor
On Mon, Nov 16, 2020 at 06:50:43AM +0100, Lukas Bulwahn wrote: > Commit 2ef1bf118c40 ("mm: memcg: deprecate the non-hierarchical mode") > removed the only use of memcg_has_children() in > mem_cgroup_hierarchy_write() as part of the feature deprecation. > > Hence, since then, make CC=clang W=1

[PATCH v6 15/34] bpf: memcg-based memory accounting for bpf local storage maps

2020-11-16 Thread Roman Gushchin
Account memory used by bpf local storage maps: per-socket and per-inode storages. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/bpf_local_storage.c | 7 --- net/core/bpf_sk_storage.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH v6 14/34] bpf: memcg-based memory accounting for bpf ringbuffer

2020-11-16 Thread Roman Gushchin
Enable the memcg-based memory accounting for the memory used by the bpf ringbuffer. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/ringbuf.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/bpf/ringbuf.c b/kernel/bpf/ringbuf.c index

[PATCH v6 31/34] bpf: eliminate rlimit-based memory accounting for bpf local storage maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf local storage maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/bpf_local_storage.c | 11 --- 1 file changed, 11 deletions(-) diff --git

[PATCH v6 22/34] bpf: eliminate rlimit-based memory accounting for devmap maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for devmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/devmap.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git

[PATCH v6 26/34] bpf: eliminate rlimit-based memory accounting for reuseport_array maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for reuseport_array maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/reuseport_array.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git

[PATCH v6 34/34] bpf: samples: do not touch RLIMIT_MEMLOCK

2020-11-16 Thread Roman Gushchin
Since bpf is not using rlimit memlock for the memory accounting and control, do not change the limit in sample applications. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- samples/bpf/map_perf_test_user.c| 6 -- samples/bpf/offwaketime_user.c | 6 --

[PATCH v6 32/34] bpf: eliminate rlimit-based memory accounting infra for bpf maps

2020-11-16 Thread Roman Gushchin
Remove rlimit-based accounting infrastructure code, which is not used anymore. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- include/linux/bpf.h | 12 kernel/bpf/syscall.c | 64 +--

[PATCH v6 24/34] bpf: eliminate rlimit-based memory accounting for lpm_trie maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for lpm_trie maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/lpm_trie.c | 13 - 1 file changed, 13 deletions(-) diff --git a/kernel/bpf/lpm_trie.c

[PATCH v6 18/34] bpf: eliminate rlimit-based memory accounting for arraymap maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for arraymap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/arraymap.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff --git

[PATCH v6 05/34] bpf: memcg-based memory accounting for bpf progs

2020-11-16 Thread Roman Gushchin
Include memory used by bpf programs into the memcg-based accounting. This includes the memory used by programs itself, auxiliary data, statistics and bpf line info. A memory cgroup containing the process which loads the program is getting charged. Signed-off-by: Roman Gushchin Acked-by: Song Liu

[PATCH] iommu: fix return error code in iommu_probe_device()

2020-11-16 Thread Yang Yingliang
If iommu_group_get() failed, it need return error code in iommu_probe_device(). Fixes: cf193888bfbd ("iommu: Move new probe_device path...") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/iommu/iommu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v6 11/34] bpf: refine memcg-based memory accounting for devmap maps

2020-11-16 Thread Roman Gushchin
Include map metadata and the node size (struct bpf_dtab_netdev) into the accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/devmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/devmap.c b/kernel/bpf/devmap.c index

Re: [PATCH] btrfs: remove the useless value assignment in btrfs_defrag_file

2020-11-16 Thread kaixuxia
On 2020/11/16 23:13, David Sterba wrote: > On Sat, Nov 14, 2020 at 05:06:21PM +0800, xiakaixu1...@gmail.com wrote: >> From: Kaixu Xia >> >> The variable ret is overwritten by the following variable defrag_count >> and this assignment is useless, so remove it. > > This could be actually

[PATCH net] atl1c: fix error return code in atl1c_probe()

2020-11-16 Thread Zhang Changzhong
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 85eb5bc33717 ("net: atheros: switch from 'pci_' to 'dma_' API") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c

[PATCH] [media] omap4iss: return error code when omap4iss_get() failed

2020-11-16 Thread Yang Yingliang
If omap4iss_get() failed, it need return error code in iss_probe(). Fixes: 59f0ad807681 ("[media] v4l: omap4iss: Add support for OMAP4...") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/staging/media/omap4iss/iss.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH] drm/msm/dpu: Fix error return code in dpu_mdss_init()

2020-11-16 Thread Chen Zhou
Fix to return a negative error code from the error handling case instead of 0 in function dpu_mdss_init(), as done elsewhere in this function. Fixes: 070e64dc1bbc ("drm/msm/dpu: Convert to a chained irq chip") Reported-by: Hulk Robot Signed-off-by: Chen Zhou ---

RE: [RFC 0/4] clk: imx: Register the dram_apb and dram_alt as read-only

2020-11-16 Thread Peng Fan
> Subject: [RFC 0/4] clk: imx: Register the dram_apb and dram_alt as read-only Any follow up about this patchset? Regards, Peng. > > On i.MX8M platforms the dram_apb and dram_alt are controlled from EL3. > So in order to keep track of the actual clock tree in kernel, we need to > actually

[PATCH] KVM: SVM: fix error return code in svm_create_vcpu()

2020-11-16 Thread Chen Zhou
Fix to return a negative error code from the error handling case instead of 0 in function svm_create_vcpu(), as done elsewhere in this function. Fixes: f4c847a95654 ("KVM: SVM: refactor msr permission bitmap allocation") Reported-by: Hulk Robot Signed-off-by: Chen Zhou ---

[PATCH net] ah6: fix error return code in ah6_input()

2020-11-16 Thread Zhang Changzhong
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong --- net/ipv6/ah6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

linux-next: build failure after merge of the phy-next tree

2020-11-16 Thread Stephen Rothwell
Caused by commit 3cc8e86721ad ("phy: amlogic: Replace devm_reset_control_array_get()") I have used the phy-next tree from next-20201116 for today. -- Cheers, Stephen Rothwell pgpOhJGoS3zxJ.pgp Description: OpenPGP digital signature

[PATCH] Bluetooth: btmtksdio: Add the missed release_firmware() in mtk_setup_firmware()

2020-11-16 Thread Jing Xiangfeng
mtk_setup_firmware() misses to call release_firmware() in an error path. Jump to free_fw to fix it. Fixes: 737cd06072a7 ("Bluetooth: btmtksdio: fix up firmware download sequence") Signed-off-by: Jing Xiangfeng --- drivers/bluetooth/btmtksdio.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] drm/msm: Fix error return code in msm_drm_init()

2020-11-16 Thread Wei Li
When it fail to create crtc_event kthread, it just jump to err_msm_uninit, while the 'ret' is not updated. So assign the return code before that. Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Reported-by: Hulk Robot Signed-off-by: Wei Li --- drivers/gpu/drm/msm/msm_drv.c | 1 + 1

[PATCH v4 15/15] dmaengine: dw-axi-dmac: Set constraint to the Max segment size

2020-11-16 Thread Sia Jee Heng
Add support for DMA Scatter-Gather (SG) constraint so that DMA clients can handle the AxiDMA limitation. Without supporting DMA constraint the default Max segment size reported by dmaengine is 64KB, which is not supported by Intel KeemBay AxiDMA. Reviewed-by: Andy Shevchenko Signed-off-by: Sia

[PATCH -next] thermal: intel_pch_thermal: fix build for ACPI not enabled

2020-11-16 Thread Randy Dunlap
Daniel Lezcano Cc: Zhang Rui Cc: Amit Kucheria Cc: linux...@vger.kernel.org --- drivers/thermal/intel/intel_pch_thermal.c |4 1 file changed, 4 insertions(+) --- linux-next-20201116.orig/drivers/thermal/intel/intel_pch_thermal.c +++ linux-next-20201116/drivers/thermal/intel/intel

[PATCH v4 12/15] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA support

2020-11-16 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA to the .compatible field. Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

[PATCH v4 09/15] dmaengine: dw-axi-dmac: Support burst residue granularity

2020-11-16 Thread Sia Jee Heng
Add support for DMA_RESIDUE_GRANULARITY_BURST so that AxiDMA can report DMA residue. Existing AxiDMA driver only support data transfer between memory to memory operation, therefore reporting DMA residue to the DMA clients is not supported. Reporting DMA residue to the DMA clients is important as

[PATCH v4 11/15] dmaengine: dw-axi-dmac: Add Intel KeemBay DMA register fields

2020-11-16 Thread Sia Jee Heng
Add support for Intel KeemBay DMA registers. These registers are required to run data transfer between device to memory and memory to device on Intel KeemBay SoC. Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 4

[PATCH v4 07/15] dmaegine: dw-axi-dmac: Support device_prep_dma_cyclic()

2020-11-16 Thread Sia Jee Heng
Add support for device_prep_dma_cyclic() callback function to benefit DMA cyclic client, for example ALSA. Existing AxiDMA driver only support data transfer between memory to memory. Data transfer between device to memory and memory to device in cyclic mode would failed if this interface is not

[PATCH v4 00/15] dmaengine: dw-axi-dmac: support Intel KeemBay AxiDMA

2020-11-16 Thread Sia Jee Heng
The below patch series are to support AxiDMA running on Intel KeemBay SoC. The base driver is dw-axi-dmac. This driver only support DMA memory copy transfers. Code refactoring is needed so that additional features can be supported. The features added in this patch series are: - Replacing Linked

[PATCH v4 02/15] dmaengine: dw-axi-dmac: simplify descriptor management

2020-11-16 Thread Sia Jee Heng
Simplify and refactor the descriptor management by removing the redundant Linked List Item (LLI) queue control logic from the AxiDMA driver. The descriptor is split into virtual descriptor and hardware LLI so that only hardware LLI memories are allocated from the DMA memory pool. Up to 64

Re: [PATCH 2/2] mm/vmalloc: rework the drain logic

2020-11-16 Thread huang ying
On Tue, Nov 17, 2020 at 6:00 AM Uladzislau Rezki (Sony) wrote: > > A current "lazy drain" model suffers from at least two issues. > > First one is related to the unsorted list of vmap areas, thus > in order to identify the [min:max] range of areas to be drained, > it requires a full list scan.

[PATCH v4 03/15] dmaengine: dw-axi-dmac: move dma_pool_create() to alloc_chan_resources()

2020-11-16 Thread Sia Jee Heng
The DMA memory block is created at driver load time and exist for device lifetime. Move the dma_pool_create() to the ->chan_resource() callback function allowing the DMA memory blocks to be created as needed and destroyed when the channel is freed. Reviewed-by: Andy Shevchenko Signed-off-by: Sia

[PATCH v4 01/15] dt-bindings: dma: Add YAML schemas for dw-axi-dmac

2020-11-16 Thread Sia Jee Heng
YAML schemas Device Tree (DT) binding is the new format for DT to replace the old format. Introduce YAML schemas DT binding for dw-axi-dmac and remove the old version. Signed-off-by: Sia Jee Heng --- .../bindings/dma/snps,dw-axi-dmac.txt | 39 --

[PATCH v4 05/15] dmaengine: dw-axi-dmac: Add device_config operation

2020-11-16 Thread Sia Jee Heng
Add device_config() callback function so that the device address can be passed to the dma driver. DMA clients use this interface to pass in the device address to the AxiDMA. Without this interface, data transfer between device to memory and memory to device would failed. Reviewed-by: Andy

[PATCH v4 10/15] dt-binding: dma: dw-axi-dmac: Add support for Intel KeemBay AxiDMA

2020-11-16 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA to the dw-axi-dmac Schemas DT binding. Signed-off-by: Sia Jee Heng --- .../bindings/dma/snps,dw-axi-dmac.yaml| 27 +++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml

[PATCH] scsi: fdomain: Fix error return code in fdomain_probe()

2020-11-16 Thread Wei Li
When it fail to request_region, it just jump to 'fail_disable', while the 'ret' is not updated. So assign the return code before that. Fixes: 8674a8aa2c39 ("scsi: fdomain: Add PCMCIA support") Reported-by: Hulk Robot Signed-off-by: Wei Li --- drivers/scsi/pcmcia/fdomain_cs.c | 4 +++- 1 file

[PATCH v4 06/15] dmaengine: dw-axi-dmac: Support device_prep_slave_sg

2020-11-16 Thread Sia Jee Heng
Add device_prep_slave_sg() callback function so that DMA_MEM_TO_DEV and DMA_DEV_TO_MEM operations in single mode can be supported. Existing AxiDMA driver only support data transfer between memory to memory. Data transfer between device to memory and memory to device in single mode would failed if

[PATCH v4 04/15] dmaengine: dw-axi-dmac: Add device_synchronize() callback

2020-11-16 Thread Sia Jee Heng
Add support for device_synchronize() callback function to sync with dmaengine_terminate_sync(). Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v4 13/15] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA handshake

2020-11-16 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA device handshake programming. Device handshake number passed in to the AxiDMA shall be written to the Intel KeemBay AxiDMA hardware handshake registers before DMA operations are started. Reviewed-by: Andy Shevchenko Signed-off-by: Sia Jee Heng ---

[PATCH v4 08/15] dmaengine: dw-axi-dmac: Support of_dma_controller_register()

2020-11-16 Thread Sia Jee Heng
Add support for of_dma_controller_register() so that DMA clients can pass in device handshake number to the AxiDMA driver. DMA clients shall code the device handshake number in the Device tree. When DMA activities are needed, DMA clients shall invoke OF helper function to pass in the device

[PATCH v4 14/15] dmaengine: dw-axi-dmac: Add Intel KeemBay AxiDMA BYTE and HALFWORD registers

2020-11-16 Thread Sia Jee Heng
Add support for Intel KeemBay AxiDMA BYTE and HALFWORD registers programming. Intel KeemBay AxiDMA supports data transfer between device to memory and memory to device operations. This code is needed by I2C, I3C, I2S, SPI and UART which uses FIFO size of 8bits and 16bits to perform memory to

Re: [PATCH] vringh: fix vringh_iov_push_*() documentation

2020-11-16 Thread Jason Wang
On 2020/11/17 上午12:16, Stefano Garzarella wrote: vringh_iov_push_*() functions don't have 'dst' parameter, but have the 'src' parameter. Replace 'dst' description with 'src' description. Signed-off-by: Stefano Garzarella Acked-by: Jason Wang --- drivers/vhost/vringh.c | 6 +++---

Re: [PATCHv1 3/4] dt-bindings: fpga: add authenticate-fpga-config property

2020-11-16 Thread Xu Yilun
On Mon, Nov 16, 2020 at 08:14:52AM -0600, Richard Gong wrote: > > Hi Yilun, > > On 11/15/20 8:47 PM, Xu Yilun wrote: > >On Sun, Nov 15, 2020 at 11:21:06AM -0800, Moritz Fischer wrote: > >>Hi Richard, > >> > >>On Thu, Nov 12, 2020 at 12:06:42PM -0600, richard.g...@linux.intel.com > >>wrote: >

Re: [PATCH][v2] x86/microcode/intel: check cpu stepping and processor flag before saving microcode

2020-11-16 Thread Chen Yu
Hi Boris, thanks for taking a look, On Mon, Nov 16, 2020 at 01:27:35PM +0100, Borislav Petkov wrote: > ( drop stable@ from Cc because this is not how fixes get added to stable@ ) > > On Fri, Nov 13, 2020 at 09:59:23AM +0800, Chen Yu wrote: > > Currently scan_microcode() leverages

[PATCH v2] ttyprintk: optimize tpk_close flush code

2020-11-16 Thread Junyong Sun
tpk_printk(NULL,0) do nothing but call tpk_flush to flush buffer, so why don't use tpk_flush diretcly? this is a small optimization. Signed-off-by: Junyong Sun --- changes in v2: - rm the flush comment as tpk_flush makes it obvious. --- --- drivers/char/ttyprintk.c | 3 +-- 1 file changed, 1

Re: [PATCH v2] epoll: add nsec timeout support

2020-11-16 Thread Willem de Bruijn
On Mon, Nov 16, 2020 at 7:37 PM Andrew Morton wrote: > > On Mon, 16 Nov 2020 18:51:16 -0500 Willem de Bruijn > wrote: > > > On Mon, Nov 16, 2020 at 6:36 PM Willem de Bruijn > > wrote: > > > > > > On Mon, Nov 16, 2020 at 3:04 PM Andrew Morton > > > wrote: > > > > > > > > On Mon, 16 Nov 2020

Re: [RFC PATCH v2] MIPS: Kconfig: Select ARCH_WANT_FRAME_POINTERS

2020-11-16 Thread Tiezhu Yang
On 11/16/2020 11:14 PM, Thomas Bogendoerfer wrote: On Mon, Nov 16, 2020 at 05:55:06PM +0800, Tiezhu Yang wrote: Select ARCH_WANT_FRAME_POINTERS to fix the following build error under CONFIG_DEBUG_ATOMIC_SLEEP: CC arch/mips/kernel/signal.o {standard input}: Assembler messages: {standard

Re: [PATCH v2 1/3] soc: qcom: Add tracepoints to mdt loader

2020-11-16 Thread kernel test robot
Hi Rishabh, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/perf/core] [also build test WARNING on linux/master linus/master v5.10-rc4 next-20201116] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH v7 5/6] dt-bindings: spi: Convert cadence-quadspi.txt to cadence-quadspi.yaml

2020-11-16 Thread Ramuthevar, Vadivel MuruganX
Hi Mark, On 17/11/2020 3:07 am, Mark Brown wrote: On Mon, Nov 16, 2020 at 11:10:02AM +0800, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Convert the cadence-quadspi.txt documentation to cadence-quadspi.yaml remove the cadence-quadspi.txt from

Re: [RFC PATCH v2 3/4] RISC-V: Initial DTS for Microchip ICICLE board

2020-11-16 Thread Bin Meng
On Sat, Nov 14, 2020 at 4:29 AM Atish Patra wrote: > > Add initial DTS for Microchip ICICLE board having only > essential devcies (clocks, sdhci, ethernet, serial, etc). typo: devices > The device tree is based on the U-Boot patch. > >

Re: [PATCH v11 01/13] vfio: VFIO_IOMMU_SET_PASID_TABLE

2020-11-16 Thread kernel test robot
Hi Eric, Thank you for the patch! Yet something to improve: [auto build test ERROR on v5.10-rc4] [also build test ERROR on next-20201116] [cannot apply to vfio/next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

[PATCH bpf-next v3 2/2] bpf: Add tests for bpf_lsm_set_bprm_opts

2020-11-16 Thread KP Singh
From: KP Singh The test forks a child process, updates the local storage to set/unset the securexec bit. The BPF program in the test attaches to bprm_creds_for_exec which checks the local storage of the current task to set the secureexec bit on the binary parameters (bprm). The child then

[PATCH bpf-next v3 1/2] bpf: Add bpf_lsm_set_bprm_opts helper

2020-11-16 Thread KP Singh
From: KP Singh The helper allows modification of certain bits on the linux_binprm struct starting with the secureexec bit which can be updated using the BPF_LSM_F_BPRM_SECUREEXEC flag. secureexec can be set by the LSM for privilege gaining executions to set the AT_SECURE auxv for glibc. When

[PATCH v2] docs: automarkup.py: Allow automatic cross-reference inside C namespace

2020-11-16 Thread Nícolas F . R . A . Prado
Sphinx 3.1 introduced namespaces for C cross-references. With this, each C domain type/function declaration is put inside the namespace that was active at the time of its declaration. Add support for automatic cross-referencing inside C namespaces by checking whether the corresponding source file

Re: [PATCH net-next v1] lan743x: replace devicetree phy parse code with library function

2020-11-16 Thread Andrew Lunn
On Mon, Nov 16, 2020 at 12:01:55PM -0500, Sven Van Asbroeck wrote: > From: Sven Van Asbroeck > > The code in this driver which parses the devicetree to determine > the phy/fixed link setup, can be replaced by a single library > function: of_phy_get_and_connect(). > > Behaviour is identical,

RE: [PATCH 3/3] mmc: rtsx: Add SD Express mode support for RTS5261

2020-11-16 Thread 冯锐
> -Original Message- > From: Christoph Hellwig [mailto:h...@lst.de] > Sent: Friday, November 13, 2020 12:42 AM > To: Ulf Hansson > Cc: Christoph Hellwig ; 冯锐 ; Arnd > Bergmann ; Greg Kroah-Hartman > ; Linux Kernel Mailing List > ; linux-...@vger.kernel.org > Subject: Re: [PATCH 3/3] mmc:

Re: [PATCH bpf-next v2 1/2] bpf: Add bpf_lsm_set_bprm_opts helper

2020-11-16 Thread KP Singh
On Tue, Nov 17, 2020 at 3:03 AM KP Singh wrote: > > On Tue, Nov 17, 2020 at 1:11 AM Martin KaFai Lau wrote: > > > > On Mon, Nov 16, 2020 at 11:25:35PM +, KP Singh wrote: > > > From: KP Singh > > > > > > The helper allows modification of certain bits on the linux_binprm > > > struct starting

Re: [PATCH RFC v2 5/5] net: stmmac: dwmac-meson8b: add support for the RGMII RX delay on G12A

2020-11-16 Thread Andrew Lunn
On Sun, Nov 15, 2020 at 07:52:10PM +0100, Martin Blumenstingl wrote: > Amlogic Meson G12A (and newer: G12B, SM1) SoCs have a more advanced RX > delay logic. Instead of fine-tuning the delay in the nanoseconds range > it now allows tuning in 200 picosecond steps. This support comes with > new bits

Re: [PATCH RFC v2 4/5] net: stmmac: dwmac-meson8b: move RGMII delays into a separate function

2020-11-16 Thread Andrew Lunn
On Sun, Nov 15, 2020 at 07:52:09PM +0100, Martin Blumenstingl wrote: > Newer SoCs starting with the Amlogic Meson G12A have more a precise > RGMII RX delay configuration register. This means more complexity in the > code. Extract the existing RGMII delay configuration code into a > separate

Re: [PATCH RFC v2 3/5] net: stmmac: dwmac-meson8b: use picoseconds for the RGMII RX delay

2020-11-16 Thread Andrew Lunn
On Sun, Nov 15, 2020 at 07:52:08PM +0100, Martin Blumenstingl wrote: > Amlogic Meson G12A, G12B and SM1 SoCs have a more advanced RGMII RX > delay register which allows picoseconds precision. Parse the new > "amlogic,rgmii-rx-delay-ps" property or fall back to the old > "amlogic,rx-delay-ns". > >

Re: [PATCH bpf-next v2 1/2] bpf: Add bpf_lsm_set_bprm_opts helper

2020-11-16 Thread KP Singh
On Tue, Nov 17, 2020 at 1:11 AM Martin KaFai Lau wrote: > > On Mon, Nov 16, 2020 at 11:25:35PM +, KP Singh wrote: > > From: KP Singh > > > > The helper allows modification of certain bits on the linux_binprm > > struct starting with the secureexec bit which can be updated using the > >

Re: [PATCH RFC v2 1/5] dt-bindings: net: dwmac-meson: use picoseconds for the RGMII RX delay

2020-11-16 Thread Andrew Lunn
On Sun, Nov 15, 2020 at 07:52:06PM +0100, Martin Blumenstingl wrote: > Amlogic Meson G12A, G12B and SM1 SoCs have a more advanced RGMII RX > delay register which allows picoseconds precision. Deprecate the old > "amlogic,rx-delay-ns" in favour of a new "amlogic,rgmii-rx-delay-ps" > property. > >

Re: [EXTERNAL] [tip: x86/apic] x86/io_apic: Cleanup trigger/polarity helpers

2020-11-16 Thread Suravee Suthikulpanit
David, On 11/13/20 10:14 PM, David Woodhouse wrote: On Wed, 2020-11-11 at 14:30 -0600, Tom Lendacky wrote: I had trouble cloning your tree for some reason, so just took the top three patches and applied them to the tip tree. This all appears to be working. I'll let the IOMMU experts take a

Re: [PATCH RFC v2 2/5] net: stmmac: dwmac-meson8b: fix enabling the timing-adjustment clock

2020-11-16 Thread Andrew Lunn
On Sun, Nov 15, 2020 at 07:52:07PM +0100, Martin Blumenstingl wrote: > The timing-adjustment clock only has to be enabled when a) there is a > 2ns RX delay configured using device-tree and b) the phy-mode indicates > that the RX delay should be enabled. > > Only enable the RX delay if both are

Re: [PATCH] scsi: sd: remove obsolete variable in sd_remove()

2020-11-16 Thread Nathan Chancellor
On Mon, Nov 16, 2020 at 08:00:35AM +0100, Lukas Bulwahn wrote: > Commit 140ea3bbf39a ("sd: use __register_blkdev to avoid a modprobe for an > unregistered dev_t") removed blk_register_region(devt, ...) in sd_remove() > and since then, devt is unused in sd_remove(). > > Hence, make W=1 warns: > >

Re: [PATCH bpf-next v2 2/2] bpf: Add tests for bpf_lsm_set_bprm_opts

2020-11-16 Thread KP Singh
On Tue, Nov 17, 2020 at 1:43 AM Martin KaFai Lau wrote: > > On Mon, Nov 16, 2020 at 11:25:36PM +, KP Singh wrote: > > From: KP Singh > > > > The test forks a child process, updates the local storage to set/unset > > the securexec bit. > > > > The BPF program in the test attaches to

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