Re: [PATCH v5 5/6] arm64: mte: Expose execution mode

2021-01-21 Thread Andrey Konovalov
On Thu, Jan 21, 2021 at 5:40 PM Vincenzo Frascino wrote: > > MTE enabled arm64 HW can be configured in synchronous or asynchronous > tagging mode of execution. > In synchronous mode, an exception is triggered if a tag check fault > occurs. > In asynchronous mode, if a tag check fault occurs, the

Re: restore splice and sendfile support on kernfs

2021-01-21 Thread Robert Karszniewicz
On 1/20/21 9:46 PM, Christoph Hellwig wrote: > Hi Greg and Tejun, > > this fixes a regression in Linux 5.10 that stopped sendfile and splice > from working on kernfs/sysfs files. > > Diffstt: > file.c | 65 > - > 1 file changed,

Re: [PATCH v5 6/6] kasan: Forbid kunit tests when async mode is enabled

2021-01-21 Thread Andrey Konovalov
On Thu, Jan 21, 2021 at 5:40 PM Vincenzo Frascino wrote: > > Architectures supported by KASAN_HW_TAGS can provide a sync or async > mode of execution. KASAN KUNIT tests can be executed only when sync > mode is enabled. > > Forbid the execution of the KASAN KUNIT tests when async mode is >

Re: [PATCH v5 3/6] kasan: Add report for async mode

2021-01-21 Thread Andrey Konovalov
On Thu, Jan 21, 2021 at 5:39 PM Vincenzo Frascino wrote: > > KASAN provides an asynchronous mode of execution. > > Add reporting functionality for this mode. > > Cc: Dmitry Vyukov > Cc: Andrey Ryabinin > Cc: Alexander Potapenko > Cc: Andrey Konovalov > Signed-off-by: Vincenzo Frascino > ---

Re: 5.11-rc4+git: Shortest NUMA path spans too many nodes

2021-01-21 Thread Meelis Roos
Could you paste the output of the below? $ cat /sys/devices/system/node/node*/distance 10 12 12 14 14 14 14 16 12 10 14 12 14 14 12 14 12 14 10 14 12 12 14 14 14 12 14 10 12 12 14 14 14 14 12 12 10 14 12 14 14 14 12 12 14 10 14 12 14 12 14 14 12 14 10 12 16 14 14 14 14 12 12 10

Re: [PATCH v2 1/2] arm64: Fix kernel address detection of __is_lm_address()

2021-01-21 Thread Vincenzo Frascino
On 1/21/21 4:02 PM, Vincenzo Frascino wrote: >> I think it'd be worth checking, if we're going to use this in common >> code. >> > Ok, I will run some tests and let you know. > I checked on x86_64 and ppc64 (they both have KASAN implementation): I added the following: printk("%s: %d\n",

Re: [PATCH v2 1/2] ASoC: Intel: Skylake: skl-topology: Fix OOPs ib skl_tplg_complete

2021-01-21 Thread Łukasz Majczak
Thanks Ricardo - I have checked it on Eve/Google Pixelbook Tested-by: Lukasz Majczak czw., 21 sty 2021 o 18:33 Rojewski, Cezary napisał(a): > > On 2021-01-21 6:16 PM, Ricardo Ribalda wrote: > > If dobj->control is not initialized we end up in an OOPs during > > skl_tplg_complete: > > > > [

Re: [RFC PATCH 7/7] irqchip/apple-aic: add SMP support to the Apple AIC driver.

2021-01-21 Thread Rob Herring
On Thu, Jan 21, 2021 at 10:43 AM Mohamed Mediouni wrote: > > On 21 Jan 2021, at 17:40, Rob Herring wrote: > > On Thu, Jan 21, 2021 at 6:52 AM Mohamed Mediouni > > wrote: > >>> On 21 Jan 2021, at 13:44, Arnd Bergmann wrote: > >>> On Wed, Jan 20, 2021 at 2:27 PM Mohamed Mediouni > >>> wrote:

Re: [PATCH 3/3] libnvdimm/ioctl: Switch to cdev_register_queued()

2021-01-21 Thread Dan Williams
On Thu, Jan 21, 2021 at 12:16 AM Greg KH wrote: > > On Wed, Jan 20, 2021 at 11:39:08AM -0800, Dan Williams wrote: > > The ioctl implementation in libnvdimm is a case study in what can be > > cleaned up when the cdev core handles synchronizing in-flight ioctls > > with device removal. Switch to

Re: [PATCH 2/2] ima: Free IMA measurement buffer after kexec syscall

2021-01-21 Thread Tyler Hicks
On 2021-01-21 09:30:03, Lakshmi Ramasubramanian wrote: > IMA allocates kernel virtual memory to carry forward the measurement > list, from the current kernel to the next kernel on kexec system call, > in ima_add_kexec_buffer() function. This buffer is not freed before > completing the kexec

RE: [PATCH v2 2/2] ASoC: Intel: Skylake: Zero snd_ctl_elem_value

2021-01-21 Thread Rojewski, Cezary
On 2021-01-21 6:16 PM, Ricardo Ribalda wrote: > Clear struct snd_ctl_elem_value before calling ->put() to avoid any data > leak. > > Signed-off-by: Ricardo Ribalda Reviewed-by: Cezary Rojewski Thanks, Czarek

Re: [PATCH net-next] net: core: devlink: add new trap action HARD_DROP

2021-01-21 Thread Jakub Kicinski
On Thu, 21 Jan 2021 14:21:52 +0200 Ido Schimmel wrote: > On Thu, Jan 21, 2021 at 01:29:37PM +0200, Oleksandr Mazur wrote: > > Add new trap action HARD_DROP, which can be used by the > > drivers to register traps, where it's impossible to get > > packet reported to the devlink subsystem by the

Re: [PATCH v5 2/6] kasan: Add KASAN mode kernel parameter

2021-01-21 Thread Andrey Konovalov
On Thu, Jan 21, 2021 at 5:39 PM Vincenzo Frascino wrote: > > Architectures supported by KASAN_HW_TAGS can provide a sync or async mode > of execution. On an MTE enabled arm64 hw for example this can be identified > with the synchronous or asynchronous tagging mode of execution. > In synchronous

Re: [PATCH RFC v1 00/15] iommu/virtio: Nested stage support with Arm

2021-01-21 Thread Vivek Kumar Gautam
Hi Eric, On 1/19/21 2:33 PM, Auger Eric wrote: Hi Vivek, On 1/15/21 1:13 PM, Vivek Gautam wrote: This patch-series aims at enabling Nested stage translation in guests using virtio-iommu as the paravirtualized iommu. The backend is supported with Arm SMMU-v3 that provides nested stage-1 and

Re: [PATCH] use x86 cpu park to speedup smp_init in kexec situation

2021-01-21 Thread David Woodhouse
On Thu, 2021-01-21 at 15:42 +, David Woodhouse wrote: > [2.289283] BUG: kernel NULL pointer dereference, address: > [2.289283] #PF: supervisor write access in kernel mode > [2.289283] #PF: error_code(0x0002) - not-present page > [2.289283] PGD 0 P4D 0 > [

Re: [PATCH 1/2] ima: Free IMA measurement buffer on error

2021-01-21 Thread Tyler Hicks
On 2021-01-21 09:30:02, Lakshmi Ramasubramanian wrote: > IMA allocates kernel virtual memory to carry forward the measurement > list, from the current kernel to the next kernel on kexec system call, > in ima_add_kexec_buffer() function. In error code paths this memory > is not freed resulting in

Re: Splicing to/from a tty

2021-01-21 Thread Robert Karszniewicz
On 1/20/21 5:44 AM, Linus Torvalds wrote: > On Tue, Jan 19, 2021 at 5:29 PM Oliver Giles wrote: >> >> Writing this from a kernel with those patches in; happily splice()ing >> to and from a pty. > > Ok, good. > > I have a couple of improvement patches on top of those, that I'm attaching > here.

RE: [PATCH v2 1/2] ASoC: Intel: Skylake: skl-topology: Fix OOPs ib skl_tplg_complete

2021-01-21 Thread Rojewski, Cezary
On 2021-01-21 6:16 PM, Ricardo Ribalda wrote: > If dobj->control is not initialized we end up in an OOPs during > skl_tplg_complete: > > [ 26.553358] BUG: kernel NULL pointer dereference, address: > 0078 > [ 26.561151] #PF: supervisor read access in kernel mode > [ 26.566897]

Re: [PATCH v2 2/3] KVM: nVMX: add kvm_nested_vmlaunch_resume tracepoint

2021-01-21 Thread Maxim Levitsky
On Thu, 2021-01-14 at 16:14 -0800, Sean Christopherson wrote: > On Thu, Jan 14, 2021, Maxim Levitsky wrote: > > This is very helpful for debugging nested VMX issues. > > > > Signed-off-by: Maxim Levitsky > > --- > > arch/x86/kvm/trace.h | 30 ++ > >

Re: [RFC PATCH v3 5/6] dt-bindings: of: Add restricted DMA pool

2021-01-21 Thread Robin Murphy
On 2021-01-21 15:48, Rob Herring wrote: On Wed, Jan 20, 2021 at 7:10 PM Robin Murphy wrote: On 2021-01-20 21:31, Rob Herring wrote: On Wed, Jan 20, 2021 at 11:30 AM Robin Murphy wrote: On 2021-01-20 16:53, Rob Herring wrote: On Wed, Jan 06, 2021 at 11:41:23AM +0800, Claire Chang wrote:

[PATCH] NFC: fix possible resource leak

2021-01-21 Thread Pan Bian
Put the device to avoid resource leak on path that the polling flag is invalid. Fixes: a831b9132065 ("NFC: Do not return EBUSY when stopping a poll that's already stopped") Signed-off-by: Pan Bian --- net/nfc/netlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/nfc/netlink.c

Re: restore splice and sendfile support on kernfs

2021-01-21 Thread Greg Kroah-Hartman
On Wed, Jan 20, 2021 at 09:46:28PM +0100, Christoph Hellwig wrote: > Hi Greg and Tejun, > > this fixes a regression in Linux 5.10 that stopped sendfile and splice > from working on kernfs/sysfs files. > > Diffstt: > file.c | 65 >

[PATCH 2/2] ima: Free IMA measurement buffer after kexec syscall

2021-01-21 Thread Lakshmi Ramasubramanian
IMA allocates kernel virtual memory to carry forward the measurement list, from the current kernel to the next kernel on kexec system call, in ima_add_kexec_buffer() function. This buffer is not freed before completing the kexec system call resulting in memory leak. Add ima_buffer field in

Re: [RFC 1/1] s390/pci: expose UID checking state in sysfs

2021-01-21 Thread Greg Kroah-Hartman
On Thu, Jan 21, 2021 at 06:04:52PM +0100, Niklas Schnelle wrote: > > > On 1/21/21 4:54 PM, Bjorn Helgaas wrote: > > [Greg may be able to help compare/contrast this s390 UID with udev > > persistent names] > > > > On Thu, Jan 21, 2021 at 04:31:55PM +0100, Niklas Schnelle wrote: > >> On 1/15/21

[PATCH 1/2] ima: Free IMA measurement buffer on error

2021-01-21 Thread Lakshmi Ramasubramanian
IMA allocates kernel virtual memory to carry forward the measurement list, from the current kernel to the next kernel on kexec system call, in ima_add_kexec_buffer() function. In error code paths this memory is not freed resulting in memory leak. Free the memory allocated for the IMA measurement

Re: [PATCH 02/13] module: add a module_loaded helper

2021-01-21 Thread Christoph Hellwig
On Thu, Jan 21, 2021 at 11:00:20AM +0100, Christophe Leroy wrote: > > +bool module_loaded(const char *name); > > Maybe module_is_loaded() would be a better name. Fine with me.

Re: [PATCH] MAINTAINERS: adjust to clang-version.sh removal

2021-01-21 Thread Masahiro Yamada
t; > changes in ./scripts/clang-version.sh; as the file is removed, track > > changes in ./scripts/cc-version.sh instead now. > > > > Signed-off-by: Lukas Bulwahn > > --- > > applies cleanly on next-20210121 > > > > Masahiro-san, please pick this quick

Re: [PATCH 3/7] block: respect blk_crypto_bio_sectors_alignment() in bounce.c

2021-01-21 Thread Christoph Hellwig
On Thu, Jan 14, 2021 at 03:47:19PM +, Satya Tangirala wrote: > Make __blk_queue_bounce respect blk_crypto_bio_sectors_alignment() > when calling bio_split(). bounce.c is legacy code that no new driver should use and which we need to phase out ASAP. It should be entirely exclusive vs use of a

[PATCH 0/2] VMX: few tracing improvements

2021-01-21 Thread Maxim Levitsky
Since the fix for the bug in nested migration on VMX is already merged by Paulo, those are the remaining patches in this series. I added a new patch to trace SVM nested entries from SMM and nested state load as well. Best regards, Maxim Levitsky Maxim Levitsky (2): KVM: nSVM: move

Re: [PATCH v5 2/2] pinctrl: qcom: Add SM8350 pinctrl driver

2021-01-21 Thread Bjorn Andersson
On Thu 21 Jan 11:17 CST 2021, Vinod Koul wrote: > This adds pincontrol driver for tlmm block found in SM8350 SoC > > This patch is based on initial code downstream by Raghavendra. > > Signed-off-by: Raghavendra Rao Ananta With Raghavendra's s-o-b here he should be From:, but based on the

[PATCH v5 2/2] pinctrl: qcom: Add SM8350 pinctrl driver

2021-01-21 Thread Vinod Koul
This adds pincontrol driver for tlmm block found in SM8350 SoC This patch is based on initial code downstream by Raghavendra. Signed-off-by: Raghavendra Rao Ananta Signed-off-by: Jeevan Shriram Signed-off-by: Vinod Koul --- drivers/pinctrl/qcom/Kconfig |9 +

[PATCH 2/2] KVM: nVMX: trace nested vm entry

2021-01-21 Thread Maxim Levitsky
This is very helpful to debug nested VMX issues. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/trace.h | 30 ++ arch/x86/kvm/vmx/nested.c | 5 + arch/x86/kvm/x86.c| 3 ++- 3 files changed, 37 insertions(+), 1 deletion(-) diff --git

UBSAN: array-index-out-of-bounds in decode_data

2021-01-21 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:9791581c Merge tag 'for-5.11-rc4-tag' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11970b20d0 kernel config: https://syzkaller.appspot.com/x/.config?x=39701af622f054a9

Re: [PATCH net-next] sfc: reduce the number of requested xdp ev queues

2021-01-21 Thread Maciej Fijalkowski
On Thu, Jan 21, 2021 at 06:11:30PM +0100, Jesper Dangaard Brouer wrote: > On Wed, 20 Jan 2021 13:27:59 -0800 > Ivan Babrou wrote: > > > Without this change the driver tries to allocate too many queues, > > breaching the number of available msi-x interrupts on machines > > with many logical cpus

[PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-21 Thread Nicolas Pitre
The clock API splits its interface into sleepable ant atomic contexts: - clk_prepare/clk_unprepare for stuff that might sleep - clk_enable_clk_disable for anything that may be done in atomic context The code handling runtime PM for clocks only calls clk_disable() on suspend requests, and

Re: [PATCH] soundwire: debugfs: use controller id instead of link_id

2021-01-21 Thread Srinivas Kandagatla
On 21/01/2021 15:12, Pierre-Louis Bossart wrote: On 1/21/21 6:03 AM, Srinivas Kandagatla wrote: On 19/01/2021 19:09, Pierre-Louis Bossart wrote: currently we have /sys/kernel/debug/soundwire/master-* Are you suggesting that we have something like this:

Re: [PATCH v5 1/2] dt-bindings: pinctrl: qcom: Add SM8350 pinctrl bindings

2021-01-21 Thread Bjorn Andersson
On Thu 21 Jan 11:17 CST 2021, Vinod Koul wrote: > Add device tree binding Documentation details for Qualcomm SM8350 > pinctrl driver. > Reviewed-by: Bjorn Andersson Although that's dependent on the acceptance of the common binding in a state similar its current one. Regards, Bjorn >

Re: [PATCH 1/3] dt-bindings: pinctrl: qcom: Define common TLMM binding

2021-01-21 Thread Bjorn Andersson
On Thu 21 Jan 07:20 CST 2021, Linus Walleij wrote: > On Wed, Jan 20, 2021 at 11:21 PM Bjorn Andersson > wrote: > > > Several properties are shared between all TLMM bindings. By providing a > > common binding to define these properties each platform's binding can be > > reduced to just listing

[RFC 2/2] mm, slub: add shrinker to reclaim cached slabs

2021-01-21 Thread Vlastimil Babka
For performance reasons, SLUB doesn't keep all slabs on shared lists and doesn't always free slabs immediately after all objects are freed. Namely: - for each cache and cpu, there might be a "CPU slab" page, partially or fully free - with SLUB_CPU_PARTIAL enabled (default y), there might be a

Re: SLUB: percpu partial object count is highly inaccurate, causing some memory wastage and maybe also worse tail latencies?

2021-01-21 Thread Vlastimil Babka
On 1/12/21 12:12 AM, Jann Horn wrote: > At first I thought that this wasn't a significant issue because SLUB > has a reclaim path that can trim the percpu partial lists; but as it > turns out, that reclaim path is not actually wired up to the page > allocator's reclaim logic. The SLUB reclaim

[RFC 1/2] mm, vmscan: add priority field to struct shrink_control

2021-01-21 Thread Vlastimil Babka
Slab reclaim works with reclaim priority, which influences how much to reclaim, but is not directly passed to individual shrinkers. The next patch introduces a slab shrinker that uses the priority, so add it to shrink_control and initialize appropriately. We can then also remove the parameter from

Re: [PATCH v2 1/2] ASoC: Intel: Skylake: skl-topology: Fix OOPs ib skl_tplg_complete

2021-01-21 Thread Ricardo Ribalda
Hi, This is just a v2 from my patch from December with the ={}: in a second patch. Best regards! On Thu, Jan 21, 2021 at 6:16 PM Ricardo Ribalda wrote: > > If dobj->control is not initialized we end up in an OOPs during > skl_tplg_complete: > > [ 26.553358] BUG: kernel NULL pointer

Re: [PATCH v2 2/2] kasan: Add explicit preconditions to kasan_report()

2021-01-21 Thread Andrey Konovalov
On Thu, Jan 21, 2021 at 2:20 PM Vincenzo Frascino wrote: > > With the introduction of KASAN_HW_TAGS, kasan_report() dereferences > the address passed as a parameter. > > Add a comment to make sure that the preconditions to the function are > explicitly clarified. > > Note: An invalid address

[PATCH v2] ARM: dts: sun7i: a20: bananapro: Fix ethernet node

2021-01-21 Thread Hermann Lauer
BPi Pro needs TX and RX delay for Gbit to work reliable and avoid high packet loss rates. The realtek phy driver overrides the settings of the pull ups for the delays, so fix this for Banana Pro. Signed-off-by: Hermann Lauer --- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v5 0/2] pinctrl: qcom: Add SM8350 pinctrl support

2021-01-21 Thread Vinod Koul
This adds binding and driver for TLMM block found in SM8350 SoC Changes in v5: - rebase and revise binding based on Bjorn's qcom common TLMM binding Changes in v4: - rename to qcom,sm8350-tlmm along with binding and driver structs - fix some nits in binding pointer by Rob Vinod Koul (2):

[PATCH v5 1/2] dt-bindings: pinctrl: qcom: Add SM8350 pinctrl bindings

2021-01-21 Thread Vinod Koul
Add device tree binding Documentation details for Qualcomm SM8350 pinctrl driver. Signed-off-by: Vinod Koul --- .../bindings/pinctrl/qcom,sm8350-pinctrl.yaml | 146 ++ 1 file changed, 146 insertions(+) create mode 100644

Re: [PATCH] uacce: Add uacce_ctrl misc device

2021-01-21 Thread kernel test robot
Hi Zhou, I love your patch! Yet something to improve: [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on soc/for-next linux/master linus/master v5.11-rc4 next-20210121] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

[PATCH] diffconfig: use python3 instead of python in Shebang line

2021-01-21 Thread Scott Branden
Use python3 instead of python in diffconfig Shebang line. python2 was sunset January 1, 2000 and environments do not need to support python any more. Fixes: b24413180f56 ("tweewide: Fix most Shebang lines") Signed-off-by: Scott Branden --- scripts/diffconfig | 2 +- 1 file changed, 1

[PATCH v2 2/2] ASoC: Intel: Skylake: Zero snd_ctl_elem_value

2021-01-21 Thread Ricardo Ribalda
Clear struct snd_ctl_elem_value before calling ->put() to avoid any data leak. Signed-off-by: Ricardo Ribalda --- sound/soc/intel/skylake/skl-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/skylake/skl-topology.c

Re: [PATCH] drm/panfrost: Add governor data with pre-defined thresholds

2021-01-21 Thread Daniel Lezcano
On 21/01/2021 18:04, Lukasz Luba wrote: > The simple_ondemand devfreq governor uses two thresholds to decide about > the frequency change: upthreshold, downdifferential. These two tunable > change the behavior of the governor decision, e.g. how fast to increase > the frequency or how rapidly limit

[PATCH v2 1/2] ASoC: Intel: Skylake: skl-topology: Fix OOPs ib skl_tplg_complete

2021-01-21 Thread Ricardo Ribalda
If dobj->control is not initialized we end up in an OOPs during skl_tplg_complete: [ 26.553358] BUG: kernel NULL pointer dereference, address: 0078 [ 26.561151] #PF: supervisor read access in kernel mode [ 26.566897] #PF: error_code(0x) - not-present page [ 26.572642] PGD

Re: [PATCH] perf metricgroup: Fix for metrics containing duration_time

2021-01-21 Thread John Garry
> > > Thanks for this, it should be fairly easy to add a test. Could we do this? I don't mind following up with that. How about this: >8 From 38e9d5aa07588d552378d97760b6b79f19d59bbd Mon Sep 17 00:00:00 2001 From: John Garry Date: Thu, 21 Jan 2021

Re: [PATCH net-next] sfc: reduce the number of requested xdp ev queues

2021-01-21 Thread Jesper Dangaard Brouer
On Wed, 20 Jan 2021 13:27:59 -0800 Ivan Babrou wrote: > Without this change the driver tries to allocate too many queues, > breaching the number of available msi-x interrupts on machines > with many logical cpus and default adapter settings: > > Insufficient resources for 12 XDP event queues

[PATCH 1/2] KVM: nSVM: move nested vmrun tracepoint to enter_svm_guest_mode

2021-01-21 Thread Maxim Levitsky
This way trace will capture all the nested mode entries (including entries after migration, and from smm) Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/x86/kvm/svm/nested.c

Re: [PATCH 0/7] ensure bios aren't split in middle of crypto data unit

2021-01-21 Thread Christoph Hellwig
On Thu, Jan 14, 2021 at 03:47:16PM +, Satya Tangirala wrote: > When a bio has an encryption context, its size must be aligned to its > crypto data unit size. A bio must not be split in the middle of a data > unit. Currently, bios are split at logical block boundaries, but a crypto > data unit

Re: [RFC][PATCH 00/25] Network fs helper library & fscache kiocb API

2021-01-21 Thread David Howells
J. Bruce Fields wrote: > On Wed, Jan 20, 2021 at 10:21:24PM +, David Howells wrote: > > Note that this uses SEEK_HOLE/SEEK_DATA to locate the data available > > to be read from the cache. Whilst this is an improvement from the > > bmap interface, it still has a problem with

[RFC PATCH] scsi: smartpqi: create module parameters for LUN reset

2021-01-21 Thread Enzo Matsumiya
Commit c2922f174fa0 ("scsi: smartpqi: fix LUN reset when fw bkgnd thread is hung") added support for a timeout on LUN resets. However, when there are 2 or more devices connected to the same controller and you hot-remove one of them, I/O will stall on the devices still online for

Re: [RFC PATCH 4/7] irqchip/apple-aic: Add support for Apple AIC

2021-01-21 Thread Rob Herring
On Thu, Jan 21, 2021 at 9:31 AM Hector Martin 'marcan' wrote: > > On 21/01/2021 19.37, Arnd Bergmann wrote: > > On Thu, Jan 21, 2021 at 10:48 AM Linus Walleij > > wrote: > >> > >> However weird it may seem, Apple is not in the file > >> Documentation/devicetree/bindings/vendor-prefixes.yaml > >

rcu-torture: Internal error: Oops: 96000006

2021-01-21 Thread Naresh Kamboju
While running rcu-torture test on qemu_arm64 and arm64 Juno-r2 device the following kernel crash noticed. This started happening from Linux next next-20210111 tag to next-20210121. metadata: git branch: master git repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next git describe

Re: [PATCH 1/3] dt-bindings: pinctrl: qcom: Define common TLMM binding

2021-01-21 Thread Vinod Koul
On 21-01-21, 14:20, Linus Walleij wrote: > On Wed, Jan 20, 2021 at 11:21 PM Bjorn Andersson > wrote: > > > Several properties are shared between all TLMM bindings. By providing a > > common binding to define these properties each platform's binding can be > > reduced to just listing which of

[PATCH] drm/panfrost: Add governor data with pre-defined thresholds

2021-01-21 Thread Lukasz Luba
The simple_ondemand devfreq governor uses two thresholds to decide about the frequency change: upthreshold, downdifferential. These two tunable change the behavior of the governor decision, e.g. how fast to increase the frequency or how rapidly limit the frequency. This patch adds needed governor

Re: [RFC 1/1] s390/pci: expose UID checking state in sysfs

2021-01-21 Thread Niklas Schnelle
On 1/21/21 4:54 PM, Bjorn Helgaas wrote: > [Greg may be able to help compare/contrast this s390 UID with udev > persistent names] > > On Thu, Jan 21, 2021 at 04:31:55PM +0100, Niklas Schnelle wrote: >> On 1/15/21 4:29 PM, Bjorn Helgaas wrote: >>> On Fri, Jan 15, 2021 at 12:20:59PM +0100,

[PATCH v6 0/6] tracing: More synthetic event error fixes

2021-01-21 Thread Tom Zanussi
Hi, This is v6 of the synthetic event error fix patchset. This version removes the semicolon-adding pass and instead adds an inner loop as suggested by Masami. A different mechanism adding per-version field checks was also added in place of the previous whole-string audit. Also, moved the

Re: [PATCH v2 3/3] KVM: VMX: read idt_vectoring_info a bit earlier

2021-01-21 Thread Maxim Levitsky
On Thu, 2021-01-14 at 16:29 -0800, Sean Christopherson wrote: > On Thu, Jan 14, 2021, Maxim Levitsky wrote: > > This allows it to be printed correctly by the trace print > > It'd be helpful to explicitly say which tracepoint, and explain that the value > is read by vmx_get_exit_info(). It's far

[PATCH v6 2/6] tracing: Rework synthetic event command parsing

2021-01-21 Thread Tom Zanussi
Now that command parsing has been delegated to the create functions and we're no longer constrained by argv_split(), we can modify the synthetic event command parser to better match the higher-level structure of the synthetic event commands, which is basically an event name followed by a set of

[PATCH v6 3/6] tracing: Update synth command errors

2021-01-21 Thread Tom Zanussi
Since array types are handled differently, errors referencing them also need to be handled differently. Add and use a new INVALID_ARRAY_SPEC error. Also add INVALID_CMD and INVALID_DYN_CMD to catch and display the correct form for badly-formed commands, which can also be used in place of

[PATCH v6 4/6] tracing: Add a backward-compatibility check for synthetic event creation

2021-01-21 Thread Tom Zanussi
The synthetic event parsing rework now requires semicolons between synthetic event fields. That requirement breaks existing users who might already have used the old synthetic event command format, so this adds an inner loop that can parse more than one field, if present, between semicolons. For

Re: [PATCH v2 2/3] KVM: nVMX: add kvm_nested_vmlaunch_resume tracepoint

2021-01-21 Thread Maxim Levitsky
On Fri, 2021-01-15 at 08:30 -0800, Sean Christopherson wrote: > On Fri, Jan 15, 2021, Paolo Bonzini wrote: > > On 15/01/21 01:14, Sean Christopherson wrote: > > > > + trace_kvm_nested_vmlaunch_resume(kvm_rip_read(vcpu), > > > Hmm, won't this RIP be wrong for the migration case? I.e. it'll

[PATCH v6 6/6] selftests/ftrace: Add '!event' synthetic event syntax check

2021-01-21 Thread Tom Zanussi
Add a check confirming that '!event' alone will remove a synthetic event. Signed-off-by: Tom Zanussi --- .../trigger/inter-event/trigger-synthetic-event-syntax.tc | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v6 5/6] selftests/ftrace: Update synthetic event syntax errors

2021-01-21 Thread Tom Zanussi
Some of the synthetic event errors and positions have changed in the code - update those and add several more tests. Also add a runtime check to ensure that the kernel supports dynamic strings in synthetic events, which these tests require. Fixes: 81ff92a93d95 (selftests/ftrace: Add test case

[PATCH v6 1/6] tracing/dynevent: Delegate parsing to create function

2021-01-21 Thread Tom Zanussi
From: Masami Hiramatsu Delegate command parsing to each create function so that the command syntax can be customized. This requires changes to the kprobe/uprobe/synthetic event handling, which are also included here. Signed-off-by: Masami Hiramatsu [ zanu...@kernel.org: added synthetic event

Re: [PATCH v2 2/3] KVM: nVMX: add kvm_nested_vmlaunch_resume tracepoint

2021-01-21 Thread Maxim Levitsky
On Fri, 2021-01-15 at 14:48 +0100, Paolo Bonzini wrote: > On 15/01/21 01:14, Sean Christopherson wrote: > > > + trace_kvm_nested_vmlaunch_resume(kvm_rip_read(vcpu), > > Hmm, won't this RIP be wrong for the migration case? I.e. it'll be L2, not > > L1 > > as is the case for the "true" nested

Re: [PATCH] lightnvm: fix memory leak when submit fails

2021-01-21 Thread Heiner Litz
I don't think that ZNS supersedes OCSSD. OCSSDs provide much more flexibility and device control and remain valuable for academia. For us, PBLK is the most accurate "SSD Emulator" out there that, as another benefit, enables real-time performance measurements. That being said, I understand that

Re: [PATCH v1 11/19] x86/sev-es: Convert to insn_decode()

2021-01-21 Thread Borislav Petkov
On Mon, Dec 28, 2020 at 11:15:11AM -0800, Sean Christopherson wrote: > Alternatively, could the kernel case use insn_decode_regs()? If > vc_fetch_insn_kernel() were also modified to mirror insn_fetch_from_user(), > the > two code paths could be unified except for the the fetch and the PFEC.

Re: Expense of read_iter

2021-01-21 Thread Matthew Wilcox
On Wed, Jan 20, 2021 at 10:12:01AM -0500, Mikulas Patocka wrote: > Do you have some idea how to optimize the generic code that calls > ->read_iter? Yes. > It might be better to maintain an f_iocb_flags in the > struct file and just copy that unconditionally. We'd need to remember > to update

Re: [RFC][PATCH 4/7] smp: Optimize send_call_function_single_ipi()

2021-01-21 Thread Peter Zijlstra
On Wed, May 27, 2020 at 07:12:36PM +0200, Peter Zijlstra wrote: > Subject: rcu: Allow for smp_call_function() running callbacks from idle > > Current RCU hard relies on smp_call_function() callbacks running from > interrupt context. A pending optimization is going to break that, it > will allow

Re: [PATCH RFC cpumask] Allow "all", "none", and "last" in cpumask strings

2021-01-21 Thread Paul E. McKenney
On Wed, Jan 20, 2021 at 11:11:48PM -0800, Yury Norov wrote: > On Wed, Jan 6, 2021 at 12:49 AM Yury Norov wrote: > > > > On Tue, Jan 5, 2021 at 4:48 PM Paul E. McKenney wrote: > > > > > > Hello! > > > > > > This series allows "all", "none", and "last" to be used in cpumask > > > strings. This

Re: [PATCH 1/5] c6x: remove architecture

2021-01-21 Thread Mark Salter
On Wed, 2021-01-20 at 13:48 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The c6x architecture was added to the kernel in 2011 at a time when > running Linux on DSPs was widely seen as the logical evolution. > It appears the trend has gone back to running Linux on Arm based SoCs > with

Re: [PATCH v2 3/3] PCI: set dma-can-stall for HiSilicon chip

2021-01-21 Thread Bjorn Helgaas
On Mon, Jan 18, 2021 at 04:58:36PM +0800, Zhangfei Gao wrote: > HiSilicon KunPeng920 and KunPeng930 have devices appear as PCI but are > actually on the AMBA bus. These fake PCI devices can support SVA via > SMMU stall feature, by setting dma-can-stall for ACPI platforms. > > Signed-off-by:

Re: [PATCH v2 08/12] ASoC: arizona-jack: convert into a helper library for codec drivers

2021-01-21 Thread Hans de Goede
Hi, On 1/19/21 10:51 AM, Richard Fitzgerald wrote: > On 18/01/2021 17:24, Andy Shevchenko wrote: >> On Sun, Jan 17, 2021 at 6:06 PM Hans de Goede wrote: >>> >>> Convert the arizona extcon driver into a helper library for direct use >>> from the arizona codec-drivers, rather then being bound to a

Re: [PATCH v2 1/2] arm64: Fix kernel address detection of __is_lm_address()

2021-01-21 Thread Mark Rutland
On Thu, Jan 21, 2021 at 03:30:51PM +, Vincenzo Frascino wrote: > On 1/21/21 3:12 PM, Mark Rutland wrote: > > On Thu, Jan 21, 2021 at 01:19:55PM +, Vincenzo Frascino wrote: > >> Currently, the __is_lm_address() check just masks out the top 12 bits > >> of the address, but if they are 0, it

Re: [PATCH v2 2/4] KVM: SVM: Add emulation support for #GP triggered by SVM instructions

2021-01-21 Thread Maxim Levitsky
On Thu, 2021-01-21 at 10:06 -0600, Wei Huang wrote: > > On 1/21/21 8:07 AM, Maxim Levitsky wrote: > > On Thu, 2021-01-21 at 01:55 -0500, Wei Huang wrote: > > > From: Bandan Das > > > > > > While running SVM related instructions (VMRUN/VMSAVE/VMLOAD), some AMD > > > CPUs check EAX against

Re: [PATCH 4/4] cpu/hotplug: Fix CPU down rollback

2021-01-21 Thread Vincent Donnefort
On Thu, Jan 21, 2021 at 03:57:03PM +0100, Peter Zijlstra wrote: > On Mon, Jan 11, 2021 at 05:10:47PM +, vincent.donnef...@arm.com wrote: > > From: Vincent Donnefort > > > > After the AP brought itself down to CPUHP_TEARDOWN_CPU, the BP will finish > > the job. The steps left are as followed:

Re: [PATCH 4/4] hv_netvsc: Restrict configurations on isolated guests

2021-01-21 Thread Andrea Parri
> > > > @@ -544,7 +545,8 @@ static int negotiate_nvsp_ver(struct hv_device > > > > *device, > > > > init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = > > > > 1; > > > > > > > > if (nvsp_ver >= NVSP_PROTOCOL_VERSION_5) { > > > > - > > > >

Re: [RFC PATCH 4/7] irqchip/apple-aic: Add support for Apple AIC

2021-01-21 Thread Hector Martin 'marcan'
On 20/01/2021 22.27, Mohamed Mediouni wrote: + irq_domain_set_info(d, virq, hw, _aic_irq_chip, + d->host_data, handle_level_irq, NULL, NULL); The AIC automatically masks IRQs on reason fetch, which means the handle_level_irq flow is redundant.

Re: [RFC 1/1] s390/pci: expose UID checking state in sysfs

2021-01-21 Thread Bjorn Helgaas
[Greg may be able to help compare/contrast this s390 UID with udev persistent names] On Thu, Jan 21, 2021 at 04:31:55PM +0100, Niklas Schnelle wrote: > On 1/15/21 4:29 PM, Bjorn Helgaas wrote: > > On Fri, Jan 15, 2021 at 12:20:59PM +0100, Niklas Schnelle wrote: > >> On 1/14/21 5:14 PM, Greg

[PATCH 1/1] mm: Optimizing hugepage zeroing in arm64

2021-01-21 Thread Prathu Baronia
In !HIGHMEM cases, specially in 64-bit architectures, we don't need temp mapping of pages. Hence, k(map|unmap)_atomic() acts as nothing more than multiple barrier() calls, for example for a 2MB hugepage in clear_huge_page() these are called 512 times i.e. to map and unmap each subpage that means

[PATCH 0/1] mm: Optimizing hugepage zeroing in arm64

2021-01-21 Thread Prathu Baronia
Hello! This patch removes the unnecessary kmap calls in the hugepage zeroing path and improves the timing by 62%. I had proposed a similar change in Apr-May'20 timeframe in memory.c where I proposed to clear out a hugepage by directly calling a memset over the whole hugepage but got the

[PATCH v4 01/10] tools/certs: Add print-cert-tbs-hash.sh

2021-01-21 Thread Mickaël Salaün
From: Mickaël Salaün Add a new helper print-cert-tbs-hash.sh to generate a TBSCertificate hash from a given certificate. This is useful to generate a blacklist key description used to forbid loading a specific certificate in a keyring, or to invalidate a certificate provided by a PKCS#7 file.

[PATCH v4 03/10] certs: Fix blacklisted hexadecimal hash string check

2021-01-21 Thread Mickaël Salaün
From: Mickaël Salaün When looking for a blacklisted hash, bin2hex() is used to transform a binary hash to an ascii (lowercase) hexadecimal string. This string is then search for in the description of the keys from the blacklist keyring. When adding a key to the blacklist keyring,

[PATCH v4 06/10] certs: Make blacklist_vet_description() more strict

2021-01-21 Thread Mickaël Salaün
From: Mickaël Salaün Before exposing this new key type to user space, make sure that only meaningful blacklisted hashes are accepted. This is also checked for builtin blacklisted hashes, but a following commit make sure that the user will notice (at built time) and will fix the configuration if

[PATCH v7 1/2] dt-bindings: iio: accel: Add bmi088 accelerometer bindings

2021-01-21 Thread Mike Looijmans
This adds the device-tree bindings for the Bosch Sensortec BMI088 IMU, the accelerometer part. Signed-off-by: Mike Looijmans --- Changes in v7: Add additionalProperties Change bmi088_accel to bmi088-accel Add interrupt-names and adjust description Changes in v6: I't been almost a year since

[PATCH v2 06/11] drm: Use state helper instead of plane state pointer in atomic_check

2021-01-21 Thread Maxime Ripard
Many drivers reference the plane->state pointer in order to get the current plane state in their atomic_check hook, which would be the old plane state in the global atomic state since _swap_state hasn't happened when atomic_check is run. Use the drm_atomic_get_old_plane_state helper to get that

Re: [Patch v4 1/2] cgroup: svm: Add Encryption ID controller

2021-01-21 Thread Tejun Heo
Hello, On Thu, Jan 21, 2021 at 08:55:07AM -0600, Tom Lendacky wrote: > The hardware will allow any SEV capable ASID to be run as SEV-ES, however, > the SEV firmware will not allow the activation of an SEV-ES VM to be > assigned to an ASID greater than or equal to the SEV minimum ASID value. The >

Re: [RFC][PATCH 00/25] Network fs helper library & fscache kiocb API

2021-01-21 Thread J. Bruce Fields
On Wed, Jan 20, 2021 at 10:21:24PM +, David Howells wrote: > Note that this uses SEEK_HOLE/SEEK_DATA to locate the data available > to be read from the cache. Whilst this is an improvement from the > bmap interface, it still has a problem with regard to a modern >

[PATCH v2 11/11] drm/todo: Remove the drm_atomic_state todo item

2021-01-21 Thread Maxime Ripard
Only planes' prepare_fb and cleanup_fb, and encoders' atomic_check and atomic_mode_set hooks remain with an object state and not the global drm_atomic_state. prepare_fb and cleanup_fb operate by design on a given state and depending on the calling site can operate on either the old or new state,

Re: [RFC PATCH 7/7] irqchip/apple-aic: add SMP support to the Apple AIC driver.

2021-01-21 Thread Mohamed Mediouni
> On 21 Jan 2021, at 17:40, Rob Herring wrote: > > On Thu, Jan 21, 2021 at 6:52 AM Mohamed Mediouni > wrote: >> >> >> >>> On 21 Jan 2021, at 13:44, Arnd Bergmann wrote: >>> >>> On Wed, Jan 20, 2021 at 2:27 PM Mohamed Mediouni >>> wrote: >>> +#ifdef CONFIG_SMP +static void

Re: [RFC PATCH 4/7] irqchip/apple-aic: Add support for Apple AIC

2021-01-21 Thread Rob Herring
On Thu, Jan 21, 2021 at 3:49 AM Linus Walleij wrote: > > Hi Mohamed, > > thanks for your patch! > > On Wed, Jan 20, 2021 at 2:31 PM Mohamed Mediouni > wrote: > > > +properties: > > + compatible: > > +items: > > + - const: apple,aic As mentioned in patch 7, this needs to be SoC

[PATCH v2 10/11] drm: Use state helper instead of the plane state pointer

2021-01-21 Thread Maxime Ripard
Many drivers reference the plane->state pointer in order to get the current plane state in their atomic_update or atomic_disable hooks, which would be the new plane state in the global atomic state since _swap_state happened when those hooks are run. Use the drm_atomic_get_new_plane_state helper

[PATCH v2 09/11] drm/atomic: Pass the full state to planes atomic disable and update

2021-01-21 Thread Maxime Ripard
The current atomic helpers have either their object state being passed as an argument or the full atomic state. The former is the pattern that was done at first, before switching to the latter for new hooks or when it was needed. Let's convert the remaining helpers to provide a consistent

<    3   4   5   6   7   8   9   10   11   12   >