RE: [PATCH V6 2/2] power: supply: bq27xxx: Add support for BQ78Z100

2021-03-19 Thread LI Qingwu
Hi Sebastian, About 4mA current, it's not the expected current, since we are working remotely, the instrument was unattended. With the real current, the battery will be empty in a working day, so we just connect a dummy load for test for a while, You mentioned the POWER_AVG looks suspicious, ye

Re: [PATCHv2 02/38] dt-bindings: power: supply: cpcap-battery: Convert to DT schema format

2021-03-19 Thread Tony Lindgren
* Sebastian Reichel [210317 13:50]: > Convert the binding to DT schema format. I also added the missing bits > used by the only in-tree user and implemented in the driver. Reviewed-by: Tony Lindgren

Re: [PATCHv2 03/38] dt-bindings: power: supply: cpcap-charger: Convert to DT schema format

2021-03-19 Thread Tony Lindgren
* Sebastian Reichel [210317 13:50]: > Convert the binding to DT schema format. I also added the missing bits > used by the only in-tree user and implemented in the driver. Reviewed-by: Tony Lindgren

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-19 Thread David Hildenbrand
Tow NITs +bool mhp_supports_memmap_on_memory(unsigned long size) +{ + unsigned long nr_vmemmap_pages = size / PAGE_SIZE; + unsigned long vmemmap_size = nr_vmemmap_pages * sizeof(struct page); + unsigned long remaining_size = size - vmemmap_size; + + /* +* Beside

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

2021-03-19 Thread Andy Shevchenko
On Thu, Mar 18, 2021 at 4:42 PM Sai Krishna Potthuri wrote: > > From: Andy Shevchenko > > Sent: Wednesday, March 17, 2021 6:26 PM > > On Wed, Mar 17, 2021 at 10:27 AM Sai Krishna Potthuri > > wrote: ... > > > +config PINCTRL_ZYNQMP > > > + bool "Pinctrl driver for Xilinx ZynqMP" > > > >

RE: [PATCH 02/11] i2c: imx-lpi2c: add runtime pm support

2021-03-19 Thread Aisheng Dong
[...] > > > > pm_runtime_set_autosuspend_delay(&pdev->dev, > > > I2C_PM_TIMEOUT); > > > > pm_runtime_use_autosuspend(&pdev->dev); > > > > - pm_runtime_get_noresume(&pdev->dev); > > > > - pm_runtime_set_active(&pdev->dev); > > > > pm_runtime_enable(&pdev->dev); >

Re: [PATCH v5 2/5] mm,compaction: Let isolate_migratepages_{range,block} return error codes

2021-03-19 Thread Oscar Salvador
On Fri, Mar 19, 2021 at 11:14:25AM +0100, Vlastimil Babka wrote: > No I meant this: > > --- a/mm/internal.h > +++ b/mm/internal.h > @@ -225,7 +225,13 @@ struct compact_control { > unsigned int nr_freepages; /* Number of isolated free pages */ > unsigned int nr_migratepages;

Re: [PATCH v2 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-03-19 Thread Shreeya Patel
On 19/03/21 1:27 am, Gabriel Krisman Bertazi wrote: Shreeya, Hi Gabriel, Thanks for your detailed review. Please find my comments inline. utf8data.h_shipped has a large database table which is an auto-generated decodification trie for the unicode normalization functions. It is not necessary

Re: [PATCH] io_uring: Try to merge io requests only for regular files

2021-03-19 Thread Pavel Begunkov
On 19/03/2021 05:28, Dmitry Monakhov wrote: > Otherwise we may endup blocking on pipe or socket. CC: io-uring ml > > Fixes: 6d5d5ac ("io_uring: extend async work merge") > Testcase: > https://github.com/dmonakhov/liburing/commit/16d171b6ef9d68e6db66650a83d98c5c721d01f6 > Signed-off-by: Dmitry M

[tip:x86/seves] BUILD SUCCESS WITH WARNING f15a0a732aefb46f999c2a8aa8f9f16e71cec5b2

2021-03-19 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/seves branch HEAD: f15a0a732aefb46f999c2a8aa8f9f16e71cec5b2 x86/sev-es: Replace open-coded hlt-loops with sev_es_terminate() possible Warning in current branch: arch/x86/kernel/sev-es.c:1377 safe_stack_exc_vmm_communi

[rcu:rcu/next] BUILD SUCCESS 71df1526183c88552cbd6ecf27dc849b8395db5e

2021-03-19 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next branch HEAD: 71df1526183c88552cbd6ecf27dc849b8395db5e torture: Make kvm.sh use abstracted kvm-end-run-stats.sh elapsed time: 724m configs tested: 140 configs skipped: 2 The following configs have been

Re: [PATCH] fs/ext2/: fix misspellings using codespell tool

2021-03-19 Thread Jan Kara
On Thu 18-03-21 17:31:31, menglong8.d...@gmail.com wrote: > From: Liu xuzhi > > A typo is found out by codespell tool in 1107th lines of super.c: > > $ codespell ./fs/ext2/ > ./super.c:1107: fileystem ==> filesystem > > Fix a typo found by codespell. > > Signed-off-by: Liu xuzhi Thanks. I'v

Re: [PATCH v4 18/19] coresight: sink: Add TRBE driver

2021-03-19 Thread Suzuki K Poulose
Hi Mike > On 8 Mar 2021, at 17:26, Mike Leach wrote: > > Hi Suzuki, > > On Thu, 25 Feb 2021 at 19:36, Suzuki K Poulose wrote: >> >> From: Anshuman Khandual >> >> Trace Buffer Extension (TRBE) implements a trace buffer per CPU which is >> accessible via the system registers. The TRBE support

Re: [for-stable-4.19 PATCH 0/2] Backport patches to fix KASAN+LKDTM with recent clang on ARM64

2021-03-19 Thread Greg Kroah-Hartman
On Fri, Mar 19, 2021 at 07:54:14AM +0800, Nicolas Boichat wrote: > > Backport 2 patches that are required to make KASAN+LKDTM work > with recent clang (patch 2/2 has a complete description). > Tested on our chromeos-4.19 branch. > > Patch 1/2 is context conflict only, and 2/2 is a clean backport.

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-19 Thread Oscar Salvador
On Fri, Mar 19, 2021 at 11:20:19AM +0100, David Hildenbrand wrote: > > +bool mhp_supports_memmap_on_memory(unsigned long size) > > +{ > > + unsigned long nr_vmemmap_pages = size / PAGE_SIZE; > > + unsigned long vmemmap_size = nr_vmemmap_pages * sizeof(struct page); > > + unsigned long remaini

Re: [PATCH net,v2] net: dsa: mt7530: setup core clock even in TRGMII mode

2021-03-19 Thread René van Dorst
Quoting Ilya Lipnitskiy : A recent change to MIPS ralink reset logic made it so mt7530 actually resets the switch on platforms such as mt7621 (where bit 2 is the reset line for the switch). That exposed an issue where the switch would not function properly in TRGMII mode after a reset. Reconfig

Re: [PATCH v2 3/4] fs: unicode: Use strscpy() instead of strncpy()

2021-03-19 Thread Shreeya Patel
On 19/03/21 2:33 am, Eric Biggers wrote: On Thu, Mar 18, 2021 at 07:03:04PM +0530, Shreeya Patel wrote: Following warning was reported by Kernel Test Robot. In function 'utf8_parse_version', inlined from 'utf8_load' at fs/unicode/utf8mod.c:195:7: fs/unicode/utf8mod.c:175:2: warning: 'strncpy

Re: [PATCH v3] gpio: mpc8xxx: Add ACPI support

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 10:10 AM Ran Wang wrote: > > Current implementation only supports DT, now add ACPI support. Thanks for an update, my comments below. ... > +#include Missed property.h mod_devicetable.h. ... > - mpc8xxx_gc->regs = of_iomap(np, 0); > + mpc8xxx_gc->regs = de

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

2021-03-19 Thread Borislav Petkov
On Fri, Mar 19, 2021 at 06:26:47PM +0800, kernel test robot wrote: > tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > x86/seves > branch HEAD: f15a0a732aefb46f999c2a8aa8f9f16e71cec5b2 x86/sev-es: Replace > open-coded hlt-loops with sev_es_terminate() > > possible Warni

Re: [PATCH v4 18/19] coresight: sink: Add TRBE driver

2021-03-19 Thread Suzuki K Poulose
Hi Mathieu, > On 18 Mar 2021, at 18:08, Mathieu Poirier wrote: > > Good morning, > > On Thu, Feb 25, 2021 at 07:35:42PM +, Suzuki K Poulose wrote: >> From: Anshuman Khandual >> >> Trace Buffer Extension (TRBE) implements a trace buffer per CPU which is >> accessible via the system registe

Re: [PATCH v2] bus: mhi: Add Qcom WWAN control driver

2021-03-19 Thread kernel test robot
Hi Loic, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.12-rc3 next-20210319] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documente

Re: [PATCH 1/3] ARM: dts: exynos: replace deprecated NTC/Murata compatibles

2021-03-19 Thread Krzysztof Kozlowski
On Mon, 15 Mar 2021 13:43:11 +0100, Krzysztof Kozlowski wrote: > The compatibles with "ntc" vendor prefix become deprecated and "murata" > should be used. Applied, thanks! [1/3] ARM: dts: exynos: replace deprecated NTC/Murata compatibles commit: 61342bc64d03d88fbe6247f490504257f36d [2/3

Re: [PATCH] Updated locking documentation for journal_head

2021-03-19 Thread Jan Kara
On Fri 19-03-21 10:18:17, Alexander Lochmann wrote: > LockDoc's results show that t_list_lock has been > replaced by j_list_lock for b_next_transaction, > b_tnext, and b_tprev. > We, therefore, updated the documentation > accordingly. > > Signed-off-by: Alexander Lochmann > Signed-off-by: Horst S

Re: [PATCH 2/2] hwmon: (pmbus/tps53679) Add support for TPS53676

2021-03-19 Thread Erik Rosen
On Fri, Mar 19, 2021 at 12:04 AM Guenter Roeck wrote: > > On 3/18/21 2:24 PM, Erik Rosen wrote: > > Add support for TI TPS53676 controller to the tps53679 pmbus driver > > > > The driver uses the USER_DATA_03 register to figure out how many phases are > > enabled and to which channel they are assi

Re: [for-stable-4.19 PATCH 1/2] vmlinux.lds.h: Create section for protection against instrumentation

2021-03-19 Thread Greg Kroah-Hartman
On Fri, Mar 19, 2021 at 07:54:15AM +0800, Nicolas Boichat wrote: > From: Thomas Gleixner > > commit 655389433e7efec589838b400a2a652b3ffa upstream. > > Some code pathes, especially the low level entry code, must be protected > against instrumentation for various reasons: > > - Low level ent

Re: [PATCH v2 01/14] x86: Add insn_decode_kernel()

2021-03-19 Thread Borislav Petkov
On Thu, Mar 18, 2021 at 06:11:04PM +0100, Peter Zijlstra wrote: > Add a helper to decode kernel instructions; there's no point in > endlessly repeating those last two arguments. > > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/x86/include/asm/insn.h|2 ++ > arch/x86/kernel/alte

Re: [PATCH 1/2] lib/vsprintf: do not show no_hash_pointers message multiple times

2021-03-19 Thread Petr Mladek
On Wed 2021-03-17 20:34:43, Marco Elver wrote: > On Mon, 8 Mar 2021 at 11:01, Petr Mladek wrote: > > On Fri 2021-03-05 20:42:05, Marco Elver wrote: > > > Do not show no_hash_pointers message multiple times if the option was > > > passed more than once (e.g. via generated command line). > > > > > >

Re: KASAN: use-after-free Read in idr_for_each (2)

2021-03-19 Thread Pavel Begunkov
On 18/12/2020 16:44, syzbot wrote: > Hello, > > syzbot has tested the proposed patch but the reproducer is still triggering > an issue: > KASAN: use-after-free Read in idr_for_each #syz test: git://git.kernel.dk/linux-block io_uring-5.12 > >

Re: [PATCH] MAINTAINERS: update Senozhatsky email address

2021-03-19 Thread Petr Mladek
On Fri 2021-03-19 14:45:08, Sergey Senozhatsky wrote: > I don't check my @gmail.com addresses often enough these days. > > Signed-off-by: Sergey Senozhatsky > --- > MAINTAINERS | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index b2b

Re: [PATCH 1/2] selftests: add a kselftest for SLUB debugging functionality

2021-03-19 Thread Vlastimil Babka
On 3/18/21 12:47 PM, Marco Elver wrote: > On Tue, Mar 16, 2021 at 01:41PM +0100, glit...@gmail.com wrote: >> From: Oliver Glitta >> >> SLUB has resiliency_test() function which is hidden behind #ifdef >> SLUB_RESILIENCY_TEST that is not part of Kconfig, so nobody >> runs it. Kselftest should prop

[PATCH 2/2] crypto: hisilicon/hpre - optimise 'hpre_algs_register' error path

2021-03-19 Thread Hui Tang
There is redundant code especially when registing new algorithms in the future. Signed-off-by: Hui Tang --- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/crypto/hisilicon/hpre/hpre_crypto.c b/drivers/

[PATCH 0/2] crypto: hisilicon/hpre - remove 'CONFIG_CRYPTO_DH'

2021-03-19 Thread Hui Tang
Remove 'CONFIG_CRYPTO_DH' and optimise 'hpre_algs_register' error path. Hui Tang (2): crypto: hisilicon/hpre - delete wrap of 'CONFIG_CRYPTO_DH' crypto: hisilicon/hpre - optimise 'hpre_algs_register' error path drivers/crypto/hisilicon/hpre/hpre_crypto.c | 30 ++--- 1

[PATCH 1/2] crypto: hisilicon/hpre - delete wrap of 'CONFIG_CRYPTO_DH'

2021-03-19 Thread Hui Tang
'CRYPTO_DH' has selected in 'Kconfig', so delete 'CONFIG_CRYPTO_DH'. Signed-off-by: Hui Tang --- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/crypto/hisilicon/hpre/hpre_crypto.c b/drivers/crypto/hisilicon/hpr

[PATCH] crypto: hisilicon - fix the check on dma address

2021-03-19 Thread Hui Tang
System may be able to get physical address of zero if not reserved by firmware. The dma address obtained by 'dma_alloc_coherent' is valid, since already checking cpu va before, so do not check again. Signed-off-by: Hui Tang --- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 12 driv

[PATCH v2] Updated locking documentation for journal_head

2021-03-19 Thread Alexander Lochmann
LockDoc's results show that t_list_lock has been replaced by j_list_lock for b_next_transaction, b_tnext, and b_tprev. We, therefore, updated the documentation accordingly. Signed-off-by: Alexander Lochmann Signed-off-by: Horst Schirmeier Reviewed-by: Jan Kara --- include/linux/journal-head.h

[PATCH] crypto: hisilicon/hpre - fix "hpre_ctx_init" resource leak

2021-03-19 Thread Hui Tang
When calling "hpre_ctx_set" fails, stop and put qp, otherwise will leak qp resource. Signed-off-by: Hui Tang --- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/hpre/hpre_crypto.c b/drivers/cr

[PATCH] crypto: hisilicon/hpre - fix Kconfig

2021-03-19 Thread Hui Tang
hpre select 'CRYPTO_ECDH' and 'CRYPTO_CURVE25519'. Signed-off-by: Hui Tang --- drivers/crypto/hisilicon/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/Kconfig b/drivers/crypto/hisilicon/Kconfig index c45adb1..e572f99 100644 --- a/drivers/cr

Re: [PATCH stable 0/6] net: dsa: b53: Correct learning for standalone ports

2021-03-19 Thread Greg KH
On Tue, Mar 16, 2021 at 05:35:43PM -0700, Florian Fainelli wrote: > Hi Greg, Sasha, Jaakub and David, > > This patch series contains backports for a change that recently made it > upstream as f9b3827ee66cfcf297d0acd6ecf33653a5f297ef ("net: dsa: b53: > Support setting learning on port") however tha

Re: [RFC PATCH v2 net-next 14/16] net: dsa: don't set skb->offload_fwd_mark when not offloading the bridge

2021-03-19 Thread Vladimir Oltean
On Fri, Mar 19, 2021 at 05:29:12PM +0800, DENG Qingfang wrote: > On Fri, Mar 19, 2021 at 5:06 PM Vladimir Oltean wrote: > > > > This is a good point actually, which I thought about, but did not give a > > lot of importance to for the moment. Either we go full steam ahead with > > assisted learning

[PATCH v1 2/2] arm64: dts: qcom: sm8350: Add thermal zones and throttling support

2021-03-19 Thread Robert Foss
sm8350 has 29 thermal sensors split across two tsens controllers. Add the thermal zones to expose them and wireup the cpus to throttle their frequencies on crossing passive temperature thresholds. Signed-off-by: Robert Foss --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 829 +

[PATCH v1 1/2] dt-bindings: thermal: qcom-tsens: Add compatible for sm8350

2021-03-19 Thread Robert Foss
Add tsens bindings for sm8350. Signed-off-by: Robert Foss --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index

Re: [PATCH net-next 2/4] gro: add combined call_gro_receive() + INDIRECT_CALL_INET() helper

2021-03-19 Thread Paolo Abeni
Hello, On Thu, 2021-03-18 at 18:42 +, Alexander Lobakin wrote: > call_gro_receive() is used to limit GRO recursion, but it works only > with callback pointers. > There's a combined version of call_gro_receive() + INDIRECT_CALL_2() > in , but it doesn't check for IPv6 modularity. AFAICS, ip6_o

Re: [PATCH v2] clk: qcom: clk-rcg2: Add support for duty-cycle for RCG

2021-03-19 Thread Taniya Das
Hello Stephen, Thanks for your review. On 3/14/2021 4:29 AM, Stephen Boyd wrote: Quoting Taniya Das (2021-03-11 04:51:32) The root clock generators with MND divider has the capability to support change in duty-cycle by updating the 'D'. Add the clock ops which would check all the boundary cond

[PATCH v10 00/33] Introduce the Counter character device interface

2021-03-19 Thread William Breathitt Gray
Changes in v10: - Use sysfs_emit_at() in enums_available_show() and strs_available_show() in order to concatenate list of strings - Use sprintf() in counter_comp_id_show(); only printing an size_t so there is no risk of exceeding PAGE_SIZE Note that this revision is based on top of 3 prere

[PATCH v10 01/33] docs: counter: Consolidate Counter sysfs attributes documentation

2021-03-19 Thread William Breathitt Gray
Duplicate ABIs are not valid, so let's consolidate these sysfs attributes into the main sysfs-bus-counter documentation file. Cc: Patrick Havelange Reviewed-by: David Lechner Signed-off-by: William Breathitt Gray --- Documentation/ABI/testing/sysfs-bus-counter | 76 ++- .../A

[PATCH v10 02/33] docs: counter: Fix spelling

2021-03-19 Thread William Breathitt Gray
"Miscellaneous" is the correct spelling. Reviewed-by: David Lechner Signed-off-by: William Breathitt Gray --- Documentation/driver-api/generic-counter.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/driver-api/generic-counter.rst b/Documentation/driver-api

[PATCH v10 04/33] counter: 104-quad-8: Return error when invalid mode during ceiling_write

2021-03-19 Thread William Breathitt Gray
The 104-QUAD-8 only has two count modes where a ceiling value makes sense: Range Limit and Modulo-N. Outside of these two modes, setting a ceiling value is an invalid operation -- so let's report it as such by returning -EINVAL. Fixes: fc069262261c ("counter: 104-quad-8: Add lock guards - generic

[PATCH v10 07/33] counter: 104-quad-8: Add const qualifier for functions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_count functions_list member expects a const enum counter_count_function array. This patch adds the const qualifier to the quad8_count_functions_list to match functions_list. Cc: Syed Nayyar Waris Signed-off-by: William Breathitt Gray --- drivers/counter/104-quad-8.c | 2 +- 1

[PATCH v10 08/33] counter: interrupt-cnt: Add const qualifier for functions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_count functions_list member expects a const enum counter_count_function array. This patch adds the const qualifier to the interrupt__cnt_functions to match functions_list. Cc: Oleksij Rempel Signed-off-by: William Breathitt Gray --- drivers/counter/interrupt-cnt.c | 2 +- 1 f

[PATCH v10 03/33] counter: 104-quad-8: Remove pointless comment

2021-03-19 Thread William Breathitt Gray
It is obvious that devm_counter_register() is used to register a Counter device, so a comment stating such is pointless here. Cc: Syed Nayyar Waris Signed-off-by: William Breathitt Gray --- drivers/counter/104-quad-8.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/counter/104-quad-

[PATCH v10 05/33] counter: 104-quad-8: Annotate hardware config module parameter

2021-03-19 Thread William Breathitt Gray
When the kernel is running in secure boot mode, we lock down the kernel to prevent userspace from modifying the running kernel image. Whilst this includes prohibiting access to things like /dev/mem, it must also prevent access by means of configuring driver modules in such a way as to cause a devi

[PATCH v10 06/33] counter: 104-quad-8: Add const qualifiers for quad8_preset_register_set

2021-03-19 Thread William Breathitt Gray
Add some safety by qualifying the quad8_preset_register_set() function parameters as const. Cc: Syed Nayyar Waris Signed-off-by: William Breathitt Gray --- drivers/counter/104-quad-8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/counter/104-quad-8.c b/drivers

[PATCH v10 09/33] counter: microchip-tcb-capture: Add const qualifier for functions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_count functions_list member expects a const enum counter_count_function array. This patch adds the const qualifier to the mchp_tc_count_functions to match functions_list. Cc: Kamel Bouhara Signed-off-by: William Breathitt Gray --- drivers/counter/microchip-tcb-capture.c | 2 +

[PATCH v10 13/33] counter: ftm-quaddec: Add const qualifier for actions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_synapse actions_list member expects a const enum counter_synapse_action array. This patch adds the const qualifier to the ftm_quaddec_synapse_actions to match actions_list. Cc: Patrick Havelange Signed-off-by: William Breathitt Gray --- drivers/counter/ftm-quaddec.c | 2 +- 1

[PATCH v10 10/33] counter: stm32-lptimer-cnt: Add const qualifier for functions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_count functions_list member expects a const enum counter_count_function array. This patch adds the const qualifier to the stm32_lptim_cnt_functions to match functions_list. Cc: Fabrice Gasnier Signed-off-by: William Breathitt Gray --- drivers/counter/stm32-lptimer-cnt.c | 2 +

[PATCH v10 11/33] counter: stm32-timer-cnt: Add const qualifier for functions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_count functions_list member expects a const enum counter_count_function array. This patch adds the const qualifier to the stm32_count_functions to match functions_list. Cc: Fabrice Gasnier Cc: Benjamin Gaignard Signed-off-by: William Breathitt Gray --- drivers/counter/stm32-

Re: [syzbot] KASAN: use-after-free Read in idr_for_each (2)

2021-03-19 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger any issue: Reported-and-tested-by: syzbot+12056a09a0311d758...@syzkaller.appspotmail.com Tested on: commit: ece5fae7 io_uring: don't leak creds on SQO attach error git tree: git://git.kernel.dk/linux-b

[PATCH v10 14/33] counter: interrupt-cnt: Add const qualifier for actions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_synapse actions_list member expects a const enum counter_synapse_action array. This patch adds the const qualifier to the interrupt_cnt_synapse_actionss to match actions_list. Cc: Oleksij Rempel Signed-off-by: William Breathitt Gray --- drivers/counter/interrupt-cnt.c | 2 +-

[PATCH v10 12/33] counter: 104-quad-8: Add const qualifier for actions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_synapse actions_list member expects a const enum counter_synapse_action array. This patch adds the const qualifier to the quad8_index_actions_list and quad8_synapse_actions_list to match actions_list. Cc: Syed Nayyar Waris Signed-off-by: William Breathitt Gray --- drivers/cou

[PATCH v10 15/33] counter: microchip-tcb-capture: Add const qualifier for actions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_synapse actions_list member expects a const enum counter_synapse_action array. This patch adds the const qualifier to the mchp_tc_synapse_actions to match actions_list. Cc: Kamel Bouhara Signed-off-by: William Breathitt Gray --- drivers/counter/microchip-tcb-capture.c | 2 +-

[PATCH v10 19/33] counter: Standardize to ERANGE for limit exceeded errors

2021-03-19 Thread William Breathitt Gray
ERANGE is a semantically better error code to return when an argument value falls outside the supported limit range of a device. Cc: Syed Nayyar Waris Cc: Oleksij Rempel Cc: Fabrice Gasnier Cc: Maxime Coquelin Cc: Alexandre Torgue Reviewed-by: David Lechner Signed-off-by: William Breathitt G

[PATCH v10 18/33] counter: Return error code on invalid modes

2021-03-19 Thread William Breathitt Gray
Only a select set of modes (function, action, etc.) are valid for a given device configuration. This patch ensures that invalid modes result in a return -EINVAL. Such a situation should never occur in reality, but it's good to define a default switch cases for the sake of making the intent of the c

[PATCH v10 20/33] counter: Rename counter_signal_value to counter_signal_level

2021-03-19 Thread William Breathitt Gray
Signal values will always be levels so let's be explicit it about it to make the intent of the code clear. Cc: Syed Nayyar Waris Cc: Oleksij Rempel Cc: Kamel Bouhara Reviewed-by: David Lechner Signed-off-by: William Breathitt Gray --- drivers/counter/104-quad-8.c| 5 +++-- drive

[PATCH V7 0/2] power: supply: bq27xxx: Add support for BQ78Z100

2021-03-19 Thread LI Qingwu
Changes in V7: AddPOWER_SUPPLY_CHARGE_NOW Remove POWER_SUPPLY_PROP_ENERGY_NOW Refresh result of dump uevent LI Qingwu (2): dt-bindings: power: bq27xxx: add bq78z100 power: supply: bq27xxx: Add support for BQ78Z100 .../bindings/power/supply/bq27xxx.yaml| 1 + drivers/power/supp

[PATCH V7 1/2] dt-bindings: power: bq27xxx: add bq78z100

2021-03-19 Thread LI Qingwu
Add bindings for TI BQ78Z100. An I2C interface gas gauge. It provides a fully integrated safety protection and authentication for 1 to 2-series cell Li-Ion and Li-Polymer battery packs. Signed-off-by: LI Qingwu Acked-by: Rob Herring --- Documentation/devicetree/bindings/power/supply/bq27xxx.yam

[PATCH v10 16/33] counter: stm32-lptimer-cnt: Add const qualifier for actions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_synapse actions_list member expects a const enum counter_synapse_action array. This patch adds the const qualifier to the stm32_lptim_cnt_synapse_actions to match actions_list. Cc: Fabrice Gasnier Signed-off-by: William Breathitt Gray --- drivers/counter/stm32-lptimer-cnt.c |

[PATCH v10 21/33] counter: Rename counter_count_function to counter_function

2021-03-19 Thread William Breathitt Gray
The phrase "Counter Count function" is verbose and unintentionally implies that function is a Count extension. This patch adjusts the Counter subsystem code to use the more direct "Counter function" phrase to make the intent of this code clearer. Cc: Syed Nayyar Waris Cc: Patrick Havelange Cc: O

[PATCH] ASoC: wm8960: Fix wrong bclk and lrclk with pll enabled for some chips

2021-03-19 Thread Shengjiu Wang
The input MCLK is 12.288MHz, the desired output sysclk is 11.2896MHz and sample rate is 44100Hz, with the configuration pllprescale=2, postscale=sysclkdiv=1, some chip may have wrong bclk and lrclk output with pll enabled in master mode, but with the configuration pllprescale=1, postscale=2, the ou

[PATCH V7 2/2] power: supply: bq27xxx: Add support for BQ78Z100

2021-03-19 Thread LI Qingwu
Add support for TI BQ78Z100, I2C interface gas gauge. It provides a fully integrated safety protection and authentication for 1 to 2-series cell Li-Ion and Li-Polymer battery packs. The patch was tested with BQ78Z100 equipment. CASE I: Discharging: POWER_SUPPLY_NAME=bq78z100-0 PO

[PATCH v10 17/33] counter: stm32-timer-cnt: Add const qualifier for actions_list array

2021-03-19 Thread William Breathitt Gray
The struct counter_synapse actions_list member expects a const enum counter_synapse_action array. This patch adds the const qualifier to the stm32_synapse_actions to match actions_list. Cc: Fabrice Gasnier Cc: Benjamin Gaignard Signed-off-by: William Breathitt Gray --- drivers/counter/stm32-ti

[PATCH v10 26/33] counter: Add character device interface

2021-03-19 Thread William Breathitt Gray
This patch introduces a character device interface for the Counter subsystem. Device data is exposed through standard character device read operations. Device data is gathered when a Counter event is pushed by the respective Counter device driver. Configuration is handled via ioctl operations on th

[PATCH v10 23/33] counter: Update counter.h comments to reflect sysfs internalization

2021-03-19 Thread William Breathitt Gray
The Counter subsystem architecture and driver implementations have changed in order to handle Counter sysfs interactions in a more consistent way. This patch updates the Generic Counter interface header file comments to reflect the changes. Signed-off-by: William Breathitt Gray --- drivers/count

[PATCH v10 27/33] docs: counter: Document character device interface

2021-03-19 Thread William Breathitt Gray
This patch adds high-level documentation about the Counter subsystem character device interface. Signed-off-by: William Breathitt Gray --- Documentation/driver-api/generic-counter.rst | 185 ++ .../userspace-api/ioctl/ioctl-number.rst | 1 + 2 files changed, 145 insertion

[PATCH v10 24/33] docs: counter: Update to reflect sysfs internalization

2021-03-19 Thread William Breathitt Gray
The Counter subsystem architecture and driver implementations have changed in order to handle Counter sysfs interactions in a more consistent way. This patch updates the Generic Counter interface documentation to reflect the changes. Signed-off-by: William Breathitt Gray --- Documentation/ABI/te

[PATCH v10 25/33] counter: Move counter enums to uapi header

2021-03-19 Thread William Breathitt Gray
This is in preparation for a subsequent patch implementing a character device interface for the Counter subsystem. Reviewed-by: David Lechner Signed-off-by: William Breathitt Gray --- MAINTAINERS | 1 + include/linux/counter.h | 42 +-- include/uap

[PATCH v10 28/33] tools/counter: Create Counter tools

2021-03-19 Thread William Breathitt Gray
This creates an example Counter program under tools/counter/* to exemplify the Counter character device interface. Cc: Pavel Machek Signed-off-by: William Breathitt Gray --- MAINTAINERS | 1 + tools/Makefile | 13 ++--- tools/counter/Build | 1

[PATCH v10 29/33] counter: Implement signalZ_action_component_id sysfs attribute

2021-03-19 Thread William Breathitt Gray
The Generic Counter chrdev interface expects users to supply component IDs in order to select Synapses for requests. In order for users to know what component ID belongs to which Synapse this information must be exposed. The signalZ_action_component_id attribute provides a way for users to discover

[PATCH v10 31/33] counter: Implement events_queue_size sysfs attribute

2021-03-19 Thread William Breathitt Gray
The events_queue_size sysfs attribute provides a way for users to dynamically configure the Counter events queue size for the Counter character device interface. The size is in number of struct counter_event data structures. The number of elements will be rounded-up to a power of 2 due to a require

[PATCH v10 33/33] counter: 104-quad-8: Add IRQ support for the ACCES 104-QUAD-8

2021-03-19 Thread William Breathitt Gray
The LSI/CSI LS7266R1 chip provides programmable output via the FLG pins. When interrupts are enabled on the ACCES 104-QUAD-8, they occur whenever FLG1 is active. Four functions are available for the FLG1 signal: Carry, Compare, Carry-Borrow, and Index. Carry: Interrupt gene

[PATCH v10 32/33] counter: 104-quad-8: Replace mutex with spinlock

2021-03-19 Thread William Breathitt Gray
This patch replaces the mutex I/O lock with a spinlock. This is in preparation for a subsequent patch adding IRQ support for 104-QUAD-8 devices; we can't sleep in an interrupt context, so we'll need to use a spinlock instead. Cc: Syed Nayyar Waris Signed-off-by: William Breathitt Gray --- drive

[PATCH v10 30/33] counter: Implement *_component_id sysfs attributes

2021-03-19 Thread William Breathitt Gray
The Generic Counter chrdev interface expects users to supply component IDs in order to select extensions for requests. In order for users to know what component ID belongs to which extension this information must be exposed. The *_component_id attribute provides a way for users to discover what com

Re: seccomp: Delay filter activation

2021-03-19 Thread Christian Brauner
On Thu, Mar 18, 2021 at 08:39:13PM +, Sargun Dhillon wrote: > On Thu, Mar 18, 2021 at 03:54:54PM +0100, Christian Brauner wrote: > > Sorry, I just found that mail. > > > > On Mon, Mar 01, 2021 at 03:44:06PM -0800, Kees Cook wrote: > > > On Mon, Mar 01, 2021 at 02:21:56PM +0100, Christian Braun

[PATCH v2 2/2] driver core: add helper for deferred probe reason setting

2021-03-19 Thread Ahmad Fatoum
We now have three places within the same file doing the same operation of freeing this pointer and setting it anew. A helper make this arguably easier to read, so add one. Signed-off-by: Ahmad Fatoum --- v1 -> v2: - no change --- drivers/base/dd.c | 17 +++-- 1 file changed, 11 inse

[PATCH v2 1/2] driver core: clear deferred probe reason on probe retry

2021-03-19 Thread Ahmad Fatoum
When retrying a deferred probe, any old defer reason string should be discarded. Otherwise, if the probe is deferred again at a different spot, but without setting a message, the now incorrect probe reason will remain. This was observed with the i.MX I2C driver, which ultimately failed to probe du

Re: [PATCH v4 0/3] crypto:hisilicon/sec - fixes some coding style

2021-03-19 Thread Herbert Xu
On Sat, Mar 13, 2021 at 03:28:22PM +0800, Longfang Liu wrote: > 1. Fix a problems. > 2. Fix some coding style. > > Changes v3 -> v4: > - Fixed an unused warning on dev. > - Create a patch for bugfix > > Changes v2 -> v3: > - Delete shash test error patch. > > Changes v1 -> v2: > - Modify

Re: [PATCH] char: hw_random: delete redundant printing of return value

2021-03-19 Thread Herbert Xu
On Sat, Mar 13, 2021 at 03:47:42PM +0800, Wang Qing wrote: > platform_get_irq() has already checked and printed the return value, > the printing here is nothing special, it is not necessary at all. > > Signed-off-by: Wang Qing > --- > drivers/char/hw_random/cctrng.c | 4 +--- > 1 file changed,

[PATCH] dt: rockchip: rk3399: Add dynamic power coefficient for GPU

2021-03-19 Thread Daniel Lezcano
The DTPM framework is looking for upstream SoC candidates to share the power numbers. We can see around different numbers but the one which seems to be consistent with the initial post for the values on the CPUs can be found in the patch https://lore.kernel.org/patchwork/patch/810159/ I don't kno

[PATCH 00/10] Convert signal32 to user read access by block

2021-03-19 Thread Christophe Leroy
Similarly to the work done earlier with writes, this series converts signal32 to using user_read_access_begin/end and unsafe_get_user() and friends. Applies on to of the signal64 series, ie on merge-test (ca6e327fefb2) Christophe Leroy (10): signal: Add unsafe_get_compat_sigset() powerpc/uacc

[PATCH 02/10] powerpc/uaccess: Also perform 64 bits copies in unsafe_copy_from_user() on ppc32

2021-03-19 Thread Christophe Leroy
Similarly to commit 5cf773fc8f37 ("powerpc/uaccess: Also perform 64 bits copies in unsafe_copy_to_user() on ppc32") ppc32 has an efficiant 64 bits unsafe_get_user(), so also use it in order to unroll loops more. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/uaccess.h | 6 +++---

[PATCH 01/10] signal: Add unsafe_get_compat_sigset()

2021-03-19 Thread Christophe Leroy
In the same way as commit 14026b94ccfe ("signal: Add unsafe_put_compat_sigset()"), this time add unsafe_get_compat_sigset() macro which is the 'unsafe' version of get_compat_sigset() For the bigendian, use unsafe_get_user() directly to avoid intermediate copy through the stack. For the littleendi

[PATCH 04/10] powerpc/signal32: Rename save_user_regs_unsafe() and save_general_regs_unsafe()

2021-03-19 Thread Christophe Leroy
Convention is to prefix functions with __unsafe_ instead of suffixing it with _unsafe. Rename save_user_regs_unsafe() and save_general_regs_unsafe() accordingly, that is respectively __unsafe_save_general_regs() and __unsafe_save_user_regs(). Suggested-by: Christopher M. Riedl Signed-off-by: Chr

[PATCH 10/10] powerpc/signal32: Simplify logging in sigreturn()

2021-03-19 Thread Christophe Leroy
Same spirit as commit debf122c777f ("powerpc/signal32: Simplify logging in handle_rt_signal32()"), remove this intermediate 'addr' local var. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/signal_32.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arch

[PATCH 07/10] powerpc/signal32: Reorder user reads in restore_tm_user_regs()

2021-03-19 Thread Christophe Leroy
In restore_tm_user_regs(), regroup the reads from 'sr' and the ones from 'tm_sr' together in order to allow two block user accesses in following patch. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/signal_32.c | 49 + 1 file changed, 37 insertions(+), 12

[PATCH 06/10] powerpc/signal32: Perform access_ok() inside restore_user_regs()

2021-03-19 Thread Christophe Leroy
In preparation of using user_access_begin/end in restore_user_regs(), move the access_ok() inside the function. It makes no difference as the behaviour on a failed access_ok() is the same as on failed restore_user_regs(). Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/signal_32.c | 8 +

[PATCH 09/10] powerpc/signal32: Convert do_setcontext[_tm]() to user access block

2021-03-19 Thread Christophe Leroy
Add unsafe_get_user_sigset() and transform PPC32 get_sigset_t() into an unsafe version unsafe_get_sigset_t(). Then convert do_setcontext() and do_setcontext_tm() to use user_read_access_begin/end. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/signal.h| 2 ++ arch/powerpc/kernel/s

[PATCH 03/10] powerpc/signal: Add unsafe_copy_ck{fpr/vsx}_from_user

2021-03-19 Thread Christophe Leroy
Add unsafe_copy_ckfpr_from_user() and unsafe_copy_ckvsx_from_user() Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/signal.h | 20 1 file changed, 20 insertions(+) diff --git a/arch/powerpc/kernel/signal.h b/arch/powerpc/kernel/signal.h index 1393876f3814..a5152ff3c

[PATCH 05/10] powerpc/signal32: Remove ifdefery in middle of if/else in sigreturn()

2021-03-19 Thread Christophe Leroy
In the same spirit as commit f1cf4f93de2f ("powerpc/signal32: Remove ifdefery in middle of if/else") MSR_TM_ACTIVE() is always defined and returns always 0 when CONFIG_PPC_TRANSACTIONAL_MEM is not selected, so the awful ifdefery in the middle of an if/else can be removed. Make 'msr_hi' a 'long lo

[PATCH 08/10] powerpc/signal32: Convert restore_[tm]_user_regs() to user access block

2021-03-19 Thread Christophe Leroy
Convert restore_user_regs() and restore_tm_user_regs() to use user_access_read_begin/end blocks. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ptrace.h | 2 +- arch/powerpc/kernel/signal_32.c | 141 +++--- 2 files changed, 72 insertions(+), 71 deletions

Re: [PATCH-tip 0/5] locking/locktorture: Fix locktorture ww_mutex test problems

2021-03-19 Thread Ingo Molnar
* Waiman Long wrote: > This is a follow-up patch series for the previous patchset on fixing > locktorture ww_mutex test problem [1]. The first 3 patches of that > series were merged into tip. It turns out that the last one of the > three wasn't quite right. So this patch series revert the last

Re: [PATCH net-next 2/4] gro: add combined call_gro_receive() + INDIRECT_CALL_INET() helper

2021-03-19 Thread Alexander Lobakin
From: Paolo Abeni Date: Fri, 19 Mar 2021 11:53:42 +0100 > Hello, Hi! > On Thu, 2021-03-18 at 18:42 +, Alexander Lobakin wrote: > > call_gro_receive() is used to limit GRO recursion, but it works only > > with callback pointers. > > There's a combined version of call_gro_receive() + INDIRECT

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