RE: [PATCH v3] PCI: cadence: Retrain Link to work around Gen2 training defect.

2020-10-19 Thread Athani Nadeem Ladkhan
Hi Kishon, > -Original Message- > From: Kishon Vijay Abraham I > Sent: Monday, October 19, 2020 10:59 AM > To: Athani Nadeem Ladkhan ; > lorenzo.pieral...@arm.com; r...@kernel.org; bhelg...@google.com; linux- > p...@vger.kernel.org; linux-kernel@vger.kernel.org; Tom Joseph > > Cc: Swapni

[GIT PULL] xfs: new code for 5.10, part 2

2020-10-19 Thread Darrick J. Wong
Hi Linus, Please pull this second large pile of new stuff for 5.10, with changes even more monumental than last week! We are formally announcing the deprecation of the V4 filesystem format in 2030. All users must upgrade to the V5 format, which contains design improvements that greatly strengthe

[PATCH v3] kcov, usbip: collect coverage from vhci_rx_loop

2020-10-19 Thread Andrey Konovalov
From: Nazime Hande Harputluoglu Add kcov_remote_start()/kcov_remote_stop() annotations to the vhci_rx_loop() function, which is responsible for parsing USB/IP packets coming into USB/IP client. Since vhci_rx_loop() threads are spawned per vhci_hcd device instance, the common kcov handle is used

Re: [External] Re: [PATCH] mm: proc: add Sock to /proc/meminfo

2020-10-19 Thread Shakeel Butt
CCed: Paolo Bonzini On Fri, Oct 16, 2020 at 1:53 PM Minchan Kim wrote: [snip] > > And there might be others, and adding everything to /proc/meminfo is not > > feasible. I have once proposed adding a counter called "Unaccounted:" which > > would at least tell the user easily if a significant porti

Re: [PATCH] block/elevator: reduce the critical section

2020-10-19 Thread Jens Axboe
On 10/19/20 10:42 AM, Hui Su wrote: > @@ -633,23 +633,21 @@ static struct elevator_type > *elevator_get_default(struct request_queue *q) > */ > static struct elevator_type *elevator_get_by_features(struct request_queue > *q) > { > - struct elevator_type *e, *found = NULL; > + struct e

[PATCH] net: can: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix --- .../net/can/spi/mcp251xfd/mcp251xfd-core.c| 22 +-- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c b/drivers/net/can

[PATCH v4 2/2] dm-crypt: collect data and submit to DM to measure

2020-10-19 Thread Tushar Sugandhi
Currently, dm-crypt does not take advantage of IMA measuring capabilities, and ultimately the benefits of remote attestation. Measure various dm-crypt constructs by calling various device-mapper functions - dm_ima_*() that use IMA measuring capabilities. Implement ima_measure_dm_crypt_data() to me

Re: AMD SME encrpytion and PCI BAR pages to user space

2020-10-19 Thread Jason Gunthorpe
On Mon, Oct 19, 2020 at 12:11:36PM -0500, Tom Lendacky wrote: > > Hum, I assume it is broken also. Actually quite a swath of drivers > > and devices will be broken under this :\ > > Not sure what you mean by the last statement - in general or when running > under VFIO/DPDK? In general, traditiona

[RFC PATCH 0/9] net: dsa: microchip: PTP support for KSZ956x

2020-10-19 Thread Christian Eggers
This series adds support for PTP to the KSZ956x and KSZ9477 devices. 1/9: Convert device tree binding from .txt to .yaml 2/9: Split ksz_common.h, so it can be included in tag_ksz.c 3/9: ksz9477.c --> ksz9477_main.c (ksz9477_ptp.c will be added soon) 4/9: Add dt-bindings for interrupts 5/9: Infrast

[PATCH v5 4/4] media: i2c: imx258: get clock from device properties and enable it via runtime PM

2020-10-19 Thread Krzysztof Kozlowski
The IMX258 sensor driver checked in device properties for a clock-frequency property which actually does not mean that the clock is really running such frequency or is it even enabled. Get the provided clock and check it frequency. If none is provided, fall back to old property. Enable the clock

Re: [PATCH V2 4/7] remoteproc: imx_rproc: use devm_ioremap

2020-10-19 Thread Mathieu Poirier
On Sun, Sep 27, 2020 at 02:41:28PM +0800, Peng Fan wrote: > We might need to map an region multiple times, becaue the region might > be shared between remote processors, such i.MX8QM with dual M4 cores. > So use devm_ioremap, not devm_ioremap_resource. > > Reviewed-by: Oleksij Rempel > Reviewed-b

[PATCH v4 1/2] dm-devel: collect target data and submit to IMA to measure

2020-10-19 Thread Tushar Sugandhi
For the device-mapper targets to take advantage of IMA's measuring and quoting abilities, and for enabling remote attestation for device-mapper targets, device-mapper needs to provide the functionality to consistently measure target data using ima_measure_critical_data() function provided by IMA.

[PATCH v5 3/4] media: i2c: imx258: simplify getting state container

2020-10-19 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and few pointe

[PATCH v4 0/2] dm-devel:dm-crypt: infrastructure for measurement of DM target data using IMA

2020-10-19 Thread Tushar Sugandhi
There are several device-mapper targets which contribute to verify the integrity of the mapped devices e.g. dm-integrity, dm-verity, dm-crypt etc. But they do not use the capabilities provided by kernel integrity subsystem (IMA). For instance, the IMA capability that measures several in-memory con

[PATCH v5 2/4] media: i2c: imx258: add support for binding via device tree

2020-10-19 Thread Krzysztof Kozlowski
The IMX258 can be used also on embedded designs using device tree so allow the sensor to bind to a device tree node. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. None --- drivers/media/i2c/imx258.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/i2c/imx2

[PATCH] net: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return or goto Signed-off-by: Tom Rix --- drivers/net/ethernet/aquantia/atlantic/aq_nic.c | 1 - drivers/net/ethernet/cisco/enic/enic_ethtool.c | 1 - drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c | 1 - drivers/net/wan/lmc/lmc_prot

[RFC PATCH net-next 1/9] dt-bindings: net: dsa: convert ksz bindings document to yaml

2020-10-19 Thread Christian Eggers
Convert the bindings document for Microchip KSZ Series Ethernet switches from txt to yaml. Signed-off-by: Christian Eggers --- .../devicetree/bindings/net/dsa/ksz.txt | 125 --- .../bindings/net/dsa/microchip,ksz.yaml | 147 ++ MAINTAINERS

[PATCH] iio: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix --- drivers/iio/adc/meson_saradc.c | 2 -- drivers/iio/imu/bmi160/bmi160_core.c | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c in

[PATCH linux-5.9 1/1] net: netfilter: fix KASAN: slab-out-of-bounds Read in nft_flow_rule_create

2020-10-19 Thread saeed . mirzamohammadi
From: Saeed Mirzamohammadi This patch fixes the issue due to: BUG: KASAN: slab-out-of-bounds in nft_flow_rule_create+0x622/0x6a2 net/netfilter/nf_tables_offload.c:40 Read of size 8 at addr 888103910b58 by task syz-executor227/16244 The error happens when expr->ops is accessed early on befor

[RFC PATCH net-next 2/9] net: dsa: microchip: split ksz_common.h

2020-10-19 Thread Christian Eggers
Parts of ksz_common.h (struct ksz_device) will be required in net/dsa/tag_ksz.c soon. So move the relevant parts into a new header file. Signed-off-by: Christian Eggers --- MAINTAINERS| 1 + drivers/net/dsa/microchip/ksz_common.h | 81 +- include/

[RFC PATCH net-next 3/9] net: dsa: microchip: rename ksz9477.c to ksz9477_main.o

2020-10-19 Thread Christian Eggers
PTP functionality will be built into a separate source file (ksz9477_ptp.c). Signed-off-by: Christian Eggers --- drivers/net/dsa/microchip/Makefile | 1 + drivers/net/dsa/microchip/{ksz9477.c => ksz9477_main.c} | 0 2 files changed, 1 insertion(+) rename drivers/net/dsa/mic

Re: [PATCH v3 1/4] x86/boot/64: Explicitly map boot_params and command line

2020-10-19 Thread Borislav Petkov
On Mon, Oct 19, 2020 at 01:12:59PM -0400, Arvind Sankar wrote: > No real reason. This will disappear anyway in the cleanup patch. Ok, I'll change it to the MOV as it is less confusing, at least to me :), this way. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-net

[RFC PATCH net-next 4/9] dt-bindings: net: dsa: microchip,ksz: add interrupt property

2020-10-19 Thread Christian Eggers
The devices have an optional interrupt line. Signed-off-by: Christian Eggers --- .../devicetree/bindings/net/dsa/microchip,ksz.yaml| 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml b/Documentation/devicetree/bindings

[RFC PATCH net-next 5/9] net: dsa: microchip: ksz9477: basic interrupt support

2020-10-19 Thread Christian Eggers
Interrupts are required for TX time stamping. Probably they could also be used for PHY connection status. This patch only adds the basic infrastructure for interrupts, no interrupts are actually enabled nor handled. ksz9477_reset_switch() must be called before requesting the IRQ (in ksz9477_init(

[RFC PATCH net-next 6/9] net: dsa: microchip: ksz9477: add Posix clock support for chip PTP clock

2020-10-19 Thread Christian Eggers
Implement routines (adjfine, adjtime, gettime and settime) for manipulating the chip's PTP clock. Signed-off-by: Christian Eggers --- drivers/net/dsa/microchip/Kconfig| 9 + drivers/net/dsa/microchip/Makefile | 1 + drivers/net/dsa/microchip/ksz9477_i2c.c | 2 +- drivers/net

Re: [PATCH] kasan: adopt KUNIT tests to SW_TAGS mode

2020-10-19 Thread Andrey Konovalov
On Sat, Oct 17, 2020 at 9:42 AM David Gow wrote: > Hi David, [...] > This looks good to me. Though, as you mention, writing to freed memory > might not bode well for system stability after the test runs. I don't > think that needs to be a goal for these tests, though. We generally tried to avo

Re: [PATCH] KVM: VMX: Forbid userspace MSR filters for x2APIC

2020-10-19 Thread Peter Xu
On Mon, Oct 19, 2020 at 01:05:19PM -0400, Paolo Bonzini wrote: > Allowing userspace to intercept reads to x2APIC MSRs when APICV is > fully enabled for the guest simply can't work. But more in general, > if the LAPIC is in-kernel, allowing accessed by userspace would be very > confusing. If user

[RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-10-19 Thread Christian Eggers
Add routines required for TX hardware time stamping. The KSZ9563 only supports one step time stamping (HWTSTAMP_TX_ONESTEP_P2P), which requires linuxptp-2.0 or later. PTP mode is permanently enabled (changes tail tag; depends on CONFIG_NET_DSA_MICROCHIP_KSZ9477_PTP).TX time stamps are reported via

Re: [PATCH v3 10/19] sched: Fix migrate_disable() vs set_cpus_allowed_ptr()

2020-10-19 Thread Valentin Schneider
On 19/10/20 17:32, Tao Zhou wrote: > Hi Valentin, >> >> Side thought: don't we need to NULL p->migration_pending in __sched_fork()? >> > > No need, if fork happen, the forked task will inherit that pending. Which is what I'm worrying about. I think we can ignore migrate_disable() for now and jus

[RFC PATCH net-next 8/9] net: dsa: microchip: ksz9477: add Pulse Per Second (PPS) support

2020-10-19 Thread Christian Eggers
The KSZ9563 has a Trigger Output Unit (TOU) which can be used to generate periodic signals. After adjusting the PTP clock time, the PPS signal has to be restarted. Tested on a Microchip KSZ9563 switch. Signed-off-by: Christian Eggers --- drivers/net/dsa/microchip/ksz9477_ptp.c | 251 ++

[PATCH] security: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix --- security/integrity/ima/ima_appraise.c | 1 - security/keys/trusted-keys/trusted_tpm1.c | 1 - security/safesetid/lsm.c | 3 --- 3 files changed, 5 deletions(-) diff --git a/securi

[RFC PATCH net-next 9/9] net: dsa: microchip: ksz9477: add periodic output support

2020-10-19 Thread Christian Eggers
The KSZ9563 has a Trigger Output Unit (TOU) which can be used to generate periodic signals. The pulse length can be altered via a device attribute. Tested on a Microchip KSZ9563 switch. Signed-off-by: Christian Eggers --- drivers/net/dsa/microchip/ksz9477_ptp.c | 244 +++-

[PATCH] bpf: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix --- kernel/bpf/syscall.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 1110ecd7d1f3..8f50c9c19f1b 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/s

Re: [PATCH v39 05/24] x86/sgx: Add wrappers for ENCLS leaf functions

2020-10-19 Thread Sean Christopherson
On Mon, Oct 19, 2020 at 07:30:32AM -0700, Dave Hansen wrote: > On 10/2/20 9:50 PM, Jarkko Sakkinen wrote: > > +/** > > + * encls_failed() - Check if an ENCLS leaf function failed > > + * @ret: the return value of an ENCLS leaf function call > > + * > > + * Check if an ENCLS leaf function failed.

Re: [PATCH v2 15/20] kvm: x86/mmu: Support dirty logging for the TDP MMU

2020-10-19 Thread Paolo Bonzini
On 19/10/20 19:07, Ben Gardon wrote: > On Fri, Oct 16, 2020 at 9:18 AM Paolo Bonzini wrote: >> >> On 14/10/20 20:26, Ben Gardon wrote: >>> >>> + if (kvm->arch.tdp_mmu_enabled) >>> + kvm_tdp_mmu_clear_dirty_pt_masked(kvm, slot, >>> + slot->base_gfn + gfn_

Re: [PATCH] spi: spi-sun6i: implement DMA-based transfer mode

2020-10-19 Thread Alexander Kochetkov
> 19 окт. 2020 г., в 11:21, Maxime Ripard написал(а): > > Hi! > > On Thu, Oct 15, 2020 at 06:47:40PM +0300, Alexander Kochetkov wrote: >> DMA-based transfer will be enabled if data length is larger than FIFO size >> (64 bytes for A64). This greatly reduce number of interrupts for >> transferr

[tip: perf/urgent] perf: correct SNOOPX field offset

2020-10-19 Thread tip-bot2 for Al Grant
The following commit has been merged into the perf/urgent branch of tip: Commit-ID: f3d301c1f2f5676465cdf3259737ea19cc82731f Gitweb: https://git.kernel.org/tip/f3d301c1f2f5676465cdf3259737ea19cc82731f Author:Al Grant AuthorDate:Mon, 21 Sep 2020 21:46:37 +01:00 Committer:

[PATCH 1/5] arm64: dts: imx8mn: Enable Asynchronous Sample Rate Converter

2020-10-19 Thread Adam Ford
The driver exists for the Enhanced Asynchronous Sample Rate Converter (EASRC) Controller, but there isn't a device tree entry for it. On the vendor kernel, they put this on a spba-bus for SDMA support. Add the the node for the spba-bus with the easrc node inside. Signed-off-by: Adam Ford diff

[PATCH 4/5] arm64: dts: imx8mn: Add support for micfil

2020-10-19 Thread Adam Ford
The i.MX8M Nano has supports the MICFIL digital interface. It's a 16-bit audio signal from a PDM microphone bitstream. The driver is already in the kernel, but the node is missing. Add the micfil node. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64

[PATCH 2/5] arm64: defconfig: Enable ASRC and EASRC

2020-10-19 Thread Adam Ford
The i.MX8M Nano supports the EASRC driver, and it requires ASRC. Enable both of them as modules. Signed-off-by: Adam Ford diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 20362359b212..804ec4dae674 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/d

[PATCH 5/5] arm64: dts: imx8mn: Add node for SPDIF

2020-10-19 Thread Adam Ford
The i.MX8M Nano can support SPDIF which is compatible to the IP used on the i.MX35. Add the node. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 3ab9486736ca..4b32c5aa355d 100644 --- a/arch/arm64/boot/dts/freesc

[PATCH 3/5] arm64: dts: imx8mn: Add SAI nodes

2020-10-19 Thread Adam Ford
The i.MX8M Nano has several SAI nodes available to it. Enable them. Signed-off-by: Adam Ford diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 7d34281332e1..9e2c0b6a7e32 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm6

Re: [RFC PATCH net-next 8/9] net: dsa: microchip: ksz9477: add Pulse Per Second (PPS) support

2020-10-19 Thread Vladimir Oltean
On Mon, Oct 19, 2020 at 07:24:34PM +0200, Christian Eggers wrote: > static int ksz9477_ptp_enable(struct ptp_clock_info *ptp, struct > ptp_clock_request *req, int on) > { > - return -ENOTTY; > + struct ksz_device *dev = container_of(ptp, struct ksz_device, ptp_caps); > + int ret; > +

Re: [PATCH v39 05/24] x86/sgx: Add wrappers for ENCLS leaf functions

2020-10-19 Thread Dave Hansen
On 10/19/20 10:38 AM, Sean Christopherson wrote: >>> +static inline bool encls_failed(int ret) >>> +{ >>> + int epcm_trapnr; >>> + >>> + if (boot_cpu_has(X86_FEATURE_SGX2)) >>> + epcm_trapnr = X86_TRAP_PF; >>> + else >>> + epcm_trapnr = X86_TRAP_GP; >> So, the SDM makes it

Re: [PATCH V2 5/7] remoteproc: imx_rproc: add i.MX specific parse fw hook

2020-10-19 Thread Mathieu Poirier
On Sun, Sep 27, 2020 at 02:41:29PM +0800, Peng Fan wrote: > The hook is used to parse memory-regions and load resource table > from the address the remote processor published. > > Reviewed-by: Richard Zhu > Signed-off-by: Peng Fan > --- > drivers/remoteproc/imx_rproc.c | 97

Re: [PATCH v39 01/24] x86/cpufeatures: x86/msr: Add Intel SGX hardware bits

2020-10-19 Thread Sean Christopherson
On Mon, Oct 19, 2020 at 07:10:58AM -0700, Dave Hansen wrote: > On 10/2/20 9:50 PM, Jarkko Sakkinen wrote: > > > > Add X86_FEATURE_SGX1 and X86_FEATURE_SGX2 from CPUID.(EAX=12H, ECX=0), > > which describe the level of SGX support available [1]. > > The SDM says there are 6 leaf functions added wit

Re: [PATCH 3/3] arm64: defconfig: Enable additional sound drivers on i.MX8M Mini

2020-10-19 Thread Krzysztof Kozlowski
On Thu, Oct 08, 2020 at 04:27:06PM -0500, Adam Ford wrote: > The i.MX8M Mini has micfil and SPDIF support but the drivers > are not being loaded. > > This patch updates the defconfig to add support for these drivers. > > Signed-off-by: Adam Ford Reviewed-by: Krzysztof Kozlowski Best regards,

Re: [PATCH V2 3/3] arm64: defconfig: Enable additional sound drivers on i.MX8M Mini

2020-10-19 Thread Krzysztof Kozlowski
On Mon, Oct 19, 2020 at 11:50:38AM -0500, Adam Ford wrote: > The i.MX8M Mini has micfil and SPDIF support but the drivers > are not being loaded. > > This patch updates the defconfig to add support for these drivers. > > Signed-off-by: Adam Ford > --- > V2: No Change Reviewed-by: Krzysztof Koz

Re: [PATCH] staging: wfx: make a const array static, makes object smaller

2020-10-19 Thread Christophe JAILLET
Le 17/10/2020 à 02:11, Joe Perches a écrit : On Fri, 2020-10-16 at 23:33 +0100, Colin King wrote: From: Colin Ian King Don't populate const array filter_ies on the stack but instead make it static. Makes the object code smaller by 261 bytes. Before: text data bss dec

[PATCH] fs: ocfs2 remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a goto Signed-off-by: Tom Rix --- fs/ocfs2/cluster/tcp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c index 79a231719460..3bd8119bed5e 100644 --- a/fs/ocfs2/cluster/tcp.c +++ b/fs/ocf

[PATCH] watchdog: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix --- drivers/watchdog/geodewdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/watchdog/geodewdt.c b/drivers/watchdog/geodewdt.c index 83418924e30a..0b699c783d57 100644 --- a/drivers/watchdog

[PATCH v2] kasan: adopt KUNIT tests to SW_TAGS mode

2020-10-19 Thread Andrey Konovalov
Now that we have KASAN-KUNIT tests integration, it's easy to see that some KASAN tests are not adopted to the SW_TAGS mode and are failing. Adjust the allocation size for kasan_memchr() and kasan_memcmp() by roung it up to OOB_TAG_OFF so the bad access ends up in a separate memory granule. Add a

Re: [PATCH] KVM: VMX: Forbid userspace MSR filters for x2APIC

2020-10-19 Thread Graf (AWS), Alexander
> Am 19.10.2020 um 19:08 schrieb Paolo Bonzini : > > Allowing userspace to intercept reads to x2APIC MSRs when APICV is > fully enabled for the guest simply can't work. But more in general, > if the LAPIC is in-kernel, allowing accessed by userspace would be very > confusing. If userspace wa

Re: [PATCH V2 1/3] arm64: dts: imx8mm: Add support for micfil

2020-10-19 Thread Krzysztof Kozlowski
On Mon, Oct 19, 2020 at 11:50:36AM -0500, Adam Ford wrote: > The i.MX8M Mini has supports the MICFIL digital interface. > It's a 16-bit audio signal from a PDM microphone bitstream. > The driver is already in the kernel, but the node is missing. > > This patch adds the micfil node. > > Signed-off

Re: [PATCH v39 05/24] x86/sgx: Add wrappers for ENCLS leaf functions

2020-10-19 Thread Sean Christopherson
On Mon, Oct 19, 2020 at 10:48:35AM -0700, Dave Hansen wrote: > On 10/19/20 10:38 AM, Sean Christopherson wrote: > >>> +static inline bool encls_failed(int ret) > >>> +{ > >>> + int epcm_trapnr; > >>> + > >>> + if (boot_cpu_has(X86_FEATURE_SGX2)) > >>> + epcm_trapnr = X86_TRAP_PF; > >>> + el

Re: [PATCH 3/5] x86/boot/compressed/64: Check SEV encryption in 64-bit boot-path

2020-10-19 Thread Arvind Sankar
On Mon, Oct 19, 2020 at 01:00:08PM -0400, Arvind Sankar wrote: > On Mon, Oct 19, 2020 at 05:11:19PM +0200, Joerg Roedel wrote: > > From: Joerg Roedel > > > > Check whether the hypervisor reported the correct C-bit when running as > > an SEV guest. Using a wrong C-bit position could be used to lea

Re: Remove __napi_schedule_irqoff?

2020-10-19 Thread Jakub Kicinski
On Mon, 19 Oct 2020 12:33:12 +0200 Thomas Gleixner wrote: > On Sun, Oct 18 2020 at 10:19, Jakub Kicinski wrote: > > On Sun, 18 Oct 2020 10:20:41 +0200 Heiner Kallweit wrote: > >> >> Otherwise a non-solution could be to make IRQ_FORCED_THREADING > >> >> configurable. > >> > > >> > I have to s

[PATCH] tty: nozomi: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return Add explicit fallthrough Signed-off-by: Tom Rix --- drivers/tty/nozomi.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index d42b854cb7df..861e95043191 10064

Re: [PATCH v39 05/24] x86/sgx: Add wrappers for ENCLS leaf functions

2020-10-19 Thread Dave Hansen
On 10/19/20 10:53 AM, Sean Christopherson wrote: >>> SGX1 CPUs take an erratum on the #PF behavior, e.g. "KBW90 Violation of >>> Intel >>> SGX Access-Control Requirements Produce #GP Instead of #PF". >>> >>> https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/xeon-e3

Re: [PATCH V2 6/7] remoteproc: imx_rproc: support i.MX8MQ/M

2020-10-19 Thread Mathieu Poirier
On Sun, Sep 27, 2020 at 02:41:30PM +0800, Peng Fan wrote: > Add i.MX8MQ dev/sys addr map and configuration data structure > i.MX8MM share i.MX8MQ settings. > > Reviewed-by: Richard Zhu > Signed-off-by: Peng Fan > --- > drivers/remoteproc/imx_rproc.c | 40 ++ > 1

Re: [PATCH] asm-generic: Force inlining of get_order() to work around gcc10 poor decision

2020-10-19 Thread Segher Boessenkool
On Mon, Oct 19, 2020 at 10:54:40AM +0200, Christophe Leroy wrote: > Le 19/10/2020 à 10:32, Segher Boessenkool a écrit : > >The kernel should just use __always_inline if that is what it *wants*; > >that is true here most likely. GCC could perhaps improve its heuristics > >so that it no longer think

[PATCH] tty: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix --- drivers/tty/serial/imx.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 1731d9728865..09703079db7b 100644 --- a/drivers/tty/serial/imx

Re: gssapi, crypto and afs/rxrpc

2020-10-19 Thread J. Bruce Fields
On Fri, Oct 16, 2020 at 05:18:26PM +0100, David Howells wrote: > Hi Herbert, Dave, Trond, > > I've written basic gssapi-derived security support for AF_RXRPC: > > > https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-rxgk > > I've borrowed some bits from net

[PATCH] net: chelsio: inline_crypto: fix Kconfig and build errors

2020-10-19 Thread Randy Dunlap
Fix build errors when TLS=m, TLS_TOE=y, and CRYPTO_DEV_CHELSIO_TLS=y. Having (tristate) CRYPTO_DEV_CHELSIO_TLS depend on (bool) TLS_TOE is not strong enough to prevent the bad combination of TLS=m and CRYPTO_DEV_CHELSIO_TLS=y, so add a dependency on TLS to prevent the problematic kconfig combinati

ATENCIÓN

2020-10-19 Thread Sistemas administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de corre

[ANNOUNCE] Git v2.29.0

2020-10-19 Thread Junio C Hamano
The latest feature release Git v2.29.0 is now available at the usual places. It is comprised of 627 non-merge commits since v2.28.0, contributed by 89 people, 24 of which are new faces. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories

Re: [PATCH v2 00/20] Introduce the TDP MMU

2020-10-19 Thread Ben Gardon
On Fri, Oct 16, 2020 at 9:50 AM Paolo Bonzini wrote: > > On 14/10/20 20:26, Ben Gardon wrote: > > arch/x86/include/asm/kvm_host.h | 14 + > > arch/x86/kvm/Makefile |3 +- > > arch/x86/kvm/mmu/mmu.c | 487 +++-- > > arch/x86/kvm/mmu/mmu_internal.h | 242 +++ >

Re: [PATCH v4 3/3] iommu/arm-smmu-qcom: Implement S2CR quirk

2020-10-19 Thread Bjorn Andersson
On Mon 19 Oct 09:04 CDT 2020, Robin Murphy wrote: > On 2020-10-17 05:39, Bjorn Andersson wrote: > > The firmware found in some Qualcomm platforms intercepts writes to S2CR > > in order to replace bypass type streams with fault; and ignore S2CR > > updates of type fault. > > > > Detect this behavi

[PATCH v5 0/3] iommu/arm-smmu-qcom: Support maintaining bootloader mappings

2020-10-19 Thread Bjorn Andersson
This is the revised fourth attempt of inheriting the stream mapping for the framebuffer on many Qualcomm platforms, in order to not hit catastrophic faults during arm-smmu initialization. The new approach does, based on Robin's suggestion, take a much more direct approach with the allocation of a

[PATCH v5 1/3] iommu/arm-smmu: Allow implementation specific write_s2cr

2020-10-19 Thread Bjorn Andersson
The firmware found in some Qualcomm platforms intercepts writes to the S2CR register in order to replace the BYPASS type with FAULT. Further more it treats faults at this level as catastrophic and restarts the device. Add support for providing implementation specific versions of the S2CR write fun

[PATCH v5 3/3] iommu/arm-smmu-qcom: Implement S2CR quirk

2020-10-19 Thread Bjorn Andersson
The firmware found in some Qualcomm platforms intercepts writes to S2CR in order to replace bypass type streams with fault; and ignore S2CR updates of type fault. Detect this behavior and implement a custom write_s2cr function in order to trick the firmware into supporting bypass streams by the me

[PATCH v5 2/3] iommu/arm-smmu-qcom: Read back stream mappings

2020-10-19 Thread Bjorn Andersson
The Qualcomm boot loader configures stream mapping for the peripherals that it accesses and in particular it sets up the stream mapping for the display controller to be allowed to scan out a splash screen or EFI framebuffer. Read back the stream mappings during initialization and make the arm-smmu

Re: [PATCH 3/3] powerpc: Fix pre-update addressing in inline assembly

2020-10-19 Thread Christophe Leroy
wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/powerpc-uaccess-Don-t-use-m-constraint-with-GCC-4-9/20201019-2

Re: sysfs filenames with spaces

2020-10-19 Thread Pavel Machek
On Tue 2020-10-13 12:48:49, Joe Perches wrote: > On Tue, 2020-10-13 at 19:17 +0200, Pavel Machek wrote: > > On Mon 2020-10-05 19:41:15, Joe Perches wrote: > > > This doesn't seem like a great idea to me. > > > > > > For my system I've got: > > > > > > /sys/devices/platform/Fixed MDIO bus.0/ > > >

Re: [PATCH] bpf: remove unneeded break

2020-10-19 Thread Andrii Nakryiko
On Mon, Oct 19, 2020 at 10:38 AM wrote: > > From: Tom Rix > > A break is not needed if it is preceded by a return > > Signed-off-by: Tom Rix > --- Probably refactoring left over, looks good: Acked-by: Andrii Nakryiko > kernel/bpf/syscall.c | 1 - > 1 file changed, 1 deletion(-) > > diff --g

Re: [RFC PATCH 0/2] iommu: Avoid unnecessary PRI queue flushes

2020-10-19 Thread Jacob Pan
Hi Jean-Philippe, On Mon, 19 Oct 2020 16:08:24 +0200, Jean-Philippe Brucker wrote: > On Sat, Oct 17, 2020 at 04:25:25AM -0700, Raj, Ashok wrote: > > > For devices that *don't* use a stop marker, the PCIe spec says > > > (10.4.1.2): > > > > > > To stop [using a PASID] without using a Stop Mark

Re: [PATCH v9 12/15] PCI/RCEC: Add RCiEP's linked RCEC to AER/ERR

2020-10-19 Thread Sean V Kelley
On 19 Oct 2020, at 3:49, Ethan Zhao wrote: On Sat, Oct 17, 2020 at 6:29 AM Bjorn Helgaas wrote: [+cc Christoph, Ethan, Sinan, Keith; sorry should have cc'd you to begin with since you're looking at this code too. Particularly interested in your thoughts about whether we should be touching PC

Re: 4d004099a6 ("lockdep: Fix lockdep recursion"): BUG: using __this_cpu_read() in preemptible [00000000] code: trinity-c6/526

2020-10-19 Thread Peter Zijlstra
On Tue, Oct 20, 2020 at 12:55:46AM +0800, kernel test robot wrote: > [ 92.898145] BUG: using __this_cpu_read() in preemptible [] code: > trinity-c6/526 > [ 92.903305] Call Trace: > [ 92.905182] __this_cpu_preempt_check+0xf/0x11 > [ 92.905968] lockdep_hardirqs_on_prepare+0x2c/0x1

Re: [PATCH 1/2] x86: Remove led/gpio setup from pcengines platform driver

2020-10-19 Thread Hans de Goede
Hi, On 10/19/20 5:44 PM, Enrico Weigelt, metux IT consult wrote: > On 14.10.20 10:41, Hans de Goede wrote: > > Hi, > >> Keep the current LED/gpio setup code, but make executing it conditional >> on the BIOS version and skip the LED/gpio setup when the new BIOS is >> present to avoid having dupli

Re: [PATCH] mm, page_alloc: skip ->watermark_boost for atomic order-0 allocations-fix

2020-10-19 Thread Ralph Siemsen
Hi, Please consider applying the patch from this thread to 5.8.y: commit f80b08fc44536a311a9f3182e50f318b79076425 The fix should also go into 5.4.y, however the patch needs some minor adjustments due to surrounding context differences. Attached below is a version I have tested against 5.4.71. Th

Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-19 Thread Hans de Goede
Hi, On 10/18/20 2:31 PM, Rafael J. Wysocki wrote: > On Sun, Oct 18, 2020 at 11:41 AM Hans de Goede wrote: >> >> Hi, >> >> On 10/16/20 4:51 PM, Rafael J. Wysocki wrote: >>> On Fri, Oct 16, 2020 at 1:11 PM Hans de Goede wrote: >>> one from both threads to the Cc> Hi,

Re: [PATCH] rtl8180: avoid accessing the data mapped to streaming DMA

2020-10-19 Thread Jakub Kicinski
On Mon, 19 Oct 2020 10:54:20 +0800 Jia-Ju Bai wrote: > + if (info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ) { > + if (info->flags & IEEE80211_TX_CTL_FIRST_FRAGMENT) > + priv->seqno += 0x10; > + hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG); > +

Re: [PATCH RFC 0/8] Introduce warming in thermal framework

2020-10-19 Thread Thara Gopinath
On Wed, 16 Sep 2020 at 23:22, Thara Gopinath wrote: > > Thermal framework today supports monitoring for rising temperatures and > subsequently initiating cooling action in case of a thermal trip point > being crossed. There are scenarios where a SoC need warming mitigating > action to be activated

[PATCH v2] pciehp: Add check for DL_ACTIVE bit in pciehp_check_link_status()

2020-10-19 Thread Sanjay R Mehta
From: Sanjay R Mehta if DL_ACTIVE bit is set it means that there is no need to check PCI_EXP_LNKSTA_LT bit, as DL_ACTIVE would have set only if the link is already trained. Hence adding a check which takes care of this scenario. Signed-off-by: Sanjay R Mehta --- drivers/pci/hotplug/pciehp_hpc.

Re: [PATCH RFC V3 4/9] x86/pks: Preserve the PKRS MSR on context switch

2020-10-19 Thread Ira Weiny
On Mon, Oct 19, 2020 at 11:37:14AM +0200, Peter Zijlstra wrote: > On Fri, Oct 16, 2020 at 10:14:10PM -0700, Ira Weiny wrote: > > > so it either needs to > > > explicitly do so, or have an assertion that preemption is indeed > > > disabled. > > > > However, I don't think I understand clearly. Does

Re: Fw: [External] Re: [RFC] Documentation: Add documentation for new performance_profile sysfs class (Also Re: [PATCH 0/4] powercap/dtpm: Add the DTPM framework)

2020-10-19 Thread Mark Pearson
Hi > On 19/10/2020 14:43, Hans de Goede wrote: Hi, On 10/18/20 2:31 PM, Rafael J. Wysocki wrote: On Sun, Oct 18, 2020 at 11:41 AM Hans de Goede wrote: Hi, On 10/16/20 4:51 PM, Rafael J. Wysocki wrote: On Fri, Oct 16, 2020 at 1:11 PM Hans de Goede wrote: Hi, On 10/14/20 5:42 PM, Raf

Re: [PATCH v3] kcov, usbip: collect coverage from vhci_rx_loop

2020-10-19 Thread Shuah Khan
On 10/19/20 11:20 AM, Andrey Konovalov wrote: From: Nazime Hande Harputluoglu Add kcov_remote_start()/kcov_remote_stop() annotations to the vhci_rx_loop() function, which is responsible for parsing USB/IP packets coming into USB/IP client. Since vhci_rx_loop() threads are spawned per vhci_hcd

Re: [PATCH v5 2/3] iommu/arm-smmu-qcom: Read back stream mappings

2020-10-19 Thread Robin Murphy
On 2020-10-19 19:23, Bjorn Andersson wrote: The Qualcomm boot loader configures stream mapping for the peripherals that it accesses and in particular it sets up the stream mapping for the display controller to be allowed to scan out a splash screen or EFI framebuffer. Read back the stream mappin

Re: [PATCH v2] ASoC: Intel: boards: Add CML_RT1015 m/c driver

2020-10-19 Thread Pierre-Louis Bossart
On 10/19/20 10:58 AM, Keith Tzneg wrote: From: Keith Tzeng Machine driver to enable RT5682 on SSP0, DMIC, HDMI and RT1015 AMP on SSP1: Enabled 4 CH TDM playback with 24 bit data. Signed-off-by: Keith Tzeng --- sound/soc/intel/boards/Kconfig| 17 + sound/soc/intel/bo

Re: [PATCH v3] kcov, usbip: collect coverage from vhci_rx_loop

2020-10-19 Thread Shuah Khan
On 10/19/20 12:49 PM, Shuah Khan wrote: On 10/19/20 11:20 AM, Andrey Konovalov wrote: From: Nazime Hande Harputluoglu Add kcov_remote_start()/kcov_remote_stop() annotations to the vhci_rx_loop() function, which is responsible for parsing USB/IP packets coming into USB/IP client. Since vhci_rx

Re: [PATCH v4 9/9] riscv: Fixup lockdep_assert_held(&text_mutex) in patch_insn_write

2020-10-19 Thread Atish Patra
On Sat, Oct 17, 2020 at 12:07 AM wrote: > > From: Guo Ren > > It will cause warning messages: > echo function_graph > /sys/kernel/debug/tracing/current_tracer > [ 47.691397] [ cut here ] > [ 47.692899] WARNING: CPU: 0 PID: 11 at arch/riscv/kernel/patch.c:63 > patch_in

[RESEND PATCH v1] MAINTAINERS: camss: Add Robert Foss as co-maintainer

2020-10-19 Thread Robert Foss
I would like to contribute some of my time to co-maintain the CAMSS driver. I'm currently working to extend CAMSS to new hardware platforms. Signed-off-by: Robert Foss --- I'd like to volunteer as co-maintainer or maintainer. Currently I don't know how active Todor is, but if he is inactive or i

Re: [PATCH] libtraceevent: install html files

2020-10-19 Thread Sudip Mukherjee
Hi Steve, On Mon, Oct 19, 2020 at 2:42 PM Steven Rostedt wrote: > > On Sun, 18 Oct 2020 22:19:12 +0100 > Sudip Mukherjee wrote: > > > Only the man pages were installed using "make install". Add rules to > > install html files also. > > > > Signed-off-by: Sudip Mukherjee > > --- > > tools/lib/t

[PATCH 2/2] fs: kill add_to_page_cache_locked()

2020-10-19 Thread Kent Overstreet
No longer has any users, so remove it. Signed-off-by: Kent Overstreet --- include/linux/pagemap.h | 20 ++--- mm/filemap.c| 62 - 2 files changed, 32 insertions(+), 50 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/p

[PATCH 1/2] cifs: convert to add_to_page_cache()

2020-10-19 Thread Kent Overstreet
This is just open coding add_to_page_cache(), and the next patch will delete add_to_page_cache_locked(). Signed-off-by: Kent Overstreet --- fs/cifs/file.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index be46fab4c9..

[PATCH] power: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a goto Signed-off-by: Tom Rix --- drivers/power/supply/wm831x_power.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/power/supply/wm831x_power.c b/drivers/power/supply/wm831x_power.c index 18b33f14dfee..4cd2dd870039 100644 -

Re: [PATCH v9 12/15] PCI/RCEC: Add RCiEP's linked RCEC to AER/ERR

2020-10-19 Thread Kuppuswamy, Sathyanarayanan
On 10/19/20 11:31 AM, Sean V Kelley wrote: On 19 Oct 2020, at 3:49, Ethan Zhao wrote: On Sat, Oct 17, 2020 at 6:29 AM Bjorn Helgaas wrote: [+cc Christoph, Ethan, Sinan, Keith; sorry should have cc'd you to begin with since you're looking at this code too. Particularly interested in your th

Re: [PATCH] net: ftgmac100: Fix missing TX-poll issue

2020-10-19 Thread Jakub Kicinski
On Mon, 19 Oct 2020 08:57:03 + Joel Stanley wrote: > > diff --git a/drivers/net/ethernet/faraday/ftgmac100.c > > b/drivers/net/ethernet/faraday/ftgmac100.c > > index 00024dd41147..9a99a87f29f3 100644 > > --- a/drivers/net/ethernet/faraday/ftgmac100.c > > +++ b/drivers/net/ethernet/faraday/ftgm

Re: [PATCH] tty: remove unneeded break

2020-10-19 Thread Greg KH
On Mon, Oct 19, 2020 at 10:59:15AM -0700, t...@redhat.com wrote: > From: Tom Rix > > A break is not needed if it is preceded by a return > > Signed-off-by: Tom Rix > --- > drivers/tty/serial/imx.c | 5 - This is the imx driver, you should say that in the subject line like you did for the o

[PATCH] pinctrl: remove unneeded break

2020-10-19 Thread trix
From: Tom Rix A break is not needed if it is preceded by a return Signed-off-by: Tom Rix --- drivers/pinctrl/samsung/pinctrl-s3c24xx.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/pinctrl/samsung/pinctrl-s3c24xx.c b/drivers/pinctrl/samsung/pinctrl-s3c24xx.c index 5e24838a58

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