[git pull] m68knommu changes for v5.8-rc4

2020-07-02 Thread Greg Ungerer
Hi Linus, Please pull important m68knommu fixes for v5.8-rc4 Regards Greg The following changes since commit 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68: Linux 5.8-rc3 (2020-06-28 15:00:24 -0700) are available in the Git repository at:

[PATCH v2] lib: update DEBUG_SHIRQ docs to match reality

2020-07-02 Thread Wolfram Sang
There is no extra interrupt when registering a shared interrupt handler since 2011. Update the Kconfig text to make it clear and to avoid wrong assumptions when debugging issues found by it. Fixes: 6d83f94db95c ("genirq: Disable the SHIRQ_DEBUG call in request_threaded_irq for now") Link:

Re: [PATCH v2 09/11] ima: Move validation of the keyrings conditional into ima_validate_rule()

2020-07-02 Thread Tyler Hicks
On 2020-06-30 19:07:29, Mimi Zohar wrote: > On Fri, 2020-06-26 at 17:38 -0500, Tyler Hicks wrote: > > Use ima_validate_rule() to ensure that the combination of a hook > > function and the keyrings conditional is valid and that the keyrings > > conditional is not specified without an explicit

Re: [PATCH v2] x86/speculation/l1tf: Add KConfig for setting the L1D cache flush mode

2020-07-02 Thread Abhishek Bhardwaj
On Thu, Jul 2, 2020 at 3:01 PM Randy Dunlap wrote: > > Hi-- > > On 7/2/20 2:38 PM, Abhishek Bhardwaj wrote: > > This change adds a new kernel configuration that sets the l1d cache > > flush setting at compile time rather than at run time. > > > > Signed-off-by: Abhishek Bhardwaj > > > > --- > >

Re: [PATCH 4.19 082/131] nvme: fix possible deadlock when I/O is blocked

2020-07-02 Thread Sagi Grimberg
Hi! From: Sagi Grimberg [ Upstream commit 3b4b19721ec652ad2c4fe51dfbe5124212b5f581 ] Revert fab7772bfbcf ("nvme-multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns") When adding a new namespace to the head disk (via nvme_mpath_set_live) we will see partition scan which

[PATCH] hwmon: (pmbus) fix a typo in Kconfig SENSORS_IR35221 option

2020-07-02 Thread rentao . bupt
From: Tao Ren Fix a typo in SENSORS_IR35221 option: module name should be "ir35221" instead of "ir35521". Fixes: 8991ebd9c9a6 ("hwmon: (pmbus) Add client driver for IR35221") Cc: Samuel Mendoza-Jonas Signed-off-by: Tao Ren --- drivers/hwmon/pmbus/Kconfig | 2 +- 1 file changed, 1

[PATCH v3] x86/speculation/l1tf: Add KConfig for setting the L1D cache flush mode

2020-07-02 Thread Abhishek Bhardwaj
This change adds a new kernel configuration that sets the l1d cache flush setting at compile time rather than at run time. Signed-off-by: Abhishek Bhardwaj --- Changes in v3: - Change depends on to only x86_64. - Remove copy paste errors at the end of the KConfig. Changes in v2: - Fix typo in

Re: [RFC] many-files Documentation patch

2020-07-02 Thread Jonathan Corbet
On Thu, 2 Jul 2020 15:05:01 -0700 Randy Dunlap wrote: > This patch series eliminates/corrects many doubled words, such as > "the the", "of of", "with with", and "and and". > It mostly drops the doubled word, but sometimes it modifies one or two > words so that they make sense. > > > Can (will)

[PATCH v2] firmware: improve description of firmware_request_nowarn

2020-07-02 Thread Wolfram Sang
The doubled 'however' is confusing. Simplify the comment a little and reformat the paragraph. Signed-off-by: Wolfram Sang Acked-by: Luis Chamberlain --- Changes since v1: * removed uneeded empty line (sorry!) * added Luis' ack drivers/base/firmware_loader/main.c | 12 ++-- 1 file

Re: [PATCH] Replace HTTP links with HTTPS ones: BPF (Safe dynamic programs and tools)

2020-07-02 Thread Alexei Starovoitov
On Thu, Jul 2, 2020 at 1:05 PM Alexander A. Klimov wrote: > > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't

[RFC] many-files Documentation patch

2020-07-02 Thread Randy Dunlap
This patch series eliminates/corrects many doubled words, such as "the the", "of of", "with with", and "and and". It mostly drops the doubled word, but sometimes it modifies one or two words so that they make sense. Can (will) Jon merge this patch series or do I send many separate patches to

Re: [PATCH] vmlinux.lds.h: Coalesce transient LLVM dead code elimination sections

2020-07-02 Thread Danny Lin
Jul 2, 2020 9:04:25 AM Nathan Chancellor : > On Thu, Jul 02, 2020 at 08:54:53AM -0700, Kees Cook wrote: >> On Thu, Jul 02, 2020 at 01:54:00AM -0700, Danny Lin wrote: >>> A recent LLVM 11 commit [1] made LLD stop implicitly coalescing some >>> temporary LLVM sections, namely

Re: [PATCH v2] x86/speculation/l1tf: Add KConfig for setting the L1D cache flush mode

2020-07-02 Thread Randy Dunlap
Hi-- On 7/2/20 2:38 PM, Abhishek Bhardwaj wrote: > This change adds a new kernel configuration that sets the l1d cache > flush setting at compile time rather than at run time. > > Signed-off-by: Abhishek Bhardwaj > > --- > > Changes in v2: > - Fix typo in the help of the new KConfig. > >

Re: [PATCH v4 3/3] prctl: Allow ptrace capable processes to change /proc/self/exe

2020-07-02 Thread Paul Moore
On Thu, Jul 2, 2020 at 5:16 PM Serge E. Hallyn wrote: > On Wed, Jul 01, 2020 at 08:49:06AM +0200, Adrian Reber wrote: > > From: Nicolas Viennot > > > > Previously, the current process could only change the /proc/self/exe > > link with local CAP_SYS_ADMIN. > > This commit relaxes this restriction

[for-next][PATCH 00/18] tracing: Updatse for 5.9

2020-07-02 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 29ce24519c0692ca7d998d7444a9e016a4c44fa7 Nicholas Piggin (1): ring-buffer: speed up buffer resets by avoiding synchronize_rcu for each CPU Steven Rostedt (VMware) (13): tracing: Only allow

[for-next][PATCH 09/18] tracing: Move pipe reference to trace array instead of current_tracer

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" If a process has the trace_pipe open on a trace_array, the current tracer for that trace array should not be changed. This was original enforced by a global lock, but when instances were introduced, it was moved to the current_trace. But this structure is shared

[for-next][PATCH 01/18] tracing: Only allow trace_array_printk() to be used by instances

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" To prevent default "trace_printks()" from spamming the top level tracing ring buffer, only allow trace instances to use trace_array_printk() (which can be used without the trace_printk() start up warning). Signed-off-by: Steven Rostedt (VMware) ---

[for-next][PATCH 07/18] tracing: define DEFINE_EVENT_PRINT not related to DEFINE_EVENT

2020-07-02 Thread Steven Rostedt
From: Wei Yang Current definition define DEFINE_EVENT_PRINT to be DEFINE_EVENT. Actually, at this point DEFINE_EVENT is already an empty macro. Let's cut the relationship between DEFINE_EVENT_PRINT and DEFINE_EVENT. Link:

[for-next][PATCH 02/18] x86/ftrace: Make non direct case the default in ftrace_regs_caller

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" If a direct function is hooked along with one of the ftrace registered functions, then the ftrace_regs_caller is attached to the function that shares the direct hook as well as the ftrace hook. The ftrace_regs_caller will call ftrace_ops_list_func() that iterates

[for-next][PATCH 04/18] x86/ftrace: Do not jump to direct code in created trampolines

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When creating a trampoline based on the ftrace_regs_caller code, nop out the jnz test that would jmup to the code that would return to a direct caller (stored in the ORIG_RAX field) and not back to the function that called it. Link:

[for-next][PATCH 08/18] tracing: not necessary to define DEFINE_EVENT_PRINT to be empty again

2020-07-02 Thread Steven Rostedt
From: Wei Yang After the previous cleanup, DEFINE_EVENT_PRINT's definition has no relationship with DEFINE_EVENT. So After we re-define DEFINE_EVENT, it is not necessary to define DEFINE_EVENT_PRINT to be empty again. Link:

[for-next][PATCH 17/18] ring-buffer: Call trace_clock_local() directly for RETPOLINE kernels

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" After doing some benchmarks and examining the code, I found that the ring buffer clock calls were quite expensive, and noticed that it uses retpolines. This is because the ring buffer clock is programmable, and can be set. But in most cases it simply uses the

[for-next][PATCH 13/18] ring-buffer: speed up buffer resets by avoiding synchronize_rcu for each CPU

2020-07-02 Thread Steven Rostedt
From: Nicholas Piggin On a 144 thread system, `perf ftrace` takes about 20 seconds to start up, due to calling synchronize_rcu() for each CPU. cat /proc/108560/stack 0xc0003e7eb336f470 __switch_to+0x2e0/0x480 __wait_rcu_gp+0x20c/0x220 synchronize_rcu+0x9c/0xc0

[for-next][PATCH 15/18] ring-buffer: Consolidate add_timestamp to remove some branches

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Reorganize a little the logic to handle adding the absolute time stamp, extended and forced time stamps, in such a way to remove a branch or two. This is just a micro optimization. Also add before and after time stamps to the rb_event_info structure to display

[for-next][PATCH 11/18] ring-buffer: Incorporate absolute timestamp into add_timestamp logic

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Instead of calling out the absolute test for each time to check if the ring buffer wants absolute time stamps for all its recording, incorporate it with the add_timestamp field and turn it into flags for faster processing between wanting a absolute tag and needing

[for-next][PATCH 06/18] tracing: not necessary re-define DEFINE_EVENT_PRINT

2020-07-02 Thread Steven Rostedt
From: Wei Yang The definition of DEFINE_EVENT_PRINT is not changed after previous one, so not necessary to re-define is as the same form. Link: http://lkml.kernel.org/r/20200612092844.56107-3-richard.weiy...@linux.alibaba.com Signed-off-by: Wei Yang Signed-off-by: Steven Rostedt (VMware)

[for-next][PATCH 03/18] x86/ftrace: Only have the builtin ftrace_regs_caller call direct hooks

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" If a direct hook is attached to a function that ftrace also has a function attached to it, then it is required that the ftrace_ops_list_func() is used to iterate over the registered ftrace callbacks. This will also include the direct ftrace_ops helper, that tells

Re: [PATCH v4 3/3] prctl: Allow ptrace capable processes to change /proc/self/exe

2020-07-02 Thread Serge E. Hallyn
On Wed, Jul 01, 2020 at 10:55:37AM +0200, Christian Brauner wrote: > On Wed, Jul 01, 2020 at 08:49:06AM +0200, Adrian Reber wrote: > > From: Nicolas Viennot > > > > Previously, the current process could only change the /proc/self/exe > > link with local CAP_SYS_ADMIN. > > This commit relaxes

[for-next][PATCH 10/18] ring-buffer: Have nested events still record running time stamp

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Up until now, if an event is interrupted while it is recorded by an interrupt, and that interrupt records events, the time of those events will all be the same. This is because events only record the delta of the time since the previous event (or beginning of a

[for-next][PATCH 12/18] ring-buffer: Add rb_time_t 64 bit operations for speeding up 32 bit

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" After a discussion with the new time algorithm to have nested events still have proper time keeping but required using local64_t atomic operations. Mathieu was concerned about the performance this would have on 32 bit machines, as in most cases, atomic 64 bit

[for-next][PATCH 16/18] ring-buffer: Move the add_timestamp into its own function

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Make a helper function rb_add_timestamp() that moves the adding of the extended time stamps into its own function. Also, remove the noinline and inline for the functions it calls, as recent benchmarks appear they do not make a difference (just let gcc decide).

[for-next][PATCH 05/18] tracing: not necessary to undefine DEFINE_EVENT again

2020-07-02 Thread Steven Rostedt
From: Wei Yang After un-define DEFINE_EVENT in Stage 2, DEFINE_EVENT is not defined to a specific form. It is not necessary to un-define it again. Let's skip this. Link: http://lkml.kernel.org/r/20200612092844.56107-2-richard.weiy...@linux.alibaba.com Signed-off-by: Wei Yang Signed-off-by:

[for-next][PATCH 18/18] ring-buffer: Do not trigger a WARN if clock going backwards is detected

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" After tweaking the ring buffer to be a bit faster, a warning is triggering on one of my machines, and causing my tests to fail. This warning is caused when the delta (current time stamp minus previous time stamp), is larger than the max time held by the ring

[for-next][PATCH 14/18] ring-buffer: Mark the !tail (crossing a page) as unlikely

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" It is the uncommon case where an event crosses a sub buffer boundary (page) mark that check at the end of reserving an event as unlikely. Suggested-by: Mathieu Desnoyers Signed-off-by: Steven Rostedt (VMware) --- kernel/trace/ring_buffer.c | 2 +- 1 file

Re: objtool clac/stac handling change..

2020-07-02 Thread Linus Torvalds
On Thu, Jul 2, 2020 at 1:59 PM Al Viro wrote: > > I'm not sure it's the right solution in this case. Look at the call chain > and the stuff done nearby (that __clear_user(), for example)... > > I'm not saying that this code is not awful - it certainly is. But it's > not that simple,

Re: [PATCH] docs/core-api: memory-allocation: describe reclaim behaviour

2020-07-02 Thread Mike Rapoport
Gentle ping. On Fri, Jun 26, 2020 at 05:29:50PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > Changelog of commit dcda9b04713c ("mm, tree wide: replace __GFP_REPEAT by > __GFP_RETRY_MAYFAIL with more useful semantic") has very nice description > of GFP flags that affect reclaim

RE: Writing to a const pointer: is this supposed to happen?

2020-07-02 Thread Kars Mulder
On Thursday, July 02, 2020 09:55 CEST, David Laight wrote: > Hmm... sscanf() is also horrid. > Surprisingly difficult to use correctly. > > It is usually best to use strchr() (and maybe str[c]scn()) > to parse strings. > For numbers use whatever the kernels current 'favourite' implementation >

Re: [PATCH 0/8] mm: cleanup usage of

2020-07-02 Thread Mike Rapoport
Gentle ping. On Sat, Jun 27, 2020 at 05:34:45PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > Hi, > > Most architectures have very similar versions of pXd_alloc_one() and > pXd_free_one() for intermediate levels of page table. > These patches add generic versions of these functions in

Re: [PATCH] MAINTAINERS: Add Shengjiu to reviewer list of sound/soc/fsl

2020-07-02 Thread Fabio Estevam
On Thu, Jul 2, 2020 at 4:31 PM Nicolin Chen wrote: > > Add Shengjiu who's actively working on the latest fsl/nxp audio drivers. > > Signed-off-by: Nicolin Chen > Cc: Shengjiu Wang Reviewed-by: Fabio Estevam

Re: [PATCH 1/2] [RFC] media: rcar-vin: send a V4L2 event to vdev if no frame captured after a timeout

2020-07-02 Thread Niklas Söderlund
Hi Michael, On 2020-07-02 14:33:41 +0200, Michael Rodin wrote: > Hi Niklas, > > On Wed, Jul 01, 2020 at 12:17:10AM +0200, Niklas Söderlund wrote: > > Hi Michael, > > > > Thanks for your RFC. > > Thanks your your feedback! > > > On 2020-06-19 19:46:10 +0200, Michael Rodin wrote: > > > Data

[GIT PULL] Devicetree fixes for 5.8, v2

2020-07-02 Thread Rob Herring
Linus, Please pull DT fixes for 5.8. I wouldn't normally update dtc at this point in the cycle, but I've been waiting on fixes to land upstream for a while now. Rob The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407: Linux 5.8-rc1 (2020-06-14 12:45:04 -0700) are

Re: [PATCH][next] xen-netfront: remove redundant assignment to variable 'act'

2020-07-02 Thread David Miller
From: Colin King Date: Thu, 2 Jul 2020 15:22:23 +0100 > From: Colin Ian King > > The variable act is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. > > Addresses-Coverity: ("Unused

[PATCH v2] x86/speculation/l1tf: Add KConfig for setting the L1D cache flush mode

2020-07-02 Thread Abhishek Bhardwaj
This change adds a new kernel configuration that sets the l1d cache flush setting at compile time rather than at run time. Signed-off-by: Abhishek Bhardwaj --- Changes in v2: - Fix typo in the help of the new KConfig. arch/x86/kernel/cpu/bugs.c | 8 arch/x86/kvm/Kconfig | 17

Re: weird loadavg on idle machine post 5.7

2020-07-02 Thread Mel Gorman
On Thu, Jul 02, 2020 at 01:15:48PM -0400, Dave Jones wrote: > When I upgraded my firewall to 5.7-rc2 I noticed that on a mostly > idle machine (that usually sees loadavg hover in the 0.xx range) > that it was consistently above 1.00 even when there was nothing running. > All that perf showed was

Re: [PATCH] MAINTAINERS: net: macb: add Claudiu as co-maintainer

2020-07-02 Thread David Miller
From: Date: Thu, 2 Jul 2020 15:00:21 +0200 > From: Nicolas Ferre > > I would like that Claudiu becomes co-maintainer of the Cadence macb > driver. He's already participating to lots of reviews and enhancements > to this driver and knows the different versions of this controller. > >

Re: [PATCH] x86/speculation/l1tf: Add KConfig for setting the L1D cache flush mode

2020-07-02 Thread kernel test robot
Hi Abhishek, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/auto-latest] [also build test WARNING on linux/master tip/x86/core kvm/linux-next linus/master v5.8-rc3 next-20200702] [If your patch is applied to the wrong git tree, kindly drop us a note

Re: [PATCH v4] selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3

2020-07-02 Thread Shuah Khan
On 7/2/20 1:44 PM, Jarkko Sakkinen wrote: On Fri, Jun 26, 2020 at 11:40:52AM +0800, Pengfei Xu wrote: Python 2 is no longer supported by the Python upstream project, so upgrade TPM2 tests to Python 3. Signed-off-by: Pengfei Xu I think that it's perfect now. Thank you. Also 1. I checked

Re: [PATCH net-next 0/4] net: ipa: simplify endpoint programming

2020-07-02 Thread David Miller
From: Alex Elder Date: Thu, 2 Jul 2020 06:25:33 -0500 > Add tests to functions so they don't update undefined endpoint > registers, rather than requiring the caller to avoid calling them. > > Move the call to a workaround function required when suspending > inside the function that puts an

[PATCH 2/5] clk: vc5: use a dedicated struct to describe the output drivers

2020-07-02 Thread Luca Ceresoli
Reusing the generic struct vc5_hw_data for all blocks is handy. However it implies we allocate space the div_int and div_frc fields even for the output drivers where they are unused. Moreover a follow-up commit will add a new field needed only for output drivers, thus the memory waste would

[PATCH 4/5] dt-bindings: clk: versaclock5: add output drive mode property

2020-07-02 Thread Luca Ceresoli
Add a node with properties for each output port, and a property inside it to describe the output drive mode. Signed-off-by: Luca Ceresoli --- .../bindings/clock/idt,versaclock5.yaml | 42 +++ 1 file changed, 42 insertions(+) diff --git

[PATCH 1/5] MAINTAINERS: take over IDT VersaClock 5 clock driver

2020-07-02 Thread Luca Ceresoli
Marek has been the primary developer of this driver (thanks!). Now as he is not working on it anymore he suggested I take over maintainership. Cc: Marek Vasut Signed-off-by: Luca Ceresoli --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS

[PATCH 5/5] clk: vc5: optionally configure the output drive mode

2020-07-02 Thread Luca Ceresoli
The Versaclock chips can drive the output pins in several modes: LVDS, CMOS, LVPECL etc. Allow configuring the output mode from device tree. The configuration is optional. If not specified, the mode will not be configured and the drive mode will be the chip default. Signed-off-by: Luca Ceresoli

[PATCH 3/5] dt-bindings: clk: versaclock5: convert to yaml

2020-07-02 Thread Luca Ceresoli
Convert to yaml the VersaClock bindings document. The mapping between clock specifier and physical pins cannot be described formally in yaml schema, then keep it verbatim in the description field. Signed-off-by: Luca Ceresoli --- .../bindings/clock/idt,versaclock5.txt| 92

Re: [PATCH net] net: dsa: microchip: set the correct number of ports

2020-07-02 Thread David Miller
From: Codrin Ciubotariu Date: Thu, 2 Jul 2020 12:44:50 +0300 > The number of ports is incorrectly set to the maximum available for a DSA > switch. Even if the extra ports are not used, this causes some functions > to be called later, like port_disable() and port_stp_state_set(). If the > driver

RE: [PATCH] igb: reinit_locked() should be called with rtnl_lock

2020-07-02 Thread Kirsher, Jeffrey T
> -Original Message- > From: Francesco Ruggeri > Sent: Thursday, July 2, 2020 13:20 > To: Kirsher, Jeffrey T > Cc: Nguyen, Anthony L ; Jakub Kicinski > ; David Miller ; open list ker...@vger.kernel.org>; netdev ; intel-wired- > l...@lists.osuosl.org > Subject: Re: [PATCH] igb:

Re: [PATCH net-next v2 0/4] net: macb: few code cleanups

2020-07-02 Thread David Miller
From: Claudiu Beznea Date: Thu, 2 Jul 2020 12:05:57 +0300 > Patches in this series cleanup a bit macb code. ... Series applied, thanks.

Re: [PATCH v3 01/14] vfio/type1: Refactor vfio_iommu_type1_ioctl()

2020-07-02 Thread Alex Williamson
On Wed, 24 Jun 2020 01:55:14 -0700 Liu Yi L wrote: > This patch refactors the vfio_iommu_type1_ioctl() to use switch instead of > if-else, and each cmd got a helper function. > > Cc: Kevin Tian > CC: Jacob Pan > Cc: Alex Williamson > Cc: Eric Auger > Cc: Jean-Philippe Brucker > Cc: Joerg

Re: [RFC PATCH v2 00/18] Support for Tegra video capture from external sensor

2020-07-02 Thread Sowjanya Komatineni
On 7/2/20 7:08 AM, Hans Verkuil wrote: Hi Sowjanya, On 17/06/2020 03:41, Sowjanya Komatineni wrote: This series adds support for video capture from external camera sensor to Tegra video driver. Jetson TX1 has camera expansion connector and supports custom camera module designed as per TX1

Re: [PATCH v3 10/14] vfio/type1: Allow invalidating first-level/stage IOMMU cache

2020-07-02 Thread Alex Williamson
On Wed, 24 Jun 2020 01:55:23 -0700 Liu Yi L wrote: > This patch provides an interface allowing the userspace to invalidate > IOMMU cache for first-level page table. It is required when the first > level IOMMU page table is not managed by the host kernel in the nested > translation setup. > >

Re: [PATCH v3 09/14] vfio/type1: Support binding guest page tables to PASID

2020-07-02 Thread Alex Williamson
On Wed, 24 Jun 2020 01:55:22 -0700 Liu Yi L wrote: > Nesting translation allows two-levels/stages page tables, with 1st level > for guest translations (e.g. GVA->GPA), 2nd level for host translations > (e.g. GPA->HPA). This patch adds interface for binding guest page tables > to a PASID. This

Re: [PATCH net-next v3 0/3] bridge: mrp: Add support for getting the status

2020-07-02 Thread David Miller
From: Horatiu Vultur Date: Thu, 2 Jul 2020 10:13:04 +0200 > This patch series extends the MRP netlink interface to allow the userspace > daemon to get the status of the MRP instances in the kernel. > > v3: > - remove misleading comment > - fix to use correctly the RCU > > v2: > - fix

Re: [PATCH v3 06/14] vfio/type1: Add VFIO_IOMMU_PASID_REQUEST (alloc/free)

2020-07-02 Thread Alex Williamson
On Wed, 24 Jun 2020 01:55:19 -0700 Liu Yi L wrote: > This patch allows user space to request PASID allocation/free, e.g. when > serving the request from the guest. > > PASIDs that are not freed by userspace are automatically freed when the > IOASID set is destroyed when process exits. > > Cc:

Re: [RFC PATCH v2 12/18] media: tegra-video: Add support for selection ioctl ops

2020-07-02 Thread Sowjanya Komatineni
On 7/2/20 6:54 AM, Hans Verkuil wrote: On 17/06/2020 03:41, Sowjanya Komatineni wrote: This patch adds selection v4l2 ioctl operations to allow configuring a selection rectangle in the sensor through the Tegra video device node. Some sensor drivers supporting crop uses try_crop rectangle

Re: [PATCH 4.19 082/131] nvme: fix possible deadlock when I/O is blocked

2020-07-02 Thread Pavel Machek
Hi! > From: Sagi Grimberg > > [ Upstream commit 3b4b19721ec652ad2c4fe51dfbe5124212b5f581 ] > > Revert fab7772bfbcf ("nvme-multipath: revalidate nvme_ns_head gendisk > in nvme_validate_ns") > > When adding a new namespace to the head disk (via nvme_mpath_set_live) > we will see partition scan

Re: [PATCH 4.19 119/131] tracing: Fix event trigger to accept redundant spaces

2020-07-02 Thread Pavel Machek
Hi! > commit 6784beada631800f2c5afd567e5628c843362cee upstream. > > Fix the event trigger to accept redundant spaces in > the trigger input. > > For example, these return -EINVAL > > echo " traceon" > events/ftrace/print/trigger > echo "traceon if common_pid == 0" >

Re: weird loadavg on idle machine post 5.7

2020-07-02 Thread Paul Gortmaker
[weird loadavg on idle machine post 5.7] On 02/07/2020 (Thu 13:15) Dave Jones wrote: > When I upgraded my firewall to 5.7-rc2 I noticed that on a mostly > idle machine (that usually sees loadavg hover in the 0.xx range) > that it was consistently above 1.00 even when there was nothing running. >

Re: [PATCH] scsi: sd: stop SSD (non-rotational) disks before reboot

2020-07-02 Thread Pavel Machek
Hi! > > during a FLASH write or erase can cause from weakened cells, to much > > larger damage. It is possible to harden the chip or the design against > > this, but it is *expensive*. And even if warded off by hardening and no > > FLASH damage happens, an erase/program cycle must be done on

Re: [PATCH v3 04/14] vfio: Add PASID allocation/free support

2020-07-02 Thread Alex Williamson
On Wed, 24 Jun 2020 01:55:17 -0700 Liu Yi L wrote: > Shared Virtual Addressing (a.k.a Shared Virtual Memory) allows sharing > multiple process virtual address spaces with the device for simplified > programming model. PASID is used to tag an virtual address space in DMA > requests and to

Re: [PATCH v4 3/3] prctl: Allow ptrace capable processes to change /proc/self/exe

2020-07-02 Thread Serge E. Hallyn
On Wed, Jul 01, 2020 at 08:49:06AM +0200, Adrian Reber wrote: > From: Nicolas Viennot > > Previously, the current process could only change the /proc/self/exe > link with local CAP_SYS_ADMIN. > This commit relaxes this restriction by permitting such change with > CAP_CHECKPOINT_RESTORE, and the

Re: [PATCH 4.19 114/131] ocfs2: avoid inode removal while nfsd is accessing it

2020-07-02 Thread Pavel Machek
Hi! > commit 4cd9973f9ff69e37dd0ba2bd6e6423f8179c329a upstream. > > Patch series "ocfs2: fix nfsd over ocfs2 issues", v2. > > This is a series of patches to fix issues on nfsd over ocfs2. patch 1 > is to avoid inode removed while nfsd access it patch 2 & 3 is to fix a > panic issue. > > This

Re: BTRFS/EXT4 Data Corruption

2020-07-02 Thread Pavel Machek
Hi! > After alot of fiddling around it turned out that the problem goes away if > doing "cp --sparse=never" > when copying the files. This would to me exclude any hardware errors and > feels more like something > deeper inside the kernel. If files contain random data, they are never sparse. It

Re: [git pull] drm for 5.8-rc1

2020-07-02 Thread James Jones
On 7/2/20 1:22 AM, Daniel Stone wrote: Hi, On Wed, 1 Jul 2020 at 20:45, James Jones wrote: OK, I think I see what's going on. In the Xorg modesetting driver, the logic is basically: if (gbm_has_modifiers && DRM_CAP_ADDFB2_MODIFIERS != 0) { drmModeAddFB2WithModifiers(...,

[PATCH v2 2/2] dt-bindings: regulator: Document bindings for fan53880

2020-07-02 Thread Christoph Fritz
Add device tree binding information for fan53880 regulator driver. Signed-off-by: Christoph Fritz --- .../bindings/regulator/onnn,fan53880.yaml | 85 +++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/onnn,fan53880.yaml

[PATCH v2 0/2] regulator: Add FAN53880 support

2020-07-02 Thread Christoph Fritz
This patchset adds a regulator driver with dt-bindings documentation in the new yaml format for a power management IC from Fairchild (now ON Semiconductor) named FAN53880. The chip was found on a camera sensor board which will get a v4lsubdev driver in the future. The FAN53880 differs a lot

[PATCH v2 1/2] regulator: fan53880: Add initial support

2020-07-02 Thread Christoph Fritz
This patch adds support for ON Semiconductor FAN53880 regulator. The FAN53880 is an I2C porgrammable power management IC (PMIC) that contains a BUCK (step-down converter), four LDOs (low dropouts) and one BOOST (step-up converter). It is designed for mobile power applications. Signed-off-by:

Re: [PATCH 1/2] regulator: fan53880: Add initial support

2020-07-02 Thread Christoph Fritz
On Wed, 2020-07-01 at 19:09 +0100, Mark Brown wrote: > /mnt/kernel/drivers/regulator/fan53880.c:63:2: note: in expansion of > macro 'FAN53880_LDO' > FAN53880_LDO(1, "VIN12", 280), > ^~~~ > /mnt/kernel/include/linux/regulator/driver.h:47:2: error: field name > not in record or union

Re: [PATCH v33 12/21] x86/sgx: Allow a limited use of ATTRIBUTE.PROVISIONKEY for attestation

2020-07-02 Thread Dr. Greg
Good afternoon, I hope the week is progressing productively to an end for everyone. I think it was almost two months ago now that Thomas Gleixner indicated that security and privacy issues that we were raising with respect to this driver, with what we believe is legitimate domain expertise,

Re: [PATCH v7 02/13] dt-bindings: panel: Convert rocktech, jh057n00900 to yaml

2020-07-02 Thread Ondřej Jirman
On Thu, Jul 02, 2020 at 02:51:43PM -0600, Rob Herring wrote: > On Wed, 01 Jul 2020 18:29:17 +0200, Ondrej Jirman wrote: > > Convert Rocktech MIPI DSI panel driver from txt to yaml bindings. > > > > Signed-off-by: Ondrej Jirman > > --- > > .../display/panel/rocktech,jh057n00900.txt| 23

Re: [PATCH 4/4] interconnect: qcom: Fix small BW votes being truncated to zero

2020-07-02 Thread Mike Tipton
On 7/2/2020 4:11 AM, Georgi Djakov wrote: Hi Mike, On 6/23/20 07:08, Mike Tipton wrote: Small BW votes that translate to less than a single BCM unit are currently truncated to zero. Ensure that non-zero BW requests always result in at least a vote of 1 to BCM. Fixes: 976daac4a1c5

Re: [PATCH v2 1/2] xen/xenbus: avoid large structs and arrays on the stack

2020-07-02 Thread Boris Ostrovsky
On 7/1/20 8:16 AM, Juergen Gross wrote: > xenbus_map_ring_valloc() and its sub-functions are putting quite large > structs and arrays on the stack. This is problematic at runtime, but > might also result in build failures (e.g. with clang due to the option > -Werror,-Wframe-larger-than=... used).

Re: [PATCH 6/8] powerpc/pseries: implement paravirt qspinlocks for SPLPAR

2020-07-02 Thread Waiman Long
On 7/2/20 3:48 AM, Nicholas Piggin wrote: Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/paravirt.h | 23 arch/powerpc/include/asm/qspinlock.h | 55 +++ arch/powerpc/include/asm/qspinlock_paravirt.h | 5 ++

Re: [PATCH 1/4] interconnect: qcom: Support bcm-voter-specific TCS wait behavior

2020-07-02 Thread Mike Tipton
On 7/2/2020 2:02 AM, Georgi Djakov wrote: Hi Mike, On 6/23/20 07:08, Mike Tipton wrote: Currently, all bcm-voters set tcs_cmd::wait=true for the last VCD command in each TCS (AMC, WAKE, and SLEEP). However, some bcm-voters don't need the completion and instead need to optimize for latency. For

Re: [PATCH v1 6/9] dt-bindings: dma: add fsl-edma3 yaml

2020-07-02 Thread Rob Herring
On Thu, 02 Jul 2020 23:08:06 +0800, Robin Gong wrote: > Add device binding doc for fsl-edma3 driver. > > Signed-off-by: Robin Gong > --- > .../devicetree/bindings/dma/nxp,fsl-edma3.yaml | 129 > + > 1 file changed, 129 insertions(+) > create mode 100644

Re: [PATCH v5 01/10] dt-bindings: dmaengine: convert Actions Semi Owl SoCs bindings to yaml

2020-07-02 Thread Rob Herring
On Thu, 02 Jul 2020 20:22:47 +0530, Amit Singh Tomar wrote: > Converts the device tree bindings for the Actions Semi Owl SoCs DMA > Controller over to YAML schemas. > > It also adds new compatible string "actions,s700-dma". > > Reviewed-by: Rob Herring > Signed-off-by: Amit Singh Tomar > --- >

Re: [PATCH 1/4] dt-bindings: media: csi2dc: add bindings for microchip csi2dc

2020-07-02 Thread Rob Herring
On Thu, 02 Jul 2020 16:23:56 +0300, Eugen Hristev wrote: > Add bindings documentation for microchip CSI2 Demultiplexer controller. > > CSI2DC is a demultiplexer from Synopsys IDI interface specification to > parallel interface connection or direct memory access. > > Signed-off-by: Eugen Hristev

Re: objtool clac/stac handling change..

2020-07-02 Thread Al Viro
On Thu, Jul 02, 2020 at 01:32:34PM -0700, Linus Torvalds wrote: > Ugh, the above is bad anyway. > > It doesn't use _ASM_EXTABLE_UA, so it won't warn about the noncanonical cases. FWIW, the address is inside a sigframe we decided to build, so noncanonical addresses shouldn't occur in practice.

Re: [PATCH v7 2/7] dt-bindings: pinctrl: add bindings for MediaTek MT6779 SoC

2020-07-02 Thread Rob Herring
On Thu, Jul 02, 2020 at 08:57:05PM +0800, Hanks Chen wrote: > From: Andy Teng > > Add devicetree bindings for MediaTek MT6779 pinctrl driver. > > Signed-off-by: Andy Teng > --- > .../bindings/pinctrl/mediatek,mt6779-pinctrl.yaml | 210 > > 1 file changed, 210

[PATCH] bus: ti-sysc: Do not disable on suspend for no-idle

2020-07-02 Thread Tony Lindgren
If we have "ti,no-idle" specified for a module we must not disable the the module on suspend to keep things backwards compatible. Fixes: 386cb76681ca ("bus: ti-sysc: Handle missed no-idle property in addition to no-idle-on-init") Reported-by: Grygorii Strashko Signed-off-by: Tony Lindgren ---

drivers/scsi/qedf/qedf_debugfs.c:113:23: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-07-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: cd77006e01b3198c75fb7819b3d0ff89709539bb commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 2 weeks ago config: x86_64-randconfig-s021-20200703

Re: [PATCH v15 2/4] dt-bindings: power: Convert battery.txt to battery.yaml

2020-07-02 Thread Rob Herring
On Wed, 01 Jul 2020 16:10:42 -0500, Ricardo Rivera-Matos wrote: > From: Dan Murphy > > Convert the battery.txt file to yaml and fix up the examples. > > Signed-off-by: Dan Murphy > --- > .../bindings/power/supply/battery.txt | 86 +- > .../bindings/power/supply/battery.yaml

Re: [PATCH v4 2/3] selftests: add clone3() CAP_CHECKPOINT_RESTORE test

2020-07-02 Thread Serge E. Hallyn
On Wed, Jul 01, 2020 at 08:49:05AM +0200, Adrian Reber wrote: > This adds a test that changes its UID, uses capabilities to > get CAP_CHECKPOINT_RESTORE and uses clone3() with set_tid to > create a process with a given PID as non-root. Seems worth also verifying that it fails if you have no

Re: [PATCH v7 02/13] dt-bindings: panel: Convert rocktech, jh057n00900 to yaml

2020-07-02 Thread Rob Herring
On Wed, 01 Jul 2020 18:29:17 +0200, Ondrej Jirman wrote: > Convert Rocktech MIPI DSI panel driver from txt to yaml bindings. > > Signed-off-by: Ondrej Jirman > --- > .../display/panel/rocktech,jh057n00900.txt| 23 --- > .../display/panel/rocktech,jh057n00900.yaml | 66

Re: [RESEND PATCH v2 07/13] dt-bindings: clock: Introduce SM8250 QCOM Graphics clock bindings

2020-07-02 Thread Jonathan Marek
On 7/2/20 4:46 PM, Rob Herring wrote: On Mon, Jun 29, 2020 at 05:17:13PM -0400, Jonathan Marek wrote: Add device tree bindings for graphics clock controller for Qualcomm Technology Inc's SM8250 SoCs. Looks like these 2 schemas could be a single one. I agree, but there are already separate

[GIT PULL] fixes for v5.8-rc4

2020-07-02 Thread Christian Brauner
Hey Linus, /* Summary */ This contains an annotation patch for a data race in copy_process() reported by KCSAN when reading and writing nr_threads. The data race is intentional and benign. This is obvious from the comment above the relevant code and based on general consensus when discussing this

Re: [PATCH v2] leds: core: Flush scheduled work for system suspend

2020-07-02 Thread Jacek Anaszewski
Hi Kai-Heng, Thank you for the update. On 7/2/20 7:45 AM, Kai-Heng Feng wrote: Sometimes LED won't be turned off by LED_CORE_SUSPENDRESUME flag upon system suspend. led_set_brightness_nopm() uses schedule_work() to set LED brightness. However, there's no guarantee that the scheduled work gets

Re: [PATCH 2/6] dt-bindings: interconnect: Add Qualcomm SM8250 DT bindings

2020-07-02 Thread Rob Herring
On Wed, Jul 01, 2020 at 09:42:51AM -0400, Jonathan Marek wrote: > The Qualcomm SM8250 platform has several bus fabrics that could be > controlled and tuned dynamically according to the bandwidth demand. Again, looks like these 2 could be combined. > > Signed-off-by: Jonathan Marek > --- >

Re: [PATCH 2/6] dt-bindings: interconnect: Add Qualcomm SM8250 DT bindings

2020-07-02 Thread Rob Herring
On Wed, 01 Jul 2020 09:42:51 -0400, Jonathan Marek wrote: > The Qualcomm SM8250 platform has several bus fabrics that could be > controlled and tuned dynamically according to the bandwidth demand. > > Signed-off-by: Jonathan Marek > --- > .../bindings/interconnect/qcom,sm8250.yaml| 86

Re: [PATCH 15/15] mmc: host: sdhci-iproc: Tell the compiler that ACPI functions may not be used

2020-07-02 Thread Scott Branden
On 2020-07-02 1:13 p.m., Lee Jones wrote: On Thu, 02 Jul 2020, Scott Branden wrote: Hi Lee, On 2020-07-01 5:47 a.m., Lee Jones wrote: ... as is the case when !CONFIG_ACPI. Fixes the following W=1 kernel build warning: mmc/host/sdhci-iproc.c:297:36: warning: ‘sdhci_iproc_acpi_ids’

Re: [PATCH 1/6] dt-bindings: interconnect: Add Qualcomm SM8150 DT bindings

2020-07-02 Thread Rob Herring
On Wed, 01 Jul 2020 09:42:50 -0400, Jonathan Marek wrote: > The Qualcomm SM8150 platform has several bus fabrics that could be > controlled and tuned dynamically according to the bandwidth demand. > > Signed-off-by: Jonathan Marek > --- > .../bindings/interconnect/qcom,sm8150.yaml| 86

Re: [PATCH] tpm: Define TPM2_SPACE_BUFFER_SIZE to replace the use of PAGE_SIZE

2020-07-02 Thread Jarkko Sakkinen
On Fri, Jun 26, 2020 at 12:47:02PM -0400, Stefan Berger wrote: > On 6/26/20 10:34 AM, Jarkko Sakkinen wrote: > > The size of the buffers for storing context's and sessions can vary from > > arch to arch as PAGE_SIZE can be anything between 4 kB and 256 kB (the > > maximum for PPC64). Define a

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