[PATCH] drm/amdgpu/sdma5.2: Remove unnecessary conversion to bool

2021-02-20 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:1621:40-45: WARNING: conversion to bool not needed here. ./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:1619:40-45: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong ---

[RFC PATCH 1/3] seccomp: Refactor notification handler to prepare for new semantics

2021-02-20 Thread Sargun Dhillon
This refactors the user notification code to have a do / while loop around the completion condition. This has a small change in semantic, in that previously we ignored addfd calls upon wakeup if the notification had been responded to, but instead with the new change we check for an outstanding

[RFC PATCH 2/3] seccomp: Add wait_killable semantic to seccomp user notifier

2021-02-20 Thread Sargun Dhillon
The user notifier feature allows for filtering of seccomp notifications in userspace. While the user notifier is handling the syscall, the notifying process can be preempted, thus ending the notification. This has become a growing problem, as Golang has adopted signal based async preemption[1]. In

[PATCH RFC] f2fs: fix to avoid selecting full segment w/ {AT,}SSR allocator

2021-02-20 Thread Chao Yu
In cp disabling mode, there could be a condition - target segment has 128 ckpt valid blocks - GC migrates 128 valid blocks to other segment (segment is still in dirty list) - GC migrates 384 blocks to target segment (segment has 128 cp_vblocks and 384 vblocks) - If GC selects target segment via

[PATCH] scsi: mpt3sas: Do not use GFP_KERNEL in atomic context

2021-02-20 Thread Christophe JAILLET
'mpt3sas_get_port_by_id()' can be called when a spinlock is hold. So use GFP_ATOMIC instead of GFP_KERNEL when allocating memory. Issue spotted by call_kern.cocci: ./drivers/scsi/mpt3sas/mpt3sas_scsih.c:416:42-52: ERROR: function mpt3sas_get_port_by_id called on line 7125 inside lock on line

Re: [PATCH net] net: l2tp: reduce log level when passing up invalid packets

2021-02-20 Thread Matthias Schiffer
Hi Tom, On 2/19/21 9:12 PM, Tom Parkin wrote: Hi Matthias, Thanks for your patch! On Fri, Feb 19, 2021 at 20:06:15 +0100, Matthias Schiffer wrote: Before commit 5ee759cda51b ("l2tp: use standard API for warning log messages"), it was possible for userspace applications to use their own

Re: [PATCH] virt: acrn: Use vfs_poll() instead of f_op->poll()

2021-02-20 Thread Yejune Deng
OK,I will adopt it and resubmit. On Sat, Feb 20, 2021 at 5:48 PM Shuo A Liu wrote: > > Thanks for the patch. > > On Fri 19.Feb'21 at 17:26:12 +0800, Yejune Deng wrote: > >In acrn_irqfd_assign(), use vfs_poll() is a more advanced function, > >as the same time, modify the definition of events. >

[PATCH] staging: wimax: fix sparse incorrect type issue

2021-02-20 Thread karthik alapati
fix sparse warning by casting to explicit user address-space pointer type Signed-off-by: karthik alapati --- drivers/staging/wlan-ng/p80211netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/p80211netdev.c

Re: [PATCH v2] net: phy: add Marvell 88X2222 transceiver support

2021-02-20 Thread Russell King - ARM Linux admin
On Sat, Feb 20, 2021 at 12:46:23PM +0300, Ivan Bornyakov wrote: > Add basic support for the Marvell 88X multi-speed ethernet > transceiver. > > This PHY provides data transmission over fiber-optic as well as Twinax > copper links. The 88X supports 2 ports of 10GBase-R and 1000Base-X > on

[PATCH] staging: wimax/i2400m: fix byte-order type issue

2021-02-20 Thread karthek
fix sparse type warning by converting le32 types to host byte-order types before comparison Signed-off-by: karthek --- drivers/staging/wimax/i2400m/fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wimax/i2400m/fw.c b/drivers/staging/wimax/i2400m/fw.c

[RFC PATCH 3/3] selftests/seccomp: Add test for wait killable notifier

2021-02-20 Thread Sargun Dhillon
This adds a test for the positive case of the wait killable notifier, in testing that when the feature is activated the process acts as expected -- in not terminating on a non-fatal signal, and instead queueing it up. There is already a test case for normal handlers and preemption. Signed-off-by:

[PATCH] nvme-core: Switch to using the new API kobj_to_dev()

2021-02-20 Thread Yang Li
fixed the following coccicheck: ./drivers/nvme/host/core.c:3440:60-61: WARNING opportunity for kobj_to_dev() ./drivers/nvme/host/core.c:3679:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/nvme/host/core.c | 4 ++-- 1 file changed, 2

[PATCH] libbpf: Remove unnecessary conversion to bool

2021-02-20 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./tools/lib/bpf/libbpf.c:1487:43-48: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/lib/bpf/libbpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/bpf/libbpf.c

seccomp: Delay filter activation

2021-02-20 Thread Sargun Dhillon
We've run into a problem where attaching a filter can be quite messy business because the filter itself intercepts sendmsg, and other syscalls related to exfiltrating the listener FD. I believe that this problem set has been brought up before, and although there are "simpler" methods of

[PATCH v5 2/2] docs: add documentation for checkpatch

2021-02-20 Thread Dwaipayan Ray
Add documentation for kernel script checkpatch.pl. This documentation is also parsed by checkpatch to enable a verbose mode. The checkpatch message types are grouped by usage. Under each group the types are described briefly. 34 of such types are documented. Signed-off-by: Dwaipayan Ray ---

[PATCH v5 1/2] checkpatch: add verbose mode

2021-02-20 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch.pl to emit additional verbose test descriptions. The verbose mode is optional and can be enabled by the flag -v or --verbose. The test descriptions are parsed from the checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`. The test

[PATCH v5 0/2] checkpatch: add verbose mode

2021-02-20 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch. The verbose test descriptions are read from the checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`. The verbose mode is optional and can be enabled by the flag -v or --verbose. The documentation file is only parsed by checkpatch.pl if

[PATCH] KVM: s390: use ARRAY_SIZE instead of division operation

2021-02-20 Thread Yang Li
This eliminates the following coccicheck warning: ./arch/s390/tools/gen_facilities.c:154:37-38: WARNING: Use ARRAY_SIZE ./arch/s390/tools/gen_opcode_table.c:141:39-40: WARNING: Use ARRAY_SIZE Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/s390/tools/gen_facilities.c | 2 +-

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-20 Thread David Hildenbrand
Sorry, for jumping in late ... hugetlb keyword just hit my mail filters :) Sorry for not realizing to cc you before I sent out the man page update :) Yes, it is true that hugetlb reservations are not numa aware. So, even if pages are reserved at mmap time one could still SIGBUS if a fault

Re: [PATCH 01/20] net: phy: realtek: Fix events detection failure in LPI mode

2021-02-20 Thread Serge Semin
On Thu, Feb 11, 2021 at 10:39:41AM +, Russell King - ARM Linux admin wrote: > On Wed, Feb 10, 2021 at 07:47:20PM +0300, Serge Semin wrote: > > On Tue, Feb 09, 2021 at 10:56:46AM +, Russell King - ARM Linux admin > > wrote: > > > On Tue, Feb 09, 2021 at 11:37:29AM +0100, Heiner Kallweit

[PATCH 1/3] f2fs: avoid unused f2fs_show_compress_options()

2021-02-20 Thread Chao Yu
LKP reports: fs/f2fs/super.c:1516:20: warning: unused function 'f2fs_show_compress_options' [-Wunused-function] static inline void f2fs_show_compress_options(struct seq_file *seq, Fix this issue by covering f2fs_show_compress_options() with CONFIG_F2FS_FS_COMPRESSION macro. Fixes:

[PATCH 2/3] f2fs: remove unused FORCE_FG_GC macro

2021-02-20 Thread Chao Yu
FORCE_FG_GC was introduced by commit 6aefd93b0137 ("f2fs: introduce background_gc=sync mount option"), but never be used, remove it. Signed-off-by: Chao Yu --- fs/f2fs/segment.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index

[PATCH v2] net: phy: add Marvell 88X2222 transceiver support

2021-02-20 Thread Ivan Bornyakov
Add basic support for the Marvell 88X multi-speed ethernet transceiver. This PHY provides data transmission over fiber-optic as well as Twinax copper links. The 88X supports 2 ports of 10GBase-R and 1000Base-X on the line-side interface. The host-side interface supports 4 ports of

Re: [PATCH v2 3/3] crypto: hisilicon/sec - fixes shash test error

2021-02-20 Thread liulongfang
On 2021/2/18 10:06, Herbert Xu wrote: > On Thu, Feb 18, 2021 at 10:01:58AM +0800, liulongfang wrote: >> diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c b/drivers/crypto/hisilicon/sec2/sec_crypto.c index d2c4a2c..988faf7 100644 ---

KASAN: use-after-free Write in j1939_can_recv

2021-02-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f40ddce8 Linux 5.11 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17073738d0 kernel config: https://syzkaller.appspot.com/x/.config?x=e53d04227c52a0df dashboard link:

Re: [PATCH v3 2/8] xen/events: don't unmask an event channel when an eoi is pending

2021-02-20 Thread Julien Grall
Hi Juergen, On 19/02/2021 15:40, Juergen Gross wrote: An event channel should be kept masked when an eoi is pending for it. When being migrated to another cpu it might be unmasked, though. In order to avoid this keep three different flags for each event channel to be able to distinguish

[PATCH] scsi: pm80xx: switch from 'pci_' to 'dma_' API

2021-02-20 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 'pm8001_init_ccb_tag()' GFP_KERNEL can be used

Re: [PATCH] scsi: pm80xx: switch from 'pci_' to 'dma_' API

2021-02-20 Thread Christophe JAILLET
Please ignore. This one has already been applied, I'va attached the wrong patch. Sorry for the noise. CJ Le 20/02/2021 à 09:31, Christophe JAILLET a écrit : The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has

[PATCH] staging: wimax/i2400m: fix byte-order issue

2021-02-20 Thread karthek
fix sparse byte-order warnings by converting host byte-order types to le32 types Signed-off-by: karthek --- drivers/staging/wimax/i2400m/op-rfkill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wimax/i2400m/op-rfkill.c

[PATCH] staging: wimax/i2400m: fix byte-order issue

2021-02-20 Thread karthik alapati
fix sparse byte-order warnings by converting host byte-order types to le32 types Signed-off-by: karthik alapati --- drivers/staging/wimax/i2400m/op-rfkill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wimax/i2400m/op-rfkill.c

[PATCH V4 0/2] virtio-pci: introduce modern device module

2021-02-20 Thread Jason Wang
Hi all: This series tries to implement a vDPA driver for virtio-pci device which will bridge between vDPA bus and virtio-pci device. This could be used for future feature prototyping and testing. Please review Changes since V3: - rebase to vhost.git Changes since V2: - tweak config prompt -

[PATCH V4 2/2] vdpa: introduce virtio pci driver

2021-02-20 Thread Jason Wang
This patch introduce a vDPA driver for virtio-pci device. It bridges the virtio-pci control command to the vDPA bus. This will be used for features prototyping and testing. Note that get/restore virtqueue state is not supported which needs extension on the virtio specification. Signed-off-by:

[PATCH V4 1/2] vdpa: set the virtqueue num during register

2021-02-20 Thread Jason Wang
This patch delay the queue number setting to vDPA device registering. This allows us to probe the virtqueue numbers between device allocation and registering. Signed-off-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 ++--- drivers/vdpa/mlx5/net/mlx5_vnet.c| 4 ++--

[RFC PATCH 0/3] Seccomp non-preemptible notifier

2021-02-20 Thread Sargun Dhillon
This patchset addresses a race condition we've dealt with recently with seccomp. Specifically programs interrupting syscalls while they're in progress. This was exacerbated by Golang's recent adoption of "async preemption", in which they try to interrupt any syscall that's been running for more

Re: [PATCH] rtw88: 8822ce: fix wifi disconnect after S3/S4 on HONOR laptop

2021-02-20 Thread Kalle Valo
Hao Chen writes: > When the laptop HONOR MagicBook 14 sleep to S3/S4, the laptop can't > resume. > The dmesg of kernel report: > "[ 99.990168] pcieport :00:01.2: can't change power state > from D3hot to D0 (config space inaccessible) > [ 99.993334] rtw_pci :01:00.0: can't change

[PATCH] staging: wimax: i2400m: add space before open parenthesis

2021-02-20 Thread Rajesh Kumbhakar
netdev.c fixing style ERROR: space required before the open parenthesis '(' Signed-off-by: Rajesh Kumbhakar --- drivers/staging/wimax/i2400m/netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wimax/i2400m/netdev.c

Re: [PATCH] staging: wimax: i2400m: add space before open parenthesis

2021-02-20 Thread Greg KH
On Sat, Feb 20, 2021 at 02:48:16AM -0800, Rajesh Kumbhakar wrote: > netdev.c Why is this here?

[PATCH] powerpc/sstep: Use bitwise instead of arithmetic operator for flags

2021-02-20 Thread Yang Li
Fix the following coccinelle warnings: ./arch/powerpc/lib/sstep.c:1090:20-21: WARNING: sum of probable bitmasks, consider | ./arch/powerpc/lib/sstep.c:1115:20-21: WARNING: sum of probable bitmasks, consider | ./arch/powerpc/lib/sstep.c:1134:20-21: WARNING: sum of probable bitmasks, consider |

[PATCH] rtw88: 8822ce: fix wifi disconnect after S3/S4 on HONOR laptop

2021-02-20 Thread Hao Chen
When the laptop HONOR MagicBook 14 sleep to S3/S4, the laptop can't resume. The dmesg of kernel report: "[ 99.990168] pcieport :00:01.2: can't change power state from D3hot to D0 (config space inaccessible) [ 99.993334] rtw_pci :01:00.0: can't change power state from D3hot to D0

Re: [PATCH v5] drm/loongson: Add DRM Driver for Loongson 7A1000 bridge chip

2021-02-20 Thread Huacai Chen
Hi, Chenyang, On Fri, Feb 19, 2021 at 5:11 PM Chenyang Li wrote: > > This patch adds an initial DRM driver for the Loongson LS7A1000 > bridge chip(LS7A). The LS7A bridge chip contains two display > controllers, support dual display output. The maximum support for > each channel display is to

Re: 5.10 LTS Kernel: 2 or 6 years?

2021-02-20 Thread Greg Kroah-Hartman
On Sat, Feb 20, 2021 at 03:02:54PM +0800, Hanjun Guo wrote: > On 2021/2/19 17:08, Greg Kroah-Hartman wrote: > > On Fri, Feb 19, 2021 at 04:54:24PM +0800, Hanjun Guo wrote: > > > Hi Greg, > > > > > > On 2021/1/26 15:29, Greg Kroah-Hartman wrote: > > > [...] > > > > > > > > I want to see companies

Re: [PATCH v3 3/8] xen/events: avoid handling the same event on two cpus at the same time

2021-02-20 Thread Julien Grall
Hi Juergen, On 19/02/2021 15:40, Juergen Gross wrote: When changing the cpu affinity of an event it can happen today that (with some unlucky timing) the same event will be handled on the old and the new cpu at the same time. Avoid that by adding an "event active" flag to the per-event data and

Re: [PATCH] staging: wimax: i2400m: add space before open parenthesis

2021-02-20 Thread RajMAIN
On 20-02-2021 16:42, Greg KH wrote: On Sat, Feb 20, 2021 at 02:48:16AM -0800, Rajesh Kumbhakar wrote: netdev.c Why is this here? You mean that filename? I thought I should mention it. Should I remove it and resubmit?

[PATCH] powerpc: use ARRAY_SIZE instead of division operation

2021-02-20 Thread Yang Li
This eliminates the following coccicheck warning: ./arch/powerpc/boot/mktree.c:130:31-32: WARNING: Use ARRAY_SIZE Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/boot/mktree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/mktree.c

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-20 Thread David Hildenbrand
On 17.02.21 16:48, David Hildenbrand wrote: When we manage sparse memory mappings dynamically in user space - also sometimes involving MADV_NORESERVE - we want to dynamically populate/ discard memory inside such a sparse memory region. Example users are hypervisors (especially implementing

[PATCH 2/2] f2fs: fix panic during f2fs_resize_fs()

2021-02-20 Thread Chao Yu
f2fs_resize_fs() hangs in below callstack with testcase: - mkfs 16GB image & mount image - dd 8GB fileA - dd 8GB fileB - sync - rm fileA - sync - resize filesystem to 8GB kernel BUG at segment.c:2484! Call Trace: allocate_segment_by_default+0x92/0xf0 [f2fs] f2fs_allocate_data_block+0x44b/0x7e0

Re: [PATCH 2/7] perf cs-etm: Only search timestamp in current sample's queue.

2021-02-20 Thread Leo Yan
On Fri, Feb 12, 2021 at 04:45:08PM +0200, James Clark wrote: > Change initial timestamp search to only operate on the queue > related to the current event. In a later change the bounds > of the aux record will also be used to reset the decoder and > the record is only relevant to a single queue.

[PATCH] arm64: dts: ti: k3-am65-mcu: Add RTI watchdog entry

2021-02-20 Thread Jan Kiszka
From: Jan Kiszka Add the DT entry for a watchdog based on RTI1. On SR1.0 silicon, it requires additional firmware on the MCU R5F cores to handle the expiry, e.g. https://github.com/siemens/k3-rti-wdt. As this firmware will also lock the power domain to protect it against premature shutdown,

[PATCH] fs/locks: print full locks information

2021-02-20 Thread Luo Longjun
Commit fd7732e033e3 ("fs/locks: create a tree of dependent requests.") has put blocked locks into a tree. So, with a for loop, we can't check all locks information. To solve this problem, we should traverse the tree by DFS. Signed-off-by: Luo Longjun --- fs/locks.c | 30

Re: [PATCH v1 0/4] ACPI: PCI: Unify printing of messages

2021-02-20 Thread Hanjun Guo
On 2021/2/20 2:14, Rafael J. Wysocki wrote: Hi All, This series gets rid of ACPICA debugging from non-ACPICA code related to PCI (patches [1-3/4]) and replaces direct printk() usage in pci_link.c with pr_*() or acpi_handle_*(). Please refer to the patch changelogs for details. Looks good to

[PATCH 1/2] f2fs: fix to allow migrating fully valid segment

2021-02-20 Thread Chao Yu
F2FS_IOC_FLUSH_DEVICE/F2FS_IOC_RESIZE_FS needs to migrate all blocks of target segment to other place, no matter the segment has partially or fully valid blocks. However, after commit 803e74be04b3 ("f2fs: stop GC when the victim becomes fully valid"), we may skip migration due to target segment

Re: [PATCH 1/7] perf cs-etm: Split up etm queue setup function

2021-02-20 Thread Leo Yan
Hi James, On Fri, Feb 12, 2021 at 04:45:07PM +0200, James Clark wrote: > Refactor the function into separate allocation and > timestamp search parts. Later the timestamp search > will be done multiple times. The new introduced function cs_etm__search_first_timestamp() is to search timestamp; if

[PATCH 3/3] f2fs: update comments for explicit memory barrier

2021-02-20 Thread Chao Yu
Add more detailed comments for explicit memory barrier used by f2fs, in order to enhance code readability. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c | 6 +- fs/f2fs/segment.c| 6 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/checkpoint.c

Re: [PATCH] virt: acrn: Use vfs_poll() instead of f_op->poll()

2021-02-20 Thread Shuo A Liu
Thanks for the patch. On Fri 19.Feb'21 at 17:26:12 +0800, Yejune Deng wrote: In acrn_irqfd_assign(), use vfs_poll() is a more advanced function, as the same time, modify the definition of events. Signed-off-by: Yejune Deng --- drivers/virt/acrn/irqfd.c | 4 ++-- 1 file changed, 2

Re: [PATCH 3/3] crypto: hisilicon/sec - fixes shash test error

2021-02-20 Thread liulongfang
On 2021/2/5 19:44, Herbert Xu Wrote: > On Fri, Feb 05, 2021 at 06:10:57PM +0800, Longfang Liu wrote: >> If this configuration item is not turned on, >> the allocation of crypto_tfm will fail when >> the shash algorithm calculates the hash >> through the software. >> >> Signed-off-by: Longfang Liu

Re: [PATCH v4] mfd: da9063: Support SMBus and I2C mode

2021-02-20 Thread Wolfram Sang
> Is the patch already on the way upstream? Can't really speak for Lee here, but during the merge window patches are usually not applied. So, in something like 2 weeks, usually collecting for the next cycle begins. Looking at the CC list, I think you added all the relevant people, so it seems

Please respond back

2021-02-20 Thread Adrien Saif
-- Hello, This is attorney Adrien Saif, the legal practitioner to Qatif Oil And Gas Group of Companies, Did you receive the proposal we sent to you via email days ago? Best Regards, Adrien Saif

Re: [PATCH] staging: wimax: i2400m: add space before open parenthesis

2021-02-20 Thread Greg KH
On Sat, Feb 20, 2021 at 05:58:35PM +0530, RajMAIN wrote: > > On 20-02-2021 16:42, Greg KH wrote: > > On Sat, Feb 20, 2021 at 02:48:16AM -0800, Rajesh Kumbhakar wrote: > > > netdev.c > > Why is this here? > > You mean that filename? I thought I should mention it. Should I remove it > and

[PATCH] staging: wimax/i2400m: fix byte-order type issue

2021-02-20 Thread karthik alapati
fix sparse type warning by converting le32 types to host byte-order types before comparison Signed-off-by: karthik alapati --- drivers/staging/wimax/i2400m/fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wimax/i2400m/fw.c

Re: [PATCH 01/20] net: phy: realtek: Fix events detection failure in LPI mode

2021-02-20 Thread Heiner Kallweit
On 20.02.2021 10:02, Serge Semin wrote: > On Thu, Feb 11, 2021 at 10:39:41AM +, Russell King - ARM Linux admin > wrote: >> On Wed, Feb 10, 2021 at 07:47:20PM +0300, Serge Semin wrote: >>> On Tue, Feb 09, 2021 at 10:56:46AM +, Russell King - ARM Linux admin >>> wrote: On Tue, Feb 09,

Re: 5.10 LTS Kernel: 2 or 6 years?

2021-02-20 Thread Jari Ruusu
On Friday, February 19, 2021 5:23 PM, Jari Ruusu wrote: > My contribution here is trying to point you guys to right direction. I have been able to narrow the beginning of the problem to these kernels: 4.14.188 ... 4.14.202 Same "fix" that went info 4.14.y is also bugging 4.19.y kernels. --

Re: [PATCH v8 12/22] counter: Rename counter_count_function to counter_function

2021-02-20 Thread David Lechner
On 2/14/21 11:13 AM, Jonathan Cameron wrote: On Fri, 12 Feb 2021 21:13:36 +0900 William Breathitt Gray wrote: 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

RE: [PATCH v3 0/2] io_uring: add support for IORING_OP_GETDENTS

2021-02-20 Thread David Laight
From: Lennert Buytenhek > Sent: 18 February 2021 12:27 > > These patches add support for IORING_OP_GETDENTS, which is a new io_uring > opcode that more or less does an lseek(sqe->fd, sqe->off, SEEK_SET) > followed by a getdents64(sqe->fd, (void *)sqe->addr, sqe->len). > > A dumb test program for

Re: [PATCH v7 2/3] pinctrl: pinmux: Add pinmux-select debugfs file

2021-02-20 Thread Drew Fustini
On Fri, Feb 19, 2021 at 10:06:51AM +0100, Geert Uytterhoeven wrote: > Hi Drew, > > On Wed, Feb 17, 2021 at 11:15 PM Drew Fustini wrote: > > Add "pinmux-select" to debugfs which will activate a function and group: > > > > echo "" > pinmux-select > > > > The write operation pinmux_select()

Re: [PATCH v3 0/2] io_uring: add support for IORING_OP_GETDENTS

2021-02-20 Thread Jens Axboe
On 2/20/21 10:44 AM, David Laight wrote: > From: Lennert Buytenhek >> Sent: 18 February 2021 12:27 >> >> These patches add support for IORING_OP_GETDENTS, which is a new io_uring >> opcode that more or less does an lseek(sqe->fd, sqe->off, SEEK_SET) >> followed by a getdents64(sqe->fd, (void

[PATCH] hwrng: iproc: set quality to 1000

2021-02-20 Thread Álvaro Fernández Rojas
This allows khwrngd to make use of iproc-rng200. Signed-off-by: Álvaro Fernández Rojas --- drivers/char/hw_random/iproc-rng200.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/iproc-rng200.c b/drivers/char/hw_random/iproc-rng200.c index 01583faf9893..e49868dd9b96

Re: [PATCH] hwrng: bcm2835: set quality to 1000

2021-02-20 Thread Andrew Lunn
On Sat, Feb 20, 2021 at 08:12:45PM +0100, Álvaro Fernández Rojas wrote: > Hi Andrew, > > I ran rngtest and this is what I got: > root@OpenWrt:/# cat /dev/hwrng | rngtest -c 1000 > rngtest 6.10 > Copyright (c) 2004 by Henrique de Moraes Holschuh > This is free software; see the source for copying

Re: WARNING in iov_iter_revert (2)

2021-02-20 Thread Al Viro
On Sat, Feb 20, 2021 at 07:29:57PM +, Al Viro wrote: > And then you notice that it has reports > successful write of amount other than what you'd passed and tries > to pull back. Sorry, half-edited sentence has escaped ;-/ Should be "And there the caller notices that callback has reported

Re: [PATCH 1/8] af_unix: take address assignment/hash insertion into a new helper

2021-02-20 Thread Al Viro
On Sat, Feb 20, 2021 at 12:31:49PM -0800, Cong Wang wrote: > Because it does not lock the lock, just compare: > > lock(); > __unix_set_addr(); > unlock(); > > to: > > lock(); > __unix_set_addr(); > > Clearly the former is more readable and less error-prone. Even > if you really want to do

Re: [RFC][PATCH 6/6] objtool,x86: Rewrite retpoline thunk calls

2021-02-20 Thread Peter Zijlstra
On Sat, Feb 20, 2021 at 11:28:02PM +0100, Peter Zijlstra wrote: > On Sat, Feb 20, 2021 at 06:41:01PM +0100, Borislav Petkov wrote: > > > - I have more cases for objtool to rewrite code (I'll see if I can > > >rebase and post that this weekend -- no promises). > > > > Oh noes. > > 11 patches

Re: [PATCH net-next] net: dsa: Fix dependencies with HSR

2021-02-20 Thread Vladimir Oltean
On Fri, Feb 19, 2021 at 09:12:21PM -0800, Florian Fainelli wrote: > The core DSA framework uses hsr_is_master() which would not resolve to a > valid symbol if HSR is built-into the kernel and DSA is a module. > > Fixes: 18596f504a3e ("net: dsa: add support for offloading HSR") > Reported-by:

Re: [PATCH v8 01/22] docs: counter: Consolidate Counter sysfs attributes documentation

2021-02-20 Thread David Lechner
On 2/12/21 6:13 AM, William Breathitt Gray wrote: Duplicate ABIs are not valid, so let's consolidate these sysfs attributes into the main sysfs-bus-counter documentation file. Cc: Patrick Havelange Signed-off-by: William Breathitt Gray --- Reviewed-by: David Lechner

Re: [PATCH v8 02/22] docs: counter: Fix spelling

2021-02-20 Thread David Lechner
On 2/12/21 6:13 AM, William Breathitt Gray wrote: "Miscellaneous" is the correct spelling. Signed-off-by: William Breathitt Gray --- Reviewed-by: David Lechner

Re: [PATCH v5 4/9] cxl/mem: Add basic IOCTL interface

2021-02-20 Thread Dan Williams
On Sat, Feb 20, 2021 at 8:33 AM Ben Widawsky wrote: > > On 21-02-19 20:22:00, Konrad Rzeszutek Wilk wrote: > > ..snip.. > > > +static int handle_mailbox_cmd_from_user(struct cxl_mem *cxlm, > > > + const struct cxl_mem_command *cmd, > > > +

[PATCH] hwrng: bcm2835: set quality to 1000

2021-02-20 Thread Álvaro Fernández Rojas
This allows devices without a high precission timer to reduce boot from >100s to <30s. Signed-off-by: Álvaro Fernández Rojas --- drivers/char/hw_random/bcm2835-rng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/bcm2835-rng.c b/drivers/char/hw_random/bcm2835-rng.c

Re: [PATCH v5 07/22] media: camss: Add support for VFE hardware version Titan 170

2021-02-20 Thread Andrey Konovalov
Hi Robert, Thank you for your patch! On 17.02.2021 14:21, Robert Foss wrote: Add register definitions for version 170 of the Titan architecture and implement support for the RDI output mode. The RDI mode as opposed to the PIX output mode for the VFE unit does not support any ISP

Re: [PATCH v5 07/22] media: camss: Add support for VFE hardware version Titan 170

2021-02-20 Thread Andrey Konovalov
Hi Robert, Thank you for your patch! On 17.02.2021 14:21, Robert Foss wrote: Add register definitions for version 170 of the Titan architecture and implement support for the RDI output mode. The RDI mode as opposed to the PIX output mode for the VFE unit does not support any ISP

Re: [PATCH 01/20] net: phy: realtek: Fix events detection failure in LPI mode

2021-02-20 Thread Andrew Lunn
> If in doubt, leaving the patch as is would be fine with me. The patch is O.K. as is, no need to export something so simple for a single users. When the next user come along, we can reconsider. Andrew

Re: [PATCH v2] net: phy: add Marvell 88X2222 transceiver support

2021-02-20 Thread Ivan Bornyakov
On Sat, Feb 20, 2021 at 11:53:04AM +, Russell King - ARM Linux admin wrote: > On Sat, Feb 20, 2021 at 12:46:23PM +0300, Ivan Bornyakov wrote: > > + > > + switch (sfp_interface) { > > + case PHY_INTERFACE_MODE_10GBASER: > > + phydev->speed = SPEED_1; > > +

Re: [PATCH 1/8] af_unix: take address assignment/hash insertion into a new helper

2021-02-20 Thread Al Viro
On Sat, Feb 20, 2021 at 11:12:33AM -0800, Cong Wang wrote: > On Thu, Feb 18, 2021 at 8:22 PM Al Viro wrote: > > > > Duplicated logics in all bind variants (autobind, bind-to-path, > > bind-to-abstract) gets taken into a common helper. > > > > Signed-off-by: Al Viro > > --- > >

[PATCH v2] hwrng: iproc: set quality to 1024

2021-02-20 Thread Álvaro Fernández Rojas
This allows khwrngd to make use of iproc-rng200. Justification: cat /dev/hwrng | rngtest -c 1000 rngtest 6.10 Copyright (c) 2004 by Henrique de Moraes Holschuh This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

Re: NFS Caching broken in 4.19.37

2021-02-20 Thread Chuck Lever
> On Feb 20, 2021, at 3:13 PM, Anton Ivanov > wrote: > > On 20/02/2021 20:04, Salvatore Bonaccorso wrote: >> Hi, >> >> On Mon, Jul 08, 2019 at 07:19:54PM +0100, Anton Ivanov wrote: >>> Hi list, >>> >>> NFS caching appears broken in 4.19.37. >>> >>> The more cores/threads the easier to

Re: [PATCH v4] arm: OABI compat: fix build when EPOLL is not enabled

2021-02-20 Thread Russell King - ARM Linux admin
On Sat, Feb 20, 2021 at 10:47:48AM -0800, Randy Dunlap wrote: > --- > KernelVersion: v5.11 > I don't know what format is used for KernelVersion. > This patch applies to any Linux kernel v5.x and probably even older. I normally ask for it to be the kernel version (without git) that the patch was

Re: [PATCH v3 8/8] xen/evtchn: use READ/WRITE_ONCE() for accessing ring indices

2021-02-20 Thread Boris Ostrovsky
On 2/19/21 10:40 AM, Juergen Gross wrote: > For avoiding read- and write-tearing by the compiler use READ_ONCE() > and WRITE_ONCE() for accessing the ring indices in evtchn.c. > > Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky

Re: [PATCH] nvme-core: Switch to using the new API kobj_to_dev()

2021-02-20 Thread Chaitanya Kulkarni
On 2/20/21 01:15, Yang Li wrote: > fixed the following coccicheck: > ./drivers/nvme/host/core.c:3440:60-61: WARNING opportunity for > kobj_to_dev() > ./drivers/nvme/host/core.c:3679:60-61: WARNING opportunity for > kobj_to_dev() > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Looks good.

[PATCH v4] arm: OABI compat: fix build when EPOLL is not enabled

2021-02-20 Thread Randy Dunlap
When CONFIG_EPOLL is not set/enabled, sys_oabi-compat.c has build errors. Fix these by surrounding them with ifdef CONFIG_EPOLL/endif and providing stubs for the "EPOLL is not set" case. ../arch/arm/kernel/sys_oabi-compat.c: In function 'sys_oabi_epoll_ctl':

arch/arm/kernel/patch.c:94:11: error: implicit declaration of function '__opcode_to_mem_thumb32'

2021-02-20 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f40ddce88593482919761f74910f42f4b84c004b commit: 5a735583b764750726621b0396d03e4782911b77 arm/ftrace: Use __patch_text() date: 1 year, 3 months ago config: arm-randconfig-r014-20210220 (attached as .config

Re: [PATCH] hwrng: bcm2835: set quality to 1000

2021-02-20 Thread Andrew Lunn
On Sat, Feb 20, 2021 at 06:47:40PM +0100, Álvaro Fernández Rojas wrote: > This allows devices without a high precission timer to reduce boot from >100s > to <30s. > diff --git a/drivers/char/hw_random/bcm2835-rng.c > b/drivers/char/hw_random/bcm2835-rng.c > index 1a7c43b43c6b..4b48cb7176b0 100644

Re: [PATCH v2 19/25] tty: serial: samsung_tty: IRQ rework

2021-02-20 Thread Krzysztof Kozlowski
On Thu, Feb 18, 2021 at 10:53:10PM +0900, Hector Martin wrote: > > Separate patch for trivial renaming. > > I think it makes sense to do this rename together with the first change > above, as it keeps both functions symmetric. Otherwise we end up with an > inconsistent function naming between

Re: [PATCH] hwrng: bcm2835: set quality to 1000

2021-02-20 Thread Álvaro Fernández Rojas
Hi Andrew, I ran rngtest and this is what I got: root@OpenWrt:/# cat /dev/hwrng | rngtest -c 1000 rngtest 6.10 Copyright (c) 2004 by Henrique de Moraes Holschuh This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

Re: [PATCH 1/8] af_unix: take address assignment/hash insertion into a new helper

2021-02-20 Thread Cong Wang
On Thu, Feb 18, 2021 at 8:22 PM Al Viro wrote: > > Duplicated logics in all bind variants (autobind, bind-to-path, > bind-to-abstract) gets taken into a common helper. > > Signed-off-by: Al Viro > --- > net/unix/af_unix.c | 30 +++--- > 1 file changed, 15 insertions(+),

Re: [RFC PATCH v5 0/4] add simple copy support

2021-02-20 Thread Matthew Wilcox
On Sat, Feb 20, 2021 at 06:01:56PM +, David Laight wrote: > From: SelvaKumar S > > Sent: 19 February 2021 12:45 > > > > This patchset tries to add support for TP4065a ("Simple Copy Command"), > > v2020.05.04 ("Ratified") > > > > The Specification can be found in following link. > >

Re: [PATCH v2 20/25] tty: serial: samsung_tty: Use devm_ioremap_resource

2021-02-20 Thread Krzysztof Kozlowski
On Thu, Feb 18, 2021 at 11:01:21PM +0900, Hector Martin wrote: > On 16/02/2021 03.51, Krzysztof Kozlowski wrote: > > > Also fix a bug checking the return value, which should use IS_ERR(). > > > > No, no, no. We never, never combine fixing bugs with some rework. > > However devm_ioremap() returns

Re: [PATCH v3 4/5] arm64: dts: librem5: protect some partitions of the nor-flash

2021-02-20 Thread Krzysztof Kozlowski
On Fri, Feb 19, 2021 at 11:04:38AM +0100, Martin Kepplinger wrote: > From: Angus Ainslie > > These sections should be read only as they contain important data. > > Signed-off-by: Angus Ainslie > Signed-off-by: Martin Kepplinger > --- > .../boot/dts/freescale/imx8mq-librem5.dtsi | 17

Re: [PATCH v2 20/25] tty: serial: samsung_tty: Use devm_ioremap_resource

2021-02-20 Thread Marc Zyngier
On 2021-02-20 19:13, Krzysztof Kozlowski wrote: On Thu, Feb 18, 2021 at 11:01:21PM +0900, Hector Martin wrote: On 16/02/2021 03.51, Krzysztof Kozlowski wrote: > > Also fix a bug checking the return value, which should use IS_ERR(). > > No, no, no. We never, never combine fixing bugs with some

Re: [PATCH v2 3/8] arm64: dts: imx8mm-nitrogen-r2: add espi2 support

2021-02-20 Thread Krzysztof Kozlowski
On Fri, Feb 19, 2021 at 03:02:35PM +0100, Adrien Grassein wrote: > Le ven. 19 févr. 2021 à 14:19, Krzysztof Kozlowski a écrit : > > > > On Wed, Feb 17, 2021 at 05:10:47PM +0100, Adrien Grassein wrote: > > > Add the description for espi support. > > > > > > Signed-off-by: Adrien Grassein > > >

Re: [PATCH v2 1/8] arm64: dts: imx8mm-nitrogen-r2: add wifi/bt chip

2021-02-20 Thread Krzysztof Kozlowski
On Fri, Feb 19, 2021 at 03:03:55PM +0100, Adrien Grassein wrote: > Le ven. 19 févr. 2021 à 14:18, Krzysztof Kozlowski a écrit : > > > > On Wed, Feb 17, 2021 at 05:10:45PM +0100, Adrien Grassein wrote: > > > Add usdhc3 description which corresponds to the wifi/bt chip > > > > > > Signed-off-by:

Re: [RFC PATCH v5 0/4] add simple copy support

2021-02-20 Thread Keith Busch
On Sat, Feb 20, 2021 at 06:01:56PM +, David Laight wrote: > From: SelvaKumar S > > Sent: 19 February 2021 12:45 > > > > This patchset tries to add support for TP4065a ("Simple Copy Command"), > > v2020.05.04 ("Ratified") > > > > The Specification can be found in following link. > >

Re: [PATCH v3 1/9] arm64: dts: imx8mm-nitrogen-r2: add wifi/bt chip

2021-02-20 Thread Krzysztof Kozlowski
On Fri, Feb 19, 2021 at 03:30:20PM +0100, Adrien Grassein wrote: > Add usdhc3 description which corresponds to the wifi/bt chip > > Signed-off-by: Adrien Grassein > --- > .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 38 +++ > 1 file changed, 38 insertions(+) > > diff --git

Re: [PATCH v3 4/9] arm64: dts: imx8mm-nitrogen-r2: add UARTs

2021-02-20 Thread Krzysztof Kozlowski
On Fri, Feb 19, 2021 at 03:30:23PM +0100, Adrien Grassein wrote: > Add description and pin muxing for UARTs. > > Signed-off-by: Adrien Grassein > --- > .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 48 +++ > 1 file changed, 48 insertions(+) > Reviewed-by: Krzysztof Kozlowski

  1   2   3   >