[PATCH 07/25] coresight: stm: Allow to build coresight-stm as a module

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang - Kconfig becomes a tristate, to allow =m - add a stm_remove function, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Randy Dunlap Cc: Suzuki K Poulose Cc: Greg Kroah-Hartman Cc: Russell K

[PATCH 24/25] coresight: core: Allow the coresight core driver to be built as a module

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang Enhance coresight developer's efficiency to debug coresight drivers. - Kconfig becomes a tristate, to allow =m - append -core to source file name to allow module to be called coresight by the Makefile - modules can have only one init/exit, so we add the etm_perf register/u

[PATCH 19/25] coresight: cti: Don't disable ect device if it's not enabled

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang If associated ect device is not enabled at first place, disable routine should not be called. Add ect_enabled flag to check whether ect device is enabled. Fix the issue in below case. Ect device is not available when associated coresight device enabled and the association is

[PATCH 21/25] coresight: cti: Allow cti to be built as a module

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang Allow to build coresight-cti as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - append -core to source file name to allow module to be called coresight-cti by the Makefile - add an cti_remove function, for module unload - add a MODULE_DEVICE_T

[PATCH 20/25] coresight: cti: Increase reference count when enabling cti

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang CTI device is enabled when associated coresight device is enabled. Increase the module and device reference count for CTI device when it's enabled. This can prevent CTI device be removed or module be unloaded when CTI device is enabled by an active trace session. Signed-off-b

[PATCH 22/25] coresight: tmc-etr: Add function to register catu ops

2020-09-28 Thread Mathieu Poirier
From: Mian Yousaf Kaukab Make etr_catu_buf_ops static. Instead of directly accessing it in etr_buf_ops[], add a function to let catu driver register the ops at runtime. Break circular dependency between tmc-etr and catu drivers. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Tingwei Zhang Re

[PATCH 17/25] coresight: cti: Fix remove sysfs link error

2020-09-28 Thread Mathieu Poirier
From: Mike Leach CTI code to remove sysfs link to other devices on shutdown, incorrectly tries to remove a single ended link when these are all double ended. This implementation leaves elements in the link info structure undefined which results in a crash in recent tests for driver module unload.

[PATCH 16/25] coresight: cti: Add function to register cti associate ops

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang Add static cti_assoc_ops to coresight core driver. Let cti driver register the add_assoc and remove_assoc call back. Avoid coresight core driver to depend on cti driver. Signed-off-by: Tingwei Zhang Tested-by: Mike Leach Signed-off-by: Mathieu Poirier --- drivers/hwtracin

[PATCH 04/25] coresight: Add coresight prefix to barrier_pkt

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang Add coresight prefix to make it specific. It will be a export symbol. Signed-off-by: Mian Yousaf Kaukab Signed-off-by: Tingwei Zhang Reviewed-by: Suzuki K Poulose Signed-off-by: Mathieu Poirier --- drivers/hwtracing/coresight/coresight-etb10.c | 2 +- drivers/hwtracing

[PATCH 25/25] coresight: etm4x: Fix save and restore of TRCVMIDCCTLR1 register

2020-09-28 Thread Mathieu Poirier
From: Sai Prakash Ranjan In commit f188b5e76aae ("coresight: etm4x: Save/restore state across CPU low power states"), mistakenly TRCVMIDCCTLR1 register value was saved in trcvmidcctlr0 state variable which is used to store TRCVMIDCCTLR0 register value in etm4x_cpu_save() and then same value is wr

[PATCH 18/25] coresight: cti: Fix bug clearing sysfs links on callback

2020-09-28 Thread Mathieu Poirier
From: Mike Leach During module unload, a coresight driver module will call back into the CTI driver to remove any links between the two devices. The current code has 2 issues:- 1) in the CTI driver the matching code is matching to the wrong device so misses all the links. 2) The callback is call

[PATCH 08/25] coresight: etm: perf: Fix warning caused by etm_setup_aux failure

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang When coresight_build_path() fails on all the cpus, etm_setup_aux calls etm_free_aux() to free allocated event_data. WARN_ON(cpumask_empty(mask) will be triggered since cpu mask is empty. Check event_data->snk_config is not NULL first to avoid this warning. Fixes: f5200aa9831f

[PATCH 06/25] coresight: Add try_get_module() in coresight_grab_device()

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang When coresight device is in an active session, driver module of that device should not be removed. Use try_get_module() in coresight_grab_device() to prevent module to be unloaded. Use get_device()/put_device() to protect device data in the middle of active session. Suggested

[PATCH 15/25] coresight: replicator: Allow replicator driver to be built as module

2020-09-28 Thread Mathieu Poirier
From: Kim Phillips Allow to build coresight-replicator as modules, for ease of development. - Kconfig becomes a tristate, to allow =m - combine static and dynamic replicator init into single module_init/exit call - add replicator_remove functions, for module unload - add a MODULE_DEVICE_TABLE

[PATCH 13/25] coresight: tmc: Allow tmc to be built as a module

2020-09-28 Thread Mathieu Poirier
From: Kim Phillips Allow to build coresight-tmc as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - append -core to source file name to allow module to be called coresight-tmc by the Makefile - add an tmc_remove function, for module unload - add a MODULE_DEVICE_TA

[PATCH 12/25] coresight: tpiu: Allow tpiu to be built as a module

2020-09-28 Thread Mathieu Poirier
From: Kim Phillips Allow to build coresight-tpiu as a module, for ease of development. - Kconfig becomes a tristate, to allow =m - add a tpiu_remove function, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Yan Cc: Alexander Shishkin Cc: Rand

[PATCH 23/25] coresight: catu: Allow catu drivers to be built as modules

2020-09-28 Thread Mathieu Poirier
From: Tingwei Zhang Allow to build coresight-catu as modules, for ease of development. - Kconfig becomes a tristate, to allow =m - add catu_remove functions, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Signed-off-by: Tingwei Zhang Reviewed-by: Mike Leach Reviewed-by:

[PATCH 14/25] coresight: funnel: Allow funnel driver to be built as module

2020-09-28 Thread Mathieu Poirier
From: Kim Phillips Allow to build coresight-funnel as module, for ease of development. - combine static and dynamic funnel init into single module_init/exit call - add funnel_remove functions, for module unload - add a MODULE_DEVICE_TABLE for autoloading on boot Cc: Mathieu Poirier Cc: Leo Y

Re: [PATCH v2 3/3] hwmon: (lm75) Add regulator support

2020-09-28 Thread Guenter Roeck
On Mon, Sep 28, 2020 at 05:39:23PM +0200, Alban Bedel wrote: > Add regulator support for boards where the sensor first need to be > powered up before it can be used. > > Signed-off-by: Alban Bedel > --- > v2: Rely on dummy regulators instead of explicitly handling missing > regulator > --- >

Re: [PATCH v38 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-09-28 Thread Yu, Yu-cheng
On 9/28/2020 8:54 AM, H.J. Lu wrote: On Mon, Sep 28, 2020 at 8:43 AM Yu, Yu-cheng wrote: On 9/25/2020 11:23 AM, Andrew Cooper wrote: On 15/09/2020 12:28, Jarkko Sakkinen wrote: diff --git a/arch/x86/entry/vdso/vsgx_enter_enclave.S b/arch/x86/entry/vdso/vsgx_enter_enclave.S new file mode 100

Re: [PATCH v2 1/1] mmc: host: meson-gx-mmc: fix possible deadlock condition for preempt_rt

2020-09-28 Thread Sebastian Andrzej Siewior
On 2020-09-26 22:54:18 [-0400], Brad Harper wrote: > --- What happens if you boot this on a non-RT kernel with the `threadirqs' command line option? Sebastian

Re: [PATCH v3] Bluetooth: Check for encryption key size on connect

2020-09-28 Thread Marcel Holtmann
Hi Archie, > When receiving connection, we only check whether the link has been > encrypted, but not the encryption key size of the link. > > This patch adds check for encryption key size, and reject L2CAP > connection which size is below the specified threshold (default 7) >>

Re: [PATCH 2/5 V2] PCI: pciehp: check and wait port status out of DPC before handling DLLSC and PDC

2020-09-28 Thread Sinan Kaya
On 9/28/2020 7:10 AM, Sinan Kaya wrote: > On 9/27/2020 10:01 PM, Zhao, Haifeng wrote: >> Sinan, >>I explained the reason why locks don't protect this case in the patch >> description part. >> Write side and read side hold different semaphore and mutex. >> > I have been thinking about it some

[PATCH 0/3] Venus dynamic resolution change fixes

2020-09-28 Thread Stanimir Varbanov
Hi all, Those three patches are needed to fix setting of LAST buffer flag during dynamic-resolution-change state. The first patch in this series fix the LAST buffer flag setting, the second unify the driver behavior no matter the event from firmware is sufficient or insufficient resources and the

Re: [PATCH 2/5 V2] PCI: pciehp: check and wait port status out of DPC before handling DLLSC and PDC

2020-09-28 Thread Kuppuswamy, Sathyanarayanan
On 9/28/20 9:43 AM, Sinan Kaya wrote: On 9/28/2020 7:10 AM, Sinan Kaya wrote: On 9/27/2020 10:01 PM, Zhao, Haifeng wrote: Sinan, I explained the reason why locks don't protect this case in the patch description part. Write side and read side hold different semaphore and mutex. I have b

[PATCH 2/3] venus: vdec: Make decoder return LAST flag for sufficient event

2020-09-28 Thread Stanimir Varbanov
This makes the decoder to behaives equally for sufficient and insufficient events. After this change the LAST buffer flag will be set when the new resolution (in dynamic-resolution-change state) is smaller then the old bitstream resolution. Signed-off-by: Stanimir Varbanov --- drivers/media/plat

[PATCH 1/3] venus: vdec: Fix non reliable setting of LAST flag

2020-09-28 Thread Stanimir Varbanov
In real use of dynamic-resolution-change it is observed that the LAST buffer flag (which marks the last decoded buffer with the resolution before the resolution-change event) is not reliably set. Fix this by set the LAST buffer flag on next queued capture buffer after the resolution-change event.

Re: remove set_fs for riscv v2

2020-09-28 Thread Palmer Dabbelt
On Mon, 28 Sep 2020 05:49:28 PDT (-0700), Christoph Hellwig wrote: On Sat, Sep 26, 2020 at 10:50:52AM -0700, Palmer Dabbelt wrote: On Mon, 21 Sep 2020 21:37:52 PDT (-0700), Christoph Hellwig wrote: Given tht we've not made much progress with the common branch, are you fine just picking this up

[PATCH 3/3] venus: helpers: Lock outside of buffer queue helper

2020-09-28 Thread Stanimir Varbanov
After adding more logic in vdec buf_queue vb2 op it is not practical to have two lock/unlock for one decoder buf_queue. So move the instance lock in encoder and decoder vb2 buf_queue operations. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/helpers.c | 11 +++ dr

Re: linux-next: build failure after merge of the mhi tree

2020-09-28 Thread Kalle Valo
Manivannan Sadhasivam writes: > On Mon, Sep 28, 2020 at 12:34:40PM +0300, Kalle Valo wrote: >> Manivannan Sadhasivam writes: >> >> > On Mon, Sep 28, 2020 at 06:42:30PM +1000, Stephen Rothwell wrote: >> >> Hi all, >> >> >> >> After merging the mhi tree, today's linux-next build (x86_64 allmodco

[PATCH 01/22] mpool: add utility routines and ioctl definitions

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds structures used by mpool ioctls and utility routines for logging, UUID management etc. The mpool ioctls can be categorized as follows: 1. IOCTLs issued to the mpool control device (/dev/mpoolctl) - Mpool life cycle management (MPIOC_MP_*) 2. IOCTLs issued to

[PATCH 04/22] mpool: add pool drive component which handles mpool IO using the block layer API

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed The pool drive (pd) component interfaces with the block layer to read, write, flush, and discard mpool objects. The underlying block device(s) are opened during mpool activation and remains open until deactivated. Read/write IO to an mpool device is chunked by the PD laye

[PATCH 12/22] mpool: add metadata container or mlog-pair framework

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed Metadata containers are used for storing and maintaining metadata. MDC APIs are implemented as helper functions built on a pair of mlogs per MDC. It embodies the concept of compaction to deal with one of the mlog pairs filling, what it means to compact is use-case dependen

[PATCH 05/22] mpool: add space map component which manages free space on mpool devices

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed The smap layer implements a free space map for each media class volume in an active mpool. Free space maps are maintained in memory only. When an mpool is activated, the free space map is reconstructed from the object metadata read from media. This approach has the followi

[PATCH 07/22] mpool: add superblock management routines

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed Provides utilities to initialize, read, update, and erase mpool superblocks. Mpool stores two copies of superblocks, one at offset 0 and the other at offset 8K in zone 0 of each media class volume. SB0 is the authoritative copy and SB1 is used for recovery in the event of

[PATCH 02/22] mpool: add in-memory struct definitions

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed Add headers containing the basic in-memory structures used by mpool. - mclass.h: media classes - mlog.h: mlog objects - mp.h, mpcore.h: mpool objects - params.h: mpool parameters - pd.h: pool drive interface - pmd.h, pmd_obj.h: Metadata manager - sb.h: superblock interface

[PATCH 16/22] mpool: add mpool control plane utility routines

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds the mpool control plane infrastructure to manage mpools. There is a unit object instance for each device object created by the mpool driver. A minor number is reserved for each unit object. The mpool control device (/dev/mpoolctl) gets a minor number of 0. An mp

[PATCH 10/22] mpool: add mlog IO utility routines

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed Adds buffer management routines used by the mlog IO path. Mlog objects are containers for record logging. An mlog is structured as a series of consecutive log blocks where each log block is exactly one sector in size. Records of arbitrary size can be appended to an mlog un

[PATCH 09/22] mpool: add mblock lifecycle management and IO routines

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed Implements the mblock lifecycle management functions: allocate, commit, abort, read, write, destroy etc. Mblocks are containers comprising a linear sequence of bytes that can be written exactly once, are immutable after writing, and can be read in whole or in part as neede

[PATCH 00/22] add Object Storage Media Pool (mpool)

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This patch series introduces the mpool object storage media pool driver. Mpool implements a simple transactional object store on top of block storage devices. Mpool was developed for the Heterogeneous-Memory Storage Engine (HSE) project, which is a high-performance key-val

[PATCH 17/22] mpool: add mpool lifecycle management ioctls

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds the open, release and mpool management ioctls for the mpool driver. The create, destroy, activate, deactivate and rename ioctls are issued to the mpool control device (/dev/mpoolctl), and the rest are issued to the mpool device (/dev/mpool/). The mpool control d

[PATCH 22/22] mpool: add Kconfig and Makefile

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds the Kconfig and Makefile for mpool. Co-developed-by: Greg Becker Signed-off-by: Greg Becker Co-developed-by: Pierre Labat Signed-off-by: Pierre Labat Co-developed-by: John Groves Signed-off-by: John Groves Signed-off-by: Nabeel M Mohamed --- drivers/Kconf

[PATCH 20/22] mpool: add support to proactively evict cached mblock data from the page-cache

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds a mechanism to track object-level usage metrics and use that metrics to proactively evict mblock data from the page cache. The proactive reaping is employed just before the onset of memory pressure, which greatly improves throughput and reduces tail latencies for

[PATCH 08/22] mpool: add pool metadata routines to manage object lifecycle and IO

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed Metadata manager interface to allocate, commit, abort, erase, read, write, and destroy objects. Metadata containers (MDC-1 through MDC-255) store the metadata for accessing client allocated objects (mblocks and mlogs). An object identifier for an mblock or mlog encodes the

[PATCH 06/22] mpool: add on-media pack, unpack and upgrade routines

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds utilities to translate structures to and from their on-media format. All mpool metadata is stored on media in little-endian format. The metadata records are both versioned and contains a record type. This allows the record format to change over time, new record t

[PATCH 21/22] mpool: add documentation

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds locking hierarchy documentation for mpool. Co-developed-by: Greg Becker Signed-off-by: Greg Becker Co-developed-by: Pierre Labat Signed-off-by: Pierre Labat Co-developed-by: John Groves Signed-off-by: John Groves Signed-off-by: Nabeel M Mohamed --- driver

Re: [PATCH v38 10/24] mm: Add vm_ops->mprotect()

2020-09-28 Thread Dave Hansen
On 9/28/20 9:19 AM, Jarkko Sakkinen wrote: > On Mon, Sep 28, 2020 at 07:04:38AM -0700, Dave Hansen wrote: >> EMODPE is virtually irrelevant for this whole thing. The x86 PTE >> permissions still specify the most restrictive permissions, which is >> what matters the most. >> >> We care about the _w

[PATCH 14/22] mpool: add pool metadata routines to create persistent mpools

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed Mpool metadata is stored in metadata containers (MDC). An mpool can have a maximum of 256 MDCs, MDC-0 through MDC-255. The following metadata manager functionality is added here for object persistence: - Initialize and validate MDC0 - Allocate and initialize MDC 1-N. An mp

[PATCH 11/22] mpool: add mlog lifecycle management and IO routines

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This implements the mlog lifecycle management functions: allocate, commit, abort, destroy, append, read etc. Mlog objects are containers for record logging. Mlogs can be appended with arbitrary sized records and once full, an mlog must be erased before additional records c

Re: [PATCH] man/statx: Add STATX_ATTR_DAX

2020-09-28 Thread Ira Weiny
On Mon, May 04, 2020 at 05:20:16PM -0700, 'Ira Weiny' wrote: > From: Ira Weiny > > Linux 5.8 is slated to have STATX_ATTR_DAX support. > > https://lore.kernel.org/lkml/20200428002142.404144-4-ira.we...@intel.com/ > https://lore.kernel.org/lkml/20200504161352.GA13783@magnolia/ > > Add the text t

Re: [PATCH 03/18] [ARM] pata_icside: use semicolons rather than commas to separate statements

2020-09-28 Thread Joe Perches
On Sun, 2020-09-27 at 21:12 +0200, Julia Lawall wrote: > Replace commas with semicolons. What is done is essentially described by > the following Coccinelle semantic patch (http://coccinelle.lip6.fr/): Hi Julia. How did you decide on this patch subject header line? It's certainly reasonable, bu

[PATCH 19/22] mpool: add support to mmap arbitrary collection of mblocks

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This implements the mmap file operation for the mpool driver. Mblock and mlog writes avoid the Linux page cache. Mblocks are written, committed, and made immutable before they can be read either directly (avoiding the page cache) or memory-mapped. Mlogs are always read and

[PATCH 15/22] mpool: add mpool lifecycle management routines

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds mpool lifecycle management functions: create, activate, deactivate, destroy, rename, add a new media class, fetch properties etc. An mpool is created with a mandatory capacity media class volume. A pool drive (PD) instance is initialized for each media class volu

[PATCH 13/22] mpool: add utility routines for mpool lifecycle management

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds utility routines to: - Create and initialize a media class with an mpool volume - Initialize and validate superblocks on all media class volumes - Open and initialize all media class volumes - Allocate metadata container 0 (MDC0) and update the superblock on

[PATCH 03/22] mpool: add on-media struct definitions

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds headers containing the following on-media formats: - Mpool superblock - Object management records: create, update, delete, and erase - Mpool configuration record - Media class config and spare record - OID checkpoint and version record - Mlog page header and frami

Re: [PATCH v8 0/6] Support running driver's probe for a device powered off

2020-09-28 Thread Tomasz Figa
On Mon, Sep 28, 2020 at 4:18 PM Rafael J. Wysocki wrote: > > On Sun, Sep 27, 2020 at 9:44 PM Tomasz Figa wrote: > > > > On Sun, Sep 27, 2020 at 9:39 PM Wolfram Sang wrote: > > > > > > > > > > I think we might be overly complicating things. IMHO the series as is > > > > with the "i2c_" prefix rem

DT warnings in Cros EC

2020-09-28 Thread Rob Herring
There's a bunch of warnings in the Cros EC schemas. They stem from child node names needing to be defined. I started fixing, but it's kind of a mess as there's a mixture of no unit addresses and different unit address spaces (regulators and codec). And is type-C and extcon mutually exclusive? I gav

Re: [PATCH v38 21/24] x86/vdso: Implement a vDSO for Intel SGX enclave call

2020-09-28 Thread Andrew Cooper
On 28/09/2020 01:58, Jarkko Sakkinen wrote: > On Fri, Sep 25, 2020 at 07:23:59PM +0100, Andrew Cooper wrote: >> On 15/09/2020 12:28, Jarkko Sakkinen wrote: >>> diff --git a/arch/x86/entry/vdso/vsgx_enter_enclave.S >>> b/arch/x86/entry/vdso/vsgx_enter_enclave.S >>> new file mode 100644 >>> index 00

RE: [PATCH] arm64: dts: fix endianness of rcpm

2020-09-28 Thread Leo Li
> -Original Message- > From: Ran Wang > Sent: Monday, September 28, 2020 4:05 AM > To: Shawn Guo ; Leo Li > Cc: moderated list:ARM/FREESCALE LAYERSCAPE ARM ARCHITECTURE arm-ker...@lists.infradead.org>; open list:OPEN FIRMWARE AND > FLATTENED DEVICE TREE BINDINGS ; open list > ; Biwen

Re: 5.9-rc7: BUG: kernel NULL pointer reference

2020-09-28 Thread Harald Arnesen
Linus Torvalds [28.09.2020 18:22]: > On Mon, Sep 28, 2020 at 7:07 AM Harald Arnesen wrote: >> >> I will try bisecting if no-one has a simple explanation. > > There's a simple explanation, no need to bisect. > > I'll push out the fix asap, Everything is OK now. Thanks! -- Hilsen Harald

[PATCH v2] rtw88: pci: Power cycle device during shutdown

2020-09-28 Thread Kai-Heng Feng
There are reports that 8822CE fails to work rtw88 with "failed to read DBI register" error. Also I have a system with 8723DE which freezes the whole system when the rtw88 is probing the device. According to [1], platform firmware may not properly power manage the device during shutdown. I did some

Re: [PATCH v13 8/8] x86/vsyscall/64: Fixup Shadow Stack and Indirect Branch Tracking for vsyscall emulation

2020-09-28 Thread Yu-cheng Yu
On Fri, 2020-09-25 at 09:51 -0700, Andy Lutomirski wrote: > > On Sep 25, 2020, at 9:48 AM, Yu, Yu-cheng wrote: > > > > On 9/25/2020 9:31 AM, Andy Lutomirski wrote: > > > > On Fri, Sep 25, 2020 at 7:58 AM Yu-cheng Yu > > > > wrote: > > > > > > > > [...] > > > > > > @@ -286,6 +289,37 @@ bool

[PATCH 18/22] mpool: add object lifecycle management ioctls

2020-09-28 Thread nmeeramohide
From: Nabeel M Mohamed This adds the mblock and mlog management ioctls: alloc, commit, abort, destroy, read, write, fetch properties etc. The mblock and mlog management ioctl handlers are thin wrappers around the core mblock/mlog lifecycle management and IO routines introduced in an earlier patc

Re: linux-next: build failure after merge of the mhi tree

2020-09-28 Thread Manivannan Sadhasivam
On Mon, Sep 28, 2020 at 07:45:37PM +0300, Kalle Valo wrote: > Manivannan Sadhasivam writes: > > > On Mon, Sep 28, 2020 at 12:34:40PM +0300, Kalle Valo wrote: > >> Manivannan Sadhasivam writes: > >> > >> > On Mon, Sep 28, 2020 at 06:42:30PM +1000, Stephen Rothwell wrote: > >> >> Hi all, > >> >>

Re: [PATCH] PCI: kirin: Return -EPROBE_DEFER in case the gpio isn't ready

2020-09-28 Thread Lorenzo Pieralisi
On Sat, Sep 26, 2020 at 09:49:56AM +0200, Bean Huo wrote: > seems the Hisilicon PCI driver maintainers are absent, however, we are > still using their old platform based on Kirin. > > hi, Lorenzo > is it possible to take this patch without Hisilicon maintainter's ACK? I applied it to pci/kirin, t

Re: [PATCH 03/18] [ARM] pata_icside: use semicolons rather than commas to separate statements

2020-09-28 Thread Julia Lawall
On Mon, 28 Sep 2020, Joe Perches wrote: > On Sun, 2020-09-27 at 21:12 +0200, Julia Lawall wrote: > > Replace commas with semicolons. What is done is essentially described by > > the following Coccinelle semantic patch (http://coccinelle.lip6.fr/): > > Hi Julia. > > How did you decide on this p

Re: linux-next: Tree for Sep 28 (drivers/misc/hisi_hikey_usb.c )

2020-09-28 Thread Randy Dunlap
On 9/28/20 4:55 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20200925: > on i386: ld: drivers/misc/hisi_hikey_usb.o: in function `hisi_hikey_usb_remove': hisi_hikey_usb.c:(.text+0x14): undefined reference to `usb_role_switch_unregister' ld: hisi_hikey_usb.c:(.text+0x20): undefined r

Re: [Regression] "tpm: Require that all digests are present in TCG_PCR_EVENT2 structures" causes null pointer dereference

2020-09-28 Thread Jarkko Sakkinen
On Mon, Sep 28, 2020 at 06:15:00PM +0200, Ard Biesheuvel wrote: > > > > It is possible but initially feels a bit weird: > > > > > > > > - sizeof(TCG_SPECID_SIG)) || count > > > > > efispecid->num_algs) { > > > > + sizeof(TCG_SPECID_SIG)) || > > > > + !ef

[PATCH v4 1/2] dt-bindings: usb: Add binding for discrete onboard USB hubs

2020-09-28 Thread Matthias Kaehlcke
Discrete onboard USB hubs (an example for such a hub is the Realtek RTS5411) need to be powered and may require initialization of other resources (like GPIOs or clocks) to work properly. This adds a device tree binding for these hubs. Signed-off-by: Matthias Kaehlcke --- (no changes since v3) C

Re: [PATCH 1/2] drm/i915/jsl: Split EHL/JSL platform info and PCI ids

2020-09-28 Thread Jani Nikula
On Mon, 28 Sep 2020, "Surendrakumar Upadhyay, TejaskumarX" wrote: > > From: Jani Nikula > Sent: Monday, September 28, 2020 7:07 PM > To: Surendrakumar Upadhyay, TejaskumarX > ; Vivi, Rodrigo > ; airl...@linux.ie ; > dan...@ffwll.ch ; intel-...@lists.freedeskto

Re: [PATCH 1/5] mm: Introduce mm_struct.has_pinned

2020-09-28 Thread Peter Xu
On Sun, Sep 27, 2020 at 11:16:34AM -0700, Linus Torvalds wrote: > - split up the "copy page" into its own function kind of like I had > done for my minimal patch I didn't do that majorly because of the wrprotect() (of the fast-gup race) that can potentially be kept if it's a normal cow. Maybe we

Re: [v3 PATCH] drm/mediatek: dsi: fix scrolling of panel with small hfp or hbp

2020-09-28 Thread Bilal Wasim
Hi Jitao, On Thu, 17 Sep 2020 11:30:09 +0800 Jitao Shi wrote: > Replace horizontal_backporch_byte with vm->hback_porch * bpp to aovid > flowing judgement negative number. > > if ((vm->hfront_porch * dsi_tmp_buf_bpp + horizontal_backporch_byte) > > data_phy_cycles * dsi->lanes + delta) >

[PATCH v4 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-28 Thread Matthias Kaehlcke
The main issue this driver addresses is that a USB hub needs to be powered before it can be discovered. For discrete onboard hubs (an example for such a hub is the Realtek RTS5411) this is often solved by supplying the hub with an 'always-on' regulator, which is kind of a hack. Some onboard hubs ma

Re: [PATCH v3 1/1] PCI/ERR: Fix reset logic in pcie_do_recovery() call

2020-09-28 Thread Kuppuswamy, Sathyanarayanan
On 9/28/20 4:17 AM, Sinan Kaya wrote: On 9/27/2020 10:43 PM, Kuppuswamy, Sathyanarayanan wrote: FATAL + no-hotplug - In this case, link will still be reseted. But currently driver state is not properly restored. So I attempted to restore it using pci_reset_bus(). status = reset_lin

Re: [Intel-gfx] [PATCH 2/2] drm/i915/edp/jsl: Update vswing table for HBR and HBR2

2020-09-28 Thread Jani Nikula
On Mon, 28 Sep 2020, "Surendrakumar Upadhyay, TejaskumarX" wrote: > This is a good example of a potential trap that having > IS_ELKHARTLAKE() cover both ELK and JSP creates. An unsuspecting coder > might change the if ladder to have IS_ELKHARTLAKE() first, and the > subsequent IS_JASPERLAKE(

Re: [Intel-gfx] [PATCH 2/2] drm/i915/edp/jsl: Update vswing table for HBR and HBR2

2020-09-28 Thread Jani Nikula
On Mon, 28 Sep 2020, Ville Syrjälä wrote: > On Mon, Sep 28, 2020 at 07:15:43AM -0700, James Ausmus wrote: >> On Mon, Sep 28, 2020 at 04:43:11PM +0300, Jani Nikula wrote: >> > On Mon, 28 Sep 2020, Tejas Upadhyay >> > wrote: >> > > JSL has update in vswing table for eDP >> > >> > I've thought the

Re: [f2fs-dev] [PATCH] f2fs: fix to check segment boundary during SIT page readahead

2020-09-28 Thread Eric Biggers
On Mon, Sep 28, 2020 at 05:12:54PM +0800, Chao Yu wrote: > As syzbot reported: Please include the Reported-by line that the syzbot report said to include. - Eric

Re: [PATCH 1/5] mm: Introduce mm_struct.has_pinned

2020-09-28 Thread Peter Xu
On Mon, Sep 28, 2020 at 09:17:09AM -0700, Linus Torvalds wrote: > On Mon, Sep 28, 2020 at 5:49 AM Jason Gunthorpe wrote: > > > > Not seeing an obvious option besides adding a smp_mb() before > > page_maybe_dma_pinned() as Peter once suggested. > > That is going to be prohibitively expensive - nee

Re: [PATCH 05/22] kvm: mmu: Add functions to handle changed TDP SPTEs

2020-09-28 Thread Paolo Bonzini
On 26/09/20 02:39, Paolo Bonzini wrote: >> +handle_changed_spte(kvm, as_id, >> +gfn + (i * KVM_PAGES_PER_HPAGE(level - 1)), >> +old_child_spte, 0, level - 1); >> +} > Is it worth returning a "flush" value to the

Re: [f2fs-dev] [PATCH] f2fs: fix to do sanity check on segment/section count

2020-09-28 Thread Eric Biggers
On Mon, Sep 28, 2020 at 05:42:39PM +0800, Chao Yu wrote: > As syzbot reported: Please include the Reported-by line that the syzbot report said to include. - Eric

Re: [patch 11/35] net: ionic: Replace in_interrupt() usage.

2020-09-28 Thread Shannon Nelson
On 9/27/20 12:48 PM, Thomas Gleixner wrote: From: Sebastian Andrzej Siewior The in_interrupt() usage in this driver tries to figure out which context may sleep and which context may not sleep. in_interrupt() is not really suitable as it misses both preemption disabled and interrupt disabled inv

Re: [PATCH v2 1/4] dt-bindings: clock: Add support for LPASS Audio Clock Controller

2020-09-28 Thread Rob Herring
On Fri, 25 Sep 2020 11:31:12 +0100, Srinivas Kandagatla wrote: > Audio Clock controller is a block inside LPASS which controls > 2 Glitch free muxes to LPASS codec Macros. > > Signed-off-by: Srinivas Kandagatla > --- > .../bindings/clock/qcom,audiocc-sm8250.yaml | 58 +++ > ...

Re: [PATCH] nvdimm: Use kobj_to_dev() API

2020-09-28 Thread Ira Weiny
On Sat, Sep 26, 2020 at 02:54:17PM +0800, Wang Qing wrote: > Use kobj_to_dev() instead of container_of(). > > Signed-off-by: Wang Qing Reviewed-by: Ira Weiny > --- > drivers/nvdimm/namespace_devs.c | 2 +- > drivers/nvdimm/region_devs.c| 4 ++-- > 2 files changed, 3 insertions(+), 3 delet

Re: [Bug 209317] ftrace kernel self test failure on RISC-V on 5.8, regression from 5.4.0

2020-09-28 Thread Atish Patra
On Mon, 2020-09-28 at 11:13 -0400, Steven Rostedt wrote: > On Sat, 26 Sep 2020 22:02:35 + > bugzilla-dae...@bugzilla.kernel.org wrote: > > > https://bugzilla.kernel.org/show_bug.cgi?id=209317 > > > > --- Comment #4 from Colin Ian King (colin.k...@canonical.com) --- > > Issue still in 5.9-rc6

Re: [PATCH v2 2/4] dt-bindings: clock: Add support for LPASS Always ON Controller

2020-09-28 Thread Rob Herring
On Fri, 25 Sep 2020 11:31:13 +0100, Srinivas Kandagatla wrote: > Always ON Clock controller is a block inside LPASS which controls > 1 Glitch free muxes to LPASS codec Macros. > > Signed-off-by: Srinivas Kandagatla > --- > .../bindings/clock/qcom,aoncc-sm8250.yaml | 58 +++ >

Re: [PATCH 2/2] dt-bindings: interconnect: Add bindings for Qualcomm SDM660 NoC

2020-09-28 Thread Rob Herring
On Sat, 26 Sep 2020 14:51:01 +0200, khol...@gmail.com wrote: > From: AngeloGioacchino Del Regno > > Add the bindings for the Qualcomm SDM660-class NoC, valid for > SDM630, SDM636, SDM660 and SDA variants. > > Signed-off-by: AngeloGioacchino Del Regno > --- > .../bindings/interconnect/qcom,sdm6

Re: [patch 12/35] net: ionic: Remove WARN_ON(in_interrupt()).

2020-09-28 Thread Shannon Nelson
On 9/27/20 12:48 PM, Thomas Gleixner wrote: From: Sebastian Andrzej Siewior in_interrupt() is ill defined and does not provide what the name suggests. The usage especially in driver code is deprecated and a tree wide effort to clean up and consolidate the (ab)usage of in_interrupt() and related

[GIT PULL] Please pull NFS client bugfixes

2020-09-28 Thread Trond Myklebust
Hi Linus, The following changes since commit 856deb866d16e29bd65952e0289066f6078af773: Linux 5.9-rc5 (2020-09-13 16:06:00 -0700) are available in the Git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-5.9-3 for you to fetch changes up to b9df46d08a8d098e

Re: [PATCH v6 07/10] PCI/RCEC: Add RCiEP's linked RCEC to AER/ERR

2020-09-28 Thread Sean V Kelley
On 27 Sep 2020, at 16:45, Bjorn Helgaas wrote: On Tue, Sep 22, 2020 at 02:38:56PM -0700, Sean V Kelley wrote: From: Qiuxu Zhuo When attempting error recovery for an RCiEP associated with an RCEC device, there needs to be a way to update the Root Error Status, the Uncorrectable Error Status

Re: [v3,1/3] dt-bindings: PCI: mediatek: Add YAML schema

2020-09-28 Thread Rob Herring
On Sun, Sep 27, 2020 at 03:45:53PM +0800, Jianjun Wang wrote: > Add YAML schemas documentation for Gen3 PCIe controller on > MediaTek SoCs. > > Signed-off-by: Jianjun Wang > Acked-by: Ryder Lee > --- > .../bindings/pci/mediatek-pcie-gen3.yaml | 126 ++ > 1 file changed, 126

Re: [RFC PATCH 1/2] rseq: Implement KTLS prototype for x86-64

2020-09-28 Thread Mathieu Desnoyers
- On Sep 28, 2020, at 11:13 AM, Florian Weimer fwei...@redhat.com wrote: > * Mathieu Desnoyers: > >> Upstreaming efforts aiming to integrate rseq support into glibc led to >> interesting discussions, where we identified a clear need to extend the >> size of the per-thread structure shared bet

[PATCH v2 1/2] drm/bridge: sii902x: Enable I/O and core VCC supplies if present

2020-09-28 Thread Alexandru Gagniuc
On the SII9022, the IOVCC and CVCC12 supplies must reach the correct voltage before the reset sequence is initiated. On most boards, this assumption is true at boot-up, so initialization succeeds. However, when we try to initialize the chip with incorrect supply voltages, it will not respond to I2

[PATCH v2 2/2] dt-bindings: display: sii902x: Add supply bindings

2020-09-28 Thread Alexandru Gagniuc
The sii902x chip family requires IO and core voltages to reach the correct voltage before chip initialization. Add binding for describing the two supplies. Signed-off-by: Alexandru Gagniuc --- Changes since v1: * Nothing. version incremented to stay in sync with sii902x regulator patch Docu

Re: [PATCH v5 00/10] Function Granular KASLR

2020-09-28 Thread Kristen Carlson Accardi
Hi, On Fri, 2020-09-25 at 15:06 +0200, Miroslav Benes wrote: > Hi Kristen, > > On Wed, 23 Sep 2020, Kristen Carlson Accardi wrote: > > > Function Granular Kernel Address Space Layout Randomization > > (fgkaslr) > > - > > > > >

Re: [PATCH 00/22] Introduce the TDP MMU

2020-09-28 Thread Paolo Bonzini
On 25/09/20 23:22, Ben Gardon wrote: > This series is the first of two. In this series we add a basic > implementation of the TDP MMU. In the next series we will improve the > performance of the TDP MMU and allow it to execute MMU operations > in parallel. I have finished rebasing and adding a few

Re: linux-next: Signed-off-by missing for commit in the rcu tree

2020-09-28 Thread Paul E. McKenney
On Mon, Sep 28, 2020 at 09:57:29AM +0200, Peter Zijlstra wrote: > On Thu, Sep 17, 2020 at 11:00:05AM -0700, Paul E. McKenney wrote: > > On Thu, Sep 17, 2020 at 01:26:52PM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > Commit > > > > > > 903c5302fa2d ("sched/core: Allow try_invoke_on_l

Re: [PATCH 1/2] drm/bridge: sii902x: Enable I/O and core VCC supplies if present

2020-09-28 Thread Alex G.
On 9/26/20 1:49 PM, Sam Ravnborg wrote: Hi Alexandru On Thu, Sep 24, 2020 at 03:05:05PM -0500, Alexandru Gagniuc wrote: On the SII9022, the IOVCC and CVCC12 supplies must reach the correct voltage before the reset sequence is initiated. On most boards, this assumption is true at boot-up, so ini

Re: [PATCH v11 2/6] x86: Support Generic Initiator only proximity domains

2020-09-28 Thread Borislav Petkov
On Mon, Sep 28, 2020 at 08:52:31PM +0800, Jonathan Cameron wrote: > In common with memoryless domains we only register GI domains > if the proximity node is not online. If a domain is already > a memory containing domain, or a memoryless domain there is > no

Re: linux-next: Tree for Sep 28 (kernel/bpf/verifier.c)

2020-09-28 Thread Randy Dunlap
On 9/28/20 4:55 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20200925: > when CONFIG_NET is not set/enabled: ../kernel/bpf/verifier.c:3990:13: error: ‘btf_sock_ids’ undeclared here (not in a function); did you mean ‘bpf_sock_ops’? .btf_id = &btf_sock_ids[BTF_SOCK_TYPE_SOCK_COMMO

Re: [PATCH v13 8/8] x86/vsyscall/64: Fixup Shadow Stack and Indirect Branch Tracking for vsyscall emulation

2020-09-28 Thread Andy Lutomirski
On Mon, Sep 28, 2020 at 9:59 AM Yu-cheng Yu wrote: > > On Fri, 2020-09-25 at 09:51 -0700, Andy Lutomirski wrote: > > > On Sep 25, 2020, at 9:48 AM, Yu, Yu-cheng wrote: > + > + cet = get_xsave_addr(&fpu->state.xsave, XFEATURE_CET_USER); > + if (!cet) { > +

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