[PATCH 09/20] ata: acard-ahci: Ignore -Woverride-init

2021-01-28 Thread Lee Jones
Some ATA drivers use the SCSI host template, a series of interwoven macros, to aid with initialisation. Some of these macros conflict, resulting in the over-writing of previously set values. This is known behaviour and can be safely ignored. Fixes the following W=1 kernel build warning(s): In

[PATCH 07/20] ata: pata_ali: Repair some misnamed kernel-doc issues

2021-01-28 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/ata/pata_ali.c:119: warning: Function parameter or member 'mask' not described in 'ali_20_filter' drivers/ata/pata_ali.c:119: warning: Excess function parameter 'ap' description in 'ali_20_filter' drivers/ata/pata_ali.c:322: warning:

[PATCH 11/20] ata: pata_amd: Remove superfluous, add missing and fix broken params

2021-01-28 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/ata/pata_amd.c:179: warning: Excess function parameter 'adev' description in 'amd_fifo_setup' drivers/ata/pata_amd.c:331: warning: Function parameter or member 'link' not described in 'nv_pre_reset' drivers/ata/pata_amd.c:331: warning:

[PATCH 05/20] ata: libata-pmp: Fix misspelling of 'val'

2021-01-28 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/ata/libata-pmp.c:76: warning: Function parameter or member 'val' not described in 'sata_pmp_write' drivers/ata/libata-pmp.c:76: warning: Excess function parameter 'r_val' description in 'sata_pmp_write' Cc: Jens Axboe Cc: Tejun Heo

Re: [PATCH net-next 2/8] net: dsa: tag_ksz: add tag handling for Microchip LAN937x

2021-01-28 Thread Andrew Lunn
On Thu, Jan 28, 2021 at 12:11:06PM +0530, Prasanna Vengateshan wrote: > The Microchip LAN937X switches have a tagging protocol which is > very similar to KSZ tagging. So that the implementation is added to > tag_ksz.c and reused common APIs > > Signed-off-by: Prasanna Vengateshan > --- >

[PATCH 03/20] ata: ahci_platform: Ignore -Woverride-init

2021-01-28 Thread Lee Jones
Some ATA drivers use the SCSI host template, a series of interwoven macros, to aid with initialisation. Some of these macros conflict, resulting in the over-writing of previously set values. This is known behaviour and can be safely ignored. Fixes the following W=1 kernel build warning(s): In

[PATCH 00/20] [Set 1] Rid W=1 warnings from ATA

2021-01-28 Thread Lee Jones
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings. This is set 1 out of 3 sets required. Lee Jones (20): ata: ahci_dm816: Ignore -Woverride-init ata: libata-transport: Fix some potential

[PATCH 02/20] ata: libata-transport: Fix some potential doc-rot issues

2021-01-28 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/ata/libata-transport.c:258: warning: Function parameter or member 'ap' not described in 'ata_tport_delete' drivers/ata/libata-transport.c:258: warning: Excess function parameter 'port' description in 'ata_tport_delete'

[PATCH 04/20] ata: libata-sata: Fix function names in header comments

2021-01-28 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/ata/libata-sata.c:1085: warning: expecting prototype for port_alloc(). Prototype was for ata_sas_port_alloc() instead drivers/ata/libata-sata.c:1140: warning: expecting prototype for ata_port_stop(). Prototype was for

[PATCH 1/2] speakup ABI: Advertise synth parameters for all synths

2021-01-28 Thread Samuel Thibault
The parameters were advertised for the "soft" synth, but they are available for all synths. Signed-off-by: Samuel Thibault --- Documentation/ABI/stable/sysfs-driver-speakup | 30 +-- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git

[PATCH 2/2] speakup: Make dectlk flush timeout configurable

2021-01-28 Thread Samuel Thibault
In case the serial port or cable got faulty, we may not be getting acknowledgements any more. The driver then currently waits for 4s to avoid jamming the device. This makes this delay configurable. Signed-off-by: Samuel Thibault --- Documentation/ABI/stable/sysfs-driver-speakup | 7 +++

Re: [PATCH 3/3] Adding device_dma_parameters->offset_preserve_mask to NVMe driver.

2021-01-28 Thread Robin Murphy
On 2021-01-28 00:38, Jianxiong Gao wrote: NVMe driver relies on the address offset to function properly. This patch adds the offset preserve mask to NVMe driver when mapping via dma_map_sg_attrs and unmapping via nvme_unmap_sg. The mask depends on the page size defined by CC.MPS register of NVMe

Re: [PATCH v4 00/10] Enable root to update the blacklist keyring

2021-01-28 Thread Mickaël Salaün
I noticed that commits in your branch are not up to date with latest Jarkoo reviews on my patches (see changes since v2). There is no conflict if you replace conflicting patches from your branch by patches from this series. Could you replace your duplicate commits with this patch series? On

[PATCH] netfilter: nf_tables: remove redundant assignment of variable err

2021-01-28 Thread Colin King
From: Colin Ian King The variable err is being assigned a value that is never read, the same error number is being returned at the error return path via label err1. Clean up the code by removing the assignment. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

Re: [PATCH v14 00/13] Introduce support for guest CET feature

2021-01-28 Thread Paolo Bonzini
On 06/11/20 02:16, Yang Weijiang wrote: Control-flow Enforcement Technology (CET) provides protection against Return/Jump-Oriented Programming (ROP/JOP) attack. There're two CET sub-features: Shadow Stack (SHSTK) and Indirect Branch Tracking (IBT). SHSTK is to prevent ROP programming and IBT is

RE: [PATCH] mtd: use refcount to prevent corruption

2021-01-28 Thread Winkler, Tomas
> Hi Tomas, > > "Winkler, Tomas" wrote on Thu, 28 Jan 2021 > 08:53:43 +: > > > > Tomas, > > > > > > - Ursprüngliche Mail - > > > >> >> Can you please explain a little more what devices are involved? > > > >> >> Does it implement _get_device() and _put_device()? > > > >> > No this is

Re: [PATCH v5] x86/mce: Avoid infinite loop for copy from user recovery

2021-01-28 Thread Borislav Petkov
On Tue, Jan 26, 2021 at 02:36:05PM -0800, Luck, Tony wrote: > In some cases Linux might context switch to something else. Perhaps > this task even gets picked up by another CPU to run the task work > queued functions. But I imagine that the context switch should act > as a barrier ... shouldn't

Re: [PATCH] KVM: x86: Allow guests to see MSR_IA32_TSX_CTRL even if tsx=off

2021-01-28 Thread Sean Christopherson
On Thu, Jan 28, 2021, Paolo Bonzini wrote: > Userspace that does not know about KVM_GET_MSR_FEATURE_INDEX_LIST will > generally use the default value for MSR_IA32_ARCH_CAPABILITIES. > When this happens and the host has tsx=on, it is possible to end up > with virtual machines that have HLE and RTM

Re: [v5 PATCH 06/11] mm: vmscan: use a new flag to indicate shrinker is registered

2021-01-28 Thread Vlastimil Babka
On 1/28/21 12:33 AM, Yang Shi wrote: > Currently registered shrinker is indicated by non-NULL shrinker->nr_deferred. > This approach is fine with nr_deferred at the shrinker level, but the > following > patches will move MEMCG_AWARE shrinkers' nr_deferred to memcg level, so their >

Re: [PATCH] speakup: Make dectlk flush timeout configurable

2021-01-28 Thread Samuel Thibault
Greg KH, le jeu. 28 janv. 2021 08:54:16 +0100, a ecrit: > On Thu, Jan 28, 2021 at 12:44:44AM +0100, Samuel Thibault wrote: > > static struct kobj_attribute full_time_attribute = > > __ATTR(full_time, 0644, spk_var_show, spk_var_store); > > +static struct kobj_attribute flush_time_attribute =

Re: [PATCH net-next 0/8] net: dsa: microchip: DSA driver support for LAN937x switch

2021-01-28 Thread Florian Fainelli
On 1/27/2021 10:41 PM, Prasanna Vengateshan wrote: > LAN937x is a Multi-Port 100BASE-T1 Ethernet Physical Layer switch > compliant with the IEEE 802.3bw-2015 specification. The device > provides 100 Mbit/s transmit and receive capability over a single > Unshielded Twisted Pair (UTP) cable.

Re: [PATCH v14 11/13] KVM: VMX: Pass through CET MSRs to the guest when supported

2021-01-28 Thread Paolo Bonzini
On 06/11/20 02:16, Yang Weijiang wrote: Pass through all CET MSRs when the associated CET component (kernel vs. user) is enabled to improve guest performance. All CET MSRs are context switched, either via dedicated VMCS fields or XSAVES. Co-developed-by: Zhang Yi Z Signed-off-by: Zhang Yi Z

Re: [PATCH BUGFIX/IMPROVEMENT 2/6] block, bfq: put reqs of waker and woken in dispatch list

2021-01-28 Thread Paolo Valente
> Il giorno 26 gen 2021, alle ore 17:18, Jens Axboe ha > scritto: > > On 1/26/21 3:50 AM, Paolo Valente wrote: >> Consider a new I/O request that arrives for a bfq_queue bfqq. If, when >> this happens, the only active bfq_queues are bfqq and either its waker >> bfq_queue or one of its woken

Re: [PATCH 1/1] dma-buf: heaps: Map system heap pages as managed by linux vm

2021-01-28 Thread Suren Baghdasaryan
On Thu, Jan 28, 2021 at 1:13 AM Christoph Hellwig wrote: > > On Thu, Jan 28, 2021 at 12:38:17AM -0800, Suren Baghdasaryan wrote: > > Currently system heap maps its buffers with VM_PFNMAP flag using > > remap_pfn_range. This results in such buffers not being accounted > > for in PSS calculations

Re: [PATCH v14 10/13] KVM: x86: Enable CET virtualization for VMX and advertise CET to userspace

2021-01-28 Thread Paolo Bonzini
On 06/11/20 02:16, Yang Weijiang wrote: + + if (((cr4 ^ old_cr4) & X86_CR4_CET) && kvm_cet_supported()) { + vmcs_writel(GUEST_SSP, 0); + vmcs_writel(GUEST_S_CET, 0); + vmcs_writel(GUEST_INTR_SSP_TABLE, 0); + } + Is this behavior documented

[PATCH v2 4/5] arm64: dtb: qcom: qrb5165-rb5: add bridge@0,0 to power up qca6391 chip

2021-01-28 Thread Dmitry Baryshkov
If QCA6391 chip (connected to PCIe0) is not powered at the PCIe probe time, PCIe0 bus probe will timeout and the device will not be detected. So use qca6391 as pcie0's bridge power-domain. This allows us to make sure that QCA6391 chip is powered on before PCIe0 probe happens. Signed-off-by:

[PATCH v2 5/5] arm64: dts: qcom: Add Bluetooth support on RB5

2021-01-28 Thread Dmitry Baryshkov
From: Manivannan Sadhasivam Add Bluetooth support on RB5 using the onboard QCA6391 WLAN+BT chipset. Signed-off-by: Manivannan Sadhasivam [DB: added qca6391 power domain, removed s2f regulator] Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 29

[PATCH v2 2/5] arm64: qcom: dts: qrb5165-rb5: add qca6391 power device

2021-01-28 Thread Dmitry Baryshkov
Add qca6391 to device tree as a way to provide power domain to WiFi and BT parts of the chip. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 61 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts

[PATCH v2 1/5] misc: qca639x: add support for QCA639x powerup sequence

2021-01-28 Thread Dmitry Baryshkov
Qualcomm QCA639x is a family of WiFi + Bluetooth SoCs, with BT part being controlled through the UART and WiFi being present on PCIe bus. Both blocks share common power sources. Add device driver handling power sequencing of QCA6390/1. Signed-off-by: Dmitry Baryshkov --- drivers/misc/Kconfig

[PATCH v2 3/5] pcie-qcom: provide a way to power up qca6390 chip on RB5 platform

2021-01-28 Thread Dmitry Baryshkov
Some Qualcomm platforms require to power up an external device before probing the PCI bus. E.g. on RB5 platform the QCA6390 WiFi/BT chip needs to be powered up before PCIe0 bus is probed. Add a quirk to the respective PCIe root bridge to attach to the power domain if one is required, so that the

[PATCH v2 0/5] Add support for Qualcomm QCA639x chips family

2021-01-28 Thread Dmitry Baryshkov
Qualcomm QCA639x is a family of WiFi + Bluetooth chips, with BT part being controlled through the UART and WiFi being present on PCIe bus. Both blocks share common power sources wich should be turned on before either of devices can be probed. Declare common 'qca639x' driver providing a power

Re: [PATCH v14 09/13] KVM: x86: Report CET MSRs as to-be-saved if CET is supported

2021-01-28 Thread Paolo Bonzini
On 06/11/20 02:16, Yang Weijiang wrote: Report all CET MSRs, including the synthetic GUEST_SSP MSR, as to-be-saved, e.g. for migration, if CET is supported by KVM. Co-developed-by: Sean Christopherson Signed-off-by: Sean Christopherson Signed-off-by: Yang Weijiang --- arch/x86/kvm/x86.c |

[PATCH v4 00/10] CoreSight configuration management; ETM strobing

2021-01-28 Thread Mike Leach
This patchset introduces initial concepts in CoreSight system configuration management support. to allow more detailed and complex programming to be applied to CoreSight systems during trace capture. Configurations consist of 2 elements:- 1) Features - programming combinations for devices,

[PATCH v4 02/10] coresight: syscfg: Add registration and feature loading for cs devices

2021-01-28 Thread Mike Leach
API for individual devices to register with the syscfg management system is added. Devices register with matching information, and any features or configurations that match will be loaded into the device. The feature and configuration loading is extended so that on load these are loaded into any

Re: [PATCH v14 07/13] KVM: VMX: Emulate reads and writes to CET MSRs

2021-01-28 Thread Paolo Bonzini
On 06/11/20 02:16, Yang Weijiang wrote: +static bool cet_is_ssp_msr_accessible(struct kvm_vcpu *vcpu, + struct msr_data *msr) +{ + u64 mask; + + if (!kvm_cet_supported()) + return false; + + if (msr->host_initiated) +

[PATCH v4 04/10] coresight: etm-perf: update to handle configuration selection

2021-01-28 Thread Mike Leach
Loaded coresight configurations are registered in the cs_etm\cs_config sub directory. This extends the etm-perf code to handle these registrations, and the cs_syscfg driver to perform the registration on load. Signed-off-by: Mike Leach --- .../hwtracing/coresight/coresight-config.h| 5 +-

[PATCH v4 10/10] coresight: docs: Add documentation for CoreSight config

2021-01-28 Thread Mike Leach
Adds documentation for the CoreSight System configuration manager. Signed-off-by: Mike Leach --- .../trace/coresight/coresight-config.rst | 244 ++ Documentation/trace/coresight/coresight.rst | 16 ++ 2 files changed, 260 insertions(+) create mode 100644

[PATCH v4 08/10] coresight: config: Add preloaded configurations

2021-01-28 Thread Mike Leach
Preload set of configurations. This patch creates a small set of preloaded configurations and features that are available immediately after coresight has been initialised. The current set provides a strobing feature for ETMv4, that creates a periodic sampling of trace by switching trace

[PATCH v4 05/10] coresight: syscfg: Add API to activate and enable configurations

2021-01-28 Thread Mike Leach
Configurations are first activated, then when any coresight device is enabled, the active configurations are checked and any matching one is enabled. This patch provides the activation / enable API. Signed-off-by: Mike Leach --- .../hwtracing/coresight/coresight-config.h| 2 +

[PATCH v4 06/10] coresight: etm-perf: Update to activate selected configuration

2021-01-28 Thread Mike Leach
Add calls to activate the selected configuration as perf starts and stops the tracing session. Signed-off-by: Mike Leach --- drivers/hwtracing/coresight/coresight-etm-perf.c | 14 +- drivers/hwtracing/coresight/coresight-etm-perf.h | 2 ++ 2 files changed, 15 insertions(+), 1

[PATCH v4 09/10] coresight: syscfg: Add initial configfs support

2021-01-28 Thread Mike Leach
Adds configfs subsystem and attributes to the configuration manager to enable the listing of loaded configurations and features. The default values of feature parameters can be accessed and altered from these attributes to affect all installed devices using the feature. Signed-off-by: Mike Leach

[PATCH 01/16] rcu/nocb: Fix potential missed nocb_timer rearm

2021-01-28 Thread Frederic Weisbecker
The "nocb_bypass_timer" ends up calling wake_nocb_gp() which deletes the pending "nocb_timer" (note they are not the same timers) for the given rdp without resetting the matching state stored in nocb_defer wakeup. As a result, a future call_rcu() on that rdp may be fooled and think the timer is

[PATCH 00/16] rcu/nocb updates

2021-01-28 Thread Frederic Weisbecker
So this set has grown further than I expected. This addresses most reviews from Paul and also consolidates the nocb timers code. Please mind the very first patch that is a stable bugfix. git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git rcu/dev HEAD:

Re: [PATCH] x86/fault: Send SIGBUS to user process always for hwpoison page access.

2021-01-28 Thread Luck, Tony
On Thu, Jan 28, 2021 at 07:43:26PM +0800, Aili Yao wrote: > when one page is already hwpoisoned by AO action, process may not be > killed, the process mapping this page may make a syscall include this > page and result to trigger a VM_FAULT_HWPOISON fault, as it's in kernel > mode it may be fixed

Re: [PATCH v14 08/13] KVM: VMX: Add a synthetic MSR to allow userspace VMM to access GUEST_SSP

2021-01-28 Thread Paolo Bonzini
On 06/11/20 02:16, Yang Weijiang wrote: Introduce a host-only synthetic MSR, MSR_KVM_GUEST_SSP so that the VMM can read/write the guest's SSP, e.g. to migrate CET state. Use a synthetic MSR, e.g. as opposed to a VCPU_REG_, as GUEST_SSP is subject to the same consistency checks as the PL*_SSP

Re: [PATCH] media: venus: core: Fix some resource leaks in the error path of 'venus_probe()'

2021-01-28 Thread Christophe JAILLET
Le 28/01/2021 à 11:49, Georgi Djakov a écrit : Hi Christophe, Thanks for the fix! On 1/27/21 22:17, Christophe JAILLET wrote: If an error occurs after a successful 'of_icc_get()' call, it must be undone by a corresponding 'icc_put()' call. This works, but why not switch to

Re: [PATCH v14 08/13] KVM: VMX: Add a synthetic MSR to allow userspace VMM to access GUEST_SSP

2021-01-28 Thread Paolo Bonzini
On 06/11/20 02:16, Yang Weijiang wrote: Introduce a host-only synthetic MSR, MSR_KVM_GUEST_SSP so that the VMM can read/write the guest's SSP, e.g. to migrate CET state. Use a synthetic MSR, e.g. as opposed to a VCPU_REG_, as GUEST_SSP is subject to the same consistency checks as the PL*_SSP

Re: [PATCH bpf-next] MAINTAINERS: BPF: Update web-page bpf.io to ebpf.io to avoid redirects

2021-01-28 Thread Song Liu
On Thu, Jan 28, 2021 at 1:20 AM Tiezhu Yang wrote: > > When I open https://bpf.io/, it seems too slow. > > $ curl -s -S -L https://bpf.io/ -o /dev/null -w '%{time_redirect}\n' > 2.373 > > $ curl -s -S -L https://bpf.io/ -o /dev/null -w '%{url_effective}\n' > https://ebpf.io/ > > $ curl -s -S -L

Re: [printk] b031a684bf: INFO:rcu_tasks_detected_stalls_on_tasks

2021-01-28 Thread John Ogness
On 2021-01-28, Petr Mladek wrote: >> [ 903.189448][ T356] [ 778.825864] [ 655.250559] [ 531.607066] [ >> 407.120936] tasks-torture:torture_onoff task: online 0 failed: errno -5 >> >> These multi-timestamp lines are odd. And they are almost exactly 124 >> seconds apart. > > Yup, this looks

Re: [PATCH v4 00/10] Enable root to update the blacklist keyring

2021-01-28 Thread Mickaël Salaün
On 28/01/2021 17:52, David Howells wrote: > > Hi Mickaël, Hi David, > > I could pull your patches (unless Jarkko wants to), but can you please drop > the patches that are also in my keys-misc branch lest one or other (or both) > of our branches get dropped in the next merge window due to

Re: [v5 PATCH 05/11] mm: memcontrol: rename shrinker_map to shrinker_info

2021-01-28 Thread Vlastimil Babka
On 1/28/21 12:33 AM, Yang Shi wrote: > The following patch is going to add nr_deferred into shrinker_map, the change > will > make shrinker_map not only include map anymore, so rename it to a more general > name. And this should make the patch adding nr_deferred cleaner and readable > and make

[PATCH 06/16] rcu/nocb: Avoid confusing double write of rdp->nocb_cb_sleep

2021-01-28 Thread Frederic Weisbecker
rdp->nocb_cb_sleep is first set to true by default after processing the callbacks then set back to false if we still find ready callbacks to invoke. This is confusing and even unsafe if it ever happens to be read locklessly at some point. So make sure we write it only once per nocb_cb_wait()

Re: [Patch v4 1/3] lib: Restrict cpumask_local_spread to houskeeping CPUs

2021-01-28 Thread Nitesh Narayan Lal
On 1/28/21 11:59 AM, Marcelo Tosatti wrote: > On Thu, Jan 28, 2021 at 05:02:41PM +0100, Thomas Gleixner wrote: >> On Wed, Jan 27 2021 at 09:19, Marcelo Tosatti wrote: >>> On Wed, Jan 27, 2021 at 11:57:16AM +, Robin Murphy wrote: > + hk_flags = HK_FLAG_DOMAIN | HK_FLAG_MANAGED_IRQ; >

next-20210128 build failure

2021-01-28 Thread Yury Norov
Hi, (Sorry if duplicating.) My arm64 build got broken today: fs/nfs/super.o: In function `nfs_ssc_register_ops': /home/yury/work/linux/fs/nfs/super.c:120: undefined reference to `nfs_ssc_register' fs/nfs/super.o: In function `nfs_ssc_unregister_ops': /home/yury/work/linux/fs/nfs/super.c:127:

[PATCH 05/16] rcu/nocb: Disable bypass when CPU isn't completely offloaded

2021-01-28 Thread Frederic Weisbecker
Instead of flushing bypass at the very last moment in the deoffloading process, just disable bypass enqueue at soon as we start the deoffloading process and flush the pending bypass early. It's less fragile and we leave some time to the kthreads and softirqs to process quietly. Symmetrically,

Re: [PATCH v2] tpm_tis: Add missing tpm_request/relinquish_locality calls

2021-01-28 Thread Guenter Roeck
Hi Lukasz, On Thu, Jan 28, 2021 at 02:07:53PM +0100, Lukasz Majczak wrote: > There is a missing call to tpm_request_locality before the call to > the tpm_get_timeouts() and tpm_tis_probe_irq_single(). As the current > approach might work for tpm2, it fails for tpm1.x - in that case > call to

[PATCH] staging: net: wimax: i2400m: fw: remove redundant initialization of variable result

2021-01-28 Thread Colin King
From: Colin Ian King The variable result is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

[PATCH] MFD: intel_pmt: Fix nuisance messages and handling of disabled capabilities

2021-01-28 Thread David E. Box
Some products will be available that have PMT capabilities that are not supported. Remove the warnings in this instance to avoid nuisance messages and confusion. Also return an error code for capabilities that are disabled by quirk to prevent them from keeping the driver loaded if only disabled

Re: [PATCH 2/3] Add swiotlb offset preserving mapping when dma_dma_parameters->page_offset_mask is non zero.

2021-01-28 Thread Keith Busch
On Thu, Jan 28, 2021 at 12:15:28PM -0500, Konrad Rzeszutek Wilk wrote: > On Wed, Jan 27, 2021 at 04:38:28PM -0800, Jianxiong Gao wrote: > > For devices that need to preserve address offset on mapping through > > swiotlb, this patch adds offset preserving based on page_offset_mask > > and keeps the

[PATCH 08/16] rcu/nocb: Move trace_rcu_nocb_wake() calls outside nocb_lock when possible

2021-01-28 Thread Frederic Weisbecker
Those tracing calls don't need to be under the nocb lock. Move them outside. Signed-off-by: Frederic Weisbecker Cc: Josh Triplett Cc: Lai Jiangshan Cc: Joel Fernandes Cc: Neeraj Upadhyay Cc: Boqun Feng --- kernel/rcu/tree_plugin.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

Migration to trusted keys: sealing user-provided key?

2021-01-28 Thread Ahmad Fatoum
Hello, I've been looking into how a migration to using trusted/encrypted keys would look like (particularly with dm-crypt). Currently, it seems the the only way is to re-encrypt the partitions because trusted/encrypted keys always generate their payloads from RNG. If instead there was a key

[PATCH v2 6/6] media: uvcvideo: Use dma_alloc_noncontiguos API

2021-01-28 Thread Ricardo Ribalda
On architectures where the is no coherent caching such as ARM use the dma_alloc_noncontiguos API and handle manually the cache flushing using dma_sync_sgtable(). With this patch on the affected architectures we can measure up to 20x performance improvement in uvc_video_copy_data_work(). Eg:

[PATCH 10/16] rcu/nocb: Directly call __wake_nocb_gp() from bypass timer

2021-01-28 Thread Frederic Weisbecker
The bypass timer calls __call_rcu_nocb_wake() instead of directly calling __wake_nocb_gp(). The only difference here is that rdp->qlen_last_fqs_check gets overriden. But resetting the deferred force quiescent state base shouldn't be relevant for that timer. In fact the bypass queue in concern can

[PATCH 07/16] rcu/nocb: Rename nocb_gp_update_state to nocb_gp_update_state_deoffloading

2021-01-28 Thread Frederic Weisbecker
Unconfuse a bit the name of this function which suggests returning true when the state is updated. It actually returns true when the rdp is in the process of deoffloading and we must ignore it. Reported-by: Paul E. McKenney Cc: Josh Triplett Cc: Lai Jiangshan Cc: Joel Fernandes Cc: Neeraj

Re: BUG: corrupted list in io_file_get

2021-01-28 Thread Jens Axboe
On 1/28/21 10:12 AM, Pavel Begunkov wrote: > On 28/01/2021 16:58, syzbot wrote: >> Hello, >> >> syzbot found the following issue on: >> >> HEAD commit:76c057c8 Merge branch 'parisc-5.11-2' of git://git.kernel... >> git tree: upstream >> console output:

[PATCH 09/16] rcu/nocb: Merge nocb_timer to the rdp leader

2021-01-28 Thread Frederic Weisbecker
Currently each offline rdp has its own nocb_timer armed when the nocb_gp wakeup must be deferred. This layout has many drawbacks, compared to a solution based on a single timer per rdp group: * It's a lot of timers to maintain. * The per rdp nocb lock must be held to arm and cancel the timer and

Re: BUG: corrupted list in io_file_get

2021-01-28 Thread Pavel Begunkov
On 28/01/2021 17:25, Jens Axboe wrote: > On 1/28/21 10:12 AM, Pavel Begunkov wrote: >> On 28/01/2021 16:58, syzbot wrote: >>> Hello, >>> >>> syzbot found the following issue on: >>> >>> HEAD commit:76c057c8 Merge branch 'parisc-5.11-2' of git://git.kernel... >>> git tree: upstream >>>

Re: [PATCH v2 05/14] KVM: x86: Override reported SME/SEV feature flags with host mask

2021-01-28 Thread Paolo Bonzini
On 28/01/21 18:09, Sean Christopherson wrote: On Thu, Jan 28, 2021, Paolo Bonzini wrote: On 14/01/21 01:36, Sean Christopherson wrote: Add a reverse-CPUID entry for the memory encryption word, 0x801F.EAX, and use it to override the supported CPUID flags reported to userspace. Masking the

Re: [PATCH v1 0/5] Enable fw_devlink=on by default

2021-01-28 Thread Saravana Kannan
On Thu, Jan 28, 2021 at 7:03 AM Jon Hunter wrote: > > > On 14/01/2021 16:56, Jon Hunter wrote: > > > > On 14/01/2021 16:47, Saravana Kannan wrote: > > > > ... > > > >>> Yes this is the warning shown here [0] and this is coming from > >>> the 'Generic PHY stmmac-0:00' device. > >> > >> Can you

Re: [next] mm/nommu.c:1671:6: error: conflicting types for 'filemap_map_pages'

2021-01-28 Thread Naresh Kamboju
Hi Geert, On Thu, 28 Jan 2021 at 20:56, Geert Uytterhoeven wrote: > > Hi Naresh, > > On Thu, Jan 28, 2021 at 3:25 PM Naresh Kamboju > wrote: > > arm, sh and riscv architecture build failed on today's Linux next tag > > 20210128. > > > > FYI, > > #

Re: [PATCH 1/3] Adding page_offset_mask to device_dma_parameters

2021-01-28 Thread Robin Murphy
On 2021-01-28 00:38, Jianxiong Gao wrote: Some devices rely on the address offset in a page to function correctly (NVMe driver as an example). These devices may use a different page size than the Linux kernel. The address offset has to be preserved upon mapping, and in order to do so, we need to

Re: [RFC PATCH 0/4] Asynchronous passthrough ioctl

2021-01-28 Thread Kanchan Joshi
On Thu, Jan 28, 2021 at 8:20 PM Jens Axboe wrote: > > On 1/28/21 5:04 AM, Kanchan Joshi wrote: > > And for some ioctls, driver may still need to use task-work to update > > the user-space pointers (embedded in uring/ioctl cmd) during > > completion. > > For this use case, we should ensure that

Re: [RFC PATCH 0/4] Asynchronous passthrough ioctl

2021-01-28 Thread Jens Axboe
On 1/28/21 10:13 AM, Kanchan Joshi wrote: > On Thu, Jan 28, 2021 at 8:08 PM Jens Axboe wrote: >> >> On 1/28/21 5:04 AM, Kanchan Joshi wrote: >>> On Wed, Jan 27, 2021 at 9:32 PM Pavel Begunkov >>> wrote: On 27/01/2021 15:42, Pavel Begunkov wrote: > On 27/01/2021 15:00, Kanchan

Re: [RFC PATCH 18/34] iomap: use bio_new in iomap_dio_bio_actor

2021-01-28 Thread Darrick J. Wong
On Wed, Jan 27, 2021 at 11:11:17PM -0800, Chaitanya Kulkarni wrote: > Signed-off-by: Chaitanya Kulkarni > --- > fs/iomap/direct-io.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/fs/iomap/direct-io.c b/fs/iomap/direct-io.c > index f6c557a1bd25..0737192f7e5c

Re: [PATCH v5 2/3] arm64: dts: imx: Add i.mx8mm nitrogen8mm basic dts support

2021-01-28 Thread Adrien Grassein
Hi Marco, Thanks for your time. Le jeu. 28 janv. 2021 à 17:18, Marco Felsch a écrit : > > Hi Adrien, > > thanks for the patch. I've made only a few comments inline. > > On 21-01-18 12:15, Adrien Grassein wrote: > > Tested with a basic Build Root configuration booting from sdcard. > > > >

Re: [PATCH v2] ARM: dts: sun5i: Add dts for inet86v_rev2

2021-01-28 Thread Maxime Ripard
Hi, On Sun, Jan 24, 2021 at 08:39:03PM +0100, Alexandre GRIVEAUX wrote: > Add Inet 86V Rev 2 support, based upon Inet 86VS. > > The Inet 86V use SL1536 touchpanel controller, the Inet 86VS a GSL1680, > which make them both incompatible. > > Missing things: > - Accelerometer (MXC6225X) > -

Re: WARNING in io_uring_cancel_task_requests

2021-01-28 Thread Pavel Begunkov
On 28/01/2021 16:59, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:d03154e8 Add linux-next specific files for 20210128 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=159d08a0d0 &g

[PATCH] serial: 8250: add option to disable registration of legacy ISA ports

2021-01-28 Thread Mans Rullgard
On systems that do not have the traditional PC ISA serial ports, the 8250 driver still creates non-functional device nodes. This change makes only ports that actually exist (PCI, DT, ...) get device nodes. Signed-off-by: Mans Rullgard --- drivers/tty/serial/8250/8250_core.c | 26

Re: [RFC PATCH 27/34] xfs: use bio_new in xfs_buf_ioapply_map

2021-01-28 Thread Darrick J. Wong
On Wed, Jan 27, 2021 at 11:11:26PM -0800, Chaitanya Kulkarni wrote: > Signed-off-by: Chaitanya Kulkarni Reviewed-by: Darrick J. Wong --D > --- > fs/xfs/xfs_buf.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c > index

Re: [RFC PATCH 26/34] xfs: use bio_new in xfs_rw_bdev

2021-01-28 Thread Darrick J. Wong
On Wed, Jan 27, 2021 at 11:11:25PM -0800, Chaitanya Kulkarni wrote: > Signed-off-by: Chaitanya Kulkarni Seems fine to me... Reviewed-by: Darrick J. Wong --D > --- > fs/xfs/xfs_bio_io.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/fs/xfs/xfs_bio_io.c

Re: BUG: corrupted list in io_file_get

2021-01-28 Thread Pavel Begunkov
On 28/01/2021 16:58, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:76c057c8 Merge branch 'parisc-5.11-2' of git://git.kernel... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=11959454d0 > kernel config:

Re: [RFC PATCH v3 00/13] virtio/vsock: introduce SOCK_SEQPACKET support

2021-01-28 Thread Stefano Garzarella
Hi Arseny, I reviewed a part, tomorrow I hope to finish the other patches. Just a couple of comments in the TODOs below. On Mon, Jan 25, 2021 at 02:09:00PM +0300, Arseny Krasnov wrote: This patchset impelements support of SOCK_SEQPACKET for virtio transport. As SOCK_SEQPACKET

Re: [PATCH V3 09/14] arm64: Add TRBE definitions

2021-01-28 Thread Catalin Marinas
On Wed, Jan 27, 2021 at 02:25:33PM +0530, Anshuman Khandual wrote: > This adds TRBE related registers and corresponding feature macros. > > Cc: Mathieu Poirier > Cc: Mike Leach > Cc: Suzuki K Poulose > Signed-off-by: Anshuman Khandual Acked-by: Catalin Marinas

Re: [PATCH 2/3] Add swiotlb offset preserving mapping when dma_dma_parameters->page_offset_mask is non zero.

2021-01-28 Thread Konrad Rzeszutek Wilk
On Wed, Jan 27, 2021 at 04:38:28PM -0800, Jianxiong Gao wrote: > For devices that need to preserve address offset on mapping through > swiotlb, this patch adds offset preserving based on page_offset_mask > and keeps the offset if the mask is non zero. This is needed for > device drivers like NVMe.

[PATCH 15/16] rcu/nocb: Prepare for finegrained deferred wakeup

2021-01-28 Thread Frederic Weisbecker
Provide a way to tune the deferred wakeup level we want to perform from a safe wakeup point. Currently those sites are: * nocb_timer * user/idle/guest entry * CPU down * softirq/rcuc All of these sites perform the wake up for both RCU_NOCB_WAKE and RCU_NOCB_WAKE_FORCE. In order to merge

[PATCH 16/16] rcu/nocb: Unify timers

2021-01-28 Thread Frederic Weisbecker
Now that nocb_timer and nocb_bypass_timer have become very similar, merge them together. A new RCU_NOCB_WAKE_BYPASS wake level is introduced. As a result, timers perform all kinds of deferred wake ups but other deferred wakeup callsites only handle non-bypass wakeups in order not to wake up rcuo

Re: [PATCH] netdevsim: init u64 stats for 32bit hardware

2021-01-28 Thread Dmitry Vyukov
On Thu, Jan 28, 2021 at 5:01 PM Eric Dumazet wrote: > > > > On 1/28/21 8:23 AM, Dmitry Vyukov wrote: > > On Thu, Jan 28, 2021 at 3:43 AM Hillf Danton wrote: > >> > >> Init the u64 stats in order to avoid the lockdep prints on the 32bit > >> hardware like > > > > FTR this is not just to avoid

[PATCH 12/16] rcu/nocb: Cancel nocb_timer upon nocb_gp wakeup

2021-01-28 Thread Frederic Weisbecker
As we wake up in nocb_gp_wait(), there is no need to keep the nocb_timer around as we are going to go through the whole rdp list again. Any update performed before the timer was armed will now be visible after the nocb_gp_lock acquire. Signed-off-by: Frederic Weisbecker Cc: Josh Triplett Cc:

[PATCH 11/16] rcu/nocb: Allow de-offloading rdp leader

2021-01-28 Thread Frederic Weisbecker
The only thing that prevented an rdp leader from being de-offloaded was the nocb_bypass_timer that used to lock the nocb_lock of the rdp leader. If an rdp gets de-offloaded, it will subtely ignore rcu_nocb_lock() calls and do its job in the timer unsafely. Worse yet: if it gets re-offloaded in

[PATCH 13/16] rcu/nocb: Delete bypass_timer upon nocb_gp wakeup

2021-01-28 Thread Frederic Weisbecker
A NOCB-gp wake up can safely delete the nocb_bypass_timer. nocb_gp_wait() is going to check again the bypass state and rearm the bypass timer if necessary. Signed-off-by: Frederic Weisbecker Cc: Josh Triplett Cc: Lai Jiangshan Cc: Joel Fernandes Cc: Neeraj Upadhyay Cc: Boqun Feng ---

[PATCH 14/16] rcu/nocb: Only cancel nocb timer if not polling

2021-01-28 Thread Frederic Weisbecker
No need to disarm the nocb_timer if rcu_nocb is polling because it shouldn't be armed either. Signed-off-by: Frederic Weisbecker Cc: Josh Triplett Cc: Lai Jiangshan Cc: Joel Fernandes Cc: Neeraj Upadhyay Cc: Boqun Feng --- kernel/rcu/tree_plugin.h | 10 +- 1 file changed, 5

Re: [PATCH v3 0/6] tlb: Fix (soft-)dirty bit management & clean up API

2021-01-28 Thread Linus Torvalds
On Wed, Jan 27, 2021 at 3:54 PM Will Deacon wrote: > > The objective is to fix the lacklustre TLB invalidation on the clear_refs > path and then augment the mmu_gather API to make it more difficult to > abuse. The series continues to look good to me. I don't love our "tlb_flush_pending"

Re: [RFC PATCH 0/4] Asynchronous passthrough ioctl

2021-01-28 Thread Kanchan Joshi
On Thu, Jan 28, 2021 at 8:08 PM Jens Axboe wrote: > > On 1/28/21 5:04 AM, Kanchan Joshi wrote: > > On Wed, Jan 27, 2021 at 9:32 PM Pavel Begunkov > > wrote: > >> > >> On 27/01/2021 15:42, Pavel Begunkov wrote: > >>> On 27/01/2021 15:00, Kanchan Joshi wrote: > This RFC patchset adds

Re: [PATCH v3 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-01-28 Thread Stephen Boyd
Quoting Enric Balletbo Serra (2021-01-28 01:58:48) > Missatge de Stephen Boyd del dia dj., 28 de gen. > 2021 a les 9:48: > > diff --git a/drivers/iio/proximity/cros_ec_mkbp_proximity.c > > b/drivers/iio/proximity/cros_ec_mkbp_proximity.c > > new file mode 100644 > > index

regression in drm_blank.c?

2021-01-28 Thread Steve French
For the last month my logs have been flooded many times a second with: "nouveau :01:00.0: [drm] *ERROR* crtc 50: Can't calculate constants, dotclock = 0!" (see line 641 of drm_vblank.c) which is distracting for debugging all other kernel problems (since dmesg entries on this system are 99+%

[PATCH 03/16] rcu/nocb: Forbid NOCB toggling on offline CPUs

2021-01-28 Thread Frederic Weisbecker
Toggling the NOCB state of a CPU when it is offline imply some specific issues to handle, especially making sure that the kthreads have handled all the remaining callbacks and bypass before the corresponding CPU can be set as non-offloaded while it is offline. To prevent from such complications,

[PATCH 02/16] rcu/nocb: Comment the reason behind BH disablement on batch processing

2021-01-28 Thread Frederic Weisbecker
Explain why we need to disable softirqs while processing callbacks in an offline fashion. The subtle reason doesn't want to be forgotten. Reported-by: Boqun Feng Reported-by: Paul E. McKenney Cc: Josh Triplett Cc: Lai Jiangshan Cc: Joel Fernandes Cc: Neeraj Upadhyay Cc: Boqun Feng

[PATCH 04/16] rcu/nocb: Only (re-)initialize segcblist when needed on CPU up

2021-01-28 Thread Frederic Weisbecker
Simply checking if the segcblist is enabled is enough to know if we need to initialize it or not. It's safe to check within hotplug machine. Signed-off-by: Frederic Weisbecker Cc: Josh Triplett Cc: Lai Jiangshan Cc: Joel Fernandes Cc: Neeraj Upadhyay Cc: Boqun Feng --- kernel/rcu/tree.c |

[PATCH v4 07/10] coresight: etm4x: Add complex configuration handlers to etmv4

2021-01-28 Thread Mike Leach
Adds in handlers to allow the ETMv4 to use the complex configuration support. Features and configurations can be loaded and selected in the device. Signed-off-by: Mike Leach --- drivers/hwtracing/coresight/Makefile | 3 +- .../hwtracing/coresight/coresight-etm4x-cfg.c | 184

[PATCH] rtlwifi: rtl8192se: remove redundant initialization of variable rtstatus

2021-01-28 Thread Colin King
From: Colin Ian King The variable rtstatu is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

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