Re: [PATCH 2/8] dt-bindings: gpio: include common schema in GPIO controllers

2020-09-16 Thread Krzysztof Kozlowski
On Thu, 17 Sep 2020 at 08:40, Geert Uytterhoeven wrote: > > Hi Krzysztof, > > On Wed, Sep 16, 2020 at 6:23 PM Krzysztof Kozlowski wrote: > > Include the common GPIO schema in GPIO controllers to be sure all common > > properties are properly validated. > > > > Signed-off-by: Krzysztof Kozlowski

[PATCH v3] Introduce support for Systems Management Driver over WMI for Dell Systems

2020-09-16 Thread Divya Bharathi
The Dell WMI Systems Management Driver provides a sysfs interface for systems management to enable BIOS configuration capability on certain Dell Systems. This driver allows user to configure Dell systems with a uniform common interface. To facilitate this, the patch introduces a generic way for dr

Re: [PATCH] MAINTAINERS: Add entry for Broadcom BDC driver

2020-09-16 Thread Chunfeng Yun
On Sun, 2020-09-06 at 12:55 -0700, Florian Fainelli wrote: > > On 7/9/2020 8:48 PM, Florian Fainelli wrote: > > The Broadcom BDC driver did not have a MAINTAINERS entry which made it > > escape review from Al and myself, add an entry so the relevant mailing > > lists and people are copied. > > >

[PATCH v2] scripts/setlocalversion: make git describe output more reliable

2020-09-16 Thread Rasmus Villemoes
When building for an embedded target using Yocto, we're sometimes observing that the version string that gets built into vmlinux (and thus what uname -a reports) differs from the path under /lib/modules/ where modules get installed in the rootfs, but only in the length of the -gabc123def suffix. He

[PATCH -next] mm/madvise: Remove set but not used variable 'zone'

2020-09-16 Thread Liu Shixin
Fixes gcc '-Wunused-but-set-variable' warning: mm/madvise.c: In function 'madvise_inject_error': mm/madvise.c:882:15: warning: unused variable 'zone' [-Wunused-variable] After 4b63fdbe2b25 ("mm: remove the now-unnecessary mmget_still_valid() hack"), variable 'zone' is never used. Remove it to avo

[PATCH -next] PCI: dwc: Remove set but not used variable

2020-09-16 Thread Liu Shixin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/pci/controller/dwc/pci-dra7xx.c: In function 'dra7xx_pcie_establish_link': drivers/pci/controller/dwc/pci-dra7xx.c:142:6: warning: unused variable 'exp_cap_off' [-Wunused-variable] After 3af45d34d30c ("PCI: dwc: Centralize link gen setting"

[PATCH -next] dmaengine: sf-pdma: Remove set but not used variable "desc"

2020-09-16 Thread Liu Shixin
Fixes gcc '-Wunused-but-set-variable' warning: drivers/dma/sf-pdma/sf-pdma.c: In function 'sf_pdma_donebh_tasklet': drivers/dma/sf-pdma/sf-pdma.c:287:23: warning: unused variable 'desc' [-Wunused-variable] After commit 8f6b6d060602 ("dmaengine: sf-pdma: Fix an error that calls callback twice"),

Re: [PATCH v3 2/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary

2020-09-16 Thread Ard Biesheuvel
On Thu, 17 Sep 2020 at 05:16, Leizhen (ThunderTown) wrote: > > > > On 2020/9/16 19:15, Ard Biesheuvel wrote: > > (+ Arnd, Nico) > > > > On Wed, 16 Sep 2020 at 05:51, Zhen Lei wrote: > >> > >> Currently, only support the kernels where the base of physical memory is > >> at a 16MiB boundary. Becaus

Re: [PATCH] net: make netdev_wait_allrefs wake-able

2020-09-16 Thread Eric Dumazet
On Thu, Sep 17, 2020 at 8:33 AM Francesco Ruggeri wrote: > > > static inline void dev_put(struct net_device *dev) > > { > > + struct task_struct *destroy_task = dev->destroy_task; > > + > > this_cpu_dec(*dev->pcpu_refcnt); > > + if (destroy_task) > > + wake_up_p

Re: [PATCH] pmem: export the symbols __copy_user_flushcache and __copy_from_user_flushcache

2020-09-16 Thread Christoph Hellwig
On Wed, Sep 16, 2020 at 10:40:13AM -0700, Dan Williams wrote: > > Before nvfs gets included in the kernel, I need to distribute it as a > > module. So, it would make my maintenance easier. But if you don't want to > > export it now, no problem, I can just copy __copy_user_flushcache from the > > ke

[PATCH v2 1/2] dt-bindings: power: amlogic,meson-ee-pwrc: add Amlogic AXG power controller bindings

2020-09-16 Thread Neil Armstrong
This add the bindings of the Power Controller found in the Amlogic AXG SoCs. Signed-off-by: Neil Armstrong Reviewed-by: Rob Herring Acked-by: Martin Blumenstingl --- .../bindings/power/amlogic,meson-ee-pwrc.yaml | 23 +-- include/dt-bindings/power/meson-axg-power.h | 14 +

[PATCH v2 0/2] soc: amlogic: add support for the Meson AXG Power Controller

2020-09-16 Thread Neil Armstrong
This adds the bindings and support for the Power Controller found in the Amlogic AXG SoCs. The Power Controller in the Amlogic AXG SoCs is similar to the GXL one but with less VPU memory domains to enable and a supplementary Audio memory power domain. Changes since v1 at [1]: - Collected review &

[PATCH v2 2/2] soc: amlogic: meson-ee-pwrc: add support for the Meson AXG SoCs

2020-09-16 Thread Neil Armstrong
The Power Controller in the Amlogic AXG SoCs is similar to the GXL one but with less VPU memory domains to enable and a supplementary Audio memory power domain. Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- drivers/soc/amlogic/meson-ee-pwrc.c | 26 ++ 1

Re: More filesystem need this fix (xfs: use MMAPLOCK around filemap_map_pages())

2020-09-16 Thread Dave Chinner
On Wed, Sep 16, 2020 at 07:04:46PM -0700, Hugh Dickins wrote: > On Thu, 17 Sep 2020, Dave Chinner wrote: > > > > So > > > > P0 p1 > > > > hole punch starts > > takes XFS_MMAPLOCK_EXCL > > truncate_pagecache_range() > > unmap_mapping_range(start, end)

[PATCH] xfrm:ignore big packets when tunnel mode

2020-09-16 Thread mtk81216
In tunnel mode, when inner interface is ipv4,outer interface is ipv6, flags of tunnel mode's xfrm state is af-unspec, if a larger packet who is bigger than mtu goes through tunnel interface, it enters ip6_fragment, goes to fail_toobig, and ICMPV6(ICMPV6_PKT_TOOBIG) will be sent. It is unnecessary t

Re: [PATCH 1/8] ARM: dts: imx6qdl: Correct interrupt flags in examples

2020-09-16 Thread Krzysztof Kozlowski
On Sun, 13 Sep 2020 at 04:32, Shawn Guo wrote: > > Add Tim who is the board owner. > > On Tue, Sep 08, 2020 at 05:02:34PM +0200, Krzysztof Kozlowski wrote: > > GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. > > These are simple defines so they could be used in DTS but they

Re: linux-next: manual merge of the tty tree with the tty.current tree

2020-09-16 Thread Greg KH
On Thu, Sep 17, 2020 at 04:09:46PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the tty tree got a conflict in: > > drivers/tty/serial/8250/8250_pci.c > > between commit: > > 3c5a87be170a ("serial: 8250_pci: Add Realtek 816a and 816b") > > from the tty.current t

[v4] mm: khugepaged: avoid overriding min_free_kbytes set by user

2020-09-16 Thread Vijay Balakrishna
set_recommended_min_free_kbytes need to honor min_free_kbytes set by the user. Post start-of-day THP enable or memory hotplug operations can lose user specified min_free_kbytes, in particular when it is higher than calculated recommended value. Signed-off-by: Vijay Balakrishna Cc: sta...@vger.ke

Re: [PATCH 2/8] dt-bindings: gpio: include common schema in GPIO controllers

2020-09-16 Thread Geert Uytterhoeven
Hi Krzysztof, On Wed, Sep 16, 2020 at 6:23 PM Krzysztof Kozlowski wrote: > Include the common GPIO schema in GPIO controllers to be sure all common > properties are properly validated. > > Signed-off-by: Krzysztof Kozlowski Thanks for your patch! > --- > .../devicetree/bindings/gpio/brcm,xgs-

Re: [patch 00/13] preempt: Make preempt count unconditional

2020-09-16 Thread Ard Biesheuvel
On Wed, 16 Sep 2020 at 21:32, Linus Torvalds wrote: > > But something like a driver list walking thing should not be doing > different things behind peoples back depending on whether they hold > spinlocks or not. It should either just work regardless, or there > should be a flag (or special interf

RE: [PATCH V2 1/3] pwm: imx-tpm: Use dev_err_probe() to simplify error handling

2020-09-16 Thread Anson Huang
Gentle ping... > Subject: [PATCH V2 1/3] pwm: imx-tpm: Use dev_err_probe() to simplify error > handling > > dev_err_probe() can reduce code size, uniform error handling and record the > defer probe reason etc., use it to simplify the code. > > Signed-off-by: Anson Huang > --- > changes since V1

Re: [PATCH 06/14] Fix CFLAGS for UBSAN_BOUNDS on Clang

2020-09-16 Thread Marco Elver
On Wed, 16 Sep 2020 at 15:40, Marco Elver wrote: > On Wed, Sep 16, 2020 at 12:14PM +, George Popescu wrote: > > On Wed, Sep 16, 2020 at 10:32:40AM +0200, Marco Elver wrote: > > > On Wed, 16 Sep 2020 at 09:40, George Popescu > > > wrote: > > > > On Tue, Sep 15, 2020 at 07:32:28PM +0200, Marco

Re: [PATCH] net: make netdev_wait_allrefs wake-able

2020-09-16 Thread Francesco Ruggeri
> static inline void dev_put(struct net_device *dev) > { > + struct task_struct *destroy_task = dev->destroy_task; > + > this_cpu_dec(*dev->pcpu_refcnt); > + if (destroy_task) > + wake_up_process(destroy_task); > } I just realized that this introduces a race, i

Re: [PATCH 6/9] f2fs: zstd: Switch to the zstd-1.4.6 API

2020-09-16 Thread Chao Yu
Hi Nick, On 2020/9/17 2:39, Nick Terrell wrote: On Sep 15, 2020, at 11:31 PM, Chao Yu wrote: Hi Nick, remove not related mailing list. On 2020/9/16 11:43, Nick Terrell wrote: From: Nick Terrell Move away from the compatibility wrapper to the zstd-1.4.6 API. This code is more efficient b

Re: [PATCH] regmap: Add support for 12/20 register formatting

2020-09-16 Thread Ricardo Ribalda Delgado
Hi Mark On Wed, Sep 16, 2020 at 6:29 PM Mark Brown wrote: > > On Wed, Sep 16, 2020 at 06:05:52PM +0200, Ricardo Ribalda wrote: > > From: Ricardo Ribalda > > > > Devices such as the AD5628 require 32 bits of data divided in 12 bits > > for dummy, command and address, and 20 for data and dummy.

[PATCH] remoteproc/mediatek: Add support for mt8192 SCP

2020-09-16 Thread Pi-Hsun Shih
Add support for mt8192 SCP. Signed-off-by: Pi-Hsun Shih --- drivers/remoteproc/mtk_common.h | 34 + drivers/remoteproc/mtk_scp.c | 207 ++- drivers/remoteproc/mtk_scp_ipi.c | 5 +- 3 files changed, 213 insertions(+), 33 deletions(-) diff --git a/drivers/r

[PATCH v2 0/3] ASoC: fsl_sai: update the register list

2020-09-16 Thread Shengjiu Wang
As sai ip is upgraded, so update sai register list. Shengjiu Wang (3): ASoC: fsl_sai: Add new added registers and new bit definition ASoC: fsl_sai: Add fsl_sai_check_version function ASoC: fsl_sai: Set MCLK input or output direction changes in v2: - update commit message for first commit -

[PATCH v2 1/3] ASoC: fsl_sai: Add new added registers and new bit definition

2020-09-16 Thread Shengjiu Wang
On i.MX8MQ/i.MX8MN/i.MX8MM platform, the sai IP is upgraded. There are some new registers and new bit definition. This patch is to complete the register list. Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen --- sound/soc/fsl/fsl_sai.c | 23 sound/soc/fsl/fsl_sai.h | 59

[PATCH v2 2/3] ASoC: fsl_sai: Add fsl_sai_check_version function

2020-09-16 Thread Shengjiu Wang
fsl_sai_check_version can help to parse the version info in VERID and PARAM registers. Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen --- sound/soc/fsl/fsl_sai.c | 47 + sound/soc/fsl/fsl_sai.h | 28 2 files changed, 75 inser

[PATCH v2 3/3] ASoC: fsl_sai: Set MCLK input or output direction

2020-09-16 Thread Shengjiu Wang
SAI support select MCLK direction with version.major > 3 and version.minor > 1, the default direction is input, set it to be output according to DT property. Signed-off-by: Shengjiu Wang Acked-by: Nicolin Chen --- sound/soc/fsl/fsl_sai.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

Re: [Linaro-mm-sig] Changing vma->vm_file in dma_buf_mmap()

2020-09-16 Thread Daniel Vetter
On Wed, Sep 16, 2020 at 5:31 PM Christian König wrote: > > Am 16.09.20 um 17:24 schrieb Daniel Vetter: > > On Wed, Sep 16, 2020 at 4:14 PM Christian König > > wrote: > >> Am 16.09.20 um 16:07 schrieb Jason Gunthorpe: > >>> On Wed, Sep 16, 2020 at 11:53:59AM +0200, Daniel Vetter wrote: > >>> > >>>

Re: [PATCH v2] nfs: remove incorrect fallthrough label

2020-09-16 Thread linmiaohe
Nick Desaulniers wrote: > There is no case after the default from which to fallthrough to. Clang will > error in this case (unhelpfully without context, see link below) and GCC will > with -Wswitch-unreachable. > >The previous commit should have just replaced the comment with a break >statement

Re: [tip:x86/pti] BUILD SUCCESS WITH WARNING 767d46ab566dd489733666efe48732d523c8c332

2020-09-16 Thread Borislav Petkov
> > Warning ids grouped by kconfigs: > > gcc_recent_errors > `-- i386-randconfig-s002-20200916 > |-- > arch-x86-mm-tlb.c:sparse:expected-void-const-noderef-__percpu-__vpp_verify > |-- arch-x86-mm-tlb.c:sparse:got-bool > `-- > arch-x86-mm-tlb.c:sparse:sparse

Re: [PATCH v5 0/5] mm: introduce memfd_secret system call to create "secret" memory areas

2020-09-16 Thread Mike Rapoport
On Wed, Sep 16, 2020 at 04:20:20PM -0700, Andrew Morton wrote: > On Wed, 16 Sep 2020 10:35:34 +0300 Mike Rapoport wrote: > > > This is an implementation of "secret" mappings backed by a file descriptor. > > I've dropped the boot time reservation patch for now as it is not strictly > > required f

Re: [PATCH v5 0/5] mm: introduce memfd_secret system call to create "secret" memory areas

2020-09-16 Thread Mike Rapoport
On Thu, Sep 17, 2020 at 07:46:12AM +0200, Michael Kerrisk (man-pages) wrote: > On Thu, 17 Sep 2020 at 01:20, Andrew Morton wrote: > > > > On Wed, 16 Sep 2020 10:35:34 +0300 Mike Rapoport wrote: > > > > > This is an implementation of "secret" mappings backed by a file > > > descriptor. > > > I've

linux-next: manual merge of the tty tree with the tty.current tree

2020-09-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tty tree got a conflict in: drivers/tty/serial/8250/8250_pci.c between commit: 3c5a87be170a ("serial: 8250_pci: Add Realtek 816a and 816b") from the tty.current tree and commit: 04b6ff5f25de ("serial: 8250_pci: Add WCH384_8S 8 port serial device")

[PATCH] [PATCH] net/sched : cbs : fix calculation error of idleslope credits

2020-09-16 Thread Xiaoyong Yan
in the function cbs_dequeue_soft, when q->credits <0, [now - q->last] should be accounted for sendslope,not idleslope. so the solution as follows: when q->credits is less than 0, directly calculate delay time, activate hrtimer and when hrtimer fires, calculate idleslope credits and update it to q-

Re: [PATCH] x86/smap: Fix the smap_save() asm

2020-09-16 Thread Borislav Petkov
On Wed, Sep 16, 2020 at 11:48:42PM +0100, Andrew Cooper wrote: > Every day is a school day. Tell me about it... > This is very definitely one to be filed in obscure x86 corner cases. > > The code snippet above is actually wrong for the kernel, as it uses one > slot of the red-zone.  Recompiling

[PATCH v2 2/2] perf parse-event: Fix cpu map leaks

2020-09-16 Thread Namhyung Kim
Like evlist cpu map, evsel's cpu map should have a proper refcount. As it's created with a refcount, we don't need to get an extra count. Thanks to Arnaldo for the simpler suggestion. This fixes the following ASAN report: Direct leak of 840 byte(s) in 70 object(s) allocated from: #0 0x7fe36

[PATCH v2 1/2] perf parse-event: Release cpu_map if evsel alloc failed

2020-09-16 Thread Namhyung Kim
Signed-off-by: Namhyung Kim --- tools/perf/util/parse-events.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 667cbca1547a..176a51698a64 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/

[PATCH] thermal/drivers/cpuidle_cooling: Change the set_cur_state function

2020-09-16 Thread zhuguangqing83
From: zhuguangqing In the function cpuidle_cooling_set_cur_state(), if current_state is not equal to state and both current_state and state are greater than 0(scene 4 as follows), then maybe it should stop->start or restart idle_inject. The scenes changed is as follows, scenecurrent_state

Re: linux-next: Signed-off-by missing for commit in the net-next tree

2020-09-16 Thread Saeed Mahameed
On Thu, 2020-09-17 at 08:31 +1000, Stephen Rothwell wrote: > Hi all, > > Commits > > 0d2ffdc8d400 ("net/mlx5: Don't call timecounter cyc2time directly > from 1PPS flow") > 87f3495cbe8d ("net/mlx5: Release clock lock before scheduling a PPS > work") > aac2df7f022e ("net/mlx5: Rename ptp cloc

Re: More filesystem need this fix (xfs: use MMAPLOCK around filemap_map_pages())

2020-09-16 Thread Nikolay Borisov
On 17.09.20 г. 4:44 ч., Dave Chinner wrote: > On Wed, Sep 16, 2020 at 05:58:51PM +0200, Jan Kara wrote: >> On Sat 12-09-20 09:19:11, Amir Goldstein wrote: >>> On Tue, Jun 23, 2020 at 8:21 AM Dave Chinner wrote: > > So > > P0p1 > > hole punch starts

[PATCH V3 3/4] ARM: imx_v6_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-09-16 Thread Anson Huang
i.MX SoC GPIO driver provides the basic functions of GPIO pin operations and IRQ operations, it is now changed from "def_bool y" to "tristate", so it should be explicitly enabled to make sure all consumers work normally. Signed-off-by: Anson Huang --- changes since V2: - improve commit me

[PATCH V3 2/4] arm64: defconfig: Build in CONFIG_GPIO_MXC by default

2020-09-16 Thread Anson Huang
i.MX SoC GPIO driver provides the basic functions of GPIO pin operations and IRQ operations, it is now changed from "def_bool y" to "tristate", so it should be explicitly enabled to make sure all consumers work normally. Signed-off-by: Anson Huang --- changes since V2: - improve commit me

[PATCH V3 1/4] gpio: mxc: Support module build

2020-09-16 Thread Anson Huang
Change config to tristate, add module device table, module author, description and license to support module build for i.MX GPIO driver. As this is a SoC GPIO module, it provides common functions for most of the peripheral devices, such as GPIO pins control, secondary interrupt controller for GPIO

[PATCH V3 4/4] ARM: multi_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-09-16 Thread Anson Huang
i.MX SoC GPIO driver provides the basic functions of GPIO pin operations and IRQ operations, it is now changed from "def_bool y" to "tristate", so it should be explicitly enabled to make sure all consumers work normally. Signed-off-by: Anson Huang --- changes since V2: - improve commit me

Re: [PATCH v5 0/5] mm: introduce memfd_secret system call to create "secret" memory areas

2020-09-16 Thread Michael Kerrisk (man-pages)
On Thu, 17 Sep 2020 at 01:20, Andrew Morton wrote: > > On Wed, 16 Sep 2020 10:35:34 +0300 Mike Rapoport wrote: > > > This is an implementation of "secret" mappings backed by a file descriptor. > > I've dropped the boot time reservation patch for now as it is not strictly > > required for the basi

Re: [PATCH -next] btrfs: Make btrfs_sysfs_add_fs_devices static

2020-09-16 Thread Anand Jain
On 16/9/20 10:26 pm, YueHaibing wrote: Fix sparse warning: fs/btrfs/sysfs.c:1386:5: warning: symbol 'btrfs_sysfs_add_fs_devices' was not declared. Should it be static? misc-next branch has it declared static. It was fixed later. Thanks, Anand Signed-off-by: YueHaibing --- fs/bt

Re: [PATCH v1] atomisp:pci/runtime/queue: modify the return error value

2020-09-16 Thread Tianjia Zhang
LGTM. Reviewed-by: Tianjia Zhang On 9/17/20 11:44 AM, Xiaoliang Pang wrote: modify the return error value is -EDOM Fixes: 2cac05dee6e30("drm/amd/powerplay: add the hw manager for vega12 (v4)") Cc: Evan Quan Signed-off-by: Xiaoliang Pang --- .../staging/media/atomisp/pci/runtime/queue/src/

[BlueZ PATCH 4/6] Bluetooth: Handle system suspend resume case

2020-09-16 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

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

2020-09-16 Thread Howard Chung
This patch add a configurable parameter to switch off the interleave scan feature. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud --- include/net/bluetooth/hci_core.h | 1 + net/bluetooth/hci_core.c | 1 + net/bluetooth/hci_request.c | 3 ++- net/bluetooth/mgmt_config.c

[BlueZ PATCH 2/6] Bluetooth: Set scan parameters for ADV Monitor

2020-09-16 Thread Howard Chung
Set scan parameters when there is at least one Advertisement monitor. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek Pandit-Subedi Reviewed-by: Miao-chen Chou --- net/bluetooth/hci_request.c | 3 +++ 1 file changed, 3 insertions(+)

Re: [PATCH] bitfield.h: annotate type_replace_bits functions with __must_check

2020-09-16 Thread Greg KH
On Thu, Sep 17, 2020 at 09:34:59AM +0530, Vinod Koul wrote: > On 16-09-20, 16:33, Srinivas Kandagatla wrote: > > > > > > On 16/09/2020 16:20, Greg KH wrote: > > > On Wed, Sep 16, 2020 at 04:03:33PM +0100, Srinivas Kandagatla wrote: > > > > usage of apis like u32_replace_bits() without actually ca

[BlueZ PATCH 3/6] Bluetooth: Interleave with allowlist scan

2020-09-16 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

[BlueZ PATCH 5/6] Bluetooth: Handle active scan case

2020-09-16 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 --- net/bluetooth/hc

[BlueZ PATCH 1/6] Bluetooth: Update Adv monitor count upon removal

2020-09-16 Thread Howard Chung
From: Miao-chen Chou This fixes the count of Adv monitor upon monitor removal. The following test was performed. - Start two btmgmt consoles, issue a btmgmt advmon-remove command on one console and observe a MGMT_EV_ADV_MONITOR_REMOVED event on the other. Signed-off-by: Howard Chung Signed-off

Re: [PATCH] Revert "perf report: Treat an argument as a symbol filter"

2020-09-16 Thread Namhyung Kim
On Thu, Sep 17, 2020 at 12:15 PM Wei Li wrote: > > Since commit 6db6127c4dad ("perf report: Treat an argument as a symbol > filter"), the only one unrecognized argument for perf-report is treated > as a symbol filter. This is not described in man page nor help info, > and the result is really conf

[PATCH v2 3/4] i2c: designware: Allow SMBus block reads up to 255 bytes in length

2020-09-16 Thread Sultan Alsawaf
From: Sultan Alsawaf According to the SMBus 3.0 protocol specification, block transfer limits were increased from 32 bytes to 255 bytes. Remove the obsolete 32-byte limitation. Signed-off-by: Sultan Alsawaf --- drivers/i2c/busses/i2c-designware-master.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v2 2/4] i2c: designware: Ensure tx_buf_len is nonzero for SMBus block reads

2020-09-16 Thread Sultan Alsawaf
From: Sultan Alsawaf The point of adding a byte to len in i2c_dw_recv_len() is to make sure that tx_buf_len is nonzero, so that i2c_dw_xfer_msg() can let the i2c controller know that the i2c transaction can end. Otherwise, the i2c controller will think that the transaction can never end for block

[PATCH v2 1/4] i2c: designware: Fix transfer failures for invalid SMBus block reads

2020-09-16 Thread Sultan Alsawaf
From: Sultan Alsawaf SMBus block reads can be broken because the read function will just skip over bytes it doesn't like until reaching a byte that conforms to the length restrictions for block reads. This is problematic when it isn't known if the incoming payload is indeed a conforming block rea

[PATCH v2 0/4] i2c-hid: Save power by reducing i2c xfers with block reads

2020-09-16 Thread Sultan Alsawaf
From: Sultan Alsawaf This is a fixed resubmission of "[PATCH 0/2] i2c-hid: Save power by reducing i2c xfers with block reads". That original patchset did not have enough fixes for the designware i2c adapter's I2C_M_RECV_LEN feature, which is documented extensively in the original email thread. H

[PATCH v2 4/4] HID: i2c-hid: Use block reads when possible to save power

2020-09-16 Thread Sultan Alsawaf
From: Sultan Alsawaf We have no way of knowing how large an incoming payload is going to be, so the only strategy available up until now has been to always retrieve the maximum possible report length over i2c, which can be quite inefficient. For devices that send reports in block read format, the

Re: [PATCH] perf metric: Code cleanup with map_for_each_event()

2020-09-16 Thread Namhyung Kim
Hello, On Thu, Sep 17, 2020 at 11:45 AM Wei Li wrote: > > Since we have introduced map_for_each_event() to walk the 'pmu_events_map', > clean up metricgroup__print() and metricgroup__has_metric() with it. > > Signed-off-by: Wei Li Acked-by: Namhyung Kim A nit-pick below: > --- > tools/perf

linux-next: build failure after merge of the rcu tree

2020-09-16 Thread Stephen Rothwell
27; was here 537 | void show_rcu_tasks_classic_gp_kthread(void); | ^ Caused by commit 675d3ca52626 ("rcutorture: Make grace-period kthread report match RCU flavor being tested") I have used the rcu tree from next-20200916 for today. -- Cheers, Stephen Rothwell pgp

Re: [RFC PATCH V3 12/21] mmc: sdhci: UHS-II support, add hooks for additional operations

2020-09-16 Thread AKASHI Takahiro
On Thu, Sep 17, 2020 at 07:52:03AM +0300, Adrian Hunter wrote: > On 17/09/20 5:31 am, AKASHI Takahiro wrote: > > Adrian, > > > > On Wed, Sep 16, 2020 at 01:00:35PM +0300, Adrian Hunter wrote: > >> On 16/09/20 11:05 am, AKASHI Takahiro wrote: > >>> Adrian, > >>> > >>> Your comments are scattered ov

Re: [RFC PATCH V3 12/21] mmc: sdhci: UHS-II support, add hooks for additional operations

2020-09-16 Thread AKASHI Takahiro
Adrian, Ben, Regarding _reset() function, On Fri, Aug 21, 2020 at 05:08:32PM +0300, Adrian Hunter wrote: > On 10/07/20 2:10 pm, Ben Chuang wrote: > > From: Ben Chuang > > > > In this commit, UHS-II related operations will be called via a function > > pointer array, sdhci_uhs2_ops, in order to m

Re: [PATCH 1/5] dt-bindings: phy: qcom,qmp: Document SM8250 PCIe PHY bindings

2020-09-16 Thread Bjorn Andersson
On Wed 16 Sep 23:32 CDT 2020, Vinod Koul wrote: > On 16-09-20, 17:45, Bjorn Andersson wrote: > > On Wed 16 Sep 08:19 CDT 2020, Manivannan Sadhasivam wrote: > > > > > Document the DT bindings of below PCIe PHY versions used on SM8250: > > > > > > QMP GEN3x1 PHY - 1 lane > > > QMP GEN3x2 PHY - 2 l

[PATCH net-next] net: stmmac: introduce rtnl_lock|unlock() on configuring real_num_rx|tx_queues

2020-09-16 Thread Wong Vee Khee
From: "Tan, Tee Min" For driver open(), rtnl_lock is acquired by network stack but not in the resume(). Therefore, we introduce lock_acquired boolean to control when to use rtnl_lock|unlock() within stmmac_hw_setup(). Fixes: 686cff3d7022 ("net: stmmac: Fix incorrect location to set real_num_rx|

Re: [RFC PATCH V3 12/21] mmc: sdhci: UHS-II support, add hooks for additional operations

2020-09-16 Thread Adrian Hunter
On 17/09/20 5:31 am, AKASHI Takahiro wrote: > Adrian, > > On Wed, Sep 16, 2020 at 01:00:35PM +0300, Adrian Hunter wrote: >> On 16/09/20 11:05 am, AKASHI Takahiro wrote: >>> Adrian, >>> >>> Your comments are scattered over various functions, and so >>> I would like to address them in separate repli

Re: [PATCH] selftests/harness: Flush stdout before forking

2020-09-16 Thread Max Filippov
On Wed, Sep 16, 2020 at 9:16 PM Michael Ellerman wrote: > > The test harness forks() a child to run each test. Both the parent and > the child print to stdout using libc functions. That can lead to > duplicated (or more) output if the libc buffers are not flushed before > forking. > > It's general

Re: [PATCH 2/5] phy: qualcomm: phy-qcom-qmp: Add PCIe PHY support for SM8250 SoC

2020-09-16 Thread Vinod Koul
On 16-09-20, 18:49, Manivannan Sadhasivam wrote: > SM8250 has multiple different PHY versions: > QMP GEN3x1 PHY - 1 lane > QMP GEN3x2 PHY - 2 lanes > QMP Modem PHY - 2 lanes > > Add support for these with relevant init sequence. > > Signed-off-by: Manivannan Sadhasivam > --- > drivers/phy/qualc

Re: [PATCH v8 00/18] blk-mq/scsi: Provide hostwide shared tags for SCSI HBAs

2020-09-16 Thread Martin K. Petersen
John, > Have you had a chance to check these outstanding SCSI patches? > > scsi: megaraid_sas: Added support for shared host tagset for cpuhotplug > scsi: scsi_debug: Support host tagset > scsi: hisi_sas: Switch v3 hw to MQ > scsi: core: Show nr_hw_queues in sysfs > scsi: Add host and host templ

Re: [PATCH 2/2] arm64/mm: Enable color zero pages

2020-09-16 Thread Gavin Shan
Hi Robin, On 9/16/20 8:46 PM, Robin Murphy wrote: On 2020-09-16 09:28, Will Deacon wrote: On Wed, Sep 16, 2020 at 01:25:23PM +1000, Gavin Shan wrote: This enables color zero pages by allocating contigous page frames for it. The number of pages for this is determined by L1 dCache (or iCache) si

Re: [PATCH -next] soc: use devm_platform_ioremap_resource_byname

2020-09-16 Thread Bjorn Andersson
On Wed 16 Sep 11:15 UTC 2020, Qilong Zhang wrote: > Use the devm_platform_ioremap_resource_byname() helper instead of > calling platform_get_resource_byname() and devm_ioremap_resource() > separately. > > Signed-off-by: Zhang Qilong I fixed up the subject line to match the previous commits in t

Re: [PATCH v2] nfs: remove incorrect fallthrough label

2020-09-16 Thread Nathan Chancellor
On Wed, Sep 16, 2020 at 01:02:55PM -0700, Nick Desaulniers wrote: > There is no case after the default from which to fallthrough to. Clang > will error in this case (unhelpfully without context, see link below) > and GCC will with -Wswitch-unreachable. > > The previous commit should have just repl

Re: [PATCH 1/5] dt-bindings: phy: qcom,qmp: Document SM8250 PCIe PHY bindings

2020-09-16 Thread Vinod Koul
On 16-09-20, 17:45, Bjorn Andersson wrote: > On Wed 16 Sep 08:19 CDT 2020, Manivannan Sadhasivam wrote: > > > Document the DT bindings of below PCIe PHY versions used on SM8250: > > > > QMP GEN3x1 PHY - 1 lane > > QMP GEN3x2 PHY - 2 lanes > > QMP Modem PHY - 2 lanes > > How about something like

RE: [PATCH v1] powerplay:hwmgr - modify the return value

2020-09-16 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] Thanks. Reviewed-by: Evan Quan -Original Message- From: Xiaoliang Pang Sent: Thursday, September 17, 2020 11:46 AM To: Quan, Evan ; Deucher, Alexander ; Koenig, Christian ; airl...@linux.ie; dan...@ffwll.ch; Feng, Kenneth ; zhengbi

[PATCH] selftests/harness: Flush stdout before forking

2020-09-16 Thread Michael Ellerman
The test harness forks() a child to run each test. Both the parent and the child print to stdout using libc functions. That can lead to duplicated (or more) output if the libc buffers are not flushed before forking. It's generally not seen when running programs directly, because stdout will usuall

Re: [v3 2/2] mm: khugepaged: avoid overriding min_free_kbytes set by user

2020-09-16 Thread Vijay Balakrishna
Please ignore this patch. I forgot to run scripts/checkpatch.pl and see CHECK: Alignment should match open parenthesis #30: FILE: mm/khugepaged.c:2287: + if (recommended_min > min_free_kbytes || + recommended_min > user_min_free_kbytes) { ERROR: do not initialise globals to

Re: [tip:x86/seves] BUILD SUCCESS WITH WARNING e6eb15c9ba3165698488ae5c34920eea20eaa38e

2020-09-16 Thread Fangrui Song
On 2020-09-16, 'Marco Elver' via Clang Built Linux wrote: On Wed, 16 Sep 2020 at 20:22, 'Nick Desaulniers' via kasan-dev wrote: On Wed, Sep 16, 2020 at 1:46 AM Marco Elver wrote: > > On Wed, 16 Sep 2020 at 10:30, wrote: > > On Tue, Sep 15, 2020 at 08:09:16PM +0200, Marco Elver wrote: > > > O

Re: [PATCH v2 1/2] vfs: block chmod of symlinks

2020-09-16 Thread Al Viro
On Thu, Sep 17, 2020 at 05:07:15AM +0100, Al Viro wrote: > On Wed, Sep 16, 2020 at 07:25:53AM +0100, Christoph Hellwig wrote: > > On Tue, Sep 15, 2020 at 08:22:54PM -0400, Rich Felker wrote: > > > It was discovered while implementing userspace emulation of fchmodat > > > AT_SYMLINK_NOFOLLOW (using

RE: [PATCH V2 4/4] ARM: imx: cpuidle-imx7ulp: Stop mode disallowed when HSRUN

2020-09-16 Thread Aisheng Dong
> From: Peng Fan > Sent: Wednesday, September 16, 2020 10:49 AM > > When cpu runs in HSRUN mode, cpuidle is not allowed to run into Stop mode. > So add imx7ulp_get_mode to get thr cpu run mode, and use WAIT mode > instead, when cpu in HSRUN mode. > > Signed-off-by: Peng Fan > --- > arch/arm/ma

Re: [PATCH] bitfield.h: annotate type_replace_bits functions with __must_check

2020-09-16 Thread Vinod Koul
On 16-09-20, 16:33, Srinivas Kandagatla wrote: > > > On 16/09/2020 16:20, Greg KH wrote: > > On Wed, Sep 16, 2020 at 04:03:33PM +0100, Srinivas Kandagatla wrote: > > > usage of apis like u32_replace_bits() without actually catching the return > > > value could hide problems without any warning! >

Re: [PATCH v2 1/2] vfs: block chmod of symlinks

2020-09-16 Thread Al Viro
On Wed, Sep 16, 2020 at 07:25:53AM +0100, Christoph Hellwig wrote: > On Tue, Sep 15, 2020 at 08:22:54PM -0400, Rich Felker wrote: > > It was discovered while implementing userspace emulation of fchmodat > > AT_SYMLINK_NOFOLLOW (using O_PATH and procfs magic symlinks; otherwise > > it's not possible

RE: [PATCH V2 3/4] ARM: imx: imx7ulp: support HSRUN mode

2020-09-16 Thread Aisheng Dong
> From: Peng Fan > Sent: Wednesday, September 16, 2020 10:49 AM > > Configure PMPROT to let ARM core could run into HSRUN mode. > In LDO-enabled mode, HSRUN mode is not allowed, so add a check before > configure PMPROT. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/pm-imx7ulp.c | 15 ++

Re: [PATCH] hinic: fix potential resource leak

2020-09-16 Thread luobin (L)
On 2020/9/17 11:03, Wei Li wrote: > + err = irq_set_affinity_hint(rq->irq, &rq->affinity_mask); > + if (err) > + goto err_irq; > + > + return 0; > + > +err_irq: > + rx_del_napi(rxq); > + return err; If irq_set_affinity_hint fails, irq should be freed as well.

Re: [PATCH] hinic: fix potential resource leak

2020-09-16 Thread liwei (GF)
Hi luobin, On 2020/9/17 11:44, luobin (L) wrote: > On 2020/9/17 11:03, Wei Li wrote: >> +err = irq_set_affinity_hint(rq->irq, &rq->affinity_mask); >> +if (err) >> +goto err_irq; >> + >> +return 0; >> + >> +err_irq: >> +rx_del_napi(rxq); >> +return err; > If irq_set_

[PATCH v1] atomisp:pci/runtime/queue: modify the return error value

2020-09-16 Thread Xiaoliang Pang
modify the return error value is -EDOM Fixes: 2cac05dee6e30("drm/amd/powerplay: add the hw manager for vega12 (v4)") Cc: Evan Quan Signed-off-by: Xiaoliang Pang --- .../staging/media/atomisp/pci/runtime/queue/src/queue_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v1] powerplay:hwmgr - modify the return value

2020-09-16 Thread Xiaoliang Pang
modify the return value is -EINVAL Fixes: f83a9991648bb("drm/amd/powerplay: add Vega10 powerplay support (v5)") Fixes: 2cac05dee6e30("drm/amd/powerplay: add the hw manager for vega12 (v4)") Cc: Eric Huang Cc: Evan Quan Signed-off-by: Xiaoliang Pang --- drivers/gpu/drm/amd/powerplay/hwmgr/vega1

[PATCH 2/2] vfio/pci: Remove bardirty from vfio_pci_device

2020-09-16 Thread Zenghui Yu
It isn't clear what purpose the @bardirty serves. It might be used to avoid the unnecessary vfio_bar_fixup() invoking on a user-space BAR read, which is not required when bardirty is unset. The variable was introduced in commit 89e1f7d4c66d ("vfio: Add PCI device driver") but never actually used,

[PATCH 1/2] vfio/pci: Remove redundant declaration of vfio_pci_driver

2020-09-16 Thread Zenghui Yu
It was added by commit 137e5531351d ("vfio/pci: Add sriov_configure support") and actually unnecessary. Remove it. Signed-off-by: Zenghui Yu --- drivers/vfio/pci/vfio_pci.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c index 1ab1f5cd

Re: [PATCH v4 1/4] genirq: define an empty function set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER

2020-09-16 Thread Leizhen (ThunderTown)
On 2020/9/15 16:43, Zhen Lei wrote: > To avoid compilation error if an irqchip driver references the function > set_handle_irq() but may not select GENERIC_IRQ_MULTI_HANDLER on some > systems. Hi, Marc: Do you agree with this method? Otherwise, I should use "#ifdef CONFIG_GENERIC_IRQ_MULTI

Re: [PATCH 2/2] arm64/mm: Enable color zero pages

2020-09-16 Thread Gavin Shan
Hi Will, On 9/16/20 6:28 PM, Will Deacon wrote: On Wed, Sep 16, 2020 at 01:25:23PM +1000, Gavin Shan wrote: This enables color zero pages by allocating contigous page frames for it. The number of pages for this is determined by L1 dCache (or iCache) size, which is probbed from the hardware.

LUCRATIVE PROJECT VENTURE

2020-09-16 Thread Nicola W. Samir
I am an Independent Financial Consultant, I have a reputable client who is seeking for an experienced individual or company that can profitably invest $51,000.000 United State Dollars privately for TPI. Your swift response is highly needed. The modalities is 100% risk free Best Regard Nicola Sa

[v3 PATCH] drm/mediatek: dsi: fix scrolling of panel with small hfp or hbp

2020-09-16 Thread Jitao Shi
Replace horizontal_backporch_byte with vm->hback_porch * bpp to aovid flowing judgement negative number. if ((vm->hfront_porch * dsi_tmp_buf_bpp + horizontal_backporch_byte) > data_phy_cycles * dsi->lanes + delta) Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 54

Re: [PATCH 1/2] dt-bindings: interrupt-controller: add Hisilicon SD5203 vector interrupt controller

2020-09-16 Thread Leizhen (ThunderTown)
On 2020/9/15 14:12, Leizhen (ThunderTown) wrote: > > > On 2020/9/15 4:31, Rob Herring wrote: >> On Thu, Sep 03, 2020 at 08:05:03PM +0800, Zhen Lei wrote: >>> Add DT bindings for the Hisilicon SD5203 vector interrupt controller. >>> >>> Signed-off-by: Zhen Lei >>> --- >>> .../hisilicon,sd5203

[PATCH RFC 6/8] thermal: Modify thermal governors to do nothing for trip points being monitored for falling temperature

2020-09-16 Thread Thara Gopinath
For now, thermal governors other than step wise governorr do not support monitoring of falling temperature. Hence, in case of calls to the governor for trip points marked as THERMAL_TRIP_MONITOR_FALLING, return doing nothing. Signed-off-by: Thara Gopinath --- drivers/thermal/gov_bang_bang.c

[PATCH RFC 2/8] thermal: Introduce new property monitor_type for trip point.

2020-09-16 Thread Thara Gopinath
Thermal trip points can be defined to indicate whether a temperature rise or a temperature fall is to be monitored. This property can now be defined in the DT bindings for a trip point. To support this following three changes are introduced to thermal core and sysfs code. 1. Define a new variable i

[PATCH RFC 7/8] thermal:core: Add is_warming_dev and supporting warming device api's to the cooling dev framework.

2020-09-16 Thread Thara Gopinath
Introduce a variable is_warming_dev to indicate if a "cooling" device is actually a warming device or not. Also introduce api's to register and unregister warming device. This is a temporary patch. If we agree to replace the term "cooling" with "mitigating" (or any other appropriate term) in the t

  1   2   3   4   5   6   7   8   9   10   >