Re: arch/riscv/include/asm/vdso/processor.h:14:2: error: implicit declaration of function 'barrier'

2020-11-23 Thread Nick Desaulniers
Randy's fix got picked up: https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git/commit/?h=fixes&id=f52c08ea5fc8e2057a5913b1f6bfd534e1fb7e4c We're going to need to ensure that this gets backported to stable along with commit: 3347acc6fcd4ee71ad18a9ff9d9dac176b517329 compiler.h: fix barri

Re: memory leak in hub_event

2020-11-23 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: memory leak in rxrpc_lookup_local write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or

Re: [PATCH v8] tcp: fix race condition when creating child sockets from syncookies

2020-11-23 Thread Eric Dumazet
On 11/20/20 12:11 PM, Ricardo Dias wrote: > When the TCP stack is in SYN flood mode, the server child socket is > created from the SYN cookie received in a TCP packet with the ACK flag > set. > > The child socket is created when the server receives the first TCP > packet with a valid SYN cookie

[PATCH] dyndbg: fix use before null check

2020-11-23 Thread Jim Cromie
commit a2d375eda771 ("dyndbg: refine export, rename to dynamic_debug_exec_queries()") Above commit copies a string before checking for null pointer, fix this, and add a pr_err. Also trim comment, and add return val info. Fixes: a2d375eda771 Cc: sta...@vger.kernel.org Signed-off-by: Jim Cromie

Re: [PATCH] kfence: Avoid stalling work queue task without allocations

2020-11-23 Thread Steven Rostedt
On Mon, 23 Nov 2020 11:28:12 -0500 Steven Rostedt wrote: > I noticed: > > > [ 237.650900] enabling event benchmark_event > > In both traces. Could you disable CONFIG_TRACEPOINT_BENCHMARK and see if > the issue goes away. That event kicks off a thread that spins in a tight > loop for some time

Re: [PATCH v3] Kbuild: do not emit debug info for assembly with LLVM_IAS=1

2020-11-23 Thread Nick Desaulniers
Hi Masahiro, I would appreciate any feedback you have on this patch. On Fri, Nov 20, 2020 at 3:58 PM Jian Cai wrote: > > I also verified that with this patch Chrome OS devices booted with either GNU > assembler or LLVM's integrated assembler. With this patch, IAS no longer > produces extra warn

Re: [PATCH v6] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests.

2020-11-23 Thread Konrad Rzeszutek Wilk
On Mon, Nov 23, 2020 at 07:02:15PM +0100, Borislav Petkov wrote: > On Mon, Nov 23, 2020 at 12:56:32PM -0500, Konrad Rzeszutek Wilk wrote: > > This is not going to work for TDX. I think having a registration > > to SWIOTLB to have this function would be better going forward. > > > > As in there wil

Re: [PATCH 4/6] mm: proc: Invalidate TLB after clearing soft-dirty page state

2020-11-23 Thread Will Deacon
On Fri, Nov 20, 2020 at 07:55:14AM -0800, Minchan Kim wrote: > On Fri, Nov 20, 2020 at 04:00:23PM +0100, Peter Zijlstra wrote: > > On Fri, Nov 20, 2020 at 02:35:55PM +, Will Deacon wrote: > > > Since commit 0758cd830494 ("asm-generic/tlb: avoid potential double > > > flush"), > > > TLB invalid

Re: [PATCH net-next v5] net/tun: Call netdev notifiers

2020-11-23 Thread Jakub Kicinski
On Mon, 23 Nov 2020 07:18:07 +0100 Martin Schiller wrote: > On 2020-11-20 19:28, Jakub Kicinski wrote: > > On Wed, 18 Nov 2020 07:39:19 +0100 Martin Schiller wrote: > >> Call netdev notifiers before and after changing the device type. > >> > >> Signed-off-by: Martin Schiller > > > > This is

Re: [RFC] Documentation/scheduler/schedutil.txt

2020-11-23 Thread Dietmar Eggemann
On 23/11/2020 14:42, Vincent Guittot wrote: > On Mon, 23 Nov 2020 at 12:27, Dietmar Eggemann > wrote: >> >> On 23/11/2020 11:05, Vincent Guittot wrote: >>> On Mon, 23 Nov 2020 at 10:30, Dietmar Eggemann >>> wrote: On 20/11/2020 09:56, Peter Zijlstra wrote: > On Fri, Nov 20, 2020 a

[PATCH v5 04/11] gpio: raspberrypi-exp: Release firmware handle on unbind

2020-11-23 Thread Nicolas Saenz Julienne
Use devm_rpi_firmware_get() so as to make sure we release RPi's firmware interface when unbinding the device. Signed-off-by: Nicolas Saenz Julienne Acked-by: Bartosz Golaszewski --- Changes since v2: - Use devm_rpi_firmware_get(), instead of remove function drivers/gpio/gpio-raspberrypi-exp

[PATCH v5 05/11] reset: raspberrypi: Release firmware handle on unbind

2020-11-23 Thread Nicolas Saenz Julienne
Use devm_rpi_firmware_get() so as to make sure we release RPi's firmware interface when unbinding the device. Signed-off-by: Nicolas Saenz Julienne --- Changes since v2: - Use devm_rpi_firmware_get(), instead of remove function drivers/reset/reset-raspberrypi.c | 2 +- 1 file changed, 1 inse

[PATCH v5 08/11] input: raspberrypi-ts: Release firmware handle when not needed

2020-11-23 Thread Nicolas Saenz Julienne
Use devm_rpi_firmware_get() so as to make sure we release RPi's firmware interface when unbinding the device. Signed-off-by: Nicolas Saenz Julienne --- Changes since v3: - Release firmware handle in probe function Changes since v2: - Use devm_rpi_firmware_get(), instead of remove function

[PATCH v5 09/11] dt-bindings: pwm: Add binding for RPi firmware PWM bus

2020-11-23 Thread Nicolas Saenz Julienne
The PWM bus controlling the fan in RPi's official PoE hat can only be controlled by the board's co-processor. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Rob Herring --- Changes since v4: - Rename compatible string to be more explicit with the bus' limitations Changes since v3: - Fix

[PATCH v5 11/11] pwm: Add Raspberry Pi Firmware based PWM bus

2020-11-23 Thread Nicolas Saenz Julienne
Adds support to control the PWM bus available in official Raspberry Pi PoE HAT. Only RPi's co-processor has access to it, so commands have to be sent through RPi's firmware mailbox interface. Signed-off-by: Nicolas Saenz Julienne --- Changes since v3: - Rename compatible string to be more expl

[PATCH v5 10/11] DO NOT MERGE: ARM: dts: Add RPi's official PoE hat support

2020-11-23 Thread Nicolas Saenz Julienne
This is an example on how to enable the fan on top of RPi's official PoE hat. Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - Update patch to use 2 pwm cells arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 54 +++ 1 file changed, 54 insertions(+) diff --git a/a

Re: [PATCH bpf-next v2 3/3] bpf: Update LSM selftests for bpf_ima_inode_hash

2020-11-23 Thread Yonghong Song
On 11/23/20 10:27 AM, KP Singh wrote: [...] Even if a custom policy has been loaded, potentially additional measurements unrelated to this test would be included the measurement list. One way of limiting a rule to a specific test is by loopback mounting a file system and defining a policy

[PATCH v5 07/11] staging: vchiq: Release firmware handle on unbind

2020-11-23 Thread Nicolas Saenz Julienne
Use devm_rpi_firmware_get() so as to make sure we release RPi's firmware interface when unbinding the device. Signed-off-by: Nicolas Saenz Julienne --- Changes since v2: - Use devm_rpi_firmware_get(), instead of remove function drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c |

[PATCH v5 03/11] clk: bcm: rpi: Release firmware handle on unbind

2020-11-23 Thread Nicolas Saenz Julienne
Use devm_rpi_firmware_get() so as to make sure we release RPi's firmware interface when unbinding the device. Signed-off-by: Nicolas Saenz Julienne --- Changes since v2: - Use devm_rpi_firmware_get(), instead of remove function drivers/clk/bcm/clk-raspberrypi.c | 2 +- 1 file changed, 1 inse

[PATCH v5 02/11] firmware: raspberrypi: Introduce devm_rpi_firmware_get()

2020-11-23 Thread Nicolas Saenz Julienne
It'll simplify the firmware handling for most consumers. Suggested-by: Bartosz Golaszewski Signed-off-by: Nicolas Saenz Julienne --- Changes since v4: - Rearrange function calls for clarity, same functionality Changes since v2: - Create devm_rpi_firmware_get() drivers/firmware/raspberrypi.c

[PATCH v5 06/11] soc: bcm: raspberrypi-power: Release firmware handle on unbind

2020-11-23 Thread Nicolas Saenz Julienne
Use devm_rpi_firmware_get() so as to make sure we release RPi's firmware interface when unbinding the device. Signed-off-by: Nicolas Saenz Julienne --- Changes since v2: - Use devm_rpi_firmware_get(), instead of remove function drivers/soc/bcm/raspberrypi-power.c | 2 +- 1 file changed, 1 in

[PATCH v5 00/11] Raspberry Pi PoE HAT fan support

2020-11-23 Thread Nicolas Saenz Julienne
The aim of this series is to add support to the fan found on RPi's PoE HAT. Some commentary on the design can be found below. But the imporant part to the people CC'd here not involved with PWM is that, in order to achieve this properly, we also have to fix the firmware interface the driver uses to

[PATCH v5 01/11] firmware: raspberrypi: Keep count of all consumers

2020-11-23 Thread Nicolas Saenz Julienne
When unbinding the firmware device we need to make sure it has no consumers left. Otherwise we'd leave them with a firmware handle pointing at freed memory. Keep a reference count of all consumers and introduce rpi_firmware_put() which will permit automatically decrease the reference count upon un

Re: [PATCH] regulator: Kconfig: Fix REGULATOR_QCOM_RPMH dependencies to avoid build error

2020-11-23 Thread Mark Brown
On Sat, Nov 21, 2020 at 06:33:02AM +, John Stultz wrote: > config REGULATOR_QCOM_RPMH > tristate "Qualcomm Technologies, Inc. RPMh regulator driver" > - depends on QCOM_RPMH || COMPILE_TEST > + depends on QCOM_RPMH QCOM_RPMH || (QCOM_RPMH=n && COMPILE_TEST) should do the trick

Re: [PATCH v7 15/17] KVM: arm64: disable LTO for the nVHE directory

2020-11-23 Thread Sami Tolvanen
On Mon, Nov 23, 2020 at 2:21 AM David Brazdil wrote: > > Hey Sami, > > On Wed, Nov 18, 2020 at 02:07:29PM -0800, Sami Tolvanen wrote: > > We use objcopy to manipulate ELF binaries for the nVHE code, > > which fails with LTO as the compiler produces LLVM bitcode > > instead. Disable LTO for this co

Re: [PATCH v6] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests.

2020-11-23 Thread Konrad Rzeszutek Wilk
On Mon, Nov 23, 2020 at 06:06:47PM +0100, Borislav Petkov wrote: > On Thu, Nov 19, 2020 at 09:42:05PM +, Ashish Kalra wrote: > > From: Ashish Kalra > > > > For SEV, all DMA to and from guest has to use shared (un-encrypted) pages. > > SEV uses SWIOTLB to make this happen without requiring cha

Re: [PATCH 6/6] mm: proc: Avoid fullmm flush for young/dirty bit toggling

2020-11-23 Thread Will Deacon
On Fri, Nov 20, 2020 at 01:40:05PM -0700, Yu Zhao wrote: > On Fri, Nov 20, 2020 at 02:35:57PM +, Will Deacon wrote: > > clear_refs_write() uses the 'fullmm' API for invalidating TLBs after > > updating the page-tables for the current mm. However, since the mm is not > > being freed, this can re

Re: Pinning ZONE_MOVABLE pages

2020-11-23 Thread Jason Gunthorpe
On Mon, Nov 23, 2020 at 12:54:16PM -0500, Pavel Tatashin wrote: > > I agree with the other emails, ZONE_MOVABLE needs to be reconciled > > with FOLL_LONGTERM - most likely by preventing ZONE_MOVABLE pages from > > being returned. This will need migration like CMA does and the point > > about faulti

Re: [PATCH] Documentation: kunit: provide guidance for testing many inputs

2020-11-23 Thread Brendan Higgins
On Mon, Nov 2, 2020 at 1:37 PM Daniel Latypov wrote: > > usage.rst goes into a detailed about faking out classes, but currently > lacks wording about how one might idiomatically test a range of inputs. > > Give an example of how one might test a hash function via macros/helper > funcs and a table-

Re: [PATCH 2/2] hwspinlock: add sunxi hardware spinlock support

2020-11-23 Thread Wilken Gottwalt
On Sat, 21 Nov 2020 17:44:18 +0100 Maxime Ripard wrote: > On Sat, Nov 21, 2020 at 08:22:55PM +0800, fuyao wrote: > > On Fri, Nov 20, 2020 at 05:42:31PM +0100, Maxime Ripard wrote: > > > Hi, > > > > > > On Thu, Nov 19, 2020 at 11:13:43AM +0100, Wilken Gottwalt wrote: > > > > On Thu, 19 Nov 2020 0

[PATCH] um: ubd: Set device serial attribute from cmdline

2020-11-23 Thread Christopher Obbard
Adds the ability to set the UBD device serial number from the commandline, disabling the serial number functionality by default. In some cases it may be useful to set a serial to the UBD device, such that downstream users (i.e. udev) can use this information to better describe the hardware to the

[net-next v3 8/8] selftests: add selftest for the SRv6 End.DT6 (VRF) behavior

2020-11-23 Thread Andrea Mayer
this selftest is designed for evaluating the new SRv6 End.DT6 (VRF) behavior used, in this example, for implementing IPv6 L3 VPN use cases. Signed-off-by: Andrea Mayer Signed-off-by: Paolo Lungaroni --- .../selftests/net/srv6_end_dt6_l3vpn_test.sh | 502 ++ 1 file changed, 502

Re: Re: memory leak in hub_event

2020-11-23 Thread Andrey Konovalov
On Fri, Nov 20, 2020 at 6:00 PM Alan Stern wrote: > > On Fri, Nov 20, 2020 at 08:56:11AM -0800, syzbot wrote: > > > On Fri, Nov 20, 2020 at 07:15:20AM -0800, syzbot wrote: > > >> Hello, > > >> > > >> syzbot found the following issue on: > > >> > > >> HEAD commit:4d02da97 Merge tag 'net-5.10-rc

[net-next v3 3/8] seg6: add support for optional attributes in SRv6 behaviors

2020-11-23 Thread Andrea Mayer
Before this patch, each SRv6 behavior specifies a set of required attributes that must be provided by the userspace application when such behavior is going to be instantiated. If at least one of the required attributes is not provided, the creation of the behavior fails. The SRv6 behavior framewor

Re: [PATCH 5.4 044/158] compiler.h: fix barrier_data() on clang

2020-11-23 Thread Nick Desaulniers
Doesn't this depend on a v2 of https://lore.kernel.org/lkml/fe040988-c076-8dec-8268-3fbaa8b39...@infradead.org/ ? Oh, looks like v1 got picked up: https://lore.kernel.org/lkml/mhng-8c56f671-512a-45e7-9c94-fa39a80451da@palmerdabbelt-glaptop1/. Won't this break RISCV VDSO? On Mon, Nov 23, 2020 at 4:

[net-next v3 2/8] seg6: improve management of behavior attributes

2020-11-23 Thread Andrea Mayer
Depending on the attribute (i.e.: SEG6_LOCAL_SRH, SEG6_LOCAL_TABLE, etc), the parse() callback performs some validity checks on the provided input and updates the tunnel state (slwt) with the result of the parsing operation. However, an attribute may also need to reserve some additional resources (

[net-next v3 6/8] seg6: add VRF support for SRv6 End.DT6 behavior

2020-11-23 Thread Andrea Mayer
SRv6 End.DT6 is defined in the SRv6 Network Programming [1]. The Linux kernel already offers an implementation of the SRv6 End.DT6 behavior which permits IPv6 L3 VPNs over SRv6 networks. This implementation is not particularly suitable in contexts where we need to deploy IPv6 L3 VPNs among differe

[net-next v3 1/8] vrf: add mac header for tunneled packets when sniffer is attached

2020-11-23 Thread Andrea Mayer
Before this patch, a sniffer attached to a VRF used as the receiving interface of L3 tunneled packets detects them as malformed packets and it complains about that (i.e.: tcpdump shows bogus packets). The reason is that a tunneled L3 packet does not carry any L2 information and when the VRF is set

[net-next v3 0/8] seg6: add support for SRv6 End.DT4/DT6 behavior

2020-11-23 Thread Andrea Mayer
This patchset provides support for the SRv6 End.DT4 and SRv6 End.DT6 (VRF mode) behavior. The SRv6 End.DT4 is used to implement multi-tenant IPv4 L3 VPN. It decapsulates the received packets and performs IPv4 routing lookup in the routing table of the tenant. The SRv6 End.DT4 Linux implementation

[iproute2-next v1 1/1] seg6: add support for vrftable attribute in End.DT4/DT6 behaviors

2020-11-23 Thread Andrea Mayer
introduces the "vrftable" attribute for supporting the End.DT4 and End.DT6 behaviors in iproute2. The "vrftable" attribute indicates the routing table associated with the VRF device used by SRv6 End.DT4/DT6 for routing IPv4/IPv6 packets. The End.DT4/DT6 is used to implement IPv4/IPv6 L3 VPNs based

[net-next v3 5/8] seg6: add support for the SRv6 End.DT4 behavior

2020-11-23 Thread Andrea Mayer
SRv6 End.DT4 is defined in the SRv6 Network Programming [1]. The SRv6 End.DT4 is used to implement IPv4 L3VPN use-cases in multi-tenants environments. It decapsulates the received packets and it performs IPv4 routing lookup in the routing table of the tenant. The SRv6 End.DT4 Linux implementation

[net-next v3 4/8] seg6: add callbacks for customizing the creation/destruction of a behavior

2020-11-23 Thread Andrea Mayer
We introduce two callbacks used for customizing the creation/destruction of a SRv6 behavior. Such callbacks are defined in the new struct seg6_local_lwtunnel_ops and hereafter we provide a brief description of them: - build_state(...): used for calling the custom constructor of the behavior du

[net-next v3 7/8] selftests: add selftest for the SRv6 End.DT4 behavior

2020-11-23 Thread Andrea Mayer
this selftest is designed for evaluating the new SRv6 End.DT4 behavior used, in this example, for implementing IPv4 L3 VPN use cases. Signed-off-by: Andrea Mayer Reviewed-by: David Ahern --- .../selftests/net/srv6_end_dt4_l3vpn_test.sh | 494 ++ 1 file changed, 494 insertions(+

Re: [PATCH bpf-next v2 3/3] bpf: Update LSM selftests for bpf_ima_inode_hash

2020-11-23 Thread KP Singh
[...] > > > > > > Even if a custom policy has been loaded, potentially additional > > > measurements unrelated to this test would be included the measurement > > > list. One way of limiting a rule to a specific test is by loopback > > > mounting a file system and defining a policy rule based on t

Re: [PATCH v2 02/24] exec: Simplify unshare_files

2020-11-23 Thread Linus Torvalds
On Mon, Nov 23, 2020 at 9:52 AM Oleg Nesterov wrote: > > Can anyone explain why does do_coredump() need unshare_files() at all? Hmm. It goes back to 2012, and it's placed just before calling "->core_dump()", so I assume some core dumping function messed with the file table back when.. I can't se

Re: [PATCH 4/6] mm: proc: Invalidate TLB after clearing soft-dirty page state

2020-11-23 Thread Will Deacon
Hi Peter, On Fri, Nov 20, 2020 at 04:27:31PM +0100, Peter Zijlstra wrote: > On Fri, Nov 20, 2020 at 03:15:24PM +, Will Deacon wrote: > > On Fri, Nov 20, 2020 at 04:00:23PM +0100, Peter Zijlstra wrote: > > > On Fri, Nov 20, 2020 at 02:35:55PM +, Will Deacon wrote: > > > > Since commit 0758c

Re: [PATCH 2/2] hwspinlock: add sunxi hardware spinlock support

2020-11-23 Thread Wilken Gottwalt
On Sat, 21 Nov 2020 23:19:00 -0600 Bjorn Andersson wrote: > > +static int hwlocks_inuse_show(struct seq_file *seqf, void *unused) > > +{ > > + struct sunxi_hwspinlock_data *priv = seqf->private; > > + int inuse; > > + > > + /* getting the status of only the main 32 spinlocks is supported */

[git pull] habanalabs fixes for 5.10-rc6

2020-11-23 Thread Oded Gabbay
Hello Greg, This pull request contains a single small fix for 5.10-rc6. Details are in the tag. Thanks, Oded The following changes since commit ef3f0caf243075ac255b69054cbf48b65eadb0d4: Merge tag 'icc-5.10-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/djakov/icc into char-misc-linus

Re: [RESEND,PATCH] ARM: fix __div64_32() error when compiling with clang

2020-11-23 Thread Nathan Chancellor
On Mon, Nov 23, 2020 at 03:36:32PM +0800, Antony Yu wrote: > __do_div64 clobbers the input register r0 in little endian system. > According to the inline assembly document, if an input operand is > modified, it should be tied to a output operand. This patch can > prevent compilers from reusing r0 r

Re: [PATCH v4 11/19] sched/core: Make migrate disable and CPU hotplug cooperative

2020-11-23 Thread Sebastian Andrzej Siewior
On 2020-11-18 09:44:34 [-0500], Qian Cai wrote: > On Tue, 2020-11-17 at 19:28 +, Valentin Schneider wrote: > > We did have some breakage in that area, but all the holes I was aware of > > have been plugged. What would help here is to see which tasks are still > > queued on that outgoing CPU, an

Re: [RFC PATCH] regmap: remove duplicate `type` field from `regcache_sync` trace event

2020-11-23 Thread Mark Brown
On Mon, Nov 23, 2020 at 11:15:19AM -0500, Philippe Duplessis-Guindon wrote: > $ sudo cat /sys/kernel/debug/tracing/events/regmap/regcache_sync/format > name: regcache_sync > ID: 1216 > format: These dumps are very large, don't fit within 80 columns and it's quite hard to f

Re: [PATCH] coresight: tmc-etr: Check if page is valid before dma_map_page()

2020-11-23 Thread Mathieu Poirier
On Mon, Nov 23, 2020 at 10:46:56AM +, Suzuki K Poulose wrote: > On 11/23/20 10:21 AM, Sai Prakash Ranjan wrote: > > From: Mao Jinlong > > > > alloc_pages_node() return should be checked before calling > > dma_map_page() to make sure that valid page is mapped or > > else it can lead to aborts

Re: [PATCH 2/4] x86/mce: move the mce_panic() call and kill_it assignments at the right places

2020-11-23 Thread Borislav Petkov
On Mon, Nov 23, 2020 at 05:40:21PM +, Paoloni, Gabriele wrote: > Well it is not the easiest code to decode 😊 Tell me about it - that's decades worth of crap being piled ontop. :-) > Sure I can add another patch to the set to rename it. Yeah, only if you really want to - that was more a note-

[ANNOUNCE] 4.4.245-rt211

2020-11-23 Thread Daniel Wagner
Hello RT-list! I'm pleased to announce the 4.4.245-rt211 stable release. This release is just an update to the new stable 4.4.245 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.g

Re: [PATCH 0/9] relay: cleanup and const callbacks, take 2

2020-11-23 Thread Kalle Valo
Jani Nikula writes: > This is v2 of [1], with a number of cleanups added first based on > Christoph's feedback, making the actual constness patch much smaller and > cleaner. > > I don't know who actually maintains relay, it's not in MAINTAINERS - > Cc'd Andrew just in case. > > I'd think it would

Re: [PATCH 7/7] kbuild: doc: document subdir-y syntax

2020-11-23 Thread Randy Dunlap
On 11/22/20 8:54 PM, Masahiro Yamada wrote: > There is no explanation about subdir-y. > > Let's document it. > > Signed-off-by: Masahiro Yamada > --- > > Documentation/kbuild/makefiles.rst | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/Documentation/kbuild/makefiles.

Re: [PATCH v6] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests.

2020-11-23 Thread Borislav Petkov
On Mon, Nov 23, 2020 at 12:56:32PM -0500, Konrad Rzeszutek Wilk wrote: > This is not going to work for TDX. I think having a registration > to SWIOTLB to have this function would be better going forward. > > As in there will be a swiotlb_register_adjuster() which AMD SEV > code can call at start,

Re: [PATCH v3 2/2] powerpc/ptrace: Hard wire PT_SOFTE value to 1 in gpr_get() too

2020-11-23 Thread Oleg Nesterov
Christophe, et al, So what? Are you going to push your change or should I re-send 1-2 without whitespace cleanups? On 11/19, Oleg Nesterov wrote: > > On 11/19, Christophe Leroy wrote: > > > > I think the following should work, and not require the first patch (compile > > tested only). > > > > --

Re: [PATCH 1/6] relay: allow the use of const callback structs

2020-11-23 Thread Jani Nikula
On Thu, 19 Nov 2020, Christoph Hellwig wrote: > But taking one step back: All instances implement create_buf_file > and remove_buf_file, which makes sense as that is the prime aim > of these methods. So there is no point in making those optional. > subbuf_start_callback is overriden by two insta

Re: [PATCH v2 00/24] Opt-in always-on nVHE hypervisor

2020-11-23 Thread Marc Zyngier
Hi David, On Mon, 16 Nov 2020 20:42:54 +, David Brazdil wrote: > > As we progress towards being able to keep guest state private to the > host running nVHE hypervisor, this series allows the hypervisor to > install itself on newly booted CPUs before the host is allowed to run > on them. > >

Re: [PATCH v2 08/24] kvm: arm64: Add SMC handler in nVHE EL2

2020-11-23 Thread Marc Zyngier
On Mon, 16 Nov 2020 20:43:02 +, David Brazdil wrote: > > Add handler of host SMCs in KVM nVHE trap handler. Forward all SMCs to > EL3 and propagate the result back to EL1. This is done in preparation > for validating host SMCs in KVM nVHE protected mode. > > The implementation assumes that f

Re: [PATCH 6/7] kbuild: doc: clarify the difference between extra-y and always-y

2020-11-23 Thread Randy Dunlap
On 11/22/20 8:54 PM, Masahiro Yamada wrote: > The difference between extra-y and always-y is obscure. > > Basically, Kbuild builds targets listed in extra-y and always-y in > visited Makefiles without relying on any dependency. > > The difference is that extra-y is used to list the targets needed

[PATCH 9/9] blktrace: make relay callbacks const

2020-11-23 Thread Jani Nikula
Now that relay_open() accepts const callbacks, make relay callbacks const. Cc: Jens Axboe Cc: linux-bl...@vger.kernel.org Signed-off-by: Jani Nikula --- kernel/trace/blktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c

[PATCH 8/9] ath9k: make relay callbacks const

2020-11-23 Thread Jani Nikula
Now that relay_open() accepts const callbacks, make relay callbacks const. Cc: Kalle Valo Cc: QCA ath9k Development Cc: linux-wirel...@vger.kernel.org Acked-by: Kalle Valo Signed-off-by: Jani Nikula --- drivers/net/wireless/ath/ath9k/common-spectral.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 7/9] ath11k: make relay callbacks const

2020-11-23 Thread Jani Nikula
Now that relay_open() accepts const callbacks, make relay callbacks const. Cc: Kalle Valo Cc: ath...@lists.infradead.org Signed-off-by: Jani Nikula --- drivers/net/wireless/ath/ath11k/spectral.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/

Re: [PATCH] btrfs: remove the useless value assignment in block_rsv_release_bytes

2020-11-23 Thread David Sterba
On Tue, Nov 17, 2020 at 11:17:17AM +0800, kaixuxia wrote: > > > On 2020/11/16 23:15, David Sterba wrote: > > On Sun, Nov 15, 2020 at 02:39:23PM +0800, xiakaixu1...@gmail.com wrote: > >> From: Kaixu Xia > >> > >> The variable qgroup_to_release is overwritten by the following if/else > >> statemen

[PATCH 6/9] ath10k: make relay callbacks const

2020-11-23 Thread Jani Nikula
Now that relay_open() accepts const callbacks, make relay callbacks const. Cc: Kalle Valo Cc: ath...@lists.infradead.org Acked-by: Kalle Valo Signed-off-by: Jani Nikula --- drivers/net/wireless/ath/ath10k/spectral.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ne

[PATCH 5/9] drm/i915: make relay callbacks const

2020-11-23 Thread Jani Nikula
Now that relay_open() accepts const callbacks, make relay callbacks const. Cc: intel-...@lists.freedesktop.org Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gt/uc/intel_guc_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_log.c

[PATCH 4/9] relay: allow the use of const callback structs

2020-11-23 Thread Jani Nikula
None of the relay users require the use of mutable structs for callbacks, however the relay code does. Instead of assigning the default callback for subbuf_start, add a wrapper to conditionally call the client callback if available, and fall back to default behaviour otherwise. This lets all relay

[PATCH 2/9] relay: require non-NULL callbacks in relay_open()

2020-11-23 Thread Jani Nikula
There are no clients passing NULL callbacks, which makes sense as it wouldn't even create a file. Require non-NULL callbacks, and throw away the handling for NULL callbacks. Suggested-by: Christoph Hellwig Cc: Christoph Hellwig Signed-off-by: Jani Nikula --- kernel/relay.c | 14 ++

[PATCH 3/9] relay: make create_buf_file and remove_buf_file callbacks mandatory

2020-11-23 Thread Jani Nikula
All clients provide create_buf_file and remove_buf_file callbacks, and they're required for relay to make sense. There is no point in them being optional. Also document whether each callback is mandatory/optional. Suggested-by: Christoph Hellwig Cc: Christoph Hellwig Signed-off-by: Jani Nikula

[PATCH 1/9] relay: remove unused buf_mapped and buf_unmapped callbacks

2020-11-23 Thread Jani Nikula
No relay client uses the buf_mapped or buf_unmapped callbacks. Remove them. This makes relay's vm_operations_struct close callback a dummy, remove it as well. Suggested-by: Christoph Hellwig Cc: Christoph Hellwig Signed-off-by: Jani Nikula --- include/linux/relay.h | 19 --- ke

[PATCH v5 8/9] task_isolation: ringbuffer: don't interrupt CPUs running isolated tasks on buffer resize

2020-11-23 Thread Alex Belits
From: Yuri Norov CPUs running isolated tasks are in userspace, so they don't have to perform ring buffer updates immediately. If ring_buffer_resize() schedules the update on those CPUs, isolation is broken. To prevent that, updates for CPUs running isolated tasks are performed locally, like for o

[PATCH 0/9] relay: cleanup and const callbacks, take 2

2020-11-23 Thread Jani Nikula
This is v2 of [1], with a number of cleanups added first based on Christoph's feedback, making the actual constness patch much smaller and cleaner. I don't know who actually maintains relay, it's not in MAINTAINERS - Cc'd Andrew just in case. I'd think it would be simplest to queue patches 5-9 vi

[PATCH v5 9/9] task_isolation: kick_all_cpus_sync: don't kick isolated cpus

2020-11-23 Thread Alex Belits
From: Yuri Norov Make sure that kick_all_cpus_sync() does not call CPUs that are running isolated tasks. Signed-off-by: Yuri Norov [abel...@marvell.com: use safe task_isolation_cpumask() implementation] Signed-off-by: Alex Belits --- kernel/smp.c | 14 +- 1 file changed, 13 insert

[PATCH v5 7/9] task_isolation: don't interrupt CPUs with tick_nohz_full_kick_cpu()

2020-11-23 Thread Alex Belits
From: Yuri Norov For nohz_full CPUs the desirable behavior is to receive interrupts generated by tick_nohz_full_kick_cpu(). But for hard isolation it's obviously not desirable because it breaks isolation. This patch adds check for it. Signed-off-by: Yuri Norov [abel...@marvell.com: updated, on

[PATCH v5 6/9] task_isolation: arch/arm64: enable task isolation functionality

2020-11-23 Thread Alex Belits
In do_notify_resume(), call task_isolation_before_pending_work_check() first, to report isolation breaking, then after handling all pending work, call task_isolation_start() for TIF_TASK_ISOLATION tasks. Add _TIF_TASK_ISOLATION to _TIF_WORK_MASK, and _TIF_SYSCALL_WORK, define local NOTIFY_RESUME_L

[PATCH v5 5/9] task_isolation: Add driver-specific hooks

2020-11-23 Thread Alex Belits
Some drivers don't call functions that call task_isolation_kernel_enter() in interrupt handlers. Call it directly. Signed-off-by: Alex Belits --- drivers/irqchip/irq-armada-370-xp.c | 6 ++ drivers/irqchip/irq-gic-v3.c| 3 +++ drivers/irqchip/irq-gic.c | 3 +++ drivers/s390

[PATCH v5 4/9] task_isolation: Add task isolation hooks to arch-independent code

2020-11-23 Thread Alex Belits
Kernel entry and exit functions for task isolation are added to context tracking and common entry points. Common handling of pending work on exit to userspace now processes isolation breaking, cleanup and start. Signed-off-by: Chris Metcalf [abel...@marvell.com: adapted for kernel 5.10] Signed-of

[PATCH v5 3/9] task_isolation: userspace hard isolation from kernel

2020-11-23 Thread Alex Belits
The existing nohz_full mode is designed as a "soft" isolation mode that makes tradeoffs to minimize userspace interruptions while still attempting to avoid overheads in the kernel entry/exit path, to provide 100% kernel semantics, etc. However, some applications require a "hard" commitment from th

[PATCH v5 2/9] task_isolation: vmstat: add vmstat_idle function

2020-11-23 Thread Alex Belits
From: Chris Metcalf This function checks to see if a vmstat worker is not running, and the vmstat diffs don't require an update. The function is called from the task-isolation code to see if we need to actually do some work to quiet vmstat. Signed-off-by: Chris Metcalf Signed-off-by: Alex Beli

[PATCH v2] net: mvpp2: divide fifo for dts-active ports only

2020-11-23 Thread stefanc
From: Stefan Chulski Tx/Rx FIFO is a HW resource limited by total size, but shared by all ports of same CP110 and impacting port-performance. Do not divide the FIFO for ports which are not enabled in DTS, so active ports could have more FIFO. No change in FIFO allocation if all 3 ports on the com

[PATCH v5 1/9] task_isolation: vmstat: add quiet_vmstat_sync function

2020-11-23 Thread Alex Belits
From: Chris Metcalf In commit f01f17d3705b ("mm, vmstat: make quiet_vmstat lighter") the quiet_vmstat() function became asynchronous, in the sense that the vmstat work was still scheduled to run on the core when the function returned. For task isolation, we need a synchronous version of the func

Re: [PATCH v2 12/24] kvm: arm64: Bootstrap PSCI SMC handler in nVHE EL2

2020-11-23 Thread Marc Zyngier
On Mon, 16 Nov 2020 20:43:06 +, David Brazdil wrote: > > Add a handler of PSCI SMCs in nVHE hyp code. The handler is initialized > with the version used by the host's PSCI driver and the function IDs it > was configured with. If the SMC function ID matches one of the > configured PSCI calls (

Re: Pinning ZONE_MOVABLE pages

2020-11-23 Thread Pavel Tatashin
On Mon, Nov 23, 2020 at 12:15 PM Jason Gunthorpe wrote: > > On Mon, Nov 23, 2020 at 11:06:21AM -0500, Pavel Tatashin wrote: > > > What I mean here is allowing users to guarantee that the page's PA is > > going to stay the same. Sort of a stronger mlock. Mlock only > > guarantees that the page is n

Re: [PATCH v2 02/24] exec: Simplify unshare_files

2020-11-23 Thread Oleg Nesterov
I'll try to actually read this series tomorrow but I see nothing wrong after the quick glance. Just one off-topic question, On 11/20, Eric W. Biederman wrote: > > --- a/fs/coredump.c > +++ b/fs/coredump.c > @@ -585,7 +585,6 @@ void do_coredump(const kernel_siginfo_t *siginfo) > int ispipe;

Re: [PATCH 5/7] kbuild: doc: split if_changed explanation to a separate section

2020-11-23 Thread Randy Dunlap
On 11/22/20 8:54 PM, Masahiro Yamada wrote: > The if_changed macro is currently explained in the section > "Commands useful for building a boot image", but the use of > if_changed is not limited to the boot image. > > It is often used together with custom rules. Let's split it as a > separate sect

Re: [tlb] e242a269fa: WARNING:at_mm/mmu_gather.c:#tlb_gather_mmu

2020-11-23 Thread Will Deacon
Hmm, this is interesting but my x86-fu is a bit lacking: On Sun, Nov 22, 2020 at 11:11:58PM +0800, kernel test robot wrote: > commit: e242a269fa4b7aee0b157ce5b1d7d12179fc3c44 ("[PATCH 5/6] tlb: > mmu_gather: Introduce tlb_gather_mmu_fullmm()") > url: > https://github.com/0day-ci/linux/commits/Wi

Re: [PATCH v6 5/5] regulator: add SCMI driver

2020-11-23 Thread Mark Brown
On Thu, Nov 19, 2020 at 07:10:51PM +, Cristian Marussi wrote: > + ret = handle->voltage_ops->config_get(handle, sreg->id, > + &config); > + if (ret) { > + dev_err(&sreg->sdev->dev, > + "Error %d reading regulator

RE: [EXT] Re: [PATCH v1] net: mvpp2: divide fifo for dts-active ports only

2020-11-23 Thread Stefan Chulski
> -Original Message- > From: Russell King - ARM Linux admin > Sent: Monday, November 23, 2020 7:30 PM > To: Stefan Chulski > Cc: net...@vger.kernel.org; thomas.petazz...@bootlin.com; > da...@davemloft.net; Nadav Haklai ; Yan Markman > ; linux-kernel@vger.kernel.org; k...@kernel.org; >

[PATCH 1/3] scsi: hisi_sas: Reduce some indirection in v3 hw driver

2020-11-23 Thread John Garry
Sometimes local functions are called indirectly from the hw driver, which only makes the code harder to follow. Remove these. Method .hw_init is only called from platform driver probe, which is not relevant, so don't set this either. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_

[PATCH 3/3] scsi: hisi_sas: Move debugfs code to v3 hw driver

2020-11-23 Thread John Garry
From: Luo Jiaxing Relocate all the debugfs code for DFX to v3 hw as there are only longer plans to support earlier HW versions. Signed-off-by: Luo Jiaxing Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 28 - drivers/scsi/hisi_sas/hisi_sas_main.c | 1346 +

[PATCH 0/3] hisi_sas: A small bunch of misc patches

2020-11-23 Thread John Garry
This series contains a small bunch of patches for the driver, including: - Fix-up on error paths for v3 hw driver - Relocate as much debugfs code as possible to v3 hw driver since no other hw drivers support it - A small tidy-up patch John Garry (1): scsi: hisi_sas: Reduce some indirection in

[PATCH 2/3] scsi: hisi_sas: Fix up probe error handling for v3 hw

2020-11-23 Thread John Garry
From: Xiang Chen Fix some rollbacks in function hisi_sas_v3_probe() and interrupt_init_v3_hw(). Fixes: 8d98416a55eb ("scsi: hisi_sas: Switch v3 hw to MQ") Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 26 +++--- 1 file cha

[PATCH v5 0/9] "Task_isolation" mode

2020-11-23 Thread Alex Belits
This is an update of task isolation work that was originally done by Chris Metcalf and maintained by him until November 2017. It is adapted to the current kernel and cleaned up to implement its functionality in a more complete and cleaner manner. Previous version is at https://lore.kernel.org/net

Re: [PATCH v2] char: tpm: add i2c driver for cr50

2020-11-23 Thread Adrian Ratiu
On Fri, 20 Nov 2020, Helen Koike wrote: Hello Adrian, I just spotted small things (nothing major), please see below. Hi Helen, I've addressed all the points you raised and left some minor comments below, but I will wait a little longer before posting v3 so others will also have a chance t

RE: [PATCH 2/4] x86/mce: move the mce_panic() call and kill_it assignments at the right places

2020-11-23 Thread Paoloni, Gabriele
> -Original Message- > From: Borislav Petkov > Sent: Monday, November 23, 2020 6:19 PM > To: Paoloni, Gabriele > Cc: Luck, Tony ; t...@linutronix.de; > mi...@redhat.com; x...@kernel.org; h...@zytor.com; linux- > e...@vger.kernel.org; linux-kernel@vger.kernel.org; linux- > saf...@lists.eli

Re: [PATCH 2/7] kbuild: doc: replace arch/$(ARCH)/ with arch/$(SRCARCH)/

2020-11-23 Thread Randy Dunlap
Hi- On 11/22/20 8:53 PM, Masahiro Yamada wrote: > --- > > Documentation/kbuild/makefiles.rst | 61 +- > Documentation/kbuild/modules.rst | 2 +- > 2 files changed, 35 insertions(+), 28 deletions(-) > > diff --git a/Documentation/kbuild/makefiles.rst > b/Document

Re: [PATCH v5 2/7] media: v4l2: Add extended buffer operations

2020-11-23 Thread Helen Koike
On 11/23/20 12:46 PM, Tomasz Figa wrote: > On Tue, Nov 24, 2020 at 12:08 AM Helen Koike > wrote: >> >> Hi Hans, >> >> Thank you for your review. >> >> On 9/9/20 9:27 AM, Hans Verkuil wrote: >>> Hi Helen, >>> >>> Again I'm just reviewing the uAPI. >>> >>> On 04/08/2020 21:29, Helen Koike wrote:

Re: [PATCH v2 1/4] pwm: pca9685: Switch to atomic API

2020-11-23 Thread Sven Van Asbroeck
Hi Clemens, some cool changes, thank you !! Constructive feedback below. On Mon, Nov 23, 2020 at 11:36 AM Clemens Gruber wrote: > > Changes since v1: > - Fixed a logic error > - Impoved PM runtime handling and fixed !CONFIG_PM > - Write default prescale reg value if invalid in probe > - Reuse ful

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