[PATCH v3 00/24] ARM: at91: pm: add support for sama7g5

2021-04-15 Thread Claudiu Beznea
Hi, This series adds PM support for SAMA7G5. The standby, ulp0, ulp1, and backup modes are supported. Thank you, Claudiu Beznea Changes in v3: - drop: status = "okay" in patch 16/24 Changes in v2: - keep only the generic sama7_dt in patch 22/24 and adapt patch 23/24 - collected tags Claudiu Be

[PATCH v3 01/24] ARM: at91: pm: move pm_bu to soc_pm data structure

2021-04-15 Thread Claudiu Beznea
Move pm_bu to soc_pm data structure. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 90dcdfe3b3d0..e13ceef7ac9a 100644 --- a/

[PATCH v3 03/24] ARM: at91: pm: document at91_soc_pm structure

2021-04-15 Thread Claudiu Beznea
Document at91_soc_pm structure. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 3742a1fb76db..3029351ec78e 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/p

[PATCH v3 04/24] ARM: at91: pm: check for different controllers in at91_pm_modes_init()

2021-04-15 Thread Claudiu Beznea
at91_pm_modes_init() checks for proper nodes in device tree and maps them accordingly. Up to SAMA7G5 all AT91 SoCs had the same mapping b/w power saving modes and different controllers needed in the final/first steps of suspend/resume. SAMA7G5 is not aligned with the old SoCs thus the code is adapt

[PATCH v3 05/24] ARM: at91: pm: do not initialize pdev

2021-04-15 Thread Claudiu Beznea
There is no need to initialize pdev. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 5a6ce1d88971..65e13769cf50 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/ar

[PATCH v3 02/24] ARM: at91: pm: move the setup of soc_pm.bu->suspended

2021-04-15 Thread Claudiu Beznea
Move the setup of soc_pm.bu->suspended in platform_suspend::begin function so that the PMC code in charge with clocks suspend/resume to differentiate b/w standard PM mode and backup mode. Signed-off-by: Claudiu Beznea Reviewed-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 15 -

[PATCH v3 06/24] ARM: at91: pm: use r7 instead of tmp1

2021-04-15 Thread Claudiu Beznea
Use r7 instead of tmp1 in macros. This prepares the filed for next commits. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm_suspend.S | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S

[PATCH v3 07/24] ARM: at91: pm: avoid push and pop on stack while memory is in self-refersh

2021-04-15 Thread Claudiu Beznea
For the previous AT91 RAM controller and self-refresh procedure this had no side effects. However, for SAMA7G5 the self-refresh procedure doesn't allow this anymore as the RAM controller ports are closed before switching it to self-refresh. This commits prepares the code for the following ones addi

[PATCH v3 08/24] ARM: at91: pm: s/CONFIG_SOC_SAM9X60/CONFIG_HAVE_AT91_SAM9X60_PLL/g

2021-04-15 Thread Claudiu Beznea
Replace CONFIG_SOC_SAM9X60 with CONFIG_HAVE_AT91_SAM9X60_PLL as the SAM9X60's PLL is also present on SAMA7G5. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm_suspend.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-

[PATCH v3 09/24] ARM: at91: pm: add support for waiting MCK1..4

2021-04-15 Thread Claudiu Beznea
SAMA7G5 has 5 master clocks 0..4. MCK0 is controlled differently than MCK 1..4. MCK 1..4 should also be saved/restored in the last phase of suspend/resume. Thus, adapt wait_mckrdy to support also MCK1..4. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm_suspend.S | 48

[PATCH v3 10/24] ARM: at91: sfrbu: add sfrbu registers definitions for sama7g5

2021-04-15 Thread Claudiu Beznea
Add SFRBU registers definitions for SAMA7G5. Signed-off-by: Claudiu Beznea --- include/soc/at91/sama7-sfrbu.h | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 include/soc/at91/sama7-sfrbu.h diff --git a/include/soc/at91/sama7-sfrbu.h b/include/soc/at

Re: [PATCH 10/13] dt-bindings: mfd: add vref_ddr-supply to st,stpmic1 yaml

2021-04-15 Thread Ahmad Fatoum
Hi, On 15.04.21 12:10, Alexandre Torgue wrote: > Add vref_ddr-supply to the STPMIC1 regulators supplies pattern > list. > > Signed-off-by: Alexandre Torgue > > diff --git a/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml > b/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml > index 3

[PATCH v3 12/24] ARM: at91: pm: add self-refresh support for sama7g5

2021-04-15 Thread Claudiu Beznea
Add self-refresh support for SAMA7G5. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.h | 2 + arch/arm/mach-at91/pm_data-offsets.c | 2 + arch/arm/mach-at91/pm_suspend.S | 199 +++ 3 files changed, 203 insertions(+) diff --git a/arch/arm/ma

[PATCH v3 11/24] ARM: at91: ddr: add registers definitions for sama7g5's ddr

2021-04-15 Thread Claudiu Beznea
Add registers and bits definitions for SAMA7G5's UDDRC and DDR3PHY. Signed-off-by: Claudiu Beznea --- include/soc/at91/sama7-ddr.h | 80 1 file changed, 80 insertions(+) create mode 100644 include/soc/at91/sama7-ddr.h diff --git a/include/soc/at91/sama7-ddr

[PATCH v3 13/24] ARM: at91: pm: add support for MCK1..4 save/restore for ulp modes

2021-04-15 Thread Claudiu Beznea
Add support for MCK1..4 save restore for ULP modes. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm_suspend.S | 126 1 file changed, 126 insertions(+) diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S index 84418120ba67..8b0b

[PATCH v3 14/24] ARM: at91: pm: add support for 2.5V LDO regulator control

2021-04-15 Thread Claudiu Beznea
Add support to disable/enable 2.5V LDO regulator when entering/exiting any ULP mode. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.h | 1 + arch/arm/mach-at91/pm_suspend.S | 29 + 2 files changed, 30 insertions(+) diff --git a/arch/arm/mach-at91/pm

[PATCH v3 15/24] ARM: at91: pm: wait for ddr power mode off

2021-04-15 Thread Claudiu Beznea
Wait for DDR power mode off before shutting down the core. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm_suspend.S | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S index 9c9e08fd8300..7396e18dd7e5 100644 --- a/ar

[PATCH v3 16/24] dt-bindings: atmel-sysreg: add bindings for sama7g5

2021-04-15 Thread Claudiu Beznea
Add RAM controller and RAM PHY controller DT bindings. Signed-off-by: Claudiu Beznea --- .../devicetree/bindings/arm/atmel-sysregs.txt | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt b/Documentation/

[PATCH v3 20/24] ARM: at91: pm: add backup mode support for SAMA7G5

2021-04-15 Thread Claudiu Beznea
Adapt at91_pm_backup_init() to work for SAMA7G5. Also, set the LPM pin to shutdown controller. This will signal to PMIC that it needs to switch to the state corresponding to backup mode. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 3 ++- arch/arm/mach-at91/pm_suspend.S |

[PATCH v3 17/24] ARM: at91: pm: add sama7g5 ddr controller

2021-04-15 Thread Claudiu Beznea
Add SAMA7G5 DDR controller to the list of DDR controller compatibles. At the moment there is no standby support. Adapt the code for this. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-at91/pm.c

[PATCH v3 19/24] ARM: at91: pm: save ddr phy calibration data to securam

2021-04-15 Thread Claudiu Beznea
The resuming from backup mode is done with the help of bootloader. The bootloader reconfigure the DDR controller and DDR PHY controller. To speed-up the resuming process save the PHY calibration data into SECURAM before suspending (securam is powered on backup mode). This data will be later used by

[PATCH v3 18/24] ARM: at91: pm: add sama7g5 ddr phy controller

2021-04-15 Thread Claudiu Beznea
SAMA7G5 self-refresh procedure accesses also the DDR PHY registers. Adapt the code so that the at91_dt_ramc() to look also for DDR PHYs, in case it is mandatory. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 27 +-- 1 file changed, 21 insertions(+), 6 deleti

[PATCH v3 21/24] ARM: at91: pm: add sama7g5's pmc

2021-04-15 Thread Claudiu Beznea
Add SAMA7G5's PMC to compatible list. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index fcb20272d65d..f4e66a7c7d18 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at

[PATCH v3 22/24] ARM: at91: sama7: introduce sama7 SoC family

2021-04-15 Thread Claudiu Beznea
From: Eugen Hristev Introduce new family of SoCs, sama7, and first SoC, sama7g5. Signed-off-by: Eugen Hristev [claudiu.bez...@microchip.com: keep only the sama7_dt] Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/Makefile | 1 + arch/arm/mach-at91/sama7.c | 32 +

[PATCH v3 23/24] ARM: at91: pm: add pm support for SAMA7G5

2021-04-15 Thread Claudiu Beznea
Add support for SAMA7G5 power management modes: standby, ulp0, ulp1, backup. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/generic.h | 2 ++ arch/arm/mach-at91/pm.c | 37 arch/arm/mach-at91/sama7.c | 1 + 3 files changed, 40 insertions(+) dif

[PATCH v3 24/24] ARM: at91: pm: add sama7g5 shdwc

2021-04-15 Thread Claudiu Beznea
Add SAMA7G5 SHDWC. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index 24d5fd06d487..d6cfe7c4bb00 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -794,6 +794,7

Re: [PATCH v6 2/4] leds: Add driver for Qualcomm LPG

2021-04-15 Thread Yassine Oudjana
Hi, On Wed, 21 Oct 2020 13:12:22 -0700 Bjorn Andersson wrote: > The Light Pulse Generator (LPG) is a PWM-block found in a wide range of > PMICs from Qualcomm. It can operate on fixed parameters or based on a > lookup-table, altering the duty cycle over time - which provides the > means for e.g. ha

linux-next: Tree for Apr 15

2021-04-15 Thread Stephen Rothwell
Hi all, Changes since 20210414: The rdma tree gained a conflict against Linus' tree. The net-next tree gained a conflict against the net tree. The vfio tree gained a conflict against the drm tree. The akpm-current tree gained a conflict against the powerpc tree. Non-merge commits (relative to

Re: [PATCH] kconfig: split menu.c out of parser.y

2021-04-15 Thread Boris Kolpackov
Masahiro Yamada writes: > --- /dev/null > +++ b/scripts/kconfig/internal.h > @@ -0,0 +1,9 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > +#ifndef INTERNAL_H > +#define INTERNAL_H > + > +struct menu; > + > +extern struct menu *current_menu, *current_entry; > + > +#endif /* INTERNAL_H */ Mayb

Re: [PATCH v7 1/3] bio: limit bio max size

2021-04-15 Thread Changheun Lee
> On 4/12/21 7:55 PM, Changheun Lee wrote: > > +unsigned int bio_max_size(struct bio *bio) > > +{ > > + struct request_queue *q = bio->bi_bdev->bd_disk->queue; > > + > > + if (blk_queue_limit_bio_size(q)) > > + return blk_queue_get_max_sectors(q, bio_op(bio)) > > + <

[gustavoars-linux:testing/warray-bounds] BUILD SUCCESS WITH WARNING 4695107c157dd670a5fc1b1d3ccbfdc440caca24

2021-04-15 Thread kernel test robot
`-- net-core-flow_dissector.c:warning:memcpy-offset-from-the-object-at-flow_keys-is-out-of-the-bounds-of-referenced-subobject-ipv6_src-with-type-__u32-aka-unsigned-int-at-offset |-- parisc-randconfig-p002-20210414 | `-- drivers-ide-ide-ioctls.c:warning:memcpy-offset-from-the-object-at-cmd-is-ou

[PATCH hyperv-next] scsi: storvsc: Use blk_mq_unique_tag() to generate requestIDs

2021-04-15 Thread Andrea Parri (Microsoft)
Use blk_mq_unique_tag() to generate requestIDs for StorVSC, avoiding all issues with allocating enough entries in the VMbus requestor. Suggested-by: Michael Kelley Signed-off-by: Andrea Parri (Microsoft) --- Changes since RFC: - pass sentinel values for {init,reset}_request in vmbus_sendpacket

Re: [PATCH v4 2/3] mm/slub, kunit: add a KUnit test for SLUB debugging functionality

2021-04-15 Thread Marco Elver
On Thu, 15 Apr 2021 at 12:38, Vlastimil Babka wrote: > > On 4/15/21 12:10 PM, Oliver Glitta wrote: > > ut 13. 4. 2021 o 15:54 Marco Elver napísal(a): > >> > >> On Tue, 13 Apr 2021 at 12:07, wrote: > >> > From: Oliver Glitta > >> > > >> > SLUB has resiliency_test() function which is hidden behin

Re: [PATCH v2 1/1] mfd: intel_quark_i2c_gpio: Don't play dirty trick with const

2021-04-15 Thread Andy Shevchenko
On Wed, Apr 14, 2021 at 10:19:16PM +0100, Lee Jones wrote: > On Wed, 14 Apr 2021, Andy Shevchenko wrote: > > On Wed, Apr 14, 2021 at 06:13:19PM +0100, Lee Jones wrote: > > > On Fri, 26 Mar 2021, Lee Jones wrote: ... > > > Am I still missing patches from you Andy? > > > > Patches for fixes should

Re: [PATCH v3 12/27] perf parse-events: Support no alias assigned event inside hybrid PMU

2021-04-15 Thread Jiri Olsa
On Mon, Mar 29, 2021 at 03:00:31PM +0800, Jin Yao wrote: SNIP > --- > v3: > - Rename the patch: >'perf parse-events: Support hardware events inside PMU' --> >'perf parse-events: Support no alias assigned event inside hybrid PMU' > > - Major code is moved to parse-events-hybrid.c. > -

[PATCH] riscv: Protect kernel linear mapping only if CONFIG_STRICT_KERNEL_RWX is set

2021-04-15 Thread Alexandre Ghiti
If CONFIG_STRICT_KERNEL_RWX is not set, we cannot set different permissions to the kernel data and text sections, so make sure it is defined before trying to protect the kernel linear mapping. Signed-off-by: Alexandre Ghiti --- arch/riscv/kernel/setup.c | 8 1 file changed, 4 insertions

Re: [PATCH v18 1/2] scsi: ufs: Enable power management for wlun

2021-04-15 Thread Adrian Hunter
On 14/04/21 9:58 pm, Asutosh Das wrote: > During runtime-suspend of ufs host, the scsi devices are > already suspended and so are the queues associated with them. > But the ufs host sends SSU (START_STOP_UNIT) to wlun > during its runtime-suspend. > During the process blk_queue_enter checks if the

[PATCH] dmaengine: idxd: Fix potential null dereference on pointer status

2021-04-15 Thread Colin King
From: Colin Ian King There are calls to idxd_cmd_exec that pass a null status pointer however a recent commit has added an assignment to *status that can end up with a null pointer dereference. The function expects a null status pointer sometimes as there is a later assignment to *status where s

Re: [PATCH v2 1/3] Drivers: hv: vmbus: Introduce and negotiate VMBus protocol version 5.3

2021-04-15 Thread Andrea Parri
> > @@ -234,6 +234,7 @@ static inline u32 hv_get_avail_to_write_percent( > > * 5 . 0 (Newer Windows 10) > > * 5 . 1 (Windows 10 RS4) > > * 5 . 2 (Windows Server 2019, RS5) > > + * 5 . 3 (Windows Server 2021) // FIXME: use proper version number/name > > The official name is now public inf

[PATCH v5 1/3] firmware: xilinx: Add pinctrl support

2021-04-15 Thread Sai Krishna Potthuri
Adding pinctrl support to query platform specific information (pins) from firmware. Signed-off-by: Sai Krishna Potthuri Acked-by: Michal Simek --- drivers/firmware/xilinx/zynqmp.c | 114 +++ include/linux/firmware/xlnx-zynqmp.h | 90 + 2 files ch

[PATCH v5 0/3] Add ZynqMP pinctrl driver

2021-04-15 Thread Sai Krishna Potthuri
Add support for Xilinx ZynqMP pinctrl driver and also update the Xilinx firmware driver to support pinctrl functionality. This driver queries the pin information from the firmware and allow configuring the pins as per the request. changes in v5: - Used generic property 'power-source' instead of dr

[PATCH v5 2/3] dt-bindings: pinctrl: Add binding for ZynqMP pinctrl driver

2021-04-15 Thread Sai Krishna Potthuri
Adding documentation and dt-bindings file which contains MIO pin configuration defines for Xilinx ZynqMP pinctrl driver. Signed-off-by: Sai Krishna Potthuri Reviewed-by: Rob Herring --- .../bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml | 336 ++ include/dt-bindings/pinctrl/pinctrl-z

[PATCH v5 3/3] pinctrl: Add Xilinx ZynqMP pinctrl driver support

2021-04-15 Thread Sai Krishna Potthuri
Adding pinctrl driver for Xilinx ZynqMP platform. This driver queries pin information from firmware and registers pin control accordingly. Signed-off-by: Sai Krishna Potthuri --- drivers/pinctrl/Kconfig | 14 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-zynqmp.c

Re: [RFC] scripts: kernel-doc: improve parsing for kernel-doc comments syntax

2021-04-15 Thread Aditya Srivastava
On 15/4/21 12:55 am, Aditya Srivastava wrote: > Currently kernel-doc does not identify some cases of probable kernel > doc comments, for e.g. pointer used as declaration type for identifier, > space separated identifier, etc. > > Some example of these cases in files can be: > i)" * journal_t * jb

Re: [PATCH v7 4/8] mm,memory_hotplug: Allocate memmap from the added memory range

2021-04-15 Thread David Hildenbrand
On 08.04.21 14:18, Oscar Salvador wrote: Physical memory hotadd has to allocate a memmap (struct page array) for the newly added memory section. Currently, alloc_pages_node() is used for those allocations. This has some disadvantages: a) an existing memory is consumed for that purpose (eg

Re: [PATCH 1/5] xattr: Complete constify ->name member of "struct xattr"

2021-04-15 Thread Tetsuo Handa
On 2021/04/15 19:04, Roberto Sassu wrote: > This patch completes commit 9548906b2bb7 ('xattr: Constify ->name member of > "struct xattr"'). It fixes the documentation of the inode_init_security > hook, by removing the xattr name from the objects that are expected to be > allocated by LSMs (only the

Re: [PATCH 07/11] mm/page_alloc: Remove duplicate checks if migratetype should be isolated

2021-04-15 Thread Vlastimil Babka
On 4/15/21 11:33 AM, Mel Gorman wrote: > On Wed, Apr 14, 2021 at 07:21:42PM +0200, Vlastimil Babka wrote: >> On 4/14/21 3:39 PM, Mel Gorman wrote: >> > Both free_pcppages_bulk() and free_one_page() have very similar >> > checks about whether a page's migratetype has changed under the >> > zone lock

Re: [PATCH v3 2/2] kvm/arm64: Try stage2 block mapping for host device MMIO

2021-04-15 Thread Keqian Zhu
Hi Marc, On 2021/4/15 18:23, Marc Zyngier wrote: > On Thu, 15 Apr 2021 03:20:52 +0100, > Keqian Zhu wrote: >> >> Hi Marc, >> >> On 2021/4/14 17:05, Marc Zyngier wrote: >>> + Santosh, who found some interesting bugs in that area before. >>> >>> On Wed, 14 Apr 2021 07:51:09 +0100, >>> Keqian Zhu w

Re: [PATCH] sound: virtio: correct the function name in kernel-doc comment

2021-04-15 Thread Anton Yakovlev
On 15.04.2021 07:26, Randy Dunlap wrote: Fix kernel-doc warning that the wrong function name is used in a kernel-doc comment: ../sound/virtio/virtio_ctl_msg.c:70: warning: expecting prototype for virtsnd_ctl_msg_request(). Prototype was for virtsnd_ctl_msg_response() instead Signed-off-by: Ra

[PATCH][next] can: etas_es58x: Fix a couple of spelling mistakes

2021-04-15 Thread Colin King
From: Colin Ian King There are spelling mistakes in netdev_dbg and netdev_dbg messages, fix these. Signed-off-by: Colin Ian King --- drivers/net/can/usb/etas_es58x/es58x_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/can/usb/etas_es58x/es58x_core.c

Re: [PATCH 1/5] KVM: arm64: Divorce the perf code from oprofile helpers

2021-04-15 Thread Keqian Zhu
Hi Marc, On 2021/4/15 18:42, Marc Zyngier wrote: > On Thu, 15 Apr 2021 07:59:26 +0100, > Keqian Zhu wrote: >> >> Hi Marc, >> >> On 2021/4/14 21:44, Marc Zyngier wrote: >>> KVM/arm64 is the sole user of perf_num_counters(), and really >>> could do without it. Stop using the obsolete API by relying

Re: [PATCH][next] can: etas_es58x: Fix a couple of spelling mistakes

2021-04-15 Thread Marc Kleine-Budde
On 15.04.2021 12:30:50, Colin King wrote: > From: Colin Ian King > > There are spelling mistakes in netdev_dbg and netdev_dbg messages, > fix these. > > Signed-off-by: Colin Ian King Applied to linux-can-next/testing. Tnx, Marc -- Pengutronix e.K. | Marc Kleine-Budde

[PATCH] extcon: maxim: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-15 Thread zhuguangqing83
From: Guangqing Zhu Coccinelle noticed: 1. drivers/extcon/extcon-max14577.c:699:8-33: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT 2. drivers/extcon/extcon-max77693.c:1143:8-33: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT 3. drive

Re: [PATCH 1/1] perf map: Fix error return code in maps__clone()

2021-04-15 Thread Jiri Olsa
On Thu, Apr 15, 2021 at 05:27:44PM +0800, Zhen Lei wrote: > Although 'err' has been initialized to -ENOMEM, but it will be reassigned > by the "err = unwind__prepare_access(...)" statement in the for loop. So > that, the value of 'err' is unknown when map__clone() failed. > > Reported-by: Hulk Rob

Re: [PATCH 1/1] perf data: Fix error return code in perf_data__create_dir()

2021-04-15 Thread Jiri Olsa
On Thu, Apr 15, 2021 at 04:34:16PM +0800, Zhen Lei wrote: > Although 'ret' has been initialized to -1, but it will be reassigned by > the "ret = open(...)" statement in the for loop. So that, the value of > 'ret' is unknown when asprintf() failed. > > Reported-by: Hulk Robot > Signed-off-by: Zhen

Re: [PATCH v2 3/3] Drivers: hv: vmbus: Check for pending channel interrupts before taking a CPU offline

2021-04-15 Thread Andrea Parri
> > @@ -336,6 +372,19 @@ int hv_synic_cleanup(unsigned int cpu) > > if (channel_found && vmbus_connection.conn_state == CONNECTED) > > return -EBUSY; > > > > + if (vmbus_proto_version >= VERSION_WIN10_V4_1) { > > + /* > > +* channel_found == false means that

Re: [PATCH v8 3/7] mm,hugetlb: Drop clearing of flag from prep_new_huge_page

2021-04-15 Thread Michal Hocko
On Thu 15-04-21 12:35:40, Oscar Salvador wrote: > Pages allocated after boot get its private field cleared by means > of post_alloc_hook(). You surely meant to say s@boot@page/cma allocator@ here > Pages allocated during boot, that is directly from the memblock allocator, > get cleared by paging_

Re: [PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Vincent MAILHOL
On Thu. 15 Apr 2021 at 18:04, Marc Kleine-Budde wrote: > On 15.04.2021 09:47:23, Colin King wrote: > > From: Colin Ian King > > > > There is an assignment to *netdev that is can potentially be null but the ^^ Typo: that is can -> that can > > null check

Re: [PATCH v8 7/7] mm,page_alloc: Drop unnecessary checks from pfn_range_valid_contig

2021-04-15 Thread Michal Hocko
On Thu 15-04-21 12:35:44, Oscar Salvador wrote: > pfn_range_valid_contig() bails out when it finds an in-use page or a > hugetlb page, among other things. > We can drop the in-use page check since __alloc_contig_pages can migrate > away those pages, and the hugetlb page check can go too since > iso

Re: [PATCH v2 1/2] spi: Add DFL bus driver for Altera SPI Master

2021-04-15 Thread Mark Brown
On Wed, Apr 14, 2021 at 12:09:50PM -0700, matthew.gerl...@linux.intel.com wrote: > On Wed, 14 Apr 2021, Mark Brown wrote: > > Don't create a platform device here, extend the spi-altera driver to > > register with both DFL and platform buses. > Are you suggesting something like the SPI driver for

Re: [PATCH] platform/x86: intel_chtdc_ti_pwrbtn: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-15 Thread Hans de Goede
Hi, On 4/15/21 11:14 AM, zhuguangqin...@gmail.com wrote: > From: Guangqing Zhu > > Coccinelle noticed: > drivers/platform/x86/intel_chtdc_ti_pwrbtn.c:59:7-32: ERROR: Threaded IRQ > with no primary handler requested without IRQF_ONESHOT > > Signed-off-by: Guangqing Zhu So I was wondering why

Re: [PATCH][next] can: etas_es58x: Fix missing null check on netdev pointer

2021-04-15 Thread Marc Kleine-Budde
On 15.04.2021 20:42:36, Vincent MAILHOL wrote: > On Thu. 15 Apr 2021 at 18:04, Marc Kleine-Budde wrote: > > On 15.04.2021 09:47:23, Colin King wrote: > > > From: Colin Ian King > > > > > > There is an assignment to *netdev that is can potentially be null but the >

Re: [PATCH 0/9] kcsan: Add support for reporting observed value changes

2021-04-15 Thread Mark Rutland
On Wed, Apr 14, 2021 at 01:28:16PM +0200, Marco Elver wrote: > This series adds support for showing observed value changes in reports. > Several clean up and refactors of KCSAN reporting code are done as a > pre-requisite. > This series was originally prepared courtesy of Mark Rutland in > Septemb

[PATCH v3] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-15 Thread chris . chiu
From: Chris Chiu Realtek Hub (0bda:5487) in Dell Dock WD19 sometimes fails to work after the system resumes from suspend with remote wakeup enabled device connected: [ 1947.640907] hub 5-2.3:1.0: hub_ext_port_status failed (err = -71) [ 1947.641208] usb 5-2.3-port5: cannot disable (err = -71) [ 1

[PATCH v5 2/6] KVM: arm64: Move D-cache flush to the fault handlers

2021-04-15 Thread Yanan Wang
We currently uniformly permorm CMOs of D-cache and I-cache in function user_mem_abort before calling the fault handlers. If we get concurrent guest faults(e.g. translation faults, permission faults) or some really unnecessary guest faults caused by BBM, CMOs for the first vcpu are necessary while t

[PATCH v5 1/6] KVM: arm64: Introduce KVM_PGTABLE_S2_GUEST stage-2 flag

2021-04-15 Thread Yanan Wang
The stage-2 page table code in pgtable.c now is generally used for guest stage-2 and host stage-2. There may be some different issues between guest S2 page-table and host S2 page-table that we should consider, e.g., whether CMOs are needed when creating a new mapping. So introduce the KVM_PGTABLE_

[PATCH v5 0/6] KVM: arm64: Improve efficiency of stage2 page table

2021-04-15 Thread Yanan Wang
Hi, This series makes some efficiency improvement of guest stage-2 page table code, and there are some test results to quantify the benefit. The code has been re-arranged based on the latest kvmarm/next tree. Descriptions: We currently uniformly permorm CMOs of D-cache and I-cache in function use

[PATCH v5 4/6] KVM: arm64: Provide invalidate_icache_range at non-VHE EL2

2021-04-15 Thread Yanan Wang
We want to move I-cache maintenance for the guest to the stage-2 page table code for performance improvement. Before it can work, we should first make function invalidate_icache_range available to non-VHE EL2 to avoid compiling or program running error, as pgtable.c is now linked into the non-VHE E

[PATCH v5 5/6] KVM: arm64: Move I-cache flush to the fault handlers

2021-04-15 Thread Yanan Wang
In this patch, we move invalidation of I-cache to the fault handlers to avoid unnecessary I-cache maintenances. On the map path, invalidate the I-cache if we are going to create an executable stage-2 mapping for guest. And on the permission path, invalidate the I-cache if we are going to add an exe

[PATCH v5 3/6] KVM: arm64: Add mm_ops member for structure stage2_attr_data

2021-04-15 Thread Yanan Wang
Also add a mm_ops member for structure stage2_attr_data, since we will move I-cache maintenance for guest stage-2 to the permission path and as a result will need mm_ops for address transformation. Signed-off-by: Yanan Wang --- arch/arm64/kvm/hyp/pgtable.c | 10 ++ 1 file changed, 6 inse

[PATCH v5 6/6] KVM: arm64: Distinguish cases of memcache allocations completely

2021-04-15 Thread Yanan Wang
With a guest translation fault, the memcache pages are not needed if KVM is only about to install a new leaf entry into the existing page table. And with a guest permission fault, the memcache pages are also not needed for a write_fault in dirty-logging time if KVM is only about to update the exist

[PATCH 1/2] mm/vmscan: add sync_shrinkers function

2021-04-15 Thread Christian König
To be able to switch to a spinlock and reduce lock contention in the TTM shrinker we don't want to hold a mutex while unmapping and freeing pages from the pool. But then we somehow need to prevent a race between (for example) the shrinker trying to free pages and hotplug trying to remove the devic

[PATCH 2/2] drm/ttm: optimize the pool shrinker a bit v2

2021-04-15 Thread Christian König
Switch back to using a spinlock again by moving the IOMMU unmap outside of the locked region. v2: Add a comment explaining why we need sync_shrinkers(). Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_pool.c | 44 +- 1 file changed, 22 insertions(+), 2

Re: [PATCH 2/2] iommu/sva: Remove mm parameter from SVA bind API

2021-04-15 Thread Jason Gunthorpe
On Thu, Apr 15, 2021 at 01:33:24PM +0800, Lu Baolu wrote: > Hi Jason, > > On 4/14/21 7:26 PM, Jason Gunthorpe wrote: > > On Wed, Apr 14, 2021 at 02:22:09PM +0800, Lu Baolu wrote: > > > > > I still worry about supervisor pasid allocation. > > > > > > If we use iommu_sva_alloc_pasid() to allocate

Re: [PATCH] memstick: r592: remove unused variable

2021-04-15 Thread Ulf Hansson
On Wed, 14 Apr 2021 at 04:21, Jiapeng Chong wrote: > > Fix the following clang warning: > > drivers/memstick/host/r592.c:363:6: warning: variable ‘len’ set but not > used [-Wunused-but-set-variable]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Applied for next, thanks! Kind reg

Re: [PATCH] mmc: sdhci-pci-gli: Enlarge ASPM L1 entry delay of GL975x

2021-04-15 Thread Ulf Hansson
On Thu, 15 Apr 2021 at 05:23, Ben Chuang wrote: > > GL975x enters ASPM L1 state after a short idle in default. > Enlarge the idle period to 7.9us for improving the R/W performance. > > Signed-off-by: Ben Chuang Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci-pci-gl

Re: [PATCH v1 0/2] Let sanitize not retry in case of timeout/failure

2021-04-15 Thread Ulf Hansson
On Wed, 14 Apr 2021 at 23:22, Bean Huo wrote: > > From: Bean Huo > > > Bean Huo (2): > mmc: core: Add a retries parameter to __mmc_switch function > mmc: core: Let sanitize not retry in case of timeout/failure > > drivers/mmc/core/mmc.c | 22 +++--- > drivers/mmc/core/mmc

Re: [PATCH v2 1/3] mmc: sdhci-s3c: simplify getting of_device_id match data

2021-04-15 Thread Ulf Hansson
On Thu, 15 Apr 2021 at 10:44, Krzysztof Kozlowski wrote: > > Use of_device_get_match_data() to make the code slightly smaller and to > remove the of_device_id table forward declaration. > > Signed-off-by: Krzysztof Kozlowski Applied for next, thanks! Kind regards Uffe > > --- > > Changes sinc

Re: [PATCH v2 3/3] mmc: sdhci-s3c: constify uses of driver/match data

2021-04-15 Thread Ulf Hansson
On Thu, 15 Apr 2021 at 10:44, Krzysztof Kozlowski wrote: > > The driver data (struct sdhci_s3c_drv_data) stored in of_device_id > table is allocated as const and used only in const-way. Skip > unnecessary const-away casts and convert all users to work with pointer > to const. This is both more l

Re: [PATCH v2 2/3] mmc: sdhci-s3c: correct kerneldoc of sdhci_s3c_drv_data

2021-04-15 Thread Ulf Hansson
On Thu, 15 Apr 2021 at 10:44, Krzysztof Kozlowski wrote: > > Correct the name of sdhci_s3c_drv_data structure in kerneldoc: > > drivers/mmc/host/sdhci-s3c.c:143: warning: > expecting prototype for struct sdhci_s3c_driver_data. Prototype was for > struct sdhci_s3c_drv_data instead > > Signed

Re: [PATCH 1/2] dt-bindings: soc: qcom: Add bindings for Qualcomm Memshare service

2021-04-15 Thread Nikita Travkin
14.04.2021 08:15, Bjorn Andersson пишет: > On Sat 10 Apr 03:05 CDT 2021, Nikita Travkin wrote: > >> Hi, sorry for a late reply but I couldn't answer earlier. >> >> 30.03.2021 19:40, Rob Herring ??: >>> On Fri, Mar 19, 2021 at 10:23:20PM +0500, nikitos...@gmail.com wrote: From: Nikit

Re: [PATCH 2/4] PKCS#7: Check codeSigning EKU for kernel module and kexec pe verification

2021-04-15 Thread Varad Gautam
Hi Joey, On 4/9/21 4:46 AM, Lee, Chun-Yi wrote: > This patch adds the logic for checking the CodeSigning extended > key usage when verifying signature of kernel module or > kexec PE binary in PKCS#7. > > Signed-off-by: "Lee, Chun-Yi" > --- > certs/system_keyring.c | 2 +- > crypt

Re: [PATCH] kconfig: split menu.c out of parser.y

2021-04-15 Thread Masahiro Yamada
On Thu, Apr 15, 2021 at 7:54 PM Boris Kolpackov wrote: > > Masahiro Yamada writes: > > > --- /dev/null > > +++ b/scripts/kconfig/internal.h > > @@ -0,0 +1,9 @@ > > +/* SPDX-License-Identifier: GPL-2.0-only */ > > +#ifndef INTERNAL_H > > +#define INTERNAL_H > > + > > +struct menu; > > + > > +exter

Re: [PATCH 3/5] s390: Get rid of oprofile leftovers

2021-04-15 Thread Heiko Carstens
On Thu, Apr 15, 2021 at 11:47:26AM +0100, Marc Zyngier wrote: > On Thu, 15 Apr 2021 11:38:52 +0100, > Heiko Carstens wrote: > > > > On Wed, Apr 14, 2021 at 02:44:07PM +0100, Marc Zyngier wrote: > > > perf_pmu_name() and perf_num_counters() are unused. Drop them. > > > > > > Signed-off-by: Marc Z

Re: [PATCH 10/13] dt-bindings: mfd: add vref_ddr-supply to st,stpmic1 yaml

2021-04-15 Thread Alexandre TORGUE
Hi Ahmad On 4/15/21 12:51 PM, Ahmad Fatoum wrote: Hi, On 15.04.21 12:10, Alexandre Torgue wrote: Add vref_ddr-supply to the STPMIC1 regulators supplies pattern list. Signed-off-by: Alexandre Torgue diff --git a/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml b/Documentation/devicetre

[PATCH v9 1/8] pwm: pca9685: Switch to atomic API

2021-04-15 Thread Clemens Gruber
The switch to the atomic API goes hand in hand with a few fixes to previously experienced issues: - The duty cycle is no longer lost after disable/enable (previously the OFF registers were cleared in disable and the user was required to call config to restore the duty cycle settings) - If one s

[PATCH v9 2/8] pwm: pca9685: Support hardware readout

2021-04-15 Thread Clemens Gruber
Implement .get_state to read-out the current hardware state. The hardware readout may return slightly different values than those that were set in apply due to the limited range of possible prescale and counter register values. Also note that although the datasheet mentions 200 Hz as default freq

[PATCH v9 3/8] pwm: pca9685: Improve runtime PM behavior

2021-04-15 Thread Clemens Gruber
The chip does not come out of POR in active state but in sleep state. To be sure (in case the bootloader woke it up) we force it to sleep in probe. If runtime PM is disabled, we instead wake the chip in .probe and put it to sleep in .remove. Signed-off-by: Clemens Gruber --- Changes since v8: -

[PATCH v9 4/8] dt-bindings: pwm: Support new PWM_USAGE_POWER flag

2021-04-15 Thread Clemens Gruber
Add the flag and corresponding documentation for PWM_USAGE_POWER. Cc: Rob Herring Signed-off-by: Clemens Gruber --- Documentation/devicetree/bindings/pwm/pwm.txt | 3 +++ include/dt-bindings/pwm/pwm.h | 1 + 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree

[PATCH v9 5/8] pwm: core: Support new PWM_USAGE_POWER flag

2021-04-15 Thread Clemens Gruber
If the flag PWM_USAGE_POWER is set on a channel, the PWM driver may optimize the signal as long as the power output is not changed. Depending on the specific driver, the optimization could for example improve EMI (if supported) by phase-shifting the individual channels. Signed-off-by: Clemens Gru

[PATCH v9 6/8] pwm: pca9685: Support new PWM_USAGE_POWER flag

2021-04-15 Thread Clemens Gruber
If PWM_USAGE_POWER is set on a PWM, the pca9685 driver will phase shift the individual channels relative to their channel number. This improves EMI because the enabled channels no longer turn on at the same time, while still maintaining the configured duty cycle / power output. Signed-off-by: Clem

[PATCH v9 7/8] pwm: pca9685: Restrict period change for enabled PWMs

2021-04-15 Thread Clemens Gruber
Previously, the last used PWM channel could change the global prescale setting, even if other channels are already in use. Fix it by only allowing the first enabled PWM to change the global chip-wide prescale setting. If there is more than one channel in use, the prescale settings resulting from t

[PATCH v9 8/8] pwm: pca9685: Add error messages for failed regmap calls

2021-04-15 Thread Clemens Gruber
Regmap operations can fail if the underlying subsystem is not working properly (e.g. hogged I2C bus, etc.) As this is useful information for the user, print an error message if it happens. Let probe fail if the first regmap_read or the first regmap_write fails. Signed-off-by: Clemens Gruber --- C

Re: [PATCH v2 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-04-15 Thread Dietmar Eggemann
On 15/04/2021 11:06, Peter Zijlstra wrote: > On Tue, Apr 13, 2021 at 03:55:15PM +0100, Valentin Schneider wrote: >> On 12/04/21 12:14, Peter Zijlstra wrote: >>> Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. >>> >>> Signed-off-by: Peter Zijlstra (Intel) >>> Reviewed-by: Dietmar Egge

Re: [PATCH v3 5/5] mm/memcg: Optimize user context object stock access

2021-04-15 Thread Masayoshi Mizuma
On Thu, Apr 15, 2021 at 11:44:55AM +0200, Christoph Lameter wrote: > Would you please stop quoting the whole patch when you have nothing to say > about the details? It is enough to just respond without quoting. I was > looking through this trying to find something you said about individual > sectio

Re: consolidate the flock uapi definitions

2021-04-15 Thread Heiko Carstens
On Mon, Apr 12, 2021 at 10:55:40AM +0200, Christoph Hellwig wrote: > Hi all, > > currently we deal with the slight differents in the various architecture > variants of the flock and flock64 stuctures in a very cruft way. This > series switches to just use small arch hooks and define the rest in >

Re: [PATCH 12/13] ARM: dts: stm32: fix DSI port node on STM32MP15

2021-04-15 Thread Alexandre TORGUE
Hi Ahmad On 4/15/21 12:43 PM, Ahmad Fatoum wrote: Hi, On 15.04.21 12:10, Alexandre Torgue wrote: Running "make dtbs_check W=1", some warnings are reported concerning DSI. This patch reorder DSI nodes to avoid: soc/dsi@5a00: unnecessary #address-cells/#size-cells without "ranges" or child

[PATCH v4 0/7] arm64: dts: renesas: Enable GMSL on R8A77970 V3M Eagle

2021-04-15 Thread Jacopo Mondi
Following the recent v3, this new version: - Two new patches (minor fixes) - Address Laurent's comments on gpio-poc bindings and implementation. Naming might still be discussed - Address Laurent's comments on DTS patches - Last patch not for inclusion Thanks j Jacopo Mondi (4): dt-binding

[RFC PATCH] USB:XHCI:skip hub registration

2021-04-15 Thread Longfang Liu
When the number of ports on the USB hub is 0, skip the registration operation of the USB hub. The current Kunpeng930's XHCI hardware controller is defective. The number of ports on its USB3.0 bus controller is 0, and the number of ports on the USB2.0 bus controller is 1. In order to solve this pr

[PATCH v4 1/7] dt-bindings: media: max9286: Re-indent example

2021-04-15 Thread Jacopo Mondi
The dt-bindings examples are usually indented with 4 spaces. The maxim,max9286 schema has the example indented with only 2 spaces, re-indent it. Cosmetic change only. Signed-off-by: Jacopo Mondi --- .../bindings/media/i2c/maxim,max9286.yaml | 214 +- 1 file changed, 107 ins

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