[PATCH 6/7] um: add PCI over virtio emulation driver

2021-02-23 Thread Johannes Berg
From: Johannes Berg To support testing of PCI/PCIe drivers in UML, add a PCI bus support driver. This driver uses virtio, which in UML is really just vhost-user, to talk to devices, and adds the devices to the virtual PCI bus in the system. Since virtio already allows DMA/bus mastering this

Re: [PATCH] arm64/mm: Fixed some coding style issues

2021-02-23 Thread Will Deacon
On Mon, 22 Feb 2021 09:43:51 +0800, Zhiyuan Dai wrote: > This patch move the pointer location to fix coding style issues, > improve code reading. Applied to arm64 (for-next/fixes), thanks! [1/1] arm64/mm: Fixed some coding style issues https://git.kernel.org/arm64/c/2e8acca1911b Cheers,

Re: [PATCH 1/2] arm64: uprobe: Return EOPNOTSUPP for AARCH32 instruction probing

2021-02-23 Thread Will Deacon
On Tue, 23 Feb 2021 16:25:34 +0800, He Zhe wrote: > As stated in linux/errno.h, ENOTSUPP should never be seen by user programs. > When we set up uprobe with 32-bit perf and arm64 kernel, we would see the > following vague error without useful hint. > > The sys_perf_event_open() syscall returned

Re: [PATCH v8] vfs: fix copy_file_range regression in cross-fs copies

2021-02-23 Thread Amir Goldstein
On Tue, Feb 23, 2021 at 12:31 PM Luis Henriques wrote: > > On Mon, Feb 22, 2021 at 08:25:27AM -0800, dai@oracle.com wrote: > > > > On 2/22/21 2:24 AM, Luis Henriques wrote: > > > A regression has been reported by Nicolas Boichat, found while using the > > > copy_file_range syscall to copy a

Re: [External] Re: [PATCH v16 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-23 Thread Oscar Salvador
On Tue, Feb 23, 2021 at 11:50:05AM +0100, Oscar Salvador wrote: > > CPU0: CPU1: > > set_compound_page_dtor(HUGETLB_PAGE_DTOR); > > memory_failure_hugetlb > > get_hwpoison_page > > __get_hwpoison_page > > get_page_unless_zero > >

[GIT PULL] Modules updates for v5.12

2021-02-23 Thread Jessica Yu
Hi Linus, Please pull below to receive modules updates for the v5.12 merge window. A summary can be found in the signed tag. Thank you, Jessica --- The following changes since commit 19c329f6808995b142b3966301f217c831e7cf31: Linux 5.11-rc4 (2021-01-17 16:37:05 -0800) are available in the

Re: Sv: [PATCH] hrtimer: Interrupt storm on clock_settime

2021-02-23 Thread Anna-Maria Behnsen
Hi Micke, On Fri, 12 Feb 2021, Beckius, Mikael wrote: > Thanks for the update and sorry for the late reply. After long-term > testing of the patch, storm detection improved, it turns out that a > similar problem can occur if hrtimer_interrupt runs during > clock_settime. In this case it seems

Re: [PATCH 2/3] drm/nouveau/kms/nv50-: Report max cursor size to userspace

2021-02-23 Thread Alex Riesen
Ilia Mirkin, Tue, Feb 23, 2021 16:46:52 +0100: > On Tue, Feb 23, 2021 at 10:36 AM Alex Riesen > wrote: > > Ilia Mirkin, Tue, Feb 23, 2021 15:56:21 +0100: > > > On Tue, Feb 23, 2021 at 9:26 AM Alex Riesen > > > wrote: > > > > > > > > This change broke X cursor in my setup, and reverting the

Re: UBSAN: shift-out-of-bounds in load_balance

2021-02-23 Thread Valentin Schneider
On 23/02/21 14:45, Vincent Guittot wrote: > On Tue, 23 Feb 2021 at 13:03, Valentin Schneider > wrote: >> >> >> +Vincent >> >> On 22/02/21 09:12, syzbot wrote: >> > syzbot has found a reproducer for the following issue on: >> > >> > HEAD commit:31caf8b2 Merge branch 'linus' of >> >

[PATCH v4 2/2] drm/bridge: Introduce LT8912 DSI to HDMI bridge

2021-02-23 Thread Adrien Grassein
Lontium Lt8912 is a DSI to HDMI bridge. Signed-off-by: Adrien Grassein --- MAINTAINERS | 1 + drivers/gpu/drm/bridge/Kconfig | 14 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/lontium-lt8912.c | 764 4

Re: [PATCH 2/3] dt-bindings: mtd: Add a property to declare secure regions in Qcom NANDc

2021-02-23 Thread Miquel Raynal
Hi Manivannan, Manivannan Sadhasivam wrote on Tue, 23 Feb 2021 23:15:46 +0530: > Hi Miquel, > > On Tue, Feb 23, 2021 at 05:49:22PM +0100, Miquel Raynal wrote: > > Hi Manivannan, > > > > Manivannan Sadhasivam wrote on Mon, > > 22 Feb 2021 17:32:58 +0530: > > > > > On a typical end product,

BUG: soft lockup in ieee80211_tasklet_handler

2021-02-23 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:3b9cdafb Merge tag 'pinctrl-v5.12-1' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=153024bcd0 kernel config: https://syzkaller.appspot.com/x/.config?x=22008533485b2c35

Re: [PATCH v3 1/1] kernel/crash_core: Add crashkernel=auto for vmcore creation

2021-02-23 Thread Saeed Mirzamohammadi
> On Feb 23, 2021, at 5:56 AM, Baoquan He wrote: > > On 02/23/21 at 08:01pm, Kairui Song wrote: >> On Thu, Feb 18, 2021 at 10:03 AM Baoquan He wrote: >>> >>> On 02/11/21 at 10:08am, Saeed Mirzamohammadi wrote: > ... diff --git a/arch/Kconfig b/arch/Kconfig index

[PATCH v4 0/2] Add support of Lontium lt8912 MIPI to HDMI bridge

2021-02-23 Thread Adrien Grassein
Hi, this patch set adds the support of the Lontium lt8912 MIPI to HDMI bridge in the kernel. It's only support the video part, not the audio part yet since I don't have the datasheet of this component. I get the current i2c configuration from Digi and Boundary drivers. Developed using the

[PATCH v4 1/2] dt-bindings: display: bridge: Add documentation for LT8912

2021-02-23 Thread Adrien Grassein
Lontium LT8912 is a DSI to HDMI bridge. Signed-off-by: Adrien Grassein Reviewed-by: Rob Herring --- .../display/bridge/lontium,lt8912.yaml| 102 ++ MAINTAINERS | 5 + 2 files changed, 107 insertions(+) create mode 100644

Re: [PATCH v8] vfs: fix copy_file_range regression in cross-fs copies

2021-02-23 Thread Luis Henriques
On Tue, Feb 23, 2021 at 08:57:38AM -0800, dai@oracle.com wrote: > > On 2/23/21 8:47 AM, Amir Goldstein wrote: > > On Tue, Feb 23, 2021 at 6:02 PM wrote: > > > > > > On 2/23/21 7:29 AM, dai@oracle.com wrote: > > > > On 2/23/21 2:32 AM, Luis Henriques wrote: > > > > > On Mon, Feb 22, 2021

Re: [PATCH] mm, kasan: don't poison boot memory

2021-02-23 Thread George Kennedy
On 2/23/2021 10:47 AM, Mike Rapoport wrote: Hi George, On Tue, Feb 23, 2021 at 09:35:32AM -0500, George Kennedy wrote: On 2/23/2021 5:33 AM, Mike Rapoport wrote: (re-added CC) On Mon, Feb 22, 2021 at 08:24:59PM -0500, George Kennedy wrote: On 2/22/2021 4:55 PM, Mike Rapoport wrote: On

Re: [PATCH v7 4/6] userfaultfd: add UFFDIO_CONTINUE ioctl

2021-02-23 Thread Axel Rasmussen
On Tue, Feb 23, 2021 at 7:38 AM Peter Xu wrote: > > On Thu, Feb 18, 2021 at 04:48:22PM -0800, Axel Rasmussen wrote: > > @@ -4645,8 +4646,18 @@ int hugetlb_mcopy_atomic_pte(struct mm_struct > > *dst_mm, > > spinlock_t *ptl; > > int ret; > > struct page *page; > > + int

Re: [RFC] linux-next panic in hugepage_subpool_put_pages()

2021-02-23 Thread Mike Kravetz
On 2/23/21 6:57 AM, Gerald Schaefer wrote: > Hi, > > LTP triggered a panic on s390 in hugepage_subpool_put_pages() with > linux-next 5.12.0-20210222, see below. > > It crashes on the spin_lock(>lock) at the beginning, because the > passed-in *spool points to 004e, which is not

[PATCH 2/3] x86: Drop generated syscall headers from 'targets'

2021-02-23 Thread Rob Herring
Including the generated syscall headers in 'targets' is wrong because they are not built in $(obj)/ and the Makefile does its own path prefix and build rules. Cc: Andy Lutomirski Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: x...@kernel.org Cc: "H. Peter Anvin" Cc: Masahiro

Re: [PATCH v3 3/8] securtiy/brute: Detect a brute force attack

2021-02-23 Thread John Wood
Hi, On Sun, Feb 21, 2021 at 06:25:51PM -0800, Randy Dunlap wrote: > Hi-- > > On 2/21/21 7:49 AM, John Wood wrote: > > > > +/** > > + * print_fork_attack_running() - Warn about a fork brute force attack. > > + */ > > +static inline void print_fork_attack_running(void) > > +{ > > + pr_warn("Fork

[PATCH v2 1/3] entry: Check that syscall entries and syscall exits match

2021-02-23 Thread Andy Lutomirski
If arch code calls the wrong kernel entry helpers, syscall entries and exits can get out of sync. Add a new field to task_struct to track the syscall state and validate that it transitions correctly. Signed-off-by: Andy Lutomirski --- include/linux/entry-common.h | 11 +++

[PATCH v2 3/3] selftests/x86: Add a missing .note.GNU-stack section to thunks_32.S

2021-02-23 Thread Andy Lutomirski
test_syscall_vdso_32 ended up with an executable stacks because the asm was missing the annotation that says that it is modern and doesn't need an executable stack. Add the annotation. This was missed in commit aeaaf005da1d ("selftests/x86: Add missing .note.GNU-stack sections"). Signed-off-by:

[PATCH 1/3] kbuild: Make old-atomics and missing-syscalls phony targets

2021-02-23 Thread Rob Herring
The old-atomics and missing-syscalls targets are not files, so they should be marked as PHONY. Cc: Masahiro Yamada Cc: Michal Marek Signed-off-by: Rob Herring --- Kbuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kbuild b/Kbuild index fa441b98c9f6..032157c3ffd2 100644 --- a/Kbuild

[PATCH v2 2/3] x86/entry: Fix entry/exit mismatch on failed fast 32-bit syscalls

2021-02-23 Thread Andy Lutomirski
On a 32-bit fast syscall that fails to read its arguments from user memory, the kernel currently does syscall exit work but not syscall entry work. This confuses audit and ptrace. For example: $ ./tools/testing/selftests/x86/syscall_arg_fault_32 ... strace: pid 264258: entering,

[PATCH v2 0/3] x86/entry: A compat syscall bugfix and some test stuff

2021-02-23 Thread Andy Lutomirski
The compat syscall argument fixup error path is wrong. Fix it. This also adds some sanity checks to the kernel that catch the bug when running selftests. Changes from v1: - The fix is actually correct this time, I hope Andy Lutomirski (3): entry: Check that syscall entries and syscall exits

[PATCH 3/3] kbuild: Add a build check for missing gitignore entries

2021-02-23 Thread Rob Herring
Any non-phony targets need to be in gitignore. The normal way to check this is doing an in-tree build and running git-status which is easy to miss. Git provides an easy way to check whether a file is ignored with git-check-ignore. Let's add a build time check using it. If the build is not in a git

Re: [RFC 0/2] cgroup: New misc cgroup controller

2021-02-23 Thread Michal Koutný
Hello. On Thu, Feb 18, 2021 at 11:55:47AM -0800, Vipin Sharma wrote: > This patch is creating a new misc cgroup controller for allocation and > tracking of resources which are not abstract like other cgroup > controllers. Please don't refer to this as "allocation" anywhere, that has a specific

Re: [RFC 1/2] cgroup: sev: Add misc cgroup controller

2021-02-23 Thread Michal Koutný
On Thu, Feb 18, 2021 at 11:55:48AM -0800, Vipin Sharma wrote: > --- a/arch/x86/kvm/svm/sev.c > +++ b/arch/x86/kvm/svm/sev.c > [...] > +#ifndef CONFIG_KVM_AMD_SEV > +/* > + * When this config is not defined, SEV feature is not supported and APIs in > + * this file are not used but this file still

Re: [PATCH v2 0/3] vfio/type1: Batch page pinning

2021-02-23 Thread Alex Williamson
On Fri, 19 Feb 2021 11:13:02 -0500 Daniel Jordan wrote: > v2: > - Fixed missing error unwind in patch 3 (Alex). After more thought, >the ENODEV case is fine, so it stayed the same. > > - Rebased on linux-vfio.git/next (no conflicts). > > --- > > The VFIO type1 driver is calling

Re: [GIT PULL] Modules updates for v5.12

2021-02-23 Thread Linus Torvalds
On Tue, Feb 23, 2021 at 7:42 AM Jessica Yu wrote: > > Please pull below to receive modules updates for the v5.12 merge window. "struct symsearch is only used inside of module.h, so move the definition out of module.h" Whaa? The first module.h should be module.c. Oh well. Pulled.

[PATCHv1 2/4] ARM: dts: imx: ba16: improve PHY information

2021-02-23 Thread Sebastian Reichel
Add PHY voltage supply information fixing the following kernel message: 2188000.ethernet supply phy not found, using dummy regulator Also add PHY clock information to avoid depending on the bootloader programming correct values. The bootloader also sets some reserved registers in the PHY as

[PATCHv1 3/4] ARM: dts: imx: bx50v3: i2c GPIOs are open drain

2021-02-23 Thread Sebastian Reichel
Explicitly mark I2C GPIOs as open drain to fix the following kernel message being printed: enforced open drain please flag it properly in DT/ACPI DSDT/board file Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/imx6q-bx50v3.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6

[PATCHv1 4/4] ARM: dts: imx: bx50v3: Define GPIO line names

2021-02-23 Thread Sebastian Reichel
From: Ian Ray Define GPIO line names for b450v3, b650v3, and b850v3. Signed-off-by: Ian Ray Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/imx6q-b450v3.dts | 5 + arch/arm/boot/dts/imx6q-b650v3.dts | 5 + arch/arm/boot/dts/imx6q-b850v3.dts | 5 + 3 files changed, 15

[PATCHv1 0/4] Bx50v3 DT improvements

2021-02-23 Thread Sebastian Reichel
Hi, These are a bunch of small unrelated improvements for the GE Bx50v3 device tree (and BA16 system on module, which is currently only used by Bx50v3). Thanks for reviewing/merging them, -- Sebastian Ian Ray (1): ARM: dts: imx: bx50v3: Define GPIO line names Sebastian Reichel (3): ARM:

[PATCHv1 1/4] ARM: dts: imx: ba16: add USB OTG VBUS enable GPIO

2021-02-23 Thread Sebastian Reichel
Add VBUS regulator GPIO information, so that USB OTG port can also be used in host mode. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/imx6q-ba16.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-ba16.dtsi b/arch/arm/boot/dts/imx6q-ba16.dtsi

Re: [GIT PULL] Modules updates for v5.12

2021-02-23 Thread Linus Torvalds
On Tue, Feb 23, 2021 at 10:26 AM Linus Torvalds wrote: > > On Tue, Feb 23, 2021 at 7:42 AM Jessica Yu wrote: > > > > Please pull below to receive modules updates for the v5.12 merge window. > > Pulled. Actually, I take that back. I think there is something horribly wrong in my tree, and my

Re: [PATCH] mm: memcontrol: fix slub memory accounting

2021-02-23 Thread Michal Koutný
On Tue, Feb 23, 2021 at 05:24:23PM +0800, Muchun Song wrote: > mm/slab_common.c | 4 ++-- > mm/slub.c| 8 > 2 files changed, 6 insertions(+), 6 deletions(-) Reviewed-by: Michal Koutný signature.asc Description: Digital signature

5.?? regression: strace testsuite OOpses kernel on ia64

2021-02-23 Thread Sergei Trofimovich
The crash seems to be related to sock_filter-v test from strace: https://github.com/strace/strace/blob/master/tests/seccomp-filter-v.c Here is an OOps: [ 818.089904] BUG: Bad page map in process sock_filter-v pte:0001 pmd:118580001 [ 818.089904] page:e6a429c8 refcount:1

[PATCH][next] drm/i915/hdcp: Fix null pointer dereference of connector->encoder

2021-02-23 Thread Colin King
From: Colin Ian King The recent commit 6c63e6e14da7 ("drm/i915/hdcp: No HDCP when encoder is't initialized") added a null pointer check on connector->encoder hence implying that it could potentially be null. This means that the initialization of dig_port via the call intel_attached_dig_port may

Re: [PATCH] vdpa/mlx5: set_features should allow reset to zero

2021-02-23 Thread Si-Wei Liu
On 2/23/2021 5:26 AM, Michael S. Tsirkin wrote: On Tue, Feb 23, 2021 at 10:03:57AM +0800, Jason Wang wrote: On 2021/2/23 9:12 上午, Si-Wei Liu wrote: On 2/21/2021 11:34 PM, Michael S. Tsirkin wrote: On Mon, Feb 22, 2021 at 12:14:17PM +0800, Jason Wang wrote: On 2021/2/19 7:54 下午, Si-Wei

[GIT PULL] GFS2 changes for 5.12

2021-02-23 Thread Andreas Gruenbacher
Hi Linus, please consider pulling the following gfs2 changes for 5.12. My apologies for the late request; we ended up getting stuck with two broken patches that have now both been removed. Thanks a lot, Andreas The following changes since commit 19c329f6808995b142b3966301f217c831e7cf31:

Re: [GIT pull] objtool/core for 5.12

2021-02-23 Thread Thomas Gleixner
On Tue, Feb 23 2021 at 15:02, Thomas Gleixner wrote: > Linus, > > please pull the latest objtool/core branch from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > objtool-core-2021-02-23 > > up to: aafeb14e9da2: objtool: Support stack-swizzle > > objtool updates: > > - Make

Re: [PATCH] mm: memcontrol: fix slub memory accounting

2021-02-23 Thread Shakeel Butt
On Tue, Feb 23, 2021 at 1:25 AM Muchun Song wrote: > > SLUB currently account kmalloc() and kmalloc_node() allocations larger > than order-1 page per-node. But it forget to update the per-memcg > vmstats. So it can lead to inaccurate statistics of "slab_unreclaimable" > which is from memory.stat.

Re: [PATCH V4 1/3] virtio: don't prompt CONFIG_VIRTIO_PCI_MODERN

2021-02-23 Thread Guenter Roeck
On 2/22/21 10:19 PM, Jason Wang wrote: > We used to prompt CONFIG_VIRTIO_PCI_MODERN to user which may bring a > lot of confusion. E.g it may break various default configs which want > virtio devices. > > So this patch fixes this by hiding the prompot and documenting the > dependency. While at it,

Re: [PATCH v7 1/6] userfaultfd: add minor fault registration mode

2021-02-23 Thread Peter Xu
On Thu, Feb 18, 2021 at 04:48:19PM -0800, Axel Rasmussen wrote: [...] > @@ -1290,14 +1299,20 @@ static int userfaultfd_register(struct > userfaultfd_ctx *ctx, > ret = -EINVAL; > if (!uffdio_register.mode) > goto out; > - if (uffdio_register.mode &

Re: [PATCH 1/7] um: allow disabling NO_IOMEM

2021-02-23 Thread Johannes Berg
Hi, > Can't you just use the asm-generic versions instead? Hmm, yes, for fb.h and vga.h that should work, since they should never be used. For vga.h it would be wrong since it assumes the VGA memory is mapped into the CPU memory, but since it should never run it would still address the

Re: [PATCH 2/3] drm/nouveau/kms/nv50-: Report max cursor size to userspace

2021-02-23 Thread Ilia Mirkin
On Tue, Feb 23, 2021 at 10:36 AM Alex Riesen wrote: > > Ilia Mirkin, Tue, Feb 23, 2021 15:56:21 +0100: > > On Tue, Feb 23, 2021 at 9:26 AM Alex Riesen > > wrote: > > > Lyude Paul, Tue, Jan 19, 2021 02:54:13 +0100: > > > > diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c > > > >

Re: [PATCH 0/5] block: add a sequence number to disks

2021-02-23 Thread Matteo Croce
On Sat, Feb 6, 2021 at 1:09 AM Matteo Croce wrote: > > From: Matteo Croce > > With this series a monotonically increasing number is added to disks, > precisely in the genhd struct, and it's exported in sysfs and uevent. > > This helps the userspace correlate events for devices that reuse the >

Re: [PATCH] xen: Replace lkml.org links with lore

2021-02-23 Thread Boris Ostrovsky
On 2/10/21 6:46 PM, Kees Cook wrote: > As started by commit 05a5f51ca566 ("Documentation: Replace lkml.org > links with lore"), replace lkml.org links with lore to better use a > single source that's more likely to stay available long-term. > > Signed-off-by: Kees Cook Reviewed-by: Boris

Re: [PATCH] mm, kasan: don't poison boot memory

2021-02-23 Thread Mike Rapoport
Hi George, On Tue, Feb 23, 2021 at 09:35:32AM -0500, George Kennedy wrote: > > On 2/23/2021 5:33 AM, Mike Rapoport wrote: > > (re-added CC) > > > > On Mon, Feb 22, 2021 at 08:24:59PM -0500, George Kennedy wrote: > > > On 2/22/2021 4:55 PM, Mike Rapoport wrote: > > > > On Mon, Feb 22, 2021 at

[PATCH 1/2] dt-bindings: usb: generic-ehci: document ignore-oc flag

2021-02-23 Thread Álvaro Fernández Rojas
Over-current reporting isn't supported on some platforms such as bcm63xx. These devices will incorrectly report over-current if this flag isn't properly activated. Signed-off-by: Álvaro Fernández Rojas --- Documentation/devicetree/bindings/usb/generic-ehci.yaml | 5 + 1 file changed, 5

[PATCH v2 3/4] KVM: arm64: Use BUG and BUG_ON in nVHE hyp

2021-02-23 Thread Andrew Scull
hyp_panic() reports the address of the panic by using ELR_EL2, but this isn't a useful address when hyp_panic() is called directly. Replace such direct calls with BUG() and BUG_ON() which use BRK to trigger and exception that then goes to hyp_panic() with the correct address. Also remove the

[PATCH v2 2/4] bug: Factor out a getter for a bug's file line

2021-02-23 Thread Andrew Scull
There is some non-trivial config-based logic to get the file name and line number associated with a bug. Factor this out to a getter that can be resused. Signed-off-by: Andrew Scull Cc: Peter Zijlstra Cc: "Steven Rostedt (VMware)" --- include/linux/bug.h | 3 +++ lib/bug.c | 27

[PATCH v2 4/4] KVM: arm64: Log source when panicking from nVHE hyp

2021-02-23 Thread Andrew Scull
To aid with debugging, add details of the source of a panic. This is done by having nVHE hyp exit to nvhe_hyp_panic_handler() rather than directly to panic(). The handler will then add the extra details for debugging before panicking the kernel. If the panic was due to a BUG(), look up the

[PATCH v2 0/4] Debug info for nVHE hyp panics

2021-02-23 Thread Andrew Scull
Panics from arm64's nVHE hyp mode are hard to interpret. This series adds some more debug info to help with diagnosis. Using BUG() in nVHE hyp gives a meaningful address to locate invariants that fail to hold. The host can also look up the bug to provide the file and line, if the debug configs

[PATCH v2 1/4] bug: Remove redundant condition check in report_bug

2021-02-23 Thread Andrew Scull
report_bug() will return early if it cannot find a bug corresponding to the provided address. The subsequent test for the bug will always be true so remove it. Signed-off-by: Andrew Scull Cc: Peter Zijlstra Cc: "Steven Rostedt (VMware)" --- lib/bug.c | 33 +++-- 1

Re: [PATCH 1/2] dt-bindings: usb: generic-ehci: document ignore-oc flag

2021-02-23 Thread Alan Stern
On Tue, Feb 23, 2021 at 05:04:57PM +0100, Álvaro Fernández Rojas wrote: > Hi Alan, > > > El 23 feb 2021, a las 16:54, Alan Stern > > escribió: > > > > On Tue, Feb 23, 2021 at 04:50:04PM +0100, Álvaro Fernández Rojas wrote: > >> Over-current reporting isn't supported on some platforms such as

[PATCH v2 1/2] dt-bindings: usb: generic-ehci: document ignore-oc flag

2021-02-23 Thread Álvaro Fernández Rojas
Over-current reporting isn't supported on some platforms such as bcm63xx. These devices will incorrectly report over-current if this flag isn't properly activated. Signed-off-by: Álvaro Fernández Rojas --- v2: change flag name and improve documentation as suggested by Alan Stern.

[PATCH v2 2/2] usb: host: ehci-platform: add ignore_oc DT support

2021-02-23 Thread Álvaro Fernández Rojas
Over-current reporting isn't supported on some platforms such as bcm63xx. These devices will incorrectly report over-current if this flag isn't properly activated. Signed-off-by: Álvaro Fernández Rojas --- v2: change flag name and improve documentation as suggested by Alan Stern.

[PATCH v2 0/2] usb: host: ehci-platform: add ignore-oc DT support

2021-02-23 Thread Álvaro Fernández Rojas
Over-current reporting isn't supported on some platforms such as bcm63xx. These devices will incorrectly report over-current if this flag isn't properly activated. Álvaro Fernández Rojas (2): dt-bindings: usb: generic-ehci: document ignore-oc flag usb: host: ehci-platform: add ignore_oc DT

Re: [PATCH v2 1/4] bug: Remove redundant condition check in report_bug

2021-02-23 Thread Steven Rostedt
On Tue, 23 Feb 2021 15:57:56 + Andrew Scull wrote: > report_bug() will return early if it cannot find a bug corresponding to > the provided address. The subsequent test for the bug will always be > true so remove it. Fixes: 1b4cfe3c0a30d ("lib/bug.c: exclude non-BUG/WARN exceptions from

Re: [PATCH 2/3] drm/nouveau/kms/nv50-: Report max cursor size to userspace

2021-02-23 Thread Alex Riesen
Alex Riesen, Tue, Feb 23, 2021 16:51:26 +0100: > Ilia Mirkin, Tue, Feb 23, 2021 16:46:52 +0100: > > I'd recommend using xf86-video-nouveau in any case, but some distros > > I would like try this out. Do you know how to force the xorg server to > choose this driver instead of modesetting? Found

Re: [PATCH v2 5/5] iio: dac: ad5686: Add PWM as a trigger source

2021-02-23 Thread Lars-Peter Clausen
On 2/18/21 3:05 PM, Jonathan Cameron wrote: On Wed, 17 Feb 2021 10:34:38 +0200 Alexandru Ardelean wrote: From: Mircea Caprioru A PWM signal will be used as a trigger source to have a deterministic sampling frequency since this family of DAC has no hardware interrupt source. This feature is

Re: [PATCH 2/2] KVM: vmx/pmu: Clear DEBUGCTLMSR_LBR bit on the debug breakpoint event

2021-02-23 Thread Sean Christopherson
On Tue, Feb 23, 2021, Like Xu wrote: > When the processor that support model-specific LBR generates a debug > breakpoint event, it automatically clears the LBR flag. This action > does not clear previously stored LBR stack MSRs. (Intel SDM 17.4.2) > > Signed-off-by: Like Xu > --- >

Re: [PATCH] blktrace: remove debugfs file dentries from struct blk_trace

2021-02-23 Thread Steven Rostedt
On Tue, 23 Feb 2021 09:54:22 -0700 Jens Axboe wrote: > On 2/22/21 4:02 PM, Steven Rostedt wrote: > > > > Jens, > > > > I guess this goes through your tree. > > > > I'm pinging you in case you did what I did, and confused this patch as one > > of Greg's stable patches (which I almost archived

Re: [PATCH] fs/ext4: fix integer overflow in s_log_groups_per_flex

2021-02-23 Thread Jan Kara
On Wed 03-02-21 19:43:51, Sabyrzhan Tasbolatov wrote: > syzbot found UBSAN: shift-out-of-bounds in ext4_mb_init [1], when > 1 << sbi->s_es->s_log_groups_per_flex is bigger than UINT_MAX, > where sbi->s_mb_prefetch is unsigned integer type. > > 32 is the maximum allowed power of

Re: [RFC 00/19] Rework support for i.MX8MQ interconnect with devfreq

2021-02-23 Thread Abel Vesa
On 21-02-22 17:03:13, Martin Kepplinger wrote: > On 19.02.21 16:59, Abel Vesa wrote: > > This has been on my queue for quite some time now. It is more of a > > proof-of-concept. > > > > This rework is done with the compatibility of future i.MX platforms in > > mind. For example, the i.MX8MP

Re: [PATCH 1/2] KVM: vmx/pmu: Fix dummy check if lbr_desc->event is created

2021-02-23 Thread Paolo Bonzini
On 23/02/21 18:15, Sean Christopherson wrote: If event creation fails in that flow, I would think KVM would do its best to create an event in future runs without waiting for additional actions from the guest. Also, this bug suggests there's a big gaping hole in the test coverage. AFAICT, event

Re: [PATCH 1/2] dt-bindings: rng: bcm2835: document reset support

2021-02-23 Thread Álvaro Fernández Rojas
Hello Scott, El 23/02/2021 a las 18:17, Scott Branden escribió: On 2021-02-23 8:36 a.m., Florian Fainelli wrote: On 2/23/2021 8:01 AM, Álvaro Fernández Rojas wrote: Some devices may need to perform a reset before using the RNG, such as the BCM6368. Signed-off-by: Álvaro Fernández Rojas

Re: [PATCH] usb: dwc3: qcom: Honor wakeup enabled/disabled state

2021-02-23 Thread Matthias Kaehlcke
ping I noticed this was never picked up, can it be landed or are there any concerns with this patch? On Tue, Sep 15, 2020 at 06:50:32PM -0500, Bjorn Andersson wrote: > On Tue 15 Sep 14:31 CDT 2020, Matthias Kaehlcke wrote: > > > The dwc3-qcom currently enables wakeup interrupts unconditionally

[PATCH v3 3/3] usb: host: ehci-platform: add spurious_oc DT support

2021-02-23 Thread Álvaro Fernández Rojas
Over-current reporting isn't supported on some platforms such as bcm63xx. These devices will incorrectly report over-current if this flag isn't properly activated. Signed-off-by: Álvaro Fernández Rojas --- v3: no changes. drivers/usb/host/ehci-platform.c | 3 +++ 1 file changed, 3

Re: [GIT PULL] Add EFI_CERT_X509_GUID support for dbx/mokx entries

2021-02-23 Thread David Howells
David Howells wrote: > This set of patches from Eric Snowberg that add support for > EFI_CERT_X509_GUID entries in the dbx and mokx UEFI tables (such entries > cause matching certificates to be rejected). These are currently ignored > and only the hash entries are made use of. > > These

Re: [PATCH v5 2/2] counter: add IRQ or GPIO based event counter

2021-02-23 Thread Oleksij Rempel
Hello William, Here is cooled down technical answer. Excuse me for over reacting. On Tue, Feb 23, 2021 at 11:06:56AM +0100, Oleksij Rempel wrote: > On Mon, Feb 22, 2021 at 10:43:00AM +0900, William Breathitt Gray wrote: > > On Mon, Feb 15, 2021 at 10:17:37AM +0100, Oleksij Rempel wrote: > > > >

Re: [PATCH] drm/amdgpu: Remove unnecessary conversion to bool

2021-02-23 Thread Alex Deucher
On Mon, Feb 22, 2021 at 10:44 PM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./drivers/gpu/drm/amd/amdgpu/athub_v2_1.c:79:40-45: WARNING: conversion > to bool not needed here. > > ./drivers/gpu/drm/amd/amdgpu/athub_v2_1.c:81:40-45: WARNING: conversion > to bool not needed

Re: [PATCH 2/3] dt-bindings: mtd: Add a property to declare secure regions in Qcom NANDc

2021-02-23 Thread Manivannan Sadhasivam
Hi Miquel, On Tue, Feb 23, 2021 at 05:49:22PM +0100, Miquel Raynal wrote: > Hi Manivannan, > > Manivannan Sadhasivam wrote on Mon, > 22 Feb 2021 17:32:58 +0530: > > > On a typical end product, a vendor may choose to secure some regions in > > the NAND memory which are supposed to stay intact

Re: [PATCH] drm/amdgpu/display: initialize the variable 'i'

2021-02-23 Thread Alex Deucher
On Mon, Feb 22, 2021 at 3:13 PM Souptick Joarder wrote: > > >> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:9804:38: > >> warning: variable 'i' is uninitialized when used here > >> [-Wuninitialized] >timing = >detailed_timings[i]; >

Re: [PATCH RFC 2/4] signal: Introduce TRAP_PERF si_code and si_perf to siginfo

2021-02-23 Thread Geert Uytterhoeven
On Tue, Feb 23, 2021 at 3:52 PM Marco Elver wrote: > Introduces the TRAP_PERF si_code, and associated siginfo_t field > si_perf. These will be used by the perf event subsystem to send signals > (if requested) to the task where an event occurred. > > Signed-off-by: Marco Elver >

[RFC PATCH v1 0/1] arm64: Unwinder enhancements for reliable stack trace

2021-02-23 Thread madvenka
From: "Madhavan T. Venkataraman" I have made an attempt to add some enhancements to the stack trace code so it is a few steps closer to what is required for livepatch. Unwinder changes Termination === Currently, the unwinder terminates when

[RFC PATCH v1 1/1] arm64: Unwinder enhancements for reliable stack trace

2021-02-23 Thread madvenka
From: "Madhavan T. Venkataraman" Unwinder changes Termination === Currently, the unwinder terminates when both the FP (frame pointer) and the PC (return address) of a frame are 0. But a frame could get corrupted and zeroed. There

Re: [PATCH RFC 3/4] perf/core: Add support for SIGTRAP on perf events

2021-02-23 Thread Dmitry Vyukov
On Tue, Feb 23, 2021 at 3:34 PM Marco Elver wrote: > > Adds bit perf_event_attr::sigtrap, which can be set to cause events to > send SIGTRAP (with si_code TRAP_PERF) to the task where the event > occurred. To distinguish perf events and allow user space to decode > si_perf (if set), the event

[PATCH 0/3] Build time gitignore checking

2021-02-23 Thread Rob Herring
Linus wasn't happy that I forgot a gitignore entry in my recent PR. Checking that requires doing in tree build (which is not my usual workflow) and checking git status afterwards. Given either one I'll easily forget again, I came up with a build time check which works for in tree and out of tree

Re: [PATCH 2/3] drm/nouveau/kms/nv50-: Report max cursor size to userspace

2021-02-23 Thread Ilia Mirkin
On Tue, Feb 23, 2021 at 11:23 AM Alex Riesen wrote: > > Alex Riesen, Tue, Feb 23, 2021 16:51:26 +0100: > > Ilia Mirkin, Tue, Feb 23, 2021 16:46:52 +0100: > > > I'd recommend using xf86-video-nouveau in any case, but some distros > > > > I would like try this out. Do you know how to force the xorg

[PATCH 4/7] ASoC: mchp-i2s-mcc: Add multi-channel support for I2S and LEFT_J formats

2021-02-23 Thread Codrin Ciubotariu
The latest I2S-MCC available in SAMA7G5 supports multi-channel for I2S and Left-Justified formats. For this, the new version uses 8 (4 * 2) input and output pins, with each pin being responsible for 2 channels. This sums up to a total of 8 channels for synchronous capture and playback.

[PATCH 5/7] dt-bindings: mchp,i2s-mcc: Add property to specify pin pair for TDM

2021-02-23 Thread Codrin Ciubotariu
SAMA7G5's I2S-MCC has 4 pairs of DIN/DOUT pins. Since TDM only uses a single pair of pins for synchronous capture and playback, the controller needs to be told which of the pair is connected. This can be mentioned using the new "microchip,tdm-data-pair" property. The property is optional, needed

[PATCH 7/7] ASoC: mchp-i2s-mcc: Add FIFOs support

2021-02-23 Thread Codrin Ciubotariu
I2S-MCC found on SAMA7G5 includes 2 FIFOs (capture and playback). When FIFOs are enabled, bits I2SMCC_ISRA.TXLRDYx and I2SMCC_ISRA.TXRRDYx must not be used. Bits I2SMCC_ISRB.TXFFRDY and I2SMCC_ISRB.RXFFRDY must be used instead. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/mchp-i2s-mcc.c

Re: [PATCH v3 3/8] securtiy/brute: Detect a brute force attack

2021-02-23 Thread John Wood
Hi, On Sun, Feb 21, 2021 at 06:47:16PM -0800, Randy Dunlap wrote: > Hi-- > > scripts/kernel-doc does not like these items to be marked > as being in kernel-doc notation. scripts/kernel-doc does not > recognize them as one of: struct, union, enum, typedef, so it > defaults to trying to interpret

[PATCH 0/7] Add I2S-MCC support for Microchip's SAMA7G5

2021-02-23 Thread Codrin Ciubotariu
SAMA7G5 includes an updated version of I2S-MCC, found previously on SAM9X60. This controller includes 8 data pins, 4 for playback and 4 for capture. For I2S and LEFT_J formats, these pins can be used to send/receive up to 8 audio channels. For DSP_A, with TDM, any pins pair (DIN/DOUT) from these 4

[PATCH 2/7] dt-bindings: mchp,i2s-mcc: Add SAMA7G5 to binding

2021-02-23 Thread Codrin Ciubotariu
SAMA7G5 includes an updated version of the I2S-MCC driver, that includes 3 more DIN/DOUT pin pairs for multi-channel. Signed-off-by: Codrin Ciubotariu --- Documentation/devicetree/bindings/sound/mchp,i2s-mcc.yaml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[PATCH 3/7] ASoC: mchp-i2s-mcc: Add compatible for SAMA7G5

2021-02-23 Thread Codrin Ciubotariu
Microchip's new SAMA7G5 includes an updated I2S-MCC compatible with the previous version found on SAM9X60. The new controller includes 8 (4 * 2) input and output data pins for up to 8 channels for I2S and Left-Justified formats. Signed-off-by: Codrin Ciubotariu --- sound/soc/atmel/Kconfig

[PATCH 1/7] ASoC: convert Microchip I2SMCC binding to yaml

2021-02-23 Thread Codrin Ciubotariu
This patch converts the Microchip I2SMCC bindings to DT schema format using json-schema. Signed-off-by: Codrin Ciubotariu --- .../bindings/sound/mchp,i2s-mcc.yaml | 86 +++ .../bindings/sound/mchp-i2s-mcc.txt | 43 -- 2 files changed, 86 insertions(+),

[PATCH 6/7] ASoC: mchp-i2s-mcc: Add support to select TDM pins

2021-02-23 Thread Codrin Ciubotariu
SAMA7G5's I2S-MCC has 4 pairs of DIN/DOUT pins. Since TDM only uses a single pair of pins for synchronous capture and playback, the controller needs to be told which of the pair is connected. This can be mentioned using the "microchip,tdm-data-pair" property from DT. The property is optional,

Re: [PATCH v3 3/8] securtiy/brute: Detect a brute force attack

2021-02-23 Thread John Wood
Hi, On Sun, Feb 21, 2021 at 06:30:10PM -0800, Randy Dunlap wrote: > Hi, > > one spello in 2 locations: > > On 2/21/21 7:49 AM, John Wood wrote: > [...] > > these statistics dissapear when the involved tasks finished. In this > >disappear > [...] > > + * statistics dissapear

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

2021-02-23 Thread Krzysztof Kozlowski
On Tue, 23 Feb 2021 at 11:45, Adrien Grassein wrote: > > > > > > > > I would assume this goes from PMIC, so check your schematics. There is > > > > little point in adding a fixed regulator which is non-controllable. > > > > > > No, the 1.8V is issued directly from the alimentation stage. > > > So

[PATCH v4 0/2] s390/kvm: fix MVPG when in VSIE

2021-02-23 Thread Claudio Imbrenda
The current handling of the MVPG instruction when executed in a nested guest is wrong, and can lead to the nested guest hanging. This patchset fixes the behaviour to be more architecturally correct, and fixes the hangs observed. v3->v4 * added PEI_ prefix to DAT_PROT and NOT_PTE macros * added

[PATCH v4 1/2] s390/kvm: extend kvm_s390_shadow_fault to return entry pointer

2021-02-23 Thread Claudio Imbrenda
Extend kvm_s390_shadow_fault to return the pointer to the valid leaf DAT table entry, or to the invalid entry. Also return some flags in the lower bits of the address: PEI_DAT_PROT: indicates that DAT protection applies because of the protection bit in the segment (or, if EDAT,

Re: [PATCH] x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page()

2021-02-23 Thread Dave Hansen
On 2/21/21 4:54 PM, Dave Hansen wrote: > Instead of having a for-each-section loop, I'd make it for-each-node -> > for-each-section. Something like: > > for (i = 0; i < num_possible_nodes(); i++) { > node = (numa_node_id() + i) % num_possible_nodes() > >

[PATCH v4 2/2] s390/kvm: VSIE: correctly handle MVPG when in VSIE

2021-02-23 Thread Claudio Imbrenda
Correctly handle the MVPG instruction when issued by a VSIE guest. Fixes: a3508fbe9dc6d ("KVM: s390: vsie: initial support for nested virtualization") Cc: sta...@vger.kernel.org Signed-off-by: Claudio Imbrenda Acked-by: Janosch Frank --- arch/s390/kvm/vsie.c | 93

[PATCH v4 05/10] arm64: dts: imx8mm-nitrogen-r2: add UARTs

2021-02-23 Thread Adrien Grassein
Add description and pin muxing for UARTs. Signed-off-by: Adrien Grassein Reviewed-by: Krzysztof Kozlowski --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 48 +++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

[PATCH v4 08/10] arm64: dts: imx8mm-nitrogen-r2: add FlexSPI

2021-02-23 Thread Adrien Grassein
Add FlexSPI description an pin muxing. Signed-off-by: Adrien Grassein Reviewed-by: Krzysztof Kozlowski --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

  1   2   3   4   5   6   7   8   9   10   >