Re: [PATCH 4/8] clk: imx8mp: drop of_match_ptr from of_device_id table

2020-11-09 Thread Shawn Guo
On Tue, Nov 03, 2020 at 05:24:31PM +0100, Krzysztof Kozlowski wrote: > The driver can match only via the DT table so the table should be always > used and the of_match_ptr does not have any sense (this also allows ACPI > matching via PRP0001, even though it might be not relevant here). This >

Re: [f2fs-dev] [PATCH v4 2/2] f2fs: fix compat F2FS_IOC_{MOVE, GARBAGE_COLLECT}_RANGE

2020-11-09 Thread Chao Yu
On 2020/11/10 2:12, Eric Biggers wrote: On Mon, Nov 09, 2020 at 10:29:25AM +0800, Chao Yu wrote: Oh I see, the cp-related checks are at the beginning of f2fs_ioctl() too. In that case a much better approach would be to add __f2fs_ioctl() which is called by f2fs_ioctl() and f2fs_compat_ioctl(),

Re: [PATCH 2/8] clk: imx8mm: drop of_match_ptr from of_device_id table

2020-11-09 Thread Shawn Guo
On Tue, Nov 03, 2020 at 05:24:29PM +0100, Krzysztof Kozlowski wrote: > The driver can match only via the DT table so the table should be always > used and the of_match_ptr does not have any sense (this also allows ACPI > matching via PRP0001, even though it might be not relevant here). This >

Re: [f2fs-dev] [PATCH] f2fs: compress: support chksum

2020-11-09 Thread Chao Yu
On 2020/11/10 1:06, Jaegeuk Kim wrote: On 11/09, Chao Yu wrote: On 2020/11/7 5:12, Jaegeuk Kim wrote: On 11/03, Chao Yu wrote: On 2020/11/3 10:02, Chao Yu wrote: On 2020/11/3 0:31, Jaegeuk Kim wrote: On 11/02, Chao Yu wrote: This patch supports to store chksum value with compressed data,

Re: [RFC] fs: Avoid to use lockdep information if it's turned off

2020-11-09 Thread Darrick J. Wong
On Tue, Nov 10, 2020 at 09:37:37AM +0800, Boqun Feng wrote: > Filipe Manana reported a warning followed by task hanging after attempts > to freeze a filesystem[1]. The problem happened in a LOCKDEP=y kernel, > and percpu_rwsem_is_held() provided incorrect results when > debug_locks == 0. Although

[PATCH v2 bpf] tools: bpftool: Add missing close before bpftool net attach exit

2020-11-09 Thread Wang Hai
progfd is created by prog_parse_fd(), before 'bpftool net attach' exit, it should be closed. Fixes: 04949ccc273e ("tools: bpftool: add net attach command to attach XDP on interface") Signed-off-by: Wang Hai --- v1->v2: use cleanup tag instead of repeated closes tools/bpf/bpftool/net.c | 14

Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-11-09 Thread Vladimir Oltean
Sorry for getting back late to you. It did not compute when I read your email the first time around, then I let it sit for a while. On Thu, Nov 05, 2020 at 09:18:04PM +0100, Christian Eggers wrote: > unfortunately I made a mistake when testing. Actually the timestamp *must* be > moved from the

Re: possible lockdep regression introduced by 4d004099a668 ("lockdep: Fix lockdep recursion")

2020-11-09 Thread Boqun Feng
On Mon, Nov 09, 2020 at 09:57:05AM +, Filipe Manana wrote: > > > On 09/11/20 08:44, Boqun Feng wrote: > > Hi Filipe, > > > > On Thu, Nov 05, 2020 at 09:10:12AM +0800, Boqun Feng wrote: > >> On Wed, Nov 04, 2020 at 07:54:40PM +, Filipe Manana wrote: > >> [...] > >>> > >>> Ok, so I ran

Re: [PATCH net-next] net: phy: microchip_t1: Don't set .config_aneg

2020-11-09 Thread Jakub Kicinski
On Mon, 9 Nov 2020 18:36:22 +0100 Andrew Lunn wrote: > On Mon, Nov 09, 2020 at 09:16:05AM +0800, Jisheng Zhang wrote: > > The .config_aneg in microchip_t1 is genphy_config_aneg, so it's not > > needed, because the phy core will call genphy_config_aneg() if the > > .config_aneg is NULL. > > > >

Re: [PATCH v9 6/7] rcu/tree: segcblist: Remove redundant smp_mb()s

2020-11-09 Thread Paul E. McKenney
On Fri, Nov 06, 2020 at 07:26:04PM -0500, Joel Fernandes wrote: > On Wed, Nov 04, 2020 at 07:57:13PM -0800, Paul E. McKenney wrote: > > On Tue, Nov 03, 2020 at 09:26:02AM -0500, Joel Fernandes (Google) wrote: > > > This memory barrier is not needed as rcu_segcblist_add_len() already > > > includes

Re: [PATCH v9 2/7] rcu/segcblist: Add counters to segcblist datastructure

2020-11-09 Thread Paul E. McKenney
On Fri, Nov 06, 2020 at 04:48:15PM -0800, Paul E. McKenney wrote: > On Fri, Nov 06, 2020 at 07:18:47PM -0500, Joel Fernandes wrote: > > On Fri, Nov 06, 2020 at 07:01:57PM -0500, Joel Fernandes wrote: > > > On Wed, Nov 04, 2020 at 09:01:33AM -0800, Paul E. McKenney wrote: > > > > > > > A casual

Re: [PATCH] clk: mediatek: fix mtk_clk_register_mux() as static function

2020-11-09 Thread Weiyi Lu
On Mon, 2020-11-09 at 11:20 +0100, Greg KH wrote: > On Mon, Nov 09, 2020 at 05:37:07PM +0800, Weiyi Lu wrote: > > mtk_clk_register_mux() should be a static function > > > > Fixes: a3ae549917f16 ("clk: mediatek: Add new clkmux register API") > > Cc: > > Why is this for stable trees? Hi Greg,

Re: [PATCH] net/mlx4: Assign boolean values to a bool variable

2020-11-09 Thread Jakub Kicinski
On Mon, 9 Nov 2020 11:33:17 +0200 Tariq Toukan wrote: > >>> ./drivers/net/ethernet/mellanox/mlx4/en_rx.c:687:1-17: WARNING: > >>> Assignment of 0/1 to bool variable > >>> > >>> Reported-by: Tosk Robot > >>> Signed-off-by: Kaixu Xia > > Reviewed-by: Tariq Toukan Applied, thanks.

[RFC] fs: Avoid to use lockdep information if it's turned off

2020-11-09 Thread Boqun Feng
Filipe Manana reported a warning followed by task hanging after attempts to freeze a filesystem[1]. The problem happened in a LOCKDEP=y kernel, and percpu_rwsem_is_held() provided incorrect results when debug_locks == 0. Although the behavior is caused by commit 4d004099a668 ("lockdep: Fix lockdep

Re: [PATCH 2/2] selftests: pmtu.sh: improve the test result processing

2020-11-09 Thread Po-Hsu Lin
On Tue, Nov 10, 2020 at 2:09 AM Jakub Kicinski wrote: > > On Mon, 9 Nov 2020 11:42:33 +0800 Po-Hsu Lin wrote: > > On Sun, Nov 8, 2020 at 7:02 AM Jakub Kicinski wrote: > > > > > > On Thu, 5 Nov 2020 18:50:51 +0800 Po-Hsu Lin wrote: > > > > This test will treat all non-zero return codes as

Re: [PATCH] regmap: Properly free allocated name for regmap_config of syscon

2020-11-09 Thread Kefeng Wang
On 2020/11/10 1:23, Mark Brown wrote: On Mon, Nov 09, 2020 at 07:58:16PM +0800, Kefeng Wang wrote: syscon_config.name in of_syscon_register is allocated using kasprintf, which should be freed when it is not used after regmap_set_name, fix the following memory leak. unreferenced object

Re: [PATCH] ARM: Kconfig: CPU_BIG_ENDIAN depends on !LD_IS_LLD

2020-11-09 Thread Nathan Chancellor
On Mon, Nov 09, 2020 at 02:47:12PM -0800, Nick Desaulniers wrote: > LLD does not yet support any big endian architectures. Make this config > non-selectable when using LLD until LLD is fixed. > > Link: https://github.com/ClangBuiltLinux/linux/issues/965 > Signed-off-by: Nick Desaulniers I

Re: [External] Re: [PATCH 4/5] mm: memcg/slab: Fix root memcg vmstats

2020-11-09 Thread Roman Gushchin
On Thu, Oct 29, 2020 at 02:15:43PM +0800, Muchun Song wrote: > On Thu, Oct 29, 2020 at 8:14 AM Roman Gushchin wrote: > > > > On Wed, Oct 28, 2020 at 10:56:20AM +0800, Muchun Song wrote: > > > On Wed, Oct 28, 2020 at 2:48 AM Roman Gushchin wrote: > > > > > > > > On Tue, Oct 27, 2020 at 04:02:55PM

[PATCH] x86/speculation: Fix prctl() when spectre_v2_user={seccomp,prctl},ibpb

2020-11-09 Thread Anand K Mistry
When spectre_v2_user={seccomp,prctl},ibpb, IBPB is force-enabled and STIPB is conditionally-enabled (or not available). However, since commit 21998a351512 ("x86/speculation: Avoid force-disabling IBPB based on STIBP and enhanced IBRS.") the spectre_v2_user_ibpb variable is set to

Re: [PATCH] docs: networking: phy: s/2.5 times faster/2.5 times as fast/

2020-11-09 Thread Jakub Kicinski
On Sat, 7 Nov 2020 23:08:21 +0100 Jonathan Neuschäfer wrote: > 2.5 times faster would be 3.5 Gbps (4.375 Gbaud after 8b/10b encoding). > > Signed-off-by: Jonathan Neuschäfer Applied, thanks!

[PATCH V3] memory: tegra: add missing put_device() call in error path of tegra_emc_probe()

2020-11-09 Thread Yu Kuai
The reference to device obtained with of_find_device_by_node() should be dropped. Thus add jump target to fix the exception handling for this function implementation. Fixes: 73a7f0a90641("memory: tegra: Add EMC (external memory controller) driver") Signed-off-by: Yu Kuai ---

Re: [RFC PATCH] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-11-09 Thread Roman Gushchin
On Fri, Oct 23, 2020 at 12:30:53PM -0400, Johannes Weiner wrote: > On Wed, Oct 21, 2020 at 12:33:22PM -0700, Roman Gushchin wrote: > > On Tue, Oct 20, 2020 at 02:18:22PM -0400, Johannes Weiner wrote: > > > On Tue, Oct 20, 2020 at 10:07:17AM -0700, Roman Gushchin wrote: > > > > If we want these

Re: [PATCH v9 7/7] rcu/segcblist: Add additional comments to explain smp_mb()

2020-11-09 Thread Paul E. McKenney
On Fri, Nov 06, 2020 at 05:41:41PM -0500, Joel Fernandes wrote: > On Thu, Nov 05, 2020 at 10:55:51AM -0800, Paul E. McKenney wrote: > > On Tue, Nov 03, 2020 at 09:26:03AM -0500, Joel Fernandes (Google) wrote: > > > Memory barriers are needed when updating the full length of the > > > segcblist,

Re: [PATCH] sysctl: move local variable in proc_do_large_bitmap() to proper scope

2020-11-09 Thread Tom Rix
On 11/8/20 11:11 PM, Lukas Bulwahn wrote: > make clang-analyzer caught my attention with: > > kernel/sysctl.c:1511:4: warning: Value stored to 'first' is never read \ > [clang-analyzer-deadcode.DeadStores] > first = 0; > ^ > > Commit

[PATCH v5 1/2] f2fs: avoid unneeded data copy in f2fs_ioc_move_range()

2020-11-09 Thread Chao Yu
Fields in struct f2fs_move_range won't change in f2fs_ioc_move_range(), let's avoid copying this structure's data to userspace. Signed-off-by: Chao Yu --- v5: - no change. fs/f2fs/file.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index

[PATCH v5 2/2] f2fs: fix compat F2FS_IOC_{MOVE,GARBAGE_COLLECT}_RANGE

2020-11-09 Thread Chao Yu
Eric reported a ioctl bug in below link: https://lore.kernel.org/linux-f2fs-devel/20201103032234.GB2875@sol.localdomain/ That said, on some 32-bit architectures, u64 has only 32-bit alignment, notably i386 and x86_32, so that size of struct f2fs_gc_range compiled in x86_32 is 20 bytes, however

[PATCH v17 0/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-11-09 Thread Ramuthevar,Vadivel MuruganX
This patch adds the new IP of Nand Flash Controller(NFC) support on Intel's Lightning Mountain(LGM) SoC. DMA is used for burst data transfer operation, also DMA HW supports aligned 32bit memory address and aligned data access by default. DMA burst of 8 supported. Data register used to support the

[PATCH v17 1/2] dt-bindings: mtd: Add Nand Flash Controller support for Intel LGM SoC

2020-11-09 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add YAML file for dt-bindings to support NAND Flash Controller on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan Reviewed-by: Rob Herring --- .../devicetree/bindings/mtd/intel,lgm-nand.yaml| 99 ++ 1 file

[PATCH v17 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-11-09 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan This patch adds the new IP of Nand Flash Controller(NFC) support on Intel's Lightning Mountain(LGM) SoC. DMA is used for burst data transfer operation, also DMA HW supports aligned 32bit memory address and aligned data access by default. DMA burst of 8

[PATCH v4 bpf-next 1/5] bpf: add in-kernel split BTF support

2020-11-09 Thread Andrii Nakryiko
Adjust in-kernel BTF implementation to support a split BTF mode of operation. Changes are mostly mirroring libbpf split BTF changes, with the exception of start_id being 0 for in-kernel implementation due to simpler read-only mode. Otherwise, for split BTF logic, most of the logic of jumping to

[PATCH v4 bpf-next 4/5] bpf: load and verify kernel module BTFs

2020-11-09 Thread Andrii Nakryiko
Add kernel module listener that will load/validate and unload module BTF. Module BTFs gets ID generated for them, which makes it possible to iterate them with existing BTF iteration API. They are given their respective module's names, which will get reported through GET_OBJ_INFO API. They are also

Re: [PATCH] firmware: arm_scmi: fix missing destroy_workqueue() on error in scmi_notification_init

2020-11-09 Thread Qinglang Miao
在 2020/11/10 1:51, Cristian Marussi 写道: On Mon, Nov 09, 2020 at 05:15:17PM +0800, Qinglang Miao wrote: Add the missing destroy_workqueue() before return from scmi_notification_init in the error handling case when fails to do devm_kcalloc(). Fixes: bd31b249692e ("firmware: arm_scmi: Add

[PATCH v4 bpf-next 2/5] bpf: assign ID to vmlinux BTF and return extra info for BTF in GET_OBJ_INFO

2020-11-09 Thread Andrii Nakryiko
Allocate ID for vmlinux BTF. This makes it visible when iterating over all BTF objects in the system. To allow distinguishing vmlinux BTF (and later kernel module BTF) from user-provided BTFs, expose extra kernel_btf flag, as well as BTF name ("vmlinux" for vmlinux BTF, will equal to module's name

[PATCH 2/2] remoteproc: qcom: Add trace events for q6v5_pas driver

2020-11-09 Thread Rishabh Bhatnagar
Add tracepoints for q6v5_pas driver. These will help in analyzing the time taken by each step in remoteproc bootup/shutdown process and also serve as standard checkpoints in code. Signed-off-by: Rishabh Bhatnagar --- drivers/remoteproc/qcom_q6v5_pas.c | 11 +++

[PATCH v4 bpf-next 0/5] Integrate kernel module BTF support

2020-11-09 Thread Andrii Nakryiko
This patch set adds BTF generation for kernel modules using a compact split BTF approach. Respective patches have all the details. Kernel module BTFs rely on pahole's split BTF support, which is added in [0] and will be available starting from v1.19. Support for it is detected automatically

[PATCH 0/2] Add trace events to q6v5_pas and mdt_loader driver

2020-11-09 Thread Rishabh Bhatnagar
Create and insert trace points in mdt_loader and qcom_q6v5_pas drivers. These tracepoints will be used to analyze the time taken at each step during bootup/shutdown of the remoteproc. Also provide information about location and size of firmware segments being loaded. Rishabh Bhatnagar (2):

[PATCH 1/2] soc: qcom: Add tracepoints to mdt loader

2020-11-09 Thread Rishabh Bhatnagar
Add trace events to the mdt loader driver. These events can help us trace the region where we are loading the segments and the time it takes to initialize the image and setup the memory region. Signed-off-by: Rishabh Bhatnagar --- drivers/soc/qcom/mdt_loader.c | 8 ++

Re: [PATCH tip/core/rcu 4/4] docs/rcu: Update the call_rcu() API

2020-11-09 Thread Paul E. McKenney
On Mon, Nov 09, 2020 at 01:24:24PM +0100, Peter Zijlstra wrote: > On Thu, Nov 05, 2020 at 03:05:10PM -0800, paul...@kernel.org wrote: > > From: Hui Su > > > > This commit updates the documented API of call_rcu() to use the > > rcu_callback_t typedef instead of the open-coded function definition.

Re: [PATCH] scsi: ufshcd: fix missing destroy_workqueue() on error in ufshcd_init

2020-11-09 Thread Qinglang Miao
在 2020/11/9 17:40, Avri Altman 写道: Add the missing destroy_workqueue() before return from ufshcd_init in the error handling case. It seems that exit_gating is an appropriate place. Fixes: 4db7a2360597 ("scsi: ufs: Fix concurrency of error handler and other error recovery paths")

Re: [PATCH v2 net] ethtool: netlink: add missing netdev_features_change() call

2020-11-09 Thread Jakub Kicinski
On Mon, 9 Nov 2020 15:00:02 +0100 Michal Kubecek wrote: > On Sun, Nov 08, 2020 at 12:46:15AM +, Alexander Lobakin wrote: > > After updating userspace Ethtool from 5.7 to 5.9, I noticed that > > NETDEV_FEAT_CHANGE is no more raised when changing netdev features > > through Ethtool. > > That's

Re: [PATCH RFC PKS/PMEM 05/58] kmap: Introduce k[un]map_thread

2020-11-09 Thread Thomas Gleixner
Ira, On Fri, Oct 09 2020 at 12:49, ira weiny wrote: > From: Ira Weiny > > To correctly support the semantics of kmap() with Kernel protection keys > (PKS), kmap() may be required to set the protections on multiple > processors (globally). Enabling PKS globally can be very expensive > depending

Re: [PATCH] net: udp: remove redundant initialization in udp_dump_one

2020-11-09 Thread Jakub Kicinski
On Fri, 6 Nov 2020 01:42:38 -0500 menglong8.d...@gmail.com wrote: > From: Menglong Dong > > The initialization for 'err' with '-EINVAL' is redundant and > can be removed, as it is updated soon and not used. > > Signed-off-by: Menglong Dong Applied, thanks.

Re: [PATCH] net: udp: remove redundant initialization in udp_send_skb

2020-11-09 Thread Jakub Kicinski
On Fri, 6 Nov 2020 01:42:40 -0500 menglong8.d...@gmail.com wrote: > From: Menglong Dong > > The initialization for 'err' with 0 is redundant and can be removed, > as it is updated by ip_send_skb and not used before that. > > Signed-off-by: Menglong Dong Applied.

Re: [PATCH net-next] bridge: mrp: Use hlist_head instead of list_head for mrp

2020-11-09 Thread Jakub Kicinski
On Fri, 6 Nov 2020 22:50:49 +0100 Horatiu Vultur wrote: > Replace list_head with hlist_head for MRP list under the bridge. > There is no need for a circular list when a linear list will work. > This will also decrease the size of 'struct net_bridge'. > > Signed-off-by: Horatiu Vultur Applied,

[PATCH] net: xfrm: fix memory leak in xfrm_user_policy()

2020-11-09 Thread Yu Kuai
if xfrm_get_translator() failed, xfrm_user_policy() return without freeing 'data', which is allocated in memdup_sockptr(). Fixes: 96392ee5a13b ("xfrm/compat: Translate 32-bit user_policy from sockptr") Reported-by: Hulk Robot Signed-off-by: Yu Kuai --- net/xfrm/xfrm_state.c | 4 +++- 1 file

[PATCH] "clocksource/drivers/cadence_ttc: fix memory leak in ttc_setup_clockevent()

2020-11-09 Thread Yu Kuai
If clk_notifier_register() failed, ttc_setup_clockevent() will return without freeing 'ttcce', which will leak memory. Fixes: 70504f311d4b ("clocksource/drivers/cadence_ttc: Convert init function to return error") Reported-by: Hulk Robot Signed-off-by: Yu Kuai ---

Re: [PATCH -next v2] clk: pm_clock: provide stubs for pm_clk_runtime_suspend/_resume

2020-11-09 Thread Nathan Chancellor
On Sun, Nov 08, 2020 at 07:21:15PM -0800, Randy Dunlap wrote: > Add stubs for pm_clk_runtime_suspend() and pm_clk_runtime_resume() > to fix build errors when CONFIG_PM and CONFIG_PM_CLK are not enabled. > > Fixes these build errors: > > ../drivers/clk/qcom/camcc-sc7180.c: In function

Re: [PATCH] sysctl: move local variable in proc_do_large_bitmap() to proper scope

2020-11-09 Thread Nathan Chancellor
On Mon, Nov 09, 2020 at 08:11:07AM +0100, Lukas Bulwahn wrote: > make clang-analyzer caught my attention with: > > kernel/sysctl.c:1511:4: warning: Value stored to 'first' is never read \ > [clang-analyzer-deadcode.DeadStores] > first = 0; >

Re: [PATCH -next] clk: imx: gate2: Remove unused variable ret

2020-11-09 Thread Shawn Guo
On Tue, Nov 03, 2020 at 07:32:14PM +0800, Zou Wei wrote: > This patch fixes below warning reported by coccicheck: > > ./clk-gate2.c:57:5-8: Unneeded variable: "ret". Return "0" on line 68 > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei Applied, thanks.

Re: [PATCH] fs/ntfs: remove unused varibles

2020-11-09 Thread Anton Altaparmakov
Hi, Andrew, please can you merge this? Thanks a lot in advance! Alex, thank you for the patch! Best regards, Anton > On 8 Nov 2020, at 07:38, Alex Shi wrote: > > We actually don't use these varibles, so remove them to avoid gcc warning: > fs/ntfs/file.c:326:14: warning: variable

Re: [PATCH][next] cpumask: allocate enough space for string and trailing '\0' char

2020-11-09 Thread Qian Cai
On Mon, 2020-11-09 at 13:04 +, Colin King wrote: > From: Colin Ian King > > Currently the allocation of cpulist is based on the length of buf but does > not include the addition end of string '\0' terminator. Static analysis is > reporting this as a potential out-of-bounds access on cpulist.

[PATCH] mm: memcg/slab: enable slab memory accounting atomically

2020-11-09 Thread Roman Gushchin
Many kernel memory accounting paths are guarded by the memcg_kmem_enabled_key static key. It changes it's state during the onlining of the first non-root cgroup. However is doesn't happen atomically: before all call sites will become patched some charges/uncharges can be skipped, resulting in an

Re: [PATCH v5 2/2] ARM: dts: add Van der Laan LANMCU board

2020-11-09 Thread Shawn Guo
On Mon, Nov 02, 2020 at 10:02:12AM +0100, Oleksij Rempel wrote: > Van der Laan LANMCU is a module for the food storage rooms to control > proper gas composition. > > Co-developed-by: Robin van der Gracht > Signed-off-by: Robin van der Gracht > Signed-off-by: Oleksij Rempel > Reviewed-by:

Re: [PATCH v5 1/2] dt-bindings: arm: fsl: add Van der Laan LANMCU board

2020-11-09 Thread Shawn Guo
On Mon, Nov 02, 2020 at 10:02:11AM +0100, Oleksij Rempel wrote: > Add Van der Laan LANMCU iMX6dl based board > > Signed-off-by: Oleksij Rempel > Reviewed-by: Krzysztof Kozlowski > Acked-by: Rob Herring Applied, thanks.

[PATCH v4 5/5] dt-bindings: dt-bindings: display: simple: Add BOE NV110WTM-N61

2020-11-09 Thread Douglas Anderson
Add yet another eDP panel. Signed-off-by: Douglas Anderson Acked-by: Rob Herring --- (no changes since v1) .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml

[PATCH v4 1/5] drm: panel: simple: Fixup the struct panel_desc kernel doc

2020-11-09 Thread Douglas Anderson
When I run: scripts/kernel-doc -rst drivers/gpu/drm/panel/panel-simple.c I see that several of the kernel-doc entries aren't showing up because they don't specify the full path down the hierarchy. Let's fix that and also move to inline kernel docs. Signed-off-by: Douglas Anderson ---

[PATCH v4 2/5] drm: panel: simple: Defer unprepare delay till next prepare to shorten it

2020-11-09 Thread Douglas Anderson
It is believed that all of the current users of the "unprepare" delay don't actually need to wait the amount of time specified directly in the unprepare phase. The purpose of the delay that's specified is to allow the panel to fully power off so that we don't try to power it back on before it's

[PATCH v4 3/5] drm: panel: simple: Allow specifying the delay from prepare to enable

2020-11-09 Thread Douglas Anderson
On the panel I'm looking at, there's an 80 ms minimum time between HPD being asserted by the panel and setting the backlight enable GPIO. While we could just add an 80 ms "enable" delay, this is not ideal. Link training is allowed to happen in parallel with this delay so the fixed 80 ms delay

[PATCH v4 4/5] drm: panel: simple: Add BOE NV110WTM-N61

2020-11-09 Thread Douglas Anderson
Add support for the BOE NV110WTM-N61 panel. The EDID lists two modes (one for 60 Hz refresh rate and one for 40 Hz), so we'll list both of them here. Note that the panel datasheet requires 80 ms between HPD asserting and the backlight power being turned on. We'll use the new timing constraints

Re: [PATCH stable] net: sch_generic: fix the missing new qdisc assignment bug

2020-11-09 Thread Yunsheng Lin
On 2020/11/9 20:46, Greg KH wrote: > On Tue, Nov 03, 2020 at 11:25:38AM +0800, Yunsheng Lin wrote: >> commit 2fb541c862c9 ("net: sch_generic: aviod concurrent reset and enqueue >> op for lockless qdisc") >> >> When the above upstream commit is backported to stable kernel, >> one assignment is

Re: [PATCH] fs/ntfs: remove unused varible attr_len

2020-11-09 Thread Anton Altaparmakov
Hi Andrew, Can you also please merge this one? Thanks a lot in advance! Alex, again, thank you for the patch! Best regards, Anton > On 8 Nov 2020, at 08:06, Alex Shi wrote: > From: Alex Shi > Date: Sun, 8 Nov 2020 15:52:32 +0800 > Subject: [PATCH] fs/ntfs: remove unused varible

[RFC PATCH 2/7] static_call: Pull some static_call declarations to the type headers

2020-11-09 Thread Frederic Weisbecker
From: Peter Zijlstra Some static call declarations are going to be needed on low level header files. Move the necessary material to the dedicated static call types header to avoid inclusion dependency hell. Signed-off-by: Peter Zijlstra (Intel) Cc: Thomas Gleixner Cc: Mel Gorman Cc: Ingo

[RFC PATCH 1/7] static_call/x86: Add __static_call_returnl0()

2020-11-09 Thread Frederic Weisbecker
From: Peter Zijlstra Provide a stub function that return 0 and wire up the static call site patching to replace the CALL with a single 5 byte instruction that clears %RAX, the return value register. The function can be cast to any function pointer type that has a single %RAX return (including

[RFC PATCH 3/7] preempt: Introduce CONFIG_PREEMPT_DYNAMIC

2020-11-09 Thread Frederic Weisbecker
From: Michal Hocko Preemption mode selection is currently hardcoded on Kconfig choices. Introduce a dedicated option to tune preemption flavour at boot time, This will be only available on architectures efficiently supporting static calls in order not to tempt with the feature against

[RFC PATCH 5/7] preempt/dynamic: Provide preempt_schedule[_notrace]() static calls

2020-11-09 Thread Frederic Weisbecker
From: "Peter Zijlstra (Intel)" Provide static calls to control preempt_schedule[_notrace]() (called in CONFIG_PREEMPT) so that we can override their behaviour when preempt= is overriden. Since the default behaviour is full preemption, both their calls are initialized to the arch provided

[RFC PATCH 0/7] preempt: Tune preemption flavour on boot v3

2020-11-09 Thread Frederic Weisbecker
This is a reworked version of what came out of the debate between Michal Hocko and Peter Zijlstra in order to tune the preemption mode from kernel parameters, see v2 in: https://lore.kernel.org/lkml/20201009122926.29962-1-mho...@kernel.org/ I mostly fetched the raw diff from Peter's proof of

[RFC PATCH 6/7] preempt/dynamic: Provide irqentry_exit_cond_resched() static call

2020-11-09 Thread Frederic Weisbecker
From: "Peter Zijlstra (Intel)" Provide static call to control IRQ preemption (called in CONFIG_PREEMPT) so that we can override its behaviour when preempt= is overriden. Since the default behaviour is full preemption, its call is initialized to provide IRQ preemption when preempt= isn't passed.

[RFC PATCH 7/7] preempt/dynamic: Support dynamic preempt with preempt= boot option

2020-11-09 Thread Frederic Weisbecker
From: "Peter Zijlstra (Intel)" Support the preempt= boot option and patch the static call sites accordingly. Signed-off-by: Peter Zijlstra (Intel) Cc: Thomas Gleixner Cc: Mel Gorman Cc: Ingo Molnar Cc: Michal Hocko Cc: Paul E. McKenney [remove the mad scientist experiments] Signed-off-by:

[RFC PATCH 4/7] preempt/dynamic: Provide cond_resched() and might_resched() static calls

2020-11-09 Thread Frederic Weisbecker
From: "Peter Zijlstra (Intel)" Provide static calls to control cond_resched() (called in !CONFIG_PREEMPT) and might_resched() (called in CONFIG_PREEMPT_VOLUNTARY) to that we can override their behaviour when preempt= is overriden. Since the default behaviour is full preemption, both their calls

Re: [PATCH 0/3] arm64: dts: imx8m: add IR support

2020-11-09 Thread Shawn Guo
On Mon, Nov 02, 2020 at 10:25:24AM +0800, Joakim Zhang wrote: > Add IR support on i.MX8M platforms. > > Joakim Zhang (3): > arm64: dts: imx8mq-evk: add linux,autosuspend-period property for IR > arm64: dts: imx8mm-evk: add IR support > arm64: dts: imx8mn-evk: add IR support Applied all,

Re: [PATCH V2] arm64: dts: imx8mp-evk: add CAN support

2020-11-09 Thread Shawn Guo
On Mon, Nov 02, 2020 at 10:16:34AM +0800, Joakim Zhang wrote: > Add CAN device node and pinctrl on i.MX8MP evk board. > > Signed-off-by: Joakim Zhang Applied, thanks.

Re: [PATCH 05/20] input: rmi4: rmi_f01: Struct headers are expected to start with 'struct '

2020-11-09 Thread Dmitry Torokhov
Hi Lee, On Wed, Nov 04, 2020 at 04:24:12PM +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/input/rmi4/rmi_f01.c:106: warning: Cannot understand * @ctrl0 - see > the bit definitions above. > > Cc: Dmitry Torokhov > Cc: linux-in...@vger.kernel.org >

Re: [PATCH v2 0/3] mainline add Altesco I6P board

2020-11-09 Thread Shawn Guo
On Fri, Oct 30, 2020 at 03:00:26PM +0100, Oleksij Rempel wrote: > changes v2: > - rebase against > git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next > - remove spaces > - use Co-developed-by instead of Co-Developed-by > > Oleksij Rempel (3): > dt-bindings: vendor-prefixes:

[rcu:dev.2020.11.06a 15/22] rdtgroup.c:undefined reference to `cpulist_parse'

2020-11-09 Thread kernel test robot
-20201109 (attached as .config) compiler: gcc-9 (Debian 9.3.0-15) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?id=015465e505581b068dba346e6e73caeb673e8753 git remote add rcu https://git.kernel.org/pub/scm/linux

Re: [PATCH v2 net-next] net: udp: introduce UDP_MIB_MEMERRORS for udp_mem

2020-11-09 Thread Jakub Kicinski
On Thu, 5 Nov 2020 20:49:14 -0500 menglong8.d...@gmail.com wrote: > From: Menglong Dong > > When udp_memory_allocated is at the limit, __udp_enqueue_schedule_skb > will return a -ENOBUFS, and skb will be dropped in __udp_queue_rcv_skb > without any counters being done. It's hard to find out

[PATCH 1/8] usb: typec: Correct the bit values for the Thunderbolt rounded/non-rounded cable support

2020-11-09 Thread Utkarsh Patel
Rounded and non-rounded Thunderbolt cables are represented by two bits as per USB Type-C Connector specification v2.0 section F.2.6. Corrected that in the Thunderbolt 3 cable discover mode VDO. Fixes: ca469c292edc ("usb: typec: Add definitions for Thunderbolt 3 Alternate Mode") Signed-off-by:

[PATCH 7/8] usb: typec: intel_pmc_mux: Configure active cable properties for USB4

2020-11-09 Thread Utkarsh Patel
Value received as a part of Thunderbolt 3 cable discover mode VDO needs to be configured in the USB4 mode for the Thunderbolt rounded support and active cable plug link training. Suggested-by: Heikki Krogerus Signed-off-by: Utkarsh Patel --- drivers/usb/typec/mux/intel_pmc_mux.c | 18

[PATCH 5/8] usb: typec: Use Thunderbolt 3 cable discover mode VDO in Enter_USB message

2020-11-09 Thread Utkarsh Patel
USB4 also uses same cable properties as Thunderbolt 3 so use Thunderbolt 3 cable discover mode VDO to fill details such as active cable plug link training and cable rounded support. Suggested-by: Heikki Krogerus Signed-off-by: Utkarsh Patel --- include/linux/usb/typec.h | 2 ++ 1 file changed,

[PATCH 6/8] platform/chrome: cros_ec_typec: Use Thunderbolt 3 cable discover mode VDO in USB4 mode

2020-11-09 Thread Utkarsh Patel
Configure Thunderbolt3/USB4 cable generation value by filing Thunderbolt 3 cable discover mode VDO to support rounded and non-rounded Thunderbolt3/ USB4 cables. While we are here use Thunderbolt 3 cable discover mode VDO to fill active cable plug link training value. Suggested-by: Heikki Krogerus

[PATCH 8/8] usb: typec: Remove active_link_training variable from Enter_USB message

2020-11-09 Thread Utkarsh Patel
Thunderbolt 3 cable discover mode VDO support has been added as part of Enter_USB message to fill details of active cable plug link training. Hence, removing unused variable active_link_training from Enter_USB message data structure. Signed-off-by: Utkarsh Patel --- include/linux/usb/typec.h |

[PATCH 3/8] usb: typec: intel_pmc_mux: Configure Thunderbolt cable generation bits

2020-11-09 Thread Utkarsh Patel
Thunderbolt cable generation bits received as a part of Thunderbolt 3 cable discover mode VDO needs to be configured for Thunderbolt rounded and non-rounded cable support in the Thunderbolt alternate mode. Signed-off-by: Utkarsh Patel --- drivers/usb/typec/mux/intel_pmc_mux.c | 3 +++ 1 file

[PATCH 2/8] platform/chrome: cros_ec_typec: Correct the Thunderbolt rounded/non-rounded cable support

2020-11-09 Thread Utkarsh Patel
Thunderbolt rounded/non-rounded cable support is two bits value. Correcting it as per the Thunderbolt 3 cable discover mode VDO changes done in the Thunderbolt 3 alternate mode header. Fixes: 5b30bd35aab4 ("platform/chrome: cros_ec_typec: Add TBT compat support") Signed-off-by: Utkarsh Patel ---

[PATCH 4/8] usb: typec: Remove one bit support for the Thunderbolt rounded/non-rounded cable

2020-11-09 Thread Utkarsh Patel
Two bits support for the Thunderbolt rounded/non-rounded cable has been added to the header file. Hence, removing unused TBT_CABLE_ROUNDED definition from the header file. Fixes: ca469c292edc ("usb: typec: Add definitions for Thunderbolt 3 Alternate Mode") Signed-off-by: Utkarsh Patel ---

[PATCH 0/8] Thunderbolt3/USB4 cable rounded and active cable plug link training support

2020-11-09 Thread Utkarsh Patel
This patch series adds the support for Thunderbolt3/USB4 rounded and non-rounded frequencies cables and fixes the active cable plug link training support. Utkarsh Patel (8): usb: typec: Correct the bit values for the Thunderbolt rounded/non-rounded cable support platform/chrome:

Re: [PATCH v4 net] net: udp: fix Fast/frag0 UDP GRO

2020-11-09 Thread Alexander Lobakin
From: Alexander Lobakin Date: Tue, 10 Nov 2020 00:17:18 + > While testing UDP GSO fraglists forwarding through driver that uses > Fast GRO (via napi_gro_frags()), I was observing lots of out-of-order > iperf packets: > > [ ID] Interval Transfer Bitrate Jitter > [SUM]

Spende

2020-11-09 Thread ''
Ich bin Bill Lawrence, ein älterer Bürger aus Kalifornien, USA. Ich habe einen Jackpot von 150 Millionen US-Dollar gewonnen. Im Namen meiner Familie und aus gutem Willen spenden wir Ihnen und Ihrer Familie den Betrag von (2.000.000,00 EUR). Ich brauche Ihre uneingeschränkte Mitarbeit bei dieser

Re: [PATCH -next v2] clk: pm_clock: provide stubs for pm_clk_runtime_suspend/_resume

2020-11-09 Thread Stephen Rothwell
Hi all, On Sun, 8 Nov 2020 19:21:15 -0800 Randy Dunlap wrote: > > Add stubs for pm_clk_runtime_suspend() and pm_clk_runtime_resume() > to fix build errors when CONFIG_PM and CONFIG_PM_CLK are not enabled. > > Fixes these build errors: > > ../drivers/clk/qcom/camcc-sc7180.c: In function

[PATCH v4 net] net: udp: fix Fast/frag0 UDP GRO

2020-11-09 Thread Alexander Lobakin
While testing UDP GSO fraglists forwarding through driver that uses Fast GRO (via napi_gro_frags()), I was observing lots of out-of-order iperf packets: [ ID] Interval Transfer Bitrate Jitter [SUM] 0.0-40.0 sec 12106 datagrams received out-of-order Simple switch to

[PATCH net v5] net: Update window_clamp if SOCK_RCVBUF is set

2020-11-09 Thread Mao Wenan
When net.ipv4.tcp_syncookies=1 and syn flood is happened, cookie_v4_check or cookie_v6_check tries to redo what tcp_v4_send_synack or tcp_v6_send_synack did, rsk_window_clamp will be changed if SOCK_RCVBUF is set, which will make rcv_wscale is different, the client still operates with initial

Re: [PATCH 02/24] bpf: Add build_id_parse_size function

2020-11-09 Thread Alexei Starovoitov
On Mon, Nov 9, 2020 at 1:54 PM Jiri Olsa wrote: > > It's possible to have other build id types (other than default > SHA1). Currently there's also ld support for MD5 build id. > > Adding build_id_parse_size function, that returns also size of > the parsed build id, so we can recognize the build

Re: [PATCH v3 bpf-next 2/5] bpf: assign ID to vmlinux BTF and return extra info for BTF in GET_OBJ_INFO

2020-11-09 Thread Andrii Nakryiko
On Mon, Nov 9, 2020 at 1:55 PM Martin KaFai Lau wrote: > > On Mon, Nov 09, 2020 at 01:00:21PM -0800, Andrii Nakryiko wrote: > > Allocate ID for vmlinux BTF. This makes it visible when iterating over all > > BTF > > objects in the system. To allow distinguishing vmlinux BTF (and later kernel > >

Re: [PATCH v2 7/8] Documentation: Add documentation for the Brute LSM

2020-11-09 Thread Randy Dunlap
On 11/9/20 10:23 AM, John Wood wrote: > Hi, > Thanks for the typos corrections. Will be corrected in the next patch > version. > > On Sun, Nov 08, 2020 at 08:31:13PM -0800, Randy Dunlap wrote: >> >> So an app could read crash_period_threshold and just do a new fork every >> threshold + 1 time

Re: [PATCH v2] vhost-vdpa: fix page pinning leakage in error path (rework)

2020-11-09 Thread si-wei liu
On 11/9/2020 2:42 PM, Michael S. Tsirkin wrote: On Mon, Nov 09, 2020 at 01:44:03PM -0800, si-wei liu wrote: On 11/8/2020 7:21 PM, Jason Wang wrote: On 2020/11/6 上午6:57, si-wei liu wrote: On 11/4/2020 7:26 PM, Jason Wang wrote: On 2020/11/5 上午7:33, Si-Wei Liu wrote: Pinned pages are not

[PATCH v2 net-next] net: skb_vlan_untag(): don't reset transport offset if set by GRO layer

2020-11-09 Thread Alexander Lobakin
Similar to commit fda55eca5a33f ("net: introduce skb_transport_header_was_set()"), avoid resetting transport offsets that were already set by GRO layer. This not only mirrors the behavior of __netif_receive_skb_core(), but also makes sense when it comes to UDP GSO fraglists forwarding: transport

Re: [PATCH v5 0/4] DCMI BT656 parallel bus mode support

2020-11-09 Thread Sakari Ailus
On Mon, Nov 09, 2020 at 09:37:51AM +0100, Alexandre Torgue wrote: > Hi Sakari > > On 11/6/20 12:53 PM, Sakari Ailus wrote: > > Hi Alexandre, > > > > On Thu, Nov 05, 2020 at 10:26:37AM +0100, Alexandre Torgue wrote: > > > Hi Huges > > > > > > On 11/4/20 6:32 PM, Hugues Fruchet wrote: > > > > Add

Re: [PATCH 0/3] HDR10 static metadata

2020-11-09 Thread Stanimir Varbanov
On 11/9/20 9:53 PM, Nicolas Dufresne wrote: > Le lundi 09 novembre 2020 à 19:31 +0200, Stanimir Varbanov a écrit : >> Hello, >> >> This patchset adds two HDR10 HEVC v4l2 controls for Content Light Level >> and Mastering display colour volume plus implenmentation in Venus encoder >> driver. >>

Re: [PATCH 1/2] MIPS: Ingenic: Add missing nodes for Ingenic SoCs and boards.

2020-11-09 Thread Paul Cercueil
Le sam. 7 nov. 2020 à 19:52, 周琰杰 (Zhou Yanjie) a écrit : 1.Add OTG/OTG PHY/RNG nodes for JZ4780, CGU/OTG nodes for CI20. 2.Add OTG/OTG PHY/RNG/OST nodes for X1000, SSI/CGU/OST/OTG/SC16IS752 nodes for CU1000-Neo. 3.Add OTG/OTG PHY/DTRNG/OST nodes for X1830, SSI/CGU/OST/OTG/SC16IS752

[tip:master] BUILD SUCCESS a2445441a132ee5b3e61e6a26c27a3491f4296ef

2020-11-09 Thread kernel test robot
allnoconfig x86_64 randconfig-a004-20201109 x86_64 randconfig-a002-20201109 x86_64 randconfig-a003-20201109 x86_64 randconfig-a005-20201109 x86_64 randconfig-a006-20201109 x86_64 randconfig-a001

Re: [PATCH v2 5/5] drm/mediatek: Add support for main DDP path on MT8167

2020-11-09 Thread Chun-Kuang Hu
Hi, Fabien: Fabien Parent 於 2020年10月23日 週五 下午9:31寫道: > > Add the main (DSI) drm display path for MT8167. Reviewed-by: Chun-Kuang Hu > > Signed-off-by: Fabien Parent > --- > > Changelog: > > V2: No change > > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 38 ++ > 1 file

Re: [PATCH net-next] net: skb_vlan_untag(): don't reset transport offset if set by GRO layer

2020-11-09 Thread Alexander Lobakin
From: Jakub Kicinski Date: Mon, 9 Nov 2020 15:29:13 -0800 > On Thu, 05 Nov 2020 21:29:01 + Alexander Lobakin wrote: >> Similar to commit fda55eca5a33f >> ("net: introduce skb_transport_header_was_set()"), avoid resetting >> transport offsets that were already set by GRO layer. This not only

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