Re: [PATCH kernel] fs/io_ring: Fix lockdep warnings

2020-11-30 Thread Alexey Kardashevskiy
On 01/12/2020 03:34, Pavel Begunkov wrote: On 30/11/2020 02:00, Alexey Kardashevskiy wrote: There are a few potential deadlocks reported by lockdep and triggered by syzkaller (a syscall fuzzer). These are reported as timer interrupts can execute softirq handlers and if we were executing certa

Re: [GIT pull] locking/urgent for v5.10-rc6

2020-11-30 Thread Peter Zijlstra
On Tue, Dec 01, 2020 at 08:39:06AM +0100, Peter Zijlstra wrote: > On Mon, Nov 30, 2020 at 09:55:44AM -0800, Linus Torvalds wrote: > > > Yes, yes, I can very well imagine some hardware doing a "idle until > > you sense an interrupt, but don't actually take it". It's not > > _impossible_. But it's c

Re: [PATCH] bus: mhi: core: Fix error handling in mhi_register_controller()

2020-11-30 Thread Loic Poulain
On Tue, 1 Dec 2020 at 08:05, Dan Carpenter wrote: > > There are a few problems with the error handling in this function. They > mostly center around the alloc_ordered_workqueue() allocation. > 1) If that allocation fails or if the kcalloc() prior to it fails then > it leads to a NULL dereference

[PATCH v13 10/10] secretmem: test: add basic selftest for memfd_secret(2)

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport The test verifies that file descriptor created with memfd_secret does not allow read/write operations, that secret memory mappings respect RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and ptrace() to the secret memory fail. Signed-off-by: Mike Rapoport ---

Re: [GIT pull] locking/urgent for v5.10-rc6

2020-11-30 Thread Sven Schnelle
Hi Peter, Peter Zijlstra writes: > On Mon, Nov 30, 2020 at 01:52:11PM +0100, Peter Zijlstra wrote: >> On Mon, Nov 30, 2020 at 01:31:33PM +0100, Sven Schnelle wrote: >> > [0.670280] [ cut here ] >> > [0.670288] WARNING: CPU: 1 PID: 0 at kernel/rcu/tree.c:1054 >>

[PATCH v13 08/10] PM: hibernate: disable when there are active secretmem users

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport It is unsafe to allow saving of secretmem areas to the hibernation snapshot as they would be visible after the resume and this essentially will defeat the purpose of secret memory mappings. Prevent hibernation whenever there are active secret memory users. Signed-off-by: Mik

[PATCH v13 09/10] arch, mm: wire up memfd_secret system call were relevant

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. Signed-off-by: Mike Rapoport Acked-by: Palmer Dabbelt Acked-by: Arnd Bergmann --- arch/arm64/include/uapi/asm/unistd.h | 1 + arch/riscv/include/asm/unis

[PATCH v13 07/10] secretmem: add memcg accounting

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport Account memory consumed by secretmem to memcg. The accounting is updated when the memory is actually allocated and freed. Signed-off-by: Mike Rapoport Acked-by: Roman Gushchin --- mm/filemap.c | 3 ++- mm/secretmem.c | 36 +++- 2 files ch

Re: WARNING: filesystem loop5 was created with 512 inodes, the real maximum is 511, mounting anyway

2020-11-30 Thread Dmitry Vyukov
On Tue, Dec 1, 2020 at 2:03 AM Randy Dunlap wrote: > > On 11/30/20 12:43 AM, Dmitry Vyukov wrote: > > On Mon, Nov 30, 2020 at 5:29 AM Randy Dunlap wrote: > >> > >> On 11/27/20 4:32 AM, syzbot wrote: > >>> Hello, > >>> > >>> syzbot found the following issue on: > >>> > >>> HEAD commit:418baf2c

[PATCH v13 04/10] set_memory: allow querying whether set_direct_map_*() is actually enabled

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport On arm64, set_direct_map_*() functions may return 0 without actually changing the linear map. This behaviour can be controlled using kernel parameters, so we need a way to determine at runtime whether calls to set_direct_map_invalid_noflush() and set_direct_map_default_noflush

[PATCH v13 06/10] secretmem: use PMD-size pages to amortize direct map fragmentation

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport Removing a PAGE_SIZE page from the direct map every time such page is allocated for a secret memory mapping will cause severe fragmentation of the direct map. This fragmentation can be reduced by using PMD-size pages as a pool for small pages for secret memory mappings. Add a

[PATCH v13 05/10] mm: introduce memfd_secret system call to create "secret" memory areas

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport Introduce "memfd_secret" system call with the ability to create memory areas visible only in the context of the owning process and not mapped not only to other processes but in the kernel page tables as well. The user will create a file descriptor using the memfd_secret() sys

[PATCH v13 02/10] mmap: make mlock_future_check() global

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport --- mm/internal.h | 3 +++ mm/mmap.c | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index c43ccdddb0f6..ae146a260b14 10064

[PATCH v13 03/10] set_memory: allow set_direct_map_*_noflush() for multiple pages

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport The underlying implementations of set_direct_map_invalid_noflush() and set_direct_map_default_noflush() allow updating multiple contiguous pages at once. Add numpages parameter to set_direct_map_*_noflush() to expose this ability with these APIs. Signed-off-by: Mike Rapoport

[PATCH] ARM: dts: omap3-gta04: fix twl4030-power settings

2020-11-30 Thread Andreas Kemnade
Things are wired up for powersaving, so lets use the corresponding compatible and also update a deprecated property name. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/omap3-gta04.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/omap3-gta04.dt

[PATCH v13 00/10] mm: introduce memfd_secret system call to create "secret" memory areas

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport Hi, @Andrew, this is based on v5.10-rc2-mmotm-2020-11-07-21-40, I can rebase on current mmotm if you prefer. This is an implementation of "secret" mappings backed by a file descriptor. The file descriptor backing secret memory mappings is created using a dedicated memfd_sec

[PATCH v13 01/10] mm: add definition of PMD_PAGE_ORDER

2020-11-30 Thread Mike Rapoport
From: Mike Rapoport The definition of PMD_PAGE_ORDER denoting the number of base pages in the second-level leaf page is already used by DAX and maybe handy in other cases as well. Several architectures already have definition of PMD_ORDER as the size of second level page table, so to avoid confl

Re: [PATCH] INPUT: xpad: support Ardwiino Controllers

2020-11-30 Thread Dmitry Torokhov
Hi Sanjay, On Tue, Dec 01, 2020 at 08:19:23PM +1300, sanjay.govi...@gmail.com wrote: > From: Sanjay Govind > > This commit adds support for Ardwiino Controllers > > Signed-off-by: Sanjay Govind > --- > drivers/input/joystick/xpad.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/d

general protection fault in workingset_age_nonresident

2020-11-30 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c6b11acc Add linux-next specific files for 20201130 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1074103d50 kernel config: https://syzkaller.appspot.com/x/.config?x=b5e03844e9b34d37 dashboard

Re: [PATCH] staging:media:zoran: Fixed grammar issue

2020-11-30 Thread LABBE Corentin
On Mon, Nov 30, 2020 at 05:06:59PM -0600, Travis Carter wrote: > Removed repeated word 'in' > > Signed-off-by: Travis Carter > --- > drivers/staging/media/zoran/zoran_card.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/media/zoran/zoran_card.c > b/dr

回复: INFO: task hung in ath6kl_usb_destroy (3)

2020-11-30 Thread Zhang, Qiang
发件人: syzbot 发送时间: 2020年11月30日 23:31 收件人: andreyk...@google.com; da...@davemloft.net; k...@kernel.org; kv...@codeaurora.org; linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; linux-wirel...@vger.kernel.org; net...@vger.kernel.org; syzkaller-b...@

[PATCH v2 1/2] dt-bindings: arm: fsl: add Protonic MVT board

2020-11-30 Thread Oleksij Rempel
Add Protonic MVT imx6dl based board Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index 8abe71b8646d..ad95b29268

[PATCH v2 0/2] mainline Protonic MVT board

2020-11-30 Thread Oleksij Rempel
changes v2: - fix active level of SPI CS GPIOs Oleksij Rempel (2): dt-bindings: arm: fsl: add Protonic MVT board ARM: dts: add Protonic MVT board .../devicetree/bindings/arm/fsl.yaml | 1 + arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/imx6dl-prtmvt.dts

[PATCH v2 2/2] ARM: dts: add Protonic MVT board

2020-11-30 Thread Oleksij Rempel
PRTMVT is the reference platform for Protonic industrial touchscreen terminals. Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6dl-prtmvt.dts | 851 2 files changed, 852 insertions(+) create mode 100644 arch/arm/b

Re: [PATCH v3] RISC-V: Use SBI SRST extension when available

2020-11-30 Thread Atish Patra
On Tue, Nov 24, 2020 at 9:18 PM Anup Patel wrote: > > The SBI SRST extension provides a standard way to poweroff and > reboot the system irrespective to whether Linux RISC-V S-mode > is running natively (HS-mode) or inside Guest/VM (VS-mode). > > The SBI SRST extension is available in latest SBI v

Re: [PATCH] scsi: ufs: clear uac for RPMB after ufshcd resets

2020-11-30 Thread kernel test robot
Hi Jaegeuk, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on scsi/for-next] [also build test WARNING on mkp-scsi/for-next linux/master linus/master v5.10-rc6 next-20201130] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

BUG: unable to handle kernel paging request in workingset_age_nonresident

2020-11-30 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c6b11acc Add linux-next specific files for 20201130 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=114b94e950 kernel config: https://syzkaller.appspot.com/x/.config?x=b5e03844e9b34d37 dashboard

Re: [GIT pull] locking/urgent for v5.10-rc6

2020-11-30 Thread Peter Zijlstra
On Mon, Nov 30, 2020 at 09:55:44AM -0800, Linus Torvalds wrote: > Yes, yes, I can very well imagine some hardware doing a "idle until > you sense an interrupt, but don't actually take it". It's not > _impossible_. But it's certainly not normal. A lot of hardware actually does that, including mode

[RFC v2 2/2] perf-stat: enable counting events for BPF programs

2020-11-30 Thread Song Liu
Introduce perf-stat -b option, which counts events for BPF programs, like: [root@localhost ~]# ~/perf stat -e ref-cycles,cycles -b 254 -I 1000 1.487903822115,200 ref-cycles 1.487903822 86,012 cycles 2.489147029 80,560 ref-cycles

[RFC v2 1/2] perf: support build BPF skeletons with perf

2020-11-30 Thread Song Liu
BPF programs are useful in perf to profile BPF programs. BPF skeleton is by far the easiest way to write BPF tools. Enable building BPF skeletons in util/bpf_skel. A dummy bpf skeleton is added. More bpf skeletons will be added for different use cases. Signed-off-by: Song Liu --- tools/bpf/bpfto

[RFC v2 0/2] Introduce perf-stat -b for BPF programs

2020-11-30 Thread Song Liu
This set introduces perf-stat -b option to count events for BPF programs. This is similar to bpftool-prog-profile. But perf-stat makes it much more flexible. Sending as RFC because I haven't addressed some known limitations: 1. Only counting events for one BPF program at a time. 2. Need extra

Re: [PATCH v6 1/3] i2c: imx: Fix reset of I2SR_IAL flag

2020-11-30 Thread Christian Eggers
On Saturday, 10 October 2020, 13:09:20 CET, Wolfram Sang wrote: > On Fri, Oct 09, 2020 at 01:03:18PM +0200, Christian Eggers wrote: > > According to the "VFxxx Controller Reference Manual" (and the comment > > block starting at line 97), Vybrid requires writing a one for clearing > > an interrupt f

Re: [PATCH v5 2/3] net: add kcov handle to skb extensions

2020-11-30 Thread Ido Schimmel
On Mon, Nov 30, 2020 at 05:52:48PM -0800, Jakub Kicinski wrote: > On Sat, 21 Nov 2020 18:09:41 +0200 Ido Schimmel wrote: > > + Florian > > > > On Thu, Oct 29, 2020 at 05:36:19PM +, Aleksandr Nogikh wrote: > > > From: Aleksandr Nogikh > > > > > > Remote KCOV coverage collection enables covera

fs/ext4/fast_commit.c:1753:27: warning: unused function 'tag2str'

2020-11-30 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b65054597872ce3aefbc6a666385eabdf9e288da commit: 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 ext4: fast commit recovery path date: 6 weeks ago config: mips-randconfig-r023-20201201 (attached as .config) compil

Re: [PATCH 5/5] minor: kunit: tool: s/get_absolute_path/test_data_path in unit test

2020-11-30 Thread David Gow
On Tue, Dec 1, 2020 at 7:33 AM Daniel Latypov wrote: > > 1. the name is a lie. It gives relative paths, e.g. if I run from the > same dir as the test file, it gives './test_data/' > > 2. it's only used for generating paths to tools/testing/kunit/test_data/ > So we can tersen things by making it le

Re: [PATCH 4/5] kunit: tool: use `with open()` in unit test

2020-11-30 Thread David Gow
On Tue, Dec 1, 2020 at 7:33 AM Daniel Latypov wrote: > > The use of manual open() and .close() calls seems to be an attempt to > keep the contents in scope. > But Python doesn't restrict variables like that, so we can introduce new > variables inside of a `with` and use them outside. > > Do so to

Re: [PATCH 2/5] kunit: tool: fix unit test so it can run from non-root dir

2020-11-30 Thread David Gow
On Tue, Dec 1, 2020 at 7:33 AM Daniel Latypov wrote: > > get_absolute_path() makes an attempt to allow for this. > But that doesn't work as soon as os.chdir() gets called. Can we explain why this doesn't work? It's because the test_data/ files are accessed with relative paths, so chdir breaks acc

Re: [PATCH 3/5] kunit: tool: stop using bare asserts in unit test

2020-11-30 Thread David Gow
On Tue, Dec 1, 2020 at 7:33 AM Daniel Latypov wrote: > > Use self.assertEqual/assertNotEqual() instead. > Besides being more appropriate in a unit test, it'll also give a better > error message by show the unexpected values. > > Also > * Delete redundant check of exception types. self.assertRaises

Re: [PATCH 1/5] kunit: tool: fix unit test cleanup handling

2020-11-30 Thread David Gow
On Tue, Dec 1, 2020 at 7:32 AM Daniel Latypov wrote: > > * Stop leaking file objects. > * Use self.addCleanup() to ensure we call cleanup functions even if > setUp() fails. > * use mock.patch.stopall instead of more error-prone manual approach > > Signed-off-by: Daniel Latypov > --- I won't pret

Re: [PATCH] ARM: dts: OMAP3: disable AES on N950/N9

2020-11-30 Thread Tony Lindgren
* Aaro Koskinen [201129 16:47]: > AES needs to be disabled on Nokia N950/N9 as well (HS devices), otherwise > kernel fails to boot. Thanks applying into fixes. Tony

Re: [PATCH] ARM: omap2plus_defconfig: drop unused POWER_AVS option

2020-11-30 Thread Tony Lindgren
* Andrey Zhizhikin [201130 14:43]: > Commit 785b5bb41b0a ("PM: AVS: Drop the avs directory and the > corresponding Kconfig") moved AVS code to SOC-specific folders, and > removed corresponding Kconfig from drivers/power, leaving original > POWER_AVS config option enabled in omap2plus_defconfig fil

[PATCH v4 3/5] ARM: dts: add Kverneland UT1, UT1Q and UT1P

2020-11-30 Thread Oleksij Rempel
VICUT1(Q,P) is the Kverneland UT1(Q,P) IsoBus universal terminal for agricultural applications on tractors. Co-Developed-by: David Jander Signed-off-by: David Jander Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/Makefile| 3 + arch/arm/boot/dts/imx6dl-vicut1.dts | 13 +

[PATCH v4 5/5] ARM: dts: add Kverneland TGO board

2020-11-30 Thread Oleksij Rempel
VICTGO is the Kverneland TGO IsoBus universal terminal for agricultural applications on tractors Co-Developed-by: David Jander Signed-off-by: David Jander Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6dl-victgo.dts | 850 ++

Re: [PATCH 0/2] ARM: dts: am335x-evm/evmsk/icev2: switch to new cpsw switch drv

2020-11-30 Thread Tony Lindgren
* Grygorii Strashko [201119 17:45]: > Hi Tony, > > This is the initial conversation of am335x boards to use new cpsw switch > driver. > This series adds the cpsw switch driver DT definition and > am335x-evm/evmsk/icev2 > boards are converted to use it. Thanks applying into omap-for-v5.11/dt.

[PATCH v4 1/5] dt-bindings: vendor-prefixes: Add an entry for Kverneland Group

2020-11-30 Thread Oleksij Rempel
Add "kvg" entry for Kverneland Group: https://ien.kvernelandgroup.com/ Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree

[PATCH v4 4/5] dt-bindings: arm: fsl: add Kverneland TGO board

2020-11-30 Thread Oleksij Rempel
Add Kverneland TGO imx6dl based board Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index 7b2f83bb56cb..8abe71b8

Re: [PATCH] hwmon: corsair-psu: update supported devices

2020-11-30 Thread Wilken Gottwalt
On Mon, 30 Nov 2020 18:25:30 +0200 Backlund Thomas wrote: > Den 30.11.2020 kl. 16:49, skrev Wilken Gottwalt: > > On Mon, 30 Nov 2020 14:43:44 +0200 > > Thomas Backlund wrote: > > > >> Den 28.11.2020 kl. 12:35, skrev Wilken Gottwalt: > >>> On Sat, 28 Nov 2020 02:37:38 -0300 > >>> Jonas Malaco wr

[PATCH v4 2/5] dt-bindings: arm: fsl: add Kverneland UT1, UT1Q and UI1P boards

2020-11-30 Thread Oleksij Rempel
Add Kverneland UT1 (imx6dl), UT1Q (imx6q) and UT1P (imx6dp) based boards Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/arm/fsl.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm

[PATCH v4 0/5] mainline Kverneland boards

2020-11-30 Thread Oleksij Rempel
changes v4: - fix active level of SPI CS GPIOs changes v3: - add vicutp board - change tvnorm to sdtv-standards - change linux,default-trigger "mmc" to "disk-activity"; - add power-supply property to the panel node changes v2: - add victgo board - diff fixes for vicut1.dtsi Oleksij Rempel (5):

[PATCH v2] checkpatch: fix TYPO_SPELLING check for words with apostrophe

2020-11-30 Thread Dwaipayan Ray
checkpatch reports a false TYPO_SPELLING warning for some words containing an apostrophe when run with --codespell option. A false positive is "doesn't". Occurrence of the word causes checkpatch to emit the following warning: "WARNING: 'doesn'' may be misspelled - perhaps 'doesn't'?" Modify the

Re: [RFC PATCH 1/3] KVM: arm64: Fix possible memory leak in kvm stage2

2020-11-30 Thread wangyanan (Y)
Hi Will, On 2020/11/30 21:21, Will Deacon wrote: On Mon, Nov 30, 2020 at 08:18:45PM +0800, Yanan Wang wrote: When installing a new leaf pte onto an invalid ptep, we need to get_page(ptep). When just updating a valid leaf ptep, we shouldn't get_page(ptep). Incorrect page_count of translation tab

Re: [PATCH v5 4/7] pwm: ntxec: Add driver for PWM function in Netronix EC

2020-11-30 Thread Uwe Kleine-König
Hello Jonathan, very nice driver, just a few minor comments below. On Tue, Dec 01, 2020 at 02:15:10AM +0100, Jonathan Neuschäfer wrote: > +static struct ntxec_pwm *pwmchip_to_priv(struct pwm_chip *chip) a function prefix would be great here, I'd pick ntxec_pwm_from_chip as name. > +{ > + re

[PATCH] INPUT: xpad: support Ardwiino Controllers

2020-11-30 Thread sanjay . govind9
From: Sanjay Govind This commit adds support for Ardwiino Controllers Signed-off-by: Sanjay Govind --- drivers/input/joystick/xpad.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index c77cdb3b62b5..91a5c7e7bdd2 100644 --- a

Re: [PATCH 32/40] drm/amd/display/amdgpu_dm/amdgpu_dm: Mark 'link_bandwidth_kbps' as __maybe_unused

2020-11-30 Thread Lee Jones
On Mon, 30 Nov 2020, Alex Deucher wrote: > On Thu, Nov 26, 2020 at 8:43 AM Lee Jones wrote: > > > > 'link_bandwidth_kbps' is always obtained, but only used if > > CONFIG_DRM_AMD_DC_DCN is defined. > > Probably better to just move this under CONFIG_DRM_AMD_DC_DCN. I'll > send a patch. I conside

[PATCH v5 6/7] MAINTAINERS: Add entry for Netronix embedded controller

2020-11-30 Thread Jonathan Neuschäfer
Let's make sure I'll notice when there are patches for the NTXEC drivers. Signed-off-by: Jonathan Neuschäfer --- v4, v5: - no changes v3: - https://lore.kernel.org/lkml/20200924192455.2484005-7-j.neuschae...@gmx.net/ - Remove pwm and rtc bindings v2: - https://lore.kernel.org/lkml/202009051445

[PATCH v2] f2fs: Remove unnecessary unlikely()

2020-11-30 Thread Shuosheng Huang
From: Yangtao Li WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li Signed-off-by: Shuosheng Huang --- v2: add Signed-off-by --- fs/f2fs/f2fs.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2

Re: [PATCH 0/5] tty: add flag to suppress ready signalling on open

2020-11-30 Thread Mychaela Falconia
On 11/30/20, Jiri Slaby wrote: > The difference to other control flags is that open raises DTR/RTS in any > case (i.e. including O_NONBLOCK) Yes, this is the exact root-cause problem I am trying to fix, with Johan's help. > -- provided baud rate is set (and it is > for casual serials). That mean

Re: [PATCH] INPUT: xpad: support Ardwiino Controllers

2020-11-30 Thread Dmitry Torokhov
Hi Sanjay, On Tue, Dec 01, 2020 at 07:48:45PM +1300, sanjay.govi...@gmail.com wrote: > From: Sanjay Govind > > This commit adds support for Ardwiino Controllers Thank you for resending the patch, it now is formatted properly. However I believe you need to also add information about Ardwiino con

[PATCH v3] lib: Convert test_hexdump.c to KUnit

2020-11-30 Thread Arpitha Raghunandan
Convert test lib/test_hexdump.c to KUnit. More information about KUnit can be found at: https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html. KUnit provides a common framework for unit tests in the kernel. KUnit and kselftest are standardizing around KTAP, converting this test to KUnit

Re: [PATCH 1/5] tty: add port flag to suppress ready signalling on open

2020-11-30 Thread Jiri Slaby
On 01. 12. 20, 8:09, Mychaela Falconia wrote: On 11/30/20, Jiri Slaby wrote: port can be const here. [...] We have assign_bit() for these cases these days. Johan's patch adding test and set accessor inline functions for the new flag follows the style of the existing accessor inline functions

Re: [PATCH] input: raydium_ts_i2c: Do not split tx transactions

2020-11-30 Thread Furquan Shaikh
On Mon, Nov 30, 2020 at 11:06 PM Dmitry Torokhov wrote: > > On Mon, Nov 30, 2020 at 10:54:46PM -0800, Furquan Shaikh wrote: > > Hello Dmitry, > > > > On Mon, Nov 30, 2020 at 10:28 PM Dmitry Torokhov > > wrote: > > > > > > Hi Furquan, > > > > > > On Mon, Nov 30, 2020 at 10:00:50PM -0800, Furquan S

Re: [PATCH 0/5] tty: add flag to suppress ready signalling on open

2020-11-30 Thread Jiri Slaby
On 30. 11. 20, 22:22, Mychaela Falconia wrote: 2) For situations in which the luxury of a custom USB ID is not available, e.g., a situation where the device that does not tolerate automatic DTR/RTS assertion on open is a physical RS-232 device that can be connected to "any" serial port, the new s

[RFC PATCH 2/2] nvme: add simple copy support

2020-11-30 Thread SelvaKumar S
Add support for TP 4065a ("Simple Copy Command"), v2020.05.04 ("Ratified") The implementation uses the payload passed from the block layer to form simple copy command. Set the device copy limits to queue limits. Signed-off-by: SelvaKumar S Signed-off-by: Kanchan Joshi Signed-off-by: Nitesh She

[RFC PATCH 1/2] block: add simple copy support

2020-11-30 Thread SelvaKumar S
Add new BLKCOPY ioctl that offloads copying of multiple sources to a destination to the device. Accept copy_ranges that contains destination, no of sources and pointer to the array of source ranges. Each range_entry contains start and length of source ranges (in bytes). Introduce REQ_OP_COPY, a no

[RFC PATCH 0/2] add simple copy support

2020-11-30 Thread SelvaKumar S
This patchset tries to add support for TP4065a ("Simple Copy Command"), v2020.05.04 ("Ratified") The Specification can be found in following link. https://nvmexpress.org/wp-content/uploads/NVM-Express-1.4-Ratified-TPs-1.zip This is an RFC. Looking forward for any feedbacks or other alternate desi

Re: [PATCH 10/18] ipu3-cio2: Rename ipu3-cio2.c to allow module to be built from multiple source files retaining ipu3-cio2 name

2020-11-30 Thread Bingbu Cao
On 12/1/20 2:56 PM, Bingbu Cao wrote: > I see there will be multiple files, but there will be no conflict if keep as > the main > file name unchanged, right? If so, I prefer keep as it was. Oops, I notice you try to build all the files into single module, so please ignore my comment above. > >

Re: [PATCH v1 2/2] ARM: dts: add Protonic MVT board

2020-11-30 Thread Oleksij Rempel
On Mon, Nov 30, 2020 at 10:22:38AM -0300, Fabio Estevam wrote: > Hi Oleksij, > > On Mon, Nov 30, 2020 at 10:14 AM Oleksij Rempel > wrote: > > > +&ecspi1 { > > + cs-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>; > > Shouldn't this be GPIO_ACTIVE_LOW instead? ACK, it was fixed up by this code: htt

Re: [PATCH 1/5] tty: add port flag to suppress ready signalling on open

2020-11-30 Thread Mychaela Falconia
On 11/30/20, Jiri Slaby wrote: > port can be const here. > [...] > We have assign_bit() for these cases these days. Johan's patch adding test and set accessor inline functions for the new flag follows the style of the existing accessor inline functions for previously existing flags, for the sake

Re: [PATCH] input: raydium_ts_i2c: Do not split tx transactions

2020-11-30 Thread Dmitry Torokhov
On Mon, Nov 30, 2020 at 10:54:46PM -0800, Furquan Shaikh wrote: > Hello Dmitry, > > On Mon, Nov 30, 2020 at 10:28 PM Dmitry Torokhov > wrote: > > > > Hi Furquan, > > > > On Mon, Nov 30, 2020 at 10:00:50PM -0800, Furquan Shaikh wrote: > > > Raydium device does not like splitting of tx transactions

[PATCH] bus: mhi: core: Fix error handling in mhi_register_controller()

2020-11-30 Thread Dan Carpenter
There are a few problems with the error handling in this function. They mostly center around the alloc_ordered_workqueue() allocation. 1) If that allocation fails or if the kcalloc() prior to it fails then it leads to a NULL dereference when we call destroy_workqueue(mhi_cntrl->hiprio_wq). 2) The

[PATCH] f2fs: Remove unnecessary unlikely()

2020-11-30 Thread Shuosheng Huang
From: Yangtao Li WARN_ON() already contains an unlikely(), so it's not necessary to use unlikely. Signed-off-by: Yangtao Li --- fs/f2fs/f2fs.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index cb700d797296..9f33a508fe51 100644 --- a/fs

RE: [PATCH v2] scsi: ufs: Remove pre-defined initial voltage values of device powers

2020-11-30 Thread Avri Altman
> > UFS specficication allows different VCC configurations for UFS devices, > for example, > (1). 2.70V - 3.60V (Activated by default in UFS core driver) > (2). 1.70V - 1.95V (Activated if "vcc-supply-1p8" is declared in > device tree) > (3). 2.40V

RE: [RFC PATCH v1] scsi: ufs: Remove pre-defined initial VCC voltage values

2020-11-30 Thread Avri Altman
> > Hi Stanley > > > > Thanks for the patch. Bao (nguyenb) was also working towards > something > > similar. > > Would it be possible for you to take into account the scenario in > which the > > same platform supports both 2.x and 3.x UFS devices? > > > > The

Re: [PATCH 10/18] ipu3-cio2: Rename ipu3-cio2.c to allow module to be built from multiple source files retaining ipu3-cio2 name

2020-11-30 Thread Bingbu Cao
I see there will be multiple files, but there will be no conflict if keep as the main file name unchanged, right? If so, I prefer keep as it was. On 11/30/20 9:31 PM, Daniel Scally wrote: > ipu3-cio2 driver needs extending with multiple files; rename the main > source file and specify the renamed

Re: [RFC PATCH v1] scsi: ufs: Remove pre-defined initial VCC voltage values

2020-11-30 Thread Stanley Chu
Hi Asutosh, On Mon, 2020-11-30 at 19:07 -0800, Asutosh Das (asd) wrote: > On 11/30/2020 5:25 PM, Stanley Chu wrote: > > On Mon, 2020-11-30 at 15:54 -0800, Asutosh Das (asd) wrote: > >> On 11/30/2020 3:14 PM, Bjorn Andersson wrote: > >>> On Mon 30 Nov 16:51 CST 2020, Asutosh Das (asd) wrote: > >>>

Re: [PATCH] input: raydium_ts_i2c: Do not split tx transactions

2020-11-30 Thread Furquan Shaikh
Hello Dmitry, On Mon, Nov 30, 2020 at 10:28 PM Dmitry Torokhov wrote: > > Hi Furquan, > > On Mon, Nov 30, 2020 at 10:00:50PM -0800, Furquan Shaikh wrote: > > Raydium device does not like splitting of tx transactions into > > multiple messages - one for the register address and one for the > > act

Re: [PATCH 5/5] USB: serial: ftdi_sio: add support for FreeCalypso DUART28C adapter

2020-11-30 Thread Jiri Slaby
On 30. 11. 20, 16:37, Johan Hovold wrote: --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c ... @@ -2386,6 +2393,21 @@ static int ftdi_stmclite_probe(struct usb_serial *serial) return 0; } +/* + * FreeCalypso DUART28C is an FT2232D-based USB to dual UART adap

[PATCH] scsi/NCR5380: Remove in_interrupt() test

2020-11-30 Thread Finn Thain
The in_interrupt() macro is deprecated. Also, it's usage in NCR5380_poll_politely2() has long been redundant. Cc: Sebastian Andrzej Siewior Cc: Ahmed S. Darwish Cc: Thomas Gleixner Link: https://lore.kernel.org/r/20201126132952.2287996-1-bige...@linutronix.de Signed-off-by: Finn Thain --- dri

[PATCH] crypto: hisilicon/trng replace atomic_add_return()

2020-11-30 Thread Yejune Deng
a set of atomic_inc_return() looks more neater Signed-off-by: Yejune Deng --- drivers/crypto/hisilicon/trng/trng.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/hisilicon/trng/trng.c b/drivers/crypto/hisilicon/trng/trng.c index a5033cf..2971268 10064

[PATCH v2] scsi: ufs: Remove pre-defined initial voltage values of device powers

2020-11-30 Thread Stanley Chu
UFS specficication allows different VCC configurations for UFS devices, for example, (1). 2.70V - 3.60V (Activated by default in UFS core driver) (2). 1.70V - 1.95V (Activated if "vcc-supply-1p8" is declared in device tree) (3). 2.40V - 2.70V (Suppo

Re: [PATCH 18/18] ipu3: Add driver for dummy INT3472 ACPI device

2020-11-30 Thread Sakari Ailus
Hi Dan, On Mon, Nov 30, 2020 at 11:06:03PM +, Dan Scally wrote: > Hi Sakari > > On 30/11/2020 20:52, Sakari Ailus wrote: > >> +static const struct acpi_device_id int3472_device_id[] = { > >> + { "INT3472", 0 }, > > The INT3472 _HID is really allocated for the tps68470 PMIC chip. It may not >

[PATCH] INPUT: xpad: support Ardwiino Controllers

2020-11-30 Thread sanjay . govind9
From: Sanjay Govind This commit adds support for Ardwiino Controllers Signed-off-by: Sanjay Govind --- drivers/input/joystick/xpad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index c77cdb3b62b5..c9d78e2acb38 100644 --- a/d

Re: linux-next: build failure after merge of the phy-next tree

2020-11-30 Thread Sergio Paracuellos
Hi Stephen, On Tue, Dec 1, 2020 at 7:07 AM Stephen Rothwell wrote: > > Hi all, > > After merging the phy-next tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/phy/ralink/phy-mt7621-pci.c:17:10: fatal error: mt7621.h: No such > file or directory >17 | #incl

Re: [PATCH V6] kthread: Add debugobject support

2020-11-30 Thread qianli zhao
Hi,tglx Would you like to continue to review the new patch set?I made some changes according to your suggestion. Unless this change will not be considered or unnecessary. Thanks Qianli Zhao 于2020年10月12日周一 上午11:00写道: > > From: Qianli Zhao > > kthread_work is not covered by debug objects, but th

Re: [PATCH] Input: i8042 - Add ByteSpeed touchpad to noloop table

2020-11-30 Thread Dmitry Torokhov
On Tue, Dec 01, 2020 at 01:47:23PM +0800, Po-Hsu Lin wrote: > It looks like the C15B laptop got another vendor: ByteSpeed LLC. > > Avoid AUX loopback on this touchpad as well, thus input subsystem will > be able to recognize a Synaptics touchpad in the AUX port. > > BugLink: https://bugs.launchpa

Re: [PATCH] INPUT: xpad: support Ardwiino Controllers

2020-11-30 Thread Dmitry Torokhov
Hi Sanjay, On Thu, Nov 26, 2020 at 10:25:40PM +1300, Sanjay Govind wrote: > This commit adds support for Ardwiino Controllers Unfortunately the patch is line-wrapped, with tabs removed, and therefore can not be applied. It is also sent as HTML so most mailing lists dropped it. I guess you sent it

Re: [PATCH] s390: cio: fix two use-after-free bugs in device.c

2020-11-30 Thread Qinglang Miao
在 2020/11/20 15:55, Cornelia Huck 写道: On Fri, 20 Nov 2020 15:48:49 +0800 Qinglang Miao wrote: put_device calls release function which do kfree() inside. So following use of sch&cdev would cause use-after-free bugs. Fix these by simply adjusting the position of put_device. Fixes: 37db8985b

Re: [PATCH] input: raydium_ts_i2c: Do not split tx transactions

2020-11-30 Thread Dmitry Torokhov
Hi Furquan, On Mon, Nov 30, 2020 at 10:00:50PM -0800, Furquan Shaikh wrote: > Raydium device does not like splitting of tx transactions into > multiple messages - one for the register address and one for the > actual data. This results in incorrect behavior on the device side. > > This change upd

Re: [PATCH v2 4/4] soc: qcom: llcc-qcom: Add support for SM8250 SoC

2020-11-30 Thread Sai Prakash Ranjan
On 2020-11-30 15:09, Manivannan Sadhasivam wrote: SM8250 SoC uses LLCC IP version 2. In this version, the WRSC_EN register needs to be written to enable the Write Sub Cache for each SCID. Hence, use a dedicated "write_scid_en" member with predefined values and write them for LLCC IP version 2.

[PATCH] s390: cio: fix use-after-free in ccw_device_destroy_console

2020-11-30 Thread Qinglang Miao
put_device calls release function which do kfree() inside. So following use of sch&cdev would cause use-after-free bugs. Fix these by simply adjusting the position of put_device. Fixes: 37db8985b211 ("s390/cio: add basic protected virtualization support") Reported-by: Hulk Robot Suggested-by: Co

[PATCH] arm64: dts: meson: add i2c3/rtc nodes and vrtc alias to GT-King/GT-King-Pro

2020-11-30 Thread Christian Hewitt
The GT-King and GT-King-Pro boxes have an RTC chip and power cell, so enable it. GTKING:~ # dmesg | grep rtc [5.237245] meson-vrtc ff8000a8.rtc: registered as rtc1 [5.261869] rtc-hym8563 0-0051: registered as rtc0 [5.265016] rtc-hym8563 0-0051: setting system clock to 2020-11-30T09:16:

[PATCH v5 5/7] rtc: New driver for RTC in Netronix embedded controller

2020-11-30 Thread Jonathan Neuschäfer
With this driver, mainline Linux can keep its time and date in sync with the vendor kernel. Advanced functionality like alarm and automatic power-on is not yet supported. Signed-off-by: Jonathan Neuschäfer Acked-by: Alexandre Belloni --- v5: - Add Alexandre Belloni's A-b - Use regmap_multi_reg

Re: [PATCH] scsi: storvsc: Fix error return in storvsc_probe()

2020-11-30 Thread Martin K. Petersen
On Fri, 27 Nov 2020 11:02:06 +0800, Jing Xiangfeng wrote: > Fix to return a error code "-ENOMEM" from the error handling case > instead of 0. Applied to 5.10/scsi-fixes, thanks! [1/1] scsi: storvsc: Fix error return in storvsc_probe() https://git.kernel.org/mkp/scsi/c/6112ff4e8f39 -- Mar

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

2020-11-30 Thread Stephen Rothwell
Hi all, After merging the phy-next tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/phy/ralink/phy-mt7621-pci.c:17:10: fatal error: mt7621.h: No such file or directory 17 | #include | ^~ Caused by commit d87da32372a0 ("phy: ralink: Add

Re: [PATCH] scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()

2020-11-30 Thread Martin K. Petersen
On Wed, 18 Nov 2020 15:53:48 +0100, Andrea Parri (Microsoft) wrote: > Check that the packet is of the expected size at least, don't copy > data past the packet. Applied to 5.10/scsi-fixes, thanks! [1/1] scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback() htt

Re: [RFC PATCH 3/3] KVM: arm64: Add usage of stage 2 fault lookup level in user_mem_abort()

2020-11-30 Thread wangyanan (Y)
Hi Will, On 2020/11/30 21:49, Will Deacon wrote: On Mon, Nov 30, 2020 at 08:18:47PM +0800, Yanan Wang wrote: If we get a FSC_PERM fault, just using (logging_active && writable) to determine calling kvm_pgtable_stage2_map(). There will be two more cases we should consider. (1) After logging_ac

[PATCH] input: raydium_ts_i2c: Do not split tx transactions

2020-11-30 Thread Furquan Shaikh
Raydium device does not like splitting of tx transactions into multiple messages - one for the register address and one for the actual data. This results in incorrect behavior on the device side. This change updates raydium_i2c_read and raydium_i2c_write to create i2c_msg arrays separately and pas

[PATCH v5] drm/bridge: add it6505 driver

2020-11-30 Thread allen
This adds support for the iTE IT6505. This device can convert DPI signal to DP output. From: Allen Chen Signed-off-by: Jitao Shi Signed-off-by: Pi-Hsun Shih Signed-off-by: Yilun Lin Signed-off-by: Hermes Wu Signed-off-by: Allen Chen --- drivers/gpu/drm/bridge/Kconfig |7 + drivers/

Re: [PATCH 000/141] Fix fall-through warnings for Clang

2020-11-30 Thread Martin K. Petersen
Gustavo, > This series aims to fix almost all remaining fall-through warnings in > order to enable -Wimplicit-fallthrough for Clang. Applied 20-22,54,120-124 to 5.11/scsi-staging, thanks. -- Martin K. Petersen Oracle Linux Engineering

[PATCH] Input: i8042 - Add ByteSpeed touchpad to noloop table

2020-11-30 Thread Po-Hsu Lin
It looks like the C15B laptop got another vendor: ByteSpeed LLC. Avoid AUX loopback on this touchpad as well, thus input subsystem will be able to recognize a Synaptics touchpad in the AUX port. BugLink: https://bugs.launchpad.net/bugs/1906128 Signed-off-by: Po-Hsu Lin --- drivers/input/serio/i

  1   2   3   4   5   6   7   8   9   10   >