Re: [PATCH v2 1/1] PCI: pciehp: Skip DLLSC handling if DPC is triggered

2021-03-27 Thread Kuppuswamy, Sathyanarayanan
On 3/16/21 9:13 PM, Lukas Wunner wrote: On Fri, Mar 12, 2021 at 07:32:08PM -0800, sathyanarayanan.kuppusw...@linux.intel.com wrote: + if ((events == PCI_EXP_SLTSTA_DLLSC) && is_dpc_reset_active(pdev)) { + ctrl_info(ctrl, "Slot(%s): DLLSC event(DPC), skipped\n", +

[TRIVIAL] drm/amd/display: fix typo: liason -> liaison

2021-03-27 Thread Diego Viola
Signed-off-by: Diego Viola --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 573cf17262da..1b4b4f508662 100644 ---

Re: [PATCH v1] Input: elants_i2c - fix division by zero if firmware reports zero phys size

2021-03-27 Thread Dmitry Torokhov
Hi Dmitry, On Tue, Mar 02, 2021 at 01:08:24PM +0300, Dmitry Osipenko wrote: > Touchscreen firmware of ASUS Transformer TF700T reports zeros for the phys > size. Hence check whether the size is zero and don't set the resolution in > this case. > > Reported-by: Jasper Korten > Signed-off-by:

[PATCH] kernel/printk.c: Fixed mundane typos

2021-03-27 Thread Bhaskar Chowdhury
s/sempahore/semaphore/ s/exacly/exactly/ s/unregistred/unregistered/ s/interation/iteration/ Signed-off-by: Bhaskar Chowdhury --- kernel/printk/printk.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index

Re: [PATCH bpf-next 3/5] libbpf: add low level TC-BPF API

2021-03-27 Thread Andrii Nakryiko
On Thu, Mar 25, 2021 at 5:02 AM Kumar Kartikeya Dwivedi wrote: > > This adds functions that wrap the netlink API used for adding, > manipulating, and removing filters and actions. These functions operate > directly on the loaded prog's fd, and return a handle to the filter and > action using an

Re: [PATCH bpf-next 5/5] libbpf: add selftests for TC-BPF API

2021-03-27 Thread Andrii Nakryiko
On Fri, Mar 26, 2021 at 7:15 PM Alexei Starovoitov wrote: > > On Thu, Mar 25, 2021 at 05:30:03PM +0530, Kumar Kartikeya Dwivedi wrote: > > This adds some basic tests for the low level bpf_tc_* API and its > > bpf_program__attach_tc_* wrapper on top. > > *_block() apis from patch 3 and 4 are not

[PATCH 07/10] locking.c: Fix same typo in couple of places

2021-03-27 Thread Bhaskar Chowdhury
s/Retrun/Return/ . two different places. Signed-off-by: Bhaskar Chowdhury --- fs/btrfs/locking.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/locking.c b/fs/btrfs/locking.c index 5fafc5e89bb7..313d9d685adb 100644 --- a/fs/btrfs/locking.c +++

[PATCH 09/10] extent-tree.c: Fix a typo

2021-03-27 Thread Bhaskar Chowdhury
s/Otheriwse/Otherwise/ Signed-off-by: Bhaskar Chowdhury --- fs/btrfs/extent-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 36a3c973fda1..d0532754af15 100644 --- a/fs/btrfs/extent-tree.c +++

[PATCH 10/10] disk-io.c: Fix a typo

2021-03-27 Thread Bhaskar Chowdhury
s/traget/target/ Signed-off-by: Bhaskar Chowdhury --- fs/btrfs/disk-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 289f1f09481d..230918d34f87 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -3367,7 +3367,7 @@

[PATCH 08/10] volumes.c: Fix a typo

2021-03-27 Thread Bhaskar Chowdhury
s/bondary/boundary/ Signed-off-by: Bhaskar Chowdhury --- fs/btrfs/volumes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 1c6810bbaf8b..ac85558b91c2 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -7797,7 +7797,7 @@

[PATCH 06/10] scrub.c: Fix a typo

2021-03-27 Thread Bhaskar Chowdhury
s/reponsible/responsible/ Signed-off-by: Bhaskar Chowdhury --- fs/btrfs/scrub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 3d9088eab2fc..14de898967bf 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -2426,7 +2426,7 @@

[PATCH 05/10] inode.c: Couple of typo fixes

2021-03-27 Thread Bhaskar Chowdhury
s/contaning/containing/ s/clearning/clearing/ Signed-off-by: Bhaskar Chowdhury --- fs/btrfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index a520775949a0..dd7cc65db7bd 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c

[PATCH 02/10] dev-replace.c: A typo fix

2021-03-27 Thread Bhaskar Chowdhury
s/contans/contains/ Signed-off-by: Bhaskar Chowdhury --- fs/btrfs/dev-replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/dev-replace.c b/fs/btrfs/dev-replace.c index d05f73530af7..d029be40ea6f 100644 --- a/fs/btrfs/dev-replace.c +++ b/fs/btrfs/dev-replace.c

[PATCH 04/10] zoned.c: A typo fix

2021-03-27 Thread Bhaskar Chowdhury
s/beggining/beginning/ Signed-off-by: Bhaskar Chowdhury --- fs/btrfs/zoned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c index 1f972b75a9ab..d6cd0d4eb1a9 100644 --- a/fs/btrfs/zoned.c +++ b/fs/btrfs/zoned.c @@ -383,7 +383,7 @@ int

[PATCH 03/10] ioctl.c: A typo fix

2021-03-27 Thread Bhaskar Chowdhury
s/termined/terminated/ Signed-off-by: Bhaskar Chowdhury --- fs/btrfs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index e8d53fea4c61..98ed14a0682e 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -3022,7 +3022,7 @@ static

[PATCH 01/10] extent-map-tests.c: A typo fix

2021-03-27 Thread Bhaskar Chowdhury
s/interesects/intersects/ Signed-off-by: Bhaskar Chowdhury --- fs/btrfs/tests/extent-map-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/tests/extent-map-tests.c b/fs/btrfs/tests/extent-map-tests.c index c0aefe6dee0b..319fed82d741 100644 ---

[PATCH 00/10] BTRFS: Mundane typo fixes

2021-03-27 Thread Bhaskar Chowdhury
This patch series fixes trivial typos as they appear in the files. Bhaskar Chowdhury (10): extent-map-tests.c: A typo fix dev-replace.c: A typo fix ioctl.c: A typo fix zoned.c: A typo fix inode.c: Couple of typo fixes scrub.c: Fix a typo locking.c: Fix same typo in couple of places

[PATCH v2] lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS

2021-03-27 Thread Julian Braha
When LATENCYTOP is enabled and ARCH_WANT_FRAME_POINTERS is disabled, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for FRAME_POINTER Depends on [n]: DEBUG_KERNEL [=y] && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS [=n] || MCOUNT [=n] Selected by [y]:

[PATCH] drivers: iio: adc: fix unmet dependency on OF

2021-03-27 Thread Julian Braha
When AD9467 is enabled, and OF is disabled, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for ADI_AXI_ADC Depends on [n]: IIO [=y] && HAS_IOMEM [=y] && OF [=n] Selected by [y]: - AD9467 [=y] && IIO [=y] && SPI [=y] This is because AD9467 selects ADI_AXI_ADC

Re: [syzbot] UBSAN: shift-out-of-bounds in ___bpf_prog_run

2021-03-27 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:0f4498ce Merge tag 'for-5.12/dm-fixes-2' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16d734aad0 kernel config:

[PATCH] xtensa: fix uaccess-related livelock in do_page_fault

2021-03-27 Thread Max Filippov
If a uaccess (e.g. get_user()) triggers a fault and there's a fault signal pending, the handler will return to the uaccess without having performed a uaccess fault fixup, and so the CPU will immediately execute the uaccess instruction again, whereupon it will livelock bouncing between that

hppa64-linux-ld: net/ipv4/tcp_ipv4.o(.init.text+0x50): cannot reach unknown

2021-03-27 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e commit: e807b13cb3e3bcf0f602cb5ef66f7a1988d0e703 nft_set_pipapo: Generalise group size for buckets date: 1 year ago config: parisc-randconfig-s031-20210326

[PATCH v3] crypto: mips: add poly1305-core.S to .gitignore

2021-03-27 Thread Ilya Lipnitskiy
poly1305-core.S is an auto-generated file, so it should be ignored. Fixes: a11d055e7a64 ("crypto: mips/poly1305 - incorporate OpenSSL/CRYPTOGAMS optimized implementation") Signed-off-by: Ilya Lipnitskiy Cc: Ard Biesheuvel --- arch/mips/crypto/.gitignore | 2 ++ 1 file changed, 2 insertions(+)

Re: [PATCH v25 09/10] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

2021-03-27 Thread kernel test robot
Hi Konstantin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on 931294922e65a23e1aad6398b9ae02df74044679] url: https://github.com/0day-ci/linux/commits/Konstantin-Komarov/NTFS-read-write-driver-GPL-implementation-by-Paragon-Software/20210328-054516 base:

[PATCH] fs/ntfs3: fix boolreturn.cocci warnings

2021-03-27 Thread kernel test robot
From: kernel test robot fs/ntfs3/xattr.c:1037:8-9: WARNING: return of 0/1 in function 'ntfs_xattr_user_list' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: Konstantin

[PATCH] fs/ntfs3: fix d_find_alias.cocci warnings

2021-03-27 Thread kernel test robot
From: kernel test robot fs/ntfs3/super.c:93:17-23: Missing call to dput() at line 121. Make sure calls to d_find_alias() have a corresponding call to dput(). Generated by: scripts/coccinelle/api/d_find_alias.cocci CC: Konstantin Komarov Reported-by: kernel test robot Signed-off-by: kernel

Re: [PATCH bpf-next] bpf: trace jit code when enable BPF_JIT_ALWAYS_ON

2021-03-27 Thread Jianlin Lv
On Sat, Mar 27, 2021 at 11:19 PM Alexei Starovoitov wrote: > > On Sat, Mar 27, 2021 at 1:19 AM Jianlin Lv wrote: > > > > > On Fri, Mar 26, 2021 at 5:40 AM Jianlin Lv wrote: > > > > > > > > When CONFIG_BPF_JIT_ALWAYS_ON is enabled, the value of > > > bpf_jit_enable > > > > in /proc/sys is

[PATCH v2] crypto: mips: add poly1305-core.S to .gitignore

2021-03-27 Thread Ilya Lipnitskiy
poly1305-core.S is an auto-generated file, so it should be ignored. Fixes: a11d055e7a64 ("crypto: mips/poly1305 - incorporate OpenSSL/CRYPTOGAMS optimized implementation") Signed-off-by: Ilya Lipnitskiy Cc: Ard Biesheuvel --- arch/mips/crypto/.gitignore | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH v4 2/4] riscv: cmpxchg.h: Merge macros

2021-03-27 Thread Guo Ren
Thx Arnd, On Sun, Mar 28, 2021 at 5:25 AM Arnd Bergmann wrote: > > On Sat, Mar 27, 2021 at 7:06 PM wrote: > > > > From: Guo Ren > > > > To reduce assembly codes, let's merge duplicate codes into one > > (xchg_acquire, xchg_release, cmpxchg_release). > > > > Signed-off-by: Guo Ren > > This is

Re: [PATCH v4 3/4] locking/qspinlock: Add ARCH_USE_QUEUED_SPINLOCKS_XCHG32

2021-03-27 Thread Guo Ren
On Sun, Mar 28, 2021 at 2:43 AM Waiman Long wrote: > > On 3/27/21 2:06 PM, guo...@kernel.org wrote: > > From: Guo Ren > > > > Some architectures don't have sub-word swap atomic instruction, > > they only have the full word's one. > > > > The sub-word swap only improve the performance when: > >

[PATCH] crypto: mips: add poly1305-core.S to .gitignore

2021-03-27 Thread Ilya Lipnitskiy
poly1305-core.S is an auto-generated file, so it should be ignored. Signed-off-by: Ilya Lipnitskiy Cc: Ard Biesheuvel --- arch/mips/crypto/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 arch/mips/crypto/.gitignore diff --git a/arch/mips/crypto/.gitignore

Re: [PATCH v5 0/5] Add r8a77965 DRIF support

2021-03-27 Thread Laurent Pinchart
Hi Hans, On Sat, Mar 27, 2021 at 11:05:01AM +0100, Hans Verkuil wrote: > On 21/10/2020 23:43, Laurent Pinchart wrote: > > On Wed, Oct 21, 2020 at 02:53:27PM +0100, Fabrizio Castro wrote: > >> Dear All, > >> > >> this series is to add DRIF support for the r8a77965 > >> (a.k.a. R-Car M3-N). Version

Re: [PATCH v1 3/8] software node: Show properties and their values in sysfs

2021-03-27 Thread kernel test robot
Hi Andy, I love your patch! Yet something to improve: [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on linuxtv-media/master linux/master linus/master v5.12-rc4 next-20210326] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: Testers wanted: Atom netbooks with x86_64 disabled by BIOS

2021-03-27 Thread Thomas Gleixner
On Sun, Mar 28 2021 at 00:25, Willy Tarreau wrote: > On Sat, Mar 27, 2021 at 10:13:22PM +0100, Mateusz Jonczyk wrote: > FWIW I tested on my ASUS 1025C which runs on an Atom N2600 forced to > 32-bit. I had already tried in the past but wanted to give it a try > again in case I'd have missed

[GIT PULL] SCSI fixes for 5.12-rc4

2021-03-27 Thread James Bottomley
Seven fixes, all in drivers (qla2xxx, mkt3sas, qedi, target, ibmvscsi). The most serious are the target pscsi oom and the qla2xxx revert which can otherwise cause a use after free. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-03-27 Thread Thomas Gleixner
Andy, On Fri, Mar 26 2021 at 16:18, Andy Lutomirski wrote: > arch_prctl(ARCH_SET_XCR0, xcr0, lazy_states, sigsave_states, > sigclear_states, 0); > > Sets xcr0. All states are preallocated except that states in > lazy_states may be unallocated in the kernel until used. (Not > supported at all in

Re: [PATCH 6/9] debugfs: Implement debugfs_create_str()

2021-03-27 Thread Steven Rostedt
On Sat, 27 Mar 2021 22:24:45 + Al Viro wrote: > On Fri, Mar 26, 2021 at 11:33:58AM +0100, Peter Zijlstra wrote: > > > +again: > > + rcu_read_lock(); > > + str = rcu_dereference(*(char **)file->private_data); > > + len = strlen(str) + 1; > > + > > + if (!copy || copy_len < len) { > >

[GIT PULL] CIFS/SMB3 Fixes

2021-03-27 Thread Steve French
Please pull the following changes since commit 0d02ec6b3136c73c09e7859f0d0e4e2c4c07b49b: Linux 5.12-rc4 (2021-03-21 14:56:43 -0700) are available in the Git repository at: git://git.samba.org/sfrench/cifs-2.6.git tags/5.12-rc4-smb3 for you to fetch changes up to

Re: [syzbot] KASAN: null-ptr-deref Read in filp_close (2)

2021-03-27 Thread Al Viro
On Fri, Mar 26, 2021 at 02:50:11PM +0100, Christian Brauner wrote: > @@ -632,6 +632,7 @@ EXPORT_SYMBOL(close_fd); /* for ksys_close() */ > static inline void __range_cloexec(struct files_struct *cur_fds, > unsigned int fd, unsigned int max_fd) > { > +

[PATCH] USB: serial: iuu_phoenix: remove redundant variable 'error'

2021-03-27 Thread Colin King
From: Colin Ian King The variable error is initialized to 0 and is set to 1 this value is never read as it is on an immediate return path. The only read of error is to check it is 0 and this check is always true at that point of the code. The variable is redundant and can be removed.

[PATCH 1/2] sched/debug: Don't disable IRQ when acquiring sched_debug_lock

2021-03-27 Thread Waiman Long
The sched_debug_lock was used only in print_cpu(). The print_cpu() function has two callers - sched_debug_show() and sysrq_sched_debug_show(). Both of them are invoked by user action (sched_debug file and sysrq-t). As print_cpu() won't be called from interrupt context at all, there is no point in

[PATCH 2/2] sched/debug: Use sched_debug_lock to serialize use of cgroup_path[] only

2021-03-27 Thread Waiman Long
The purpose of sched_debug_lock is to serialize the use of the global cgroup_path[] buffer in print_cpu(). The rests of the printf calls don't need serialization from sched_debug_lock. The printing of sched debug data to console can take quite a while, taking sched_debug_lock at the print_cpu()

Re: Testers wanted: Atom netbooks with x86_64 disabled by BIOS

2021-03-27 Thread Willy Tarreau
Hi, On Sat, Mar 27, 2021 at 10:13:22PM +0100, Mateusz Jonczyk wrote: > W dniu 27.03.2021 o 21:32, Mateusz Jonczyk pisze: > > Hello, > > > > There are some netbooks with Intel Atom processors that have 64-bit > > support disabled by BIOS. Theoretically, the processor supports 64-bit > > operation,

[PATCH] scsi: qedi: emove redundant assignment to variable err

2021-03-27 Thread Colin King
From: Colin Ian King variable err is assigned -ENOMEM followed by an error return path via label err_udev that does not access the variable and returns with the -ENOMEM error return code. The assignment to err is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by:

Re: [PATCH v4 2/3] drm/encoder: Add macro drmm_plain_encoder_alloc()

2021-03-27 Thread Laurent Pinchart
Hi Paul, Thank you for the patch. On Sat, Mar 27, 2021 at 11:57:41AM +, Paul Cercueil wrote: > This performs the same operation as drmm_encoder_alloc(), but > only allocates and returns a struct drm_encoder instance. > > v4: Rename macro drmm_plain_encoder_alloc() and move to > . Since

Re: [PATCH] PCI: Remove pci_try_set_mwi

2021-03-27 Thread Heiner Kallweit
On 26.03.2021 22:26, Bjorn Helgaas wrote: > [+cc Randy, Andrew (though I'm sure you have zero interest in this > ancient question :))] > > On Wed, Dec 09, 2020 at 09:31:21AM +0100, Heiner Kallweit wrote: >> pci_set_mwi() and pci_try_set_mwi() do exactly the same, just that the >> former one is

[PATCH] rtlwifi: remove redundant assignment to variable err

2021-03-27 Thread Colin King
From: Colin Ian King Variable err is assigned -ENODEV followed by an error return path via label error_out that does not access the variable and returns with the -ENODEV error return code. The assignment to err is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by:

[PATCH v2 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-03-27 Thread Kuppuswamy Sathyanarayanan
In non-root TDX guest mode, MWAIT, MONITOR and WBINVD instructions are not supported. So handle #VE due to these instructions as no ops. Signed-off-by: Kuppuswamy Sathyanarayanan Reviewed-by: Andi Kleen --- Changes since v1: * Added WARN() for MWAIT #VE exception. Changes since previous

arch/arm64/include/asm/syscall_wrapper.h:76:25: warning: no previous prototype for '__arm64_sys_process_madvise'

2021-03-27 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e commit: ecb8ac8b1f146915aa6b96449b66dd48984caacc mm/madvise: introduce process_madvise() syscall: an external memory hinting API date: 5 months ago config:

[PATCH] of/fdt: Improve error checking

2021-03-27 Thread Guenter Roeck
If an unaligned pointer is passed to of_fdt_unflatten_tree(), populate_node() as called from unflatten_dt_nodes() will fail. unflatten_dt_nodes() will return 0 and set *nodepp to NULL. This is not expected to happen in __unflatten_device_tree(), which then tries to write into the NULL pointer,

[PATCH] mfd: timberdale: remove redundant assignment to variable err

2021-03-27 Thread Colin King
From: Colin Ian King Variable err is assigned -ENODEV followed by an error return path via label err_mfd that does not access the variable and returns with the -ENODEV error return code. The assignment to err is redundant and can be removed. Signed-off-by: Colin Ian King ---

Dearly Beloved In Christ

2021-03-27 Thread Mrs Daniella Kyle
Hi Dear, Sorry to invade your privacy, I am Mrs Daniela Angelo Kyle the wife of late Mr Angelo Kyle,my husband worked with Central Bank Of Philippines for ten years before he died in the year 2012. When my late husband was alive he deposited sum amount of Money with UBA Bank therein Burkina Faso

Re: [PATCH v1 1/1] kernel.h: Drop inclusion in bitmap.h

2021-03-27 Thread Andy Shevchenko
On Sun, Mar 28, 2021 at 12:23 AM Al Viro wrote: > > On Fri, Mar 26, 2021 at 07:03:47PM +0200, Andy Shevchenko wrote: > > The bitmap.h header is used in a lot of code around the kernel. > > Besides that it includes kernel.h which sometimes makes a loop. > > How much of the kernel does *not* end up

Re: [PATCH -next] drivers: net: CONFIG_ATH9K select LEDS_CLASS

2021-03-27 Thread Pavel Machek
On Fri 2021-03-26 16:13:51, Zhang Jianhua wrote: > If CONFIG_ATH9K=y, the following errors will be seen while compiling > gpio.c > > drivers/net/wireless/ath/ath9k/gpio.o: In function `ath_deinit_leds': > gpio.c:(.text+0x604): undefined reference to `led_classdev_unregister' >

[PATCH][next] mlxsw: spectrum_router: remove redundant initialization of variable force

2021-03-27 Thread Colin King
From: Colin Ian King The variable force is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

Re: [PATCH] kconfig: nconf: stop endless search-up loops

2021-03-27 Thread Randy Dunlap
On 3/27/21 3:12 PM, Mihai Moldovan wrote: > * On 3/27/21 4:58 PM, Randy Dunlap wrote: >> On 3/27/21 5:01 AM, Mihai Moldovan wrote: >>> + if ((-1 == index) && (index == match_start)) >> >> checkpatch doesn't complain about this (and I wonder how it's missed), but >> kernel style is

Re: [PATCH 6/9] debugfs: Implement debugfs_create_str()

2021-03-27 Thread Al Viro
On Fri, Mar 26, 2021 at 11:33:58AM +0100, Peter Zijlstra wrote: > +again: > + rcu_read_lock(); > + str = rcu_dereference(*(char **)file->private_data); > + len = strlen(str) + 1; > + > + if (!copy || copy_len < len) { > + rcu_read_unlock(); > + kfree(copy);

Re: [PATCH v3 2/6] PCI: brcmstb: Add control of EP voltage regulators

2021-03-27 Thread Jim Quinlan
On Fri, Mar 26, 2021 at 4:11 PM Bjorn Helgaas wrote: > > On Fri, Mar 26, 2021 at 03:19:00PM -0400, Jim Quinlan wrote: > > Control of EP regulators by the RC is needed because of the chicken-and-egg > > Can you expand "EP"? Not sure if this refers to "endpoint" or > something else. Yes I meant

[PATCH v1 7/8] software node: Introduce SOFTWARE_NODE_REFERENCE() helper macro

2021-03-27 Thread Andy Shevchenko
This is useful to assign software node reference with arguments in a common way. Moreover, we have already couple of users that may be converted. And by the fact, one of them is moved right here to use the helper. Signed-off-by: Andy Shevchenko --- drivers/base/test/property-entry-test.c | 11

[PATCH v1 5/8] software node: Imply kobj_to_swnode() to be no-op

2021-03-27 Thread Andy Shevchenko
Since we don't use structure field layout randomization the manual shuffling can affect some macros, in particular kobj_to_swnode(), which becomes a no-op when kobj member is the first one in the struct swnode. Bloat-o-meter statistics: add/remove: 0/0 grow/shrink: 2/10 up/down: 9/-100 (-91)

[PATCH v1 3/8] software node: Show properties and their values in sysfs

2021-03-27 Thread Andy Shevchenko
It's very convenient to see what properties and their values are currently being assigned in the registered software nodes. Show properties and their values in sysfs. Signed-off-by: Andy Shevchenko --- drivers/base/swnode.c | 137 -- 1 file changed, 132

[PATCH v1 6/8] software node: Simplify swnode_register() a bit

2021-03-27 Thread Andy Shevchenko
By introducing two temporary variables simplify swnode_register() a bit. No functional change intended. Signed-off-by: Andy Shevchenko --- drivers/base/swnode.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/base/swnode.c b/drivers/base/swnode.c index

[PATCH v1 8/8] media: ipu3-cio2: Switch to use SOFTWARE_NODE_REFERENCE()

2021-03-27 Thread Andy Shevchenko
This is useful to assign software node reference with arguments in a common way. Switch to use SOFTWARE_NODE_REFERENCE() here. Signed-off-by: Andy Shevchenko --- drivers/media/pci/intel/ipu3/cio2-bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v4 22/22] x86/fpu/xstate: Introduce boot-parameters to control state component support

2021-03-27 Thread Thomas Gleixner
Len, On Sat, Mar 27 2021 at 00:53, Len Brown wrote: >> 3.3 RECOMMENDATIONS FOR SYSTEM SOFTWARE >> >> System software may disable use of Intel AMX by clearing XCR0[18:17], >> by clearing CR4.OSXSAVE, or by setting >> IA32_XFD[18]. It is recommended that system software initialize AMX >> state

[PATCH v1 1/8] software node: Free resources explicitly when swnode_register() fails

2021-03-27 Thread Andy Shevchenko
Currently we have a slightly twisted logic in swnode_register(). It frees resources that it doesn't allocate on error path and in once case it relies on the ->release() implementation. Untwist the logic by freeing resources explicitly when swnode_register() fails. Currently it happens only in

[PATCH v1 4/8] software node: Deduplicate code in fwnode_create_software_node()

2021-03-27 Thread Andy Shevchenko
Deduplicate conditional and assignment in fwnode_create_software_node(), i.e. parent is checked in two out of three cases and parent software node is assigned by to_swnode() call. Signed-off-by: Andy Shevchenko --- drivers/base/swnode.c | 17 - 1 file changed, 8 insertions(+), 9

[PATCH v1 2/8] software node: Introduce software_node_alloc()/software_node_free()

2021-03-27 Thread Andy Shevchenko
Introduce software_node_alloc() and software_node_free() helpers. This will help with code readability and maintenance. Signed-off-by: Andy Shevchenko --- drivers/base/swnode.c | 47 ++- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git

Re: [PATCH 17/17] auxdisplay: ht16k33: Add segment display LED support

2021-03-27 Thread Pavel Machek
Hi! > > > > > - err = ht16k33_brightness_set(priv, MAX_BRIGHTNESS); > > > > > + of_property_read_u32(node, "color", ); > > > > > + seg->led.name = devm_kasprintf(dev, GFP_KERNEL, > > > > > + DRIVER_NAME ":%s:" LED_FUNCTION_BACKLIGHT, > > > > > +

Re: [PATCH v1 1/1] kernel.h: Drop inclusion in bitmap.h

2021-03-27 Thread Al Viro
On Fri, Mar 26, 2021 at 07:03:47PM +0200, Andy Shevchenko wrote: > The bitmap.h header is used in a lot of code around the kernel. > Besides that it includes kernel.h which sometimes makes a loop. How much of the kernel does *not* end up pulling kernel.h anyway, making all subsequent includes

Re: [PATCH] usb: gadget: aspeed: set port_dev dma mask

2021-03-27 Thread Tao Ren
On Fri, Mar 26, 2021 at 01:05:26PM +0100, Christoph Hellwig wrote: > On Fri, Mar 26, 2021 at 12:03:03PM +, Robin Murphy wrote: > > This might happen to work out, but is far from correct. Just wait until you > > try it on a platform where the USB controller is behind an IOMMU... > > > > It

fs/ntfs/aops.c:378:12: warning: stack frame size of 2288 bytes in function 'ntfs_readpage'

2021-03-27 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e commit: 4eeef098b43242ed145c83fba9989d586d707589 powerpc/44x: Remove STDBINUTILS kconfig option date: 8 weeks ago config: powerpc64-randconfig-r036-20210328

Re: [PATCH] kconfig: nconf: stop endless search-up loops

2021-03-27 Thread Mihai Moldovan
* On 3/27/21 4:58 PM, Randy Dunlap wrote: > On 3/27/21 5:01 AM, Mihai Moldovan wrote: >> +if ((-1 == index) && (index == match_start)) > > checkpatch doesn't complain about this (and I wonder how it's missed), but > kernel style is (mostly) "constant goes on right hand side of

Re: [PATCH] userfaultfd/shmem: fix MCOPY_ATOMIC_CONTNUE error handling + accounting

2021-03-27 Thread Peter Xu
Axel, On Thu, Mar 25, 2021 at 04:10:27PM -0700, Axel Rasmussen wrote: > Previously, in the error path, we unconditionally removed the page from > the page cache. But in the continue case, we didn't add it - it was > already there because the page is used by a second (non-UFFD-registered) >

Re: [PATCH v8 1/3] lib: zstd: Add kernel-specific API

2021-03-27 Thread Oleksandr Natalenko
Hello. On Sat, Mar 27, 2021 at 05:48:01PM +0800, kernel test robot wrote: > >> ERROR: modpost: "ZSTD_maxCLevel" [fs/f2fs/f2fs.ko] undefined! Since f2fs can be built as a module, the following correction seems to be needed: ``` diff --git a/lib/zstd/compress/zstd_compress.c

Re: [v9,5/7] PCI: mediatek-gen3: Add MSI support

2021-03-27 Thread Marc Zyngier
On Sat, 27 Mar 2021 20:29:04 +, Pali Rohár wrote: > > On Saturday 27 March 2021 19:44:30 Marc Zyngier wrote: > > On Sat, 27 Mar 2021 19:28:37 +, > > Pali Rohár wrote: > > > > > > On Wednesday 24 March 2021 11:05:08 Jianjun Wang wrote: > > > > +static void mtk_pcie_msi_handler(struct

[PATCH] tty: fix memory leak in vc_deallocate

2021-03-27 Thread Pavel Skripkin
syzbot reported memory leak in tty/vt. The problem was in VT_DISALLOCATE ioctl cmd. After allocating unimap with PIO_UNIMAP it wasn't freed via VT_DISALLOCATE, but vc_cons[currcons].d was zeroed. Signed-off-by: Pavel Skripkin Reported-by: syzbot+bcc922b19ccc64240...@syzkaller.appspotmail.com ---

[PATCH v25 01/10] fs/ntfs3: Add headers and misc files

2021-03-27 Thread Konstantin Komarov
This adds headers and misc files Signed-off-by: Konstantin Komarov --- fs/ntfs3/debug.h | 64 +++ fs/ntfs3/ntfs.h| 1237 fs/ntfs3/ntfs_fs.h | 1087 ++ fs/ntfs3/upcase.c | 105 4 files changed, 2493

[PATCH v25 05/10] fs/ntfs3: Add attrib operations

2021-03-27 Thread Konstantin Komarov
This adds attrib operations Signed-off-by: Konstantin Komarov --- fs/ntfs3/attrib.c | 2083 +++ fs/ntfs3/attrlist.c | 456 ++ fs/ntfs3/xattr.c| 1050 ++ 3 files changed, 3589 insertions(+) create mode 100644

[PATCH v25 06/10] fs/ntfs3: Add compression

2021-03-27 Thread Konstantin Komarov
This patch adds different types of NTFS-applicable compressions: - lznt - lzx - xpress Latter two (lzx, xpress) implement Windows Compact OS feature and were taken from ntfs-3g system comression plugin authored by Eric Biggers (https://github.com/ebiggers/ntfs-3g-system-compression) which were

[PATCH v25 09/10] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

2021-03-27 Thread Konstantin Komarov
This adds NTFS3 in fs/Kconfig and fs/Makefile Signed-off-by: Konstantin Komarov --- fs/Kconfig | 1 + fs/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/Kconfig b/fs/Kconfig index 9e7e47933..1bf7b82d5 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -146,6 +146,7 @@ menu

[PATCH v25 10/10] fs/ntfs3: Add MAINTAINERS

2021-03-27 Thread Konstantin Komarov
This adds MAINTAINERS Signed-off-by: Konstantin Komarov --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 67b104202..832f7d4d0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12875,6 +12875,13 @@ T: git

[PATCH v25 08/10] fs/ntfs3: Add Kconfig, Makefile and doc

2021-03-27 Thread Konstantin Komarov
This adds Kconfig, Makefile and doc Signed-off-by: Konstantin Komarov --- Documentation/filesystems/ntfs3.rst | 107 fs/ntfs3/Kconfig| 46 fs/ntfs3/Makefile | 34 + 3 files changed, 187 insertions(+)

[PATCH v25 07/10] fs/ntfs3: Add NTFS journal

2021-03-27 Thread Konstantin Komarov
This adds NTFS journal Signed-off-by: Konstantin Komarov --- fs/ntfs3/fslog.c | 5208 ++ 1 file changed, 5208 insertions(+) create mode 100644 fs/ntfs3/fslog.c diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c new file mode 100644 index

[PATCH v25 03/10] fs/ntfs3: Add bitmap

2021-03-27 Thread Konstantin Komarov
This adds bitmap Signed-off-by: Konstantin Komarov --- fs/ntfs3/bitfunc.c | 135 fs/ntfs3/bitmap.c | 1519 2 files changed, 1654 insertions(+) create mode 100644 fs/ntfs3/bitfunc.c create mode 100644 fs/ntfs3/bitmap.c diff --git

[PATCH v25 00/10] NTFS read-write driver GPL implementation by Paragon Software

2021-03-27 Thread Konstantin Komarov
This patch adds NTFS Read-Write driver to fs/ntfs3. Having decades of expertise in commercial file systems development and huge test coverage, we at Paragon Software GmbH want to make our contribution to the Open Source Community by providing implementation of NTFS Read-Write driver for the Linux

Re: [PATCH] MIPS: ralink: mt7621: add memory detection support

2021-03-27 Thread Ilya Lipnitskiy
On Sat, Mar 27, 2021 at 2:06 PM Thomas Bogendoerfer wrote: > > On Sat, Mar 27, 2021 at 09:35:43AM -0700, Ilya Lipnitskiy wrote: > > On Sat, Mar 27, 2021 at 2:46 AM Thomas Bogendoerfer > > wrote: > > > > > > On Thu, Mar 25, 2021 at 07:45:23PM -0700, Ilya Lipnitskiy wrote: > > > > On Thu, Mar 25,

Re: [PATCH] mm: add page_owner_stack=off to make stack collection optional

2021-03-27 Thread Sergei Trofimovich
On Sun, 21 Mar 2021 21:25:01 + Sergei Trofimovich wrote: > On some architectures (like ia64) stack walking is slow > and currently requires memory allocation. This causes stack > collection for page_owner=on to fall into recursion. > > This patch implements a page_owner_stack=off to allow

Re: [PATCH v1 1/1] kernel.h: Drop inclusion in bitmap.h

2021-03-27 Thread Yury Norov
On Fri, Mar 26, 2021 at 07:03:47PM +0200, Andy Shevchenko wrote: > The bitmap.h header is used in a lot of code around the kernel. > Besides that it includes kernel.h which sometimes makes a loop. > > Break the loop by introducing align.h, including it in kernel.h > and bitmap.h followed by

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

2021-03-27 Thread Stephen Rothwell
Hi Sedat, On Sat, 27 Mar 2021 12:50:55 +0100 Sedat Dilek wrote: > > I wonder why Stephen's fixup-patch was not carried in recent > Linux-next releases. It is part of the tip tree merge commit. So it is not an explicit commit on its own, but the needed change is there. > Wild speculation - no

Re: [PATCH v4 2/4] riscv: cmpxchg.h: Merge macros

2021-03-27 Thread Arnd Bergmann
On Sat, Mar 27, 2021 at 7:06 PM wrote: > > From: Guo Ren > > To reduce assembly codes, let's merge duplicate codes into one > (xchg_acquire, xchg_release, cmpxchg_release). > > Signed-off-by: Guo Ren This is a nice cleanup, but I wonder if you can go even further by using the definitions from

[PATCH] sata_mv: add IRQ checks

2021-03-27 Thread Sergey Shtylyov
The function mv_platform_probe() neglects to check the results of the calls to platform_get_irq() and irq_of_parse_and_map() and blithely passes them to ata_host_activate() -- while the latter only checks for IRQ0 (treating it as a polling mode indicattion) and passes the negative values to

RE: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS

2021-03-27 Thread Don Bollinger
> > What I have works. Your consumers get quirk handling, mine don't need it. > > No compromise. > > Hi Don > > All this discussion is now a mute point. GregKH has spoken. Ack. I actually checked in with Greg a couple of days ago and got that answer. I just thought the discussion was going

Re: Testers wanted: Atom netbooks with x86_64 disabled by BIOS

2021-03-27 Thread Mateusz Jończyk
W dniu 27.03.2021 o 21:32, Mateusz Jończyk pisze: > Hello, > > There are some netbooks with Intel Atom processors that have 64-bit > support disabled by BIOS. Theoretically, the processor supports 64-bit > operation, but BIOS allows only 32-bit code to run. > > I wonder whether the 64-bit mode is

Re: [PATCH] MIPS: ralink: mt7621: add memory detection support

2021-03-27 Thread Thomas Bogendoerfer
On Sat, Mar 27, 2021 at 09:35:43AM -0700, Ilya Lipnitskiy wrote: > On Sat, Mar 27, 2021 at 2:46 AM Thomas Bogendoerfer > wrote: > > > > On Thu, Mar 25, 2021 at 07:45:23PM -0700, Ilya Lipnitskiy wrote: > > > On Thu, Mar 25, 2021 at 3:01 AM Thomas Bogendoerfer > > > wrote: > > > > > > > > On Tue,

Re: [PATCH v3] cpu/hotplug: wait for cpuset_hotplug_work to finish on cpu onlining

2021-03-27 Thread Thomas Gleixner
Alexey, On Wed, Mar 17 2021 at 00:36, Alexey Klimov wrote: > When a CPU offlined and onlined via device_offline() and device_online() > the userspace gets uevent notification. If, after receiving "online" uevent, > userspace executes sched_setaffinity() on some task trying to move it > to a

Re: [PATCH 0/2] HID: Add support for Surface Aggregator Module HID transport

2021-03-27 Thread Maximilian Luz
On 3/10/21 11:53 PM, Maximilian Luz wrote: This series adds support for the Surface System Aggregator Module (SSAM) HID transport subsystem. The SSAM is an embedded controller, found on 5th- and later generation Microsoft Surface devices. On some of these devices (specifically Surface Laptops

Re: [PATCH 0/2] power: supply: Add battery and AC drivers for Surface devices

2021-03-27 Thread Maximilian Luz
On 3/9/21 1:05 AM, Maximilian Luz wrote: This series provides battery and AC drivers for Microsoft Surface devices, where this information is provided via an embedded controller (the Surface System Aggregator Module, SSAM) instead of the usual ACPI interface. Specifically, 7th generation

Testers wanted: Atom netbooks with x86_64 disabled by BIOS

2021-03-27 Thread Mateusz Jończyk
Hello, There are some netbooks with Intel Atom processors that have 64-bit support disabled by BIOS. Theoretically, the processor supports 64-bit operation, but BIOS allows only 32-bit code to run. I wonder whether the 64-bit mode is really disabled in the CPU or only hidden in the CPUID flags.

arch/arm64/kernel/proton-pack.c:558:13: warning: no previous prototype for 'spectre_v4_patch_fw_mitigation_enable'

2021-03-27 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e commit: c28762070ca651fe7a981b8f31d972c9b7d2c386 arm64: Rewrite Spectre-v4 mitigation code date: 6 months ago config: arm64-randconfig-r011-20210328 (attached as

[PATCH] spi: dt-bindings: nvidia,tegra210-quad: Use documented compatible "jedec,spi-nor" in example

2021-03-27 Thread Rob Herring
The 'spi-nor' compatible used in the example is not documented. Use the documented 'jedec,spi-nor' compatible instead. Cc: Mark Brown Cc: Thierry Reding Cc: Jonathan Hunter Cc: linux-...@vger.kernel.org Cc: linux-te...@vger.kernel.org Signed-off-by: Rob Herring ---

  1   2   3   4   5   >