Re: [PATCH v1 00/24] Opt-in always-on nVHE hypervisor

2020-11-10 Thread Christoph Hellwig
On Mon, Nov 09, 2020 at 11:32:09AM +, David Brazdil wrote: > As we progress towards being able to keep guest state private to the > host running nVHE hypervisor, this series allows the hypervisor to > install itself on newly booted CPUs before the host is allowed to run > on them. Why? I thou

[PATCH v8 2/6] Bluetooth: Interleave with allowlist scan

2020-11-10 Thread Howard Chung
This patch implements the interleaving between allowlist scan and no-filter scan. It'll be used to save power when at least one monitor is registered and at least one pending connection or one device to be scanned for. The durations of the allowlist scan and the no-filter scan are controlled by MG

[PATCH v8 6/6] Bluetooth: Add toggle to switch off interleave scan

2020-11-10 Thread Howard Chung
This patch add a configurable parameter to switch off the interleave scan feature. Reviewed-by: Alain Michaud Signed-off-by: Howard Chung --- (no changes since v6) Changes in v6: - Set EnableAdvMonInterleaveScan to 1 byte long Changes in v4: - Set EnableAdvMonInterleaveScan default to Disable

[PATCH v8 1/6] Bluetooth: Replace BT_DBG with bt_dev_dbg in HCI request

2020-11-10 Thread Howard Chung
This replaces the BT_DBG function to bt_dev_dbg as it is cleaner to show the controller index in the debug message. Signed-off-by: Howard Chung --- Changes in v8: - Simplified logic in __hci_update_interleaved_scan - Remove hdev->name when calling bt_dev_dbg - Remove 'default' in hci_req_add_le_

[PATCH v8 5/6] Bluetooth: Refactor read default sys config for various types

2020-11-10 Thread Howard Chung
Refactor read default system configuration function so that it's capable of returning different types than u16 Signed-off-by: Howard Chung --- Changes in v8: - Update the commit title and message net/bluetooth/mgmt_config.c | 140 +--- 1 file changed, 84 inserti

[PATCH v8 4/6] Bluetooth: Handle active scan case

2020-11-10 Thread Howard Chung
This patch adds code to handle the active scan during interleave scan. The interleave scan will be canceled when users start active scan, and it will be restarted after active scan stopped. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik --- (no changes since

[PATCH v8 3/6] Bluetooth: Handle system suspend resume case

2020-11-10 Thread Howard Chung
This patch adds code to handle the system suspension during interleave scan. The interleave scan will be canceled when the system is going to sleep, and will be restarted after waking up. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek Pa

Re: [PATCH v7 07/22] perf arm-spe: Consolidate arm_spe_pkt_desc()'s return value

2020-11-10 Thread Leo Yan
On Mon, Nov 09, 2020 at 04:52:35PM +, André Przywara wrote: > On 06/11/2020 01:41, Leo Yan wrote: > > arm_spe_pkt_desc() returns the length of consumed the buffer for > > the success case; otherwise, it delivers the return value from > > arm_spe_pkt_snprintf(), and returns the last return value

Re: [PATCH v36 00/13] /dev/random - a new approach

2020-11-10 Thread Stephan Mueller
Am Montag, 19. Oktober 2020, 21:28:50 CET schrieb Stephan Müller: Hi, > > * Performance > > - Faster by up to 75% in the critical code path of the interrupt handler >depending on data collection size configurable at kernel compile time - >the default is about equal in performance with e

[PATCH 2/2] phy: stm32: defer probe for reset controller

2020-11-10 Thread Amelie Delaunay
Change stm32-usbphyc driver to defer its probe when the expected reset control has its probe operation deferred. Signed-off-by: Etienne Carriere Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/phy/st/phy-stm32

[PATCH 1/2] phy: stm32: don't print an error on probe deferral

2020-11-10 Thread Amelie Delaunay
Change stm32-usbphyc driver to not print an error message when the device probe operation is deferred. Signed-off-by: Etienne Carriere Signed-off-by: Amelie Delaunay --- drivers/phy/st/phy-stm32-usbphyc.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/phy/st/

[PATCH v2 2/3] dt-bindings: arm: stm32: add extra SiP compatible for lxa,stm32mp157c-mc1

2020-11-10 Thread Ahmad Fatoum
The Linux Automation MC-1 is built around an OSD32MP15x SiP with CPU, RAM, PMIC, Oscillator and EEPROM. Adjust the binding, so the SiP compatible is contained as well. This allows boot firmware to match against it to apply fixups if necessary. Signed-off-by: Ahmad Fatoum --- v1 -> v2: - split up

Re: [PATCH] phy: phylink: Fix CuSFP issue in phylink

2020-11-10 Thread Russell King - ARM Linux admin
On Tue, Nov 10, 2020 at 11:06:42AM +0100, Bjarni Jonasson wrote: > There is an issue with the current phylink driver and CuSFPs which > results in a callback to the phylink validate function without any > advertisement capabilities. The workaround (in this changeset) > is to assign capabilities if

[PATCH v2 1/3] dt-bindings: vendor-prefixes: document Octavo Systems oct prefix

2020-11-10 Thread Ahmad Fatoum
Octavo Systems is an American company specializing in design and manufacturing of System-in-Package devices. The prefix is already in use for the Octavo Systems OSD3358-SM-RED device tree, but was so far undocumented. Fix this. Cc: Neeraj Dantu Signed-off-by: Ahmad Fatoum --- v1 -> v2: - new

[PATCH v2 3/3] ARM: dts: stm32: lxa-mc1: add OSD32MP15x to list of compatibles

2020-11-10 Thread Ahmad Fatoum
Earlier commit modified the binding, so the SiP is to be specified as well. Adjust the device tree accordingly. Signed-off-by: Ahmad Fatoum --- v1 -> v2: - split up binding and device tree change --- arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: [PATCH v1] dt-bindings: arm: stm32: lxa,stm32mp157c-mc1: add extra SiP compatible

2020-11-10 Thread Ahmad Fatoum
Hello Rob, On 11/9/20 5:37 PM, Rob Herring wrote: > On Wed, Nov 04, 2020 at 12:39:31PM +0100, Ahmad Fatoum wrote: >> I know that bindings and device tree patches should be separate. Does >> this apply here as well? Should I split the dts change into a follow-up >> commit? > > Yes. > >> Is it ok

Re: [PATCH v4 06/17] PCI: add SIOV and IMS capability detection

2020-11-10 Thread Thomas Gleixner
Ashok, On Mon, Nov 09 2020 at 21:14, Ashok Raj wrote: > On Mon, Nov 09, 2020 at 11:42:29PM +0100, Thomas Gleixner wrote: >> On Mon, Nov 09 2020 at 13:30, Jason Gunthorpe wrote: > Approach to IMS is more of a phased approach. > > #1 Allow physical device to scale beyond limits of PCIe MSIx >Fo

Re: [PATCH 4.9 000/117] 4.9.242-rc1 review

2020-11-10 Thread Naresh Kamboju
On Mon, 9 Nov 2020 at 18:30, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.242 release. > There are 117 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

Re: [PATCH v2 1/2] dt-bindings: arm: stm32: add simple-mfd compatible for tamp node

2020-11-10 Thread Ahmad Fatoum
Hello Alex, On 10/27/20 1:15 PM, Rob Herring wrote: > On Mon, Oct 26, 2020 at 4:30 PM Ahmad Fatoum wrote: >> >> Hello Rob, >> >> On 10/26/20 3:36 PM, Rob Herring wrote: >>> On Wed, Oct 21, 2020 at 12:28:55PM +0200, Ahmad Fatoum wrote: The stm32mp1 TAMP (Tamper and backup registers) does tamp

Re: [PATCH 2/3] docs: media: Document CLL and Mastering display

2020-11-10 Thread Stanimir Varbanov
On 11/10/20 11:50 AM, Hans Verkuil wrote: > On 09/11/2020 18:31, Stanimir Varbanov wrote: >> Document Content light level and Mastering display colour volume. >> >> Signed-off-by: Stanimir Varbanov >> --- >> .../media/v4l/ext-ctrls-codec.rst | 61 +++ >> 1 file chan

Re: [PATCH] MIPS: reserve the memblock right after the kernel

2020-11-10 Thread Alexander Sverdlin
Hello Thomas, On 10/11/2020 10:55, Thomas Bogendoerfer wrote: Linux doesn't own the memory immediately after the kernel image. On Octeon bootloader places a shared structure right close after the kernel _end, refer to "struct cvmx_bootinfo *octeon_bootinfo" in cavium-octeon/setup.c.

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

2020-11-10 Thread Peter Zijlstra
On Tue, Nov 10, 2020 at 01:56:08AM +0100, Frederic Weisbecker wrote: > [convert from static key to static call, only define static call when > PREEMPT_DYNAMIC] > noinstr void irqentry_exit(struct pt_regs *regs, irqentry_state_t state) > { > @@ -383,8 +386,13 @@ noinstr void irqentry_exit(struct

Re: [PATCH v6 1/2] kunit: Support for Parameterized Testing

2020-11-10 Thread Marco Elver
On Tue, 10 Nov 2020 at 08:21, David Gow wrote: [...] > > > > > > The previous attempt [1] at something similar failed because it seems > > > we'd need to teach kunit-tool new tricks [2], too. > > > [1] https://lkml.kernel.org/r/20201105195503.ga2399...@elver.google.com > > > [2] https://lkml.kerne

Re: [PATCH 4.4 00/86] 4.4.242-rc1 review

2020-11-10 Thread Naresh Kamboju
On Mon, 9 Nov 2020 at 18:32, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.242 release. > There are 86 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Resp

Re: [PATCH 3/3] arm64: allwinner: dts: a64: add DT for PineTab developer sample

2020-11-10 Thread Maxime Ripard
On Sat, Nov 07, 2020 at 08:53:32PM +0800, Icenowy Zheng wrote: > Some developers received PineTab samples that used an old LCD panel. > > Add device tree for these samples. > > Signed-off-by: Icenowy Zheng > --- > arch/arm64/boot/dts/allwinner/Makefile| 1 + > .../dts/allwinner/sun50i-

Re: [PATCH V8 2/5] mfd: Intel Platform Monitoring Technology support

2020-11-10 Thread Geert Uytterhoeven
Hi David, On Sat, Oct 3, 2020 at 3:32 AM David E. Box wrote: > Intel Platform Monitoring Technology (PMT) is an architecture for > enumerating and accessing hardware monitoring facilities. PMT supports > multiple types of monitoring capabilities. This driver creates platform > devices for each ty

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

2020-11-10 Thread Peter Zijlstra
On Tue, Nov 10, 2020 at 01:56:06AM +0100, Frederic Weisbecker wrote: > +#ifdef CONFIG_PREEMPT_DYNAMIC > +DEFINE_STATIC_CALL(cond_resched, __static_call_return0); > +EXPORT_STATIC_CALL(cond_resched); > + > +DEFINE_STATIC_CALL(might_resched, __static_call_return0); > +EXPORT_STATIC_CALL(might_resche

Re: [PATCH] x86/mce: Check for hypervisor before enabling additional error logging

2020-11-10 Thread Paolo Bonzini
On 10/11/20 10:56, Borislav Petkov wrote: On Tue, Nov 10, 2020 at 09:50:43AM +0100, Paolo Bonzini wrote: 1) ignore_msrs _cannot_ be on by default. You cannot know in advance that for all non-architectural MSRs it's okay for them to read as zero and eat writes. For some non-architectural MSR wh

Re: [PATCH 3/3] arm64: allwinner: dts: a64: add DT for PineTab developer sample

2020-11-10 Thread Icenowy Zheng
于 2020年11月10日 GMT+08:00 下午6:39:25, Maxime Ripard 写到: >On Sat, Nov 07, 2020 at 08:53:32PM +0800, Icenowy Zheng wrote: >> Some developers received PineTab samples that used an old LCD panel. >> >> Add device tree for these samples. >> >> Signed-off-by: Icenowy Zheng >> --- >> arch/arm64/boot/

[PATCH] docs: thermal: time_in_state is displayed in msec and not usertime

2020-11-10 Thread Viresh Kumar
The sysfs stats for cooling devices shows the time_in_state in msec, remove the unwanted usertime comment. Signed-off-by: Viresh Kumar --- Documentation/driver-api/thermal/sysfs-api.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/driver-api/thermal/sysfs-a

Re: [External] Re: [PATCH v3 09/21] mm/hugetlb: Free the vmemmap pages associated with each hugetlb page

2020-11-10 Thread Muchun Song
On Tue, Nov 10, 2020 at 5:48 PM Oscar Salvador wrote: > > On Tue, Nov 10, 2020 at 02:40:54PM +0800, Muchun Song wrote: > > Only the first HugeTLB page should split the PMD to PTE. The other 63 > > HugeTLB pages > > do not need to split. Here I want to make sure we are the first. > > I think termin

Re: [PATCH v3 19/26] coresight: etm4x: Detect access early on the target CPU

2020-11-10 Thread Suzuki K Poulose
On 11/6/20 8:46 PM, Mathieu Poirier wrote: On Wed, Oct 28, 2020 at 10:09:38PM +, Suzuki K Poulose wrote: In preparation to detect the support for system instruction support, move the detection of the device access to the target CPU. Signed-off-by: Suzuki K Poulose --- .../coresight/cores

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

2020-11-10 Thread Peter Zijlstra
On Tue, Nov 10, 2020 at 11:39:09AM +0100, Peter Zijlstra wrote: > Subject: static_call: EXPORT_STATIC_CALL_TRAMP() > From: Peter Zijlstra > Date: Tue Nov 10 11:37:48 CET 2020 > > For when we want to allow modules to call the static_call() but not > change it. > > Signed-off-by: Peter Zijlstra (I

Re: [PATCH v2 1/2] usb: typec: Add number of altmodes partner attr

2020-11-10 Thread Heikki Krogerus
On Mon, Nov 09, 2020 at 10:15:34PM -0800, Prashant Malani wrote: > Add a user-visible attribute for the number of alternate modes available > in a partner. This allows userspace to determine whether there are any > remaining alternate modes left to be registered by the kernel driver. It > can begin

Re: [v9 2/2] i2c: imx: select I2C_SLAVE by default

2020-11-10 Thread Oleksij Rempel
Hi, it makes no sense to have separate patch for it On Mon, Nov 02, 2020 at 04:21:02PM +0800, Biwen Li wrote: > From: Biwen Li > > Select I2C_SLAVE by default > > Signed-off-by: Biwen Li > --- > Change in v9: > - none > > drivers/i2c/busses/Kconfig | 1 + > 1 file changed, 1 insertion

drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c:412 sun8i_ce_hash_run() warn: possible memory leak of 'result'

2020-11-10 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 407ab579637ced6dc32cfb2295afb7259cca4b22 commit: 56f6d5aee88d129b2424902cd630f10794550763 crypto: sun8i-ce - support hash algorithms config: x86_64-randconfig-m001-20201109 (attached as .config) compiler: gc

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

2020-11-10 Thread Matthias Brugger
On 10/11/2020 02:38, Weiyi Lu wrote: 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 stab

Re: [PATCH v2 2/2] platform/chrome: cros_ec_typec: Set partner num_altmodes

2020-11-10 Thread Heikki Krogerus
On Mon, Nov 09, 2020 at 10:15:36PM -0800, Prashant Malani wrote: > Set the number of altmodes available for a registered partner using the > Type C connector class framework routine. > > Signed-off-by: Prashant Malani Reviewed-by: Heikki Krogerus > --- > > Changes in v2: > - Patch introduced

Re: [PATCH v3 25/26] coresight: etm4x: Add support for sysreg only devices

2020-11-10 Thread Suzuki K Poulose
On 11/9/20 8:46 PM, Mathieu Poirier wrote: On Wed, Oct 28, 2020 at 10:09:44PM +, Suzuki K Poulose wrote: Add support for devices with system instruction access only. They don't have a memory mapped interface and thus are not AMBA devices. Cc: Mathieu Poirier Cc: Mike Leach Signed-off-by:

Re: [PATCH v3 26/26] dts: bindings: coresight: ETM system register access only units

2020-11-10 Thread Suzuki K Poulose
On 11/9/20 8:50 PM, Mathieu Poirier wrote: On Wed, Oct 28, 2020 at 10:09:45PM +, Suzuki K Poulose wrote: Document the bindings for ETMs with system register accesses. Cc: devicet...@vger.kernel.org Cc: Mathieu Poirier Cc: Mike Leach Cc: Rob Herring Signed-off-by: Suzuki K Poulose ---

Re: [PATCH v3 1/2] usb: typec: Consolidate syfs ABI documentation

2020-11-10 Thread Heikki Krogerus
On Fri, Oct 23, 2020 at 02:43:26PM -0700, Prashant Malani wrote: > Both partner and cable have identity VDOs. These are listed separately > in the Documentation/ABI/testing/sysfs-class-typec. Factor these out > into a common location to avoid the duplication. > > Signed-off-by: Prashant Malani I

Re: [BUG] Error applying setting, reverse things back on lot of devices

2020-11-10 Thread Ahmad Fatoum
Hello, On 11/8/20 6:08 PM, Michał Mirosław wrote: > On Thu, Nov 05, 2020 at 10:11:30AM +0100, Ahmad Fatoum wrote: > It seems that final regulator_resolve_supply() is spinning recursively. > Is the regulator name the same as its supply_name? Can you try the patch > below to verify this? Indeed tha

Re: [PATCH V3] sched/rt, powerpc: Prepare for PREEMPT_RT

2020-11-10 Thread Christophe Leroy
Le 10/11/2020 à 09:53, Wang Qing a écrit : PREEMPT_RT is a separate preemption model, CONFIG_PREEMPT will be disabled when CONFIG_PREEMPT_RT is enabled, so we need to add CONFIG_PREEMPT_RT output to __die(). Signed-off-by: Wang Qing Reviewed-by: Christophe Leroy Changes in v3: - F

Re: [PATCH] kunit: kunit_tool: Correctly parse diagnostic messages

2020-11-10 Thread Marco Elver
On Tue, 10 Nov 2020 at 08:29, David Gow wrote: > > Currently, kunit_tool expects all diagnostic lines in test results to > contain ": " somewhere, as both the subtest header and the crash report > do. Fix this to accept any line starting with (minus indent) "# " as > being a valid diagnostic line.

How to enable auto-suspend by default

2020-11-10 Thread Bastien Nocera
Hey, systemd has been shipping this script to enable auto-suspend on a number of USB and PCI devices: https://github.com/systemd/systemd/blob/master/tools/chromiumos/gen_autosuspend_rules.py The problem here is twofold. First, the list of devices is updated from ChromeOS, and the original list ob

Re: [RFC, v0 1/3] vfio/platform: add support for msi

2020-11-10 Thread Vikas Gupta
Hi Eric, On Mon, Nov 9, 2020 at 8:35 PM Auger Eric wrote: > > Hi Vikas, > > On 11/6/20 3:54 AM, Vikas Gupta wrote: > > Hi Alex, > > > > On Thu, Nov 5, 2020 at 12:38 PM Alex Williamson > > wrote: > >> > >> On Thu, 5 Nov 2020 11:32:55 +0530 > >> Vikas Gupta wrote: > >> > >>> diff --git a/include

Re: [PATCH v1 3/4] phy: Add Sparx5 ethernet serdes PHY driver

2020-11-10 Thread kernel test robot
Hi Steen, I love your patch! Perhaps something to improve: [auto build test WARNING on robh/for-next] [also build test WARNING on linus/master phy/next linux/master v5.10-rc3 next-20201110] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

[PATCH] soc: ti: omap-prm: Do not check rstst bit on deassert if already deasserted

2020-11-10 Thread Tony Lindgren
If a rstctrl reset bit is already deasserted, we can just bail out early not wait for rstst to clear. Otherwise we can have deassert fail for already deasserted resets. Fixes: c5117a78dd88 ("soc: ti: omap-prm: poll for reset complete during de-assert") Signed-off-by: Tony Lindgren --- I found t

[PATCH] bus: ti-sysc: Assert reset only after disabling clocks

2020-11-10 Thread Tony Lindgren
The rstctrl reset must be asserted after gating the module clock as described in the TRM at least for IVA. Otherwise the rstctrl reset done with module clock enabled can hang the system. Note that this issue is has been only seen with related IVA changes that we do not currently have merged. So pr

Re: [RFC, v0 1/3] vfio/platform: add support for msi

2020-11-10 Thread Vikas Gupta
Hi Alex, On Mon, Nov 9, 2020 at 8:58 PM Alex Williamson wrote: > > On Mon, 9 Nov 2020 12:11:15 +0530 > Vikas Gupta wrote: > > > Hi Alex, > > > > On Fri, Nov 6, 2020 at 8:42 AM Alex Williamson > > wrote: > > > > > > On Fri, 6 Nov 2020 08:24:26 +0530 > > > Vikas Gupta wrote: > > > > > > > Hi Ale

Re: [PATCH 3/4] powercap/drivers/dtpm: Add API for dynamic thermal power management

2020-11-10 Thread Lukasz Luba
Actually I've found one issue when I have been trying to clean my testing branch with modified scmi-cpufreq.c. On 11/10/20 9:59 AM, Lukasz Luba wrote: Hi Daniel, I've experimented with the patch set and went through the code again. It looks good, only a few minor comments. On 10/6/20 1:20 P

[PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime

2020-11-10 Thread Viresh Kumar
The cpufreq and thermal core, both provide sysfs statistics to help userspace learn about the behavior of frequencies and cooling states. This is how they look: /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state:208000 11 /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state:432000

Re: [PATCH v1 3/4] bus: mhi: core: Add support to pause or resume channel data transfers

2020-11-10 Thread Loic Poulain
Hi Bhaumik, On Mon, 9 Nov 2020 at 23:44, Bhaumik Bhatt wrote: > > Some MHI clients may want to request for pausing or resuming of the > data transfers for their channels. Enable them to do so using the new > APIs provided for the same. > > Signed-off-by: Bhaumik Bhatt > --- > drivers/bus/mhi/co

Re: [PATCH v1 00/24] Opt-in always-on nVHE hypervisor

2020-11-10 Thread Marc Zyngier
On 2020-11-10 10:15, Christoph Hellwig wrote: On Mon, Nov 09, 2020 at 11:32:09AM +, David Brazdil wrote: As we progress towards being able to keep guest state private to the host running nVHE hypervisor, this series allows the hypervisor to install itself on newly booted CPUs before the host

Re: [PATCH 1/2] dccp: ccid: move timers to struct dccp_sock

2020-11-10 Thread Thadeu Lima de Souza Cascardo
On Mon, Nov 09, 2020 at 02:15:53PM -0800, Jakub Kicinski wrote: > On Mon, 9 Nov 2020 18:31:34 -0300 Thadeu Lima de Souza Cascardo wrote: > > > Which paths are those (my memory of this code is waning)? I thought > > > disconnect is only called from the user space side (shutdown syscall). > > > The o

[PATCH] powerpc/powernv/sriov: fix unsigned int win compared to less than zero

2020-11-10 Thread xiakaixu1987
From: Kaixu Xia Fix coccicheck warning: ./arch/powerpc/platforms/powernv/pci-sriov.c:443:7-10: WARNING: Unsigned expression compared with zero: win < 0 ./arch/powerpc/platforms/powernv/pci-sriov.c:462:7-10: WARNING: Unsigned expression compared with zero: win < 0 Reported-by: Tosk Robot Sign

[PATCH 1/9] ARM: OMAP2+: Check for inited flag

2020-11-10 Thread Tony Lindgren
If we have no hwmods configured and omap_hwmod_init() is not called, we don't want to call omap_hwmod_setup_all() as it will fail with checks for configured MPU at least. Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/omap_hwmod.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/a

[PATCH 4/9] bus: ti-sysc: Support modules without control registers

2020-11-10 Thread Tony Lindgren
Some modules like MPU have a powerdomain and functional clock but not necessarily any control registers. Let's allow configuring interconnect target modules with no control registers. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH 2/9] ARM: OMAP2+: Probe PRCM first to probe l4_wkup with simple-pm-bus

2020-11-10 Thread Tony Lindgren
In preparation for probing the interconnects with simple-pm-bus to make use of genpd, we need to probe the always-on PRCM first for the clocks needed by l4_wkup instance. Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/pdata-quirks.c | 11 +++ 1 file changed, 11 insertions(+) diff

[PATCHv2 0/9] Genpd related code changes to drop am335x pdata

2020-11-10 Thread Tony Lindgren
Hi all, Here's v2 set of changes for v5.11 merge window to drop the remaining am335x platform data. Changes since v1: - Simplify wkup_m3_rproc.c changes as suggested by Philipp Zabel - Do not configure pm_clk for omap_prm.c except for simple-pm-bus These patches depend on: [PATCH 2/4] ARM: OMAP

Re: [PATCH v2 03/10] usb: cdns3: Moves reusable code to separate module

2020-11-10 Thread Peter Chen
On 20-11-10 09:20:54, Pawel Laszczak wrote: > Hi, > > >> > >> int cdns3_hw_role_switch(struct cdns3 *cdns); > >> -int cdns3_init(struct cdns3 *cdns); > >> -int cdns3_remove(struct cdns3 *cdns); > >> +extern int cdns3_init(struct cdns3 *cdns); > >> +extern int cdns3_remove(struct cdns3 *cdns); > >

[PATCH 5/9] bus: ti-sysc: Implement GPMC debug quirk to drop platform data

2020-11-10 Thread Tony Lindgren
We need to enable no-reset-on-init quirk for GPMC if the config option for CONFIG_OMAP_GPMC_DEBUG is set. Otherwise the GPMC driver code is unable to show the bootloader configured timings. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 10 ++ include/linux/plat

[PATCH 6/9] soc: ti: omap-prm: Add pm_clk for genpd

2020-11-10 Thread Tony Lindgren
In order to probe l3 and l4 interconnects with simple-pm-bus, we want genpd to manage the clocks for the interconnects. For interconnect target modules, we already have ti-sysc manage the clocks so let's skipe managing clocks for ti-sysc modules. Cc: Santosh Shilimkar Signed-off-by: Tony Lindgren

[PATCH 3/9] clk: ti: am33xx: Keep am3 l3 main clock always on for genpd

2020-11-10 Thread Tony Lindgren
In order for suspend and resume to work with genpd on am3, we must keep l3 main clock always on. Otherwise prm_omap driver will shut down the l3 main clock on suspend when simple-pm-bus and GENPD_FLAG_PM_CLK are used. Note that we already keep the l3 main clock always on with the legacy platform co

Re: [PATCH] mm/zsmalloc: include sparsemem.h for MAX_PHYSMEM_BITS

2020-11-10 Thread Arnd Bergmann
On Tue, Nov 10, 2020 at 10:58 AM Mike Rapoport wrote: > > > > > > asm/sparsemem.h is not available on some architectures. > > > It's better to use linux/mmzone.h instead. Ah, I missed that, too. > > Hm, linux/mmzone.h only includes asm/sparsemem.h when CONFIG_SPARSEMEM > > is enabled. However, o

[PATCH 8/9] soc: ti: pm33xx: Enable basic PM runtime support for genpd

2020-11-10 Thread Tony Lindgren
To prepare for moving to use genpd, let's enable basic PM runtime support. Cc: Dave Gerlach Cc: Santosh Shilimkar Cc: Suman Anna Signed-off-by: Tony Lindgren --- drivers/soc/ti/pm33xx.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/soc/ti/pm33x

[PATCH 7/9] soc: ti: omap-prm: am3: add genpd support for remaining PRM instances

2020-11-10 Thread Tony Lindgren
From: Tero Kristo Add genpd support for per, wkup, mpu, rtc and cefuse instances. Cc: Santosh Shilimkar Signed-off-by: Tero Kristo Signed-off-by: Tony Lindgren --- drivers/soc/ti/omap_prm.c | 36 +--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --gi

[PATCH 9/9] remoteproc/wkup_m3: Use reset control driver if available

2020-11-10 Thread Tony Lindgren
In order to move wkup_m3 to probe without platform data, let's add support for using optional reset control driver if configured in the dts. With this change and the related dts change, we can start dropping the platform data for am335x. And once wkup_m3 no longer needs platform data, we can simpl

[tip: sched/core] sched/fair: Reorder throttle_cfs_rq() path

2020-11-10 Thread tip-bot2 for Peng Wang
The following commit has been merged into the sched/core branch of tip: Commit-ID: b6d37a764a5b852db63101b3f2db0e699574b903 Gitweb: https://git.kernel.org/tip/b6d37a764a5b852db63101b3f2db0e699574b903 Author:Peng Wang AuthorDate:Tue, 10 Nov 2020 10:11:59 +08:00 Committer:

Re: How to enable auto-suspend by default

2020-11-10 Thread Greg KH
On Tue, Nov 10, 2020 at 11:57:07AM +0100, Bastien Nocera wrote: > Hey, > > systemd has been shipping this script to enable auto-suspend on a > number of USB and PCI devices: > https://github.com/systemd/systemd/blob/master/tools/chromiumos/gen_autosuspend_rules.py > > The problem here is twofold.

[PATCH] drm/amd/pm: Use kmemdup instead of kmalloc and memcpy

2020-11-10 Thread Tian Tao
Fixes coccicheck warning: drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c:255: 36-43: WARNING opportunity for kmemdup Signed-off-by: Tian Tao --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_processpptables.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

Re: [PATCH 1/3] dt-bindings: gpio: sunxi:create a DT header for Allwinner pin controller

2020-11-10 Thread Maxime Ripard
On Wed, Oct 28, 2020 at 08:15:45PM +0800, Frank Lee wrote: > On Wed, Jul 29, 2020 at 9:06 PM Maxime Ripard wrote: > > > > Hi, > > > > On Sat, Jul 25, 2020 at 02:18:39PM -0500, Samuel Holland wrote: > > > On 7/17/20 11:07 AM, Maxime Ripard wrote: > > > > Hi! > > > > > > > > On Wed, Jul 15, 2020 at

arch/sh/mm/cache-sh2.c:65:15: sparse: sparse: incorrect type in argument 1 (different base types)

2020-11-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 407ab579637ced6dc32cfb2295afb7259cca4b22 commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr() date: 2 months ago config: sh-randconfig-s032-20201109 (attache

Re: [PATCH] cpufreq: stats: Switch to ktime and msec instead of jiffies and usertime

2020-11-10 Thread Lukasz Luba
On 11/10/20 11:07 AM, Viresh Kumar wrote: The cpufreq and thermal core, both provide sysfs statistics to help userspace learn about the behavior of frequencies and cooling states. This is how they look: /sys/devices/system/cpu/cpufreq/policy0/stats/time_in_state:208000 11 /sys/devices/system

5.10 regression, many XHCI swiotlb buffer is full / DMAR: Device bounce map failed errors on thunderbolt connected XHCI controller

2020-11-10 Thread Hans de Goede
Hi All, Not sure if this is a XHCI driver problem at all, but I needed to start somewhere with reporting this so I went with: scripts/get_maintainer.pl -f drivers/usb/host/xhci-pci.c And added a Cc: linux-...@vger.kernel.org as bonus. I'm seeing the following errors and very slow network perfor

Re: drivers/mtd/maps/physmap-bt1-rom.c:78:18: sparse: sparse: cast removes address space '__iomem' of expression

2020-11-10 Thread Serge Semin
Hello Miquel, A situation noted by the warning below won't cause any problem because the casting is done to a non-dereferenced variable. It is utilized as a pointer bias later in that function. Shall we just ignore the warning or still fix it somehow? -Sergey On Mon, Nov 02, 2020 at 12:42:57PM +

Re: [PATCH v2 03/10] usb: cdns3: Moves reusable code to separate module

2020-11-10 Thread gre...@linuxfoundation.org
On Tue, Nov 10, 2020 at 11:21:22AM +, Peter Chen wrote: > On 20-11-10 09:20:54, Pawel Laszczak wrote: > > Hi, > > > > >> > > >> int cdns3_hw_role_switch(struct cdns3 *cdns); > > >> -int cdns3_init(struct cdns3 *cdns); > > >> -int cdns3_remove(struct cdns3 *cdns); > > >> +extern int cdns3_init

[PATCH 0/2] genirq: Move prio assignment into the newly created thread

2020-11-10 Thread Sebastian Andrzej Siewior
Mike reported [0] a lockdep splat triggered by the nouveau driver together with enabled threaded interrupts. I can't easily tell if moving / changing locking within nouveau does not break anything and does not create the same lockchain in another path. Mike did confirm that the lockdep splat can be

[PATCH 1/2] kthread: Move prio/affinite change into the newly created thread

2020-11-10 Thread Sebastian Andrzej Siewior
With enabled threaded interrupts the nouveau driver reported the following: | Chain exists of: | &mm->mmap_lock#2 --> &device->mutex --> &cpuset_rwsem | | Possible unsafe locking scenario: | |CPU0CPU1 | | lock(&cpuset_rwsem); |

[PATCH 2/2] genirq: Move prio assignment into the newly created thread

2020-11-10 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner With enabled threaded interrupts the nouveau driver reported the following: | Chain exists of: | &mm->mmap_lock#2 --> &device->mutex --> &cpuset_rwsem | | Possible unsafe locking scenario: | |CPU0CPU1 | | l

Re: [PATCH 10/24] x86/resctrl: Move the schema names into struct resctrl_schema

2020-11-10 Thread Jamie Iles
Hi James, On Fri, Oct 30, 2020 at 04:11:06PM +, James Morse wrote: > Move the names used for the schemata file out of the resource and > into struct resctrl_schema. This allows one resource to have two > different names, based on the other schema properties. > > This patch copies the names, e

RE: [PATCH v3 22/26] coresight: etm4x: Add necessary synchronization for sysreg access

2020-11-10 Thread John Horley
On 11/10/20 10:11 AM, Suzuki K Poulose wrote: > On 11/9/20 6:32 PM, Mathieu Poirier wrote: >> On Wed, Oct 28, 2020 at 10:09:41PM +, Suzuki K Poulose wrote: >>> As per the specification any update to the TRCPRGCTLR must be >>> synchronized by a context synchronization event (in our case an >>> e

Re: [PATCH] net/xdp: remove unused macro REG_STATE_NEW

2020-11-10 Thread Jesper Dangaard Brouer
On Mon, 09 Nov 2020 13:44:48 -0800 John Fastabend wrote: > Alex Shi wrote: > > > > > > 在 2020/11/7 上午12:13, Jesper Dangaard Brouer 写道: > > > Hmm... REG_STATE_NEW is zero, so it is implicitly set via memset zero. > > > But it is true that it is technically not directly used or referenced. > >

RE: [PATCH v2 03/10] usb: cdns3: Moves reusable code to separate module

2020-11-10 Thread Pawel Laszczak
> >On Tue, Nov 10, 2020 at 11:21:22AM +, Peter Chen wrote: >> On 20-11-10 09:20:54, Pawel Laszczak wrote: >> > Hi, >> > >> > >> >> > >> int cdns3_hw_role_switch(struct cdns3 *cdns); >> > >> -int cdns3_init(struct cdns3 *cdns); >> > >> -int cdns3_remove(struct cdns3 *cdns); >> > >> +extern int

Re: [PATCH 2/2] ASoC: Add ADAU1372 audio CODEC support

2020-11-10 Thread kernel test robot
Hi Alexandre, I love your patch! Perhaps something to improve: [auto build test WARNING on asoc/for-next] [also build test WARNING on v5.10-rc3 next-20201110] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--bas

[PATCH] bpf: Fix unsigned 'datasec_id' compared with zero in check_pseudo_btf_id

2020-11-10 Thread xiakaixu1987
From: Kaixu Xia The unsigned variable datasec_id is assigned a return value from the call to check_pseudo_btf_id(), which may return negative error code. Fixes coccicheck warning: ./kernel/bpf/verifier.c:9616:5-15: WARNING: Unsigned expression compared with zero: datasec_id > 0 Reported-by: T

Re: [PATCH v2 2/2] mm: prevent gup_fast from racing with COW during fork

2020-11-10 Thread Peter Zijlstra
On Wed, Nov 04, 2020 at 04:17:11AM +0100, Ahmed S. Darwish wrote: > On Tue, Nov 03, 2020 at 06:01:30PM -0800, John Hubbard wrote: > > On 11/3/20 5:32 PM, Ahmed S. Darwish wrote: > ... > > > #define __read_seqcount_retry(s, start) > > > \ > > > - __read_seqcount_t_

Re: [PATCH 03/24] perf: Add build id data in mmap2 event

2020-11-10 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 10, 2020 at 09:07:16AM +0100, Peter Zijlstra escreveu: > On Mon, Nov 09, 2020 at 10:53:54PM +0100, Jiri Olsa wrote: > > Adding support to carry build id data in mmap2 event. > > > > The build id data replaces maj/min/ino/ino_generation > > fields, whichc are also used to identify map's

Re: [PATCH v3 2/2] usb: typec: Expose Product Type VDOs via sysfs

2020-11-10 Thread Heikki Krogerus
On Fri, Oct 23, 2020 at 02:43:28PM -0700, Prashant Malani wrote: > A PD-capable device can return up to 3 Product Type VDOs as part of its > DiscoverIdentity Response (USB PD Spec, Rev 3.0, Version 2.0, Section > 6.4.4.3.1). Add sysfs attributes to expose these to userspace. > > Cc: Benson Leung

Re: [PATCH v6 0/2] Modify documentation and machine driver for SC7180 sound card

2020-11-10 Thread Mark Brown
On Tue, Nov 10, 2020 at 05:40:40PM +0800, Ajye Huang wrote: > Hi, Mark > > Could you please kindly review the series patch v6? And may I get your > approval if the review is done. Please don't send content free pings and please allow a reasonable time for review. People get busy, go on holiday,

Re: [PATCH] drivers: amdgpu: amdgpu_display: Fixed the spelling of falg to flag

2020-11-10 Thread Christian König
Am 09.11.20 um 22:07 schrieb Bhaskar Chowdhury: s/falg/flag/p Signed-off-by: Bhaskar Chowdhury Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/

Re: [PATCH v2] clk: hisilicon: Free clk_data and unmap region obtained by of_iomap

2020-11-10 Thread Dongjiu Geng
On 2020/11/10 1:54, Markus Elfring wrote: > … >> +++ b/drivers/clk/hisilicon/clk-hi3620.c > … >> @@ -478,6 +478,10 @@ static void __init hi3620_mmc_clk_init(struct >> device_node *node) >> >> clk_data->clk_num = num; >> of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); >> +

Re: [PATCH] mm/filemap: add static for function __add_to_page_cache_locked

2020-11-10 Thread Alex Shi
在 2020/11/10 上午11:09, Souptick Joarder 写道: > On Fri, Nov 6, 2020 at 4:55 PM Alex Shi wrote: >> >> Otherwise it cause gcc warning: >> ^~~ >> ../mm/filemap.c:830:14: warning: no previous prototype for >> ‘__add_to_page_cache_locked’ [-Wmissing-prototypes] >> noinline int __

Re: [PATCH 08/19] drm/omapdrm/omap_gem: Fix misnamed and missing parameter descriptions

2020-11-10 Thread Tomi Valkeinen
On 06/11/2020 23:49, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/omapdrm/omap_gem.c:593: warning: Function parameter or > member 'file' not described in 'omap_gem_dumb_create' > drivers/gpu/drm/omapdrm/omap_gem.c:593: warning: Excess function paramete

Re: [RFC PATCH v1 00/26] Make reporting-bugs easier to grasp and yet more detailed

2020-11-10 Thread Thorsten Leemhuis
Am 09.11.20 um 19:21 schrieb Jonathan Corbet: On Mon, 9 Nov 2020 12:01:56 +0100 Thorsten Leemhuis wrote: @Jon: I'd be really appreciate to hear your thoughts on this. Seems like it's time to post a new version with all of your feedback so far reflected, and we'll go from there? Will do, ju

Re: [PATCH] powerpc/powernv/sriov: fix unsigned int win compared to less than zero

2020-11-10 Thread Andrew Donnellan
On 10/11/20 10:19 pm, xiakaixu1...@gmail.com wrote: From: Kaixu Xia Fix coccicheck warning: ./arch/powerpc/platforms/powernv/pci-sriov.c:443:7-10: WARNING: Unsigned expression compared with zero: win < 0 ./arch/powerpc/platforms/powernv/pci-sriov.c:462:7-10: WARNING: Unsigned expression comp

Re: [v9 1/2] i2c: imx: support slave mode for imx I2C driver

2020-11-10 Thread Oleksij Rempel
Hi, On Mon, Nov 02, 2020 at 04:21:01PM +0800, Biwen Li wrote: > From: Biwen Li > > The patch supports slave mode for imx I2C driver > > Signed-off-by: Biwen Li > --- > Change in v9: > - remove #ifdef after select I2C_SLAVE by default > > Change in v8: > - fix build issue > > Chan

Re: [PATCH 2/3] arm: introduce IRQ stacks

2020-11-10 Thread Tony Lindgren
* Arnd Bergmann [201110 10:04]: > On Tue, Nov 10, 2020 at 10:19 AM Tony Lindgren wrote: > > * Arnd Bergmann [201109 19:10]: > > > On Mon, Nov 9, 2020 at 3:45 PM Tony Lindgren wrote: > > > > > > I know it works, my point was that I'm not sure anyone cares > > > any more ;-) > > > > Well for exam

Re: [PATCHv7 6/7] iommu: arm-smmu-impl: Use table to list QCOM implementations

2020-11-10 Thread Will Deacon
On Fri, Oct 30, 2020 at 02:53:13PM +0530, Sai Prakash Ranjan wrote: > Use table and of_match_node() to match qcom implementation > instead of multiple of_device_compatible() calls for each > QCOM SMMU implementation. > > Signed-off-by: Sai Prakash Ranjan > --- > drivers/iommu/arm/arm-smmu/arm-sm

Re: [PATCHv7 7/7] iommu: arm-smmu-impl: Add a space before open parenthesis

2020-11-10 Thread Will Deacon
On Fri, Oct 30, 2020 at 02:53:14PM +0530, Sai Prakash Ranjan wrote: > Fix the checkpatch warning for space required before the open > parenthesis. > > Signed-off-by: Sai Prakash Ranjan > --- > drivers/iommu/arm/arm-smmu/arm-smmu-impl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

  1   2   3   4   5   6   7   8   9   10   >