Re: [PATCH] security: keys: delete repeated words in comments

2020-08-17 Thread Jarkko Sakkinen
On Fri, Aug 07, 2020 at 09:51:23AM -0700, Randy Dunlap wrote: > Drop repeated words in comments. > {to, will, the} > > Signed-off-by: Randy Dunlap > Cc: David Howells > Cc: Jarkko Sakkinen > Cc: keyri...@vger.kernel.org > Cc: James Morris > Cc: "Serge E. Hallyn" > Cc:

Re: [PATCH 5.7 000/393] 5.7.16-rc1 review

2020-08-17 Thread Naresh Kamboju
On Mon, 17 Aug 2020 at 21:14, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.7.16 release. > There are 393 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. > >

Re: [PATCH 11/17] bpf/task_iter: In task_file_seq_get_next use fnext_task

2020-08-17 Thread kernel test robot
Hi "Eric, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bpf/master] [also build test WARNING on linus/master v5.9-rc1 next-20200817] [cannot apply to bpf-next/master linux/master] [If your patch is applied to the wrong git tree, kindly drop us a

[PATCH v7 1/2] Add DT bindings YAML schema for PWM fan controller of LGM SoC

2020-08-17 Thread Rahul Tanwar
Intel's LGM(Lightning Mountain) SoC contains a PWM fan controller which is only used to control the fan attached to the system. This PWM controller does not have any other consumer other than fan. Add DT bindings documentation for this PWM fan controller. Signed-off-by: Rahul Tanwar ---

[PATCH v5] perf test: Introduce script for Arm CoreSight testing

2020-08-17 Thread Leo Yan
We need a simple method to test Perf with Arm CoreSight drivers, this could be used for smoke testing when new patch is coming for perf or CoreSight drivers, and we also can use the test to confirm if the CoreSight has been enabled successfully on new platforms. This patch introduces the shell

[PATCH v7 2/2] Add PWM fan controller driver for LGM SoC

2020-08-17 Thread Rahul Tanwar
Intel Lightning Mountain(LGM) SoC contains a PWM fan controller. This PWM controller does not have any other consumer, it is a dedicated PWM controller for fan attached to the system. Add driver for this PWM fan controller. Signed-off-by: Rahul Tanwar --- drivers/pwm/Kconfig | 11 ++

[PATCH] md: only calculate blocksize once and use i_blocksize()

2020-08-17 Thread Xianting Tian
We alreday has the interface i_blocksize(), which can be used to get blocksize, so use it. Only calculate blocksize once and use it within read_page(). Signed-off-by: Xianting Tian --- drivers/md/md-bitmap.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH v7 0/2] pwm: intel: Add PWM driver for a new SoC

2020-08-17 Thread Rahul Tanwar
Patch 1 adds dt binding document in YAML format. Patch 2 add PWM fan controller driver for LGM SoC. v7: - Address code quality related review concerns. - Rename fan related property to pwm-*. - Fix one make dt_binding_check reported error. v6: - Readjust .apply op as per review feedback. - Add

[PATCH v2 1/3] block: Move bio merge related functions into blk-merge.c

2020-08-17 Thread Baolin Wang
It's better to move bio merge related functions into blk-merge.c, which contains all merge related functions. Signed-off-by: Baolin Wang Reviewed-by: Christoph Hellwig --- block/blk-core.c | 156 - block/blk-merge.c | 157

[PATCH v2 0/3] Some clean-ups for bio merge

2020-08-17 Thread Baolin Wang
Hi, There are some duplicated code when trying to merge bio from pluged list and software queue, thus this patch set did some clean-ups when merging a bio. Any comments are welcome. Thanks. Changes from v1: - Drop patch 2 and patch 5 in v1 patch set. - Add reviewed-by tag from Christoph. -

[PATCH v2 2/3] block: Add a new helper to attempt to merge a bio

2020-08-17 Thread Baolin Wang
There are lots of duplicated code when trying to merge a bio from plug list and sw queue, we can introduce a new helper to attempt to merge a bio, which can simplify the blk_mq_bio_list_merge() and blk_attempt_plug_merge(). Meanwhile move the blk_mq_bio_list_merge() into blk-merge.c and rename it

[PATCH v2 3/3] block: Remove blk_mq_attempt_merge() function

2020-08-17 Thread Baolin Wang
The small blk_mq_attempt_merge() function is only called by __blk_mq_sched_bio_merge(), just open code it. Signed-off-by: Baolin Wang --- block/blk-mq-sched.c | 44 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/block/blk-mq-sched.c

Re: [PATCH 00/16] wirless: convert tasklets to use new tasklet_setup()

2020-08-17 Thread Jiri Slaby
On 17. 08. 20, 11:06, Allen Pais wrote: > From: Allen Pais > > Commit 12cc923f1ccc ("tasklet: Introduce new initialization API")' > introduced a new tasklet initialization API. This series converts > all the wireless drivers to use the new tasklet_setup() API General question for the whole

Re: [PATCH 2/4] Revert "lib/string.c: implement a basic bcmp"

2020-08-17 Thread Nathan Chancellor
On Mon, Aug 17, 2020 at 03:02:10PM -0700, Nick Desaulniers wrote: > This reverts commit 5f074f3e192f10c9fade898b9b3b8812e3d83342. > > Use `-fno-builtin-bcmp` instead. > > The issue with using `-fno-builtin-*` flags was that they were not > retained during an LTO link with LLVM. This was fixed

Re: [PATCH] scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler()

2020-08-17 Thread Asutosh Das
On Mon, Aug 17 2020 at 22:21 -0700, Can Guo wrote: Commit 5586dd8ea250a ("scsi: ufs: Fix a race condition between error handler and runtime PM ops") moves the ufshcd_scsi_block_requests() inside err_handler(), but forgets to remove the ufshcd_scsi_unblock_requests() in the early return path.

[PATCH 2/2] soundwire: fix port_ready[] dynamic allocation in mipi_disco and ASoC codecs

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart The existing code allocates memory for the total number of ports. This only works if the ports are contiguous, but will break if e.g. a Devices uses port0, 1, and 14. The port_ready[] array would contain 3 elements, which would lead to an out-of-bounds access.

Re: [PATCH v2] Fixes: tty: serial: earlycon dependency

2020-08-17 Thread Jiri Slaby
On 17. 08. 20, 20:54, Tong Zhang wrote: > parse_options() in drivers/tty/serial/earlycon.c calls uart_parse_earlycon > in drivers/tty/serial/serial_core.c therefore selecting SERIAL_EARLYCON > should automatically select SERIAL_CORE, otherwise will result in symbol > not found error during linking

[PATCH 1/2] soundwire: add definition for maximum number of ports

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart A Device may have at most 15 physical ports (DP0, DP1..DP14). Signed-off-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Reviewed-by: Guennadi Liakhovetski Signed-off-by: Bard Liao --- include/linux/soundwire/sdw.h | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 0/2] soundwire: fix port_ready[] dynamic allocation in

2020-08-17 Thread Bard Liao
The existing code allocates memory for the total number of ports. This only works if the ports are contiguous, but will break if e.g. a Devices uses port0, 1, and 14. The port_ready[] array would contain 3 elements, which would lead to an out-of-bounds access. Conversely in other cases, the wrong

Re: [PATCH 2/2] tasks: Add task_struct addr for lx-ps cmd

2020-08-17 Thread Jan Kiszka
On 18.08.20 06:04, Ritesh Harjani wrote: > task_struct addr in lx-ps cmd seems helpful > > > TASK PIDCOMM > 0x82c2b8c0 0 swapper/0 > 0x888a0ba20040 1 systemd > 0x888a0ba24040 2 kthreadd > 0x888a0ba28040 3 rcu_gp > > Signed-off-by: Ritesh

Re: [PATCH 1/2] proc: Add struct mount & struct super_block addr in lx-mounts command

2020-08-17 Thread Jan Kiszka
On 18.08.20 06:04, Ritesh Harjani wrote: > This is many times found useful while debugging some FS related issue. > > > mount super_block fstype devname pathname options > 0x888a0bfa4b40 0x888a0bfc1000 rootfs none / rw 0 0 > 0x888a02c065c0 0x8889fcf65000

[PATCH 1/2] nvme: set io-scheduler requirement for ZNS

2020-08-17 Thread Kanchan Joshi
Set elevator feature ELEVATOR_F_ZBD_SEQ_WRITE required for ZNS. Signed-off-by: Kanchan Joshi --- drivers/nvme/host/zns.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/zns.c b/drivers/nvme/host/zns.c index 57cfd78731fb..cabd870fb64e 100644 --- a/drivers/nvme/host/zns.c

[PATCH 0/2] enable append-emulation for ZNS

2020-08-17 Thread Kanchan Joshi
Currently NVMe driver rejects the ZNS device if zone-append is not supported natively. Make it accept the device and activate append-emulation instead. This is mostly borrowed from SCSI emulation. The other patch enforces a zone-friendly I/O scheduler for ZNS. Kanchan Joshi (2): nvme: set

[PATCH 2/2] nvme: add emulation for zone-append

2020-08-17 Thread Kanchan Joshi
If drive does not support zone-append natively, enable emulation using regular write. Make emulated zone-append cmd write-lock the zone, preventing concurrent append/write on the same zone. To determine the start-lba for such writes, an array of 32 bit zone-relative write-pointer (WP) positions

[PATCH] x86/cpu: Fix typos and improve the comments in sync_core()

2020-08-17 Thread Ingo Molnar
* tip-bot2 for Ricardo Neri wrote: > --- a/arch/x86/include/asm/sync_core.h > +++ b/arch/x86/include/asm/sync_core.h > @@ -5,6 +5,7 @@ > #include > #include > #include > +#include > > #ifdef CONFIG_X86_32 > static inline void iret_to_self(void) > @@ -54,14 +55,23 @@ static inline

Re: [PATCH v5 5/6] kprobes: Use text_alloc() and text_free()

2020-08-17 Thread Jarkko Sakkinen
On Sun, Jul 26, 2020 at 11:14:08AM +0300, Mike Rapoport wrote: > On Sat, Jul 25, 2020 at 06:16:48AM +0300, Jarkko Sakkinen wrote: > > > I've read the observations in the other threads, but this #ifdef > > > jungle is silly, it's a de-facto open coded text_alloc() with a > > > module_alloc()

Re: [PATCH] block: rnbd: rnbd-srv: silence uninitialized variable warning

2020-08-17 Thread Nathan Chancellor
On Tue, Aug 18, 2020 at 12:03:18AM -0400, Brooke Basile wrote: > Clang warns: > drivers/block/rnbd/rnbd-srv.c:150:6: warning: variable 'err' is used > uninitialized whenever 'if' condition is true > [-Wsometimes-uninitialized] > if (IS_ERR(bio)) { >

Re: [PATCH v2 3/9] ASoC: audio-graph: Identify 'no_pcm' DAI links for DPCM

2020-08-17 Thread Kuninori Morimoto
Hi again > PCM devices are created for FE dai links with 'no-pcm' flag as '0'. > Such DAI links have CPU component which implement either pcm_construct() > or pcm_new() at component or dai level respectively. Based on this, > current patch exposes a helper function to identify such components >

arch/powerpc/include/asm/reg.h:1376:17: sparse: sparse: context imbalance in 'serial8250_console_write' - wrong count at exit

2020-08-17 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd commit: b020aa9d1e875c1c91b1390acdf42320e7060d84 powerpc: cleanup hw_irq.h date: 9 months ago config: powerpc64-randconfig-s031-20200818 (attached as .config)

[PATCH] scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler()

2020-08-17 Thread Can Guo
Commit 5586dd8ea250a ("scsi: ufs: Fix a race condition between error handler and runtime PM ops") moves the ufshcd_scsi_block_requests() inside err_handler(), but forgets to remove the ufshcd_scsi_unblock_requests() in the early return path. Correct the coding mistake. Signed-off-by: Can Guo

Re: [PATCH] Makefile: Yes. Finally remove '-Wdeclaration-after-statement'

2020-08-17 Thread Ingo Molnar
* Linus Torvalds wrote: > On Mon, Aug 17, 2020 at 3:09 PM Pavel Machek wrote: > > > > Submitter believes "wild variable placement" can help with > > #ifdefs.. and that may be actually good tradeoff. > > I agree that it can help in some cases. > > But it can also make it really hard to find

[PATCH v11 4/5] drm/msm/dpu: add display port support in DPU

2020-08-17 Thread Tanmay Shah
From: Jeykumar Sankaran Add display port support in DPU by creating hooks for DP encoder enumeration and encoder mode initialization. changes in v2: - rebase on [2] (Sean Paul) - remove unwanted error checks and switch cases (Jordan Crouse) [1]

[PATCH v11 3/5] drm/msm/dp: add support for DP PLL driver

2020-08-17 Thread Tanmay Shah
From: Chandan Uddaraju Add the needed DP PLL specific files to support display port interface on msm targets. The DP driver calls the DP PLL driver registration. The DP driver sets the link and pixel clock sources. Changes in v2: -- Update copyright markings on all relevant files. -- Use

[PATCH v11 0/5] Add support for DisplayPort driver on SnapDragon

2020-08-17 Thread Tanmay Shah
These patches add Display-Port driver on SnapDragon/msm hardware. This series also contains device-tree bindings for msm DP driver. It also contains Makefile and Kconfig changes to compile msm DP driver. The block diagram of DP driver is shown below: +-+

[PATCH v11 5/5] drm/msm/dp: Add Display Port HPD feature

2020-08-17 Thread Tanmay Shah
Configure HPD registers in DP controller and enable HPD interrupt. Add interrupt to handle HPD connect and disconnect events. Changes in v8: None Signed-off-by: Tanmay Shah --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 18 drivers/gpu/drm/msm/dp/dp_catalog.c | 63 --

[PATCH v11 1/5] drm: add constant N value in helper file

2020-08-17 Thread Tanmay Shah
From: Chandan Uddaraju The constant N value (0x8000) is used by i915 DP driver. Define this value in dp helper header file to use in multiple Display Port drivers. Change i915 driver accordingly. Change in v6: Change commit message Signed-off-by: Chandan Uddaraju Signed-off-by: Vara Reddy

Re: [PATCH 5.8 000/464] 5.8.2-rc1 review

2020-08-17 Thread Naresh Kamboju
On Mon, 17 Aug 2020 at 20:49, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.8.2 release. > There are 464 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. > >

[PATCH] kprobes: Use module_name() macro

2020-08-17 Thread Jarkko Sakkinen
It is advised to use module_name() macro instead of dereferencing mod->name directly. This makes sense for consistencys sake and also it prevents a hard dependency to CONFIG_MODULES. Cc: linux...@kvack.org Cc: Andi Kleen Cc: Ard Biesheuvel Cc: Jessica Yu Cc: Mark Rutland , Cc: Masami Hiramatsu

Re: [PATCH 10/17] proc/fd: In proc_readfd_common use fnext_task

2020-08-17 Thread Alexei Starovoitov
On Mon, Aug 17, 2020 at 8:46 PM Eric W. Biederman wrote: > > I am definitely willing to look at it. Do we think there would be enough > traffic on task_lock from /proc//fd access to make it work doing? not from /proc, but bpf iterator in kernel/bpf/task_iter.c that is being modified in the other

linux-next: Tree for Aug 18

2020-08-17 Thread Stephen Rothwell
Hi all, Changes since 20200817: New tree: memblock-fixes My fixes tree contains: 73c7adb54169 ("device_cgroup: Fix RCU list debugging warning") The kspp-gustavo tree gained a build failure for which I applied a patch. That exposed another failure, so I used the version from nex

arch/mips/include/asm/mach-loongson64/topology.h:7:27: error: implicit declaration of function 'cpu_logical_map'

2020-08-17 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd commit: 02fce139fd14d3b0126f0a72e8c0a83b5b01f9f5 Merge tag 'mips_fixes_5.4_3' into mips-next date: 10 months ago config: mips-randconfig-r033-20200818 (attached as

Re: [PATCH] ath10k: fix the status check and wrong return

2020-08-17 Thread Steve deRosier
On Mon, Aug 17, 2020 at 6:43 PM Tang Bin wrote: > > Hi Kalle: > > 在 2020/8/17 22:26, Kalle Valo 写道: > >> In the function ath10k_ahb_clock_init(), devm_clk_get() doesn't > >> return NULL. Thus use IS_ERR() and PTR_ERR() to validate > >> the returned value instead of IS_ERR_OR_NULL(). > > Why?

Re: [PATCH v4 3/7] genirq: Introduce irq_suspend_one() and irq_resume_one() callbacks

2020-08-17 Thread Maulik Shah
Hi, On 8/14/2020 4:28 AM, Doug Anderson wrote: Hi, On Thu, Aug 13, 2020 at 3:09 PM Thomas Gleixner wrote: Specifically the problem we're trying to address is when an IRQ is marked as "disabled" (driver called disable_irq()) but also marked as "wakeup" (driver called enable_irq_wake()). As

[RFC PATCH] xen/gntdev.c: Convert get_user_pages*() to pin_user_pages*()

2020-08-17 Thread Souptick Joarder
In 2019, we introduced pin_user_pages*() and now we are converting get_user_pages*() to the new API as appropriate. [1] & [2] could be referred for more information. This is case 5 as per document [1]. [1] Documentation/core-api/pin_user_pages.rst [2] "Explicit pinning of user-space pages":

[PATCH] mm/hotplug: Enumerate memory range offlining failure reasons

2020-08-17 Thread Anshuman Khandual
Currently a debug message is printed describing the reason for memory range offline failure. This just enumerates existing reason codes which improves overall readability and makes it cleaner. This does not add any functional change. Cc: Andrew Morton Cc: David Hildenbrand Cc: Michal Hocko Cc:

Re: [PATCH bpf-next v8 6/7] bpf: Allow local storage to be used from LSM programs

2020-08-17 Thread Martin KaFai Lau
On Mon, Aug 03, 2020 at 06:46:54PM +0200, KP Singh wrote: > From: KP Singh > > Adds support for both bpf_{sk, inode}_storage_{get, delete} to be used > in LSM programs. These helpers are not used for tracing programs > (currently) as their usage is tied to the life-cycle of the object and >

Re: [PATCH v6 02/15] iommu: Report domain nesting info

2020-08-17 Thread Jacob Pan
On Sun, 16 Aug 2020 14:40:57 +0200 Auger Eric wrote: > Hi Yi, > > On 8/14/20 9:15 AM, Liu, Yi L wrote: > > Hi Eric, > > > >> From: Auger Eric > >> Sent: Thursday, August 13, 2020 8:53 PM > >> > >> Yi, > >> On 7/28/20 8:27 AM, Liu Yi L wrote: > >>> IOMMUs that support nesting translation

[PATCH] block: rnbd: rnbd-srv: silence uninitialized variable warning

2020-08-17 Thread Brooke Basile
Clang warns: drivers/block/rnbd/rnbd-srv.c:150:6: warning: variable 'err' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (IS_ERR(bio)) { ^~~ drivers/block/rnbd/rnbd-srv.c:177:9: note:

[PATCH 2/2] tasks: Add task_struct addr for lx-ps cmd

2020-08-17 Thread Ritesh Harjani
task_struct addr in lx-ps cmd seems helpful TASK PIDCOMM 0x82c2b8c0 0 swapper/0 0x888a0ba20040 1 systemd 0x888a0ba24040 2 kthreadd 0x888a0ba28040 3 rcu_gp Signed-off-by: Ritesh Harjani --- scripts/gdb/linux/tasks.py | 9 + 1 file

[PATCH 0/2] scripts:gdb: Add few structs in gdb scripts

2020-08-17 Thread Ritesh Harjani
I was using these structs info internally in my gdb scripts. So sending it out for merge to upstream. Ritesh Harjani (2): proc: Add struct mount & struct super_block addr in lx-mounts command tasks: Add task_struct addr for lx-ps cmd scripts/gdb/linux/lists.py | 43

[PATCH 1/2] proc: Add struct mount & struct super_block addr in lx-mounts command

2020-08-17 Thread Ritesh Harjani
This is many times found useful while debugging some FS related issue. mount super_block fstype devname pathname options 0x888a0bfa4b40 0x888a0bfc1000 rootfs none / rw 0 0 0x888a02c065c0 0x8889fcf65000 ext4 /dev/root / rw ,relatime 0 0 0x8889fc8cc040

[PATCH net-next] net: dsa: loop: Return VLAN table size through devlink

2020-08-17 Thread Florian Fainelli
We return the VLAN table size through devlink as a simple parameter, we do not support altering it at runtime: devlink resource show mdio_bus/fixed-0:1f mdio_bus/fixed-0:1f: name VTU size 4096 occ 4096 unit entry dpipe_tables none Signed-off-by: Florian Fainelli ---

drivers/scsi/sg.c:1145 sg_ioctl_common() warn: inconsistent returns 'sfp->rq_list_lock'.

2020-08-17 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd commit: d320a9551e394cb2d842fd32d28e9805c2a18fbb compat_ioctl: scsi: move ioctl handling into drivers date: 8 months ago config: ia64-randconfig-m031-20200818

[PATCH v5 1/2] ASoC: qcom: dt-bindings: Add sc7180 machine bindings

2020-08-17 Thread Cheng-Yi Chiang
Add devicetree bindings documentation file for sc7180 sound card. Signed-off-by: Cheng-Yi Chiang --- .../bindings/sound/qcom,sc7180.yaml | 127 ++ 1 file changed, 127 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,sc7180.yaml diff --git

[PATCH v5 2/2] ASoC: qcom: sc7180: Add machine driver for sound card registration

2020-08-17 Thread Cheng-Yi Chiang
From: Ajit Pandey Add new driver to register sound card on sc7180 trogdor board and do the required configuration for lpass cpu dai and external codecs connected over MI2S interfaces. Signed-off-by: Ajit Pandey Signed-off-by: Cheng-Yi Chiang Reviewed-by: Tzung-Bi Shih ---

[PATCH v5 0/2] Add documentation and machine driver for SC7180 sound card

2020-08-17 Thread Cheng-Yi Chiang
Note: - The machine driver patch depends on LPASS patch series so it is not ready to be merged now. ASoC: qcom: Add support for SC7180 lpass variant https://patchwork.kernel.org/cover/11714317/ - The machine driver patch is made by the collaboration of Cheng-Yi Chiang Rohit kumar Ajit

Re: [PATCH] ACPI/IORT: Drop the unused @ops of iort_add_device_replay()

2020-08-17 Thread Hanjun Guo
On 2020/8/17 18:59, Zenghui Yu wrote: Since commit d2e1a003af56 ("ACPI/IORT: Don't call iommu_ops->add_device directly"), we use the IOMMU core API to replace a direct invoke of the specified callback. The parameter @ops has therefore became unused. Let's drop it. Signed-off-by: Zenghui Yu ---

Re: [PATCH] perf: arm-spe: Fix check error when synthesizing events

2020-08-17 Thread liwei (GF)
Ping... On 2020/7/24 16:32, Leo Yan wrote: > Hi Wei, > > On Fri, Jul 24, 2020 at 03:26:28PM +0800, Wei Li wrote: >> In arm_spe_read_record(), when we are processing an events packet, >> 'decoder->packet.index' is the length of payload, which has been >> transformed in payloadlen(). So correct

[PATCH v3] mfd: sprd: Add wakeup capability for PMIC irq

2020-08-17 Thread Chunyan Zhang
From: Baolin Wang When changing to use suspend-to-idle to save power, the PMIC irq can not wakeup the system due to lack of wakeup capability, which will cause the sub-irqs (such as power key) of the PMIC can not wake up the system. Thus we can add the wakeup capability for PMIC irq to solve

[PATCH V3 3/5] dt-bindings: serial: Convert i.MX uart to json-schema

2020-08-17 Thread Anson Huang
Convert the i.MX uart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- no change. --- .../devicetree/bindings/serial/fsl-imx-uart.txt| 40 -- .../devicetree/bindings/serial/fsl-imx-uart.yaml | 92 ++ 2 files changed, 92

[PATCH V3 4/5] dt-bindings: serial: Convert MXS auart to json-schema

2020-08-17 Thread Anson Huang
Convert the MXS auart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- changes since V2: - update maintainer. --- .../devicetree/bindings/serial/fsl-mxs-auart.txt | 53 - .../devicetree/bindings/serial/fsl-mxs-auart.yaml | 91

[PATCH V3 1/5] dt-bindings: clock: Update i.MX28 example

2020-08-17 Thread Anson Huang
Update the i.MX28 clock example to align with MXS AUART binding doc to avoid below build error: Documentation/devicetree/bindings/clock/imx28-clock.example.dt.yaml: serial@8006a000: clocks: [[4294967295, 45]] is too short Documentation/devicetree/bindings/clock/imx28-clock.example.dt.yaml:

[PATCH V3 2/5] dt-bindings: clock: Update i.MX23 example

2020-08-17 Thread Anson Huang
Update the i.MX23 clock example to align with MXS AUART binding doc to avoid below build error: Documentation/devicetree/bindings/clock/imx23-clock.example.dt.yaml: serial@8006c000: clocks: [[4294967295, 32]] is too short Documentation/devicetree/bindings/clock/imx23-clock.example.dt.yaml:

[PATCH V3 5/5] dt-bindings: serial: Convert NXP lpuart to json-schema

2020-08-17 Thread Anson Huang
Convert the NXP lpuart binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- changes since V2: - update maintainer, the original owner's email address is no longer valid, use one of the patch contributors as well as NXP's UART owner as maintainer. ---

[PATCH v3] arm64: dts: qcom: sc7180: Add DisplayPort HPD pin dt node

2020-08-17 Thread Tanmay Shah
This node defines alternate DP HPD functionality of GPIO. Signed-off-by: Tanmay Shah --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index

[RFC PATCH 1/2] sparc64: remove mm_cpumask clearing to fix kthread_use_mm race

2020-08-17 Thread Nicholas Piggin
The de facto (and apparently uncommented) standard for using an mm had, thanks to this code in sparc if nothing else, been that you must have a reference on mm_users *and that reference must have been obtained with mmget()*, i.e., from a thread with a reference to mm_users that had used the mm.

[RFC PATCH 2/2] powerpc/64s/radix: Fix mm_cpumask trimming race vs kthread_use_mm

2020-08-17 Thread Nicholas Piggin
Commit 0cef77c7798a7 ("powerpc/64s/radix: flush remote CPUs out of single-threaded mm_cpumask") added a mechanism to trim the mm_cpumask of a process under certain conditions. One of the assumptions is that mm_users would not be incremented via a reference outside the process context with

Re: [PATCH] genksyms: keywords: Use __restrict not _restrict

2020-08-17 Thread Randy Dunlap
On 8/17/20 6:05 PM, Masahiro Yamada wrote: > On Sun, Aug 16, 2020 at 7:46 AM Randy Dunlap wrote: >> >> On 8/14/20 8:17 PM, Joe Perches wrote: >>> On Fri, 2020-08-14 at 20:05 -0700, Linus Torvalds wrote: On Fri, Aug 14, 2020 at 7:14 PM Nick Desaulniers wrote: > What's KAO? Urban

Re: [PATCH v6] arm64: dts: qcom: sc7180: Add Display Port dt node

2020-08-17 Thread Tanmay Shah
On 2020-08-17 17:24, Stephen Boyd wrote: Quoting Tanmay Shah (2020-08-17 15:53:00) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 31b9217bb5bf..bf2f2bb1aa79 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++

Re: [PATCH RESEND 3/5] block: Add a new helper to attempt to merge a bio

2020-08-17 Thread Baolin Wang
On Mon, Aug 17, 2020 at 02:24:40PM +0200, Christoph Hellwig wrote: > On Mon, Aug 17, 2020 at 08:10:02PM +0800, Baolin Wang wrote: > > On Mon, Aug 17, 2020 at 08:26:34AM +0200, Christoph Hellwig wrote: > > > On Mon, Aug 17, 2020 at 12:09:17PM +0800, Baolin Wang wrote: > > > > There are lots of

Re: [PATCH RESEND 5/5] block: Remove __blk_mq_sched_bio_merge() helper

2020-08-17 Thread Baolin Wang
On Mon, Aug 17, 2020 at 02:26:08PM +0200, Christoph Hellwig wrote: > On Mon, Aug 17, 2020 at 08:14:08PM +0800, Baolin Wang wrote: > > On Mon, Aug 17, 2020 at 08:32:41AM +0200, Christoph Hellwig wrote: > > > On Mon, Aug 17, 2020 at 12:09:19PM +0800, Baolin Wang wrote: > > > > The

Re: [PATCH] HID: google: add google vivaldi HID driver

2020-08-17 Thread Randy Dunlap
On 8/17/20 7:49 PM, Sean O'Brien wrote: > diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig > index 05315b434276..5676d4f521c9 100644 > --- a/drivers/hid/Kconfig > +++ b/drivers/hid/Kconfig > @@ -397,6 +397,15 @@ config HID_GOOGLE_HAMMER > help > Say Y here if you have a Google

[PATCH v2 1/2] clocksource: arm_arch_timer: Use stable count reader in erratum sne

2020-08-17 Thread Keqian Zhu
In commit 0ea415390cd3 ("clocksource/arm_arch_timer: Use arch_timer_read_counter to access stable counters"), we separate stable and normal count reader to omit unnecessary overhead on systems that have no timer erratum. However, in erratum_set_next_event_tval_generic(), count reader becomes

[PATCH v2 0/2] clocksource: arm_arch_timer: Some fixes

2020-08-17 Thread Keqian Zhu
change log: v2: - Do not revert commit 0ea415390cd3, fix it instead. - Correct the tags of second patch. Keqian Zhu (2): clocksource: arm_arch_timer: Use stable count reader in erratum sne clocksource: arm_arch_timer: Correct fault programming of CNTKCTL_EL1.EVNTI

[PATCH v2 2/2] clocksource: arm_arch_timer: Correct fault programming of CNTKCTL_EL1.EVNTI

2020-08-17 Thread Keqian Zhu
ARM virtual counter supports event stream, it can only trigger an event when the trigger bit (the value of CNTKCTL_EL1.EVNTI) of CNTVCT_EL0 changes, so the actual period of event stream is 2^(cntkctl_evnti + 1). For example, when the trigger bit is 0, then virtual counter trigger an event for

[PATCH v2 07/12] soundwire: intel: add CLK_STOP_TEARDOWN for pm_runtime suspend

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart Now that we have options, add support for TEARDOWN mode (same functionality as existing code) All other modes will be added in follow-up patches. Signed-off-by: Pierre-Louis Bossart Signed-off-by: Bard Liao --- drivers/soundwire/intel.c | 82

[PATCH v2 03/12] soundwire: intel: fix race condition on system resume

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart Previous patches took care of the case where the master device is pm_runtime 'suspended' when a system suspend occurs. In the case where the master device was not suspended, e.g. if suspend occurred while streaming audio, Intel validation noticed a race condition: the

[PATCH v2 11/12] soundwire: intel: support clock_stop mode without quirks

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart In this mode, on restart the bus restarts immediately, the Slaves remain synchronized and all context is kept intact. Signed-off-by: Pierre-Louis Bossart Signed-off-by: Rander Wang Signed-off-by: Bard Liao --- drivers/soundwire/intel.c | 21 -

[PATCH v2 06/12] soundwire: intel: pm_runtime idle scheduling

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart Add quirk and pm_runtime idle scheduling to let the Master suspend if no Slaves become attached. This can happen when a link is not marked as disabled and has devices exposed in the DSDT, if the power is controlled by sideband means or the link includes a pluggable

[PATCH v2 09/12] soundwire: intel: add CLK_STOP_NOT_ALLOWED support

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart In case the clock needs to keep running, we need to prevent the Master from entering pm_runtime suspend. Signed-off-by: Pierre-Louis Bossart Signed-off-by: Bard Liao --- drivers/soundwire/intel.c | 20 1 file changed, 20 insertions(+) diff

[PATCH v2 04/12] soundwire: intel: call helper to reset Slave states on resume

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart This helps make sure they are all UNATTACHED and reset the state machines. At the moment we perform a bus reset both for system resume and pm_runtime resume, this will be modified when clock-stop mode is supported Signed-off-by: Pierre-Louis Bossart Signed-off-by:

[PATCH v2 05/12] soundwire: intel: reinitialize IP+DSP in .prepare(), but only when resuming

2020-08-17 Thread Bard Liao
The .prepare() callback is invoked for normal streaming, underflows or during the system resume transition. In the latter case, the context for the ALH PDIs is lost, and the DSP is not initialized properly either, but the bus parameters don't need to be recomputed. Conversely, when doing a

[PATCH v2 10/12] soundwire: intel_init: handle power rail dependencies for clock stop mode

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart When none of the clock stop quirks is specified, the Master IP will assume the context is preserved and will not reset the Bus and restart enumeration. Due to power rail dependencies, the HDaudio controller needs to remain powered and prevented from executing its

[PATCH v2 01/12] soundwire: intel: add pm_runtime support

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart Add basic hooks in DAI .startup and .shutdown callbacks. The SoundWire IP should be powered between those two calls. The power dependencies between SoundWire and DSP are handled with the parent/child relationship, before the SoundWire master device becomes active the

[PATCH v2 08/12] soundwire: intel: add CLK_STOP_BUS_RESET support

2020-08-17 Thread Bard Liao
From: Rander Wang Move existing pm_runtime suspend under the CLK_STOP_TEARDOWN case. In this mode the Master IP will lose all context but in-band wakes are supported. On pm_runtime resume a complete re-enumeration will be performed after a bus reset. Signed-off-by: Rander Wang Signed-off-by:

[PATCH v2 12/12] soundwire: intel: refine runtime pm for SDW_INTEL_CLK_STOP_BUS_RESET

2020-08-17 Thread Bard Liao
From: Rander Wang When all the links are suspended, the HDaudio controller may suspend and the power rails to the SoundWire IP may be disabled, requiring a complete re-initialization/enumeration on resume. However, if one or more Masters remained active, the HDaudio controller will remain active

[PATCH v2 02/12] soundwire: intel: reset pm_runtime status during system resume

2020-08-17 Thread Bard Liao
From: Pierre-Louis Bossart The system resume does the entire bus re-initialization and brings it to full-power. If the device was pm_runtime suspended, there is no need to run the pm_runtime resume sequence after the system runtime. Follow the documentation from runtime_pm.rst, and

[PATCH v2 00/12] soundwire: intel: add power management support

2020-08-17 Thread Bard Liao
This series adds power management support for Intel soundwire links. Changes in v2: - Move "#include " to the first required patch. - Fit debug log in single line. Bard Liao (1): soundwire: intel: reinitialize IP+DSP in .prepare(), but only when resuming Pierre-Louis Bossart (9):

Re: [PATCH] mm/page_reporting: the "page" must not be the list head

2020-08-17 Thread Wei Yang
On Mon, Aug 17, 2020 at 09:05:32AM -0700, Alexander Duyck wrote: > > >On 8/17/2020 2:35 AM, David Hildenbrand wrote: >> On 17.08.20 10:48, Wei Yang wrote: >> > If "page" is the list head, list_for_each_entry_safe() would stop >> > iteration. >> > >> > Signed-off-by: Wei Yang >> > --- >> >

[PATCH 3/3] libnvdimm/bus: simplify walk_to_nvdimm_bus()

2020-08-17 Thread Zhen Lei
I first want to move dev_WARN_ONCE() after "if (dev)" branch, but further I find the "if (dev)" can only be true when is_nvdimm_bus(dev) successed. No functional change. In fact, the compiler can optimize it correctly. I run "size drivers/nvdimm/bus.o" and find nothing has changed. So it's just

[PATCH 1/3] libnvdimm: fix memleak in of_pmem.c

2020-08-17 Thread Zhen Lei
The memory priv->bus_desc.provider_name allocated by kstrdup() should be freed. Signed-off-by: Zhen Lei --- drivers/nvdimm/of_pmem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvdimm/of_pmem.c b/drivers/nvdimm/of_pmem.c index 10dbdcdfb9ce913..1292ffca7b2ecc0 100644 ---

[PATCH 2/3] libnvdimm: add sanity check for provider_name in of_pmem_region_probe()

2020-08-17 Thread Zhen Lei
kstrdup() may return NULL because of no memory, check it. Signed-off-by: Zhen Lei --- drivers/nvdimm/of_pmem.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/nvdimm/of_pmem.c b/drivers/nvdimm/of_pmem.c index 1292ffca7b2ecc0..13c4c274ca6ea88 100644 ---

[PATCH 0/3] bugfix and optimize for drivers/nvdimm

2020-08-17 Thread Zhen Lei
I found a memleak when I learned the drivers/nvdimm code today. And I also added a sanity check for priv->bus_desc.provider_name, because strdup() maybe failed. Patch 3 is a trivial source code optimization. Zhen Lei (3): libnvdimm: fix memleak in of_pmem.c libnvdimm: add sanity check for

Re: [PATCH v2] scsi: ufs: ti-j721e-ufs: Fix error return in ti_j721e_ufs_probe()

2020-08-17 Thread Martin K. Petersen
On Thu, 6 Aug 2020 15:01:35 +0800, Jing Xiangfeng wrote: > Fix to return error code PTR_ERR() from the error handling case instead > of 0. Applied to 5.9/scsi-fixes, thanks! [1/1] scsi: ufs: ti-j721e-ufs: Fix error return in ti_j721e_ufs_probe()

Re: [PATCH v1] scsi: ufs-mediatek: Fix incorrect time to wait link status

2020-08-17 Thread Martin K. Petersen
On Sun, 9 Aug 2020 13:57:02 +0800, Stanley Chu wrote: > Fix incorrect calculation of "ms" based waiting time in > function ufs_mtk_setup_clocks(). Applied to 5.9/scsi-fixes, thanks! [1/1] scsi: ufs-mediatek: Fix incorrect time to wait link status

Re: [PATCH] scsi: ufs-pci: Add quirk for broken auto-hibernate for Intel EHL

2020-08-17 Thread Martin K. Petersen
On Mon, 10 Aug 2020 17:10:24 +0300, Adrian Hunter wrote: > Intel EHL UFS host controller advertises auto-hibernate capability but it > does not work correctly. Add a quirk for that. Applied to 5.9/scsi-fixes, thanks! [1/1] scsi: ufs-pci: Add quirk for broken auto-hibernate for Intel EHL

Re: [PATCH V2 1/2] scsi: ufs: Fix interrupt error message for shared interrupts

2020-08-17 Thread Martin K. Petersen
On Tue, 11 Aug 2020 16:39:35 +0300, Adrian Hunter wrote: > The interrupt might be shared, in which case it is not an error for the > interrupt handler to be called when the interrupt status is zero, so > don't print the message unless there was enabled interrupt status. Applied to

Re: [PATCH v3] scsi: ufs: Fix possible infinite loop in ufshcd_hold

2020-08-17 Thread Martin K. Petersen
On Sun, 9 Aug 2020 13:07:34 +0800, Stanley Chu wrote: > In ufshcd_suspend(), after clk-gating is suspended and link is set > as Hibern8 state, ufshcd_hold() is still possibly invoked before > ufshcd_suspend() returns. For example, MediaTek's suspend vops may > issue UIC commands which would call

Lieber Freund (Assalamu Alaikum),?

2020-08-17 Thread AISHA GADDAFI
-- Lieber Freund (Assalamu Alaikum), Ich bin vor einer privaten Suche auf Ihren E-Mail-Kontakt gestoßen Ihre Hilfe. Mein Name ist Aisha Al-Qaddafi, eine alleinerziehende Mutter und eine Witwe mit drei Kindern. Ich bin die einzige leibliche Tochter des Spätlibyschen Präsident (verstorbener Oberst

Re: [PATCH v2 0/2] scsi: ufs: two fixups of ufshcd_abort()

2020-08-17 Thread Martin K. Petersen
On Tue, 11 Aug 2020 16:18:57 +0200, Bean Huo wrote: > Changelog: > > v1 - v2: > 1. add patch [1/2], which is from Stanley Chu > 2. change goto command in patch [2/2], let it goto cleanup flow > > Bean Huo (1): > scsi: ufs: no need to send one Abort Task TM in case the task in DB >

  1   2   3   4   5   6   7   8   9   10   >