Re: Linux 4.4.251

2021-01-12 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index c600c076d2c6..4af4da515593 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 250 +SUBLEVEL = 251 EXTRAVERSION = NAME = Blurry Fish Butt @@ -349,7 +349,7 @@ OBJDUMP = $(CROSS_COMPILE)objdump AWK

Linux 4.4.251

2021-01-12 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.4.251 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH 5.10 000/144] 5.10.7-rc2 review

2021-01-12 Thread Greg Kroah-Hartman
On Mon, Jan 11, 2021 at 02:03:26PM -0800, Guenter Roeck wrote: > On Mon, Jan 11, 2021 at 05:15:35PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.10.7 release. > > There are 144 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH net-next 0/5] skbuff: introduce skbuff_heads bulking and reusing

2021-01-12 Thread Eric Dumazet
On Tue, Jan 12, 2021 at 7:26 PM Alexander Lobakin wrote: > > From: Eric Dumazet > Date: Tue, 12 Jan 2021 13:32:56 +0100 > > > On Tue, Jan 12, 2021 at 11:56 AM Alexander Lobakin wrote: > >> > > > >> > >> Ah, I should've mentioned that I use UDP GRO Fraglists, so these > >> numbers are for GRO. >

Re: [PATCH 5.10 000/144] 5.10.7-rc2 review

2021-01-12 Thread Greg Kroah-Hartman
On Tue, Jan 12, 2021 at 12:21:39PM +0530, Naresh Kamboju wrote: > On Mon, 11 Jan 2021 at 21:44, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.10.7 release. > > There are 144 patches in this series, all will be posted as a response > > to this one. If

Re: [RFC PATCH v3 06/16] cxl/mem: Find device capabilities

2021-01-12 Thread Jonathan Cameron
On Mon, 11 Jan 2021 14:51:10 -0800 Ben Widawsky wrote: > CXL devices contain an array of capabilities that describe the > interactions software can have with the device or firmware running on > the device. A CXL compliant device must implement the device status and > the mailbox capability. A

Re: [PATCH 5.10 000/144] 5.10.7-rc2 review

2021-01-12 Thread Greg Kroah-Hartman
On Mon, Jan 11, 2021 at 04:38:19PM -0700, Shuah Khan wrote: > On 1/11/21 9:15 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.10.7 release. > > There are 144 patches in this series, all will be posted as a response > > to this one. If anyone has any issues

Re: [PATCH 2/2] KVM: SVM: Add support for VMCB address check change

2021-01-12 Thread Sean Christopherson
On Tue, Jan 12, 2021, Wei Huang wrote: > New AMD CPUs have a change that checks VMEXIT intercept on special SVM > instructions before checking their EAX against reserved memory region. > This change is indicated by CPUID_0x800A_EDX[28]. If it is 1, KVM > doesn't need to intercept and emulate

Re: [PATCH v5 0/9] Add k/uprobe & fentry & error_injection supported

2021-01-12 Thread Palmer Dabbelt
On Thu, 17 Dec 2020 08:01:36 PST (-0800), guo...@kernel.org wrote: From: Guo Ren This the 5th round of riscv k/uprobe support patchset, it's based on linux-5.10 and you can test it with the repo: https://github.com/c-sky/csky-linux/tree/linux-5.10-probe-dev The important fixup is about the

Re: [PATCH v3] i2c: tegra: Create i2c_writesl_vi() to use with VI I2C for filling TX FIFO

2021-01-12 Thread Dmitry Osipenko
12.01.2021 22:02, Sowjanya Komatineni пишет: > VI I2C controller has known hardware bug where immediate multiple > writes to TX_FIFO register gets stuck. > > Recommended software work around is to read I2C register after > each write to TX_FIFO register to flush out the data. > > This patch

Re: [PATCH] mm/mremap: fix BUILD_BUG_ON() error in get_extent

2021-01-12 Thread Nathan Chancellor
On Wed, Dec 30, 2020 at 04:40:40PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > clang cannt evaluate this function argument at compile time > when the function is not inlined, which leads to a link > time failure: > > ld.lld: error: undefined symbol: __compiletime_assert_414 > >>>

Re: [PATCH bpf-next] bpf: Fix a verifier message for alloc size helper arg

2021-01-12 Thread Andrii Nakryiko
On Tue, Jan 12, 2021 at 4:39 AM Brendan Jackman wrote: > > The error message here is misleading, the argument will be rejected > unless it is a known constant. > > Signed-off-by: Brendan Jackman > --- LGTM. Acked-by: Andrii Nakryiko > kernel/bpf/verifier.c | 2 +- > 1 file changed, 1

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2021-01-12 Thread Nadav Amit
> On Jan 12, 2021, at 11:02 AM, Laurent Dufour > wrote: > > Le 12/01/2021 à 17:57, Peter Zijlstra a écrit : >> On Tue, Jan 12, 2021 at 04:47:17PM +0100, Laurent Dufour wrote: >>> Le 12/01/2021 à 12:43, Vinayak Menon a écrit : Possibility of race against other PTE modifiers 1)

Re: [PATCH V4 0/6] Add the page size in the perf record (user tools)

2021-01-12 Thread Liang, Kan
On 1/12/2021 12:24 AM, Athira Rajeev wrote: On 06-Jan-2021, at 1:27 AM, kan.li...@linux.intel.com wrote: From: Kan Liang Changes since V3: - Rebase on top of acme's perf/core branch commit c07b45a355ee ("perf record: Tweak "Lowering..." warning in record_opts__config_freq") Changes

Re: [RFC PATCH v3 05/16] cxl/mem: Map memory device registers

2021-01-12 Thread Jonathan Cameron
On Mon, 11 Jan 2021 14:51:09 -0800 Ben Widawsky wrote: > All the necessary bits are initialized in order to find and map the > register space for CXL Memory Devices. This is accomplished by using the > Register Locator DVSEC (CXL 2.0 - 8.1.9.1) to determine which PCI BAR to > use, and how much

[PATCH] firmware: arm_scmi: fix call site of notifications exit

2021-01-12 Thread Cristian Marussi
Call scmi_notification_exit() only when SCMI platform driver instance has been really successfully removed. Signed-off-by: Cristian Marussi --- A small fix spotted by code inspection, applies on for-next/scmi n top of: commit 6054d97ab512 ("MAINTAINERS: Update ARM SCMI entry") ---

Re: [PATCH v4] certs: Add EFI_CERT_X509_GUID support for dbx entries

2021-01-12 Thread Eric Snowberg
> On Jan 12, 2021, at 10:10 AM, David Howells wrote: > > How about the attached? This looks good to me. > I've changed the function names to something that I > think reads better, but otherwise it's the same. I agree, the function name changes you made sound better. We are starting to see

[PATCH] dmaengine: qcom: Always inline gpi_update_reg

2021-01-12 Thread Nathan Chancellor
When building with CONFIG_UBSAN_UNSIGNED_OVERFLOW, clang decides not to inline gpi_update_reg, which causes a linkage failure around __bad_mask: ld.lld: error: undefined symbol: __bad_mask >>> referenced by bitfield.h:119 (include/linux/bitfield.h:119) >>>

[PATCH 3/4] habanalabs: ignore F/W BMC errors in case no BMC present

2021-01-12 Thread Oded Gabbay
From: Ofir Bitton In order to support operation mode in which BMC is not active, driver must not take BMC errors into consideration. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/common/firmware_if.c | 12 +--- 1 file

Re: [RFC PATCH V2 2/2] iommu: add Unisoc iommu basic driver

2021-01-12 Thread Robin Murphy
On 2021-01-08 11:38, Chunyan Zhang wrote: From: Chunyan Zhang This patch only adds display iommu support, the driver was tested with sprd dpu. The iommu support for others would be added once finished tests with those devices, such as Image codec(jpeg) processor, a few signal processors,

Re: [PATCH v1 (RFC)] docs: discourage users from using bugzilla.kernel.org

2021-01-12 Thread Thorsten Leemhuis
Thx for your reply and sorry for forgetting to CC you; that was the plan, but I forgot when I called git send-email :-/ Am 11.01.21 um 20:48 wrote Konstantin Ryabitsev: > On Sun, Jan 10, 2021 at 01:10:33PM +0100, Thorsten Leemhuis wrote: >> The front page doesn't make this aspect obvious and not

Re: [PATCH] ASoC: imx-hdmi: Fix warning of the uninitialized variable ret

2021-01-12 Thread Nathan Chancellor
On Tue, Jan 12, 2021 at 06:48:48PM +, Mark Brown wrote: > This is a random warning fix, why would you expect it to be sent as a > bug fix? This is the first indication I've seen that anyone is seeing > it in mainline, in general the people who report and fix warnings are > doing so based on

[PATCH 2/4] habanalabs/gaudi: print sync manager SEI interrupt info

2021-01-12 Thread Oded Gabbay
From: Ofir Bitton Driver must print sync manager SEI information upon receiving interrupt from FW. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/gaudi/gaudi.c | 41 +++

[PATCH 4/4] habanalabs: add security violations dump to debugfs

2021-01-12 Thread Oded Gabbay
From: Ofir Bitton In order to improve driver security debuggability, we add security violations dump to debugfs. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- .../ABI/testing/debugfs-driver-habanalabs | 8 +++

[PATCH 1/4] habanalabs: Use 'dma_set_mask_and_coherent()'

2021-01-12 Thread Oded Gabbay
From: Christophe JAILLET Axe 'hl_pci_set_dma_mask()' and replace it with an equivalent 'dma_set_mask_and_coherent()' call. This makes the code a bit less verbose. It also removes an erroneous comment, because 'hl_pci_set_dma_mask()' does not try to use a fall-back value. Signed-off-by:

Re: [PATCH 4.19 00/77] 4.19.167-rc1 review

2021-01-12 Thread Greg Kroah-Hartman
On Mon, Jan 11, 2021 at 05:24:15PM +0100, Pavel Machek wrote: > Hi! > > > This is the start of the stable review cycle for the 4.19.167 release. > > There are 77 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with these being applied, please >

Re: [PATCH] of: unittest: Statically apply overlays using fdtoverlay

2021-01-12 Thread Frank Rowand
On 1/12/21 8:04 AM, Rob Herring wrote: > On Mon, Jan 11, 2021 at 4:06 PM Frank Rowand wrote: >> >> On 1/8/21 2:41 AM, Viresh Kumar wrote: >>> Now that fdtoverlay is part of the kernel build, start using it to test >>> the unitest overlays we have by applying them statically. >>> >>> The file

Re: [PATCH] arm64: dts: qcom: sdm660: Fix CPU capacities

2021-01-12 Thread AngeloGioacchino Del Regno
Il 12/01/21 15:59, Alexey Minnekhanov ha scritto: Hi! I always had a feeling something is not right in those cpu definitions, so cpus with reg 100-103 are little cores, and 0-3 big ones? But downstream sdm660.dtsi has a property "efficiency" [1] with values which are larger for cores 100-103

Re: [PATCH v2] iommu: arm-smmu-qcom: Add sdm630/msm8998 compatibles for qcom quirks

2021-01-12 Thread Will Deacon
On Sat, 9 Jan 2021 17:56:21 +0100, Konrad Dybcio wrote: > SDM630 and MSM8998 are among the SoCs that use Qualcomm's implementation > of SMMUv2 which has already proven to be problematic over the years. Add > their compatibles to the lookup list to prevent the platforms from being > shut down by

Re: [PATCH v3 1/3] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-01-12 Thread Pierre-Louis Bossart
On 1/12/21 11:17 AM, Perry Yuan wrote: From: Perry Yuan add support for dell privacy driver for the dell units equipped hardware privacy design, which protect users privacy of audio and camera from hardware level. once the audio or camera privacy mode enabled, any applications will not get

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2021-01-12 Thread Laurent Dufour
Le 12/01/2021 à 17:57, Peter Zijlstra a écrit : On Tue, Jan 12, 2021 at 04:47:17PM +0100, Laurent Dufour wrote: Le 12/01/2021 à 12:43, Vinayak Menon a écrit : Possibility of race against other PTE modifiers 1) Fork - We have seen a case of SPF racing with fork marking PTEs RO and that is

[PATCH v3] i2c: tegra: Create i2c_writesl_vi() to use with VI I2C for filling TX FIFO

2021-01-12 Thread Sowjanya Komatineni
VI I2C controller has known hardware bug where immediate multiple writes to TX_FIFO register gets stuck. Recommended software work around is to read I2C register after each write to TX_FIFO register to flush out the data. This patch implements this work around for VI I2C controller.

[PATCH v3] Create i2c_writesl_vi() to use with VI I2C

2021-01-12 Thread Sowjanya Komatineni
Patch in this series is to fix known hardware bug with VI I2C controller where immediate multiple writes to TX_FIFO gets stuck resulting in VI I2C controller to be in bad state. Delta between patch versions: [v3]: Includes v2 feedback - uses relaxed writel and readl - avoids

[PATCH 3/3] habanalabs: prevent soft lockup during unmap

2021-01-12 Thread Oded Gabbay
When using Deep learning framework such as tensorflow or pytorch, there are tens of thousands of host memory mappings. When the user frees all those mappings at the same time, the process of unmapping and unpinning them can take a long time, which may cause a soft lockup bug. To prevent this, we

[PATCH 2/3] habanalabs: fix reset process in case of failures

2021-01-12 Thread Oded Gabbay
There are some points in the reset process where if the code fails for some reason, and the system admin tries to initiate the reset process again we will get a kernel panic. This is because there aren't any protections in different fini functions that are called during the reset process. The

[PATCH 1/3] habanalabs: fix dma_addr passed to dma_mmap_coherent

2021-01-12 Thread Oded Gabbay
When doing dma_alloc_coherent in the driver, we add a certain hard-coded offset to the DMA address before returning to the callee function. This offset is needed when our device use this DMA address to perform outbound transactions to the host. However, if we want to map the DMA'able memory to

Re: [RFC PATCH v3 04/16] cxl/mem: Introduce a driver for CXL-2.0-Type-3 endpoints

2021-01-12 Thread Jonathan Cameron
On Mon, 11 Jan 2021 14:51:08 -0800 Ben Widawsky wrote: > From: Dan Williams > > The CXL.mem protocol allows a device to act as a provider of "System > RAM" and/or "Persistent Memory" that is fully coherent as if the memory > was attached to the typical CPU memory controller. > > With the

Re: [PATCH v2 1/4] dt-bindings: reserved-memory: Document "active" property

2021-01-12 Thread Dmitry Osipenko
05.11.2020 18:49, Thierry Reding пишет: > On Thu, Sep 24, 2020 at 07:23:34PM +0300, Dmitry Osipenko wrote: >> 24.09.2020 17:01, Thierry Reding пишет: >>> On Thu, Sep 24, 2020 at 04:23:59PM +0300, Dmitry Osipenko wrote: 04.09.2020 15:59, Thierry Reding пишет: > From: Thierry Reding >

Re: [PATCH 05/11] kasan, arm64: allow using KUnit tests with HW_TAGS mode

2021-01-12 Thread Catalin Marinas
On Tue, Jan 05, 2021 at 07:27:49PM +0100, Andrey Konovalov wrote: > diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c > index 3c40da479899..57d3f165d907 100644 > --- a/arch/arm64/mm/fault.c > +++ b/arch/arm64/mm/fault.c > @@ -302,12 +302,20 @@ static void die_kernel_fault(const char *msg,

Re: [PATCH] mm: memcontrol: prevent starvation when writing memory.high

2021-01-12 Thread Shakeel Butt
On Tue, Jan 12, 2021 at 9:12 AM Johannes Weiner wrote: > > When a value is written to a cgroup's memory.high control file, the > write() context first tries to reclaim the cgroup to size before > putting the limit in place for the workload. Concurrent charges from > the workload can keep such a

[PATCH] kbuild: improve libelf detection

2021-01-12 Thread Alistair Delva
When `pkg-config --libs' wasn't used or didn't return anything useful, the test for libelf would fail even if the headers and libraries were available to kbuild via KBUILD_HOSTCFLAGS and KBUILD_HOSTLDFLAGS. This makes the check in the core Makefile match the check that is done in

Re: [PATCH 1/2] KVM: x86: Add emulation support for #GP triggered by VM instructions

2021-01-12 Thread Andy Lutomirski
On Tue, Jan 12, 2021 at 9:59 AM Sean Christopherson wrote: > > On Tue, Jan 12, 2021, Sean Christopherson wrote: > > On Tue, Jan 12, 2021, Wei Huang wrote: > > > From: Bandan Das > > > > > > While running VM related instructions (VMRUN/VMSAVE/VMLOAD), some AMD > > > CPUs check EAX against

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

2021-01-12 Thread Andy Lutomirski
On Tue, Jan 12, 2021 at 10:24 AM Luck, Tony wrote: > > On Tue, Jan 12, 2021 at 09:21:21AM -0800, Andy Lutomirski wrote: > > Well, we need to do *something* when the first __get_user() trips the > > #MC. It would be nice if we could actually fix up the page tables > > inside the #MC handler, but,

Re: [PATCH v2 01/10] vfs: move cap_convert_nscap() call into vfs_setxattr()

2021-01-12 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > So there is the basic question do we want to read the raw bytes on disk > or do we want to return something meaningful to the reader. As the > existing tools use the xattr interface to set/clear fscaps returning > data to user space rather than

Re: [PATCH] ASoC: imx-hdmi: Fix warning of the uninitialized variable ret

2021-01-12 Thread Mark Brown
On Tue, Jan 12, 2021 at 11:19:49AM -0700, Nathan Chancellor wrote: Please delete unneeded context from mails when replying. Doing this makes it much easier to find your reply in the message, helping ensure it won't be missed by people scrolling through the irrelevant quoted material. > > > >

Re: [RFC PATCH v3 03/16] cxl/acpi: add OSC support

2021-01-12 Thread Jonathan Cameron
On Mon, 11 Jan 2021 14:51:07 -0800 Ben Widawsky wrote: > From: Vishal Verma > > Add support to advertise OS capabilities, and request OS control for CXL > features using the ACPI _OSC mechanism. Advertise support for all > possible CXL features, and attempt to request control for all possible

Re: [PATCH V6 05/10] remoteproc: imx_rproc: correct err message

2021-01-12 Thread Mathieu Poirier
On Tue, Jan 12, 2021 at 05:39:14PM +0800, peng@nxp.com wrote: > From: Peng Fan > > It is using devm_ioremap, so not devm_ioremap_resource. Correct > the error message and print out sa/size. > > Reviewed-by: Bjorn Andersson > Signed-off-by: Peng Fan > Reviewed-by: Mathieu Poirier >

Re: [PATCH][v3] cpufreq: intel_pstate: Get percpu max freq via HWP MSR register if available

2021-01-12 Thread Rafael J. Wysocki
On Tue, Jan 12, 2021 at 4:00 PM Chen Yu wrote: > > On Tue, Jan 12, 2021 at 02:52:50PM +0100, Rafael J. Wysocki wrote: > > On Tue, Jan 12, 2021 at 6:19 AM Chen Yu wrote: > > > > > > Currently when turbo is disabled(either by BIOS or by the user), the > > > intel_pstate driver reads the max

Re: [PATCH v14 0/6] Carry forward IMA measurement log on kexec on ARM64

2021-01-12 Thread Thiago Jung Bauermann
Mimi Zohar writes: > On Tue, 2021-01-12 at 08:42 -0600, Rob Herring wrote: >> On Mon, Jan 04, 2021 at 11:25:56AM -0800, Lakshmi Ramasubramanian wrote: >> > On kexec file load Integrity Measurement Architecture (IMA) subsystem >> > may verify the IMA signature of the kernel and initramfs, and

Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev regions

2021-01-12 Thread Mathieu Poirier
On Tue, Jan 12, 2021 at 09:41:12AM +, Peng Fan wrote: > > Subject: Re: [PATCH V5 7/8] remoteproc: imx_rproc: ignore mapping vdev > > regions > > > > On Tue, Dec 29, 2020 at 11:30:18AM +0800, peng@nxp.com wrote: > > > From: Peng Fan > > > > > > vdev regions are vdev0vring0, vdev0vring1,

Re: [RFC PATCH v3 02/16] cxl/acpi: Add an acpi_cxl module for the CXL interconnect

2021-01-12 Thread Jonathan Cameron
On Mon, 11 Jan 2021 14:51:06 -0800 Ben Widawsky wrote: > From: Vishal Verma > > Add an acpi_cxl module to coordinate the ACPI portions of the CXL > (Compute eXpress Link) interconnect. This driver binds to ACPI0017 > objects in the ACPI tree, and coordinates access to the resources > provided

Re: [PATCH] blk: avoid divide-by-zero with zero granularity

2021-01-12 Thread kernel test robot
Hi Li, Thank you for the patch! Yet something to improve: [auto build test ERROR on block/for-next] [also build test ERROR on v5.11-rc3 next-20210112] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented

Re: [PATCH v13 14/15] s390/vfio-ap: handle AP bus scan completed notification

2021-01-12 Thread Halil Pasic
On Tue, 22 Dec 2020 20:16:05 -0500 Tony Krowiak wrote: > Implements the driver callback invoked by the AP bus when the AP bus > scan has completed. Since this callback is invoked after binding the newly > added devices to their respective device drivers, the vfio_ap driver will > attempt to hot

Re: [PATCH v13 13/15] s390/vfio-ap: handle host AP config change notification

2021-01-12 Thread Halil Pasic
On Tue, 22 Dec 2020 20:16:04 -0500 Tony Krowiak wrote: > The motivation for config change notification is to enable the vfio_ap > device driver to handle hot plug/unplug of AP queues for a KVM guest as a > bulk operation. For example, if a new APID is dynamically assigned to the > host

Re: [PATCH v2 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-01-12 Thread Hans de Goede
Hi, I know there already is a v3 out and I will try to get around to reviewing that soon, still 1 remark about the discussion surrounding v2: On 1/11/21 2:42 PM, Perry Yuan wrote: >>> *The flow is like this: >>> 1) User presses key. HW does stuff with this key (timeout is started) >>> 2)

Re: [PATCH] scsi: target: tcmu: Fix wrong uio handling causing big memory leak

2021-01-12 Thread Mike Christie
On 12/18/20 8:15 AM, Bodo Stroesser wrote: > tcmu calls uio_unregister_device from tcmu_destroy_device. > After that uio will never call tcmu_release for this device. > If userspace still had the uio device open and / or mmap'ed > during uio_unregister_device, tcmu_release will not be called and >

Re: [PATCH v2 01/10] vfs: move cap_convert_nscap() call into vfs_setxattr()

2021-01-12 Thread Eric W. Biederman
Miklos Szeredi writes: > On Tue, Jan 12, 2021 at 1:15 AM Eric W. Biederman > wrote: >> >> Miklos Szeredi writes: >> >> > On Fri, Jan 01, 2021 at 11:35:16AM -0600, Eric W. Biederman wrote: > >> > For one: a v2 fscap is supposed to be equivalent to a v3 fscap with a >> > rootid of >> > zero,

Re: [PATCH v3] x86/sgx: Synchronize encl->srcu in sgx_encl_release().

2021-01-12 Thread Borislav Petkov
+ paulmck. On Tue, Jan 12, 2021 at 02:08:10AM +0200, Jarkko Sakkinen wrote: > On Tue, Jan 05, 2021 at 03:57:49PM +0100, Borislav Petkov wrote: > > On Wed, Dec 16, 2020 at 03:49:20PM +0200, Jarkko Sakkinen wrote: > > > Add synchronize_srcu_expedited() to sgx_encl_release() to catch a grace > > >

Re: [PATCH V3 2/2] scripts: dtc: Build fdtoverlay and fdtdump tools

2021-01-12 Thread Frank Rowand
On 1/11/21 11:08 PM, Viresh Kumar wrote: > On 11-01-21, 18:44, Frank Rowand wrote: >> On 1/7/21 12:25 AM, Viresh Kumar wrote: >>> We will start building overlays for platforms soon in the kernel and >>> would need these tools going forward. Lets start building them. >>> >>> The fdtoverlay program

Re: PROBLEM: Firmware loader fallback mechanism no longer works with sendfile

2021-01-12 Thread Siddharth Gupta
On 1/8/2021 6:44 AM, Greg KH wrote: On Thu, Jan 07, 2021 at 02:03:47PM -0800, Siddharth Gupta wrote: On 1/6/2021 2:33 AM, Greg KH wrote: Since the binary attributes don't support splice_{read,write} functions the calls to splice_{read,write} used the default kernel_{read,write} functions.

Re: [PATCH 06/11] kasan: rename CONFIG_TEST_KASAN_MODULE

2021-01-12 Thread Andrey Konovalov
On Tue, Jan 12, 2021 at 2:33 PM Marco Elver wrote: > > On Tue, Jan 05, 2021 at 07:27PM +0100, Andrey Konovalov wrote: > > Rename CONFIG_TEST_KASAN_MODULE to CONFIG_KASAN_MODULE_TEST. > > > > This naming is more consistent with the existing CONFIG_KASAN_KUNIT_TEST. > > > > Signed-off-by: Andrey

Re: [PATCH] dmaengine: ti: k3-udma: Set rflow count for BCDMA split channels

2021-01-12 Thread Péter Ujfalusi
Hi Vignesh, On 1/12/21 4:14 PM, Vignesh Raghavendra wrote: BCDMA RX channels have one flow per channel, therefore set the rflow_cnt to rchan_cnt. Without this patch, request for BCDMA RX channel allocation fails as rflow_cnt is 0 thus fails to reserve a rflow for the channel. Good catch,

Re: [PATCH v2 1/2] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges

2021-01-12 Thread Ray Jui
Hi Arnd, On 2020-12-15 7:49 a.m., Arnd Bergmann wrote: On Tue, Dec 15, 2020 at 4:41 PM Florian Fainelli wrote: On 12/15/2020 5:19 AM, Bharat Gooty wrote: Since the IOMMU is disabled and DMA engine is on 32-bit bus, We can not give the complete DDR for the USB DMA. So restricting the usable

Re: [PATCH 06/11] kasan: rename CONFIG_TEST_KASAN_MODULE

2021-01-12 Thread Andrey Konovalov
On Tue, Jan 12, 2021 at 9:10 AM Alexander Potapenko wrote: > > On Tue, Jan 5, 2021 at 7:28 PM Andrey Konovalov wrote: > > > > Rename CONFIG_TEST_KASAN_MODULE to CONFIG_KASAN_MODULE_TEST. > > > > This naming is more consistent with the existing CONFIG_KASAN_KUNIT_TEST. > > > > Signed-off-by:

Re: [PATCH net-next 0/5] skbuff: introduce skbuff_heads bulking and reusing

2021-01-12 Thread Alexander Lobakin
From: Eric Dumazet Date: Tue, 12 Jan 2021 13:32:56 +0100 > On Tue, Jan 12, 2021 at 11:56 AM Alexander Lobakin wrote: >> > >> >> Ah, I should've mentioned that I use UDP GRO Fraglists, so these >> numbers are for GRO. >> > > Right, this suggests UDP GRO fraglist is a pathological case of GRO, >

Re: [PATCH v10 8/8] selinux: include a consumer of the new IMA critical data hook

2021-01-12 Thread Lakshmi Ramasubramanian
On 1/12/21 8:27 AM, Paul Moore wrote: On Thu, Jan 7, 2021 at 11:07 PM Tushar Sugandhi wrote: From: Lakshmi Ramasubramanian SELinux stores the active policy in memory, so the changes to this data at runtime would have an impact on the security guarantees provided by SELinux. Measuring

Re: Infinite recursion in device_reorder_to_tail() due to circular device links

2021-01-12 Thread Rafael J. Wysocki
On Tue, Jan 12, 2021 at 3:32 PM Rafael J. Wysocki wrote: > > On Mon, Jan 11, 2021 at 7:46 PM Stephan Gerhold wrote: > > > > Hi, > > > > since 5.11-rc1 I get kernel crashes with infinite recursion in > > device_reorder_to_tail() in some situations... It's a bit complicated to > > explain so I

Re: [PATCH v14 0/6] Carry forward IMA measurement log on kexec on ARM64

2021-01-12 Thread Lakshmi Ramasubramanian
On 1/12/21 10:05 AM, Mimi Zohar wrote: On Tue, 2021-01-12 at 08:42 -0600, Rob Herring wrote: On Mon, Jan 04, 2021 at 11:25:56AM -0800, Lakshmi Ramasubramanian wrote: On kexec file load Integrity Measurement Architecture (IMA) subsystem may verify the IMA signature of the kernel and initramfs,

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

2021-01-12 Thread Luck, Tony
On Tue, Jan 12, 2021 at 09:21:21AM -0800, Andy Lutomirski wrote: > Well, we need to do *something* when the first __get_user() trips the > #MC. It would be nice if we could actually fix up the page tables > inside the #MC handler, but, if we're in a pagefault_disable() context > we might have

Re: [PATCH v14 0/6] Carry forward IMA measurement log on kexec on ARM64

2021-01-12 Thread Lakshmi Ramasubramanian
On 1/12/21 6:42 AM, Rob Herring wrote: On Mon, Jan 04, 2021 at 11:25:56AM -0800, Lakshmi Ramasubramanian wrote: On kexec file load Integrity Measurement Architecture (IMA) subsystem may verify the IMA signature of the kernel and initramfs, and measure it. The command line parameters passed to

[PATCH v3 13/15] dt-bindings: cpufreq: cpufreq-qcom-hw: Convert to YAML bindings

2021-01-12 Thread AngeloGioacchino Del Regno
From: Manivannan Sadhasivam Convert Qualcomm cpufreq devicetree binding to YAML. Signed-off-by: Manivannan Sadhasivam Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/cpufreq/cpufreq-qcom-hw.txt | 172 --- .../bindings/cpufreq/cpufreq-qcom-hw.yaml | 204

[PATCH v3 14/15] cpufreq: qcom-hw: Implement CPRh aware OSM programming

2021-01-12 Thread AngeloGioacchino Del Regno
On new SoCs (SDM845 onwards) the Operating State Manager (OSM) is being programmed in the bootloader and write-protected by the hypervisor, leaving to the OS read-only access to some of its registers (in order to read the Lookup Tables and also some status registers) and write access to the

[PATCH v3 09/15] soc: qcom: Add support for Core Power Reduction v3, v4 and Hardened

2021-01-12 Thread AngeloGioacchino Del Regno
This commit introduces a new driver, based on the one for cpr v1, to enable support for the newer Qualcomm Core Power Reduction hardware, known downstream as CPR3, CPR4 and CPRh, and support for MSM8998 and SDM630 CPU power reduction. In these new versions of the hardware, support for various new

[PATCH v3 12/15] dt-bindings: arm: cpus: Document 'qcom,freq-domain' property

2021-01-12 Thread AngeloGioacchino Del Regno
From: Manivannan Sadhasivam Add devicetree documentation for 'qcom,freq-domain' property specific to Qualcomm CPUs. This property is used to reference the CPUFREQ node along with Domain ID (0/1). Signed-off-by: Manivannan Sadhasivam Signed-off-by: AngeloGioacchino Del Regno ---

Re: [PATCH bpf-next 1/4] bpf: enable task local storage for tracing programs

2021-01-12 Thread Martin KaFai Lau
On Mon, Jan 11, 2021 at 03:41:26PM -0800, Song Liu wrote: > > > > On Jan 11, 2021, at 10:56 AM, Martin Lau wrote: > > > > On Fri, Jan 08, 2021 at 03:19:47PM -0800, Song Liu wrote: > > > > [ ... ] > > > >> diff --git a/kernel/bpf/bpf_local_storage.c > >> b/kernel/bpf/bpf_local_storage.c > >>

[PATCH v3 07/15] dt-bindings: avs: cpr: Convert binding to YAML schema

2021-01-12 Thread AngeloGioacchino Del Regno
Convert the qcom,cpr.txt document to YAML schema and place it in the appropriate directory, since this driver was moved from power/avs to soc/qcom, but forgets to move the documentation. Fixes: a7305e684fcf ("PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers") Signed-off-by:

[PATCH v3 00/15] Enable CPRh/3/4, CPU Scaling on various QCOM SoCs

2021-01-12 Thread AngeloGioacchino Del Regno
Changes in v3: - Fixed dt_binding_check for qcom,cpr.yaml, cpufreq-qcom-hw.yaml - Fixed qcom-cpufreq-hw.c kernel test robot ARM build failure - Removed unused variables and redundant if branch in cpr3.c Changes in v2: - Rebased qcom-cpufreq-hw dt-binding on top of Manivannan's patches -

[PATCH v3 04/15] cpufreq: blacklist SDM630/636/660 in cpufreq-dt-platdev

2021-01-12 Thread AngeloGioacchino Del Regno
Add the SDM630, SDM636 and SDM660 to the blacklist since the CPU scaling is handled out of this. Signed-off-by: AngeloGioacchino Del Regno --- drivers/cpufreq/cpufreq-dt-platdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c

[PATCH v3 01/15] cpuidle: qcom_spm: Detach state machine from main SPM handling

2021-01-12 Thread AngeloGioacchino Del Regno
In commit a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver") the SPM driver has been converted to a generic CPUidle driver: that was mainly made to simplify the driver and that was a great accomplishment; Though, it was ignored that the SPM driver is not used only on

[PATCH v3 03/15] soc: qcom: spm: Add compatible for MSM8998 SAWv4.1 L2

2021-01-12 Thread AngeloGioacchino Del Regno
Add the SAWv4.1 parameters for MSM8998's Gold and Silver clusters. Signed-off-by: AngeloGioacchino Del Regno --- drivers/soc/qcom/spm.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/soc/qcom/spm.c b/drivers/soc/qcom/spm.c index 843732d12c54..2e6312663293 100644

[PATCH v3 10/15] MAINTAINERS: Add entry for Qualcomm CPRv3/v4/Hardened driver

2021-01-12 Thread AngeloGioacchino Del Regno
Add maintainers entry for the Qualcomm CPR3/CPR4/CPRh driver. Signed-off-by: AngeloGioacchino Del Regno --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 66052be495fb..3d9f9037f1c7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14766,6

[PATCH v3 02/15] soc: qcom: spm: Implement support for SAWv4.1, SDM630/660 L2 AVS

2021-01-12 Thread AngeloGioacchino Del Regno
Implement the support for SAW v4.1, used in at least MSM8998, SDM630, SDM660 and APQ variants and, while at it, also add the configuration for the SDM630/660 Silver and Gold cluster L2 Adaptive Voltage Scaler: this is also one of the prerequisites to allow the OSM controller to perform DCVS.

[PATCH v3 08/15] arm64: qcom: qcs404: Change CPR nvmem-names

2021-01-12 Thread AngeloGioacchino Del Regno
The CPR driver's common functions were split and put in another file in order to support newer CPR revisions: to simplify the commonization, the expected names of the fuses had to be changed in order for both new and old support to use the same fuse name retrieval function and keeping the naming

[PATCH v3 05/15] cpufreq: blacklist MSM8998 in cpufreq-dt-platdev

2021-01-12 Thread AngeloGioacchino Del Regno
Add the MSM8998 to the blacklist since the CPU scaling is handled out of this. Signed-off-by: AngeloGioacchino Del Regno --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c

[PATCH v3 15/15] dt-bindings: cpufreq: qcom-hw: Add bindings for 8998

2021-01-12 Thread AngeloGioacchino Del Regno
The OSM programming addition has been done under the qcom,cpufreq-hw-8998 compatible name: specify the requirement of two additional register spaces for this functionality. This implementation, with the same compatible, has been tested on MSM8998 and SDM630. Signed-off-by: AngeloGioacchino Del

[PATCH v3 11/15] dt-bindings: soc: qcom: cpr3: Add bindings for CPR3 driver

2021-01-12 Thread AngeloGioacchino Del Regno
Add the bindings for the CPR3 driver to the documentation. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/soc/qcom/qcom,cpr3.yaml | 241 ++ 1 file changed, 241 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,cpr3.yaml diff

[PATCH v3 06/15] soc: qcom: cpr: Move common functions to new file

2021-01-12 Thread AngeloGioacchino Del Regno
In preparation for implementing a new driver that will be handling CPRv3, CPRv4 and CPR-Hardened, format out common functions to a new file. Signed-off-by: AngeloGioacchino Del Regno --- drivers/soc/qcom/Makefile | 2 +- drivers/soc/qcom/cpr-common.c | 382 +

Re: [PATCH] ASoC: imx-hdmi: Fix warning of the uninitialized variable ret

2021-01-12 Thread Nathan Chancellor
On Wed, Dec 16, 2020 at 06:44:24PM +0800, Shengjiu Wang wrote: > From: shengjiu wang > > When condition ((hdmi_out && hdmi_in) || (!hdmi_out && !hdmi_in)) > is true, then goto fail, the uninitialized variable ret will be > returned. > > Signed-off-by: shengjiu wang > Reported-by: kernel test

Re: [PATCH] of: unittest: Statically apply overlays using fdtoverlay

2021-01-12 Thread Frank Rowand
On 1/12/21 4:16 AM, Bill Mills wrote: > > > On 1/12/21 3:37 AM, Viresh Kumar wrote: >> On 11-01-21, 20:22, Bill Mills wrote: >>> On 1/11/21 5:06 PM, Frank Rowand wrote: NACK to this specific patch, in its current form. There are restrictions on applying an overlay at runtime that

[PATCH 03/24] sched: Add cond_resched_rwlock

2021-01-12 Thread Ben Gardon
Safely rescheduling while holding a spin lock is essential for keeping long running kernel operations running smoothly. Add the facility to cond_resched rwlocks. CC: Ingo Molnar CC: Will Deacon Acked-by: Peter Zijlstra Acked-by: Davidlohr Bueso Acked-by: Waiman Long Acked-by: Paolo Bonzini

[PATCH] scsi: mpt3sas: Again output non-intel branding

2021-01-12 Thread Joe Perches
commit 989e43c7ec34 ("mpt3sas: Added OEM Gen2 PnP ID branding names") consolidated individual functions for OEM branding into a single function but left a test for intel only at the top so no other vendor branding was output. Remove the test. Signed-off-by: Joe Perches --- If no one noticed in

[PATCH 06/24] kvm: x86/mmu: Skip no-op changes in TDP MMU functions

2021-01-12 Thread Ben Gardon
Skip setting SPTEs if no change is expected. Reviewed-by: Peter Feiner Signed-off-by: Ben Gardon --- arch/x86/kvm/mmu/tdp_mmu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/kvm/mmu/tdp_mmu.c b/arch/x86/kvm/mmu/tdp_mmu.c index 1987da0da66e..2650fa9fe066 100644 ---

[PATCH 20/24] kvm: x86/mmu: Add atomic option for setting SPTEs

2021-01-12 Thread Ben Gardon
In order to allow multiple TDP MMU operations to proceed in parallel, there must be an option to modify SPTEs atomically so that changes are not lost. Add that option to __tdp_mmu_set_spte and __handle_changed_spte. Reviewed-by: Peter Feiner Signed-off-by: Ben Gardon ---

Re: [PATCH 04/11] kasan: add match-all tag tests

2021-01-12 Thread Andrey Konovalov
On Tue, Jan 12, 2021 at 2:17 PM Marco Elver wrote: > > On Tue, Jan 05, 2021 at 07:27PM +0100, Andrey Konovalov wrote: > > Add 3 new tests for tag-based KASAN modes: > > > > 1. Check that match-all pointer tag is not assigned randomly. > > 2. Check that 0xff works as a match-all pointer tag. > >

[PATCH 23/24] kvm: x86/mmu: Freeze SPTEs in disconnected pages

2021-01-12 Thread Ben Gardon
When clearing TDP MMU pages what have been disconnected from the paging structure root, set the SPTEs to a special non-present value which will not be overwritten by other threads. This is needed to prevent races in which a thread is clearing a disconnected page table, but another thread has

[PATCH 12/24] kvm: x86/kvm: RCU dereference tdp mmu page table links

2021-01-12 Thread Ben Gardon
In order to protect TDP MMU PT memory with RCU, ensure that page table links are properly rcu_derefenced. Reviewed-by: Peter Feiner Signed-off-by: Ben Gardon --- arch/x86/kvm/mmu/tdp_iter.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/mmu/tdp_iter.c

[PATCH v4 2/3] ASoC: SOF: Intel: hda: Modify existing helper to disable WAKEEN

2021-01-12 Thread Kai-Heng Feng
Modify hda_codec_jack_wake_enable() to also support disable WAKEEN. In addition, this patch also moves the WAKEEN disablement call out of hda_codec_jack_check() into hda_codec_jack_wake_enable(). This is a preparation for next patch. No functional change intended. Signed-off-by: Kai-Heng Feng

[PATCH 11/24] kvm: x86/mmu: Put TDP MMU PT walks in RCU read-critical section

2021-01-12 Thread Ben Gardon
In order to enable concurrent modifications to the paging structures in the TDP MMU, threads must be able to safely remove pages of page table memory while other threads are traversing the same memory. To ensure threads do not access PT memory after it is freed, protect PT memory with RCU.

[PATCH 16/24] kvm: mmu: Wrap mmu_lock assertions

2021-01-12 Thread Ben Gardon
Wrap assertions and warnings checking the MMU lock state in a function which uses lockdep_assert_held. While the existing checks use a few different functions to check the lock state, they are all better off using lockdep_assert_held. This will support a refactoring to move the mmu_lock to struct

[PATCH v4 3/3] ASoC: SOF: Intel: hda: Avoid checking jack on system suspend

2021-01-12 Thread Kai-Heng Feng
System takes a very long time to suspend after commit 215a22ed31a1 ("ALSA: hda: Refactor codec PM to use direct-complete optimization"): [ 90.065964] PM: suspend entry (s2idle) [ 90.067337] Filesystems sync: 0.001 seconds [ 90.185758] Freezing user space processes ... (elapsed 0.002 seconds)

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