Re: [PATCH v3 6/7] input: atc260x: Add onkey driver for ATC260x PMICs

2020-12-05 Thread Dmitry Torokhov
On Sun, Dec 06, 2020 at 03:27:06AM +0200, Cristian Ciocaltea wrote: > The Actions Semi ATC260x PMICs are able to manage an onkey button. > This driver exposes the ATC260x onkey as an input device. It can also > be configured to force a system reset on a long key-press with an > adjustable duration.

[PATCH 10/10] staging: rtl8723bs: replace unique macros and ELEMENT_ID

2020-12-05 Thread Ross Schmidt
Replace unique macros and ELEMENT_ID with kernel provided ieee80211_eid enum. In a several cases multiple macros or constants are replaced by one constant. WLAN_EID_HT_CAP, _HT_CAPABILITY_IE_, and EID_HTCapability are replace by WLAN_EID_HT_CAPABILITY. _WPA2_IE_ID_, EID_WPA2, and _RSN_IE_2_ are

[PATCH 06/10] staging: rtl8723bs: remove WLAN_HT_CAP_SM_PS_* macros

2020-12-05 Thread Ross Schmidt
The WLAN_HT_CAP_SM_PS_* macro family is already defined in linux/ieee80211.h, remove them. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/include/wifi.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/wifi.h b/drivers/staging/rtl8723bs/incl

[PATCH 01/10] staging: rtl8723bs: replace unique macros and WIFI_STATUS_CODE

2020-12-05 Thread Ross Schmidt
Replace many unique macros and WIFI_STATUS_CODE enum with kernel provided ieee80211_statuscode. A duplicate WLAN_STATUS_ASSOC_DENIED_NOSHORT macro is also removed. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 54 +-- drivers/staging/rtl8723bs/in

[PATCH 03/10] staging: rtl8723bs: replace cap_* macros

2020-12-05 Thread Ross Schmidt
Replace unique cap_* macros with kernel provided WLAN_CAPABILITY_* macros. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c| 2 +- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 6 +++--- drivers/staging/rtl8723bs/core/rtw_mlme.c | 4 ++-- drivers/staging

[PATCH net v1 1/2] lan743x: improve performance: fix rx_napi_poll/interrupt ping-pong

2020-12-05 Thread Sven Van Asbroeck
From: Sven Van Asbroeck Even if the rx ring is completely full, and there is more rx data waiting on the chip, the rx napi poll fn will never run more than once - it will always immediately bail out and re-enable interrupts. Which results in ping-pong between napi and interrupt. This defeats the

[PATCH net v1 2/2] lan743x: boost performance: limit PCIe bandwidth requirement

2020-12-05 Thread Sven Van Asbroeck
From: Sven Van Asbroeck To support jumbo frames, each rx ring dma buffer is 9K in size. But the chip only stores a single frame per dma buffer. When the chip is working with the default 1500 byte MTU, a 9K dma buffer goes from chip -> cpu per 1500 byte frame. This means that to get 1G/s ethernet

[PATCH 04/10] staging: rtl8723bs: replace HT_CAP_AMPDU_FACTOR

2020-12-05 Thread Ross Schmidt
Replace unique HT_CAP_AMPDU_FACTOR enum with kernel provided ieee80211_max_ampdu_length_exp enum. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 4 ++-- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 12 ++-- drivers/staging/rtl8723bs/hal/rtl872

[PATCH 02/10] staging: rtl8723bs: replace WIFI_REASON_CODE

2020-12-05 Thread Ross Schmidt
Replace unique macros and WIFI_REASON_CODE enum with the kernel provided ieee80211_reasoncode. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 +-- drivers/staging/rtl8723bs/include/wifi.h | 36 --- 2 files changed, 2 insertions(+), 38 dele

[PATCH 07/10] staging: rtl8723bs: replace RTW_IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK

2020-12-05 Thread Ross Schmidt
Replace unique macro RTW_IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK with kernel provided IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK. The other IEEE80211_ADDBA_* and IEEE_DELBA_* macros are duplicates already defined in linux/ieee80211.h, remove them. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/

[PATCH 08/10] staging: rtl8723bs: remove unused macros

2020-12-05 Thread Ross Schmidt
Remove many macros from wifi.h because they are unused. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/include/wifi.h | 33 1 file changed, 33 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/wifi.h b/drivers/staging/rtl8723bs/include/wifi.h index

[PATCH 09/10] staging: rtl8723bs: remove LIST_CONTAINOR

2020-12-05 Thread Ross Schmidt
Remove unnecessary macro for container_of and call it directly. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/core/rtw_ap.c | 16 +++--- drivers/staging/rtl8723bs/core/rtw_cmd.c | 2 +- drivers/staging/rtl8723bs/core/rtw_mlme.c | 18 +++ drivers/st

Re: [PATCHSET] saner elf compat

2020-12-05 Thread Al Viro
On Thu, Dec 03, 2020 at 11:03:36PM +, Al Viro wrote: > > > The answer (for mainline) is that mips compat does *NOT* want > > > COMPAT_BINFMT_ELF. Not a problem with that series, though, so I'd > > > retested it (seems to work, both for x86_64 and mips64, execs and > > > coredumps for all ABIs

Re: memory leak in generic_parse_monolithic [+PATCH]

2020-12-05 Thread Randy Dunlap
On 11/13/20 9:17 AM, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:af5043c8 Merge tag 'acpi-5.10-rc4' of git://git.kernel.org.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13e8c90650 > kernel config: https://syz

Re: [PATCH 1/1] mm: compaction: avoid fast_isolate_around() to set pageblock_skip on reserved pages

2020-12-05 Thread Andrea Arcangeli
Hi Mel, On Thu, Nov 26, 2020 at 10:47:20AM +, Mel Gorman wrote: > Agreed. This thread has a lot of different directions in it at this > point so what I'd hope for is first, a patch that initialises holes with > zone/node linkages within a 1<<(MAX_ORDER-1) alignment. If there is a > hole, it wo

Re: [PATCH v1 bpf-next 06/11] bpf: Introduce two attach types for BPF_PROG_TYPE_SK_REUSEPORT.

2020-12-05 Thread Kuniyuki Iwashima
I'm sending this mail just for logging because I failed to send mails only to LKML, netdev, and bpf yesterday. From: Martin KaFai Lau Date: Thu, 3 Dec 2020 21:56:53 -0800 > On Thu, Dec 03, 2020 at 11:16:08PM +0900, Kuniyuki Iwashima wrote: > > From: Martin KaFai Lau > > Date: Wed, 2 Dec

Re: [PATCH v1 bpf-next 09/11] bpf: Support bpf_get_socket_cookie_sock() for BPF_PROG_TYPE_SK_REUSEPORT.

2020-12-05 Thread Kuniyuki Iwashima
I'm sending this mail just for logging because I failed to send mails only to LKML, netdev, and bpf yesterday. From: Martin KaFai Lau Date: Fri, 4 Dec 2020 11:58:07 -0800 > On Tue, Dec 01, 2020 at 11:44:16PM +0900, Kuniyuki Iwashima wrote: > > We will call sock_reuseport.prog for socket mig

Re: [PATCH v1 bpf-next 01/11] tcp: Keep TCP_CLOSE sockets in the reuseport group.

2020-12-05 Thread Kuniyuki Iwashima
I'm sending this mail just for logging because I failed to send mails only to LKML, netdev, and bpf yesterday. From: Martin KaFai Lau Date: Fri, 4 Dec 2020 17:31:03 -0800 > On Tue, Dec 01, 2020 at 11:44:08PM +0900, Kuniyuki Iwashima wrote: > > This patch is a preparation patch to migrate in

Re: [PATCH v1 bpf-next 03/11] tcp: Migrate TCP_ESTABLISHED/TCP_SYN_RECV sockets in accept queues.

2020-12-05 Thread Kuniyuki Iwashima
I'm sending this mail just for logging because I failed to send mails only to LKML, netdev, and bpf yesterday. From: Martin KaFai Lau Date: Fri, 4 Dec 2020 17:42:41 -0800 > On Tue, Dec 01, 2020 at 11:44:10PM +0900, Kuniyuki Iwashima wrote: > [ ... ] > > diff --git a/net/core/sock_reuseport.

Re: [PATCH v1 bpf-next 11/11] bpf: Test BPF_SK_REUSEPORT_SELECT_OR_MIGRATE.

2020-12-05 Thread Kuniyuki Iwashima
I'm sending this mail just for logging because I failed to send mails only to LKML, netdev, and bpf yesterday. From: Martin KaFai Lau Date: Fri, 4 Dec 2020 17:50:00 -0800 > On Tue, Dec 01, 2020 at 11:44:18PM +0900, Kuniyuki Iwashima wrote: > > This patch adds a test for BPF_SK_REUSEPORT_SEL

Re: [PATCH 1/1] dt-bindings: eliminate yamllint warnings

2020-12-05 Thread Leizhen (ThunderTown)
On 2020/12/5 1:41, Mark Brown wrote: > On Fri, Dec 04, 2020 at 10:42:26AM +0800, Zhen Lei wrote: >> All warnings are related only to "wrong indentation", except one: >> Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml:4:1: \ >> [error] missing document start "---" (document-start) > >

Re: [PATCH 1/5] media: dt-bindings: add the required property 'additionalProperties'

2020-12-05 Thread Leizhen (ThunderTown)
On 2020/12/4 18:56, Philipp Zabel wrote: > On Fri, 2020-12-04 at 17:38 +0800, Zhen Lei wrote: >> When I do dt_binding_check for any YAML file, below wanring is always >> reported: >> >> xxx/media/coda.yaml: 'additionalProperties' is a required property >> xxx/media/coda.yaml: ignoring, error in

[PATCH] Debug config option for including cpu thread id in fault and signal info

2020-12-05 Thread Andrew G. Morgan
This option defaults to off. I found this useful doing some fault isolation on an out of warranty PC. I found one CPU core was consistently segfaulting and, together with isolcpus=,... I was able to breathe some life back into that machine. Since the si_errno value is generally hard-coded as zero

[PATCH v2 1/8] lib/find_bit.c: Add find_last_zero_bit

2020-12-05 Thread Levi Yun
Inspired find_next_*_bit and find_last_bit, add find_last_zero_bit And add le support about find_last_bit and find_last_zero_bit. Signed-off-by: Levi Yun --- lib/find_bit.c | 64 -- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/lib

[PATCH v2 3/8] bitops/find.h: Add declaration find_last_zero_bit

2020-12-05 Thread Levi Yun
Inspired find_next_*_bit function series, add find_last_zero_bit. These patch adds declarations for find_last_zero_bit. Also, I move declaration of find_last_bit to asm-generic/bitops/find.h Because: I think its declaration need not to in __KERNEL__ macro compared to find_next_*_bit and find_first_

[PATCH v2 2/8] linux/bitops.h: Add find_each_*_bit_reverse macros

2020-12-05 Thread Levi Yun
Add reverse routine for find_each_*_bit using find_last_bit and find_last_zero_bit. for correspondant usage wtih find_each_*_bit macros we use same parameters, But when we use these macro different from find_each_*_bit, @size should be a variable NOT constants. Signed-off-by: Levi Yun --- includ

[PATCH v2 4/8] bitops/le.h: Add le support for find_last_bit

2020-12-05 Thread Levi Yun
Inspired find_next_*_bit function series, add find_last_zero_bit. These patch adds declarations for find_last_zero_bit. This patch is for le support of find_last_bit and find_last_bit_zero. Signed-off-by: Levi Yun --- include/asm-generic/bitops/le.h | 20 1 file changed, 20

[PATCH v2 8/8] ufs/util.h: Apply new find_last_zero_bit.

2020-12-05 Thread Levi Yun
Former find_last_zero_bit in ufs makes complie error when we add find_last_zero_bit in lib/find_bit.c We remove former find_last_zero_bit in ufs which iterates per char, And apply new find_last_zero_bit in lib. Signed-off-by: Levi Yun --- fs/ufs/util.h | 30 +++--- 1 file

Re: [PATCH v8 00/16] Add support for Clang LTO

2020-12-05 Thread Nathan Chancellor
On Fri, Dec 04, 2020 at 02:52:41PM -0800, Sami Tolvanen wrote: > On Thu, Dec 3, 2020 at 2:32 PM Nick Desaulniers > wrote: > > > > So I'd recommend to Sami to simply make the Kconfig also depend on > > clang's integrated assembler (not just llvm-nm and llvm-ar). > > Sure, sounds good to me. What'

[PATCH v2 5/8] lib/find_bit_bench.c: Add find_last_zero_bit.

2020-12-05 Thread Levi Yun
Add bench test of find_last_zero_bit. Also, this patch fix the unmatched iterations value with find_next_bit and find_last_bit which happen when the last bit set or not, Let suppose, 4096 bitmap size and 4095 bit is set only. In this case former find_next_bit returns iterations count as 0. But fin

[PATCH v2 6/8] lib/find_bit: Add test-module,find_last_zero_bit

2020-12-05 Thread Levi Yun
Add test module to test find_last_zero_bit and find_each_*_bit_revserse. Signed-off-by: Levi Yun --- lib/Kconfig.debug| 8 ++ lib/Makefile | 1 + lib/test_find_last_bit.c | 235 +++ 3 files changed, 244 insertions(+) create mode 100644

[PATCH v2 7/8] btrfs/free-space-cache.c: Apply find_last_zero_bit

2020-12-05 Thread Levi Yun
In steal_from_bitmap_to_front function, it finds last_zero_bit from i using for_each_clear_bit. But this makes some overhead that it starts from the 0 bit. By adding find_last_zero_bit, I try to remove this overhead and improve readibility. Signed-off-by: Levi Yun --- fs/btrfs/free-space-cache.c

Re: [PATCH] vdpa/mlx5: Use random MAC for the vdpa net instance

2020-12-05 Thread Eli Cohen
On Fri, Dec 04, 2020 at 10:53:28AM +0800, Jason Wang wrote: > > On 2020/12/3 下午8:24, Eli Cohen wrote: > > > > It is mentioned in Parav's patchset that this will be coming in a > > > > subsequent patch to his vdpa tool. > > > So I think kernel has two options: > > > - require a mac when device is c

Re: [PATCH v2 0/9] Add support for Microsoft Surface System Aggregator Module

2020-12-05 Thread Leon Romanovsky
On Thu, Dec 03, 2020 at 10:26:31PM +0100, Maximilian Luz wrote: > Hello, > > Here is version two of the Surface System Aggregator Module (SAM/SSAM) > driver series, adding initial support for the embedded controller on 5th > and later generation Microsoft Surface devices. Initial support includes >

[PATCH] vme: switch from 'pci_' to 'dma_' API

2020-12-05 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'ca91cx42_alloc_consistent()' and 'tsi148_alloc_cons

Re: [PATCH v2 07/17] driver core: Add fwnode_init()

2020-12-05 Thread Leon Romanovsky
On Fri, Nov 20, 2020 at 06:02:22PM -0800, Saravana Kannan wrote: > There are multiple locations in the kernel where a struct fwnode_handle > is initialized. Add fwnode_init() so that we have one way of > initializing a fwnode_handle. > > Signed-off-by: Saravana Kannan > --- > drivers/acpi/propert

!!!!! Ask Details For Relief

2020-12-05 Thread United Nations Covid-19 Relief Unit
You has been chosen via E-mail for the United Nations Covid-19 Relief F und, for more details reply to sangior...@aclipisa.it Best regards, Dr. Susan Marshal

[PATCH 3/8] tty: serial: jsm: Fixed file by added more spacing

2020-12-05 Thread Clement Smith
Fixed a coding style issue Signed-off-by: Clement Smith --- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c index 202d6ba93313..2bc5f32e59f4 100644 --- a/drivers/tty/serial/js

[PATCH 1/8] tty: serial: jsm: Fixed file by added more spacing

2020-12-05 Thread Clement Smith
Fixed a coding style issue Signed-off-by: Clement Smith --- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c index 689774c073ca..512b77195e9f 100644 --- a/drivers/tty/serial/js

[PATCH 7/8] tty: serial: jsm: Fixed file by added more spacing

2020-12-05 Thread Clement Smith
Fixed a coding style issue Signed-off-by: Clement Smith --- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c index 19d2f0bc6c10..eab82fb6b384 100644 --- a/drivers/tty/serial/js

[PATCH 8/8] tty: serial: jsm: Removed assignment in if statement

2020-12-05 Thread Clement Smith
Fixed a coding style issue Signed-off-by: Clement Smith --- drivers/tty/serial/jsm/jsm_tty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c index eab82fb6b384..bfd4b55e6c74 100644 --- a/drivers/tty/serial/

[PATCH 2/8] tty: serial: jsm: Fixed file by added more spacing

2020-12-05 Thread Clement Smith
Fixed a coding style issue Signed-off-by: Clement Smith --- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c index 512b77195e9f..202d6ba93313 100644 --- a/drivers/tty/serial/js

[PATCH 6/8] tty: serial: jsm: Fixed file by added more spacing

2020-12-05 Thread Clement Smith
Fixed a coding style issue Signed-off-by: Clement Smith --- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c index 75c9bfa5077c..19d2f0bc6c10 100644 --- a/drivers/tty/serial/js

[PATCH 5/8] tty: serial: jsm: Fixed file by added more spacing

2020-12-05 Thread Clement Smith
Fixed a coding style issue Signed-off-by: Clement Smith --- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c index 45e212be64c4..75c9bfa5077c 100644 --- a/drivers/tty/serial/js

[PATCH 4/8] tty: serial: jsm: Fixed file by added more spacing

2020-12-05 Thread Clement Smith
Fixed a coding style issue Signed-off-by: Clement Smith --- drivers/tty/serial/jsm/jsm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c index 2bc5f32e59f4..45e212be64c4 100644 --- a/drivers/tty/serial/js

Re: [PATCH v2 08/17] driver core: Add fwnode link support

2020-12-05 Thread Leon Romanovsky
On Fri, Nov 20, 2020 at 06:02:23PM -0800, Saravana Kannan wrote: > Add support for creating supplier-consumer links between fwnodes. It is > intended for internal use the driver core and generic firmware support > code (eg. Device Tree, ACPI), so it is simple by design and the API > provided is li

[PATCH v3] scsi: NCR5380: Remove context check

2020-12-05 Thread Ahmed S. Darwish
NCR5380_poll_politely2() uses in_interrupt() and irqs_disabled() to check if it is safe to sleep. Such usage in drivers is phased out and Linus clearly requested that code which changes behaviour depending on context should either be separated, or the context be explicitly conveyed in an argument

<    1   2   3   4   5