Re: [PATCH 1/1] pci: pciehp: Handle MRL interrupts to enable slot for hotplug.

2020-11-18 Thread Lukas Wunner
Hi Ashok, my sincere apologies for the delay. On Fri, Sep 25, 2020 at 04:01:38PM -0700, Ashok Raj wrote: > When Mechanical Retention Lock (MRL) is present, Linux doesn't process > those change events. > > The following changes need to be enabled when MRL is present. > > 1. Subscribe to MRL

Re: [PATCH] arm64: mm: add support for memmap kernel parameters

2020-11-18 Thread Mike Rapoport
On Wed, Nov 18, 2020 at 11:55:33PM +, Song Bao Hua (Barry Song) wrote: > > From: Ard Biesheuvel [mailto:a...@kernel.org] > > > > On Wed, 18 Nov 2020 at 21:27, Song Bao Hua (Barry Song) > > wrote: > > > > > > Good question. Originally I wrote this patch to debug and verify the > > vmemmap > >

Re: [PATCH] net: cw1200: fix missing destroy_workqueue() on error in cw1200_init_common

2020-11-18 Thread Kalle Valo
Qinglang Miao writes: > Add the missing destroy_workqueue() before return from > cw1200_init_common in the error handling case. > > Fixes:a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN > chipsets") This should be: Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E

Re: [PATCH] reset: sti: reset-syscfg: fix struct description warnings

2020-11-18 Thread Patrice CHOTARD
Hi Alain On 8/31/20 10:38 PM, Alain Volmat wrote: > Fix formating of struct description to avoid warning highlighted > by W=1 compilation. > > Fixes: e5d76075d930 ("drivers: reset: STi SoC system configuration reset > controller support") > Signed-off-by: Alain Volmat > --- >

Re: [PATCH] phy: phy-bcm-ns-usb3: drop support for deprecated DT binding

2020-11-18 Thread Rafał Miłecki
On Thu, 19 Nov 2020 at 07:27, Vinod Koul wrote: > On 13-11-20, 12:34, Rafał Miłecki wrote: > > From: Rafał Miłecki > > > > Initially this PHY driver was implementing MDIO access on its own. It > > was caused by lack of proper hardware design understanding. > > > > It has been changed back in

[PATCH 0/2] Clean up and fix up cpu_cache_init()

2020-11-18 Thread Tiezhu Yang
Tiezhu Yang (2): MIPS: Remove cpu_has_6k_cache and cpu_has_8k_cache in cpu_cache_init() MIPS: Loongson64: Fix wrong scache size when execute lscpu arch/mips/include/asm/cpu-features.h | 2 -- arch/mips/mm/c-r4k.c | 10 -- arch/mips/mm/cache.c | 10

Re: [PATCH v7 2/5] dt-bindings: leds: Add LED_COLOR_ID_MOONLIGHT definitions

2020-11-18 Thread Gene Chen
Pavel Machek 於 2020年11月19日 週四 下午3:44寫道: > > Hi! > > > > > From: Gene Chen > > > > > > > > Add LED_COLOR_ID_MOONLIGHT definitions > > > > > > Why is moonlight a color? Camera flashes are usually white, no? > > > > > > At least it needs a comment... > > > > > > Best regards, > > >

Re: [PATCH v5] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests.

2020-11-18 Thread Christoph Hellwig
On Wed, Nov 18, 2020 at 08:12:43PM +, Ashish Kalra wrote: > From: Ashish Kalra > > For SEV, all DMA to and from guest has to use shared > (un-encrypted) pages. SEV uses SWIOTLB to make this > happen without requiring changes to device drivers. > However, depending on workload being run, the

[PATCH 2/2] MIPS: Loongson64: Fix wrong scache size when execute lscpu

2020-11-18 Thread Tiezhu Yang
As the user manual and code comment said, Loongson-3 has 4-scache banks, while Loongson-2K has only 2 banks, so we should multiply the number of scache banks, this multiply operation should be done by c->scache.sets instead of scache_size, otherwise we will get the wrong scache size when execute

[PATCH 1/2] MIPS: Remove cpu_has_6k_cache and cpu_has_8k_cache in cpu_cache_init()

2020-11-18 Thread Tiezhu Yang
Since commit 02cf2119684e ("Cleanup the mess in cpu_cache_init."), cpu_has_6k_cache and cpu_has_8k_cache have no user, r6k_cache_init() and r8k_cache_init() are not defined for over 15 years, just remove them. Signed-off-by: Tiezhu Yang --- arch/mips/include/asm/cpu-features.h | 2 --

Re: [RFC -V5] autonuma: Migrate on fault among multiple bound nodes

2020-11-18 Thread Mel Gorman
On Thu, Nov 19, 2020 at 02:17:21PM +0800, Huang, Ying wrote: > >> Various page placement optimization based on the NUMA balancing can be > >> done with these flags. As the first step, in this patch, if the > >> memory of the application is bound to multiple nodes (MPOL_BIND), and > >> in the hint

Re: [RFC PATCH 2/4] sched: make schedstats helpers not depend on cfs_rq

2020-11-18 Thread Mel Gorman
On Thu, Nov 19, 2020 at 11:52:28AM +0800, Yafang Shao wrote: > The 'cfs_rq' in these helpers is only used to get the rq_clock, so we > can pass the rq_clock directly. After that, these helpers can be used by > all sched class. > > Signed-off-by: Yafang Shao This introduces overhead in the

Re: [PATCH v7 2/5] dt-bindings: leds: Add LED_COLOR_ID_MOONLIGHT definitions

2020-11-18 Thread Pavel Machek
Hi! > > > From: Gene Chen > > > > > > Add LED_COLOR_ID_MOONLIGHT definitions > > > > Why is moonlight a color? Camera flashes are usually white, no? > > > > At least it needs a comment... > > > > Best regards, > > Pavel > > > >

Re: [PATCH] Input: adp5589-keys - use BIT()

2020-11-18 Thread Dmitry Torokhov
On Wed, Nov 18, 2020 at 11:34:28PM -0800, Joe Perches wrote: > On Wed, 2020-11-18 at 23:24 -0800, Dmitry Torokhov wrote: > > Let's use BIT() macro instead of explicitly shifting '1'. > [] > > diff --git a/drivers/input/keyboard/adp5589-keys.c > > b/drivers/input/keyboard/adp5589-keys.c > > > @@

[PATCH V3 0/2] cpufreq_cooling: Get effective CPU utilization from scheduler

2020-11-18 Thread Viresh Kumar
Hi, This patchset makes the cpufreq_cooling driver reuse the CPU utilization metric provided by the scheduler instead of depending on idle and busy times of a CPU, which aren't that accurate to measure the busyness of a CPU for the next cycle. More details can be seen in the commit log of patch

[PATCH V3 2/2] thermal: cpufreq_cooling: Reuse sched_cpu_util() for SMP platforms

2020-11-18 Thread Viresh Kumar
Several parts of the kernel are already using the effective CPU utilization (as seen by the scheduler) to get the current load on the CPU, do the same here instead of depending on the idle time of the CPU, which isn't that accurate comparatively. This is also the right thing to do as it makes the

[PATCH V3 1/2] sched/core: Rename and move schedutil_cpu_util() to core.c

2020-11-18 Thread Viresh Kumar
There is nothing schedutil specific in schedutil_cpu_util(), move it to core.c and rename it to sched_cpu_util(), so it can be used from other parts of the kernel as well. The cpufreq_cooling stuff will make use of this in a later commit. Signed-off-by: Viresh Kumar --- include/linux/sched.h

[PATCH] include/net/bluetooth/mgmt.h: fix typo in struct name

2020-11-18 Thread n01e0
Signed-off-by: n01e0 --- include/net/bluetooth/mgmt.h | 4 ++-- net/bluetooth/mgmt.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index 6b55155e05e9..d8367850e8cd 100644 ---

Re: [PATCH] Input: adp5589-keys - use BIT()

2020-11-18 Thread Joe Perches
On Wed, 2020-11-18 at 23:24 -0800, Dmitry Torokhov wrote: > Let's use BIT() macro instead of explicitly shifting '1'. [] > diff --git a/drivers/input/keyboard/adp5589-keys.c > b/drivers/input/keyboard/adp5589-keys.c > @@ -651,13 +652,13 @@ static int adp5589_setup(struct adp5589_kpad *kpad) >  

RE: [EXT] Re: [PATCH v3 4/4] soc: imx8m: change to use platform driver

2020-11-18 Thread Alice Guo
> -Original Message- > From: Krzysztof Kozlowski > Sent: 2020年11月18日 22:11 > To: Alice Guo > Cc: robh...@kernel.org; shawn...@kernel.org; s.ha...@pengutronix.de; > dl-linux-imx ; Peng Fan ; > devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; >

Re: xfs_reclaim_inodes_ag taking several seconds

2020-11-18 Thread Donald Buczek
On 8/12/20 8:49 AM, Donald Buczek wrote: On 8/4/20 12:11 AM, Dave Chinner wrote: On Sat, Aug 01, 2020 at 12:25:40PM +0200, Donald Buczek wrote: On 01.08.20 00:32, Dave Chinner wrote: On Fri, Jul 31, 2020 at 01:27:31PM +0200, Donald Buczek wrote: Dear Linux people, we have a backup server

[PATCH] via/via_irq: use __func__ to replace string function name

2020-11-18 Thread Bernard Zhao
This change also fix checkpatch.pl warning: WARNING: Prefer using '"%s...", __func__' to using 'via_driver_irq_postinstall', this function's name, in a string + DRM_DEBUG("via_driver_irq_postinstall\n"); Signed-off-by: Bernard Zhao --- drivers/gpu/drm/via/via_irq.c | 2 +- 1 file changed,

[PATCH v3 3/4] dt-bindings: clock: Introduce RPMHCC bindings for SDX55

2020-11-18 Thread Manivannan Sadhasivam
From: Vinod Koul Add compatible for SDX55 RPMHCC and DT include. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam Reviewed-by: Bjorn Andersson Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/qcom,rpmhcc.yaml | 1 + include/dt-bindings/clock/qcom,rpmh.h

[PATCH v3 4/4] clk: qcom: Add support for SDX55 RPMh clocks

2020-11-18 Thread Manivannan Sadhasivam
Add support for following clocks maintained by RPMh in SDX55 SoCs. * BI TCXO * RF_CLK1 * RF_CLK1_AO * RF_CLK2 * RF_CLK2_AO * QPIC (Qualcomm Technologies, Inc. Parallel Interface Controller) Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul Reviewed-by: Bjorn Andersson ---

[PATCH v3 1/4] dt-bindings: clock: Add SDX55 GCC clock bindings

2020-11-18 Thread Manivannan Sadhasivam
From: Vinod Koul Add device tree bindings for global clock controller on SDX55 SoCs. Signed-off-by: Vinod Koul Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring --- .../bindings/clock/qcom,gcc-sdx55.yaml| 73 include/dt-bindings/clock/qcom,gcc-sdx55.h|

[PATCH v3 2/4] clk: qcom: Add SDX55 GCC support

2020-11-18 Thread Manivannan Sadhasivam
From: Naveen Yadav Add Global Clock Controller (GCC) support for SDX55 SoCs from Qualcomm. Signed-off-by: Naveen Yadav [mani: converted to parent_data, commented critical clocks, cleanups] Signed-off-by: Manivannan Sadhasivam Reviewed-by: Vinod Koul --- drivers/clk/qcom/Kconfig |7 +

Re: [PATCH v1 0/4] PM: Add dev_wakeup_path() helper

2020-11-18 Thread Patrice CHOTARD
Hi Rafael On 11/18/20 2:08 PM, Rafael J. Wysocki wrote: > On Fri, Nov 6, 2020 at 8:34 AM wrote: >> From: Patrice Chotard >> >> Add dev_wakeup_path() helper to avoid to spread >> dev->power.wakeup_path test in drivers. > OK > >> Cc: amelie.delau...@st.com, >> erwan_le...@st.com, >>

[PATCH v3 0/4] Add GCC and RPMh clock support for SDX55

2020-11-18 Thread Manivannan Sadhasivam
Hello, This series adds Global Clock Controller (GCC) and RPMh clock support for SDX55 SoC from Qualcomm with relevant DT bindings. This series has been tested on SDX55 MTP board. The dts patches for this SoC/board will be posted later. Thanks, Mani Changes in v3: * Documented

[PATCH v2] PM: Add dev_wakeup_path() helper

2020-11-18 Thread patrice.chotard
From: Patrice Chotard Add dev_wakeup_path() helper to avoid to spread dev->power.wakeup_path test in drivers. Signed-off-by: Patrice Chotard Reviewed-by: Ulf Hansson --- Changes from v1: - Fold the 4 v1 patches into one - Add Ulf's Reviewed-by drivers/base/power/domain.c | 4 ++--

[PATCH] Input: adp5589-keys - use BIT()

2020-11-18 Thread Dmitry Torokhov
Let's use BIT() macro instead of explicitly shifting '1'. Signed-off-by: Dmitry Torokhov --- drivers/input/keyboard/adp5589-keys.c | 69 ++- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/drivers/input/keyboard/adp5589-keys.c

Re: Collecting both remote and "local" coverage with KCOV

2020-11-18 Thread Dmitry Vyukov
On Wed, Nov 18, 2020 at 3:21 AM Alexander Bulekov wrote: > > On 201116 1805, Andrey Konovalov wrote: > > On Mon, Nov 16, 2020 at 9:35 AM Dmitry Vyukov wrote: > > > > > > On Mon, Nov 16, 2020 at 3:39 AM Alexander Bulekov wrote: > > > > > > > > Hello, > > > > I'm trying to collect coverage over

[PATCH] Input: adp5589-keys - mark suspend and resume methods as __maybe_unused

2020-11-18 Thread Dmitry Torokhov
This improves compile coverage of the code; unused code will be dropped by the linker. Signed-off-by: Dmitry Torokhov --- drivers/input/keyboard/adp5589-keys.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/input/keyboard/adp5589-keys.c

[PATCH v3] arm64: tegra: jetson-tx1: Fix USB_VBUS_EN0 regulator

2020-11-18 Thread JC Kuo
USB Host mode is broken at OTG port of Jetson-TX1 platform because USB_VBUS_EN0 regulator (regulator@11) is being overwritten by vdd-cam-1v2 regulator. This commit rearrange USB_VBUS_EN0 to be regulator@14. Fixes: 257c8047be44 ("arm64: tegra: jetson-tx1: Add camera supplies") Cc:

Re: [PATCH v2 0/2] hwmon: (max127) Add Maxim MAX127 hardware monitoring

2020-11-18 Thread Tao Ren
On Wed, Nov 18, 2020 at 05:26:53PM -0800, Guenter Roeck wrote: > On Wed, Nov 18, 2020 at 05:01:19PM -0800, Guenter Roeck wrote: > > On Wed, Nov 18, 2020 at 03:42:53PM -0800, Tao Ren wrote: > > > On Thu, Nov 19, 2020 at 12:27:19AM +0100, Andrew Lunn wrote: > > > > On Wed, Nov 18, 2020 at 03:09:27PM

Re: [RFC PATCH v3] tools/x86: add kcpuid tool to show raw CPU features

2020-11-18 Thread Feng Tang
Hi Borislav, Thanks for reviewing and trying. On Wed, Nov 18, 2020 at 08:15:29PM +0100, Borislav Petkov wrote: > On Thu, Oct 22, 2020 at 01:21:23PM +0800, Feng Tang wrote: > > diff --git a/tools/arch/x86/kcpuid/kcpuid.c b/tools/arch/x86/kcpuid/kcpuid.c > > new file mode 100644 > > index

Re: [PATCH] arm64: vmlinux.lds.S: Drop redundant *.init.rodata.*

2020-11-18 Thread Ard Biesheuvel
On Thu, 19 Nov 2020 at 02:45, Youling Tang wrote: > > We currently try to emit *.init.rodata.* twice, once in INIT_DATA, and once > in the line immediately following it. As the two section definitions are > identical, the latter is redundant and can be dropped. > > This patch drops the redundant

Re: [PATCH 2/2] hwspinlock: add sunxi hardware spinlock support

2020-11-18 Thread Maxime Ripard
On Wed, Nov 18, 2020 at 08:36:24PM +0100, Wilken Gottwalt wrote: > On Wed, 18 Nov 2020 16:37:33 +0100 > Maxime Ripard wrote: > > Hi Wilken, > > > > On Wed, Nov 18, 2020 at 11:02:40AM +0100, Wilken Gottwalt wrote: > > > Adds the sunxi_hwspinlock driver and updates makefiles/maintainers. > > > >

[tip:x86/sgx] BUILD SUCCESS 0eaa8d153a1d573e53b8283c90db44057d1376f6

2020-11-18 Thread kernel test robot
randconfig-a005-20201118 x86_64 randconfig-a003-20201118 x86_64 randconfig-a004-20201118 x86_64 randconfig-a002-20201118 x86_64 randconfig-a006-20201118 x86_64 randconfig-a001-20201118 i386 randconfig-a006-20201119 i386

[tip:x86/cleanups] BUILD SUCCESS 31d8546033053b98de00846ede8088bdbe38651d

2020-11-18 Thread kernel test robot
-20201118 x86_64 randconfig-a003-20201118 x86_64 randconfig-a004-20201118 x86_64 randconfig-a002-20201118 x86_64 randconfig-a006-20201118 x86_64 randconfig-a001-20201118 i386 randconfig-a006-20201119 i386

Re: [PATCH v1] scsi: ufs: Fix race between shutdown and runtime resume flow

2020-11-18 Thread Can Guo
On 2020-11-19 14:29, Stanley Chu wrote: If UFS host device is in runtime-suspended state while UFS shutdown callback is invoked, UFS device shall be resumed for register accesses. Currently only UFS local runtime resume function will be invoked to wake up the host. This is not enough because if

[PATCH v3 4/4] mtd: parsers: afs: Fix freeing the part name memory in failure

2020-11-18 Thread Manivannan Sadhasivam
In the case of failure while parsing the partitions, the iterator should be pre decremented by one before starting to free the memory allocated by kstrdup(). Because in the failure case, kstrdup() will not succeed and thus no memory will be allocated for the current iteration. Cc: Linus Walleij

[PATCH v3 3/4] mtd: rawnand: qcom: Add support for Qcom SMEM parser

2020-11-18 Thread Manivannan Sadhasivam
Add support for using Qualcomm SMEM based flash partition parser in Qualcomm NAND controller. Signed-off-by: Manivannan Sadhasivam --- drivers/mtd/nand/raw/qcom_nandc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/qcom_nandc.c

[PATCH v3 1/4] dt-bindings: mtd: partitions: Add binding for Qcom SMEM parser

2020-11-18 Thread Manivannan Sadhasivam
Add YAML binding for Qualcomm Shared Memory (SMEM) Flash partition parser. Signed-off-by: Manivannan Sadhasivam --- .../mtd/partitions/qcom,smem-part.yaml| 33 +++ 1 file changed, 33 insertions(+) create mode 100644

[PATCH v3 2/4] mtd: parsers: Add Qcom SMEM parser

2020-11-18 Thread Manivannan Sadhasivam
NAND based Qualcomm platforms have the partition table populated in the Shared Memory (SMEM). Hence, add a parser for parsing the partitions from it. Signed-off-by: Manivannan Sadhasivam --- drivers/mtd/parsers/Kconfig| 8 ++ drivers/mtd/parsers/Makefile | 1 +

[PATCH v3 0/4] Add support for Qcom SMEM based NAND parser

2020-11-18 Thread Manivannan Sadhasivam
Hello, This series adds support for parsing the partitions defined in Shared Memory (SMEM) of the Qualcomm platforms supporting NAND interface. Current parser only supports V3 and V4 of the partition tables. This series has been tested on SDX55 MTP board which has an onboard NAND device.

Re: [PATCH v2 5/5] Input: adp5589: use devm_add_action_or_reset() for register clear

2020-11-18 Thread Dmitry Torokhov
On Thu, Nov 12, 2020 at 09:43:08AM +0200, Alexandru Ardelean wrote: > The driver clears the general configuration register during the remove() > hook. This should also be done in case the driver exits on error. > > This change move the clear of that register to the > devm_add_action_or_reset()

Re: [PATCH v2 4/5] Input: adp5589: use devm_gpiochip_add_data() for gpios

2020-11-18 Thread Dmitry Torokhov
On Thu, Nov 12, 2020 at 09:43:07AM +0200, Alexandru Ardelean wrote: > This change makes use of the devm_gpiochip_add_data() function. With this > the gpiochip_remove() function can be removed, and the > adp5589_gpio_remove() function as well. > > The kpad->export_gpio variable is also redundant

Re: [PATCH v2 2/5] Input: adp5589: use device-managed function in adp5589_keypad_add()

2020-11-18 Thread Dmitry Torokhov
Hi Alexandru, On Thu, Nov 12, 2020 at 09:43:05AM +0200, Alexandru Ardelean wrote: > This change makes use of the devm_input_allocate_device() function, which > gets rid of the input_free_device() and input_unregister_device() calls. > > When a device is allocated via input_allocate_device(), the

Re: [PATCH v2 3/5] Input: adp5589: remove setup/teardown hooks for gpios

2020-11-18 Thread Dmitry Torokhov
On Thu, Nov 12, 2020 at 09:43:06AM +0200, Alexandru Ardelean wrote: > This is currently just dead code. It's from around a time when > platform-data was used, and a board could hook it's own special callback > for setup/teardown, and a private object (via 'context'). > > This change removes it,

WARNING: net/mptcp/protocol.c:719 mptcp_reset_timer+0x40/0x50

2020-11-18 Thread Naresh Kamboju
While running kselftest net/mptcp: mptcp_join.sh on x86_64 device running linux next 20201118 tag the following warning was noticed. # selftests: net/mptcp: mptcp_join.sh [ 1276.053194] [ cut here ] [ 1276.057857] WARNING: CPU: 2 PID: 27452 at /usr/src/kernel/net/mptcp

Re: [drm/i915/gem] 59dd13ad31: phoronix-test-suite.jxrendermark.RadialGradientPaint.1024x1024.operations_per_second -54.0% regression

2020-11-18 Thread Oliver Sang
On Fri, Nov 13, 2020 at 04:27:13PM +0200, Joonas Lahtinen wrote: > Hi, > > Could you add intel-...@lists.freedesktop.org into reports going > forward. > > Quoting kernel test robot (2020-11-11 17:58:11) > > > > Greeting, > > > > FYI, we noticed a -54.0% regression of > >

Re: [PATCH v2 1/5] Input: adp5589: use devm_kzalloc() to allocate the kpad object

2020-11-18 Thread Dmitry Torokhov
On Thu, Nov 12, 2020 at 09:43:04AM +0200, Alexandru Ardelean wrote: > This removes the need to manually free the kpad object and cleans up some > exit/error paths. > The error path cleanup should reduce the risk of any memory leaks with this > object. > > Signed-off-by: Alexandru Ardelean

Re: [PATCH] leds: lp50xx: add missing fwnode_handle_put in error handling case

2020-11-18 Thread Qinglang Miao
在 2020/11/11 21:27, Dan Murphy 写道: Hello On 11/10/20 9:21 PM, Qinglang Miao wrote: Fix to goto child_out to do fwnode_handle_put(child) from the error handling case rather than simply return, as done elsewhere in this function. Fixes: 242b81170fb8 ("leds: lp50xx: Add the LP50XX family of

[PATCH] bpf: Check the return value of dev_get_by_index_rcu()

2020-11-18 Thread xiakaixu1987
From: Kaixu Xia The return value of dev_get_by_index_rcu() can be NULL, so here it is need to check the return value and return error code if it is NULL. Signed-off-by: Kaixu Xia --- net/core/filter.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/core/filter.c b/net/core/filter.c

[PATCH] stm class: Fix a double vfree in stm_register_device()

2020-11-18 Thread Qinglang Miao
While testing stm, stm_register_device() caused a vfree issue: - Trying to vfree() nonexistent vm area (ad30ebb6) Call Trace: __vfree+0x41/0xe0 vfree+0x5f/0xa0 stm_register_device+0x4b1/0x660 [stm_core] dummy_stm_init+0x248/0x360 [dummy_stm] do_one_initcall+0x149/0x7e0

[PATCH] ipmi: msghandler: Suppress suspicious RCU usage warning

2020-11-18 Thread Qinglang Miao
while running ipmi, ipmi_smi_watcher_register() caused a suspicious RCU usage warning. - = WARNING: suspicious RCU usage 5.10.0-rc3+ #1 Not tainted - drivers/char/ipmi/ipmi_msghandler.c:750 RCU-list traversed in non-reader section!!

[PATCH v2] leds: lp50xx: add missing fwnode_handle_put in error handling case

2020-11-18 Thread Qinglang Miao
Fix to set ret and goto child_out for fwnode_handle_put(child) in the error handling case rather than simply return, as done elsewhere in this function. Fixes: 242b81170fb8 ("leds: lp50xx: Add the LP50XX family of the RGB LED driver") Reported-by: Hulk Robot Suggested-by: Pavel Machek

[PATCH] net: cw1200: fix missing destroy_workqueue() on error in cw1200_init_common

2020-11-18 Thread Qinglang Miao
Add the missing destroy_workqueue() before return from cw1200_init_common in the error handling case. Fixes:a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao --- drivers/net/wireless/st/cw1200/main.c | 2 ++ 1

[PATCH] samples: vfio-mdev: fix return value of error branch in mdpy_fb_probe()

2020-11-18 Thread Qinglang Miao
pci_release_regions() should be called in these error branches, so I set ret and use goto err_release_regions intead of simply return -EINVAL. Fixes: cacade1946a4 ("sample: vfio mdev display - guest driver") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao --- samples/vfio-mdev/mdpy-fb.c |

Re: [PATCH net-next v3 0/6] net/x25: netdev event handling

2020-11-18 Thread Martin Schiller
On 2020-11-18 15:47, Xie He wrote: On Wed, Nov 18, 2020 at 5:59 AM Martin Schiller wrote: --- Changes to v2: o restructure complete patch-set o keep netdev event handling in layer3 (X.25) But... Won't it be better to handle L2 connections in L2 code? For example, if we are running X.25

Re: [PATCH 1/4] HID: hid-sensor-custom: Add custom sensor iio support

2020-11-18 Thread kernel test robot
Hi Ye, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on iio/togreg] [also build test WARNING on linus/master v5.10-rc4 next-20201118] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

Re: [PATCH v2] ASoC: fsl_sai: Correct the clock source for mclk0

2020-11-18 Thread Nicolin Chen
On Thu, Nov 19, 2020 at 02:40:38PM +0800, Shengjiu Wang wrote: > On VF610, mclk0 = bus_clk; > On i.MX6SX/6UL/6ULL/7D, mclk0 = mclk1; > On i.MX7ULP, mclk0 = bus_clk; > On i.MX8QM/8QXP, mclk0 = bus_clk; > On i.MX8MQ/8MN/8MM/8MP, mclk0 = bus_clk; > > So add variable mclk0_is_mclk1 in

[PATCH v2] ASoC: fsl_sai: Correct the clock source for mclk0

2020-11-18 Thread Shengjiu Wang
On VF610, mclk0 = bus_clk; On i.MX6SX/6UL/6ULL/7D, mclk0 = mclk1; On i.MX7ULP, mclk0 = bus_clk; On i.MX8QM/8QXP, mclk0 = bus_clk; On i.MX8MQ/8MN/8MM/8MP, mclk0 = bus_clk; So add variable mclk0_is_mclk1 in fsl_sai_soc_data to distinguish these platforms. Signed-off-by: Shengjiu Wang --- changes

[PATCH 0/2] introduce sunxi hwspinlock

2020-11-18 Thread fuyao
From: fuyao this series add hwspinlock of sunxi. it provides hardware assistance for synchronization between the multiple processors in the system. (Or1k, Cortex-A7, Cortex-A53, Xtensa) fuyao (2): dt-bindings: hwlock: add sunxi hwlock hwspinlock: add SUNXI implementation

[PATCH 2/2] hwspinlock: add SUNXI implementation

2020-11-18 Thread fuyao
From: fuyao Add hwspinlock support for the SUNXI Hardware Spinlock device. The Hardware Spinlock device on SUNXI provides hardware assistance for synchronization between the multiple processors in the system (Cortex-A7, or1k, Xtensa DSP, Cortex-A53) Signed-off-by: fuyao --- MAINTAINERS

[PATCH 1/2] dt-bindings: hwlock: add sunxi hwlock

2020-11-18 Thread fuyao
From: fuyao SUNXI hwspinlock binding DT schema format Signed-off-by: fuyao --- .../bindings/hwlock/sunxi,hwspinlock.yaml | 46 +++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/sunxi,hwspinlock.yaml diff --git

Re: [PATCH v3 3/3] [RFC] CPUFreq: Add support for cpu-perf-dependencies

2020-11-18 Thread Viresh Kumar
On 02-11-20, 12:01, Nicola Mazzucato wrote: > Second proposal: > > Another option could be for each driver to store internally the performance > dependencies and let the driver directly provide the correct cpumask for > any consumer. >From the discussion that happened in this thread, looks like

Re: [PATCH v3 3/3] [RFC] CPUFreq: Add support for cpu-perf-dependencies

2020-11-18 Thread Viresh Kumar
On 18-11-20, 13:00, Rafael J. Wysocki wrote: > On Wed, Nov 18, 2020 at 5:42 AM Viresh Kumar wrote: > > > > On 17-11-20, 14:06, Rafael J. Wysocki wrote: > > > Is this really a cpufreq thing, though, or is it arch stuff? I think > > > the latter, because it is not necessary for anything in

Re: [PATCH 4/4] dma-heap: Devicetree binding for chunk heap

2020-11-18 Thread Hyesoo Yu
On Wed, Nov 18, 2020 at 07:19:07PM -0800, John Stultz wrote: > On Wed, Nov 18, 2020 at 5:22 PM Hyesoo Yu wrote: > > > > On Tue, Nov 17, 2020 at 07:00:54PM -0800, John Stultz wrote: > > > So I suspect Rob will push back on this as he has for other dt > > > bindings related to ion/dmabuf heaps (I

Re: [PATCH] tpm_tis: Disable interrupts on ThinkPad T490s

2020-11-18 Thread Jerry Snitselaar
Matthew Garrett @ 2020-10-15 15:39 MST: > On Thu, Oct 15, 2020 at 2:44 PM Jerry Snitselaar wrote: >> >> There is a misconfiguration in the bios of the gpio pin used for the >> interrupt in the T490s. When interrupts are enabled in the tpm_tis >> driver code this results in an interrupt storm.

[PATCH v3 1/4] usb: typec: Use Thunderbolt 3 cable discover mode VDO in Enter_USB message

2020-11-18 Thread Utkarsh Patel
When Thunderbolt 3 cable is being used to create USB4 connection, use Thunderbolt 3 discover mode VDO to fill details such as active cable plug link training and cable rounded support. With USB4 cables, these VDO members need not be filled. Suggested-by: Heikki Krogerus Signed-off-by: Utkarsh

[PATCH v3 3/4] usb: typec: intel_pmc_mux: Configure active cable properties for USB4

2020-11-18 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 cable rounded support and active cable plug link training. Suggested-by: Heikki Krogerus Signed-off-by: Utkarsh Patel -- Changes in v3: - Moved TBT_CABLE_ROUNDED_SUPPORT assignment

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

2020-11-18 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 Reviewed-by: Heikki Krogerus --

[PATCH v3 2/4] platform/chrome: cros_ec_typec: Use Thunderbolt 3 cable discover mode VDO in USB4 mode

2020-11-18 Thread Utkarsh Patel
Configure Thunderbolt 3 cable generation value by filling Thunderbolt 3 cable discover mode VDO to support rounded Thunderbolt 3 cables. While we are here use Thunderbolt 3 cable discover mode VDO to fill active cable plug link training value. Suggested-by: Heikki Krogerus Signed-off-by: Utkarsh

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

2020-11-18 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. Changes in v3: - First four patches of this series have been queued by Greg to usb-testing branch.

Re: [PATCH] dt-bindings: phy: bcm-ns-usb3-phy: convert to yaml

2020-11-18 Thread Vinod Koul
On 16-11-20, 08:46, Rafał Miłecki wrote: > From: Rafał Miłecki > > 1. Change syntax from txt to yaml > 2. Drop "Driver for" from the title > 3. Drop "reg = <0x0>;" from example (noticed by dt_binding_check) > 4. Specify license You missed Ccing Rob > > Signed-off-by: Rafał Miłecki > --- > I

[PATCH v1] scsi: ufs: Fix race between shutdown and runtime resume flow

2020-11-18 Thread Stanley Chu
If UFS host device is in runtime-suspended state while UFS shutdown callback is invoked, UFS device shall be resumed for register accesses. Currently only UFS local runtime resume function will be invoked to wake up the host. This is not enough because if someone triggers runtime resume from block

Re: [PATCH] phy: phy-bcm-ns-usb3: drop support for deprecated DT binding

2020-11-18 Thread Vinod Koul
On 13-11-20, 12:34, Rafał Miłecki wrote: > From: Rafał Miłecki > > Initially this PHY driver was implementing MDIO access on its own. It > was caused by lack of proper hardware design understanding. > > It has been changed back in 2017. DT bindings were changed and driver > was updated to use

Re: [RFC PATCH] perf session: Fixup timestamp for ordered events

2020-11-18 Thread Leo Yan
Hi Adrian, On Wed, Nov 18, 2020 at 05:57:09PM +0200, Adrian Hunter wrote: [...] > >>> The follow diagram depicts the flow for how the AUX event is arriving > >>> ahead than MMAP2 event: > >>> > >>>T1: T3: T4: > >>> perf process Open PMU devicePerf is

[PATCH v2] workqueue: Kick a worker based on the actual activation of delayed works

2020-11-18 Thread Yunfeng Ye
In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue pwq_adjust_max_active wake_up_worker The comment in

kernel BUG at mm/filemap.c:LINE! (2)

2020-11-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e28c0d7c Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=145b685a50 kernel config: https://syzkaller.appspot.com/x/.config?x=86ae89f992df998f dashboard

[PATCH v2 1/6] iommu: Move iotlb_sync_map out from __iommu_map

2020-11-18 Thread Yong Wu
In the end of __iommu_map, It alway call iotlb_sync_map. This patch moves iotlb_sync_map out from __iommu_map since it is unnecessary to call this for each sg segment especially iotlb_sync_map is flush tlb all currently. Signed-off-by: Yong Wu --- drivers/iommu/iommu.c | 24

Re: [RESEND PATCH 09/19] phy: allwinner: Convert to devm_platform_ioremap_* API

2020-11-18 Thread Vinod Koul
On 10-11-20, 14:35, Frank Lee wrote: > From: Yangtao Li > > Use the devm_platform_ioremap_resource_byname() and > devm_platform_ioremap_resource helper to simplify the code. This fails to apply for me, pls rebase -- ~Vinod

Re: [RESEND PATCH 08/19] phy: sun4i-usb: remove enable_pmu_unk1 from sun50i_h6_cfg

2020-11-18 Thread Vinod Koul
On 10-11-20, 14:32, Frank Lee wrote: > From: Yangtao Li > > For the current code, enable_pmu_unk1 only works in non-a83t and non-h6 > types. So let's delete it from the sun50i_h6_cfg. Applied, thanks -- ~Vinod

[PATCH v2 6/6] iommu/mediatek: Convert tlb_flush_walk to gather_add_page

2020-11-18 Thread Yong Wu
MediaTek TLB flush don't care about granule. when unmap, it could gather whole the iova range then do tlb flush once. In current v7s, If unmap the lvl2 pagetable, the steps are: step1: set this current pdg to 0. step2: tlb flush for this lvl2 block iova(1M). step3: free the lvl2 pagetable. This

[PATCH v2 5/6] iommu/mediatek: Enable granule_ignore for unmap

2020-11-18 Thread Yong Wu
MediaTek IOMMU HW don't care about granule when it flush tlb. In order to flush tlb once when unmap, Enable this flag to gather all the iova chunk of unmap. Signed-off-by: Yong Wu --- drivers/iommu/mtk_iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/mtk_iommu.c

[PATCH v2 2/6] iommu: Add iova and size as parameters in iommu_iotlb_map

2020-11-18 Thread Yong Wu
iotlb_sync_map allow IOMMU drivers tlb sync after completing the whole mapping. This patch adds iova and size as the parameters in it. then the IOMMU driver could flush tlb with the whole range once after iova mapping to improve performance. Signed-off-by: Yong Wu --- drivers/iommu/iommu.c

[PATCH v2 4/6] iommu: Add granule_ignore when tlb gather

2020-11-18 Thread Yong Wu
Add a granule_ignore option when tlb gather for some HW which don't care about granule when it flush tlb. Signed-off-by: Yong Wu --- include/linux/iommu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index

[PATCH v2 3/6] iommu/mediatek: Add iotlb_sync_map to sync whole the iova range

2020-11-18 Thread Yong Wu
Remove IO_PGTABLE_QUIRK_TLBI_ON_MAP to avoid tlb sync for each a small chunk memory, Use the new iotlb_sync_map to tlb_sync once for whole the iova range of iommu_map. Signed-off-by: Yong Wu --- After reading msm_iommu.c, It looks IO_PGTABLE_QUIRK_TLBI_ON_MAP can be removed. ---

[PATCH v2 0/6] MediaTek IOMMU improve tlb flush performance in map/unmap

2020-11-18 Thread Yong Wu
This patchset is to improve tlb flushing performance in iommu_map/unmap for MediaTek IOMMU. For iommu_map, currently MediaTek IOMMU use IO_PGTABLE_QUIRK_TLBI_ON_MAP to do tlb_flush for each a memory chunk. this is so unnecessary. we could improve it by tlb flushing one time at the end of

Re: [RFC -V5] autonuma: Migrate on fault among multiple bound nodes

2020-11-18 Thread Huang, Ying
Mel Gorman writes: > On Wed, Nov 18, 2020 at 01:19:52PM +0800, Huang Ying wrote: >> Now, AutoNUMA can only optimize the page placement among the NUMA > > Note that the feature is referred to as NUMA_BALANCING in the kernel > configs as AUTONUMA as it was first presented was not merged. The

Re: [External] Re: [PATCH v4 05/21] mm/hugetlb: Introduce pgtable allocation/freeing helpers

2020-11-18 Thread Muchun Song
On Tue, Nov 17, 2020 at 11:06 PM Oscar Salvador wrote: > > On Fri, Nov 13, 2020 at 06:59:36PM +0800, Muchun Song wrote: > > +#define page_huge_pte(page) ((page)->pmd_huge_pte) > > Seems you do not need this one anymore. > > > +void vmemmap_pgtable_free(struct page *page) > > +{ > > +

Re: [PATCH RFC 02/12] vdpa: split vdpasim to core and net modules

2020-11-18 Thread Jason Wang
On 2020/11/18 下午9:14, Stefano Garzarella wrote: Hi Jason, I just discovered that I missed the other questions in this email, sorry for that! No problem :) On Mon, Nov 16, 2020 at 12:00:11PM +0800, Jason Wang wrote: On 2020/11/13 下午9:47, Stefano Garzarella wrote: From: Max Gurtovoy

Re: [PATCH v2] arm64: tegra: jetson-tx1: Fix USB_VBUS_EN0 regulator

2020-11-18 Thread Greg KH
On Thu, Nov 19, 2020 at 11:07:29AM +0800, JC Kuo wrote: > USB_VBUS_EN0 regulator (regulator@11) is being overwritten by vdd-cam-1v2 > regulator. This commit rearrange USB_VBUS_EN0 to be regulator@14. > > Fixes: 257c8047be44 ("arm64: tegra: jetson-tx1: Add camera supplies") > Signed-off-by: JC Kuo

Re: [PATCH 1/1] kernel/crash_core.c - Add crashkernel=auto for x86 and ARM

2020-11-18 Thread Kairui Song
On Thu, Nov 19, 2020 at 7:29 AM Saeed Mirzamohammadi wrote: > > This adds crashkernel=auto feature to configure reserved memory for > vmcore creation to both x86 and ARM platforms based on the total memory > size. Thanks for the patch! This is very helpful for distribution makers, this allows

[PATCH v4 0/3] Add support for Encryption and Casefolding in F2FS

2020-11-18 Thread Daniel Rosenberg
These patches are on top of the torvalds tree. F2FS currently supports casefolding and encryption, but not at the same time. These patches aim to rectify that. In a later follow up, this will be added for Ext4 as well. The f2fs-tools changes have already been applied. Since both fscrypt and

[PATCH v4 2/3] fscrypt: Have filesystems handle their d_ops

2020-11-18 Thread Daniel Rosenberg
This shifts the responsibility of setting up dentry operations from fscrypt to the individual filesystems, allowing them to have their own operations while still setting fscrypt's d_revalidate as appropriate. Most filesystems can just use generic_set_encrypted_ci_d_ops, unless they have their own

[PATCH v4 3/3] f2fs: Handle casefolding with Encryption

2020-11-18 Thread Daniel Rosenberg
Expand f2fs's casefolding support to include encrypted directories. To index casefolded+encrypted directories, we use the SipHash of the casefolded name, keyed by a key derived from the directory's fscrypt master key. This ensures that the dirhash doesn't leak information about the plaintext

[PATCH v4 1/3] libfs: Add generic function for setting dentry_ops

2020-11-18 Thread Daniel Rosenberg
This adds a function to set dentry operations at lookup time that will work for both encrypted filenames and casefolded filenames. A filesystem that supports both features simultaneously can use this function during lookup preparations to set up its dentry operations once fscrypt no longer does

linux-next: Tree for Nov 19

2020-11-18 Thread Stephen Rothwell
Hi all, Changes since 20201118: The phy-next tree lost its a build failure. The dmaengine tree gained a conflict against the dmaengine-fixes tree. The gpio tree lost its build failure. The mhi tree lost its build failure. Non-merge commits (relative to Linus' tree): 6286 6273 files changed

  1   2   3   4   5   6   7   8   9   10   >