[PATCH 12/14] x86/entry: Rename trace_hardirqs_off_prepare()

2020-05-29 Thread Peter Zijlstra
The typical pattern for trace_hardirqs_off_prepare() is: ENTRY lockdep_hardirqs_off(); // because hardware ... do entry magic instrumentation_begin(); trace_hardirqs_off_prepare(); ... do actual work trace_hardirqs_on_prepare(); lockdep_hardirqs_on_prepare();

[PATCH 00/14] x86/entry: disallow #DB more and x86/entry lockdep/nmi

2020-05-29 Thread Peter Zijlstra
These patches disallow #DB during NMI/#MC and allow removing a lot of fugly code. And also include 4 patches from the lockdep/nmi series that clean up x86/entry bits. I'll send the rest of the lockdep patches seperately.

[PATCH 13/14] lockdep: Prepare for NMI IRQ state tracking

2020-05-29 Thread Peter Zijlstra
There is no reason not to always, accurately, track IRQ state. This change also makes IRQ state tracking ignore lockdep_off(). Signed-off-by: Peter Zijlstra (Intel) --- kernel/locking/lockdep.c | 33 ++--- 1 file changed, 30 insertions(+), 3 deletions(-) ---

[PATCH 05/14] x86/entry: Introduce local_db_{save,restore}()

2020-05-29 Thread Peter Zijlstra
In order to allow other exceptions than #DB to disable breakpoints, provide common helpers. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/debugreg.h | 30 ++ arch/x86/kernel/traps.c | 18 ++ 2 files changed, 32

drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c:49:1: warning: no previous prototype for 'lsb_header_tail_dump'

2020-05-29 Thread kbuild test robot
Hi Ben, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 75caf310d16cc5e2f851c048cd597f5437013368 commit: 22dcda45a3d1dfe6eeb4ab0a3b9aaa2333cb649d drm/nouveau/acr: implement new subdev to replace "secure boot" date:

[PATCH 06/14] x86/entry, nmi: Disable #DB

2020-05-29 Thread Peter Zijlstra
Instead of playing stupid games with IST stacks, fully disallow #DB during NMIs. There is absolutely no reason to allow them, and killing this saves a heap of trouble. We already disallow #DB on noinstr and CEA, so we can't get #DB before this, and this ensures we can't get it after this either.

[PATCH 09/14] x86/entry: Remove debug IDT frobbing

2020-05-29 Thread Peter Zijlstra
This is all unused now. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/debugreg.h | 19 --- arch/x86/include/asm/desc.h | 34 +- arch/x86/kernel/cpu/common.c| 17 - arch/x86/kernel/idt.c |

[PATCH 03/14] x86/hw_breakpoint: Prevent data breakpoints on per_cpu cpu_tss_rw

2020-05-29 Thread Peter Zijlstra
From: Lai Jiangshan cpu_tss_rw is not directly referenced by hardware, but cpu_tss_rw is also used in CPU entry code, especially when #DB shifts its stacks. If a data breakpoint is on the cpu_tss_rw.x86_tss.ist[IST_INDEX_DB], it will cause recursive #DB (and then #DF soon for #DB is generated

[PATCH 07/14] x86/entry, mce: Disallow #DB during #MC

2020-05-29 Thread Peter Zijlstra
#MC is fragile as heck, don't tempt fate. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/kernel/cpu/mce/core.c | 12 1 file changed, 12 insertions(+) --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -1936,22 +1936,34 @@ static __always_inline void

[PATCH 10/14] x86/entry: Remove DBn stacks

2020-05-29 Thread Peter Zijlstra
Both #DB itself, as all other IST users (NMI, #MC) now clear DR7 on entry. Combined with not allowing breakpoints on entry/noinstr/NOKPROBE text and no single step (EFLAGS.TF) inside the #DB handler should guarantee us no nested #DB. Signed-off-by: Peter Zijlstra (Intel) ---

[PATCH 14/14] x86/entry: Fix NMI vs IRQ state tracking

2020-05-29 Thread Peter Zijlstra
While the nmi_enter() users did trace_hardirqs_{off_prepare,on_finish}() there was no matching lockdep_hardirqs_*() calls to complete the picture. Introduce idtentry_{enter,exit}_nmi() to enable proper IRQ state tracking across the NMIs. Signed-off-by: Peter Zijlstra (Intel) ---

[PATCH 04/14] x86/hw_breakpoint: Prevent data breakpoints on user_pcid_flush_mask

2020-05-29 Thread Peter Zijlstra
From: Lai Jiangshan The percpu user_pcid_flush_mask is used for CPU entry If a data breakpoint on it, it will cause an unwanted #DB. Protect the full cpu_tlbstate structure to be sure. There are some other percpu data used in CPU entry, but they are either in already-protected cpu_tss_rw or are

[PATCH 02/14] x86/hw_breakpoint: Prevent data breakpoints on direct GDT

2020-05-29 Thread Peter Zijlstra
From: Lai Jiangshan A data breakpoint on the GDT is terrifying and should be avoided. The GDT on CPU entry area is already protected. The direct GDT should be also protected, although it is seldom used and only used for short time. Signed-off-by: Lai Jiangshan Signed-off-by: Peter Zijlstra

[PATCH 08/14] x86/entry: Optimize local_db_save() for virt

2020-05-29 Thread Peter Zijlstra
Because DRn access is 'difficult' with virt; but the DR7 read is cheaper than a cacheline miss on native, add a virt specific fast path to local_db_save(), such that when breakpoints are not in use we avoid touching DRn entirely. Suggested-by: Andy Lutomirski Signed-off-by: Peter Zijlstra

Re: Lost PCIe PME after a914ff2d78ce ("PCI/ASPM: Don't select CONFIG_PCIEASPM by default")

2020-05-29 Thread Matthew Garrett
On Fri, May 29, 2020 at 03:21:35PM -0500, Bjorn Helgaas wrote: > Yeah, that makes sense. I can't remember the details, but I'm pretty > sure there's a reason why we ask for the whole set of things. Seems > like it solved some problem. I think Matthew Garrett might have been > involved in that.

[RFC][PATCH] ASoC: qcom: q6asm-dai: kCFI fix

2020-05-29 Thread John Stultz
Fixes the following kCFI crash seen on db845c, caused by the function prototypes not matching the callback function prototype. [ 82.585661] Unable to handle kernel NULL pointer dereference at virtual address 0001 [ 82.595387] Mem abort info: [ 82.599463] ESR = 0x9605 [

Re: [PATCH] ARM: omap2: fix omap5_realtime_timer_init definition

2020-05-29 Thread Arnd Bergmann
On Fri, May 29, 2020 at 11:14 PM Tony Lindgren wrote: > * Arnd Bergmann [200529 21:09]: > > > > #ifdef CONFIG_SOC_HAS_REALTIME_COUNTER > > extern void omap5_realtime_timer_init(void); > > #else > > static inline void omap5_realtime_timer_init(void) > > { > > } > > #endif > > > > In fact, the

Re: [PATCH] refperf: work around 64-bit division

2020-05-29 Thread Paul E. McKenney
On Fri, May 29, 2020 at 10:15:51PM +0200, Arnd Bergmann wrote: > A 64-bit division was introduced in refperf, breaking compilation > on all 32-bit architectures: > > kernel/rcu/refperf.o: in function `main_func': > refperf.c:(.text+0x57c): undefined reference to `__aeabi_uldivmod' > > Work it by

[PATCH v3 4/5] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables

2020-05-29 Thread Peter Zijlstra
Currently all IRQ-tracking state is in task_struct, this means that task_struct needs to be defined before we use it. Especially for lockdep_assert_irq*() this can lead to header-hell. Move the hardirq state into per-cpu variables to avoid the task_struct dependency. Signed-off-by: Peter

[PATCH v3 3/5] s390: Break cyclic percpu include

2020-05-29 Thread Peter Zijlstra
In order to use in irqflags.h, we need to make sure asm/percpu.h does not itself depend on irqflags.h Signed-off-by: Peter Zijlstra (Intel) --- arch/s390/include/asm/smp.h |1 + arch/s390/include/asm/thread_info.h |1 - 2 files changed, 1 insertion(+), 1 deletion(-) ---

[PATCH v3 5/5] lockdep: Remove lockdep_hardirq{s_enabled,_context}() argument

2020-05-29 Thread Peter Zijlstra
Now that the macros use per-cpu data, we no longer need the argument. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/entry/common.c|2 +- include/linux/irqflags.h |8 include/linux/lockdep.h|2 +- kernel/locking/lockdep.c | 30

[RFC][PATCH v3 1/5] sparc64: Fix asm/percpu.h build error

2020-05-29 Thread Peter Zijlstra
In order to break a header dependency between lockdep and task_struct, I need per-cpu stuff from lockdep. Including from lockdep.h gives a build error, this patch cures that, but results in the following warning: ../arch/sparc/include/asm/percpu_64.h:7:24: warning: call-clobbered register used

Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro

2020-05-29 Thread Andy Shevchenko
On Fri, May 29, 2020 at 11:07 PM Syed Nayyar Waris wrote: > On Sat, May 30, 2020 at 12:08 AM Andy Shevchenko > wrote: > > On Fri, May 29, 2020 at 11:38:18PM +0530, Syed Nayyar Waris wrote: > > > On Sun, May 24, 2020 at 8:15 PM kbuild test robot wrote: ... > > > Taking the example statement

RE: [EXTERNAL] Re: [PATCH v4] perf inject --jit: Remove //anon mmap events

2020-05-29 Thread Steve MacLean
>/tmp/perf/perf record -k 1 -e cycles:u -o /tmp/perf.data java >-agentpath:/tmp/perf/libperf-jvmti.so -XX:+PreserveFramePointer >-XX:InitialCodeCacheSize=20M -XX:ReservedCodeCacheSize=1G -jar >dacapo-9.12-bach.jar jython Its also possible the `InitialCodeCacheSize=20M` argument is masking the

Re: [PATCH v2 1/4] dt-bindings: pinctrl: Document 7211 compatible for brcm, bcm2835-gpio.txt

2020-05-29 Thread Rob Herring
On Fri, 29 May 2020 12:15:19 -0700, Florian Fainelli wrote: > Document the brcm,bcm7211-gpio compatible string in the > brcm,bcm2835-gpio.txt document. > > Signed-off-by: Florian Fainelli > --- > Documentation/devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt | 1 + > 1 file changed, 1

[PATCH v3 0/5] lockdep: Change IRQ state tracking to use per-cpu variables

2020-05-29 Thread Peter Zijlstra
Ahmed and Sebastian wanted additional lockdep_assert*() macros and ran into header hell. Move the IRQ state into per-cpu variables, which removes the dependency on task_struct, which is what generated the header-hell. These patches are intended to go on top of:

[PATCH v3 2/5] powerpc64: Break asm/percpu.h vs spinlock_types.h dependency

2020-05-29 Thread Peter Zijlstra
In order to use in lockdep.h, we need to make sure asm/percpu.h does not itself depend on lockdep. The below seems to make that so and builds powerpc64-defconfig + PROVE_LOCKING. Signed-off-by: Peter Zijlstra (Intel) --- arch/powerpc/include/asm/dtl.h | 52

Re: [RFC PATCH v4 07/10] vfio/pci: introduce a new irq type VFIO_IRQ_TYPE_REMAP_BAR_REGION

2020-05-29 Thread Alex Williamson
On Sun, 17 May 2020 22:52:45 -0400 Yan Zhao wrote: > This is a virtual irq type. > vendor driver triggers this irq when it wants to notify userspace to > remap PCI BARs. > > 1. vendor driver triggers this irq and packs the target bar number in >the ctx count. i.e. "1 << bar_number". >if

[PATCH v4 kunit-next 0/2] kunit: extend kunit resources API

2020-05-29 Thread Alan Maguire
A recent RFC patch set [1] suggests some additional functionality may be needed around kunit resources. It seems to require 1. support for resources without allocation 2. support for lookup of such resources 3. support for access to resources across multiple kernel threads The proposed changes

[PATCH v4 kunit-next 1/2] kunit: generalize kunit_resource API beyond allocated resources

2020-05-29 Thread Alan Maguire
In its original form, the kunit resources API - consisting the struct kunit_resource and associated functions - was focused on adding allocated resources during test operation that would be automatically cleaned up on test completion. The recent RFC patch proposing converting KASAN tests to KUnit

Re: [PATCH] ARM: omap2: fix omap5_realtime_timer_init definition

2020-05-29 Thread Tony Lindgren
* Arnd Bergmann [200529 21:41]: > On Fri, May 29, 2020 at 11:14 PM Tony Lindgren wrote: > > * Arnd Bergmann [200529 21:09]: > > > > > > #ifdef CONFIG_SOC_HAS_REALTIME_COUNTER > > > extern void omap5_realtime_timer_init(void); > > > #else > > > static inline void omap5_realtime_timer_init(void)

[PATCH v4 kunit-next 2/2] kunit: add support for named resources

2020-05-29 Thread Alan Maguire
The kunit resources API allows for custom initialization and cleanup code (init/fini); here a new resource add function sets the "struct kunit_resource" "name" field, and calls the standard add function. Having a simple way to name resources is useful in cases such as multithreaded tests where a

[PATCH v9 4/5] ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods

2020-05-29 Thread Vaibhav Jain
Introduce support for PAPR NVDIMM Specific Methods (PDSM) in papr_scm module and add the command family NVDIMM_FAMILY_PAPR to the white list of NVDIMM command sets. Also advertise support for ND_CMD_CALL for the nvdimm command mask and implement necessary scaffolding in the module to handle

[PATCH v9 0/5] powerpc/papr_scm: Add support for reporting nvdimm health

2020-05-29 Thread Vaibhav Jain
Changes since v8 [1]: * Updated proposed changes to remove usage of term 'SCM' due to ambiguity with 'PMEM' and 'NVDIMM'. [ Dan Williams ] * Replaced the usage of term 'SCM' with 'PMEM' in most contexts. [ Aneesh ] * Renamed NVDIMM health defines from PAPR_SCM_DIMM_* to PAPR_PMEM_* . *

[PATCH v9 1/5] powerpc: Document details on H_SCM_HEALTH hcall

2020-05-29 Thread Vaibhav Jain
Add documentation to 'papr_hcalls.rst' describing the bitmap flags that are returned from H_SCM_HEALTH hcall as per the PAPR-SCM specification. Cc: "Aneesh Kumar K . V" Cc: Dan Williams Cc: Michael Ellerman Cc: Ira Weiny Signed-off-by: Vaibhav Jain --- Changelog: v8..v9: * s/SCM/PMEM

[PATCH v9 3/5] powerpc/papr_scm: Fetch nvdimm health information from PHYP

2020-05-29 Thread Vaibhav Jain
Implement support for fetching nvdimm health information via H_SCM_HEALTH hcall as documented in Ref[1]. The hcall returns a pair of 64-bit bitmap, bitwise-and of which is then stored in 'struct papr_scm_priv' and subsequently partially exposed to user-space via newly introduced dimm specific

Re: [PATCH v1] auxdisplay: charlcd: Reuse hex_to_bin() instead of custom code

2020-05-29 Thread Miguel Ojeda
Hi Andy, On Mon, May 18, 2020 at 9:36 PM Andy Shevchenko wrote: > > hex_to_bin() may be used to convert hexdecimal digit to its binary > representation. > > Signed-off-by: Andy Shevchenko > --- Looks fine to me and the logic is simpler for the `esc` increase too. Thanks for the cleanup! Were

[PATCH v9 2/5] seq_buf: Export seq_buf_printf

2020-05-29 Thread Vaibhav Jain
'seq_buf' provides a very useful abstraction for writing to a string buffer without needing to worry about it over-flowing. However even though the API has been stable for couple of years now its still not exported to kernel loadable modules limiting its usage. Hence this patch proposes update to

[PATCH v9 5/5] powerpc/papr_scm: Implement support for PAPR_PDSM_HEALTH

2020-05-29 Thread Vaibhav Jain
This patch implements support for PDSM request 'PAPR_PDSM_HEALTH' that returns a newly introduced 'struct nd_papr_pdsm_health' instance containing dimm health information back to user space in response to ND_CMD_CALL. This functionality is implemented in newly introduced papr_pdsm_health() that

Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro

2020-05-29 Thread Syed Nayyar Waris
On Sat, May 30, 2020 at 3:01 AM William Breathitt Gray wrote: > > On Sat, May 30, 2020 at 01:32:44AM +0530, Syed Nayyar Waris wrote: > > On Sat, May 30, 2020 at 12:08 AM Andy Shevchenko > > wrote: > > > > > > On Fri, May 29, 2020 at 11:38:18PM +0530, Syed Nayyar Waris wrote: > > > > On Sun, May

Re: [PATCH v2] arm: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver

2020-05-29 Thread Tony Lindgren
* Tony Lindgren [200527 16:06]: > * Tony Lindgren [200519 09:05]: > > * Tomi Valkeinen [200519 15:55]: > > > (Dropping DT from cc) > > > > > > On 19/05/2020 18:48, Tony Lindgren wrote: > > > > > > > > > Suspend/resume on am43xx-gpevm is broken right now in mainline and > > > > > > the

Re: [PATCH 1/2] dt-bindings: chrome: Add cros-ec-typec mux props

2020-05-29 Thread Rob Herring
On Tue, May 12, 2020 at 7:42 AM Heikki Krogerus wrote: > > Hi guys, > > On Mon, May 11, 2020 at 01:46:35PM -0700, Prashant Malani wrote: > > Hi Rob, > > > > Thank you for reviewing the patch. Kindly see my comments inline: > > > > On Mon, May 11, 2020 at 02:28:00PM -0500, Rob Herring wrote: > > >

[PATCH 00/27] afs: Improvements

2020-05-29 Thread David Howells
Here's a set of patches to make a number of improvements to the AFS driver: (1) Improve callback (ie. third party change notification) processing by: (a) Relying more on the fact we're doing this under RCU and by using fewer locks. This involves making the inode hash

[PATCH 01/27] vfs, afs, ext4: Make the inode hash table RCU searchable

2020-05-29 Thread David Howells
Make the inode hash table RCU searchable so that searches that want to access or modify an inode without taking a ref on that inode can do so without taking the inode hash table lock. The main thing this requires is some RCU annotation on the list manipulation operations. Inodes are already

[PATCH 03/27] rxrpc: Adjust /proc/net/rxrpc/calls to display call->debug_id not user_ID

2020-05-29 Thread David Howells
The user ID value isn't actually much use - and leaks a kernel pointer or a userspace value - so replace it with the call debug ID, which appears in trace points. Signed-off-by: David Howells --- net/rxrpc/proc.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 02/27] rxrpc: Map the EACCES error produced by some ICMP6 to EHOSTUNREACH

2020-05-29 Thread David Howells
Map the EACCES error that is produced by some ICMP6 packets to EHOSTUNREACH when we get them as EACCES has other meanings within a filesystem context. Signed-off-by: David Howells --- net/rxrpc/peer_event.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/net/rxrpc/peer_event.c

[PATCH 06/27] afs: Split the usage count on struct afs_server

2020-05-29 Thread David Howells
Split the usage count on the afs_server struct to have an active count that registers who's actually using it separately from the reference count on the object. This allows a future patch to dispatch polling probes without advancing the "unuse" time into the future each time we emit a probe,

[PATCH 04/27] afs: Always include dir in bulk status fetch from afs_do_lookup()

2020-05-29 Thread David Howells
When a lookup is done in an AFS directory, the filesystem will speculate and fetch up to 49 other statuses for files in the same directory and fetch those as well, turning them into inodes or updating inodes that already exist. However, occasionally, a callback break might go missing due to NAT

[PATCH 07/27] afs: Actively poll fileservers to maintain NAT or firewall openings

2020-05-29 Thread David Howells
When an AFS client accesses a file, it receives a limited-duration callback promise that the server will notify it if another client changes a file. This callback duration can be a few hours in length. If a client mounts a volume and then an application prevents it from being unmounted, say by

[PATCH 09/27] afs: Make callback processing more efficient.

2020-05-29 Thread David Howells
afs_vol_interest objects represent the volume IDs currently being accessed from a fileserver. These hold lists of afs_cb_interest objects that repesent the superblocks using that volume ID on that server. When a callback notification from the server telling of a modification by another client

[PATCH] [v2] ARM: omap2: fix omap5_realtime_timer_init definition

2020-05-29 Thread Arnd Bergmann
There is one more regression introduced by the last build fix: arch/arm/mach-omap2/timer.c:170:6: error: attribute declaration must precede definition [-Werror,-Wignored-attributes] void __init omap5_realtime_timer_init(void) ^ arch/arm/mach-omap2/common.h:118:20: note: previous definition

[PATCH 10/27] afs: Set error flag rather than return error from file status decode

2020-05-29 Thread David Howells
Set a flag in the call struct to indicate an unmarshalling error rather than return and handle an error from the decoding of file statuses. This flag is checked on a successful return from the delivery function. Signed-off-by: David Howells --- fs/afs/fsclient.c | 88

[PATCH 05/27] afs: Use the serverUnique field in the UVLDB record to reduce rpc ops

2020-05-29 Thread David Howells
The U-version VLDB volume record retrieved by the VL.GetEntryByNameU rpc op carries a change counter (the serverUnique field) for each fileserver listed in the record as backing that volume. This is incremented whenever the registration details for a fileserver change (such as its address list).

[PATCH 11/27] afs: Remove the error argument from afs_protocol_error()

2020-05-29 Thread David Howells
Remove the error argument from afs_protocol_error() as it's always -EBADMSG. Signed-off-by: David Howells --- fs/afs/cmservice.c |9 +++-- fs/afs/fsclient.c | 17 ++--- fs/afs/inode.c |4 ++-- fs/afs/internal.h |2 +-

[PATCH 08/27] afs: Show more information in /proc/net/afs/servers

2020-05-29 Thread David Howells
Show more information in /proc/net/afs/servers to make it easier to see what's going on with the server probing. Signed-off-by: David Howells --- fs/afs/proc.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/fs/afs/proc.c b/fs/afs/proc.c index

[PATCH 14/27] afs: Don't get epoch from a server because it may be ambiguous

2020-05-29 Thread David Howells
Don't get the epoch from a server, particularly one that we're looking up by UUID, as UUIDs may be ambiguous and may map to more than one server - so we can't draw any conclusions from it. Reported-by: Jeffrey Altman Signed-off-by: David Howells --- fs/afs/cmservice.c | 49

[PATCH 12/27] afs: Rename struct afs_fs_cursor to afs_operation

2020-05-29 Thread David Howells
As a prelude to implementing asynchronous fileserver operations in the afs filesystem, rename struct afs_fs_cursor to afs_operation. This struct is going to form the core of the operation management and is going to acquire more members in later. Signed-off-by: David Howells --- fs/afs/dir.c

[PATCH 15/27] afs: Fix handling of CB.ProbeUuid cache manager op

2020-05-29 Thread David Howells
The AFS filesystem driver is handling the CB.ProbeUuid request incorrectly. The UUID presented in the request is that of the cache manager, not the fileserver, so afs_deliver_cb_probe_uuid() shouldn't be using that UUID to look up the server. Fix this by looking up the server by address instead.

[PATCH 19/27] afs: Detect cell aliases 2 - Cells with no root volumes

2020-05-29 Thread David Howells
Implement the second phase of cell alias detection. This part handles alias detection for cells that don't have root.cell volumes and so we have to find some other volume or fileserver to query. We take the first volume from each such cell and attempt to look it up in the new cell. If found, we

[PATCH 20/27] afs: Detect cell aliases 3 - YFS Cells with a canonical cell name op

2020-05-29 Thread David Howells
YFS Volume Location servers have an operation by which the cell name may be queried. Use this to find out what a YFS server thinks the canonical cell name should be. Signed-off-by: David Howells --- fs/afs/vl_alias.c | 60

[PATCH 18/27] afs: Detect cell aliases 1 - Cells with root volumes

2020-05-29 Thread David Howells
Put in the first phase of cell alias detection. This part handles alias detection for cells that have root.cell volumes (which is expected to be likely). When a cell becomes newly active, it is probed for its root.cell volume, and if it has one, this volume is compared against other root.cell

[PATCH 16/27] afs: Retain more of the VLDB record for alias detection

2020-05-29 Thread David Howells
Save more bits from the volume location database record obtained for a server so that we can use this information in cell alias detection. Signed-off-by: David Howells --- fs/afs/internal.h|3 ++- fs/afs/server_list.c |3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff

[PATCH 17/27] afs: Implement client support for the YFSVL.GetCellName RPC op

2020-05-29 Thread David Howells
Implement client support for the YFSVL.GetCellName RPC operation by which YFS permits the canonical cell name to be queried from a VL server. Signed-off-by: David Howells --- fs/afs/afs.h |2 - fs/afs/afs_vl.h|1 fs/afs/internal.h |2 +

[PATCH 21/27] afs: Add a tracepoint to track the lifetime of the afs_volume struct

2020-05-29 Thread David Howells
Add a tracepoint to track the lifetime of the afs_volume struct. Signed-off-by: David Howells --- fs/afs/cell.c |2 +- fs/afs/fs_operation.c |4 ++- fs/afs/internal.h | 10 ++-- fs/afs/super.c | 10 +--- fs/afs/vl_alias.c |

Re: clean up kernel_{read,write} & friends v2

2020-05-29 Thread Casey Schaufler
On 5/29/2020 12:19 PM, Linus Torvalds wrote: > On Fri, May 29, 2020 at 6:08 AM David Laight wrote: >> A wide monitor is for looking at lots of files. > Not necessarily. > > Excessive line breaks are BAD. They cause real and every-day problems. > > They cause problems for things like "grep" both

[PATCH 24/27] afs: Fix afs_statfs() to not let the values go below zero

2020-05-29 Thread David Howells
Fix afs_statfs() so that the value for f_bavail and f_bfree don't go "negative" if the number of blocks in use by a volume exceeds the max quota for that volume. Signed-off-by: David Howells --- fs/afs/super.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH 23/27] afs: Fix the by-UUID server tree to allow servers with the same UUID

2020-05-29 Thread David Howells
Whilst it shouldn't happen, it is possible for multiple fileservers to share a UUID, particularly if an entire cell has been duplicated, UUIDs and all. In such a case, it's not necessarily possible to map the effect of the CB.InitCallBackState3 incoming RPC to a specific server unambiguously by

[PATCH 26/27] afs: Show more a bit more server state in /proc/net/afs/servers

2020-05-29 Thread David Howells
Display more information about the state of a server record, including the flags, rtt and break counter plus the probe state for each server in /proc/net/afs/servers. Rearrange the server flags a bit to make them easier to read at a glance in the proc file. Signed-off-by: David Howells ---

[PATCH 27/27] afs: Adjust the fileserver rotation algorithm to reprobe/retry more quickly

2020-05-29 Thread David Howells
Adjust the fileserver rotation algorithm so that if we've tried all the addresses on a server (cumulatively over multiple operations) until we've run out of untried addresses, immediately reprobe all that server's interfaces and retry the op at least once before we move onto the next server.

[PATCH 25/27] afs: Don't use probe running state to make decisions outside probe code

2020-05-29 Thread David Howells
Don't use the running state for fileserver probes to make decisions about which server to use as the state is cleared at the start of a probe and also intermediate values might be misleading. Instead, add a separate 'latest known' rtt in the afs_server struct and a flag to indicate if the server

[PATCH 22/27] afs: Reorganise volume and server trees to be rooted on the cell

2020-05-29 Thread David Howells
Reorganise afs_volume objects such that they're in a tree keyed on volume ID, rooted at on an afs_cell object rather than being in multiple trees, each of which is rooted on an afs_server object. afs_server structs become per-cell and acquire a pointer to the cell. The process of breaking a

Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro

2020-05-29 Thread Andy Shevchenko
On Sat, May 30, 2020 at 12:42 AM Andy Shevchenko wrote: > On Fri, May 29, 2020 at 11:07 PM Syed Nayyar Waris > wrote: > > On Sat, May 30, 2020 at 12:08 AM Andy Shevchenko > > wrote: ... > > Explanation: > > Actually when nbits (clump size) is 64 (BITS_PER_LONG is 64 on my computer), > >

drivers/usb/cdns3/gadget.c:1188:29: sparse: sparse: incorrect type in assignment (different base types)

2020-05-29 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 75caf310d16cc5e2f851c048cd597f5437013368 commit: 70d8b9e5e63d212019ba3f6823c8ec3d2df87645 usb: cdns3: make signed 1 bit bitfields unsigned date: 9 weeks ago config: i386-randconfig-s031-20200529 (attached

Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro

2020-05-29 Thread Syed Nayyar Waris
On Sat, May 30, 2020 at 3:13 AM Andy Shevchenko wrote: > > On Fri, May 29, 2020 at 11:07 PM Syed Nayyar Waris > wrote: > > On Sat, May 30, 2020 at 12:08 AM Andy Shevchenko > > wrote: > > > On Fri, May 29, 2020 at 11:38:18PM +0530, Syed Nayyar Waris wrote: > > > > On Sun, May 24, 2020 at 8:15

Re: [PATCH] [v2] ARM: omap2: fix omap5_realtime_timer_init definition

2020-05-29 Thread Tony Lindgren
* Arnd Bergmann [200529 22:01]: > There is one more regression introduced by the last build fix: > > arch/arm/mach-omap2/timer.c:170:6: error: attribute declaration must precede > definition [-Werror,-Wignored-attributes] > void __init omap5_realtime_timer_init(void) > ^ >

Re: [PATCH] refperf: work around 64-bit division

2020-05-29 Thread Randy Dunlap
On 5/29/20 1:15 PM, Arnd Bergmann wrote: > A 64-bit division was introduced in refperf, breaking compilation > on all 32-bit architectures: > > kernel/rcu/refperf.o: in function `main_func': > refperf.c:(.text+0x57c): undefined reference to `__aeabi_uldivmod' > > Work it by using div_u64 to mark

Re: [PATCH v3] regmap: fix alignment issue

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 09:25:38PM +0200, Jens Thoms Toerring wrote: > pointers with odd addresses. On architectures with strict alignment > requirements this results in a kernel crash for u16 and u32 values. Which architectures out of interest? signature.asc Description: PGP signature

Re: [PATCH 13/14] lockdep: Prepare for NMI IRQ state tracking

2020-05-29 Thread Steven Rostedt
On Fri, 29 May 2020 23:27:41 +0200 Peter Zijlstra wrote: > There is no reason not to always, accurately, track IRQ state. > > This change also makes IRQ state tracking ignore lockdep_off(). > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/locking/lockdep.c | 33

Re: [PATCH v2 00/33] iommu: Move iommu_group setup to IOMMU core code

2020-05-29 Thread Jerry Snitselaar
On Tue Apr 14 20, Joerg Roedel wrote: Hi, here is the second version of this patch-set. The first version with some more introductory text can be found here: https://lore.kernel.org/lkml/20200407183742.4344-1-j...@8bytes.org/ Changes v1->v2: * Rebased to v5.7-rc1 *

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

2020-05-29 Thread Rob Herring
On Thu, May 28, 2020 at 05:53:48PM -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 | 82 +- >

Re: [PATCH v12 3/4] dt-bindings: power: Add the bindings for the bq2515x family of chargers.

2020-05-29 Thread Rob Herring
On Thu, May 28, 2020 at 05:53:49PM -0500, Ricardo Rivera-Matos wrote: > The BQ2515X family of devices are highly integrated battery management > ICs that integrate the most common functions for wearable devices > namely a charger, an output voltage rail, ADC for battery and system > monitoring,

Re: [PATCH v7 1/4] bitops: Introduce the the for_each_set_clump macro

2020-05-29 Thread Andy Shevchenko
On Sat, May 30, 2020 at 1:11 AM Syed Nayyar Waris wrote: > On Sat, May 30, 2020 at 3:13 AM Andy Shevchenko > wrote: > > On Fri, May 29, 2020 at 11:07 PM Syed Nayyar Waris > > wrote: > > > On Sat, May 30, 2020 at 12:08 AM Andy Shevchenko > > > wrote: > > > > On Fri, May 29, 2020 at 11:38:18PM

Re: [PATCH] vfio/mdev: Fix reference count leak in add_mdev_supported_type.

2020-05-29 Thread Alex Williamson
On Wed, 27 May 2020 21:01:09 -0500 wu000...@umn.edu wrote: > From: Qiushi Wu > > kobject_init_and_add() takes reference even when it fails. > If this function returns an error, kobject_put() must be called to > properly clean up the memory associated with the object. Thus, > replace kfree() by

Re: [PATCH v3] regmap: fix alignment issue

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 09:25:38PM +0200, Jens Thoms Toerring wrote: > The assembly and disassembly of data to be sent to or received from a > device invoke functions (regmap_format_XXX() and regmap_parse_XXX()) > that extract or insert data items from or into a buffer, using > assignments. In

Re: [PATCH v6 00/16] spi: dw: Add generic DW DMA controller support

2020-05-29 Thread Mark Brown
On Fri, May 29, 2020 at 03:22:26PM -0600, Rob Herring wrote: > On Fri, May 29, 2020 at 06:33:25PM +0100, Mark Brown wrote: > > Please rebase. TBH I'd not noticed Rob's review so I just left it > > waiting for that, there's such a huge backlog there it didn't occur to > > me that it might've been

Re: [PATCH] dt-bindings: Merge gpio-usb-b-connector with usb-connector

2020-05-29 Thread Rob Herring
On Fri, 29 May 2020 20:06:31 +0200, Thierry Reding wrote: > From: Thierry Reding > > The binding for usb-connector is a superset of gpio-usb-b-connector. One > major difference is that gpio-usb-b-connector requires at least one of > the vbus-gpios and id-gpios properties to be specified. Merge

Re: [PATCH v2 2/4] dt-bindings: pinctrl: Document optional BCM7211 wake-up interrupts

2020-05-29 Thread Rob Herring
On Fri, 29 May 2020 12:15:20 -0700, Florian Fainelli wrote: > BCM7211 supports wake-up interrupts in the form of optional interrupt > lines, one per bank, plus the "all banks" interrupt line. > > Signed-off-by: Florian Fainelli > --- > .../devicetree/bindings/pinctrl/brcm,bcm2835-gpio.txt

[GIT PULL] ARM: SoC fixes for v5.7

2020-05-29 Thread Arnd Bergmann
The following changes since commit b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce: Linux 5.7-rc6 (2020-05-17 16:48:37 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git tags/armsoc-fixes-v5.7 for you to fetch changes up to

[ANNOUNCE] 5.4.43-rt25

2020-05-29 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 5.4.43-rt25 stable release. This release is just an update to the new stable 5.4.43 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [PATCH 13/14] lockdep: Prepare for NMI IRQ state tracking

2020-05-29 Thread Peter Zijlstra
On Fri, May 29, 2020 at 06:14:01PM -0400, Steven Rostedt wrote: > On Fri, 29 May 2020 23:27:41 +0200 > Peter Zijlstra wrote: > > > There is no reason not to always, accurately, track IRQ state. > > > > This change also makes IRQ state tracking ignore lockdep_off(). > > > > Signed-off-by: Peter

Re: Lost PCIe PME after a914ff2d78ce ("PCI/ASPM: Don't select CONFIG_PCIEASPM by default")

2020-05-29 Thread Heiner Kallweit
On 29.05.2020 22:59, Matthew Garrett wrote: > On Fri, May 29, 2020 at 03:21:35PM -0500, Bjorn Helgaas wrote: > >> Yeah, that makes sense. I can't remember the details, but I'm pretty >> sure there's a reason why we ask for the whole set of things. Seems >> like it solved some problem. I think

Re: [PATCH v2] blkdev: Replace blksize_bits() with ilog2()

2020-05-29 Thread Bart Van Assche
On 2020-05-29 13:27, Matthew Wilcox wrote: > On Fri, May 29, 2020 at 10:11:00PM +0800, Kaitao Cheng wrote: >> There is a function named ilog2() exist which can replace blksize. >> The generated code will be shorter and more efficient on some >> architecture, such as arm64. And ilog2() can be

donation

2020-05-29 Thread Anastasia McDonald
You have a sum donation for Catholic Charities Foundation, kindly contact the Program Coordinator through her email anastasia.mc...@gmail.com for details of claim. Regard Sir. Angelo Tony.

Re: [RFC PATCH 2/2] drm: xlnx: driver for Xilinx DSI TX Subsystem

2020-05-29 Thread Hyun Kwon
Hi Laurent, On Wed, 2020-05-27 at 15:45:24 -0700, Laurent Pinchart wrote: > Hi Hyun, > > On Wed, May 27, 2020 at 10:54:35AM -0700, Hyun Kwon wrote: > > On Sat, 2020-05-23 at 20:08:13 -0700, Laurent Pinchart wrote: > > > On Mon, May 04, 2020 at 11:43:48AM -0700, Hyun Kwon wrote: > > >> On Mon,

Re: [PATCH 13/14] lockdep: Prepare for NMI IRQ state tracking

2020-05-29 Thread Steven Rostedt
On Sat, 30 May 2020 00:25:05 +0200 Peter Zijlstra wrote: > > > + if (DEBUG_LOCKS_WARN_ON(current->lockdep_recursion & > > > LOCKDEP_RECURSION_MASK)) > > > return; > > ^^ there's your regular recursion check. Yes, but this is more of a "bug if it happens" than just "ignore it". --

Re: Regression with PM / wakeup: Show wakeup sources stats in sysfs"

2020-05-29 Thread Tri Vo
On Fri, May 29, 2020 at 9:51 AM Rafael J. Wysocki wrote: > > On 5/28/2020 10:46 PM, Florian Fainelli wrote: > > Hi, > > > > Commit c8377adfa78103be5380200eb9dab764d7ca890e ("PM / wakeup: Show > > wakeup sources stats in sysfs") is causing some of our tests to fail > > because

Re: [PATCH v3 0/2] dtc: Improve checks for i2c reg properties

2020-05-29 Thread Rob Herring
On Thu, May 28, 2020 at 2:57 AM Joel Stanley wrote: > > This is to fix a build warning in the Linux kernel caused by dtc > incorrectly warning about I2C_OWN_SLAVE_ADDRESS. > > v3 fixes the 10 bit size check > v2 contains a second patch to check for 10 bit vs 7 bit addresses. > > Joel Stanley (2):

Re: [PATCH] Revert "f2fs: fix quota_sync failure due to f2fs_lock_op"

2020-05-29 Thread Jaegeuk Kim
On 05/29, Chao Yu wrote: > Under heavy fsstress, we may triggle panic while issuing discard, > because __check_sit_bitmap() detects that discard command may earse > valid data blocks, the root cause is as below race stack described, > since we removed lock when flushing quota data, quota data

Re: [PATCH v2 2/3] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-05-29 Thread Sargun Dhillon
On Fri, May 29, 2020 at 6:31 AM Christian Brauner wrote: > > > > + /* Check if we were woken up by a addfd message */ > > > + addfd = list_first_entry_or_null(, > > > +struct seccomp_kaddfd, list); > > > + if (addfd &&

Re: [PATCH 13/14] lockdep: Prepare for NMI IRQ state tracking

2020-05-29 Thread Peter Zijlstra
On Sat, May 30, 2020 at 12:25:05AM +0200, Peter Zijlstra wrote: > On Fri, May 29, 2020 at 06:14:01PM -0400, Steven Rostedt wrote: > > On Fri, 29 May 2020 23:27:41 +0200 > > Peter Zijlstra wrote: > > > > > There is no reason not to always, accurately, track IRQ state. > > > > > > This change

<    7   8   9   10   11   12   13   14   >