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

2021-03-03 Thread Rafael J. Wysocki
On Sat, Feb 20, 2021 at 10:25 AM Hanjun Guo wrote: > > 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

[PATCH 4/4] ALSA: hda/cirrus: Add Headphone and Headset MIC Volume Control

2021-03-03 Thread Vitaly Rodionov
From: Stefan Binding CS8409 does not support Volume Control for NIDs 0x24 (the Headphones), or 0x34 (The Headset Mic). However, CS42L42 codec does support gain control for both. We can add support for Volume Controls, by writing the the CS42L42 regmap via i2c commands, using custom info, get and

memory leak in io_submit_sqes (2)

2021-03-03 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:7a7fd0de Merge branch 'kmap-conversion-for-5.12' of git://.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=152ae9cad0 kernel config: https://syzkaller.appspot.com/x/.config?x=c66ab79a61c783f3

[PATCH] counter: stm32-timer-cnt: fix ceiling miss-alignment with reload register

2021-03-03 Thread Fabrice Gasnier
Ceiling value may be miss-aligned with what's actually configured into the ARR register. This is seen after probe as currently the ARR value is zero, whereas ceiling value is set to the maximum. So: - reading ceiling reports zero - in case the counter gets enabled without any prior configuration,

Re: [PATCH v4 0/3] Cleanup and fixups for vmemmap handling

2021-03-03 Thread Borislav Petkov
On Tue, Mar 02, 2021 at 04:09:35PM -0800, Andrew Morton wrote: > > arch/x86/mm/init_64.c | 189 > > +++--- > > Perhaps a better route would be via an x86 tree. I assumed you took mm stuff, even if arch-specific. I can still take them through tip if

Re: [PATCH v5 11/16] rpmsg: virtio: register the rpmsg_ctrl device

2021-03-03 Thread Mathieu Poirier
On Fri, Feb 19, 2021 at 12:14:56PM +0100, Arnaud Pouliquen wrote: > Instantiate the rpmsg_ioctl device on virtio RPMsg bus creation. s/rpmsg_ioctl/rpmsg_ctrl Now I understand what you meant in patch 05. > This provides the possibility to expose the RPMSG_CREATE_EPT_IOCTL > to create RPMsg chdev

[PATCH] MIPS: kernel: Reserve exception base early to prevent corruption

2021-03-03 Thread Thomas Bogendoerfer
BMIPS is one of the few platforms that do change the exception base. After commit 2dcb39645441 ("memblock: do not start bottom-up allocations with kernel_end") we started seeing BMIPS boards fail to boot with the built-in FDT being corrupted. Before the cited commit, early allocations would be in

[PATCH][next] drm/radeon/si_dpm: Replace one-element array with flexible-array in struct SISLANDS_SMC_SWSTATE

2021-03-03 Thread Gustavo A. R. Silva
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2].

Re: [PATCH] KVM: arm64: Fix unaligned addr case in mmu walking

2021-03-03 Thread Marc Zyngier
On Wed, 03 Mar 2021 11:29:34 +, Will Deacon wrote: > > On Wed, Mar 03, 2021 at 10:42:25AM +0800, Jia He wrote: > > If the start addr is not aligned with the granule size of that level. > > loop step size should be adjusted to boundary instead of simple > > kvm_granual_size(level) increment.

[PATCH] mfd: stm32-timers: avoid clearing auto reload register

2021-03-03 Thread Fabrice Gasnier
The ARR register is cleared unconditionally upon probing, after the maximum value has been read. This initial condition is rather not intuitive, when considering the counter child driver. It rather expects the maximum value by default: - The counter interface shows a zero value by default for

Re: [PATCH v10 10/16] KVM: x86: Introduce KVM_GET_SHARED_PAGES_LIST ioctl

2021-03-03 Thread Will Deacon
[+Marc] On Tue, Mar 02, 2021 at 02:55:43PM +, Ashish Kalra wrote: > On Fri, Feb 26, 2021 at 09:44:41AM -0800, Sean Christopherson wrote: > > On Fri, Feb 26, 2021, Ashish Kalra wrote: > > > On Thu, Feb 25, 2021 at 02:59:27PM -0800, Steve Rutherford wrote: > > > > On Thu, Feb 25, 2021 at 12:20

Re: [PATCH/v4] bpf: add bpf_skb_adjust_room flag BPF_F_ADJ_ROOM_ENCAP_L2_ETH

2021-03-03 Thread Willem de Bruijn
On Wed, Mar 3, 2021 at 7:33 AM Xuesen Huang wrote: > > From: Xuesen Huang > > bpf_skb_adjust_room sets the inner_protocol as skb->protocol for packets > encapsulation. But that is not appropriate when pushing Ethernet header. > > Add an option to further specify encap L2 type and set the

Re: memory leak in io_submit_sqes (2)

2021-03-03 Thread Jens Axboe
On 3/3/21 11:39 AM, syzbot wrote: > Hello, > > syzbot found the following issue on: #syz test: git://git.kernel.dk/linux-block io_uring-5.12 -- Jens Axboe

RE: [PATCH v8 1/6] arm64: hyperv: Add Hyper-V hypercall and register access utilities

2021-03-03 Thread Sunil Muthuswamy
> > + > > + /* > > +* Allocate a power of 2 size so alignment to that size is > > +* guaranteed, since the hypercall input and output areas > > +* must not cross a page boundary. > > +*/ > > + input = kzalloc(roundup_pow_of_two(sizeof(input->header) + > > +

RE: [PATCH] Enable ACPI_ADR_SPACE_PCI_CONFIG in acpi_gbl_default_address_spaces only when ACPI_PCI_CONFIGURED is defined

2021-03-03 Thread Kaneda, Erik
This looks good to me. Bob, do you have any comments? Erik > -Original Message- > From: Weidong Cui > Sent: Monday, February 8, 2021 7:18 PM > To: Moore, Robert ; Kaneda, Erik > ; Wysocki, Rafael J ; > Len Brown > Cc: Weidong Cui ; Xinyang Ge > ; linux-a...@vger.kernel.org;

Re: [PATCH] MIPS: BMIPS: Reserve exception base to prevent corruption

2021-03-03 Thread Thomas Bogendoerfer
On Wed, Mar 03, 2021 at 06:45:52PM +0100, Maciej W. Rozycki wrote: > On Wed, 3 Mar 2021, Thomas Bogendoerfer wrote: > > > perfect, I only forgot about R3k... I'll submit a formal patch submission > > later today. > > What's up with the R3k (the usual trigger for me) here? I've moved r3k

[PATCH 1/4] ALSA: hda/cirrus: Increase AUTO_CFG_MAX_INS from 8 to 18

2021-03-03 Thread Vitaly Rodionov
In preparation to support Cirrus Logic CS8409 HDA bridge on new Dell platforms it is nessasary to increase AUTO_CFG_MAX_INS and AUTO_CFG_NUM_INPUTS values. Currently AUTO_CFG_MAX_INS is limited to 8, but Cirrus Logic HDA bridge CS8409 has 18 input pins, 16 ASP receivers and 2 DMIC inputs. We have

[PATCH 0/4] ALSA: hda/cirrus: Add support for CS8409 HDA bridge and CS42L42 companion codec.

2021-03-03 Thread Vitaly Rodionov
Dell's laptops Inspiron 3500, Inspiron 3501, Inspiron 3505 are using Cirrus Logic CS8409 HDA bridge with CS42L42 companion codec. The CS8409 is a multichannel HD audio routing controller. CS8409 includes support for four channels of digital microphone data and two bidirectional ASPs for up to 32

[PATCH 3/4] ALSA: hda/cirrus: Add jack detect interrupt support from CS42L42 companion codec.

2021-03-03 Thread Vitaly Rodionov
In the case of CS8409 we do not have unsol events from NID's 0x24 and 0x34 where hs mic and hp are connected. Companion codec CS42L42 will generate interrupt via gpio 4 to notify jack events. We have to overwrite standard snd_hda_jack_unsol_event(), read CS42L42 jack detect status registers and

Re: [PATCH v2 0/7] Improve boot command line handling

2021-03-03 Thread Daniel Walker
On Wed, Mar 03, 2021 at 07:07:45PM +0100, Christophe Leroy wrote: > > > Le 03/03/2021 à 18:39, Daniel Walker a écrit : > > On Tue, Mar 02, 2021 at 08:01:01PM -0600, Rob Herring wrote: > > > +Will D > > > > > > On Tue, Mar 2, 2021 at 11:36 AM Daniel Walker wrote: > > > > > > > > On Tue, Mar

[PATCH v3 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-03-03 Thread Suren Baghdasaryan
process_madvise currently requires ptrace attach capability. PTRACE_MODE_ATTACH gives one process complete control over another process. It effectively removes the security boundary between the two processes (in one direction). Granting ptrace attach capability even to a system process is

Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-03-03 Thread Masahiro Yamada
On Wed, Mar 3, 2021 at 8:27 AM Josh Poimboeuf wrote: > > On Mon, Jan 25, 2021 at 02:42:10PM -0600, Josh Poimboeuf wrote: > > When building out-of-tree kernel modules, the build system doesn't > > require the GCC version to match the version used to build the original > > kernel. That's probably

Re: [PATCH] Revert "perf/x86: Allow zero PEBS status with only single active event"

2021-03-03 Thread Peter Zijlstra
On Wed, Mar 03, 2021 at 05:42:18AM -0800, kan.li...@linux.intel.com wrote: > For some old CPUs (HSW and earlier), the PEBS status in a PEBS record > may be mistakenly set to 0. To minimize the impact of the defect, the > commit was introduced to try to avoid dropping the PEBS record for some >

Re: [PATCH v2 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-03-03 Thread Suren Baghdasaryan
On Tue, Mar 2, 2021 at 4:19 PM Suren Baghdasaryan wrote: > > On Tue, Mar 2, 2021 at 4:17 PM Andrew Morton > wrote: > > > > On Tue, 2 Mar 2021 15:53:39 -0800 Suren Baghdasaryan > > wrote: > > > > > Hi Andrew, > > > A friendly reminder to please include this patch into mm tree. > > > There seem

Re: [PATCH 2/4] leds: simatic-ipc-leds: add new driver for Siemens Industial PCs

2021-03-03 Thread Henning Schild
Am Wed, 3 Mar 2021 18:40:40 +0100 schrieb Pavel Machek : > Hi! > > > > > diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile > > > > index 2a698df9da57..c15e1e3c5958 100644 > > > > --- a/drivers/leds/Makefile > > > > +++ b/drivers/leds/Makefile > > > > @@ -93,6 +93,7 @@

[PATCH 4/4] kbuild: dwarf: use AS_VERSION instead of test_dwarf5_support.sh

2021-03-03 Thread Masahiro Yamada
The test code in scripts/test_dwarf5_support.sh is somewhat difficult to understand, but after all, we want to check binutils >= 2.35.2 >From the former discussion, the requrement for generating DRAWF v5 from C code is as follows: - gcc + binutils as -> requires gcc 5.0+ (but 7.0+ for full

[PATCH 3/4] kbuild: check the minimum assembler version in Kconfig

2021-03-03 Thread Masahiro Yamada
Documentation/process/changes.rst defines the minimum assembler version (binutils version), but we have never checked it in the build time. Kbuild never invokes 'as' directly because all assembly files in the kernel tree are *.S, hence must be preprocessed. I do not expect raw assembly source

Re: [RFC PATCH v4 3/3] scheduler: Add cluster scheduler level for x86

2021-03-03 Thread Tim Chen
On 3/2/21 2:30 AM, Peter Zijlstra wrote: > On Tue, Mar 02, 2021 at 11:59:40AM +1300, Barry Song wrote: >> From: Tim Chen >> >> There are x86 CPU architectures (e.g. Jacobsville) where L2 cahce >> is shared among a cluster of cores instead of being exclusive >> to one single core. > > Isn't

Re: [PATCH] iommu/tegra-smmu: Fix mc errors on tegra124-nyan

2021-03-03 Thread Thierry Reding
On Thu, Feb 18, 2021 at 02:07:02PM -0800, Nicolin Chen wrote: > Commit 25938c73cd79 ("iommu/tegra-smmu: Rework tegra_smmu_probe_device()") > removed certain hack in the tegra_smmu_probe() by relying on IOMMU core to > of_xlate SMMU's SID per device, so as to get rid of tegra_smmu_find() and >

Re: [PATCH] x86/vdso: Use proper modifier for len's printf in extract

2021-03-03 Thread Borislav Petkov
On Wed, Mar 03, 2021 at 07:43:57AM +0100, Jiri Slaby wrote: > Commit 8382c668ce4f ("x86/vdso: Add support for exception fixup in vDSO > functions") added a printf of len which is size_t. Compilers now > complain on 32b: > In file included from arch/x86/entry/vdso/vdso2c.c:162: >

[PATCH 1/2] Perf: Clean generated directory, other archs.

2021-03-03 Thread Gon Solo
--- tools/perf/arch/arm64/Makefile | 5 +++-- tools/perf/arch/powerpc/Makefile | 5 +++-- tools/perf/arch/s390/Makefile| 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/tools/perf/arch/arm64/Makefile b/tools/perf/arch/arm64/Makefile index fab3095fb5d0..426aecdd0b71

[PATCH 2/2] Perf: Clean beauty directory.

2021-03-03 Thread Gon Solo
--- tools/perf/Makefile.perf | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 5345ac70cd83..293e297f719d 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -1087,6 +1087,7 @@ clean:: $(LIBTRACEEVENT)-clean

Re: [PATCH v2] iwlwifi: don't call netif_napi_add() with rxq->lock held (was Re: Lockdep warning in iwl_pcie_rx_handle())

2021-03-03 Thread Kalle Valo
Jiri Kosina writes: > On Wed, 3 Mar 2021, Kalle Valo wrote: > >> Patch applied to wireless-drivers.git, thanks. > > Thanks, but ... > >> 295d4cd82b01 iwlwifi: don't call netif_napi_add() with rxq->lock >> held (was Re: Lockdep warning in iwl_pcie_rx_handle()) > > ... i believe you want to drop

Re: [sched/fair] b360fb5e59: stress-ng.vm-segv.ops_per_sec -13.9% regression

2021-03-03 Thread Valentin Schneider
On 23/02/21 12:36, Valentin Schneider wrote: > On 23/02/21 10:30, kernel test robot wrote: >> Greeting, >> >> FYI, we noticed a -13.9% regression of stress-ng.vm-segv.ops_per_sec due to >> commit: >> >> >> commit: b360fb5e5954a8a440ef95bf11257e2e7ea90340 ("[PATCH v2 1/7] >> sched/fair: Ignore

[PATCH 1/4] kbuild: remove LLVM=1 test from HAS_LTO_CLANG

2021-03-03 Thread Masahiro Yamada
This guarding is wrong. As Documentation/kbuild/llvm.rst notes, LLVM=1 switches the default of tools, but you can still override CC, LD, etc. individually. BTW, LLVM is not 1/0 flag. If LLVM is not passed in, it is empty. Non-zero return code is all treated as failure anyway. So, $(success,test

[PATCH 2/4] kbuild: collect minimum tool versions into scripts/tool-version.sh

2021-03-03 Thread Masahiro Yamada
The kernel build uses various tools, many of which are provided by the same software suite, for example, LLVM and Binutils. When we raise the minimal version of Clang/LLVM, we need to update clang_min_version in scripts/cc-version.sh and also lld_min_version in scripts/ld-version.sh. In fact,

[PATCH] afs: remove the unused variable

2021-03-03 Thread Muhammad Usama Anjum
Remove a unused variable from a function. Signed-off-by: Muhammad Usama Anjum --- fs/afs/file.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/afs/file.c b/fs/afs/file.c index af162d7dab5b..cf2b664a68a5 100644 --- a/fs/afs/file.c +++ b/fs/afs/file.c @@ -288,7 +288,6 @@ static void

Re: [PATCH v2] ptrace: add PTRACE_GET_RSEQ_CONFIGURATION request

2021-03-03 Thread Mathieu Desnoyers
- On Feb 26, 2021, at 11:06 AM, Piotr Figiel fig...@google.com wrote: > Hi, > > On Fri, Feb 26, 2021 at 10:32:35AM -0500, Mathieu Desnoyers wrote: >> > +static long ptrace_get_rseq_configuration(struct task_struct *task, >> > +unsigned long size, void

Re: [PATCH] ptrace: add PTRACE_GET_RSEQ_CONFIGURATION request

2021-03-03 Thread Mathieu Desnoyers
- On Feb 26, 2021, at 9:11 AM, Piotr Figiel fig...@google.com wrote: > Hi, > > On Mon, Feb 22, 2021 at 09:53:17AM -0500, Mathieu Desnoyers wrote: > >> I notice that other structures defined in this UAPI header are not >> packed as well. Should we add an attribute packed on new structures ?

Re: [PATCH RESEND v3] mm/userfaultfd: fix memory corruption due to writeprotect

2021-03-03 Thread Peter Xu
On Wed, Mar 03, 2021 at 01:57:02AM -0800, Nadav Amit wrote: > From: Nadav Amit > > Userfaultfd self-test fails occasionally, indicating a memory > corruption. It's failing very constantly now for me after I got it run on a 40 cores system... While indeed not easy to fail on my laptop. [...]

Re: [PATCH V2 1/2] arm64/mm: Fix pfn_valid() for ZONE_DEVICE based memory

2021-03-03 Thread Catalin Marinas
On Thu, Feb 11, 2021 at 01:35:56PM +0100, David Hildenbrand wrote: > On 11.02.21 13:10, Anshuman Khandual wrote: > > On 2/11/21 5:23 PM, Will Deacon wrote: > > > ... and dropped. These patches appear to be responsible for a boot > > > regression reported by CKI: > > > > Ahh, boot regression ?

Re: [PATCH] mm: Allow shmem mappings with MREMAP_DONTUNMAP

2021-03-03 Thread Lokesh Gidra
On Wed, Mar 3, 2021 at 10:13 AM Brian Geffon wrote: > > I apologize, this patch didn't include my signed off by, here it is: > > Signed-off-by: Brian Geffon > > > On Wed, Mar 3, 2021 at 9:53 AM Brian Geffon wrote: > > > > Currently MREMAP_DONTUNMAP only accepts private anonymous mappings. This

Re: Broken kretprobe stack traces

2021-03-03 Thread Daniel Xu
On Wed, Mar 03, 2021 at 01:48:28PM +0900, Masami Hiramatsu wrote: > Hi Daniel, > > On Tue, 02 Mar 2021 17:15:13 -0800 > "Daniel Xu" wrote: > > > Hi Masami, > > > > Jakub reported a bug with kretprobe stack traces -- wondering if you've > > gotten > > any bug reports related to stack traces

Re: [PATCH 00/11] pragma once: treewide conversion

2021-03-03 Thread Linus Torvalds
On Wed, Mar 3, 2021 at 11:46 AM Tom Tromey wrote: > > It's also worth noting that in GCC it is slower than include guards. > See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58770 > > It's just a bug, probably easy to fix. On the other hand, nobody has > ever bothered to do so. That bugzilla is

[PATCH v2 0/8] V4L2 stateless VP8 de-staging

2021-03-03 Thread Ezequiel Garcia
After close scrutiny of the VP8 specification, it seems the VP8 stateless API is ready. This series contains a series of clean-ups and improvement: renaming symbols for consistency, documenting things for clarity, and then moves the control to proper V4L2 headers. It must be noted that, unlike

[PATCH] docs: driver-api: gpio: consumer: Mark another line of code as such

2021-03-03 Thread Jonathan Neuschäfer
Make it so that this #include line is rendered in monospace, like other code blocks. Signed-off-by: Jonathan Neuschäfer --- Documentation/driver-api/gpio/consumer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/driver-api/gpio/consumer.rst

Re: Broken kretprobe stack traces

2021-03-03 Thread Steven Rostedt
On Wed, 03 Mar 2021 12:13:08 -0800 "Daniel Xu" wrote: > On Wed, Mar 3, 2021, at 11:58 AM, Daniel Xu wrote: > > On Wed, Mar 03, 2021 at 09:26:04AM -0500, Steven Rostedt wrote: > > > On Wed, 3 Mar 2021 13:48:28 +0900 > > > Masami Hiramatsu wrote: > > > > > > > > > > > > > > > > > I think

Re: [PATCH] MIPS: boot/compressed: Copy DTB to aligned address

2021-03-03 Thread Rob Herring
On Wed, Mar 3, 2021 at 1:33 PM Paul Cercueil wrote: > > Since 5.12-rc1, the Device Tree blob must now be properly aligned. I had checked the other built-in cases as microblaze broke too, but missed some of the many ways MIPS can have a dtb. Appended and built-in DTBs were supposed to be

Re: [PATCH] arm64: dts: qcom: msm8996: Add usb3 interrupts

2021-03-03 Thread Konrad Dybcio
Patchwork didn't pick this up for some reason, but I guess it's only important that it hit the maintainers. Tested-by: Konrad Dybcio

[PATCH v2 3/8] media: uapi: vp8: Add proper kernel-doc documentation

2021-03-03 Thread Ezequiel Garcia
In preparation for making the interface public, document all the structures. Signed-off-by: Ezequiel Garcia --- include/media/vp8-ctrls.h | 99 +++ 1 file changed, 99 insertions(+) diff --git a/include/media/vp8-ctrls.h b/include/media/vp8-ctrls.h index

[PATCH v2 1/8] media: uapi: vp8: Remove "header" from symbol names and macros

2021-03-03 Thread Ezequiel Garcia
It doesn't seem to add any clarity to have a "header" suffix in controls, struct names and flags. Since this just makes names too long without any benefit, just drop it. Signed-off-by: Ezequiel Garcia --- .../media/v4l/ext-ctrls-codec.rst | 80 +++

[PATCH v2 5/8] media: uapi: Move the VP8 stateless control type out of staging

2021-03-03 Thread Ezequiel Garcia
Move the VP8 stateless control types out of staging, and re-number it to avoid any confusion. Signed-off-by: Ezequiel Garcia --- include/media/vp8-ctrls.h | 1 - include/uapi/linux/videodev2.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/media/vp8-ctrls.h

[PATCH v2 4/8] media: uapi: Move parsed VP8 pixel format out of staging

2021-03-03 Thread Ezequiel Garcia
Since we are ready to stabilize the VP8 stateless API, move the parsed VP8 pixel format. Signed-off-by: Ezequiel Garcia --- Documentation/userspace-api/media/v4l/pixfmt-compressed.rst | 5 - include/media/vp8-ctrls.h | 2 -- include/uapi/linux/videodev2.h

timer: Report ignored local enqueue in nohz mode?

2021-03-03 Thread Paul E. McKenney
Hello, Frederic! I don't see the following commit in mainline, but figured I should check with you guys to see if the problem got solved in some other way. Unless I hear otherwise, I will continue to carry this patch in -rcu and will send it along for the v5.13 merge window.

Re: [PATCH 1/2] mm: disable LRU pagevec during the migration temporarily

2021-03-03 Thread Minchan Kim
On Wed, Mar 03, 2021 at 01:49:36PM +0100, Michal Hocko wrote: > On Tue 02-03-21 13:09:48, Minchan Kim wrote: > > LRU pagevec holds refcount of pages until the pagevec are drained. > > It could prevent migration since the refcount of the page is greater > > than the expection in migration logic. To

Re: [PATCH net-next RFC v4] net: hdlc_x25: Queue outgoing LAPB frames

2021-03-03 Thread Xie He
On Wed, Mar 3, 2021 at 5:26 AM Martin Schiller wrote: > > On 2021-03-03 00:30, Jakub Kicinski wrote: > > > > Hard question to answer, existing users seem happy and Xie's driver > > isn't upstream, so the justification for potentially breaking backward > > compatibility isn't exactly "strong". > >

Re: [PATCH v3 1/1] s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks

2021-03-03 Thread Halil Pasic
On Wed, 3 Mar 2021 12:10:11 -0500 Tony Krowiak wrote: > On 3/3/21 10:23 AM, Halil Pasic wrote: > > On Tue, 2 Mar 2021 15:43:22 -0500 > > Tony Krowiak wrote: > > > >> This patch fixes a lockdep splat introduced by commit f21916ec4826 > >> ("s390/vfio-ap: clean up vfio_ap resources when KVM

Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-03-03 Thread Josh Poimboeuf
On Wed, Mar 03, 2021 at 11:57:33AM -0800, Linus Torvalds wrote: > On Wed, Mar 3, 2021 at 11:38 AM Josh Poimboeuf wrote: > > > > > But in the meantime, making the plugins depend on the gcc version some > > > way is certainly better than not doing so. > > > > So currently, the plugins already so

Re: [PATCH v3 0/3] parport: Introduce module_parport_driver() and use it

2021-03-03 Thread Mark Brown
On Wed, Mar 03, 2021 at 11:16:39AM +0200, Andy Shevchenko wrote: > Introduce module_parport_driver() and use it. > Greg or Mark, since we have this series tagged, can somebody of you pick it > up? Greg, are you OK with me applying this? signature.asc Description: PGP signature

Re: XDP socket rings, and LKMM litmus tests

2021-03-03 Thread Alan Stern
On Wed, Mar 03, 2021 at 09:40:22AM -0800, Paul E. McKenney wrote: > On Wed, Mar 03, 2021 at 12:12:21PM -0500, Alan Stern wrote: > > Local variables absolutely should be treated just like CPU registers, if > > possible. In fact, the compiler has the option of keeping local > > variables stored

Re: [PATCH] Revert "perf/x86: Allow zero PEBS status with only single active event"

2021-03-03 Thread Liang, Kan
On 3/3/2021 1:59 PM, Peter Zijlstra wrote: On Wed, Mar 03, 2021 at 05:42:18AM -0800, kan.li...@linux.intel.com wrote: For some old CPUs (HSW and earlier), the PEBS status in a PEBS record may be mistakenly set to 0. To minimize the impact of the defect, the commit was introduced to try to

Re: [PATCH v2] cxl: Make loop variable be 'i' instead of 'j'

2021-03-03 Thread Konrad Rzeszutek Wilk
..snip.. > > cxl_for_each_cmd(cmd) { > > const struct cxl_command_info *info = >info; > > + int i = 0; > > > > - if (copy_to_user(>commands[j++], info, sizeof(*info))) > > + if (copy_to_user(>commands[i++], info, sizeof(*info))) > >

Re: [perf] perf_fuzzer causes unchecked MSR access error

2021-03-03 Thread Vince Weaver
On Wed, 3 Mar 2021, Liang, Kan wrote: > We never use bit 58. It should be a new issue. > Is it repeatable? yes, it's repeatable. (which I'm glad to see because it looks suspiciously like a memory bit flip) Though since it's a WARN_ONCE I have to reboot each time I want to test. If I get a

Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-03-03 Thread Linus Torvalds
On Wed, Mar 3, 2021 at 11:38 AM Josh Poimboeuf wrote: > > > But in the meantime, making the plugins depend on the gcc version some > > way is certainly better than not doing so. > > So currently, the plugins already so that. They require the GCC version > to be exact. If there's a mismatch,

[PATCH] mtd: add OTP (one-time-programmable) erase ioctl

2021-03-03 Thread Michael Walle
This may sound like a contradiction but some SPI-NOR flashes really support erasing their OTP region until it is finally locked. Having the possibility to erase an OTP region might come in handy during development. The ioctl argument follows the OTPLOCK style. Signed-off-by: Michael Walle ---

Re: [PATCH] Revert "perf/x86: Allow zero PEBS status with only single active event"

2021-03-03 Thread Peter Zijlstra
On Wed, Mar 03, 2021 at 02:53:00PM -0500, Liang, Kan wrote: > On 3/3/2021 1:59 PM, Peter Zijlstra wrote: > > On Wed, Mar 03, 2021 at 05:42:18AM -0800, kan.li...@linux.intel.com wrote: > > > +++ b/arch/x86/events/intel/ds.c > > > @@ -2000,18 +2000,6 @@ static void intel_pmu_drain_pebs_nhm(struct

RE: [PATCH v8 4/6] arm64: hyperv: Initialize hypervisor on boot

2021-03-03 Thread Sunil Muthuswamy
> +static u64 hypercall_output __initdata; > + > +static int __init hyperv_init(void) > +{ > + struct hv_get_vpindex_from_apicid_input *input; > + u64 status; > + int i; nit: both, tabs & spaces are being used to indent variable names. Can we stick to one? > + > + /* > +

Re: XDP socket rings, and LKMM litmus tests

2021-03-03 Thread Paul E. McKenney
On Wed, Mar 03, 2021 at 06:39:14PM +0100, maranget wrote: > > > > On 3 Mar 2021, at 18:37, maranget wrote: > > > > I have made a PR to herd7 that performs the change. The commit message > > states the new definition. > > For those who are interested >

Re: [PATCH v4 09/11] media: hantro: IMX8M: add variant for G2/HEVC codec

2021-03-03 Thread Ezequiel Garcia
On Wed, 2021-03-03 at 12:39 +0100, Benjamin Gaignard wrote: > Add variant to IMX8M to enable G2/HEVC codec. > Define the capabilities for the hardware up to 3840x2160. > Retrieve the hardware version at init to distinguish G1 from G2. > > Signed-off-by: Benjamin Gaignard > --- > version 2: > -

Re: [PATCH v4 05/11] media: hantro: Add a field to distinguish the hardware versions

2021-03-03 Thread Ezequiel Garcia
On Wed, 2021-03-03 at 12:39 +0100, Benjamin Gaignard wrote: > Decoders hardware blocks could exist in multiple versions: add > a field to distinguish them at runtime. > G2 hardware block doesn't have postprocessor hantro_needs_postproc > function should always returns false in for this hardware. >

Re: [PATCH 2/3] soundwire: qcom: add auto enumeration support

2021-03-03 Thread Pierre-Louis Bossart
On 3/3/21 3:38 AM, Srinivas Kandagatla wrote: On 02/03/2021 14:34, Pierre-Louis Bossart wrote: +    if (!val1 && !val2) +    break; + +    addr = buf2[1] | (buf2[0] << 8) | (buf1[3] << 16) | +    ((u64)buf1[2] << 24) | ((u64)buf1[1] << 32) | +   

Re: [PATCH v8 3/9] media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder

2021-03-03 Thread kernel test robot
Hi Mirela, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on shawnguo/for-next robh/for-next linus/master v5.12-rc1 next-20210303] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH] sched: Optimize __calc_delta.

2021-03-03 Thread Josh Don
> you made fact_hi u32, why can't we unconditionally use fls() ? Thanks for clarifying with ILP32; will remove this macro and simplify to just fls().

Re: [PATCH] MIPS: kernel: Reserve exception base early to prevent corruption

2021-03-03 Thread Florian Fainelli
On 3/3/21 1:14 PM, Serge Semin wrote: > Hello Thomas, > Thanks for the patch. My comments are below. > > On Wed, Mar 03, 2021 at 07:57:13PM +0100, Thomas Bogendoerfer wrote: >> BMIPS is one of the few platforms that do change the exception base. >> After commit 2dcb39645441 ("memblock: do not

Re: [PATCH v2 1/5] soundwire: qcom: add support to missing transport params

2021-03-03 Thread Pierre-Louis Bossart
soundwire-controller@321 { reg = <0 0x321 0 0x2000>; compatible = "qcom,soundwire-v1.5.1"; interrupts = ; clocks = <>; clock-names = "iface"; qcom,clock-stop-mode0; qcom,din-ports = <0>; qcom,dout-ports = <5>; qcom,ports-sinterval-low =

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-03 Thread Eric W. Biederman
Sebastian Andrzej Siewior writes: > From: Thomas Gleixner > > Allow realtime tasks to cache one sigqueue in task struct. This avoids an > allocation which can increase the latency or fail. > Ideally the sigqueue is cached after first successful delivery and will be > available for next signal

Re: [GIT PULL] idmapped mounts for v5.12

2021-03-03 Thread Christian Brauner
On Wed, Mar 03, 2021 at 01:36:31PM -0600, Eric W. Biederman wrote: > Christian Brauner writes: > > > Hi Linus, Hi Eric, > > > This series comes with an extensive xfstests suite covering both ext4 and > > xfs > > https://git.kernel.org/brauner/xfstests-dev/h/idmapped_mounts > > It covers

Re: [PATCH v2] iwlwifi: don't call netif_napi_add() with rxq->lock held (was Re: Lockdep warning in iwl_pcie_rx_handle())

2021-03-03 Thread Sedat Dilek
On Wed, Mar 3, 2021 at 1:38 AM Kalle Valo wrote: > > "Coelho, Luciano" writes: > > > On Tue, 2021-03-02 at 11:34 +0100, Jiri Kosina wrote: > >> From: Jiri Kosina > >> > >> We can't call netif_napi_add() with rxq-lock held, as there is a potential > >> for deadlock as spotted by lockdep (see

[PATCH v2] remoteproc: sysfs: Use sysfs_emit instead of sprintf

2021-03-03 Thread Siddharth Gupta
From: Raghavendra Rao Ananta For security reasons sysfs_emit() is preferred over sprintf(). Hence, convert the remoteproc's sysfs show functions accordingly. Signed-off-by: Raghavendra Rao Ananta Signed-off-by: Siddharth Gupta --- drivers/remoteproc/remoteproc_sysfs.c | 4 ++-- 1 file

Re: [PATCH] ia64: fix ptrace(PTRACE_SYSCALL_INFO_EXIT) sign

2021-03-03 Thread Dmitry V. Levin
On Wed, Mar 03, 2021 at 03:30:19PM +0100, Oleg Nesterov wrote: > On 03/02, Sergei Trofimovich wrote: > > > > > --- a/arch/ia64/include/asm/syscall.h > > > +++ b/arch/ia64/include/asm/syscall.h > > > @@ -32,7 +32,7 @@ static inline void syscall_rollback(struct task_struct > > > *task, > > >

Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-03-03 Thread Josh Poimboeuf
On Wed, Mar 03, 2021 at 12:56:52PM -0800, Linus Torvalds wrote: > On Wed, Mar 3, 2021 at 12:24 PM Josh Poimboeuf wrote: > > > > Your nack is for a different reason: GCC plugins are second-class > > citizens. Fair enough... > > MNo, I didn't NAK it. Quite the reverser. > > I am ABSOLUTELY

Re: [PATCH] MIPS: boot/compressed: Copy DTB to aligned address

2021-03-03 Thread Paul Cercueil
Hi Rob, Le mer. 3 mars 2021 à 14:37, Rob Herring a écrit : On Wed, Mar 3, 2021 at 1:33 PM Paul Cercueil wrote: Since 5.12-rc1, the Device Tree blob must now be properly aligned. I had checked the other built-in cases as microblaze broke too, but missed some of the many ways MIPS can have

collect2: error: ld returned 1 exit status

2021-03-03 Thread kernel test robot
-20210303 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d71fa5c9763c24dd997a2fa4feb7a13a95bab42c git remote add linus https://git.kernel.org/pub/scm

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-03 Thread Oleg Nesterov
On 03/03, Sebastian Andrzej Siewior wrote: > > +static struct sigqueue *sigqueue_from_cache(struct task_struct *t) > +{ > + struct sigqueue *q = t->sigqueue_cache; > + > + if (q && cmpxchg(>sigqueue_cache, q, NULL) == q) > + return q; > + return NULL; > +} > + > +static

[PATCH v1 net-next 1/5] net: stmmac: introduce DMA interrupt status masking per traffic direction

2021-03-03 Thread Voon Weifeng
From: Ong Boon Leong In preparation to make stmmac support multi-vector MSI, we introduce the interrupt status masking according to RX, TX or RXTX. Default to use RXTX inside stmmac_dma_interrupt(), so there is no run-time logic difference now. Signed-off-by: Ong Boon Leong Signed-off-by: Voon

Re: KMSAN: kernel-infoleak in compat_drm_wait_vblank

2021-03-03 Thread Michel Dänzer
On 2021-02-22 10:15 a.m., syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:29ad81a1 arch/x86: add missing include to sparsemem.h git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=111e6312d0 kernel

Re: [RFC PATCH] fuse: Clear SGID bit when setting mode in setacl

2021-03-03 Thread Miklos Szeredi
On Tue, Mar 2, 2021 at 5:26 PM Vivek Goyal wrote: > > I still feel that it should probably be fixed in virtiofsd, given fuse > > client > > is expecting file server to take care of any change of mode (file > > permission bits). > > Havid said that, there is one disadvantage of relying on server

Re: [PATCH v3 01/14] gpio: regmap: set gpio_chip of_node

2021-03-03 Thread Linus Walleij
On Wed, Mar 3, 2021 at 3:23 PM Álvaro Fernández Rojas wrote: > This is needed for properly registering gpio regmap as a child of a regmap > pin controller. > > Signed-off-by: Álvaro Fernández Rojas > --- > v3: introduce patch needed for properly parsing gpio-ranges. Oops a little bug. I

Re: [PATCH v3 01/14] gpio: regmap: set gpio_chip of_node

2021-03-03 Thread Michael Walle
Am 2021-03-03 16:27, schrieb Linus Walleij: On Wed, Mar 3, 2021 at 3:23 PM Álvaro Fernández Rojas wrote: This is needed for properly registering gpio regmap as a child of a regmap pin controller. Signed-off-by: Álvaro Fernández Rojas --- v3: introduce patch needed for properly parsing

Re: [PATCH] usb: dwc3: make USB_DWC3_EXYNOS independent

2021-03-03 Thread Krzysztof Kozlowski
On 03/03/2021 15:05, Greg Kroah-Hartman wrote: On Wed, Mar 03, 2021 at 11:38:39AM +0100, Krzysztof Kozlowski wrote: This is so far component of a SoC, so it cannot be re-used outside of SoC. Unless it appears in a new SoC (just like recent re-use of Samsung serial driver for Apple M1). Because

Re: [PATCH v5 3/3] vsprintf: dump full information of page flags in pGp

2021-03-03 Thread Petr Mladek
On Mon 2021-02-22 13:39:56, Matthew Wilcox wrote: > On Mon, Feb 22, 2021 at 01:38:17PM +0100, Petr Mladek wrote: > > Another question where to push this change. It is pity the we > > finalized it in the middle of the merge window. It has to spend > > at least few days in linux-next. > > > > I

Re: [PATCH v9] perf stat: Fix wrong skipping for per-die aggregation

2021-03-03 Thread Arnaldo Carvalho de Melo
Em Sun, Jan 31, 2021 at 11:27:08PM +0100, Jiri Olsa escreveu: > On Thu, Jan 28, 2021 at 09:34:17AM +0800, Jin Yao wrote: > > Uncore becomes die-scope on Xeon Cascade Lake-AP and perf has supported > > --per-die aggregation yet. > > > > One issue is found in check_per_pkg() for uncore events

Re: [PATCH] usb: dwc3: make USB_DWC3_EXYNOS independent

2021-03-03 Thread Krzysztof Kozlowski
On 03/03/2021 16:09, Greg Kroah-Hartman wrote: On Wed, Mar 03, 2021 at 06:56:38AM -0800, Guenter Roeck wrote: On 3/3/21 6:05 AM, Greg Kroah-Hartman wrote: [ ... ] Anyway, that's the convention or consensus so far for entire SoC. If we want to change it - sure, but let's make it for everyone,

RE: [PATCH] mm,hwpoison: return -EBUSY when page already poisoned

2021-03-03 Thread Luck, Tony
> For error address with sigbus, i think this is not an issue resulted by the > patch i post, before my patch, the issue is already there. > I don't find a realizable way to get the correct address for same reason --- > we don't know whether the page mapping is there or not when > we got to

[PATCH v2 RESEND 2/2] ARM: dts: Add board-specific compatible string to npcm750-evb devicetree

2021-03-03 Thread Jonathan Neuschäfer
According to the revised binding, the devicetree needs a board-specific compatible string. Signed-off-by: Jonathan Neuschäfer --- v2: - no changes --- arch/arm/boot/dts/nuvoton-npcm750-evb.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: exec error: BUG: Bad rss-counter

2021-03-03 Thread Eric W. Biederman
Ilya Lipnitskiy writes: > On Tue, Mar 2, 2021 at 11:37 AM Eric W. Biederman > wrote: >> >> Ilya Lipnitskiy writes: >> >> > On Mon, Mar 1, 2021 at 12:43 PM Eric W. Biederman >> > wrote: >> >> >> >> Ilya Lipnitskiy writes: >> >> >> >> > Eric, All, >> >> > >> >> > The following error appears

Re: [PATCH v2 1/1] Bluetooth: Remove unneeded commands for suspend

2021-03-03 Thread Marcel Holtmann
Hi Abhishek, > During suspend, there are a few scan enable and set event filter > commands that don't need to be sent unless there are actual BR/EDR > devices capable of waking the system. Check the HCI_PSCAN bit before > writing scan enable and use a new dev flag, HCI_EVENT_FILTER_CONFIGURED >

Re: [PATCH 04/11] perf test: Fix cpu and thread map leaks in sw_clock_freq test

2021-03-03 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 02, 2021 at 02:03:05PM +0100, Jiri Olsa escreveu: > On Tue, Mar 02, 2021 at 10:50:15AM +0900, Namhyung Kim wrote: > > SNIP > > > > > err = -ENOMEM; > > > > pr_debug("Not enough memory to create thread/cpu maps\n"); > > > > - goto out_free_maps;

Re: [PATCH] clocksource: don't run watchdog forever

2021-03-03 Thread Thomas Gleixner
On Tue, Mar 02 2021 at 20:06, Feng Tang wrote: > On Tue, Mar 02, 2021 at 10:16:37AM +0100, Peter Zijlstra wrote: >> On Tue, Mar 02, 2021 at 10:54:24AM +0800, Feng Tang wrote: >> > clocksource watchdog runs every 500ms, which creates some OS noise. >> > As the clocksource wreckage (especially for

Re: [PATCH v2 1/2] libperf: Add perf_evlist__reset_id_hash()

2021-03-03 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 25, 2021 at 05:12:37PM +0100, Jiri Olsa escreveu: > On Thu, Feb 25, 2021 at 12:51:47PM +0900, Namhyung Kim wrote: > > Add the perf_evlist__reset_id_hash() function as an internal function > > so that it can be called by perf to reset the hash table. This is > > necessary for perf stat

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