[PATCH v4 22/26] kvm: arm64: Intercept host's CPU_SUSPEND PSCI SMCs

2020-12-02 Thread David Brazdil
Add a handler of CPU_SUSPEND host PSCI SMCs. The SMC can either enter a sleep state indistinguishable from a WFI or a deeper sleep state that behaves like a CPU_OFF+CPU_ON except that the core is still considered online while asleep. The handler saves r0,pc of the host and makes the same call to

[PATCH v4 23/26] kvm: arm64: Intercept host's SYSTEM_SUSPEND PSCI SMCs

2020-12-02 Thread David Brazdil
Add a handler of SYSTEM_SUSPEND host PSCI SMCs. The semantics are equivalent to CPU_SUSPEND, typically called on the last online CPU. Reuse the same entry point and boot args struct as CPU_SUSPEND. Signed-off-by: David Brazdil --- arch/arm64/kvm/hyp/nvhe/hyp-init.S | 2 +-

[PATCH v4 13/26] kvm: arm64: Support per_cpu_ptr in nVHE hyp code

2020-12-02 Thread David Brazdil
When compiling with __KVM_NVHE_HYPERVISOR__, redefine per_cpu_offset() to __hyp_per_cpu_offset() which looks up the base of the nVHE per-CPU region of the given cpu and computes its offset from the .hyp.data..percpu section. This enables use of per_cpu_ptr() helpers in nVHE hyp code. Until now

[PATCH v4 15/26] kvm: arm64: Add SMC handler in nVHE EL2

2020-12-02 Thread David Brazdil
Add handler of host SMCs in KVM nVHE trap handler. Forward all SMCs to EL3 and propagate the result back to EL1. This is done in preparation for validating host SMCs in KVM protected mode. The implementation assumes that firmware uses SMCCC v1.2 or older. That means x0-x17 can be used both for

[PATCH v4 11/26] kvm: arm64: Init MAIR/TCR_EL2 from params struct

2020-12-02 Thread David Brazdil
MAIR_EL2 and TCR_EL2 are currently initialized from their _EL1 values. This will not work once KVM starts intercepting PSCI ON/SUSPEND SMCs and initializing EL2 state before EL1 state. Obtain the EL1 values during KVM init and store them in the init params struct. The struct will stay in memory

[PATCH v4 21/26] kvm: arm64: Intercept host's CPU_ON SMCs

2020-12-02 Thread David Brazdil
Add a handler of the CPU_ON PSCI call from host. When invoked, it looks up the logical CPU ID corresponding to the provided MPIDR and populates the state struct of the target CPU with the provided x0, pc. It then calls CPU_ON itself, with an entry point in hyp that initializes EL2 state before

[PATCH v4 19/26] kvm: arm64: Extract __do_hyp_init into a helper function

2020-12-02 Thread David Brazdil
In preparation for adding a CPU entry point in nVHE hyp code, extract most of __do_hyp_init hypervisor initialization code into a common helper function. This will be invoked by the entry point to install KVM on the newly booted CPU. Signed-off-by: David Brazdil ---

[PATCH v4 20/26] kvm: arm64: Add function to enter host from KVM nVHE hyp code

2020-12-02 Thread David Brazdil
All nVHE hyp code is currently executed as handlers of host's HVCs. This will change as nVHE starts intercepting host's PSCI CPU_ON SMCs. The newly booted CPU will need to initialize EL2 state and then enter the host. Add __host_enter function that branches into the existing host state-restoring

[PATCH v4 18/26] kvm: arm64: Forward safe PSCI SMCs coming from host

2020-12-02 Thread David Brazdil
Forward the following PSCI SMCs issued by host to EL3 as they do not require the hypervisor's intervention. This assumes that EL3 correctly implements the PSCI specification. Only function IDs implemented in Linux are included. Where both 32-bit and 64-bit variants exist, it is assumed that the

[PATCH v4 17/26] kvm: arm64: Add offset for hyp VA <-> PA conversion

2020-12-02 Thread David Brazdil
Add a host-initialized constant to KVM nVHE hyp code for converting between EL2 linear map virtual addresses and physical addresses. Also add `__hyp_pa` macro that performs the conversion. Signed-off-by: David Brazdil --- arch/arm64/kvm/hyp/nvhe/psci-relay.c | 3 +++ arch/arm64/kvm/va_layout.c

[PATCH v4 16/26] kvm: arm64: Bootstrap PSCI SMC handler in nVHE EL2

2020-12-02 Thread David Brazdil
Add a handler of PSCI SMCs in nVHE hyp code. The handler is initialized with the version used by the host's PSCI driver and the function IDs it was configured with. If the SMC function ID matches one of the configured PSCI calls (for v0.1) or falls into the PSCI function ID range (for v0.2+), the

[PATCH v4 09/26] kvm: arm64: Remove vector_ptr param of hyp-init

2020-12-02 Thread David Brazdil
KVM precomputes the hyp VA of __kvm_hyp_host_vector, essentially a constant (minus ASLR), before passing it to __kvm_hyp_init. Now that we have alternatives for converting kimg VA to hyp VA, replace this with computing the constant inside __kvm_hyp_init, thus removing the need for an argument.

[PATCH v4 10/26] kvm: arm64: Move hyp-init params to a per-CPU struct

2020-12-02 Thread David Brazdil
Once we start initializing KVM on newly booted cores before the rest of the kernel, parameters to __do_hyp_init will need to be provided by EL2 rather than EL1. At that point it will not be possible to pass its three arguments directly because PSCI_CPU_ON only supports one context argument.

[PATCH v4 12/26] kvm: arm64: Add .hyp.data..ro_after_init ELF section

2020-12-02 Thread David Brazdil
Add rules for renaming the .data..ro_after_init ELF section in KVM nVHE object files to .hyp.data..ro_after_init, linking it into the kernel and mapping it in hyp at runtime. The section is RW to the host, then mapped RO in hyp. The expectation is that the host populates the variables in the

[PATCH v4 14/26] kvm: arm64: Create nVHE copy of cpu_logical_map

2020-12-02 Thread David Brazdil
When KVM starts validating host's PSCI requests, it will need to map MPIDR back to the CPU ID. To this end, copy cpu_logical_map into nVHE hyp memory when KVM is initialized. Only copy the information for CPUs that are online at the point of KVM initialization so that KVM rejects CPUs whose

[PATCH v4 06/26] psci: Add accessor for psci_0_1_function_ids

2020-12-02 Thread David Brazdil
Make it possible to retrieve a copy of the psci_0_1_function_ids struct. This is useful for KVM if it is configured to intercept host's PSCI SMCs. Signed-off-by: David Brazdil --- drivers/firmware/psci/psci.c | 12 +--- include/linux/psci.h | 9 + 2 files changed, 14

[PATCH v4 05/26] psci: Replace psci_function_id array with a struct

2020-12-02 Thread David Brazdil
Small refactor that replaces array of v0.1 function IDs indexed by an enum of function-name constants with a struct of function IDs "indexed" by field names. This is done in preparation for exposing the IDs to other parts of the kernel. Exposing a struct avoids the need for bounds checking.

Re: [PATCH v3 net-next 2/2] net: dsa: qca: ar9331: export stats64

2020-12-02 Thread Jakub Kicinski
On Wed, 2 Dec 2020 15:09:04 +0100 Oleksij Rempel wrote: > Add stats support for the ar9331 switch. > > Signed-off-by: Oleksij Rempel Ah, I missed the v3 (like most reviewers it seems :)). The sleeping in ndo_get_stats64 question applies.

[PATCH v4 04/26] psci: Split functions to v0.1 and v0.2+ variants

2020-12-02 Thread David Brazdil
Refactor implementation of v0.1+ functions (CPU_SUSPEND, CPU_OFF, CPU_ON, MIGRATE) to have two functions psci_0_1_foo / psci_0_2_foo that select the function ID and call a common helper __psci_foo. This is a small cleanup so that the function ID array is only used for v0.1 configurations.

Re: [PATCH] PCI: aardvark: Update comment about disabling link training

2020-12-02 Thread Pali Rohár
On Monday 30 November 2020 10:52:00 Lorenzo Pieralisi wrote: > On Mon, Nov 30, 2020 at 12:17:41AM +0100, Pali Rohár wrote: > > On Sunday 11 October 2020 19:21:49 Pali Rohár wrote: > > > On Thursday 24 September 2020 17:22:32 Pali Rohár wrote: > > > > On Thursday 24 September 2020 10:11:06 Bjorn

[PATCH v4 03/26] psci: Support psci_ops.get_version for v0.1

2020-12-02 Thread David Brazdil
KVM's host PSCI SMC filter needs to be aware of the PSCI version of the system but currently it is impossible to distinguish between v0.1 and PSCI disabled because both have get_version == NULL. Populate get_version for v0.1 with a function that returns a constant. psci_opt.get_version is

[PATCH v4 02/26] kvm: arm64: Add ARM64_KVM_PROTECTED_MODE CPU capability

2020-12-02 Thread David Brazdil
Expose the boolean value whether the system is running with KVM in protected mode (nVHE + kernel param). CPU capability was selected over a global variable to allow use in alternatives. Signed-off-by: David Brazdil --- arch/arm64/include/asm/cpucaps.h | 3 ++-

[PATCH v4 01/26] kvm: arm64: Add kvm-arm.mode early kernel parameter

2020-12-02 Thread David Brazdil
Add an early parameter that allows users to select the mode of operation for KVM/arm64. For now, the only supported value is "protected". By passing this flag users opt into the hypervisor placing additional restrictions on the host kernel. These allow the hypervisor to spawn guests whose state

[PATCH v4 00/26] Opt-in always-on nVHE hypervisor

2020-12-02 Thread David Brazdil
As we progress towards being able to keep guest state private to the host running nVHE hypervisor, this series allows the hypervisor to install itself on newly booted CPUs before the host is allowed to run on them. All functionality described below is opt-in, guarded by an early param

Re: [PATCH v2 2/2] net: dsa: qca: ar9331: export stats64

2020-12-02 Thread Jakub Kicinski
On Wed, 2 Dec 2020 13:07:12 +0100 Oleksij Rempel wrote: > +static void ar9331_read_stats(struct ar9331_sw_port *port) > +{ > + mutex_lock(>lock); > + mutex_unlock(>lock); > +} > +static void ar9331_get_stats64(struct dsa_switch *ds, int port, > +struct

Re: [PATCH v2 17/17] ibmvfc: provide modules parameters for MQ settings

2020-12-02 Thread Brian King
On 12/1/20 6:53 PM, Tyrel Datwyler wrote: > +module_param_named(mig_channels_only, mig_channels_only, uint, S_IRUGO | > S_IWUSR); > +MODULE_PARM_DESC(mig_channels_only, "Prevent migration to non-channelized > system. " > + "[Default=" __stringify(IBMVFC_MIG_NO_SUB_TO_CRQ) "]"); >

Re: [PATCH] rtc: adapt allowed RTC update error

2020-12-02 Thread Thomas Gleixner
On Wed, Dec 02 2020 at 16:36, Miroslav Lichvar wrote: > On Wed, Dec 02, 2020 at 04:07:28PM +0100, Miroslav Lichvar wrote: >> On Wed, Dec 02, 2020 at 02:44:53PM +0100, Thomas Gleixner wrote: >> > Something like the completely untested below should make this reliable >> > and only needs to retry

Re: [PATCH 1/2] kernfs: replace the mutex in kernfs_iop_permission with a rwlock

2020-12-02 Thread Tejun Heo
On Wed, Dec 02, 2020 at 10:58:36PM +0800, Fox Chen wrote: > diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h > index 89f6a4214a70..545cdb39b34b 100644 > --- a/include/linux/kernfs.h > +++ b/include/linux/kernfs.h > @@ -156,6 +156,7 @@ struct kernfs_node { > unsigned short

[RFC PATCH] checkpatch: correctly detect lines of help text

2020-12-02 Thread Nicolai Fischer
Currently, checkpatch uses keywords to determine the end of a Kconfig help message which leads to false positives: 1) if a line of the help text starts with any of the keywords, e.g. if: +config FOO + help + help text + if condition + previous line causes warning +

Re: [PATCH 1/2] kernfs: replace the mutex in kernfs_iop_permission with a rwlock

2020-12-02 Thread Tejun Heo
Hello, On Wed, Dec 02, 2020 at 10:58:36PM +0800, Fox Chen wrote: > @@ -121,7 +121,7 @@ int kernfs_iop_setattr(struct dentry *dentry, struct > iattr *iattr) > if (!kn) > return -EINVAL; > > - mutex_lock(_mutex); > + write_lock(>iattr_rwlock); > error =

Re: [PATCH RFC 10/39] KVM: x86/xen: support upcall vector

2020-12-02 Thread Joao Martins
On 12/2/20 4:47 PM, David Woodhouse wrote: > On Wed, 2020-12-02 at 13:12 +, Joao Martins wrote: >> On 12/2/20 11:17 AM, David Woodhouse wrote: >>> I might be more inclined to go for a model where the kernel handles the >>> evtchn_pending/evtchn_mask for us. What would go into the irq routing

Re: [PATCH net-next 2/2] ath10k: Constify static qmi structs

2020-12-02 Thread Kalle Valo
Rikard Falkeborn wrote: > qmi_msg_handler[] and ath10k_qmi_ops are only used as input arguments > to qmi_handle_init() which accepts const pointers to both qmi_ops and > qmi_msg_handler. Make them const to allow the compiler to put them in > read-only memory. > > Signed-off-by: Rikard Falkeborn

Re: [PATCH 1/2] ath10k: Fix an error handling path

2020-12-02 Thread Kalle Valo
Christophe JAILLET wrote: > If 'ath10k_usb_create()' fails, we should release some resources and report > an error instead of silently continuing. > > Fixes: 4db66499df91 ("ath10k: add initial USB support") > Signed-off-by: Christophe JAILLET > Signed-off-by: Kalle Valo 2 patches applied to

Re: [PATCH v3] ath10k: Fix the parsing error in service available event

2020-12-02 Thread Kalle Valo
Doug Anderson writes: > Hi, > > On Sun, Nov 15, 2020 at 8:35 PM Rakesh Pillai wrote: >> >> The wmi service available event has been >> extended to contain extra 128 bit for new services >> to be indicated by firmware. >> >> Currently the presence of any optional TLVs in >> the wmi service

Re: power-off delay/hang due to commit 6d25be57 (mainline)

2020-12-02 Thread Rafael J. Wysocki
On Wed, Dec 2, 2020 at 7:03 PM Sebastian Andrzej Siewior wrote: > > On 2020-10-26 18:20:59 [+0100], To Rafael J. Wysocki wrote: > > > > > > Done as Bug 208877. > > > > Rafael, do you have any suggestions? > > > > > > I've lost track of this sorry. > > > > > > I have ideas, let me get back to this

Re: [PATCH v2 16/17] ibmvfc: enable MQ and set reasonable defaults

2020-12-02 Thread Brian King
Reviewed-by: Brian King -- Brian King Power Linux I/O IBM Linux Technology Center

[PATCH -mmots] checkpatch: add fix for non-standard signature - co-authored-by

2020-12-02 Thread Aditya Srivastava
Currently, checkpatch.pl warns us for BAD_SIGN_OFF on the usage of non-standard signatures. An evaluation on v4.13..v5.8 showed that out of 539 warnings due to non-standard signatures, 43 are due to the use of 'Co-authored-by' tag, which may seem correct, but is not standard. The standard

[PATCH 8/9] mm: memcontrol: reparent nr_deferred when memcg offline

2020-12-02 Thread Yang Shi
Now shrinker's nr_deferred is per memcg for memcg aware shrinkers, add to parent's corresponding nr_deferred when memcg offline. Signed-off-by: Yang Shi --- include/linux/shrinker.h | 4 mm/memcontrol.c | 24 mm/vmscan.c | 2 +- 3 files

[PATCH 9/9] mm: vmscan: shrink deferred objects proportional to priority

2020-12-02 Thread Yang Shi
The number of deferred objects might get windup to an absurd number, and it results in clamp of slab objects. It is undesirable for sustaining workingset. So shrink deferred objects proportional to priority and cap nr_deferred to twice of cache items. Signed-off-by: Yang Shi --- mm/vmscan.c

[PATCH 6/9] mm: vmscan: use per memcg nr_deferred of shrinker

2020-12-02 Thread Yang Shi
Use per memcg's nr_deferred for memcg aware shrinkers. The shrinker's nr_deferred will be used in the following cases: 1. Non memcg aware shrinkers 2. !CONFIG_MEMCG 3. memcg is disabled by boot parameter Signed-off-by: Yang Shi --- mm/vmscan.c | 88

[PATCH 7/9] mm: vmscan: don't need allocate shrinker->nr_deferred for memcg aware shrinkers

2020-12-02 Thread Yang Shi
Now nr_deferred is available on per memcg level for memcg aware shrinkers, so don't need allocate shrinker->nr_deferred for such shrinkers anymore. Signed-off-by: Yang Shi --- mm/vmscan.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[PATCH 5/9] mm: memcontrol: add per memcg shrinker nr_deferred

2020-12-02 Thread Yang Shi
Currently the number of deferred objects are per shrinker, but some slabs, for example, vfs inode/dentry cache are per memcg, this would result in poor isolation among memcgs. The deferred objects typically are generated by __GFP_NOFS allocations, one memcg with excessive __GFP_NOFS

Re: [PATCH v11 5/5] leds: mt6360: Add LED driver for MT6360

2020-12-02 Thread kernel test robot
, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Gene-Chen/leds-mt6360-Add-LED-driver-for-MT6360/20201202-185224 base: git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git for-next config: arm

Re: [PATCH v3] ath10k: Fix the parsing error in service available event

2020-12-02 Thread Kalle Valo
Rakesh Pillai wrote: > The wmi service available event has been > extended to contain extra 128 bit for new services > to be indicated by firmware. > > Currently the presence of any optional TLVs in > the wmi service available event leads to a parsing > error with the below error message: >

[PATCH 3/9] mm: memcontrol: rename memcg_shrinker_map_mutex to memcg_shrinker_mutex

2020-12-02 Thread Yang Shi
The following patch will add memcg_shrinker_deferred which could be protected by the same mutex, rename it to a more common name. Signed-off-by: Yang Shi --- mm/memcontrol.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index

[PATCH 4/9] mm: vmscan: use a new flag to indicate shrinker is registered

2020-12-02 Thread Yang Shi
Currently registered shrinker is indicated by non-NULL shrinker->nr_deferred. This approach is fine with nr_deferred atthe shrinker level, but the following patches will move MEMCG_AWARE shrinkers' nr_deferred to memcg level, so their shrinker->nr_deferred would always be NULL. This would prevent

Re: [PATCH 0/2] kernfs: speed up concurrency performance

2020-12-02 Thread Greg KH
On Wed, Dec 02, 2020 at 10:58:35PM +0800, Fox Chen wrote: > Hello, > > kernfs is an important facillity to support pseudo file systems and cgroup. > Currently, with a global mutex, reading files concurrently from kernfs (e.g. > /sys) > is very slow. > > This problem is reported by Brice

[no subject]

2020-12-02 Thread Yun Levi
On Thu, Dec 3, 2020 at 2:36 AM Andy Shevchenko wrote: > > On Wed, Dec 02, 2020 at 09:26:05AM -0800, Yury Norov wrote: > > On Wed, Dec 2, 2020 at 3:50 AM Yun Levi wrote: > > ... > > > I think this patch has some good catches. We definitely need to implement > > find_last_zero_bit(), as it is

[PATCH 2/9] mm: vmscan: use nid from shrink_control for tracepoint

2020-12-02 Thread Yang Shi
The tracepoint's nid should show what node the shrink happens on, the start tracepoint uses nid from shrinkctl, but the nid might be set to 0 before end tracepoint if the shrinker is not NUMA aware, so the traceing log may show the shrink happens on one node but end up on the other node. It

Re: [PATCH v2 15/17] ibmvfc: send Cancel MAD down each hw scsi channel

2020-12-02 Thread Brian King
On 12/1/20 6:53 PM, Tyrel Datwyler wrote: > In general the client needs to send Cancel MADs and task management > commands down the same channel as the command(s) intended to cancel or > abort. The client assigns cancel keys per LUN and thus must send a > Cancel down each channel commands were

[RFC PATCH 0/9] Make shrinker's nr_deferred memcg aware

2020-12-02 Thread Yang Shi
Recently huge amount one-off slab drop was seen on some vfs metadata heavy workloads, it turned out there were huge amount accumulated nr_deferred objects seen by the shrinker. On our production machine, I saw absurd number of nr_deferred shown as the below tracing result: <...>-48776 [032]

[PATCH 1/9] mm: vmscan: simplify nr_deferred update code

2020-12-02 Thread Yang Shi
Currently if (next_deferred - scanned) = 0, the code would just read the current nr_deferred otherwise add the delta back. Both needs atomic operation anyway, it seems there is not too much gain by distinguishing the two cases, so just add the delta back even though the delta is 0. This would

Re: [PATCH v1 1/1] mfd: intel-m10-bmc: expose mac address and count

2020-12-02 Thread Russ Weight
On 12/2/20 5:44 AM, Tom Rix wrote: > On 12/1/20 12:36 PM, Russ Weight wrote: >> Create two sysfs entries for exposing the MAC address >> and count from the MAX10 BMC register space. >> >> Signed-off-by: Russ Weight >> Signed-off-by: Xu Yilun >> --- >>

Re: [PATCH 2/2] kernfs: remove mutex in kernfs_dop_revalidate

2020-12-02 Thread Greg KH
On Wed, Dec 02, 2020 at 10:58:37PM +0800, Fox Chen wrote: > There is a big mutex in kernfs_dop_revalidate which slows down the > concurrent performance of kernfs. > > Since kernfs_dop_revalidate only does some checks, the lock is > largely unnecessary. Also, according to kernel filesystem locking

Re: [PATCH 1/2] kernfs: replace the mutex in kernfs_iop_permission with a rwlock

2020-12-02 Thread Greg KH
On Wed, Dec 02, 2020 at 10:58:36PM +0800, Fox Chen wrote: > A big global mutex in kernfs_iop_permission will significanly drag > system performance when processes concurrently open files > on kernfs in Big machines(with >= 16 cpu cores). > > This patch replace the big mutex with a rwlock

Re: [PATCH v2 3/3] edac: Supporting AST2400 and AST2600 edac driver

2020-12-02 Thread Borislav Petkov
On Thu, Dec 03, 2020 at 01:32:44AM +1030, Andrew Jeffery wrote: > On Wed, 2 Dec 2020, at 19:11, Troy Lee wrote: > > Hi Joel, > > > > Thanks for the suggestion, I'll fix the review and create an new patch > > against > > latest Linux branch. Those exported function will be referenced in > >

[no subject]

2020-12-02 Thread Yun Levi
On Thu, Dec 3, 2020 at 2:26 AM Yury Norov wrote: > Also look at lib/find_bit_benchmark.c Thanks. I'll see. > We need find_next_*_bit() because find_first_*_bit() can start searching only > at word-aligned > bits. In the case of find_last_*_bit(), we can start at any bit. So, if my >

Re: [PATCH RFC 02/39] KVM: x86/xen: intercept xen hypercalls if enabled

2020-12-02 Thread Ankur Arora
On 2020-12-02 12:03 a.m., David Woodhouse wrote: On Tue, 2020-12-01 at 21:19 -0800, Ankur Arora wrote: + for (i = 0; i < PAGE_SIZE / sizeof(instructions); i++) { + *(u32 *)[1] = i; + if (kvm_vcpu_write_guest(vcpu, +

Re: [PATCH] ath11k: Fix an error handling path

2020-12-02 Thread Kalle Valo
Christophe JAILLET wrote: > If 'kzalloc' fails, we must return an error code. > > While at it, remove a useless initialization of 'err' which could hide the > issue. > > Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") > Signed-off-by: Christophe JAILLET >

Re: [PATCH 3/6] mm/gup: make __gup_longterm_locked common

2020-12-02 Thread Pavel Tatashin
On Wed, Dec 2, 2020 at 11:33 AM Ira Weiny wrote: > > On Wed, Dec 02, 2020 at 08:31:45AM -0800, 'Ira Weiny' wrote: > > On Wed, Dec 02, 2020 at 12:23:27AM -0500, Pavel Tatashin wrote: > > > __gup_longterm_locked() has CMA || FS_DAX version and a common stub > > > version. In the preparation of

Re: [PATCH 2/6] mm/gup: don't pin migrated cma pages in movable zone

2020-12-02 Thread Pavel Tatashin
> Looks like the right thing to me, thanks! > > Reviewed-by: David Hildenbrand Thank you, Pasha > > -- > Thanks, > > David / dhildenb >

Re: [PATCH 1/6] mm/gup: perform check_dax_vmas only when FS_DAX is enabled

2020-12-02 Thread Pavel Tatashin
On Wed, Dec 2, 2020 at 11:30 AM Jason Gunthorpe wrote: > > On Wed, Dec 02, 2020 at 12:23:25AM -0500, Pavel Tatashin wrote: > > There is no need to check_dax_vmas() and run through the npage loop of > > pinned pages if FS_DAX is not enabled. > > > > Add a stub check_dax_vmas() function for

Re: [PATCH v3 11/15] remoteproc: Add return value to function rproc_shutdown()

2020-12-02 Thread Arnaud POULIQUEN
On 11/26/20 10:06 PM, Mathieu Poirier wrote: > Add a return value to function rproc_shutdown() in order to > properly deal with error conditions that may occur. > > Signed-off-by: Mathieu Poirier > Reviewed-by: Peng Fan Reviewed-by: Arnaud Pouliquen Thanks, Arnaud > --- >

Re: [PATCH v3 13/15] remoteproc: Properly deal with a start request when attached

2020-12-02 Thread Arnaud POULIQUEN
On 11/26/20 10:06 PM, Mathieu Poirier wrote: > This patch takes into account scenarios where a remote processor > has been attached to when receiving a "start" command from sysfs. > > As with the "running" case, the command can't be carried out if the > remote processor is already in

Re: [PATCH 1/6] mm/gup: perform check_dax_vmas only when FS_DAX is enabled

2020-12-02 Thread Pavel Tatashin
On Wed, Dec 2, 2020 at 11:22 AM Ira Weiny wrote: > > On Wed, Dec 02, 2020 at 12:23:25AM -0500, Pavel Tatashin wrote: > > There is no need to check_dax_vmas() and run through the npage loop of > > pinned pages if FS_DAX is not enabled. > > > > Add a stub check_dax_vmas() function for no-FS_DAX

Re: [PATCH 4/8] clk: sunxi-ng: Add support for the Allwinner H616 R-CCU

2020-12-02 Thread Jernej Škrabec
Dne sreda, 02. december 2020 ob 14:54:05 CET je Andre Przywara napisal(a): > The clocks itself are identical to the H6 R-CCU, it's just that the H616 > has not all of them implemented (or connected). > > Signed-off-by: Andre Przywara > --- > drivers/clk/sunxi-ng/ccu-sun50i-h6-r.c | 47

Re: [PATCH v3 07/15] remoteproc: Add new detach() remoteproc operation

2020-12-02 Thread Arnaud POULIQUEN
Hi Mathieu On 11/26/20 10:06 PM, Mathieu Poirier wrote: > Add an new detach() operation in order to support scenarios where > the remoteproc core is going away but the remote processor is > kept operating. This could be the case when the system is > rebooted or when the platform driver is

[PATCH v2 2/6] arm64: dts: qcom: sm8250: add audio clock controllers

2020-12-02 Thread Srinivas Kandagatla
Add audiocc and aoncc clock controller nodes required for audio on RB5. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi

[PATCH v2 6/6] arm64: dts: qcom: qrb5165-rb5: Add Audio support

2020-12-02 Thread Srinivas Kandagatla
This patch add support for two WSA881X smart speakers attached via Soundwire and a DMIC0 on the main board. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 121 +++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 3

Re: [PATCH v2 0/7] tty: add flag to suppress ready signalling on open

2020-12-02 Thread Mychaela Falconia
On 12/2/20, Johan Hovold wrote: > Also let me know if you prefer to hold this off for 5.12. The change is > minimal, self-contained and low-risk, but it is a new interface and late > in the release cycle as Andy pointed out. Hold off for 5.12? Did you perhaps mean 5.11? I understand how this

[PATCH v2 5/6] arm64: dts: qcom: sm8250: add mi2s pinconfs

2020-12-02 Thread Srinivas Kandagatla
Add primary and tertinary mi2s pinconfs required to get I2S audio. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 55 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi

Re: [PATCH] x86/cpu/amd: Remove dead code for TSEG region remapping

2020-12-02 Thread Borislav Petkov
On Wed, Dec 02, 2020 at 11:58:15AM -0600, Tom Lendacky wrote: > I believe this is geared towards performance. If the TSEG base address is > not 2MB aligned, then hardware has to break down a 2MB TLB entry if the OS > references the memory within the 2MB page that is before the TSEG base > address.

Re: [PATCH 2/8] pinctrl: sunxi: Add support for the Allwinner H616 pin controller

2020-12-02 Thread Jernej Škrabec
Dne sreda, 02. december 2020 ob 14:54:03 CET je Andre Przywara napisal(a): > Port A is used for an internal connection to some analogue circuitry > which looks like an AC200 IP (as in the H6), though this is not > mentioned in the manual. > > Signed-off-by: Andre Przywara > --- >

[PATCH v2 4/6] arm64: dts: qcom: sm8250: add wsa and va codec macros

2020-12-02 Thread Srinivas Kandagatla
Add support for WSA and VA codec macros along with WSA soundwire controller required for getting audio on RB5. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 56 1 file changed, 56 insertions(+) diff --git

Re: [PATCH v4 12/14] arm64: Prevent offlining first CPU with 32-bit EL0 on mismatched system

2020-12-02 Thread Qais Yousef
On 12/02/20 17:42, Will Deacon wrote: > On Wed, Dec 02, 2020 at 12:59:52PM +, Qais Yousef wrote: > > On 12/01/20 22:13, Will Deacon wrote: > > > On Fri, Nov 27, 2020 at 01:41:22PM +, Qais Yousef wrote: > > > > On 11/24/20 15:50, Will Deacon wrote: > > > > > diff --git

[PATCH v2 1/6] arm64: dts: qcom: sm8250: add apr and its services

2020-12-02 Thread Srinivas Kandagatla
Add apr node and its associated services required for audio on RB5. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 56 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi

[PATCH v2 3/6] arm64: dts: qcom: sm8250: add lpass lpi pin controller node

2020-12-02 Thread Srinivas Kandagatla
Add LPASS LPI pinctrl node required for Audio functionality on RB5. Signed-off-by: Srinivas Kandagatla Tested-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 84 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi

[PATCH v2 0/6] arm64: dts: qcom: qrb5165-rb5 audio support

2020-12-02 Thread Srinivas Kandagatla
This patchset adds support to Qualcomm Robotics RB5 Development Kit based on QRB5165 Robotics SoC. This board has 2 WSA881X smart speakers with onboard DMIC connected to internal LPASS codec via WSA and VA macros respectively. All the audio related driver patches are merged via respective

Re: [PATCH] arch/riscv: enable XIP

2020-12-02 Thread Nicolas Pitre
On Wed, 2 Dec 2020, Vitaly Wool wrote: > Introduce XIP (eXecute In Place) support for RISC-V platforms. > It allows code to be executed directly from non-volatile storage > directly addressable by the CPU, such as QSPI NOR flash which can > be found on many RISC-V platforms. This makes way for

Re: [RFC PATCH v0 00/19] x86/insn: Add an insn_decode() API

2020-12-02 Thread Borislav Petkov
On Tue, Dec 01, 2020 at 02:21:45AM +0900, Masami Hiramatsu wrote: > Because it overruns the buffer. Maybe -E2BIG/ENODATA or any other > error (except for -EINVAL) is OK :) ENODATA it is. :) And propagating that error value is easy because the err_out: labels are all coming from the

Re: power-off delay/hang due to commit 6d25be57 (mainline)

2020-12-02 Thread Sebastian Andrzej Siewior
On 2020-10-26 18:20:59 [+0100], To Rafael J. Wysocki wrote: > > > > > Done as Bug 208877. > > > Rafael, do you have any suggestions? > > > > I've lost track of this sorry. > > > > I have ideas, let me get back to this next week. > > :) Rafael, any update? If you outline an idea or so then I

Re: [PATCH v3 3/6] mm: support THP migration to device private memory

2020-12-02 Thread Logan Gunthorpe
On 2020-12-02 3:14 a.m., Christoph Hellwig wrote:>> MEMORY_DEVICE_PCI_P2PDMA: >> Struct pages are created in pci_p2pdma_add_resource() and represent device >> memory accessible by PCIe bar address space. Memory is allocated with >> pci_alloc_p2pmem() based on a byte length but the

Re: [PATCH 1/3] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2020-12-02 Thread Asutosh Das (asd)
On 12/2/2020 8:20 AM, Bean Huo wrote: On Mon, 2020-11-30 at 15:19 -0800, Asutosh Das (asd) wrote: + return -EINVAL; + + pm_runtime_get_sync(hba->dev); + res = ufshcd_wb_ctrl(hba, wb_enable); Say, a platform supports clock-scaling and this bit is toggled. The control goes

Re: [PATCH] x86/cpu/amd: Remove dead code for TSEG region remapping

2020-12-02 Thread Tom Lendacky
On 11/27/20 11:27 AM, Borislav Petkov wrote: On Fri, Nov 27, 2020 at 12:13:24PM -0500, Arvind Sankar wrote: Commit 26bfa5f89486 ("x86, amd: Cleanup init_amd") moved the code that remaps the TSEG region using 4k pages from init_amd() to bsp_init_amd(). However, bsp_init_amd() is executed

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

2020-12-02 Thread Florian Fainelli
On 11/23/2020 10:38 AM, Nicolas Saenz Julienne wrote: > Use devm_rpi_firmware_get() so as to make sure we release RPi's firmware > interface when unbinding the device. > > Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Florian Fainelli -- Florian smime.p7s Description: S/MIME

Re: [PATCH net v2] bonding: fix feature flag setting at init time

2020-12-02 Thread Jay Vosburgh
Jarod Wilson wrote: >Don't try to adjust XFRM support flags if the bond device isn't yet >registered. Bad things can currently happen when netdev_change_features() >is called without having wanted_features fully filled in yet. Basically, >this code was racing against register_netdevice() filling

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

2020-12-02 Thread Florian Fainelli
On 11/23/2020 10:38 AM, Nicolas Saenz Julienne wrote: > Use devm_rpi_firmware_get() so as to make sure we release RPi's firmware > interface when unbinding the device. > > Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v2 2/4] mm: introduce cma_alloc_bulk API

2020-12-02 Thread Minchan Kim
On Wed, Dec 02, 2020 at 05:48:34PM +0100, Michal Hocko wrote: > On Wed 02-12-20 08:15:49, Minchan Kim wrote: > > On Wed, Dec 02, 2020 at 04:49:15PM +0100, Michal Hocko wrote: > [...] > > > Well, what I can see is that this new interface is an antipatern to our > > > allocation routines. We tend to

Business Funding Proposal

2020-12-02 Thread Per Lessen
-- Good Day, I am contacting you concerning funding of your business project. I am Dr. Per Lessen and I work as a financial consultant and adviser to Global Asset Management company LLC and some High Net worth individuals from the MENA region and European Union. Basically, my principals are

Re: [PATCH 08/10] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0

2020-12-02 Thread Fabio Estevam
On Wed, Dec 2, 2020 at 2:45 PM Krzysztof Kozlowski wrote: > You have multiple DTSI files to only include one DTSI. I was trying to > follow the logic here but I failed... Agreed. It is hard to understand the purpose of so many dts files in this patch series. Regards, Fabio Estevam

Re: [PATCH net v2] bonding: fix feature flag setting at init time

2020-12-02 Thread Jakub Kicinski
On Wed, 2 Dec 2020 12:30:53 -0500 Jarod Wilson wrote: > + if (bond->dev->reg_state != NETREG_REGISTERED) > + goto noreg; > + > if (newval->value == BOND_MODE_ACTIVEBACKUP) > bond->dev->wanted_features |= BOND_XFRM_FEATURES; > else >

Re: [PATCH v2] drivers: acpi: add opt-out of apple-specific property parsing

2020-12-02 Thread Randy Dunlap
Hi-- On 12/2/20 4:21 AM, Enrico Weigelt, metux IT consult wrote: > Most x86 machines aren't Apple machines, especially VMs. > Therefore allow opt-out, making the kernel a few KBs smaller, > eg. for embedded or high-density VMs. > > v2: fixed spelling > > Signed-off-by: Enrico Weigelt, metux IT

Re: [PATCH 3/8] pinctrl: sunxi: Add support for the Allwinner H616-R pin controller

2020-12-02 Thread Jernej Škrabec
Dne sreda, 02. december 2020 ob 14:54:04 CET je Andre Przywara napisal(a): > There are only two pins left now, used to connect to the PMIC via I2C. > > Signed-off-by: Andre Przywara > --- > drivers/pinctrl/sunxi/Kconfig | 5 ++ > drivers/pinctrl/sunxi/Makefile|

Re: [PATCH v3 16/23] kvm: arm64: Forward safe PSCI SMCs coming from host

2020-12-02 Thread David Brazdil
On Fri, Nov 27, 2020 at 10:14:33AM +, Lorenzo Pieralisi wrote: > On Thu, Nov 26, 2020 at 03:54:14PM +, David Brazdil wrote: > > Forward the following PSCI SMCs issued by host to EL3 as they do not > > require the hypervisor's intervention. This assumes that EL3 correctly > > implements the

Re: [PATCH 10/10] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0 10.1" OF

2020-12-02 Thread Krzysztof Kozlowski
On Wed, Dec 02, 2020 at 05:42:41PM +0530, Jagan Teki wrote: > i.Core MX8M Mini is an EDIMM SOM based on NXP i.MX8MM from Engicam. > > C.TOUCH 2.0 is a general purpose carrier board with capacitive > touch interface support. > > 10.1" OF is a capacitive touch 10.1" Open Frame panel solutions. >

Re: [PATCH 01/29] bus: mhi: Remove auto-start option

2020-12-02 Thread Greg KH
On Wed, Dec 02, 2020 at 06:57:15PM +0200, Kalle Valo wrote: > Manivannan Sadhasivam writes: > > > On Wed, Dec 02, 2020 at 06:00:05PM +0200, Kalle Valo wrote: > >> Manivannan Sadhasivam writes: > >> > >> > From: Loic Poulain > >> > > >> > There is really no point having an auto-start for

Re: [PATCH] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-12-02 Thread Alex Williamson
On Wed, 2 Dec 2020 17:18:12 +0800 Chiqijun wrote: > On 2020/11/30 23:46, Alex Williamson wrote: > > On Sat, 28 Nov 2020 17:29:19 -0600 > > Bjorn Helgaas wrote: > > > >> [+cc Alex] > >> > >> On Sat, Nov 28, 2020 at 02:18:25PM +0800, Chiqijun wrote: > >>> When multiple VFs do FLR at the same

Re: [PATCH 5.9 000/152] 5.9.12-rc1 review

2020-12-02 Thread Greg Kroah-Hartman
On Wed, Dec 02, 2020 at 09:57:10AM -0700, Shuah Khan wrote: > On 12/1/20 1:51 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.9.12 release. > > There are 152 patches in this series, all will be posted as a response > > to this one. If anyone has any issues

Re: [PATCH 08/10] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini C.TOUCH 2.0

2020-12-02 Thread Krzysztof Kozlowski
On Wed, Dec 02, 2020 at 05:42:39PM +0530, Jagan Teki wrote: > i.Core MX8M Mini is an EDIMM SOM based on NXP i.MX8MM from Engicam. > > C.TOUCH 2.0 is a general purpose carrier board with capacitive > touch interface support. > > i.Core MX8M Mini needs to mount on top of this Carrier board for >

[PATCH v4 3/4] MAINTAINERS: Add myself as maintainer of the Amlogic GE2D driver

2020-12-02 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 02437abc94c9..29b5ac0e7a74 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11381,6 +11381,15 @@ F:

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