Re: [PATCH v4 11/12] fpga: dfl: fme: add global error reporting support

2019-08-07 Thread Wu Hao
On Wed, Aug 07, 2019 at 10:45:22AM +0800, Wu Hao wrote: > On Mon, Aug 05, 2019 at 05:56:26PM +0200, Greg KH wrote: > > On Sun, Aug 04, 2019 at 06:20:21PM +0800, Wu Hao wrote: > > > +static int fme_global_err_init(struct platform_device *pdev, > > > +struct dfl_feature *featu

Re: [PATCH 0/6] hwspinlock: allow sharing of hwspinlocks

2019-08-07 Thread Fabien DESSENNE
Hi On 06/08/2019 11:30 PM, Suman Anna wrote: > On 8/6/19 1:21 PM, Bjorn Andersson wrote: >> On Tue 06 Aug 10:38 PDT 2019, Suman Anna wrote: >> >>> Hi Fabien, >>> >>> On 8/5/19 12:46 PM, Bjorn Andersson wrote: On Mon 05 Aug 01:48 PDT 2019, Fabien DESSENNE wrote: > On 01/08/2019 9:14

Re: [PATCH v4 11/12] fpga: dfl: fme: add global error reporting support

2019-08-07 Thread Greg KH
On Wed, Aug 07, 2019 at 04:08:25PM +0800, Wu Hao wrote: > On Wed, Aug 07, 2019 at 10:45:22AM +0800, Wu Hao wrote: > > On Mon, Aug 05, 2019 at 05:56:26PM +0200, Greg KH wrote: > > > On Sun, Aug 04, 2019 at 06:20:21PM +0800, Wu Hao wrote: > > > > +static int fme_global_err_init(struct platform_device

Re: [PATCH v4 1/5] mm/page_idle: Add per-pid idle page tracking using virtual indexing

2019-08-07 Thread Joel Fernandes
On Tue, Aug 06, 2019 at 03:19:21PM -0700, Andrew Morton wrote: > (cc Brendan's other email address, hoping for review input ;)) ;) > On Mon, 5 Aug 2019 13:04:47 -0400 "Joel Fernandes (Google)" > wrote: > > > The page_idle tracking feature currently requires looking up the pagemap > > for a pr

Re: [Tee-dev] [PATCH v8 0/2] fTPM: firmware TPM running in TEE

2019-08-07 Thread Rouven Czerwinski
Hi, I spent some time with the fTPM module and TA on a Nitrogen6X with the latest OP-TEE master. After stumbling through the "tee_supplicant no persistent storage" problem, my module now issues the following error message on module load: [ 34.633252] tpm tpm0: ftpm_tee_tpm_op_send: SUBMIT_COMMA

[PATCH v7 0/2] arm64 tagged address ABI

2019-08-07 Thread Catalin Marinas
Hi, Thanks for the feedback so far. This is an updated series documenting the AArch64 Tagged Address ABI as implemented by these patches: http://lkml.kernel.org/r/cover.1563904656.git.andreyk...@google.com Version 6 of the documentation series is available here: http://lkml.kernel.org/r/2019072

[PATCH v7 1/2] arm64: Define Documentation/arm64/tagged-address-abi.rst

2019-08-07 Thread Catalin Marinas
From: Vincenzo Frascino On arm64 the TCR_EL1.TBI0 bit has been always enabled hence the userspace (EL0) is allowed to set a non-zero value in the top byte but the resulting pointers are not allowed at the user-kernel syscall ABI boundary. With the relaxed ABI proposed through this document, it i

[PATCH v7 2/2] arm64: Relax Documentation/arm64/tagged-pointers.rst

2019-08-07 Thread Catalin Marinas
From: Vincenzo Frascino On arm64 the TCR_EL1.TBI0 bit has been always enabled hence the userspace (EL0) is allowed to set a non-zero value in the top byte but the resulting pointers are not allowed at the user-kernel syscall ABI boundary. With the relaxed ABI proposed in this set, it is now poss

Re: [PATCH 0/6] hwspinlock: allow sharing of hwspinlocks

2019-08-07 Thread Suman Anna
Hi Fabien, On 8/7/19 3:39 AM, Fabien DESSENNE wrote: > Hi > > On 06/08/2019 11:30 PM, Suman Anna wrote: >> On 8/6/19 1:21 PM, Bjorn Andersson wrote: >>> On Tue 06 Aug 10:38 PDT 2019, Suman Anna wrote: >>> Hi Fabien, On 8/5/19 12:46 PM, Bjorn Andersson wrote: > On Mon 05 Aug 01:

Re: [PATCH] mm, slab: Extend slab/shrink to shrink all the memcg caches

2019-08-07 Thread Vlastimil Babka
On 7/23/19 4:30 PM, Waiman Long wrote: > On 7/22/19 8:46 AM, peter enderborg wrote: >> On 7/2/19 8:37 PM, Waiman Long wrote: >>> Currently, a value of '1" is written to /sys/kernel/slab//shrink >>> file to shrink the slab by flushing all the per-cpu slabs and free >>> slabs in partial lists. This a

Re: [PATCH 5/6] tty: serial: Add linflexuart driver for S32V234

2019-08-07 Thread Stefan-gabriel Mirea
On 8/6/2019 9:40 PM, gre...@linuxfoundation.org wrote: > On Tue, Aug 06, 2019 at 05:11:17PM +, Stefan-gabriel Mirea wrote: >> On 8/5/2019 6:31 PM, gre...@linuxfoundation.org wrote: >>> On Fri, Aug 02, 2019 at 07:47:23PM +, Stefan-gabriel Mirea wrote: +/* Freescale Linflex UART */

Re: [PATCH 5/6] tty: serial: Add linflexuart driver for S32V234

2019-08-07 Thread gre...@linuxfoundation.org
On Wed, Aug 07, 2019 at 04:42:17PM +, Stefan-gabriel Mirea wrote: > On 8/6/2019 9:40 PM, gre...@linuxfoundation.org wrote: > > On Tue, Aug 06, 2019 at 05:11:17PM +, Stefan-gabriel Mirea wrote: > >> On 8/5/2019 6:31 PM, gre...@linuxfoundation.org wrote: > >>> On Fri, Aug 02, 2019 at 07:47:23

Re: [PATCH 5/6] tty: serial: Add linflexuart driver for S32V234

2019-08-07 Thread Stefan-gabriel Mirea
On 8/7/2019 7:56 PM, gre...@linuxfoundation.org wrote: > On Wed, Aug 07, 2019 at 04:42:17PM +, Stefan-gabriel Mirea wrote: >> On 8/6/2019 9:40 PM, gre...@linuxfoundation.org wrote: >>> On Tue, Aug 06, 2019 at 05:11:17PM +, Stefan-gabriel Mirea wrote: Other than that, I do not see an

[PATCH v5 2/6] mm/page_idle: Add support for handling swapped PG_Idle pages

2019-08-07 Thread Joel Fernandes (Google)
Idle page tracking currently does not work well in the following scenario: 1. mark page-A idle which was present at that time. 2. run workload 3. page-A is not touched by workload 4. *sudden* memory pressure happen so finally page A is finally swapped out 5. now see the page A - it appears as

[PATCH v5 5/6] page_idle: Drain all LRU pagevec before idle tracking

2019-08-07 Thread Joel Fernandes (Google)
During idle page tracking, we see that sometimes faulted anon pages are in pagevec but are not drained to LRU. Idle page tracking only considers pages on LRU. I am able to find multiple issues involving this. One issue looks like idle tracking is completely broken. It shows up in my testing as if

[PATCH v5 1/6] mm/page_idle: Add per-pid idle page tracking using virtual index

2019-08-07 Thread Joel Fernandes (Google)
The page_idle tracking feature currently requires looking up the pagemap for a process followed by interacting with /sys/kernel/mm/page_idle. Looking up PFN from pagemap in Android devices is not supported by unprivileged process and requires SYS_ADMIN and gives 0 for the PFN. This patch adds supp

[PATCH v5 4/6] [RFC] arm64: Add support for idle bit in swap PTE

2019-08-07 Thread Joel Fernandes (Google)
This bit will be used by idle page tracking code to correctly identify if a page that was swapped out was idle before it got swapped out. Without this PTE bit, we lose information about if a page is idle or not since the page frame gets unmapped. In this patch we reuse PTE_DEVMAP bit since idle pa

[PATCH v5 3/6] [RFC] x86: Add support for idle bit in swap PTE

2019-08-07 Thread Joel Fernandes (Google)
This bit will be used by idle page tracking code to correctly identify if a page that was swapped out was idle before it got swapped out. Without this PTE bit, we lose information about if a page is idle or not since the page frame gets unmapped and the page gets freed. Bits 2-6 are unused in the

[PATCH v5 6/6] doc: Update documentation for page_idle virtual address indexing

2019-08-07 Thread Joel Fernandes (Google)
This patch updates the documentation with the new page_idle tracking feature which uses virtual address indexing. Reviewed-by: Mike Rapoport Reviewed-by: Sandeep Patil Signed-off-by: Joel Fernandes (Google) --- .../admin-guide/mm/idle_page_tracking.rst | 43 --- 1 file chan

Re: [PATCH v4 1/5] mm/page_idle: Add per-pid idle page tracking using virtual indexing

2019-08-07 Thread Andrew Morton
On Wed, 7 Aug 2019 06:00:13 -0400 Joel Fernandes wrote: > > > 8 files changed, 376 insertions(+), 45 deletions(-) > > > > Quite a lot of new code unconditionally added to major architectures. > > Are we confident that everyone will want this feature? > > I did not follow, could you clarify mor

Re: [PATCH v5 1/6] mm/page_idle: Add per-pid idle page tracking using virtual index

2019-08-07 Thread Andrew Morton
On Wed, 7 Aug 2019 13:15:54 -0400 "Joel Fernandes (Google)" wrote: > In Android, we are using this for the heap profiler (heapprofd) which > profiles and pin points code paths which allocates and leaves memory > idle for long periods of time. This method solves the security issue > with userspa

Re: [PATCH v7 1/2] arm64: Define Documentation/arm64/tagged-address-abi.rst

2019-08-07 Thread Dave Hansen
On 8/7/19 8:53 AM, Catalin Marinas wrote: > +- mmap() done by the process itself (or its parent), where either: > + > + - flags have the **MAP_ANONYMOUS** bit set > + - the file descriptor refers to a regular file (including those returned > +by memfd_create()) or **/dev/zero** What's a "reg

Re: [PATCH v4 1/5] mm/page_idle: Add per-pid idle page tracking using virtual indexing

2019-08-07 Thread Joel Fernandes
On Wed, Aug 07, 2019 at 01:01:22PM -0700, Andrew Morton wrote: > On Wed, 7 Aug 2019 06:00:13 -0400 Joel Fernandes > wrote: > > > > > 8 files changed, 376 insertions(+), 45 deletions(-) > > > > > > Quite a lot of new code unconditionally added to major architectures. > > > Are we confident that

Re: [PATCH v5 1/6] mm/page_idle: Add per-pid idle page tracking using virtual index

2019-08-07 Thread Joel Fernandes
On Wed, Aug 07, 2019 at 01:04:02PM -0700, Andrew Morton wrote: > On Wed, 7 Aug 2019 13:15:54 -0400 "Joel Fernandes (Google)" > wrote: > > > In Android, we are using this for the heap profiler (heapprofd) which > > profiles and pin points code paths which allocates and leaves memory > > idle for

Re: [PATCH v5 1/6] mm/page_idle: Add per-pid idle page tracking using virtual index

2019-08-07 Thread Andrew Morton
On Wed, 7 Aug 2019 16:45:30 -0400 Joel Fernandes wrote: > On Wed, Aug 07, 2019 at 01:04:02PM -0700, Andrew Morton wrote: > > On Wed, 7 Aug 2019 13:15:54 -0400 "Joel Fernandes (Google)" > > wrote: > > > > > In Android, we are using this for the heap profiler (heapprofd) which > > > profiles an

Re: [PATCH v5 1/6] mm/page_idle: Add per-pid idle page tracking using virtual index

2019-08-07 Thread Joel Fernandes
On Wed, Aug 07, 2019 at 01:58:40PM -0700, Andrew Morton wrote: > On Wed, 7 Aug 2019 16:45:30 -0400 Joel Fernandes > wrote: > > > On Wed, Aug 07, 2019 at 01:04:02PM -0700, Andrew Morton wrote: > > > On Wed, 7 Aug 2019 13:15:54 -0400 "Joel Fernandes (Google)" > > > wrote: > > > > > > > In Andr

Re: [PATCH v5 1/6] mm/page_idle: Add per-pid idle page tracking using virtual index

2019-08-07 Thread Joel Fernandes
On Wed, Aug 07, 2019 at 05:31:05PM -0400, Joel Fernandes wrote: > On Wed, Aug 07, 2019 at 01:58:40PM -0700, Andrew Morton wrote: > > On Wed, 7 Aug 2019 16:45:30 -0400 Joel Fernandes > > wrote: > > > > > On Wed, Aug 07, 2019 at 01:04:02PM -0700, Andrew Morton wrote: > > > > On Wed, 7 Aug 2019 13

Re: [PATCH v8 0/2] fTPM: firmware TPM running in TEE

2019-08-07 Thread Sasha Levin
On Tue, Aug 06, 2019 at 01:51:32AM +0300, Jarkko Sakkinen wrote: On Mon, Aug 05, 2019 at 02:05:18PM -0400, Sasha Levin wrote: On Mon, Aug 05, 2019 at 12:44:28AM +0300, Jarkko Sakkinen wrote: > On Thu, Jul 11, 2019 at 11:08:58PM +0300, Jarkko Sakkinen wrote: > > On Fri, Jul 05, 2019 at 04:47:44PM

Re: [PATCH v7 3/7] of/platform: Add functional dependency link from DT bindings

2019-08-07 Thread Frank Rowand
On 7/23/19 5:10 PM, Saravana Kannan wrote: > Add device-links after the devices are created (but before they are > probed) by looking at common DT bindings like clocks and > interconnects. > > Automatically adding device-links for functional dependencies at the > framework level provides the follo