Re: [PATCH v3 1/1] watchdog: Add common nowayout parameter to booke_wdt driver

2020-07-06 Thread Guenter Roeck
On 7/6/20 9:33 AM, Timothy Myers wrote: > Add the common "nowayout" parameter to booke_wdt to make this behavior > selectable at runtime and to make the implementation more consistent with > many other watchdog drivers. > > Signed-off-by: Timothy Myers > Reviewed-by: Guenter Roeck > > Changes i

Re: [PATCH v2 0/7] Tighten PCI security, expose dev location in sysfs

2020-07-06 Thread Rajat Jain
On Sat, Jul 4, 2020 at 4:44 AM Pavel Machek wrote: > > Hi! > > > * The first 3 patches tighten the PCI security using ACS, and take care > > of a border case. > > * The 4th patch takes care of PCI bug. > > * 5th and 6th patches expose a device's location into the sysfs to allow > > admin to ma

Re: [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Pavel Begunkov
On 07/07/2020 01:10, Steven Rostedt wrote: > On Tue, 7 Jul 2020 00:31:49 +0300 > Pavel Begunkov wrote: >>> diff --git a/Documentation/process/coding-style.rst >>> b/Documentation/process/coding-style.rst >>> index 2657a55c6f12..4b15ab671089 100644 >>> --- a/Documentation/process/coding-style.rst

[PATCH 5/5] mm/hmm/test: use the new migration invalidation

2020-07-06 Thread Ralph Campbell
Use the new MMU_NOTIFY_MIGRATE event to skip MMU invalidations of device private memory and handle the invalidation in the driver as part of migrating device private memory. Signed-off-by: Ralph Campbell --- lib/test_hmm.c | 31 ++- 1 file changed, 18 insertions(+), 1

[PATCH 2/5] mm/migrate: add a direction parameter to migrate_vma

2020-07-06 Thread Ralph Campbell
The src_owner field in struct migrate_vma is being used for two purposes, it implies the direction of the migration and it identifies device private pages owned by the caller. Split this into separate parameters so the src_owner field can be used just to identify device private pages owned by the c

[PATCH 4/5] nouveau/svm: use the new migration invalidation

2020-07-06 Thread Ralph Campbell
Use the new MMU_NOTIFY_MIGRATE event to skip GPU MMU invalidations of device private memory and handle the invalidation in the driver as part of migrating device private memory. Signed-off-by: Ralph Campbell --- drivers/gpu/drm/nouveau/nouveau_dmem.c | 11 --- drivers/gpu/drm/nouveau/nou

[PATCH 3/5] mm/notifier: add migration invalidation type

2020-07-06 Thread Ralph Campbell
Currently migrate_vma_setup() calls mmu_notifier_invalidate_range_start() which flushes all device private page mappings whether or not a page is being migrated to/from device private memory. In order to not disrupt device mappings that are not being migrated, shift the responsibility for clearing

[PATCH 1/5] nouveau: fix storing invalid ptes

2020-07-06 Thread Ralph Campbell
When migrating a range of system memory to device private memory, some of the pages in the address range may not be migrating. In this case, the non migrating pages won't have a new GPU MMU entry to store but the nvif_object_ioctl() NVIF_VMM_V0_PFNMAP method doesn't check the input and stores a bad

[PATCH 0/5] mm/migrate: avoid device private invalidations

2020-07-06 Thread Ralph Campbell
The goal for this series is to avoid device private memory TLB invalidations when migrating a range of addresses from system memory to device private memory and some of those pages have already been migrated. The approach taken is to introduce a new mmu notifier invalidation event type and use that

Re: [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Steven Rostedt
On Tue, 7 Jul 2020 01:17:47 +0300 Pavel Begunkov wrote: > Totally agree with you! But do we care then whether two _devices_ or _objects_ > are slave-master? Can't see how it fundamentally differs. The term slave carries a lot more meaning than subordinate. I replied to someone else but later rea

[PATCH v2 1/2] drm: drm_fourcc: add NV20 and NV30 YUV formats

2020-07-06 Thread Jonas Karlman
DRM_FORMAT_NV20 and DRM_FORMAT_NV30 formats is the 2x1 and non-subsampled variant of NV15, a 10-bit 2-plane YUV format that has no padding between components. Instead, luminance and chrominance samples are grouped into 4s so that each group is packed into an integer number of bytes: = UVUV =

[PATCH v2 0/2] drm: rockchip: add NV15, NV20 and NV30 support

2020-07-06 Thread Jonas Karlman
Hi, This series adds support for displaying 10-bit 4:2:0 and 4:2:2 formats produced by the Rockchip Video Decoder on RK322X, RK3288, RK3328, RK3368 and RK3399. Also include 10-bit 4:4:4 support since VOP can support that also. First patch adds new fourcc 10-bit YUV formats with 4:2:2/4:4:4 sub-sa

Re: [PATCH V3 13/23] perf/x86/intel/lbr: Factor out intel_pmu_store_lbr

2020-07-06 Thread Liang, Kan
On 7/3/2020 4:59 PM, Liang, Kan wrote: On 7/3/2020 3:50 PM, Peter Zijlstra wrote: On Fri, Jul 03, 2020 at 05:49:19AM -0700, kan.li...@linux.intel.com wrote: +static void intel_pmu_store_lbr(struct cpu_hw_events *cpuc, +    struct lbr_entry *entries) +{ +    struct perf_branch_e

[PATCH v2 2/2] drm: rockchip: add NV15, NV20 and NV30 support

2020-07-06 Thread Jonas Karlman
Add support for displaying 10-bit 4:2:0 and 4:2:2 formats produced by the Rockchip Video Decoder on RK322X, RK3288, RK3328, RK3368 and RK3399. Also add support for 10-bit 4:4:4 format while at it. V2: Added NV30 support Signed-off-by: Jonas Karlman --- drivers/gpu/drm/rockchip/rockchip_drm_vop.

RE: [PATCH] mm/hugetlb: avoid hardcoding while checking if cma is reserved

2020-07-06 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Tuesday, July 7, 2020 10:12 AM > To: 'Roman Gushchin' > Cc: a...@linux-foundation.org; linux...@kvack.org; > linux-kernel@vger.kernel.org; Linuxarm ; Mike > Kravetz ; Jonathan Cameron > > Subject: RE: [PATCH] mm/hugetlb: av

Re: [PATCH v2 2/7] PCI: Set "untrusted" flag for truly external devices only

2020-07-06 Thread Rajat Jain
Hello, On Mon, Jul 6, 2020 at 9:38 AM Bjorn Helgaas wrote: > > On Mon, Jun 29, 2020 at 09:49:38PM -0700, Rajat Jain wrote: > > The "ExternalFacing" devices (root ports) are still internal devices that > > sit on the internal system fabric and thus trusted. Currently they were > > being marked unt

Re: [PATCH rdma-next v2 0/3] Convert XRC to use xarray

2020-07-06 Thread Jason Gunthorpe
On Mon, Jul 06, 2020 at 03:27:13PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Changelog: > v2: Rewrote mlx5 part to avoid ib_xrcd allocation. > v1: https://lore.kernel.org/lkml/20200623111531.1227013-1-l...@kernel.org > Changed ib_dealloc_xrcd_user() do not iterate over tgt list, b

Re: [PATCH v3 0/3] driver core: Add device link related sysfs files

2020-07-06 Thread Saravana Kannan
On Tue, Jun 16, 2020 at 8:45 PM Saravana Kannan wrote: > > On Fri, May 29, 2020 at 5:30 AM Greg Kroah-Hartman > wrote: > > Looks semi-sane, but it's too close to the merge window at the moment > > for me to take this. If there's no objections by the time 5.8-rc1 is > > out, I'll queue it up in m

Re: [PATCH v2 1/1] hwmon:max6697: Allow max6581 to create tempX_offset

2020-07-06 Thread Chu Lin
On Mon, Jul 6, 2020 at 3:10 PM Chu Lin wrote: > > --- > drivers/hwmon/max6697.c | 100 ++-- > 1 file changed, 96 insertions(+), 4 deletions(-) > > diff --git a/drivers/hwmon/max6697.c b/drivers/hwmon/max6697.c > index 64122eb38060..8c814c544116 100644 > --- a/d

Re: [refperf] 8e4ec3d02b: error:#[##]

2020-07-06 Thread Paul E. McKenney
On Sun, Jul 05, 2020 at 04:00:05PM +0800, kernel test robot wrote: > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: 8e4ec3d02b549a731c94b4bcddff212bb92cdbaf ("refperf: Rename > RCU_REF_PERF_TEST to RCU_REF_SCALE_TEST") > https://git.kernel.org/cgit/linux/kerne

Re: [PATCH -next] locktorture: make function torture_percpu_rwsem_init() static

2020-07-06 Thread Paul E. McKenney
On Fri, Jul 03, 2020 at 01:05:27PM +0800, Wei Yongjun wrote: > The sparse tool complains as follows: > > kernel/locking/locktorture.c:569:6: warning: > symbol 'torture_percpu_rwsem_init' was not declared. Should it be static? > > And this function is not used outside of locktorture.c, > so this

Re: [PATCH rdma-next v1 0/7] Introduce UAPIs to query UCONTEXT, PD and MR properties

2020-07-06 Thread Jason Gunthorpe
On Tue, Jun 30, 2020 at 12:39:09PM +0300, Leon Romanovsky wrote: > Yishai Hadas (7): > IB/uverbs: Enable CQ ioctl commands by default > IB/uverbs: Set IOVA on IB MR in uverbs layer > IB/uverbs: Expose UAPI to query ucontext > RDMA/mlx5: Refactor mlx5_ib_alloc_ucontext() response > RDMA/ml

Re: [PATCH] tpm: Define TPM2_SPACE_BUFFER_SIZE to replace the use of PAGE_SIZE

2020-07-06 Thread Jarkko Sakkinen
On Mon, Jul 06, 2020 at 02:06:09PM -0400, Stefan Berger wrote: > On 7/3/20 11:56 PM, Jarkko Sakkinen wrote: > > On Thu, Jul 02, 2020 at 04:55:44PM -0700, Jerry Snitselaar wrote: > > > On Fri Jul 03 20, Jarkko Sakkinen wrote: > > > > The size of the buffers for storing context's and sessions can var

Re: [PATCH v4] selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3

2020-07-06 Thread Jarkko Sakkinen
On Mon, Jul 06, 2020 at 02:32:13PM -0600, Shuah Khan wrote: > On 7/6/20 2:12 PM, Shuah Khan wrote: > > On 7/2/20 7:20 PM, Pengfei Xu wrote: > > > Thanks a lot Jarkko and Shuah! > > > > > > BR. > > > Thanks! > > > > > > On 2020-07-02 at 15:32:49 -0600, Shuah Khan wrote: > > > > On 7/2/20 1:44 PM,

Re: [PATCH] net: sfp: Unique GPIO interrupt names

2020-07-06 Thread Chris Healy
On Mon, Jul 6, 2020 at 1:07 PM Andrew Lunn wrote: > > On Mon, Jul 06, 2020 at 12:38:37PM -0700, Chris Healy wrote: > > Dynamically generate a unique GPIO interrupt name, based on the > > device name and the GPIO name. For example: > > > > 103: 0 sx1503q 12 Edge sff2-los > > 104:

Re: [RESEND Patch v2 0/4] mm/mremap: cleanup move_page_tables() a little

2020-07-06 Thread Andrew Morton
On Mon, 6 Jul 2020 22:06:48 + Wei Yang wrote: > >The patchet looks good to me. I have few nits, but nothing substantial. > > > >Acked-by: Kirill A. Shutemov > > > > Hi, Kirill > > Thanks for your review. > > Andrew, > > Do you want me to send another version or you would like to adjust i

Re: [PATCH] net: sfp: Unique GPIO interrupt names

2020-07-06 Thread Chris Healy
On Mon, Jul 6, 2020 at 1:42 PM Russell King - ARM Linux admin wrote: > > On Mon, Jul 06, 2020 at 12:38:37PM -0700, Chris Healy wrote: > > Dynamically generate a unique GPIO interrupt name, based on the > > device name and the GPIO name. For example: > > > > 103: 0 sx1503q 12 Edge

Re: [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Pavel Begunkov
On 07/07/2020 01:28, Steven Rostedt wrote: > On Tue, 7 Jul 2020 01:17:47 +0300 > Pavel Begunkov wrote: > >> Totally agree with you! But do we care then whether two _devices_ or >> _objects_ >> are slave-master? Can't see how it fundamentally differs. > > The term slave carries a lot more meanin

Re: [PATCH v9 2/2] tpm: Add support for event log pointer found in TPM2 ACPI table

2020-07-06 Thread Jarkko Sakkinen
On Mon, Jul 06, 2020 at 02:19:53PM -0400, Stefan Berger wrote: > From: Stefan Berger > > In case a TPM2 is attached, search for a TPM2 ACPI table when trying > to get the event log from ACPI. If one is found, use it to get the > start and length of the log area. This allows non-UEFI systems, such

[PATCH net 2/3] net: ipa: declare struct types in "ipa_gsi.h"

2020-07-06 Thread Alex Elder
Pointers to two struct types are used in "ipa_gsi.h", without those struct types being forward-declared. Add these declarations. Fixes: c3f398b141a8 ("soc: qcom: ipa: IPA interface to GSI") Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_gsi.h | 2 ++ 1 file changed, 2 insertions(+) diff --g

[PATCH net 1/3] net: ipa: fix QMI structure definition bugs

2020-07-06 Thread Alex Elder
Building with "W=1" did exactly what it was supposed to do, namely point out some suspicious-looking code to be verified not to contain bugs. Some QMI message structures defined in "ipa_qmi_msg.c" contained some bad field names (duplicating the "elem_size" field instead of defining the "offset" fi

[PATCH net 3/3] net: ipa: include declarations in "ipa_gsi.c"

2020-07-06 Thread Alex Elder
Include "ipa_gsi.h" in "ipa_gsi.c", so the public functions are defined before they are used in "ipa_gsi.c". This addresses some warnings that are reported with a "W=1" build. Fixes: c3f398b141a8 ("soc: qcom: ipa: IPA interface to GSI") Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_gsi.c |

[PATCH net 0/3] net: ipa: fix warning-reported errors

2020-07-06 Thread Alex Elder
Building the kernel with W=1 produces numerous warnings for the IPA code. Some of those warnings turn out to flag real problems, and this series fixes them. The first patch fixes the most important ones, but the second and third are problems I think are worth treating as bugs as well. Note: I'l

Re: [kernel/smp] 5408b78b7a: BUG:KASAN:out-of-bounds_in_c

2020-07-06 Thread Paul E. McKenney
s") > > Well, I can still reproduce this on next-20200706 which contains the said fix. > > CSD_LOCK_WAIT_DEBUG=n Indeed you can, good catch, and thank you! There was a csd_lock_record(csd) that instead needed to be c

Re: [PATCH v9 2/2] tpm: Add support for event log pointer found in TPM2 ACPI table

2020-07-06 Thread Jarkko Sakkinen
On Tue, Jul 07, 2020 at 02:09:18AM +0300, Jarkko Sakkinen wrote: > On Mon, Jul 06, 2020 at 02:19:53PM -0400, Stefan Berger wrote: > > From: Stefan Berger > > > > In case a TPM2 is attached, search for a TPM2 ACPI table when trying > > to get the event log from ACPI. If one is found, use it to get

Re: [PATCH v2 3/7] PCI/ACS: Enable PCI_ACS_TB for untrusted/external-facing devices

2020-07-06 Thread Rajat Jain
On Mon, Jul 6, 2020 at 9:45 AM Bjorn Helgaas wrote: > > On Mon, Jun 29, 2020 at 09:49:39PM -0700, Rajat Jain wrote: > > When enabling ACS, enable translation blocking for external facing ports > > and untrusted devices. > > > > Signed-off-by: Rajat Jain > > --- > > v2: Commit log change > > > >

Re: [PATCH] ARM: dts: vf610-zii-ssmb-dtu: Pass "no-sdio"/"no-sd" properties

2020-07-06 Thread Fabio Estevam
On Sun, Jul 5, 2020 at 12:16 AM Chris Healy wrote: > > esdhc0 is connected to an eMMC, so it is safe to pass the "no-sdio"/"no-sd" > properties. > > esdhc1 is wired to a standard SD socket, so pass the "no-sdio" property. > > Signed-off-by: Chris Healy Reviewed-by: Fabio Estevam

Re: [PATCH v2 1/1] hwmon:max6697: Allow max6581 to create tempX_offset

2020-07-06 Thread Guenter Roeck
On Mon, Jul 06, 2020 at 03:46:20PM -0700, Chu Lin wrote: > On Mon, Jul 6, 2020 at 3:10 PM Chu Lin wrote: > > > > --- > > drivers/hwmon/max6697.c | 100 ++-- > > 1 file changed, 96 insertions(+), 4 deletions(-) > > [ ... ] > > > > +static ssize_t offset_store(st

Re: [PATCH 2/2] kunit: kmemleak integration

2020-07-06 Thread Qian Cai
On Mon, Jul 06, 2020 at 05:48:21PM -0500, Uriel Guajardo wrote: > On Mon, Jul 6, 2020 at 4:39 PM Qian Cai wrote: > > > > On Mon, Jul 06, 2020 at 09:13:09PM +, Uriel Guajardo wrote: > > > From: Uriel Guajardo > > > > > > Integrate kmemleak into the KUnit testing framework. > > > > > > Kmemleak

Re: [PATCH] arm: DT: vf610-zii-scu4-aib.dts: Configure fibre ports to 1000BaseX

2020-07-06 Thread Fabio Estevam
Hi Chris, Subject style is usually: ARM: dts: vf610-zii-scu4-aib: Configure fibre ports to 1000BaseX On Sun, Jul 5, 2020 at 10:02 PM Chris Healy wrote: > > The SFF soldered onto the board expect the ports to use 1000BaseX. It > makes no sense to have the ports set to SGMII, since they don't ev

Re: [PATCH v2 1/7] PCI: Keep the ACS capability offset in device

2020-07-06 Thread Bjorn Helgaas
On Mon, Jul 06, 2020 at 03:16:42PM -0700, Rajat Jain wrote: > On Mon, Jul 6, 2020 at 8:58 AM Bjorn Helgaas wrote: > > On Mon, Jun 29, 2020 at 09:49:37PM -0700, Rajat Jain wrote: > > > +static void pci_enable_acs(struct pci_dev *dev); > > > > I don't think we need this forward declaration, do we?

Re: [PATCH v2 3/7] PCI/ACS: Enable PCI_ACS_TB for untrusted/external-facing devices

2020-07-06 Thread Rajat Jain
On Mon, Jul 6, 2020 at 10:07 AM Bjorn Helgaas wrote: > > On Mon, Jun 29, 2020 at 09:49:39PM -0700, Rajat Jain wrote: > > When enabling ACS, enable translation blocking for external facing ports > > and untrusted devices. > > > > Signed-off-by: Rajat Jain > > --- > > v2: Commit log change > > > >

Re: [PATCH v3 4/7] iommu/vt-d: Handle non-page aligned address

2020-07-06 Thread Jacob Pan
On Thu, 2 Jul 2020 09:50:19 +0200 Auger Eric wrote: > Hi Jacob, > > On 7/1/20 5:33 PM, Jacob Pan wrote: > > From: Liu Yi L > > > > Address information for device TLB invalidation comes from userspace > > when device is directly assigned to a guest with vIOMMU support. > > VT-d requires page al

[PATCH v10 2/9] fs: introduce kernel_pread_file* support

2020-07-06 Thread Scott Branden
Add kernel_pread_file* support to kernel to allow for partial read of files with an offset into the file. Signed-off-by: Scott Branden --- fs/exec.c| 93 include/linux/kernel_read_file.h | 17 ++ 2 files changed, 87 insertions(+), 23 d

[PATCH v10 4/9] test_firmware: add partial read support for request_firmware_into_buf

2020-07-06 Thread Scott Branden
Add additional hooks to test_firmware to pass in support for partial file read using request_firmware_into_buf. buf_size: size of buffer to request firmware into partial: indicates that a partial file request is being made file_offset: to indicate offset into file to request Signed-off-by: Scott B

[PATCH v10 5/9] firmware: test partial file reads of request_partial_firmware_into_buf

2020-07-06 Thread Scott Branden
Add firmware tests for partial file reads of request_partial_firmware_into_buf. Signed-off-by: Scott Branden --- .../selftests/firmware/fw_filesystem.sh | 80 +++ 1 file changed, 80 insertions(+) diff --git a/tools/testing/selftests/firmware/fw_filesystem.sh b/tools/testi

[PATCH v10 3/9] firmware: add request_partial_firmware_into_buf

2020-07-06 Thread Scott Branden
Add request_partial_firmware_into_buf to allow for portions of firmware file to be read into a buffer. Necessary where firmware needs to be loaded in portions from file in memory constrained systems. Signed-off-by: Scott Branden --- drivers/base/firmware_loader/firmware.h | 5 ++ drivers/base/

[PATCH v10 0/9] firmware: add request_partial_firmware_into_buf

2020-07-06 Thread Scott Branden
This patch series adds partial read support via a new call request_partial_firmware_into_buf. Such support is needed when the whole file is not needed and/or only a smaller portion of the file will fit into allocated memory at any one time. In order to accept the enhanced API it has been requested

[PATCH v10 1/9] fs: move kernel_read_file* to its own include file

2020-07-06 Thread Scott Branden
Move kernel_read_file* out of linux/fs.h to its own linux/kernel_read_file.h include file. That header gets pulled in just about everywhere and doesn't really need functions not related to the general fs interface. Suggested-by: Christoph Hellwig Signed-off-by: Scott Branden Reviewed-by: Christo

[PATCH v10 9/9] ima: add FIRMWARE_PARTIAL_READ support

2020-07-06 Thread Scott Branden
Add FIRMWARE_PARTIAL_READ support for integrity measurement on partial reads of firmware files. Signed-off-by: Scott Branden --- security/integrity/ima/ima_main.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/security/integrity/ima/ima_main.c b/sec

[PATCH v10 7/9] misc: bcm-vk: add Broadcom VK driver

2020-07-06 Thread Scott Branden
Add Broadcom VK driver offload engine. This driver interfaces to the VK PCIe offload engine to perform should offload functions as video transcoding on multiple streams in parallel. VK device is booted from files loaded using request_firmware_into_buf mechanism. After booted card status is update

[PATCH v10 6/9] bcm-vk: add bcm_vk UAPI

2020-07-06 Thread Scott Branden
Add user space api for bcm-vk driver. Signed-off-by: Scott Branden --- include/uapi/linux/misc/bcm_vk.h | 99 1 file changed, 99 insertions(+) create mode 100644 include/uapi/linux/misc/bcm_vk.h diff --git a/include/uapi/linux/misc/bcm_vk.h b/include/uapi/linux

[PATCH v10 8/9] MAINTAINERS: bcm-vk: add maintainer for Broadcom VK Driver

2020-07-06 Thread Scott Branden
Add maintainer entry for new Broadcom VK Driver Signed-off-by: Scott Branden --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fb5fa302d05b..996e06f78f27 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3662,6 +3662,13 @@ L: net...@vge

Re: [PATCH] mm/hugetlb: avoid hardcoding while checking if cma is reserved

2020-07-06 Thread Roman Gushchin
On Mon, Jul 06, 2020 at 10:30:40PM +, Song Bao Hua (Barry Song) wrote: > > > > -Original Message- > > From: Song Bao Hua (Barry Song) > > Sent: Tuesday, July 7, 2020 10:12 AM > > To: 'Roman Gushchin' > > Cc: a...@linux-foundation.org; linux...@kvack.org; > > linux-kernel@vger.kernel.

Re: [PATCH v2 2/7] PCI: Set "untrusted" flag for truly external devices only

2020-07-06 Thread Bjorn Helgaas
On Mon, Jul 06, 2020 at 03:31:47PM -0700, Rajat Jain wrote: > On Mon, Jul 6, 2020 at 9:38 AM Bjorn Helgaas wrote: > > On Mon, Jun 29, 2020 at 09:49:38PM -0700, Rajat Jain wrote: > > > -static void pci_acpi_set_untrusted(struct pci_dev *dev) > > > +static void pci_acpi_set_external_facing(struct p

Re: [PATCH rdma-next v1 0/4] ib_core allocation patches

2020-07-06 Thread Jason Gunthorpe
On Tue, Jun 30, 2020 at 01:18:51PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > Changelog > v1: > * Removed empty "//" comment > * Deleted destroy_rwq_ind_table from object tree > * One patch was accepted, so rebased on latest for-upstream > v0: > https://lore.kernel.org/lkml/2020

[PATCH RESEND v2] PCI: Add device even if driver attach failed

2020-07-06 Thread Rajat Jain
device_attach() returning failure indicates a driver error while trying to probe the device. In such a scenario, the PCI device should still be added in the system and be visible to the user. This patch partially reverts: commit ab1a187bba5c ("PCI: Check device_attach() return value always") Sign

arch/powerpc/crypto/crc-vpmsum_test.c:106 crc_test_init() warn: inconsistent indenting

2020-07-06 Thread kernel test robot
-20200706 (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot smatch warnings: arch/powerpc/crypto/crc-vpmsum_test.c:106 crc_test_init() warn: inconsistent indenting vim +106 arch/powerpc/crypto

Re: [PATCH v2 4/7] PCI: Add device even if driver attach failed

2020-07-06 Thread Rajat Jain
On Tue, Jun 30, 2020 at 1:02 AM Greg Kroah-Hartman wrote: > > On Mon, Jun 29, 2020 at 09:49:40PM -0700, Rajat Jain wrote: > > device_attach() returning failure indicates a driver error while trying to > > probe the device. In such a scenario, the PCI device should still be added > > in the system

[PATCH] pstore/platform: build fix when crypto API are disabled

2020-07-06 Thread Matteo Croce
From: Matteo Croce When building a kernel with CONFIG_PSTORE=y and CONFIG_CRYPTO not set, a build error happens: ld: fs/pstore/platform.o: in function `pstore_dump': platform.c:(.text+0x3f9): undefined reference to `crypto_comp_compress' ld: fs/pstore/platform.o: in function `pstore_

Re: [PATCH v2 2/7] PCI: Set "untrusted" flag for truly external devices only

2020-07-06 Thread Rajat Jain
Hello Bjorn, On Mon, Jul 6, 2020 at 4:30 PM Bjorn Helgaas wrote: > > On Mon, Jul 06, 2020 at 03:31:47PM -0700, Rajat Jain wrote: > > On Mon, Jul 6, 2020 at 9:38 AM Bjorn Helgaas wrote: > > > On Mon, Jun 29, 2020 at 09:49:38PM -0700, Rajat Jain wrote: > > > > > -static void pci_acpi_set_untrusted

Re: [PATCH 00/22] add support for Clang LTO

2020-07-06 Thread Paul E. McKenney
On Mon, Jul 06, 2020 at 09:40:12PM +0200, Peter Zijlstra wrote: > On Mon, Jul 06, 2020 at 11:39:33AM -0700, Paul E. McKenney wrote: > > On Mon, Jul 06, 2020 at 08:29:26PM +0200, Peter Zijlstra wrote: > > > On Mon, Jul 06, 2020 at 09:26:33AM -0700, Paul E. McKenney wrote: > > > > If they do not con

Re: [mm] 4e2c82a409: ltp.overcommit_memory01.fail

2020-07-06 Thread Andrew Morton
On Mon, 6 Jul 2020 06:34:34 -0700 Andi Kleen wrote: > > ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos); > > - if (ret == 0 && write) > > + if (ret == 0 && write) { > > + if (sysctl_overcommit_memory == OVERCOMMIT_NEVER) > > + schedule_on_each_cpu(

Re: [PATCH 3/3] kcsan: Add atomic builtin test case

2020-07-06 Thread Paul E. McKenney
On Fri, Jul 03, 2020 at 03:40:31PM +0200, Marco Elver wrote: > Adds test case to kcsan-test module, to test atomic builtin > instrumentation works. > > Signed-off-by: Marco Elver Applied all three, thank you!!! Thanx, Paul > --- > kernel

Re: [PATCH v2 8/8] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api

2020-07-06 Thread Chun-Kuang Hu
Hi, Dennis: Dennis YC Hsieh 於 2020年7月6日 週一 下午3:20寫道: > > Add clear parameter to let client decide if > event should be clear to 0 after GCE receive it. > > Fixes: 2f965be7f9008 ("drm/mediatek: apply CMDQ control flow") I think this patch include two things, one is bug fix, another is changing in

Re: [PATCH 0/9] Add PCIe support for IPQ8074

2020-07-06 Thread Bjorn Helgaas
On Sun, Jul 05, 2020 at 02:47:51PM +0530, Sivaprakash Murugesan wrote: > IPQ8074 has two PCIe ports both are based on synopsis designware PCIe > controller. while it was assumed that PCIe support for IPQ8074 was already > available. PCIe was not functional until now. > > This patch series adds sup

[PATCH v2] Input: elan_i2c - only increment wakeup count on touch

2020-07-06 Thread Derek Basehore
This moves the wakeup increment for elan devices to the touch report. This prevents the drivers from incorrectly reporting a wakeup when the resume callback resets then device, which causes an interrupt to occur. Signed-off-by: Derek Basehore --- drivers/input/mouse/elan_i2c_core.c | 9 +

Re: [PATCH v3 2/7] iommu/vt-d: Remove global page support in devTLB flush

2020-07-06 Thread Jacob Pan
On Thu, 2 Jul 2020 09:16:22 +0200 Auger Eric wrote: > Hi Jacob, > > On 7/1/20 5:33 PM, Jacob Pan wrote: > > Global pages support is removed from VT-d spec 3.0 for dev TLB > > invalidation. This patch is to remove the bits for vSVA. Similar > > change already made for the native SVA. See the link

Re: [PATCH] i2c: jz4780: remove redundant assignment to variable i

2020-07-06 Thread Paul Cercueil
Hi, Le sam. 4 juil. 2020 à 8:32, Wolfram Sang a écrit : On Wed, Jun 10, 2020 at 01:59:01PM +0100, Colin King wrote: From: Colin Ian King The variable i 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

Re: [PATCH v9 2/2] tpm: Add support for event log pointer found in TPM2 ACPI table

2020-07-06 Thread Stefan Berger
On 7/6/20 7:09 PM, Jarkko Sakkinen wrote: On Mon, Jul 06, 2020 at 02:19:53PM -0400, Stefan Berger wrote: From: Stefan Berger In case a TPM2 is attached, search for a TPM2 ACPI table when trying to get the event log from ACPI. If one is found, use it to get the start and length of the log area.

Re: weird loadavg on idle machine post 5.7

2020-07-06 Thread Valentin Schneider
On 06/07/20 15:59, Peter Zijlstra wrote: > OK, lots of cursing later, I now have the below... > > The TL;DR is that while schedule() doesn't change p->state once it > starts, it does read it quite a bit, and ttwu() will actually change it > to TASK_WAKING. So if ttwu() changes it to WAKING before

Re: [PATCH v9 2/2] tpm: Add support for event log pointer found in TPM2 ACPI table

2020-07-06 Thread Jerry Snitselaar
Jarkko Sakkinen @ 2020-07-06 16:09 MST: > On Mon, Jul 06, 2020 at 02:19:53PM -0400, Stefan Berger wrote: >> From: Stefan Berger >> >> In case a TPM2 is attached, search for a TPM2 ACPI table when trying >> to get the event log from ACPI. If one is found, use it to get the >> start and length o

[RESEND,PATCH v9 0/2] tpm2: Make TPM2 logs accessible for non-UEFI firmware

2020-07-06 Thread Stefan Berger
From: Stefan Berger This series of patches adds an optional extensions for the TPM2 ACPI table with additional fields found in the TPM2 TCG ACPI specification (reference is in the patch) that allow access to the log's address and its size. We then modify the code that so far only enables access t

Re: [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Tibor Raschko
> The suggestions you made will help us adapt inclusive terminology > for the current times, and also help us move toward terms that are > intuitive and easier to understand keeping our global developer > community in mind. > Allowlist/denylist terms are intuitive and action based which have a > g

[RESEND,PATCH v9 1/2] acpi: Extend TPM2 ACPI table with missing log fields

2020-07-06 Thread Stefan Berger
From: Stefan Berger Recent extensions of the TPM2 ACPI table added 3 more fields including 12 bytes of start method specific parameters and Log Area Minimum Length (u32) and Log Area Start Address (u64). So, we define a new structure acpi_tpm2_phy that holds these optional new fields. The new fie

[RESEND,PATCH v9 2/2] tpm: Add support for event log pointer found in TPM2 ACPI table

2020-07-06 Thread Stefan Berger
From: Stefan Berger In case a TPM2 is attached, search for a TPM2 ACPI table when trying to get the event log from ACPI. If one is found, use it to get the start and length of the log area. This allows non-UEFI systems, such as SeaBIOS, to pass an event log when using a TPM2. Signed-off-by: Stef

BUG: soft lockup in sys_clock_settime

2020-07-06 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7cc2a8ea Merge tag 'block-5.8-2020-07-01' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16e4b19710 kernel config: https://syzkaller.appspot.com/x/.config?x=7be693511b29b338 das

[PATCH v4 4/7] iommu/vt-d: Handle non-page aligned address

2020-07-06 Thread Jacob Pan
From: Liu Yi L Address information for device TLB invalidation comes from userspace when device is directly assigned to a guest with vIOMMU support. VT-d requires page aligned address. This patch checks and enforce address to be page aligned, otherwise reserved bits can be set in the invalidation

[PATCH v4 3/7] iommu/vt-d: Fix PASID devTLB invalidation

2020-07-06 Thread Jacob Pan
DevTLB flush can be used for both DMA request with and without PASIDs. The former uses PASID#0 (RID2PASID), latter uses non-zero PASID for SVA usage. This patch adds a check for PASID value such that devTLB flush with PASID is used for SVA case. This is more efficient in that multiple PASIDs can b

[PATCH v4 5/7] iommu/vt-d: Fix devTLB flush for vSVA

2020-07-06 Thread Jacob Pan
From: Liu Yi L For guest SVA usage, in order to optimize for less VMEXIT, guest request of IOTLB flush also includes device TLB. On the host side, IOMMU driver performs IOTLB and implicit devTLB invalidation. When PASID-selective granularity is requested by the guest we need to derive the equiva

[PATCH v4 7/7] iommu/vt-d: Disable multiple GPASID-dev bind

2020-07-06 Thread Jacob Pan
For the unlikely use case where multiple aux domains from the same pdev are attached to a single guest and then bound to a single process (thus same PASID) within that guest, we cannot easily support this case by refcounting the number of users. As there is only one SL page table per PASID while we

[PATCH v4 6/7] iommu/vt-d: Warn on out-of-range invalidation address

2020-07-06 Thread Jacob Pan
For guest requested IOTLB invalidation, address and mask are provided as part of the invalidation data. VT-d HW silently ignores any address bits below the mask. SW shall also allow such case but give warning if address does not align with the mask. This patch relax the fault handling from error to

[PATCH v4 1/7] iommu/vt-d: Enforce PASID devTLB field mask

2020-07-06 Thread Jacob Pan
From: Liu Yi L Set proper masks to avoid invalid input spillover to reserved bits. Acked-by: Lu Baolu Reviewed-by: Eric Auger Signed-off-by: Liu Yi L Signed-off-by: Jacob Pan --- include/linux/intel-iommu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linu

[PATCH v4 0/7] iommu/vt-d: Misc tweaks and fixes for vSVA

2020-07-06 Thread Jacob Pan
Hi Baolu and all, This is a series to address some of the issues we found in vSVA support. Most of the patches deal with exception handling, we also removed some bits that are not currently supported. Many thanks to Kevin Tian's review. Jacob & Yi Changelog: v4 Address reviews from Eric A

[PATCH v4 2/7] iommu/vt-d: Remove global page support in devTLB flush

2020-07-06 Thread Jacob Pan
Global pages support is removed from VT-d spec 3.0 for dev TLB invalidation. This patch is to remove the bits for vSVA. Similar change already made for the native SVA. See the link below. Link: https://lkml.org/lkml/2019/8/26/651 Acked-by: Lu Baolu Reviewed-by: Eric Auger Signed-off-by: Jacob Pa

[PATCH V3] mm/vmstat: Add events for THP migration without split

2020-07-06 Thread Anshuman Khandual
Add following new vmstat events which will help in validating THP migration without split. Statistics reported through these new VM events will help in performance debugging. 1. THP_MIGRATION_SUCCESS 2. THP_MIGRATION_FAILURE 3. THP_MIGRATION_SPLIT In addition, these new events also update normal

Re: [PATCH] powerpc/spufs: add CONFIG_COREDUMP dependency

2020-07-06 Thread Jeremy Kerr
Hi Arnd, > The kernel test robot pointed out a slightly different error message > after recent commit 5456ffdee666 ("powerpc/spufs: simplify spufs core > dumping") to spufs for a configuration that never worked: > >powerpc64-linux-ld: arch/powerpc/platforms/cell/spufs/file.o: in > function `.

Re: [PATCH v2 00/14] Add regulator devfreq support to Panfrost

2020-07-06 Thread Ondřej Jirman
Hello Clément, On Sat, Jul 04, 2020 at 12:25:21PM +0200, Clément Péron wrote: > Hi, > > This serie cleans and adds regulator support to Panfrost devfreq. > This is mostly based on comment for the freshly introduced lima > devfreq. I tried to test the series, but I'm unsure what it's meant to be

[PATCH v3 0/2] hwmon:max6697: Allow max6581 to create tempX_offset

2020-07-06 Thread Chu Lin
Per max6581, reg 4d and reg 4e is used for temperature read offset. This patch will let the user specify the temperature read offset for max6581. This patch is tested on max6581 and only applies to max6581. Testing: echo 16250 > temp2_offset cat temp2_offset 16250 echo 17500 > temp3_offset cat te

[PATCH v3 2/2] hwmon:max6697: fixing the type issue where the comparison is always true

2020-07-06 Thread Chu Lin
- Use reverse christmas tree order convension - fix the type issue where comparision is always true - Change the line limit to 100 char instead of 80 char Reported-by: kernel test robot Signed-off-by: Chu Lin --- drivers/hwmon/max6697.c | 26 +- 1 file changed, 9 i

[PATCH v3 1/2] hwmon:max6697: Allow max6581 to create tempX_offset

2020-07-06 Thread Chu Lin
--- drivers/hwmon/max6697.c | 100 ++-- 1 file changed, 96 insertions(+), 4 deletions(-) diff --git a/drivers/hwmon/max6697.c b/drivers/hwmon/max6697.c index 64122eb38060..8c814c544116 100644 --- a/drivers/hwmon/max6697.c +++ b/drivers/hwmon/max6697.c @@ -57,6

[PATCH v7 0/2] Renovate memcpy_mcsafe with copy_mc_to_{user, kernel}

2020-07-06 Thread Dan Williams
Changes since v6 [1]: - Collected Tony's Reviewed-by. - Rebased on v5.8-rc3 to address a conflict with commit e3a9e681adb7 ("x86/entry: Fixup bad_iret vs noinstr") No other functional changes, and no other comments since v5. At this point I think I'll go ahead with pushing to -next to get it

[PATCH v7 2/2] x86/copy_mc: Introduce copy_mc_generic()

2020-07-06 Thread Dan Williams
The original copy_mc_fragile() implementation had negative performance implications since it did not use the fast-string instruction sequence to perform copies. For this reason copy_mc_to_kernel() fell back to plain memcpy() to preserve performance on platform that did not indicate the capability t

[PATCH v7 1/2] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-07-06 Thread Dan Williams
In reaction to a proposal to introduce a memcpy_mcsafe_fast() implementation Linus points out that memcpy_mcsafe() is poorly named relative to communicating the scope of the interface. Specifically what addresses are valid to pass as source, destination, and what faults / exceptions are handled. Of

[PATCH net-next v2] net: sfp: Unique GPIO interrupt names

2020-07-06 Thread Chris Healy
Dynamically generate a unique GPIO interrupt name, based on the device name and the GPIO name. For example: 103: 0 sx1503q 12 Edge sff2-los 104: 0 sx1503q 13 Edge sff2-tx-fault The sffX indicates the SFP the los and tx-fault are associated with. Signed-off-by:

linux-next: build failure after merge of the xfs tree

2020-07-06 Thread Stephen Rothwell
quot;xfs: use direct calls for dquot IO completion") # CONFIG_XFS_QUOTA is not set I have used the xfs tree from next-20200706 for today. -- Cheers, Stephen Rothwell pgpSy0exbdGkO.pgp Description: OpenPGP digital signature

Re: linux-next: Tree for Jul 6 (mm/memory_failure.c)

2020-07-06 Thread Joonsoo Kim
On Mon, Jul 06, 2020 at 09:59:06AM -0700, Randy Dunlap wrote: > On 7/6/20 12:40 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20200703: > > > > on i386: > > when CONFIG_MIGRATION is not set/enabled: > > ../mm/memory-failure.c: In function ‘new_page’: > ../mm/memory-failure.c:16

Re: [PATCH] input: elantech: remove redundant assignments to variable error

2020-07-06 Thread Dmitry Torokhov
On Wed, Jun 03, 2020 at 03:04:31PM +0100, Colin King wrote: > From: Colin Ian King > > The variable error 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

Re: [PATCH v2] Input: elan_i2c - only increment wakeup count on touch

2020-07-06 Thread Dmitry Torokhov
On Mon, Jul 06, 2020 at 04:50:46PM -0700, Derek Basehore wrote: > This moves the wakeup increment for elan devices to the touch report. > This prevents the drivers from incorrectly reporting a wakeup when the > resume callback resets then device, which causes an interrupt to > occur. > > Signed-of

Re: [PATCH net-next v2] net: sfp: Unique GPIO interrupt names

2020-07-06 Thread Andrew Lunn
> diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c > index 73c2969f11a4..193a124c26c4 100644 > --- a/drivers/net/phy/sfp.c > +++ b/drivers/net/phy/sfp.c > @@ -2239,6 +2239,7 @@ static int sfp_probe(struct platform_device *pdev) > const struct sff_data *sff; > struct i2c_adapter

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