[RFC PATCH 11/61] fscache: Remove the netfs data from the cookie

2020-05-04 Thread David Howells
Remove the netfs data pointer from the cookie so that we don't refer back to the netfs state and don't need accessors to manage this. Keep the information we do need (of which there's not actually a lot) in the cookie which we can keep hold of if the netfs state goes away. Signed-off-by: David Ho

[RFC PATCH 12/61] fscache: Remove struct fscache_cookie_def

2020-05-04 Thread David Howells
Remove the cookie definition structure so that there's no pointers from that back into the network filesystem. All of the method pointers that were in there have been removed anyway. Any remaining information is stashed in the cookie. Signed-off-by: David Howells --- fs/afs/cache.c

[RFC PATCH 13/61] fscache: Remove store_limit* from struct fscache_object

2020-05-04 Thread David Howells
Remove the store_limit values from struct fscache_object and store the object size in the cookie. The netfs can update this at will, and we don't want to call back into the netfs to fetch it. Signed-off-by: David Howells --- fs/cachefiles/interface.c | 10 ++ fs/fscache/cookie.c

[RFC PATCH 10/61] fscache: Remove the old I/O API

2020-05-04 Thread David Howells
Remove the old fscache I/O API. There's no point trying to transform it as the new one will bear no similarities to the old one. Signed-off-by: David Howells --- fs/cachefiles/Makefile |1 fs/cachefiles/interface.c| 15 - fs/cachefiles/internal.h | 38 - fs/c

Re: [PATCH] dt-bindings: power: Convert bq27xxx dt to yaml

2020-05-04 Thread Andrew F. Davis
On 5/4/20 12:44 PM, Dan Murphy wrote: > Adding Andrew in manually. > > On 5/4/20 11:41 AM, Dan Murphy wrote: >> Convert the bq27xxx.txt to yaml format >> >> CC: Pali Rohár >> CC: Andrew F. Davis" >> Signed-off-by: Dan Murphy >> --- >>   .../bindings/power/supply/bq27xxx.txt | 56 ---

[RFC PATCH 05/61] vfs: Provide S_CACHE_FILE inode flag

2020-05-04 Thread David Howells
Provide an S_CACHE_FILE inode flag that cachefiles can set to ward off other kernel services and drivers (including itself) from using its cache files. Signed-off-by: David Howells --- include/linux/fs.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/fs.h b/include/linux/f

[RFC PATCH 06/61] afs: Disable use of the fscache I/O routines

2020-05-04 Thread David Howells
Disable use of the fscache I/O routined by the AFS filesystem. It's about to transition to passing iov_iters down and fscache is about to have its I/O path to use iov_iter, so all that needs to change. Signed-off-by: David Howells --- fs/afs/file.c | 196 ++---

Re: [PATCH 19/24] rcu/tree: Support reclaim for head-less object

2020-05-04 Thread Paul E. McKenney
On Mon, May 04, 2020 at 06:56:29PM +0200, Uladzislau Rezki wrote: > > > > > > For single argument we can drop the lock before the entry to the page > > > allocator. Because it follows might_sleep() anotation we avoid of having > > > a situation when spinlock(rt mutex) is taken from any atomic cont

[RFC PATCH 09/61] fscache: Temporarily disable network filesystems' use of fscache

2020-05-04 Thread David Howells
Temporarily disable the use of fscache by the various Linux network filesystems, apart from afs, so that the core can be rewritten. Signed-off-by: David Howells --- fs/9p/Kconfig |2 +- fs/ceph/Kconfig|2 +- fs/cifs/Kconfig|2 +- fs/fscache/Kconfig |4 fs/nfs/K

[RFC PATCH 08/61] fscache: Procfile to display cookies

2020-05-04 Thread David Howells
Add /proc/fs/fscache/cookies to display active cookies. Signed-off-by: David Howells --- fs/fscache/cookie.c | 103 +++ fs/fscache/internal.h |1 fs/fscache/proc.c |7 +++ include/linux/fscache.h |1 4 files changed, 112 ins

[RFC PATCH 07/61] fscache: Add a cookie debug ID and use that in traces

2020-05-04 Thread David Howells
Add a cookie debug ID and use that in traces and in procfiles rather than displaying the (hashed) pointer to the cookie. This is easier to correlate and we don't lose anything when interpreting oops output since that shows unhashed addresses and registers that aren't comparable to the hashed value

[RFC PATCH 03/61] vm: Add wait/unlock functions for PG_fscache

2020-05-04 Thread David Howells
Add functions to unlock and wait for unlock of PG_fscache analogously with those for PG_lock. Signed-off-by: David Howells --- include/linux/pagemap.h | 14 ++ mm/filemap.c| 18 ++ 2 files changed, 32 insertions(+) diff --git a/include/linux/pagemap.

[RFC PATCH 04/61] vfs: Export rw_verify_area() for use by cachefiles

2020-05-04 Thread David Howells
Export rw_verify_area() for so that cachefiles can use it before issuing call_read_iter() and call_write_iter() to effect async DIO operations against the cache. Signed-off-by: David Howells --- fs/internal.h |5 - fs/read_write.c|1 + include/linux/fs.h |1 + 3 files c

[RFC PATCH 02/61] iov_iter: Add ITER_MAPPING

2020-05-04 Thread David Howells
Add an iterator, ITER_MAPPING, that walks through a set of pages attached to an address_space, starting at a given page and offset and walking for the specified amount of bytes. The caller must guarantee that the pages are all present and they must be locked using PG_locked, PG_writeback or PG_fsc

[RFC PATCH 01/61] afs: Make afs_zap_data() static

2020-05-04 Thread David Howells
Make afs_zap_data() static as it's only used in the file in which it is defined. Signed-off-by: David Howells --- fs/afs/inode.c|2 +- fs/afs/internal.h |1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/afs/inode.c b/fs/afs/inode.c index 281470fe1183..67ccfbab68

[RFC PATCH 00/61] fscache, cachefiles: Rewrite the I/O interface in terms of kiocb/iov_iter

2020-05-04 Thread David Howells
Here's a set of patches that massively overhauls the object lifecycle management and the I/O API of the local caching for network filesystems code for a reduction of about 3000 LoC and a 1000 line Documentation reduction. The ability to use async DIO to pass data to/from the cache gives a huge sp

Re: [PATCH v4 2/7] KVM: X86: Enable fastpath when APICv is enabled

2020-05-04 Thread Paolo Bonzini
On 30/04/20 15:34, Vitaly Kuznetsov wrote: >> static enum exit_fastpath_completion vmx_exit_handlers_fastpath(struct >> kvm_vcpu *vcpu) >> { >> -if (!is_guest_mode(vcpu)) { >> +if (!is_guest_mode(vcpu) && vcpu->arch.apicv_active) { >> switch (to_vmx(vcpu)->exit_reason) { >>

Re: [PATCH v2] perf: cs-etm: Update to build with latest opencsd version.

2020-05-04 Thread Mathieu Poirier
On Fri, May 01, 2020 at 03:36:15PM +0100, Mike Leach wrote: > OpenCSD version v0.14.0 adds in a new output element. This is represented > by a new value in the generic element type enum, which must be added to > the handling code in perf cs-etm-decoder to prevent build errors due to > build options

[PATCH v2] arm64: cacheflush: Fix KGDB trap detection

2020-05-04 Thread Daniel Thompson
flush_icache_range() contains a bodge to avoid issuing IPIs when the kgdb trap handler is running because issuing IPIs is unsafe (and not needed) in this execution context. However the current test, based on kgdb_connected is flawed: it both over-matches and under-matches. The over match occurs be

Re: [PATCH] percpu: Sync vmalloc mappings in pcpu_alloc() and free_percpu()

2020-05-04 Thread Steven Rostedt
On Mon, 4 May 2020 11:38:43 -0400 (EDT) Mathieu Desnoyers wrote: > - On May 4, 2020, at 11:31 AM, Joerg Roedel jroe...@suse.de wrote: > > > On Mon, May 04, 2020 at 11:28:46AM -0400, Mathieu Desnoyers wrote: > >> - On May 4, 2020, at 11:12 AM, Joerg Roedel jroe...@suse.de wrote: > >> Pl

Re: [PATCH] net: rtw88: fix an issue about leak system resources

2020-05-04 Thread Brian Norris
(Markus is clearly not taking the hint, but FYI for everyone else:) On Mon, May 4, 2020 at 8:00 AM Markus Elfring wrote: > > BTW, In the past week, you asked me to change the commit comments in my > > 6 patches like this one. Let me return to the essence of patch, point > > out the code problems

Re: [PATCH 0/2] KVM: nVMX: vmcs.SYSENTER optimization and "fix"

2020-05-04 Thread Paolo Bonzini
On 29/04/20 01:10, Sean Christopherson wrote: > Patch 1 is a "fix" for handling SYSENTER_EIP/ESP in L2 on a 32-bit vCPU. > The primary motivation is to provide consistent behavior after patch 2. > > Patch 2 is essentially a re-submission of a nested VMX optimization to > avoid redundant VMREADs to

Re: [PATCH v3] nfp: abm: Fix incomplete release of system resources in nfp_abm_vnic_set_mac()

2020-05-04 Thread Jakub Kicinski
On Sun, 3 May 2020 15:49:32 -0500 wu000...@umn.edu wrote: > From: Qiushi Wu > > In function nfp_abm_vnic_set_mac, pointer nsp is allocated by nfp_nsp_open. > But when nfp_nsp_has_hwinfo_lookup fail, the pointer is not released, > which can lead to a memory leak bug. Thus add a call of the functi

Re: [PATCH] nfp: abm: fix a memory leak bug

2020-05-04 Thread Jakub Kicinski
On Sat, 2 May 2020 17:42:59 -0500 wu000...@umn.edu wrote: > From: Qiushi Wu > > In function nfp_abm_vnic_set_mac, pointer nsp is allocated by nfp_nsp_open. > But when nfp_nsp_has_hwinfo_lookup fail, the pointer is not released, > which can lead to a memory leak bug. Fix this issue by adding > nf

[PATCH] Add support for Vinga Twizzle J116 Silead touchscreen

2020-05-04 Thread Andrew Dunai
--- drivers/platform/x86/touchscreen_dmi.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index 93177e6e5..a3ab19ab0 100644 --- a/drivers/platform/x86/touchscreen_dmi.c +++ b/drivers/platfo

Re: [PATCH] drm/i915/gem: Fix inconsistent IS_ERR and PTR_ERR

2020-05-04 Thread Markus Elfring
… > The proper pointer to be passed as argument is ce. > > This bug was detected with the help of Coccinelle. My software development attention was caught also by your commit message. … > +++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c > @@ -1325,7 +1325,7 @@ static int __reloc_gpu_alloc(st

[PATCH v2] net: ethernet: ti: Remove TI_CPTS_MOD workaround

2020-05-04 Thread Clay McClure
My recent commit b6d49cab44b5 ("net: Make PTP-specific drivers depend on PTP_1588_CLOCK") exposes a missing dependency in defconfigs that select TI_CPTS without selecting PTP_1588_CLOCK, leading to linker errors of the form: drivers/net/ethernet/ti/cpsw.o: in function `cpsw_ndo_stop': cpsw.c:(.te

Re: [RESEND PATCH] KVM: x86/pmu: Support full width counting

2020-05-04 Thread Paolo Bonzini
On 27/04/20 09:19, Like Xu wrote: > + if (vmx_supported_perf_capabilities()) > + kvm_cpu_cap_check_and_set(X86_FEATURE_PDCM); I think we can always set it, worst case it will be zero. However, blocking intel_pmu_set_msr altogether is incorrect. Instead, you need to: - list the M

[PATCH v2 1/3] firmware: arm_scmi: Add System Power Protocol support

2020-05-04 Thread Cristian Marussi
Add bare protocol support for SCMI SystemPower as needed by an OSPM agent: basic initialization and SYSTEM_POWER_STATE_NOTIFIER core notification support. No event-handling logic is attached to such notification by this commit. Signed-off-by: Cristian Marussi --- V1 --> V2 - use common event enu

Re: [PATCH v5] MIPS: Truncate link address into 32bit for 32bit kernel

2020-05-04 Thread Thomas Bogendoerfer
On Tue, May 05, 2020 at 12:09:46AM +0800, Jiaxun Yang wrote: > > 于 2020年5月4日 GMT+08:00 下午11:46:13, Thomas Bogendoerfer > 写到: > >On Fri, Apr 24, 2020 at 01:22:30PM +0100, Maciej W. Rozycki wrote: > >> On Thu, 23 Apr 2020, Jiaxun Yang wrote: > >> > >> > > Alternatively, have you made any attempt

Re: [PATCH 19/24] rcu/tree: Support reclaim for head-less object

2020-05-04 Thread Uladzislau Rezki
> > > > For single argument we can drop the lock before the entry to the page > > allocator. Because it follows might_sleep() anotation we avoid of having > > a situation when spinlock(rt mutex) is taken from any atomic context. > > > > Since the lock is dropped the current context can be interru

[PATCH v2 3/3] arm64: dts: juno: add SCMI SystemPower Protocol support

2020-05-04 Thread Cristian Marussi
arm64: dts: juno: add SCMI SystemPower Protocol support Signed-off-by: Cristian Marussi --- arch/arm64/boot/dts/arm/juno-base.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi index af451935146e..ffb42912

[PATCH v2 2/3] firmware: arm_scmi: Add SCMI System Power Control driver

2020-05-04 Thread Cristian Marussi
Add an SCMI System Power control driver to handle platform's requests carried by SYSTEM_POWER_STATE_NOTIFIER notifications: such platform requested system power state transitions are handled accordingly, gracefully or forcefully, depending on the notifications' message flags. Graceful requests are

[PATCH v2 0/3] SCMI System Power Support

2020-05-04 Thread Cristian Marussi
Hi all, this series wants to add the core SCMI System Power support and related events' handling logic: the protocol support itself is trivial and boils down to some bare initializations and supporting one SCMI System Power notification event meant to carry platform-originated System transition re

Re: [PATCH] dt-bindings: power: Convert bq27xxx dt to yaml

2020-05-04 Thread Dan Murphy
Adding Andrew in manually. On 5/4/20 11:41 AM, Dan Murphy wrote: Convert the bq27xxx.txt to yaml format CC: Pali Rohár CC: Andrew F. Davis" Signed-off-by: Dan Murphy --- .../bindings/power/supply/bq27xxx.txt | 56 --- .../bindings/power/supply/bq27xxx.yaml| 95

Re: [PATCH v11 01/12] add support for Clang's Shadow Call Stack (SCS)

2020-05-04 Thread Will Deacon
On Mon, Apr 27, 2020 at 01:45:46PM -0700, Sami Tolvanen wrote: > On Fri, Apr 24, 2020 at 12:21:14PM +0100, Will Deacon wrote: > > Also, since you mentioned the lack of redzoning, isn't it a bit dodgy > > allocating blindly out of the kmem_cache? It means we don't have a redzone > > or a guard page,

[PATCH RESEND net-next] net: dsa: felix: allow the device to be disabled

2020-05-04 Thread Michael Walle
If there is no specific configuration of the felix switch in the device tree, but only the default configuration (ie. given by the SoCs dtsi file), the probe fails because no CPU port has been set. On the other hand you cannot set a default CPU port because that depends on the actual board using th

[tip: x86/boot] x86/boot: Add kstrtoul() from lib/

2020-05-04 Thread tip-bot2 for Vamshi K Sthambamkadi
The following commit has been merged into the x86/boot branch of tip: Commit-ID: 5fafbebc86a0043ca5bbd8d3ce4f63dc5a02ad8e Gitweb: https://git.kernel.org/tip/5fafbebc86a0043ca5bbd8d3ce4f63dc5a02ad8e Author:Vamshi K Sthambamkadi AuthorDate:Thu, 23 Apr 2020 18:09:47 +05:30 Co

Re: [PATCHv2 08/10] net: eth: altera: add support for ptp and timestamping

2020-05-04 Thread Richard Cochran
On Mon, May 04, 2020 at 04:25:56PM +0800, Joyce Ooi wrote: > From: Dalon Westergreen > > Add support for the ptp clock used with the tse, and update > the driver to support timestamping when enabled. We also > enable debugfs entries for the ptp clock to allow some user > control and interaction

Re: [PATCH] KVM: x86/mmu: Add a helper to consolidate root sp allocation

2020-05-04 Thread Paolo Bonzini
On 28/04/20 04:37, Sean Christopherson wrote: > Add a helper, mmu_alloc_root(), to consolidate the allocation of a root > shadow page, which has the same basic mechanics for all flavors of TDP > and shadow paging. > > Note, __pa(sp->spt) doesn't need to be protected by mmu_lock, sp->spt > points a

[tip: x86/boot] x86/boot: Fix -Wint-to-pointer-cast build warning

2020-05-04 Thread tip-bot2 for Vamshi K Sthambamkadi
The following commit has been merged into the x86/boot branch of tip: Commit-ID: 40ba9309c76f29d012a5cc0cf938f8ff7dc6fef2 Gitweb: https://git.kernel.org/tip/40ba9309c76f29d012a5cc0cf938f8ff7dc6fef2 Author:Vamshi K Sthambamkadi AuthorDate:Thu, 23 Apr 2020 18:09:48 +05:30 Co

[PATCH] dt-bindings: power: Convert bq27xxx dt to yaml

2020-05-04 Thread Dan Murphy
Convert the bq27xxx.txt to yaml format CC: Pali Rohár CC: Andrew F. Davis" Signed-off-by: Dan Murphy --- .../bindings/power/supply/bq27xxx.txt | 56 --- .../bindings/power/supply/bq27xxx.yaml| 95 +++ 2 files changed, 95 insertions(+), 56 deletions(-) d

Re: [PATCH v2 1/2] coresight: Include required headers in C files

2020-05-04 Thread Mathieu Poirier
On Sun, May 03, 2020 at 11:04:37AM -0700, Stephen Boyd wrote: > Quoting Mathieu Poirier (2020-04-29 12:24:42) > > > > > > > > So please remove slab.h from the two files (but not the other one) when > > > applying. Thanks. > > > > You got it. > > I looked in next but coresight-cti-platform.c is m

Re: [PATCH 0/3] KVM: x86/mmu: Use kernel's PG_LEVEL_* enums

2020-05-04 Thread Paolo Bonzini
On 28/04/20 02:54, Sean Christopherson wrote: > Drop KVM's PT_{PAGE_TABLE,DIRECTORY,PDPE}_LEVEL KVM enums in favor of the > kernel's PG_LEVEL_{4K,2M,1G} enums, which have far more user friendly > names. > > The KVM names were presumably intended to abstract away the page size. In > practice, the

Re: [PATCH] x86: Fix RCU list usage to avoid false positive warnings

2020-05-04 Thread Paolo Bonzini
On 30/04/20 21:29, madhuparnabhowmi...@gmail.com wrote: > From: Madhuparna Bhowmik > > Use list_for_each_entry() instead of list_for_each_entry_rcu() whenever > spinlock or mutex is always held. > Otherwise, pass cond to list_for_each_entry_rcu(). > > Signed-off-by: Madhuparna Bhowmik > --- >

[PATCH] uprobes: ensure that uprobe->offset and ->ref_ctr_offset are properly aligned

2020-05-04 Thread Oleg Nesterov
uprobe_write_opcode() must not cross page boundary; prepare_uprobe() relies on arch_uprobe_analyze_insn() which should validate "vaddr" but some architectures (csky, s390, and sparc) don't do this. We can remove the BUG_ON() check in prepare_uprobe() and validate the offset early in __uprobe_regis

Re: [PATCH] kvm: x86: Cleanup vcpu->arch.guest_xstate_size

2020-05-04 Thread Paolo Bonzini
On 29/04/20 17:43, Xiaoyao Li wrote: > vcpu->arch.guest_xstate_size lost its only user since commit df1daba7d1cb > ("KVM: x86: support XSAVES usage in the host"), so clean it up. > > Signed-off-by: Xiaoyao Li > --- > arch/x86/include/asm/kvm_host.h | 1 - > arch/x86/kvm/cpuid.c| 8 ++

Re: [PATCH v2] KVM: nVMX: Tweak handling of failure code for nested VM-Enter failure

2020-05-04 Thread Paolo Bonzini
On 28/04/20 19:32, Sean Christopherson wrote: > Use an enum for passing around the failure code for a failed VM-Enter > that results in VM-Exit to provide a level of indirection from the final > resting place of the failure code, vmcs.EXIT_QUALIFICATION. The exit > qualification field is an unsign

Re: [PATCH] KVM: nVMX: Tweak handling of failure code for nested VM-Enter failure

2020-05-04 Thread Paolo Bonzini
On 24/04/20 19:19, Sean Christopherson wrote: > Use an enum for passing around the failure code for a failed VM-Enter > that results in VM-Exit to provide a level of indirection from the final > resting place of the failure code, vmcs.EXIT_QUALIFICATION. The exit > qualification field is an unsign

[PATCH] firmware: arm_sdei: remove unused interfaces

2020-05-04 Thread Christoph Hellwig
The export symbols to register/unregister and enable/disable events aren't ever used outside of arm_sdei.c, so mark them static. Signed-off-by: Christoph Hellwig --- drivers/firmware/arm_sdei.c | 13 + include/linux/arm_sdei.h| 15 --- 2 files changed, 5 insertions(+)

Re: stop using ioctl_by_bdev for file system access to CDROMs v2

2020-05-04 Thread Jens Axboe
On 4/25/20 1:56 AM, Christoph Hellwig wrote: > Hi Jens, > > except for the DASD case under discussion the last users of ioctl_by_bdev > are the file system drivers that want to query CDROM information using > ioctls. This series switches them to use function calls directly into > the CDROM midlay

Re: [PATCH 5/7] hfsplus: stop using ioctl_by_bdev

2020-05-04 Thread Jens Axboe
On 5/4/20 10:21 AM, Christoph Hellwig wrote: > On Mon, May 04, 2020 at 10:16:40AM -0600, Jens Axboe wrote: >> On 4/25/20 1:57 AM, Christoph Hellwig wrote: >>> if (HFSPLUS_SB(sb)->session >= 0) { >>> + struct cdrom_tocentry te; >>> + >>> + if (!cdi) >>> + re

Re: [linux-sunxi] Re: [PATCH v2] arm64: dts: allwinner: h6: Use dummy regulator for Tanix TX6

2020-05-04 Thread Maxime Ripard
Hi, On Thu, Apr 30, 2020 at 03:48:04PM +0200, Clément Péron wrote: > On Tue, 28 Apr 2020 at 18:45, Maxime Ripard wrote: > > > > On Tue, Apr 28, 2020 at 06:23:35PM +0200, Clément Péron wrote: > > > Hi Robin, > > > > > > On Tue, 28 Apr 2020 at 17:21, Robin Murphy wrote: > > > > > > > > On 2020-04-

[PATCH net-next 1/3] net: phy: add concept of shared storage for PHYs

2020-05-04 Thread Michael Walle
There are packages which contain multiple PHY devices, eg. a quad PHY transceiver. Provide functions to allocate and free shared storage. Usually, a quad PHY contains global registers, which don't belong to any PHY. Provide convenience functions to access these registers. Signed-off-by: Michael W

[PATCH v7 0/9] SCMI Notifications Core Support

2020-05-04 Thread Cristian Marussi
Hi all, this series wants to introduce SCMI Notification Support, built on top of the standard Kernel notification chain subsystem. At initialization time each SCMI Protocol takes care to register with the new SCMI notification core the set of its own events which it intends to support. Using th

[PATCH v7 8/9] firmware: arm_scmi: Add Reset notifications support

2020-05-04 Thread Cristian Marussi
Make SCMI Reset protocol register with the notification core. Reviewed-by: Jonathan Cameron Signed-off-by: Cristian Marussi --- V6 --> V7 - fixed report.timestamp type - added agent_id notification field - fixed .max_payld_sz initialization - expose SCMI_EVENT_ in linux/scmi_protocol.h V5 --> V6

[PATCH v7 6/9] firmware: arm_scmi: Add Perf notifications support

2020-05-04 Thread Cristian Marussi
Make SCMI Perf protocol register with the notification core. Reviewed-by: Jonathan Cameron Signed-off-by: Cristian Marussi --- V6 --> V7 - fixed report.timestamp type - fixed max_payld_sz initialization - expose SCMI_EVENT_ in linux/scmi_protocol.h V5 --> V6 - added handle argument to fill_custo

[PATCH v7 4/9] firmware: arm_scmi: Enable notification core

2020-05-04 Thread Cristian Marussi
Initialize and enable SCMI Notifications core support during bus/driver probe phase, so that protocols can start registering their supported events during their initialization. Reviewed-by: Jonathan Cameron Signed-off-by: Cristian Marussi --- V3 --> V4 - simplified core initialization: protocols

[PATCH v7 2/9] firmware: arm_scmi: Add notification callbacks-registration

2020-05-04 Thread Cristian Marussi
Add core SCMI Notifications callbacks-registration support: allow users to register their own callbacks against the desired events. Whenever a registration request is issued against a still non existent event, mark such request as pending for later processing, in order to account for possible late

[PATCH v7 7/9] firmware: arm_scmi: Add Sensor notifications support

2020-05-04 Thread Cristian Marussi
Make SCMI Sensor protocol register with the notification core. Reviewed-by: Jonathan Cameron Signed-off-by: Cristian Marussi --- V6 --> V7 - fixed report.timestamp type - removed trip_point_notify from .sensor_ops - fixed max_payld_sz initialization - expose SCMI_EVENT_ in linux/scmi_protocol.h

[PATCH net-next 3/3] net: phy: mscc: use phy_package_shared

2020-05-04 Thread Michael Walle
Use the new phy_package_shared common storage to ease the package initialization and to access the global registers. Signed-off-by: Michael Walle Tested-by: Vladimir Oltean --- drivers/net/phy/mscc/mscc.h | 1 - drivers/net/phy/mscc/mscc_main.c | 101 ++- 2 fi

[PATCH v7 5/9] firmware: arm_scmi: Add Power notifications support

2020-05-04 Thread Cristian Marussi
Make SCMI Power protocol register with the notification core. Reviewed-by: Jonathan Cameron Signed-off-by: Cristian Marussi --- V6 --> V7 - fixed report.timestamp type - removed POWER_STATE_CHANGE_REQUESTED motification handling (deprecated) - fixed max_payld_sz initialization - expose SCMI_EVEN

[PATCH v7 3/9] firmware: arm_scmi: Add notification dispatch and delivery

2020-05-04 Thread Cristian Marussi
Add core SCMI Notifications dispatch and delivery support logic which is able, at first, to dispatch well-known received events from the RX ISR to the dedicated deferred worker, and then, from there, to final deliver the events to the registered users' callbacks. Dispatch and delivery is just adde

[PATCH v7 1/9] firmware: arm_scmi: Add notification protocol-registration

2020-05-04 Thread Cristian Marussi
Add core SCMI Notifications protocol-registration support: allow protocols to register their own set of supported events, during their initialization phase. Notification core can track multiple platform instances by their handles. Reviewed-by: Jonathan Cameron Signed-off-by: Cristian Marussi ---

[PATCH net-next 2/3] net: phy: bcm54140: use phy_package_shared

2020-05-04 Thread Michael Walle
Use the new phy_package_shared common storage to ease the package initialization and to access the global registers. Signed-off-by: Michael Walle --- drivers/net/phy/bcm54140.c | 57 -- 1 file changed, 11 insertions(+), 46 deletions(-) diff --git a/drivers/ne

[PATCH v7 9/9] firmware: arm_scmi: Add Base notifications support

2020-05-04 Thread Cristian Marussi
Make SCMI Base protocol register with the notification core. Reviewed-by: Jonathan Cameron Signed-off-by: Cristian Marussi --- V6 --> V7 - fixed report.timestamp type - fix max_payld_sz initialization - fix report layout and initialization - expose SCMI_EVENT_ in linux/scmi_protocol.h V5 --> V6

[PATCH net-next 0/3] add phy shared storage

2020-05-04 Thread Michael Walle
Introduce the concept of a shared PHY storage which can be used by some QSGMII PHYs to ease initialization and access to global per-package registers. Changes since RFC: - check return code of kzalloc() - fix local variable ordering (reverse christmas tree) - add priv_size argument to phy_packa

Re: [PATCH v3 2/3] nsproxy: attach to namespaces via pidfds

2020-05-04 Thread Christian Brauner
On Mon, May 04, 2020 at 11:25:07AM -0500, Eric W. Biederman wrote: > > I am not thrilled about treating nstype as a flags fields when it is not > currently. It was my hope when I designed the interface that not > treating nstype as a flags field would save us from the problem of bits > running ou

Re: [PATCH 1/2] splice: export do_tee()

2020-05-04 Thread Jens Axboe
On 5/4/20 10:36 AM, Pavel Begunkov wrote: > On 04/05/2020 17:03, Pavel Begunkov wrote: >> On 04/05/2020 16:43, Jens Axboe wrote: >>> On 5/4/20 6:31 AM, Pavel Begunkov wrote: On 04/05/2020 14:09, Jann Horn wrote: > On Sat, May 2, 2020 at 2:10 PM Pavel Begunkov > wrote: >> export d

My Dear in the lord

2020-05-04 Thread Mrs.A.Mina
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited t

Re: [PATCH 1/2] splice: export do_tee()

2020-05-04 Thread Pavel Begunkov
On 04/05/2020 17:03, Pavel Begunkov wrote: > On 04/05/2020 16:43, Jens Axboe wrote: >> On 5/4/20 6:31 AM, Pavel Begunkov wrote: >>> On 04/05/2020 14:09, Jann Horn wrote: On Sat, May 2, 2020 at 2:10 PM Pavel Begunkov wrote: > export do_tee() for use in io_uring [...] > diff

Re: [PATCH kvm-unit-tests] svm: Fix nmi hlt test to fail test correctly

2020-05-04 Thread Paolo Bonzini
On 28/04/20 20:41, Cathy Avery wrote: > The last test does not return vmmcall on fail resulting > in passing the entire test. > > Signed-off-by: Cathy Avery > --- > x86/svm_tests.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/x86/svm_tests.c b/x86/svm_tests.c > index 2b84e4d..65008b

Re: [PATCH] fs: jfs: fix a possible data race in metapage_writepage()

2020-05-04 Thread Markus Elfring
… > To fix this data race, the spinlock mp->log->gclock is used in > metapage_writepage(). > > This data race is found by our concurrency fuzzer. How do you think about a wording variant like the following? Change description: … This data race was found by our concurrency fuzzer. Thu

[PATCH 2/3] dt-bindings: leds: Add binding for aw2013

2020-05-04 Thread nikitos . tr
From: Nikita Travkin Add YAML devicetree binding for AWINIC AW2013 3-channel led driver Signed-off-by: Nikita Travkin --- .../devicetree/bindings/leds/leds-aw2013.yaml | 91 +++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-aw2

[PATCH 3/3] dt-bindings: vendor-prefixes: Add Shanghai Awinic Technology Co., Ltd.

2020-05-04 Thread nikitos . tr
From: Nikita Travkin Add the "awinic" vendor prefix for Shanghai Awinic Technology Co., Ltd. Website: https://www.awinic.com/ Signed-off-by: Nikita Travkin --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/

[PATCH 1/3] leds: add aw2013 driver

2020-05-04 Thread nikitos . tr
From: Nikita Travkin This commit adds support for AWINIC AW2013 3-channel LED driver. The chip supports 3 PWM channels and is controlled with I2C. Signed-off-by: Nikita Travkin --- drivers/leds/Kconfig | 10 + drivers/leds/Makefile | 1 + drivers/leds/leds-aw2013.c | 481

[PATCH] kvm: ioapic: Restrict lazy EOI update to edge-triggered interrupts

2020-05-04 Thread Paolo Bonzini
Commit f458d039db7e ("kvm: ioapic: Lazy update IOAPIC EOI") introduces the following infinite loop: BUG: stack guard page was hit at 8f595917 \ (stack is bdefe5a4..ae2b06f5) kernel stack overflow (double-fault): [#1] SMP NOPTI RIP: 0010:kvm_set_irq+0x51/0x160 [kvm] Cal

Re: [PATCH v3 2/3] nsproxy: attach to namespaces via pidfds

2020-05-04 Thread Eric W. Biederman
I am not thrilled about treating nstype as a flags fields when it is not currently. It was my hope when I designed the interface that not treating nstype as a flags field would save us from the problem of bits running out. That aside. It would be very good if the default version of setting eve

[PATCH] kvm: ioapic: Restrict lazy EOI update to edge-triggered interrupts

2020-05-04 Thread Paolo Bonzini
Commit f458d039db7e ("kvm: ioapic: Lazy update IOAPIC EOI") introduces the following infinite loop: BUG: stack guard page was hit at 8f595917 \ (stack is bdefe5a4..ae2b06f5) kernel stack overflow (double-fault): [#1] SMP NOPTI RIP: 0010:kvm_set_irq+0x51/0x160 [kvm] Cal

Re: [PATCH v3 1/3] nsproxy: add struct nsset

2020-05-04 Thread Christian Brauner
On Mon, May 04, 2020 at 11:15:54AM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > Add a simple struct nsset. It holds all necessary pieces to switch to a new > > set of namespaces without leaving a task in a half-switched state which we > > will make use of in the next patch. T

Re: [PATCH] Makefile: support compressed debug info

2020-05-04 Thread Sedat Dilek
On Mon, May 4, 2020 at 5:13 AM Nick Desaulniers wrote: > > As debug information gets larger and larger, it helps significantly save > the size of vmlinux images to compress the information in the debug > information sections. Note: this debug info is typically split off from > the final compressed

Re: [PATCH v5.6-rt] mm: slub: Always flush the delayed empty slubs in flush_all()

2020-05-04 Thread Sebastian Andrzej Siewior
On 2020-05-04 11:34:07 [+0800], Kevin Hao wrote: > After commit f0b231101c94 ("mm/SLUB: delay giving back empty slubs to … > Fixes: f0b231101c94 ("mm/SLUB: delay giving back empty slubs to IRQ enabled > regions") > Signed-off-by: Kevin Hao Applied, thanks. Sebastian

Re: [PATCH] USB: serial: qcserial: Add DW5816e support

2020-05-04 Thread Johan Hovold
On Sun, May 03, 2020 at 01:03:47AM +1000, Matt Jolly wrote: > Add support for Dell Wireless 5816e to drivers/usb/serial/qcserial.c > > Signed-off-by: Matt Jolly Applied, thanks. Johan

Re: [PATCH RFC 1/2] fs/iomap/direct-io: pass NOWAIT to bio flags

2020-05-04 Thread Konstantin Khlebnikov
On 04/05/2020 19.00, Christoph Hellwig wrote: On Mon, May 04, 2020 at 06:54:53PM +0300, Konstantin Khlebnikov wrote: This is required to avoid waiting in lower layers. Signed-off-by: Konstantin Khlebnikov This looks sensible. Did you run this through xfstests? Nope. It seems xfstests has

Re: perf trace segfault

2020-05-04 Thread Santiago Pastorino
Hi, I'm still hitting this segfault on Archlinux using 5.6.10-arch1-1 and perf 5.6.g7111951b8d49. I've replicated it running it over gnome-terminal ... # ps -A cuf ... santiago3978 4.4 0.2 478940 92692 ?Ssl 13:08 0:22 \_ gnome-terminal- santiago4122 0.0 0.0 20180 16920 pt

Re: [PATCH 5/7] hfsplus: stop using ioctl_by_bdev

2020-05-04 Thread Christoph Hellwig
On Mon, May 04, 2020 at 10:16:40AM -0600, Jens Axboe wrote: > On 4/25/20 1:57 AM, Christoph Hellwig wrote: > > if (HFSPLUS_SB(sb)->session >= 0) { > > + struct cdrom_tocentry te; > > + > > + if (!cdi) > > + return -EINVAL; > > + > > te.cdte_trac

Re: [PATCH v3 1/3] nsproxy: add struct nsset

2020-05-04 Thread Eric W. Biederman
Christian Brauner writes: > Add a simple struct nsset. It holds all necessary pieces to switch to a new > set of namespaces without leaving a task in a half-switched state which we > will make use of in the next patch. This patch simply switches the existing > setns logic over without causing a c

Re: [PATCH v3 1/6] block: revert back to synchronous request_queue removal

2020-05-04 Thread Luis Chamberlain
On Sun, May 03, 2020 at 03:32:45AM -0700, Matthew Wilcox wrote: > On Fri, May 01, 2020 at 05:22:12PM -0700, Bart Van Assche wrote: > > > expected behaviour before and it now fails as the device is still present > >^ > >behavior? > > That's UK/US spelling. We do not

Re: [PATCH][next] io_uring: Remove logically dead code in io_splice

2020-05-04 Thread Gustavo A. R. Silva
On 5/4/20 10:25, Jens Axboe wrote: >> diff --git a/fs/io_uring.c b/fs/io_uring.c >> index e5dfbbd2aa34..4b1efb062f7f 100644 >> --- a/fs/io_uring.c >> +++ b/fs/io_uring.c >> @@ -2782,7 +2782,7 @@ static int io_splice(struct io_kiocb *req, bool >> force_nonblock) >> poff_in = (sp->off_in ==

[PATCH] fs: xfs: fix a possible data race in xfs_inode_set_reclaim_tag()

2020-05-04 Thread Jia-Ju Bai
We find that xfs_inode_set_reclaim_tag() and xfs_reclaim_inode() are concurrently executed at runtime in the following call contexts: Thread1: xfs_fs_put_super() xfs_unmountfs() xfs_rtunmount_inodes() xfs_irele() xfs_fs_destroy_inode() xfs_inode_set_reclai

Re: [PATCH] KVM: x86: Fixes posted interrupt check for IRQs delivery modes

2020-05-04 Thread Paolo Bonzini
On 02/05/20 15:13, Maxim Levitsky wrote: > Reviewed-by: Maxim Levitsky > Tested-by: Maxim Levitsky Queued, thanks. Paolo

Re: [PATCH 5/7] hfsplus: stop using ioctl_by_bdev

2020-05-04 Thread Jens Axboe
On 4/25/20 1:57 AM, Christoph Hellwig wrote: > if (HFSPLUS_SB(sb)->session >= 0) { > + struct cdrom_tocentry te; > + > + if (!cdi) > + return -EINVAL; > + > te.cdte_track = HFSPLUS_SB(sb)->session; > te.cdte_format = CDRO

RE: [PATCH] drm/i915: check to see if SIMD registers are available before using SIMD

2020-05-04 Thread David Laight
From: Christoph Hellwig > Sent: 04 May 2020 17:03 > > On Sun, May 03, 2020 at 09:20:19PM +0100, Chris Wilson wrote: > > > Err, why does i915 implements its own uncached memcpy instead of relying > > > on core functionality to start with? > > > > What is this core functionality that provides movntq

Re: [PATCH v3 1/6] block: revert back to synchronous request_queue removal

2020-05-04 Thread Luis Chamberlain
On Fri, May 01, 2020 at 05:22:12PM -0700, Bart Van Assche wrote: > Please fix the spelling errors. Otherwise this patch looks good to me. Fixed, thanks for the review. Luis

Re: [PATCH] fs: jfs: fix a possible data race in txBegin()

2020-05-04 Thread Markus Elfring
> Thus, a data race can occur for tblk->flag. > > To fix this data race, the spinlock log->gclock is used in > txBegin(). > > This data race is found by our concurrency fuzzer. How do you think about a wording variant like the following? Change description: A data race can occur for the dat

[ANNOUNCE] xfs-linux: vfs-for-next updated to 83d9088659e8

2020-05-04 Thread Darrick J. Wong
Hi folks, The vfs-for-next branch of the xfs-linux repository at: git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git has just been updated. After a very, very long process of discussing how sysadmins and app programmers are supposed to tag files for DAX data access mode, we have reached

Re: [PATCH] drm/i915: Don't enable WaIncreaseLatencyIPCEnabled when IPC is disabled

2020-05-04 Thread Ville Syrjälä
On Thu, Apr 30, 2020 at 02:46:54PM -0700, Sultan Alsawaf wrote: > From: Sultan Alsawaf > > In commit 5a7d202b1574, a logical AND was erroneously changed to an OR, > causing WaIncreaseLatencyIPCEnabled to be enabled unconditionally for > kabylake and coffeelake, even when IPC is disabled. Fix the

Re: [PATCH v5] MIPS: Truncate link address into 32bit for 32bit kernel

2020-05-04 Thread Jiaxun Yang
于 2020年5月4日 GMT+08:00 下午11:46:13, Thomas Bogendoerfer 写到: >On Fri, Apr 24, 2020 at 01:22:30PM +0100, Maciej W. Rozycki wrote: >> On Thu, 23 Apr 2020, Jiaxun Yang wrote: >> >> > > Alternatively, have you made any attempt to verify if actually replacing >> > >the setting for VMLINUX_LOAD_ADDRE

Re: [PATCH] vfio-pci: Mask cap zero

2020-05-04 Thread Cornelia Huck
On Fri, 01 May 2020 15:41:24 -0600 Alex Williamson wrote: > There is no PCI spec defined capability with ID 0, therefore we don't > expect to find it in a capability chain and we use this index in an > internal array for tracking the sizes of various capabilities to handle > standard config space

[PATCH] slub: limit count of partial slabs scanned to gather statistics

2020-05-04 Thread Konstantin Khlebnikov
To get exact count of free and used objects slub have to scan list of partial slabs. This may take at long time. Scanning holds spinlock and blocks allocations which move partial slabs to per-cpu lists and back. Example found in the wild: # cat /sys/kernel/slab/dentry/partial 14478538 N0=7329569

<    5   6   7   8   9   10   11   12   13   14   >