Re: [PATCH 0/4] CAN TRANSCEIVER: Add support for CAN transceivers

2021-04-14 Thread Marc Kleine-Budde
On 09.04.2021 19:10:50, Aswath Govindraju wrote: > The following series of patches add support for CAN transceivers. > > TCAN1042 has a standby signal that needs to be pulled high for > sending/receiving messages[1]. TCAN1043 has a enable signal along with > standby signal that needs to be pulled

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Dan Carpenter
On Wed, Apr 14, 2021 at 08:33:48AM +0200, Fabio M. De Francesco wrote: > On Wednesday, April 14, 2021 7:21:50 AM CEST Dan Carpenter wrote: > > On Tue, Apr 13, 2021 at 10:08:32PM +0200, Fabio M. De Francesco wrote: > > > On Tuesday, April 13, 2021 9:48:44 PM CEST Matthew Wilcox wrote: > > > > On Tue

Re: [PATCH 4/7] mm: Introduce verify_page_range()

2021-04-14 Thread Peter Zijlstra
On Tue, Apr 13, 2021 at 08:01:08PM -0700, Kees Cook wrote: > So the addr can just be encoded in "int", and no structure is needed at: > > typedef bool (*vpr_fn_t)(pte_t pte); > > static int vpr_fn(pte_t *pte, unsigned long addr, void *data) > { > vpr_fn_t callback = data; > > if (!ca

Re: [RFC/PATCH] powerpc/smp: Add SD_SHARE_PKG_RESOURCES flag to MC sched-domain

2021-04-14 Thread Gautham R Shenoy
Hello Mel, On Mon, Apr 12, 2021 at 04:24:44PM +0100, Mel Gorman wrote: > On Mon, Apr 12, 2021 at 02:21:47PM +0200, Vincent Guittot wrote: > > > > Peter, Valentin, Vincent, Mel, etal > > > > > > > > On architectures where we have multiple levels of cache access latencies > > > > within a DIE, (For

Re: [RFC/PATCH] powerpc/smp: Add SD_SHARE_PKG_RESOURCES flag to MC sched-domain

2021-04-14 Thread Gautham R Shenoy
On Mon, Apr 12, 2021 at 06:33:55PM +0200, Michal Suchánek wrote: > On Mon, Apr 12, 2021 at 04:24:44PM +0100, Mel Gorman wrote: > > On Mon, Apr 12, 2021 at 02:21:47PM +0200, Vincent Guittot wrote: > > > > > Peter, Valentin, Vincent, Mel, etal > > > > > > > > > > On architectures where we have multip

Re: [PATCH] implement flush_cache_vmap for RISC-V

2021-04-14 Thread Alex Ghiti
Hi, Le 4/12/21 à 3:08 AM, Jisheng Zhang a écrit : Hi Jiuyang, On Mon, 12 Apr 2021 00:05:30 + Jiuyang Liu wrote: This patch implements flush_cache_vmap for RISC-V, since it modifies PTE. Without this patch, SFENCE.VMA won't be added to related codes, which might introduce a bug in the o

Re: Question on KASAN calltrace record in RT

2021-04-14 Thread Dmitry Vyukov
On Wed, Apr 14, 2021 at 8:58 AM Zhang, Qiang wrote: > > 发件人: Dmitry Vyukov > 发送时间: 2021年4月13日 23:29 > 收件人: Zhang, Qiang > 抄送: Andrew Halaney; andreyk...@gmail.com; ryabinin@gmail.com; > a...@linux-foundation.org; linux-kernel@vger.kernel.org; > kasan

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-04-14 Thread Peter Zijlstra
On Wed, Apr 14, 2021 at 10:26:57AM +0800, Guo Ren wrote: > Thx Peter, > > On Tue, Apr 13, 2021 at 4:17 PM Peter Zijlstra wrote: > > > > On Tue, Apr 13, 2021 at 10:03:01AM +0200, Peter Zijlstra wrote: > > > > > For ticket locks you really only needs atomic_fetch_add() and > > > smp_store_release()

Re: [PATCH v15 00/12] SMMUv3 Nested Stage Setup (IOMMU part)

2021-04-14 Thread Xingang Wang
Hi Shameer, On 2021/4/14 14:56, Shameerali Kolothum Thodi wrote: -Original Message- From: wangxingang Sent: 14 April 2021 03:36 To: Eric Auger ; eric.auger@gmail.com; jean-phili...@linaro.org; io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; k...@vger.kernel.org; kv

Re: [PATCH v3 01/12] iommu: Introduce dirty log tracking framework

2021-04-14 Thread Lu Baolu
Hi Keqian, On 4/13/21 4:54 PM, Keqian Zhu wrote: Some types of IOMMU are capable of tracking DMA dirty log, such as ARM SMMU with HTTU or Intel IOMMU with SLADE. This introduces the dirty log tracking framework in the IOMMU base layer. Three new essential interfaces are added, and we maintaince

Re: [PATCH v2] drivers: pinctrl: qcom: fix Kconfig dependency on GPIOLIB

2021-04-14 Thread Linus Walleij
On Wed, Apr 14, 2021 at 4:51 AM Julian Braha wrote: > When PINCTRL_MSM is enabled, and GPIOLIB is disabled, > Kbuild gives the following warning: > > WARNING: unmet direct dependencies detected for GPIOLIB_IRQCHIP > Depends on [n]: GPIOLIB [=n] > Selected by [y]: > - PINCTRL_MSM [=y] && PIN

Re: [PATCH V2 1/1] sched/fair:Reduce unnecessary check preempt in the sched tick

2021-04-14 Thread Peter Zijlstra
On Wed, Apr 14, 2021 at 10:22:29AM +0800, qianjun.ker...@gmail.com wrote: > From: jun qian > > As you are already set the TIF_NEED_RESCHED, there is no need > to check resched again. Still no justification; does this actually help anything? > Signed-off-by: jun qian > --- > kernel/sched/fair.

Re: [PATCH v2 1/3] dt-bindings: gpio: add YAML description for rockchip,gpio-bank

2021-04-14 Thread Linus Walleij
On Tue, Apr 13, 2021 at 12:36 AM Johan Jonker wrote: > Current dts files with "rockchip,gpio-bank" subnodes > are manually verified. In order to automate this process > the text that describes the compatible in rockchip,pinctrl.txt > is removed and converted to YAML in rockchip,gpio-bank.yaml. >

Re: [tip: core/rcu] softirq: Don't try waking ksoftirqd before it has been spawned

2021-04-14 Thread Sebastian Andrzej Siewior
On 2021-04-12 11:36:45 [-0700], Paul E. McKenney wrote: > > Color me confused. I did not follow the discussion around this > > completely, but wasn't it agreed on that this rcu torture muck can wait > > until the threads are brought up? > > Yes, we can cause rcutorture to wait. But in this case,

[PATCH] atm: idt77252: remove unused function

2021-04-14 Thread Jiapeng Chong
Fix the following clang warning: drivers/atm/idt77252.c:1787:1: warning: unused function 'idt77252_fbq_level' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/atm/idt77252.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/atm/idt77252.c b/

Re: [PATCH] x86/kprobes: Simplify alloc_insn_page() with __vmalloc_node_range

2021-04-14 Thread Jisheng Zhang
On Tue, 13 Apr 2021 22:00:30 +0900 Masami Hiramatsu wrote: > > > Hi, Hi > > On Tue, 13 Apr 2021 18:03:24 +0800 > Jisheng Zhang wrote: > > > Use the __vmalloc_node_range() to simplify x86's alloc_insn_page() > > implementation. > > Have you checked this is equivarent to the original cod

Re: [PATCH v2 resend] mm/memory_hotplug: Make unpopulated zones PCP structures unreachable during hot remove

2021-04-14 Thread Oscar Salvador
On Mon, Apr 12, 2021 at 01:08:42PM +0100, Mel Gorman wrote: > zone_pcp_reset allegedly protects against a race with drain_pages > using local_irq_save but this is bogus. local_irq_save only operates > on the local CPU. If memory hotplug is running on CPU A and drain_pages > is running on CPU B, dis

[PATCH v5 0/2] Add Mediatek Efuse Device Node for MT8192 SoC

2021-04-14 Thread Yz.Wu
From: Ryan Wu This patch adds efuse to read via NVMEM. Ryan Wu (2): dt-bindings: nvmem: mediatek: add support for MediaTek mt8192 SoC arm64: dts: mt8192: add eFuse support for MT8192 SoC Documentation/devicetree/bindings/nvmem/mtk-efuse.txt | 1 + arch/arm64/boot/dts/mediatek/mt8192.dtsi

[PATCH v5 1/2] dt-bindings: nvmem: mediatek: add support for MediaTek mt8192 SoC

2021-04-14 Thread Yz.Wu
From: Ryan Wu This updates dt-binding documentation for MediaTek mt8192 Signed-off-by: Ryan Wu --- This patch is based on v5.12-rc2. --- Documentation/devicetree/bindings/nvmem/mtk-efuse.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/mtk-efuse.t

[PATCH v5 2/2] arm64: dts: mt8192: add eFuse support for MT8192 SoC

2021-04-14 Thread Yz.Wu
From: Ryan Wu Add eFuse node to read Mediatek eFuse Signed-off-by: Ryan Wu --- This patch dependents on "arm64: dts: Add Mediatek SoC MT8192 and evaluation board dts and Makefile"[1] mt8192.dtsi file is needed for this patch. Please also accept this patch together with [1]. [1]http://lists.i

Re: [PATCH] mac80211_hwsim: indicate support for 60GHz channels

2021-04-14 Thread Johannes Berg
On Mon, 2021-04-12 at 22:06 -0300, Ramon Fontes wrote: > Advertise 60GHz channels to mac80211. This is wrong. mac80211 doesn't support 60 GHz operation. johannes

[PATCH v6 0/2] staging: rtl8192e: Clean up patchset for style issues in rtl819x_HTProc.c

2021-04-14 Thread Mitali Borkar
Changes from v5:- Rebased these patches and dropped 2/3 and made this a patchset of 2. [PATCH v5 1/2]:- No changes. [PATCH V5 2/2]:- No changes. Changes from v4:- [PATCH v4 1/2]:- No changes. [PATCH V4 2/2]:- Removed casts and parentheses. Changes from v3:- Changed subject line to match prefix on

Re: [PATCH] objtool: prevent memory leak in error paths

2021-04-14 Thread Peter Zijlstra
On Wed, Apr 14, 2021 at 01:45:11AM +0500, Muhammad Usama Anjum wrote: > Memory allocated by sym and sym->name isn't being freed if some error > occurs in elf_create_undef_symbol(). Free the sym and sym->name if error > is detected before returning NULL. > > Addresses-Coverity: ("Prevent memory lea

[PATCH v6 1/2] staging: rtl8192e: remove parentheses around boolean expression

2021-04-14 Thread Mitali Borkar
Removed unnecessary parentheses around '!xyz' boolean expression as '!' has higher precedance than '||' Signed-off-by: Mitali Borkar --- Changes from v5:- No changes. Changes from v4:- No changes. Changes from v3:- No changes. Changes from v2:- Modified subject description. Changes has been mad

[PATCH v6 2/2] staging: rtl8192e: remove casts and parentheses

2021-04-14 Thread Mitali Borkar
Removed unnecessary (void *) cast and parentheses to meet linux kernel coding style. Signed-off-by: Mitali Borkar --- Changes from v5:- No changes. Changes from v4:- Removed unnecessary casts and parentheses. Changes from v3:- No changes. Changes from v2:- Rectified spelling mistake in subject d

Re: [PATCH 0/4 POC] Allow executing code and syscalls in another address space

2021-04-14 Thread Anton Ivanov
On 14/04/2021 06:52, Andrei Vagin wrote: We already have process_vm_readv and process_vm_writev to read and write to a process memory faster than we can do this with ptrace. And now it is time for process_vm_exec that allows executing code in an address space of another process. We can do this wi

Re: [PATCH v4 2/2] remoteproc: stm32: add capability to detach

2021-04-14 Thread Arnaud POULIQUEN
Hello Bjorn On 4/13/21 11:34 PM, Bjorn Andersson wrote: > On Wed 31 Mar 02:33 CDT 2021, Arnaud Pouliquen wrote: > >> A mechanism similar to the shutdown mailbox signal is implemented to >> detach a remote processor. >> >> Upon detachment, a signal is sent to the remote firmware, allowing it >> to

Re: [PATCH v3 02/12] iommu: Add iommu_split_block interface

2021-04-14 Thread Lu Baolu
On 4/13/21 4:54 PM, Keqian Zhu wrote: Block(largepage) mapping is not a proper granule for dirty log tracking. Take an extreme example, if DMA writes one byte, under 1G mapping, the dirty amount reported is 1G, but under 4K mapping, the dirty amount is just 4K. This adds a new interface named io

Re: [PATCH] x86/kprobes: Simplify alloc_insn_page() with __vmalloc_node_range

2021-04-14 Thread Jisheng Zhang
Jisheng Zhang wrote: > > > Hi, Hi > > On Tue, 13 Apr 2021 18:03:24 +0800 > Jisheng Zhang wrote: > > > Use the __vmalloc_node_range() to simplify x86's alloc_insn_page() > > implementation. > > Have you checked this is equivarent to the original code on all > architecture? IIRC, som

Re: [RFC Part2 PATCH 01/30] x86: Add the host SEV-SNP initialization support

2021-04-14 Thread Borislav Petkov
On Wed, Mar 24, 2021 at 12:04:07PM -0500, Brijesh Singh wrote: > @@ -538,6 +540,10 @@ > #define MSR_K8_SYSCFG0xc0010010 > #define MSR_K8_SYSCFG_MEM_ENCRYPT_BIT23 > #define MSR_K8_SYSCFG_MEM_ENCRYPTBIT_ULL(MSR_K8_SYSCFG_MEM_ENCRYPT_BIT) > +#define MSR_K8_SYSCFG

Re: [Outreachy kernel] Re: [PATCH v3 4/4] staging: media: intel-ipu3: remove space before tabs

2021-04-14 Thread Sakari Ailus
On Wed, Apr 14, 2021 at 12:05:04AM +0200, Julia Lawall wrote: > > > On Wed, 14 Apr 2021, Mitali Borkar wrote: > > > On Tue, Apr 13, 2021 at 09:17:12PM +0300, Dan Carpenter wrote: > > > On Tue, Apr 13, 2021 at 08:59:34PM +0530, Mitali Borkar wrote: > > > > Removed unnecessary space before tabs to

[PATCH V2] watchdog: mtk: support pre-timeout when the bark irq is available

2021-04-14 Thread Wang Qing
Use the bark interrupt as the pretimeout notifier if available. By default, the pretimeout notification shall occur one second earlier than the timeout. V2: - panic() by default if WATCHDOG_PRETIMEOUT_GOV is not enabled Signed-off-by: Wang Qing --- drivers/watchdog/mtk_wdt.c | 57 +

Re: [PATCH v2 0/7] gpio-rockchip driver

2021-04-14 Thread Linus Walleij
On Sun, Apr 11, 2021 at 3:30 PM Peter Geis wrote: > Separate gpio driver from pinctrl driver, and support v2 controller. > > Tested on rk3566-quartz64 prototype board. > > Patch History: > V2 - Rebase to latest linux-next. > > Tested-by: Peter Geis This does not apply to the pin control tree, t

回复: Question on KASAN calltrace record in RT

2021-04-14 Thread Zhang, Qiang
发件人: Mike Galbraith 发送时间: 2021年4月14日 12:00 收件人: Dmitry Vyukov; Zhang, Qiang 抄送: Andrew Halaney; andreyk...@gmail.com; ryabinin@gmail.com; a...@linux-foundation.org; linux-kernel@vger.kernel.org; kasan-...@googlegroups.com 主题: Re: Question on KASAN c

[PATCH v2] arm64: dts: mt8183: Add power-domains properity to mfgcfg

2021-04-14 Thread Ikjoon Jang
mfgcfg clock is under MFG_ASYNC power domain Signed-off-by: Weiyi Lu Signed-off-by: Ikjoon Jang --- Changes in v2: Fix a wrong power domain reference (scpsys to spm). Link(v1): https://patchwork.kernel.org/project/linux-mediatek/patch/20210224091742.1060508-1-i...@chromium.org/#23997681 ---

Re: [PATCH 0/4 POC] Allow executing code and syscalls in another address space

2021-04-14 Thread Johannes Berg
On Wed, 2021-04-14 at 08:22 +0100, Anton Ivanov wrote: > On 14/04/2021 06:52, Andrei Vagin wrote: > > We already have process_vm_readv and process_vm_writev to read and write > > to a process memory faster than we can do this with ptrace. And now it > > is time for process_vm_exec that allows execu

Re: [PATCH v2 3/9] userfaultfd/shmem: support minor fault registration for shmem

2021-04-14 Thread Hugh Dickins
On Mon, 12 Apr 2021, Axel Rasmussen wrote: > This patch allows shmem-backed VMAs to be registered for minor faults. > Minor faults are appropriately relayed to userspace in the fault path, > for VMAs with the relevant flag. > > This commit doesn't hook up the UFFDIO_CONTINUE ioctl for shmem-backe

[tip: x86/cleanups] x86/pat: Do not compile stubbed functions when X86_PAT is off

2021-04-14 Thread tip-bot2 for Jan Kiszka
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 16854b567dff767e5ec5e6dc23021271136733a5 Gitweb: https://git.kernel.org/tip/16854b567dff767e5ec5e6dc23021271136733a5 Author:Jan Kiszka AuthorDate:Mon, 26 Oct 2020 18:39:06 +01:00 Committer

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio Aiuto
On Wed, Apr 14, 2021 at 08:21:50AM +0300, Dan Carpenter wrote: > On Tue, Apr 13, 2021 at 10:08:32PM +0200, Fabio M. De Francesco wrote: > > On Tuesday, April 13, 2021 9:48:44 PM CEST Matthew Wilcox wrote: > > > On Tue, Apr 13, 2021 at 09:45:03PM +0200, Fabio M. De Francesco wrote: > > > > 1) The dr

Re: Regression v5.12-rc3: net: stmmac: re-init rx buffers when mac resume back

2021-04-14 Thread Thierry Reding
On Wed, Apr 14, 2021 at 02:18:58AM +, Joakim Zhang wrote: > > > -Original Message- > > From: Thierry Reding > > Sent: 2021年4月14日 0:07 > > To: David S. Miller ; Jakub Kicinski > > Cc: Joakim Zhang ; Jon Hunter > > ; Giuseppe Cavallaro ; > > Alexandre Torgue ; Jose Abreu > > ; net...@v

Re: [PATCH v7 3/7] mm,hugetlb: Clear HPageFreed outside of the lock

2021-04-14 Thread Oscar Salvador
On Wed, Apr 14, 2021 at 08:04:21AM +0200, Michal Hocko wrote: > On Tue 13-04-21 14:19:03, Mike Kravetz wrote: > > On 4/13/21 6:23 AM, Michal Hocko wrote: > > The only place where page->private may not be initialized is when we do > > allocations at boot time from memblock. In this case, we will ad

Re: [PATCH] ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade()

2021-04-14 Thread David Hildenbrand
On 13.04.21 19:53, Rafael J. Wysocki wrote: On Tue, Apr 13, 2021 at 7:43 PM David Hildenbrand wrote: On 13.04.21 16:01, Rafael J. Wysocki wrote: From: Rafael J. Wysocki Commit 1a1c130ab757 ("ACPI: tables: x86: Reserve memory occupied by ACPI tables") attempted to address an issue with reser

Re: [PATCH] ASoC: Intel: Handle device properties with software node API

2021-04-14 Thread Heikki Krogerus
On Tue, Apr 13, 2021 at 10:47:49AM -0500, Pierre-Louis Bossart wrote: > > > On 4/13/21 9:05 AM, Heikki Krogerus wrote: > > On Tue, Apr 13, 2021 at 03:20:45PM +0300, Heikki Krogerus wrote: > > > On Mon, Apr 12, 2021 at 03:36:20PM -0500, Pierre-Louis Bossart wrote: > > > > I took the code and split

[PATCH] usb: typec: silence a static checker warning

2021-04-14 Thread Dan Carpenter
Smatch complains about a potential missing error code: drivers/usb/typec/port-mapper.c:168 typec_link_port() warn: missing error code 'ret' This is a false positive and returning zero is intentional. Let's re-arrange the code to silence the warning and make the intent more clear. Signed

Re: [PATCH v14 6/6] locking/qspinlock: Introduce the shuffle reduction optimization into CNA

2021-04-14 Thread Andreas Herrmann
On Thu, Apr 01, 2021 at 11:31:56AM -0400, Alex Kogan wrote: > This performance optimization chooses probabilistically to avoid moving > threads from the main queue into the secondary one when the secondary queue > is empty. > > It is helpful when the lock is only lightly contended. In particular,

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Dan Carpenter
On Wed, Apr 14, 2021 at 09:40:36AM +0200, Fabio Aiuto wrote: > On Wed, Apr 14, 2021 at 08:21:50AM +0300, Dan Carpenter wrote: > > On Tue, Apr 13, 2021 at 10:08:32PM +0200, Fabio M. De Francesco wrote: > > > On Tuesday, April 13, 2021 9:48:44 PM CEST Matthew Wilcox wrote: > > > > On Tue, Apr 13, 202

Re: [PATCH v3 0/3] rseq: minor optimizations

2021-04-14 Thread Peter Zijlstra
On Tue, Apr 13, 2021 at 04:40:33PM -0400, Mathieu Desnoyers wrote: > - On Apr 13, 2021, at 4:33 PM, Eric Dumazet eric.duma...@gmail.com wrote: > > > From: Eric Dumazet > > > > rseq is a heavy user of copy to/from user data in fast paths. > > This series tries to reduce the cost. > > > > v3:

Re: [PATCH 0/8] i2c: fix reference leak when pm_runtime_get_sync fails

2021-04-14 Thread Wolfram Sang
On Tue, Dec 01, 2020 at 05:29:24PM +0800, Qinglang Miao wrote: > pm_runtime_get_sync will increment the PM reference count > even failed. Forgetting to putting operation will result > in a reference leak here. > > Replace it with pm_runtime_resume_and_get to keep usage > counter balanced. > > B

Re: [PATCH] i2c: omap: Fix rumtime PM imbalance on error

2021-04-14 Thread Wolfram Sang
On Wed, Apr 07, 2021 at 11:30:30AM +0800, Dinghao Liu wrote: > pm_runtime_get_sync() will increase the rumtime PM counter > even it returns an error. Thus a pairing decrement is needed > to prevent refcount leak. Fix this by replacing this API with > pm_runtime_resume_and_get(), which will not chan

[PATCH] software node: Allow node addition to already existing device

2021-04-14 Thread Heikki Krogerus
If the node is added to an already exiting device, the node needs to be also linked to the device separately. This will make sure the reference count is kept in balance also when the node is injected to a device afterwards. Reported-by: Pierre-Louis Bossart Fixes: e68d0119e328 ("software node: I

RE: [PATCH v2 3/3] rseq: optimise rseq_get_rseq_cs() and clear_rseq_cs()

2021-04-14 Thread David Laight
From: Arjun Roy > Sent: 13 April 2021 23:04 > > On Tue, Apr 13, 2021 at 2:19 PM David Laight wrote: > > > > > If we're special-casing 64-bit architectures anyways - unrolling the > > > 32B copy_from_user() for struct rseq_cs appears to be roughly 5-10% > > > savings on x86-64 when I measured it (

Re: [PATCH v2 4/5] staging: rtl8192e: rectified spelling mistake and replace memcmp with ether_oui_equal

2021-04-14 Thread Dan Carpenter
On Wed, Apr 14, 2021 at 12:26:01PM +0530, Mitali Borkar wrote: > Added a generic function of static inline bool in > include/linux/etherdevice.h to replace memcmp with > ether_oui_equal throughout the execution. > Corrected the misspelled words in this file. > > Signed-off-by: Mitali Borkar > ---

Re: [PATCH v3 1/3] usb: typec: tcpm: Honour pSnkStdby requirement during negotiation

2021-04-14 Thread Heikki Krogerus
On Tue, Apr 13, 2021 at 07:39:58PM -0700, Badhri Jagan Sridharan wrote: > >From PD Spec: > The Sink Shall transition to Sink Standby before a positive or > negative voltage transition of VBUS. During Sink Standby > the Sink Shall reduce its power draw to pSnkStdby. This allows > the Source to manag

Re: [PATCH v3 2/3] usb: typec: tcpm: Allow slow charging loops to comply to pSnkStby

2021-04-14 Thread Heikki Krogerus
On Tue, Apr 13, 2021 at 07:39:59PM -0700, Badhri Jagan Sridharan wrote: > When a PD charger advertising Rp-3.0 is connected to a sink port, the > sink port current limit would 3A, during SNK_DISCOVERY, till power > negotiation starts. Once the negotiation starts the power limit needs > to drop down

Re: [PATCH -next] i2c: imx-lpi2c: fix PM reference leak in lpi2c_imx_master_enable()

2021-04-14 Thread Wolfram Sang
On Thu, Apr 08, 2021 at 07:19:30PM +0800, Ye Weihua wrote: > The PM reference count is not expected to be incremented on return in > ipi2c_imx_master_enable(). > > However, pm_runtime_get_sync() will increment the PM reference count > even on failure. forgetting to put the reference again will res

Re: [PATCH -next] i2c: cadence: Fix PM reference leak in cdns_i2c_master_xfer()

2021-04-14 Thread Wolfram Sang
On Thu, Apr 08, 2021 at 07:23:52PM +0800, Pu Lehui wrote: > pm_runtime_get_sync() will increment pm usage counter even it failed. > Forgetting to putting operation will result in reference leak here. > Fix it by replacing it with pm_runtime_resume_and_get() to keep usage > counter balanced. > > Si

Re: 回复: Question on KASAN calltrace record in RT

2021-04-14 Thread Mike Galbraith
On Wed, 2021-04-14 at 07:29 +, Zhang, Qiang wrote: > > if CONFIG_PREEMPT_RT is enabled and but not in preemptible, the prealloc > should be allowed No, you can't take an rtmutex when not preemptible. -Mike

Re: [PATCH -next] i2c: img-scb: fix PM reference leak in img_i2c_xfer()

2021-04-14 Thread Wolfram Sang
On Thu, Apr 08, 2021 at 07:29:10PM +0800, Pu Lehui wrote: > pm_runtime_get_sync() will increment pm usage counter even it failed. > Forgetting to putting operation will result in reference leak here. > Fix it by replacing it with pm_runtime_resume_and_get() to keep usage > counter balanced. > > Si

Re: [PATCH] MIPS: Fix strnlen_user access check

2021-04-14 Thread Thomas Bogendoerfer
On Tue, Apr 13, 2021 at 04:01:13PM +, David Laight wrote: > From: Thomas Bogendoerfer > > Sent: 13 April 2021 16:19 > > > > On Tue, Apr 13, 2021 at 12:37:25PM +, David Laight wrote: > > > From: Thomas Bogendoerfer > > > > Sent: 13 April 2021 12:15 > > > ... > > > > > The __access_ok() is

Re: [PATCH v2 00/16] Multigenerational LRU Framework

2021-04-14 Thread Yu Zhao
On Wed, Apr 14, 2021 at 12:15 AM Huang, Ying wrote: > > Yu Zhao writes: > > > On Tue, Apr 13, 2021 at 8:30 PM Rik van Riel wrote: > >> > >> On Wed, 2021-04-14 at 09:14 +1000, Dave Chinner wrote: > >> > On Tue, Apr 13, 2021 at 10:13:24AM -0600, Jens Axboe wrote: > >> > > >> > > The initial postin

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Fabio M. De Francesco
On Wednesday, April 14, 2021 9:00:25 AM CEST Dan Carpenter wrote: > On Wed, Apr 14, 2021 at 08:33:48AM +0200, Fabio M. De Francesco wrote: > > On Wednesday, April 14, 2021 7:21:50 AM CEST Dan Carpenter wrote: > > > On Tue, Apr 13, 2021 at 10:08:32PM +0200, Fabio M. De Francesco wrote: > > > > On T

[PATCH v6] hwmon: Add driver for fsp-3y PSUs and PDUs

2021-04-14 Thread Václav Kubernát
This patch adds support for these devices: - YH-5151E - the PDU - YM-2151E - the PSU The device datasheet says that the devices support PMBus 1.2, but in my testing, a lot of the commands aren't supported and if they are, they sometimes behave strangely or inconsistently. For example, writes to th

Re: [PATCH -next] i2c: sprd: Fix PM reference leak in sprd_i2c_master_xfer()

2021-04-14 Thread Wolfram Sang
On Thu, Apr 08, 2021 at 08:59:15PM +0800, Li Huafei wrote: > pm_runtime_get_sync will increment pm usage counter even it failed. > Forgetting to putting operation will result in reference leak here. Fix > it by replacing it with pm_runtime_resume_and_get to keep usage counter > balanced. > > Repor

Re: [PATCH -next] i2c: omap: fix PM reference leak in omap_i2c_probe()

2021-04-14 Thread Wolfram Sang
On Thu, Apr 08, 2021 at 08:56:48PM +0800, Li Huafei wrote: > pm_runtime_get_sync will increment pm usage counter even it failed. > Forgetting to putting operation will result in reference leak here. Fix > it by replacing it with pm_runtime_resume_and_get to keep usage counter > balanced. > > Repor

Re: [PATCH] usb: typec: silence a static checker warning

2021-04-14 Thread Heikki Krogerus
On Wed, Apr 14, 2021 at 10:44:40AM +0300, Dan Carpenter wrote: > Smatch complains about a potential missing error code: > > drivers/usb/typec/port-mapper.c:168 typec_link_port() > warn: missing error code 'ret' > > This is a false positive and returning zero is intentional. Let's > re-ar

[PATCH 1/2] audit: Add syscall return code handling for compat task

2021-04-14 Thread He Zhe
When 32-bit userspace application is running on 64-bit kernel, the 32-bit syscall return code would be changed from u32 to u64 in regs_return_value and then changed to s64. Hence the negative return code recorded by audit would end up being a big positive number like below. type=SYSCALL msg=audit(

Re: [PATCH] staging: media: omap4iss: Remove unused macro functions

2021-04-14 Thread Hans Verkuil
On 13/04/2021 20:21, ascordeiro wrote: > Em ter, 2021-04-13 às 17:06 +0200, Hans Verkuil escreveu: >> On 12/04/2021 15:42, Aline Santana Cordeiro wrote: >>> Remove unused macro functions "to_iss_device()", "to_device()", >>> and "v4l2_dev_to_iss_device(dev)". >> >> 'git grep to_iss_device drivers/s

[PATCH 2/2] ptrace: is_syscall_success: Add syscall return code handling for compat task

2021-04-14 Thread He Zhe
When 32-bit userspace application is running on 64-bit kernel, the 32-bit syscall return code would be changed from u32 to u64 in regs_return_value and then changed to s64. Hence the negative return code would be treated as a positive number and results in a non-error in, for example, audit like be

Re: [PATCH v5] hwmon: Add driver for fsp-3y PSUs and PDUs

2021-04-14 Thread Václav Kubernát
st 14. 4. 2021 v 5:29 odesílatel Guenter Roeck napsal: > > On Wed, Apr 14, 2021 at 02:13:06AM +0200, Václav Kubernát wrote: > > This patch adds support for these devices: > > - YH-5151E - the PDU > > - YM-2151E - the PSU > > > > The device datasheet says that the devices support PMBus 1.2, but in

Re: [PATCH -next] i2c: imx: Fix PM reference leak in i2c_imx_reg_slave()

2021-04-14 Thread Wolfram Sang
On Thu, Apr 08, 2021 at 07:06:38PM +0800, Ye Weihua wrote: > The PM reference count is not expected to be incremented on return in > these functions. > > However, pm_runtime_get_sync() will increment the PM reference count > even on failure. forgetting to put the reference again will result in > a

Re: [PATCH v3 2/3] drm: bridge: add it66121 driver

2021-04-14 Thread Robert Foss
On Wed, 14 Apr 2021 at 08:13, Neil Armstrong wrote: > > Hi Rob, > > Le 13/04/2021 à 22:21, Robert Foss a écrit : > > Hey Neil & Phong, > > > > Thanks for submitting this series! > > > >> + > >> +static const struct drm_bridge_funcs it66121_bridge_funcs = { > >> + .attach = it66121_bridge_att

RE: Regression v5.12-rc3: net: stmmac: re-init rx buffers when mac resume back

2021-04-14 Thread Joakim Zhang
> -Original Message- > From: Thierry Reding > Sent: 2021年4月14日 15:41 > To: Joakim Zhang > Cc: David S. Miller ; Jakub Kicinski ; > Jon Hunter ; Giuseppe Cavallaro > ; Alexandre Torgue ; > Jose Abreu ; net...@vger.kernel.org; Linux Kernel > Mailing List ; linux-tegra > > Subject: Re: Reg

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-14 Thread Dan Carpenter
On Wed, Apr 14, 2021 at 09:59:36AM +0200, Fabio M. De Francesco wrote: > Fine. I'm about to submit a patch. > > Is there any formal means to acknowledge (in the patch) your contribution > to the resolution of this problem? It doesn't matter. Suggested-by. regards, dan carpenter

Re: [PATCH v3 2/3] drm: bridge: add it66121 driver

2021-04-14 Thread Neil Armstrong
On 14/04/2021 10:06, Robert Foss wrote: > On Wed, 14 Apr 2021 at 08:13, Neil Armstrong wrote: >> >> Hi Rob, >> >> Le 13/04/2021 à 22:21, Robert Foss a écrit : >>> Hey Neil & Phong, >>> >>> Thanks for submitting this series! >>> + +static const struct drm_bridge_funcs it66121_bridge_funcs

Re: [PATCH 02/10] mm/numa: automatically generate node migration order

2021-04-14 Thread Oscar Salvador
On Fri, Apr 09, 2021 at 08:07:08PM -0700, Wei Xu wrote: > On Thu, Apr 1, 2021 at 11:35 AM Dave Hansen > wrote: > > + * When Node 0 fills up, its memory should be migrated to > > + * Node 1. When Node 1 fills up, it should be migrated to > > + * Node 2. The migration path start on the nodes with

回复: 回复: Question on KASAN calltrace record in RT

2021-04-14 Thread Zhang, Qiang
发件人: Mike Galbraith 发送时间: 2021年4月14日 15:56 收件人: Zhang, Qiang; Dmitry Vyukov 抄送: Andrew Halaney; andreyk...@gmail.com; ryabinin@gmail.com; a...@linux-foundation.org; linux-kernel@vger.kernel.org; kasan-...@googlegroups.com 主题: Re: 回复: Question on KAS

Re: [PATCH 1/1] mm: Fix struct page layout on 32-bit systems

2021-04-14 Thread Jesper Dangaard Brouer
On Mon, 12 Apr 2021 02:15:32 +0100 Matthew Wilcox wrote: > On Sun, Apr 11, 2021 at 11:33:18AM +0100, Matthew Wilcox wrote: > > Basically, we have three aligned dwords here. We can either alias with > > @flags and the first word of @lru, or the second word of @lru and @mapping, > > or @index and

Re: [PATCH 02/10] mm/numa: automatically generate node migration order

2021-04-14 Thread Oscar Salvador
On Wed, Apr 14, 2021 at 10:08:54AM +0200, Oscar Salvador wrote: > In Dave's example, list is created in a way that stays local to the socket, > and we go from the fast one to the slow one. Or maybe it is just because find_next_best_node() does not know any better and creates the list that way? --

Re: [PATCH v2] usb: dwc3: core: Add shutdown callback for dwc3

2021-04-14 Thread Felipe Balbi
Sandeep Maheswaram writes: > This patch adds a shutdown callback to USB DWC core driver to ensure that > it is properly shutdown in reboot/shutdown path. This is required > where SMMU address translation is enabled like on SC7180 > SoC and few others. If the hardware is still accessing memory aft

Re: [PATCH 02/10] mm/numa: automatically generate node migration order

2021-04-14 Thread David Hildenbrand
On 14.04.21 10:08, Oscar Salvador wrote: On Fri, Apr 09, 2021 at 08:07:08PM -0700, Wei Xu wrote: On Thu, Apr 1, 2021 at 11:35 AM Dave Hansen wrote: + * When Node 0 fills up, its memory should be migrated to + * Node 1. When Node 1 fills up, it should be migrated to + * Node 2. The migration

Re: [PATCH] ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade()

2021-04-14 Thread Mike Rapoport
On Wed, Apr 14, 2021 at 09:42:01AM +0200, David Hildenbrand wrote: > On 13.04.21 19:53, Rafael J. Wysocki wrote: > > On Tue, Apr 13, 2021 at 7:43 PM David Hildenbrand wrote: > > > > > > On 13.04.21 16:01, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > > > > > Commit 1a1c130ab7

Re: [PATCH v1 1/1] mfd: lpc_sch: Partially revert "Add support for Intel Quark X1000"

2021-04-14 Thread Lee Jones
On Wed, 03 Mar 2021, Andy Shevchenko wrote: > The IRQ support for SCH GPIO is not specific to the Intel Quark SoC. > Moreover the IRQ routing is quite interesting there, so while it's > needs a special support, the driver haven't it anyway yet. > > Due to above remove basically redundant code of

Re: [PATCH v1 2/2] i2c: designware: Get rid of legacy platform data

2021-04-14 Thread Lee Jones
On Tue, 06 Apr 2021, Wolfram Sang wrote: > On Wed, Mar 31, 2021 at 06:48:51PM +0300, Andy Shevchenko wrote: > > Platform data is a legacy interface to supply device properties > > to the driver. In this case we don't have anymore in-kernel users > > for it. Just remove it for good. > > > > Signed

Re: [PATCH v2 2/3] arm64: dts: qcom: sm8150: add i2c nodes

2021-04-14 Thread Felipe Balbi
Caleb Connolly writes: > Tested on the OnePlus 7 Pro (including DMA). > > Signed-off-by: Caleb Connolly > Reviewed-by: Vinod Koul > Reviewed-by: Bhupesh Sharma Tested on Microsoft Surface Duo (DTS will be sent after -rc1) Tested-by: Felipe Balbi -- balbi signature.asc Description: PGP s

Re: [PATCH 02/10] mm/numa: automatically generate node migration order

2021-04-14 Thread Oscar Salvador
On Wed, Apr 14, 2021 at 10:12:29AM +0200, David Hildenbrand wrote: > My guest best is that fast class is something like HBM (High Bandwidth > Memory), medium class is ordinary RAM, slow class is PMEM. I see, thanks for the hint David ;-) -- Oscar Salvador SUSE L3

Re: [PATCH v3 1/3] dt-bindings: display: bridge: add it66121 bindings

2021-04-14 Thread Neil Armstrong
On 13/04/2021 18:03, Laurent Pinchart wrote: > Hi Neil, > > Thank you for the patch. > > On Mon, Apr 12, 2021 at 05:46:46PM +0200, Neil Armstrong wrote: >> From: Phong LE >> >> Add the ITE bridge HDMI it66121 bindings. >> >> Signed-off-by: Phong LE >> Signed-off-by: Neil Armstrong >> --- >> .

[PATCH v2] Documentation: dev-tools: Add Testing Overview

2021-04-14 Thread David Gow
The kernel now has a number of testing and debugging tools, and we've seen a bit of confusion about what the differences between them are. Add a basic documentation outlining the testing tools, when to use each, and how they interact. This is a pretty quick overview rather than the idealised "ker

Re: [PATCH v1 2/2] i2c: designware: Get rid of legacy platform data

2021-04-14 Thread Wolfram Sang
> > > Platform data is a legacy interface to supply device properties > > > to the driver. In this case we don't have anymore in-kernel users > > > for it. Just remove it for good. > > > > > > Signed-off-by: Andy Shevchenko > > > > Acked-by: Wolfram Sang > > Do you require an immutable branch

Re: [PATCH v3 2/3] drm: bridge: add it66121 driver

2021-04-14 Thread Paul Cercueil
Le mer. 14 avril 2021 à 8:17, Neil Armstrong a écrit : Hi, Le 13/04/2021 à 22:56, Paul Cercueil a écrit : Hi Neil, I get build failures locally: drivers/gpu/drm/bridge/ite-it66121.c: In function ‘it66121_hw_reset’: drivers/gpu/drm/bridge/ite-it66121.c:242:2: error: implicit declara

Re: [PATCH v3 2/3] drm: bridge: add it66121 driver

2021-04-14 Thread Laurent Pinchart
Hi Neil, On Wed, Apr 14, 2021 at 10:08:46AM +0200, Neil Armstrong wrote: > On 14/04/2021 10:06, Robert Foss wrote: > > On Wed, 14 Apr 2021 at 08:13, Neil Armstrong > > wrote: > >> Le 13/04/2021 à 22:21, Robert Foss a écrit : > >>> Hey Neil & Phong, > >>> > >>> Thanks for submitting this series!

[PATCH] staging: rtl8723bs: fix indentation issue introduced by long line split

2021-04-14 Thread Fabio Aiuto
fix indentation of last line in if condition. Fixes: af6afdb63f17 (staging: rtl8723bs: split long lines) Reported-by: Dan Carpenter Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rt

Re: [PATCH v2 4/5] staging: rtl8192e: rectified spelling mistake and replace memcmp with ether_oui_equal

2021-04-14 Thread Greg KH
On Wed, Apr 14, 2021 at 12:26:01PM +0530, Mitali Borkar wrote: > Added a generic function of static inline bool in > include/linux/etherdevice.h to replace memcmp with > ether_oui_equal throughout the execution. > Corrected the misspelled words in this file. > > Signed-off-by: Mitali Borkar > ---

Re: Subject: [PATCH v2 0/5] staging: rtl8192e: CLeanup patchset for style issues in rtl819x_Y.c files

2021-04-14 Thread Greg KH
On Wed, Apr 14, 2021 at 12:24:44PM +0530, Mitali Borkar wrote: > Changes from v1:- Dropped 6/6 from and made this as a patchset of 5 as > alignment of code is done in following patches. Why is "Subject:" listed in your subject line? Do not manually add it after git format-patch has created it...

Re: [PATCH 02/10] mm/numa: automatically generate node migration order

2021-04-14 Thread David Hildenbrand
On 14.04.21 10:14, Oscar Salvador wrote: On Wed, Apr 14, 2021 at 10:12:29AM +0200, David Hildenbrand wrote: My guest best is that fast class is something like HBM (High Bandwidth haha, whatever happened in that sentence: s/guest best/best guess/ Memory), medium class is ordinary RAM, slow cl

Re: [PATCH v10 1/3] PCI: portdrv: Add pcie_port_service_get_irq() function

2021-04-14 Thread Kunihiko Hayashi
Hi Jonathan, On 2021/04/12 17:42, Jonathan Cameron wrote: On Sat, 10 Apr 2021 01:22:16 +0900 Kunihiko Hayashi wrote: Add pcie_port_service_get_irq() that returns the virtual IRQ number for specified portdrv service. Trivial comment inline. Cc: Lorenzo Pieralisi Signed-off-by: Kunihiko H

Re: [PATCH] x86/kprobes: Simplify alloc_insn_page() with __vmalloc_node_range

2021-04-14 Thread Masami Hiramatsu
Hi Jisheng, On Wed, 14 Apr 2021 15:27:28 +0800 Jisheng Zhang wrote: \ > > > > On Tue, 13 Apr 2021 18:03:24 +0800 > > Jisheng Zhang wrote: > > > > > Use the __vmalloc_node_range() to simplify x86's alloc_insn_page() > > > implementation. > > > > Have you checked this is equivarent to the

[patch v3] translations/zh_CN: add translations to dev-tools gcov

2021-04-14 Thread Bernard Zhao
Add translations to dev-tools gcov Signed-off-by: Bernard Zhao --- Changes since V2: * fix some inaccurate translation Changes since V1: * add index.rst in dev-tools and link to to zh_CN/index.rst * fix some inaccurate translation --- .../translations/zh_CN/dev-tools/gcov.rst | 261 ++

Re: [PATCH 4/7] staging: rtl8723bs: replace DBG_871X_SEL_NL with netdev_dbg()

2021-04-14 Thread Greg KH
On Tue, Apr 13, 2021 at 04:56:32PM +0200, Fabio Aiuto wrote: > replace DGB_871X_SEL_NL macro with netdev_dbg(). > > DBG_871X_SEL_NL macro expands to a raw prink call or a > seq_printf if selected stream _is not_ a local > debug symbol set to null. > This second scenario never occurs so replace > a

Re: [PATCH 5/7] staging: rtl8723bs: put a new line after ';'

2021-04-14 Thread Greg KH
On Tue, Apr 13, 2021 at 04:56:33PM +0200, Fabio Aiuto wrote: > fix the following post commit hook checkpatch issue: > > ERROR: space required after that ';' (ctx:VxV) > 232: FILE: drivers/staging/rtl8723bs/core/rtw_odm.c:160: > +"AdapEn_RSSI", "IGI_LowerBound");netdev_dbg >

Re: [PATCH v2 00/16] Multigenerational LRU Framework

2021-04-14 Thread Huang, Ying
Yu Zhao writes: > On Wed, Apr 14, 2021 at 12:15 AM Huang, Ying wrote: >> >> Yu Zhao writes: >> >> > On Tue, Apr 13, 2021 at 8:30 PM Rik van Riel wrote: >> >> >> >> On Wed, 2021-04-14 at 09:14 +1000, Dave Chinner wrote: >> >> > On Tue, Apr 13, 2021 at 10:13:24AM -0600, Jens Axboe wrote: >> >> >

  1   2   3   4   5   6   7   8   9   10   >