Re: [WIP PATCH 03/15] drm/dp_mst: Introduce new refcounting scheme for mstbs and ports

2018-12-14 Thread Daniel Vetter
On Thu, Dec 13, 2018 at 08:25:32PM -0500, Lyude Paul wrote: > The current way of handling refcounting in the DP MST helpers is really > confusing and probably just plain wrong because it's been hacked up many > times over the years without anyone actually going over the code and > seeing if things

[RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space

2018-12-14 Thread Dongjiu Geng
When user space do memory recovery, it will check whether KVM and guest support the error recovery, only when both of them support, user space will do the error recovery. This patch exports this capability of KVM to user space. Cc: Peter Maydell Signed-off-by: Dongjiu Geng --- User space needs t

Re: [PATCH v13 19/25] kasan: add hooks implementation for tag-based mode

2018-12-14 Thread Vincenzo Frascino
On 12/12/18 3:04 PM, Andrey Konovalov wrote: > On Tue, Dec 11, 2018 at 5:22 PM Vincenzo Frascino > wrote: >> >> Hi Andrey, >> >> On 06/12/2018 12:24, Andrey Konovalov wrote: >>> This commit adds tag-based KASAN specific hooks implementation and >>> adjusts common generic and tag-based KASAN ones.

Re: [RFC v3 AFBC 04/12] drm/arm/malidp: Set the AFBC register bits if the framebuffer has AFBC modifier

2018-12-14 Thread Ayan Halder
On Tue, Dec 04, 2018 at 04:50:51PM +, Liviu Dudau wrote: Hi Liviu, Please let me know if you agree with my comments. Then I will send a v4 patch for this. > On Mon, Dec 03, 2018 at 11:31:58AM +, Ayan Halder wrote: > > Added the AFBC decoder registers for DP500 , DP550 and DP650. > > These

Re: [PATCH v8 15/26] pwm: jz4740: Add support for the JZ4725B

2018-12-14 Thread Linus Walleij
On Thu, Dec 13, 2018 at 9:42 PM Uwe Kleine-König wrote: > [Adding Linus Walleij to Cc:] > > Hello, > > On Thu, Dec 13, 2018 at 03:03:15PM +0100, Paul Cercueil wrote: > > Le jeu. 13 déc. 2018 à 10:24, Uwe Kleine-König > > a écrit : > > > On Wed, Dec 12, 2018 at 11:09:10PM +0100, Paul Cercueil wrot

Re: [RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space

2018-12-14 Thread James Morse
Hi Dongjiu Geng, On 14/12/2018 10:15, Dongjiu Geng wrote: > When user space do memory recovery, it will check whether KVM and > guest support the error recovery, only when both of them support, > user space will do the error recovery. This patch exports this > capability of KVM to user space. I c

Re: [RFC AFBC 06/12] drm/arm/malidp:- Added support for new YUV formats for DP500, DP550 and DP650

2018-12-14 Thread Ayan Halder
On Tue, Dec 04, 2018 at 04:57:46PM +, Liviu Dudau wrote: Hi Liviu, > On Mon, Dec 03, 2018 at 11:32:00AM +, Ayan Halder wrote: > > We have added some new formats to be supported on DP500/DP550/DP650. > > Make a bit more descriptive commit message here, please! > I will keep the following c

Re: [RFC AFBC 07/12] drm/arm/malidp: Define the constraints on each supported drm_fourcc format for the AFBC modifiers.

2018-12-14 Thread Ayan Halder
On Tue, Dec 04, 2018 at 05:49:12PM +, Liviu Dudau wrote: > On Mon, Dec 03, 2018 at 11:32:01AM +, Ayan Halder wrote: > > The constraints are as follows (for Mali-DP 500, 550, 650) :- > > > > 1. AFBC is not supported for the formats defined in > > malidp_hw_format_is_linear_only() > > > >

Re: [PATCH v8 15/26] pwm: jz4740: Add support for the JZ4725B

2018-12-14 Thread Uwe Kleine-König
Hello, On Fri, Dec 14, 2018 at 02:50:20PM +0100, Linus Walleij wrote: > On Thu, Dec 13, 2018 at 9:42 PM Uwe Kleine-König > wrote: > > [Adding Linus Walleij to Cc:] > > On Thu, Dec 13, 2018 at 03:03:15PM +0100, Paul Cercueil wrote: > > > Le jeu. 13 déc. 2018 à 10:24, Uwe Kleine-König > > > a écri

Re: [RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space

2018-12-14 Thread Peter Maydell
On Fri, 14 Dec 2018 at 13:56, James Morse wrote: > > Hi Dongjiu Geng, > > On 14/12/2018 10:15, Dongjiu Geng wrote: > > When user space do memory recovery, it will check whether KVM and > > guest support the error recovery, only when both of them support, > > user space will do the error recovery.

Re: [PATCH v8 15/26] pwm: jz4740: Add support for the JZ4725B

2018-12-14 Thread Linus Walleij
On Fri, Dec 14, 2018 at 3:26 PM Uwe Kleine-König wrote: > On Fri, Dec 14, 2018 at 02:50:20PM +0100, Linus Walleij wrote: > > So if the PWM case is something similar, then by all means add > > num-pwms. > > .. or "npwms" to use the same nomenclature as the gpio binding? Either works for me, I don

[PATCH 0/6] psi: pressure stall monitors

2018-12-14 Thread Suren Baghdasaryan
Android is adopting psi to detect and remedy memory pressure that results in stuttering and decreased responsiveness on mobile devices. Psi gives us the stall information, but because we're dealing with latencies in the millisecond range, periodically reading the pressure files to detect stalls in

[PATCH 6/6] psi: introduce psi monitor

2018-12-14 Thread Suren Baghdasaryan
Psi monitor aims to provide a low-latency short-term pressure detection mechanism configurable by users. It allows users to monitor psi metrics growth and trigger events whenever a metric raises above user-defined threshold within user-defined time window. Time window is expressed in usecs and thr

[PATCH 1/6] fs: kernfs: add poll file operation

2018-12-14 Thread Suren Baghdasaryan
From: Johannes Weiner Kernfs has a standardized poll/notification mechanism for waking all pollers on all fds when a filesystem node changes. To allow polling for custom events, add a .poll callback that can override the default. This is in preparation for pollable cgroup pressure files which ha

[PATCH 4/6] psi: introduce state_mask to represent stalled psi states

2018-12-14 Thread Suren Baghdasaryan
The psi monitoring patches will need to determine the same states as record_times(). To avoid calculating them twice, maintain a state mask that can be consulted cheaply. Do this in a separate patch to keep the churn in the main feature patch at a minimum. Signed-off-by: Suren Baghdasaryan --- i

[PATCH 2/6] kernel: cgroup: add poll file operation

2018-12-14 Thread Suren Baghdasaryan
From: Johannes Weiner Cgroup has a standardized poll/notification mechanism for waking all pollers on all fds when a filesystem node changes. To allow polling for custom events, add a .poll callback that can override the default. This is in preparation for pollable cgroup pressure files which ha

[PATCH 5/6] psi: rename psi fields in preparation for psi trigger addition

2018-12-14 Thread Suren Baghdasaryan
Renaming psi_group structure member fields used for calculating psi totals and averages for clear distinction between them and trigger-related fields that will be added next. Signed-off-by: Suren Baghdasaryan --- include/linux/psi_types.h | 15 --- kernel/sched/psi.c| 26

[PATCH 3/6] psi: eliminate lazy clock mode

2018-12-14 Thread Suren Baghdasaryan
From: Johannes Weiner psi currently stops its periodic 2s aggregation runs when there has not been any task activity, and wakes it back up later from the scheduler when the system returns from the idle state. The coordination between the aggregation worker and the scheduler is minimal: the sched

[PATCH 2/2] checkpatch: add Co-developed-by to signature tags

2018-12-14 Thread Jorge Ramirez-Ortiz
As per Documentation/process/submitting-patches, Co-developed-by is a valid signature. This commit removes the warning. Signed-off-by: Jorge Ramirez-Ortiz --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 93e84c9..b

[PATCH 0/2] Fix Co-Developed-by

2018-12-14 Thread Jorge Ramirez-Ortiz
The following set unifies the terminology for co-developed patches (losing the capital in Developed) and adds the rule to the checkpatch.pl script to stop warnings. Jorge Ramirez-Ortiz (2): docs: fix Co-Developed-by docs checkpatch: add Co-developed-by to signature tags Documentation/process

[PATCH 1/2] docs: fix Co-Developed-by docs

2018-12-14 Thread Jorge Ramirez-Ortiz
The accepted terminology will be Co-developed-by therefore losing the capital letter from now on. Signed-off-by: Jorge Ramirez-Ortiz --- Documentation/process/submitting-patches.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/process/submitting-patches.r

Re: [PATCH 1/2] docs: fix Co-Developed-by docs

2018-12-14 Thread Himanshu Jha
On Fri, Dec 14, 2018 at 06:35:27PM +0100, Jorge Ramirez-Ortiz wrote: > The accepted terminology will be Co-developed-by therefore losing the > capital letter from now on. > > Signed-off-by: Jorge Ramirez-Ortiz > --- Thanks. ACK! Finally, the discussion converged at somepoint. FYI, Cc Jonathan

Re: [PATCH 2/2] checkpatch: add Co-developed-by to signature tags

2018-12-14 Thread Andrew Morton
On Fri, 14 Dec 2018 18:35:28 +0100 Jorge Ramirez-Ortiz wrote: > As per Documentation/process/submitting-patches, Co-developed-by is a > valid signature. > I'm with Joe - I find this tag kinda useless and duplicative. But whatever. But as the documentation says, Co-developed-by must be accomp

Re: [PATCH 2/2] checkpatch: add Co-developed-by to signature tags

2018-12-14 Thread Himanshu Jha
On Fri, Dec 14, 2018 at 12:16:34PM -0800, Andrew Morton wrote: > On Fri, 14 Dec 2018 18:35:28 +0100 Jorge Ramirez-Ortiz > wrote: > > > As per Documentation/process/submitting-patches, Co-developed-by is a > > valid signature. > > > > I'm with Joe - I find this tag kinda useless and duplicative

[RESEND PATCH v4 0/3] fs/dcache: Track # of negative dentries

2018-12-14 Thread Waiman Long
v3->v4: - Drop patch 4 as it is just a minor optimization. - Add a cc:stable tag to patch 1. - Clean up some comments in patch 3. v2->v3: - With confirmation that the dummy array in dentry_stat structure was never a replacement of a previously used field, patch 3 is now reverted

[RESEND PATCH v4 3/3] fs/dcache: Track & report number of negative dentries

2018-12-14 Thread Waiman Long
The current dentry number tracking code doesn't distinguish between positive & negative dentries. It just reports the total number of dentries in the LRU lists. As excessive number of negative dentries can have an impact on system performance, it will be wise to track the number of positive and ne

[RESEND PATCH v4 1/3] fs/dcache: Fix incorrect nr_dentry_unused accounting in shrink_dcache_sb()

2018-12-14 Thread Waiman Long
The nr_dentry_unused per-cpu counter tracks dentries in both the LRU lists and the shrink lists where the DCACHE_LRU_LIST bit is set. The shrink_dcache_sb() function moves dentries from the LRU list to a shrink list and subtracts the dentry count from nr_dentry_unused. This is incorrect as the nr_d

[RESEND PATCH v4 2/3] fs: Don't need to put list_lru into its own cacheline

2018-12-14 Thread Waiman Long
The list_lru structure is essentially just a pointer to a table of per-node LRU lists. Even if CONFIG_MEMCG_KMEM is defined, the list field is just used for LRU list registration and shrinker_id is set at initialization. Those fields won't need to be touched that often. So there is no point to mak

Re: [RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space

2018-12-14 Thread gengdongjiu
HI James, Thanks for the mail and comments, I will reply to you in the next mail. 2018-12-14 21:55 GMT+08:00, James Morse : > Hi Dongjiu Geng, > > On 14/12/2018 10:15, Dongjiu Geng wrote: >> When user space do memory recovery, it will check whether KVM and >> guest support the error recover

Re: [RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space

2018-12-14 Thread gengdongjiu
> > On Fri, 14 Dec 2018 at 13:56, James Morse wrote: > > > > Hi Dongjiu Geng, > > > > On 14/12/2018 10:15, Dongjiu Geng wrote: > > > When user space do memory recovery, it will check whether KVM and > > > guest support the error recovery, only when both of them support, > > > user space will do t

撤回: [RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space

2018-12-14 Thread gengdongjiu
gengdongjiu 将撤回邮件“[RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space”。

Re: [RFC RESEND PATCH] kvm: arm64: export memory error recovery capability to user space

2018-12-14 Thread gengdongjiu
> > On Fri, 14 Dec 2018 at 13:56, James Morse wrote: > > > > Hi Dongjiu Geng, > > > > On 14/12/2018 10:15, Dongjiu Geng wrote: > > > When user space do memory recovery, it will check whether KVM and > > > guest support the error recovery, only when both of them support, > > > user space will do