[Freedreno] [PATCH 00/25] reserve RM resources in CRTC state

2018-10-08 Thread Jeykumar Sankaran
Submitting series of patches to clean up DPU resource manager (RM) of complicated hw iterations, redundant data maintenence and eventually modifying the DPU to reserve display HW blocks only in atomic check and caching the assigned HW blocks in atomic CRTC state. Thanks, Jeykumar S. Jeykumar

[Freedreno] [PATCH 07/25] drm/msm/dpu: reserve using crtc state

2018-10-08 Thread Jeykumar Sankaran
pipeline. It helps the driver: - to get rid of unwanted store and retrieval RM API's - to preserve HW resources assigned in atomic_check through atomic swap/duplicate. Separate patch is submitted to remove resource reservation in atomic_commit path. Signed-off-by: Jeykumar Sankaran --- drivers

[Freedreno] [PATCH 08/25] drm/msm/dpu: release reservation using crtc state

2018-10-08 Thread Jeykumar Sankaran
Use the hw block pointers stored in crtc state to release them back to RM resource pool. This change is made to uncouple RM reservation from encoder_id. Separate change is submitted to clean up RM of encoder id tagging. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v3] drm/msm: validate display and event threads

2018-10-08 Thread Jeykumar Sankaran
While creating display and event threads per crtc, validate them before setting their priorities. changes in v2: - use dev_warn (Abhinav Kumar) changes in v3: - fix compilation error Change-Id: I1dda805286df981c0f0e2b26507d089d3a21ff6c Signed-off-by: Jeykumar Sankaran

[Freedreno] [PATCH v2] drm/msm: validate display and event threads

2018-10-08 Thread Jeykumar Sankaran
While creating display and event threads per crtc, validate them before setting their priorities. changes in v2: - use dev_warn (Abhinav Kumar) Change-Id: I1dda805286df981c0f0e2b26507d089d3a21ff6c Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/msm_drv.c | 49

Re: [Freedreno] [PATCH 5/6] drm/msm: dpu: Remove empty/useless labels

2018-10-08 Thread Jeykumar Sankaran
On 2018-10-08 15:24, Jeykumar Sankaran wrote: On 2018-09-20 07:58, Sean Paul wrote: From: Sean Paul I noticed an empty label while driving by and decided to use coccinelle to see if there were any more. Here's the spatch and the invocation: --- @@ identifier lbl; expression E; @@ - goto

Re: [Freedreno] [PATCH 4/6] drm/msm: dpu: Remove 'inline' from several functions

2018-10-08 Thread Jeykumar Sankaran
On 2018-09-20 07:58, Sean Paul wrote: From: Sean Paul Per chapter 15 of coding-style, removing 'inline' keyword from functions that are larger than a typical macro. In a couple of cases I've simplified the function and kept the inline. Signed-off-by: Sean Paul Reviewed-by: Jeykumar

Re: [Freedreno] [PATCH 2/6] drm/msm: dpu: Remove unused functions from msm_media_info.h

2018-10-08 Thread Jeykumar Sankaran
On 2018-09-20 07:58, Sean Paul wrote: From: Sean Paul These functions aren't used anywhere, remove them. Signed-off-by: Sean Paul Reviewed-by: Jeykumar Sankaran --- .../gpu/drm/msm/disp/dpu1/msm_media_info.h| 171 -- 1 file changed, 171 deletions(-) diff --git

Re: [Freedreno] [PATCH 6/6] drm/msm: dpu: Clean up _dpu_core_video_mode_intf_connected()

2018-10-08 Thread Jeykumar Sankaran
On 2018-09-20 07:58, Sean Paul wrote: From: Sean Paul Local variable is not needed and condition can't be hit. Signed-off-by: Sean Paul Reviewed-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff

Re: [Freedreno] [PATCH 1/6] drm/msm: Remove dpu_encoder_phys_ops->hw_reset()

2018-10-08 Thread Jeykumar Sankaran
On 2018-09-20 07:58, Sean Paul wrote: From: Sean Paul We call out of the virt encoder into phys only to call back into the virt for hw reset. So remove the indirection and just call the virt function directly. Signed-off-by: Sean Paul Reviewed-by: Jeykumar Sankaran --- drivers/gpu/drm

Re: [Freedreno] [PATCH 5/6] drm/msm: dpu: Remove empty/useless labels

2018-10-08 Thread Jeykumar Sankaran
On 2018-09-20 07:58, Sean Paul wrote: From: Sean Paul I noticed an empty label while driving by and decided to use coccinelle to see if there were any more. Here's the spatch and the invocation: --- @@ identifier lbl; expression E; @@ - goto lbl; + return E; ... - lbl: return E; @@

[Freedreno] [PATCH] drm/msm: validate display and event threads

2018-10-05 Thread Jeykumar Sankaran
While creating display and event threads per crtc, validate them before setting their priorities. Change-Id: I1dda805286df981c0f0e2b26507d089d3a21ff6c Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/msm_drv.c | 49 ++- 1 file changed, 16

Re: [Freedreno] [PATCH] drm/msm: dpu: Add tracing around CTL_FLUSH

2018-10-03 Thread Jeykumar Sankaran
On 2018-10-03 11:36, Sean Paul wrote: From: Sean Paul I found these tracepoints useful for debugging cursor/ctl, someone else might find them useful too Signed-off-by: Sean Paul --- Thanks for the patch! Reviewed-by: Jeykumar Sankaran drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 26

Re: [Freedreno] [PATCH 2/2] drm/msm: dpu: Make legacy cursor updates asynchronous

2018-10-02 Thread Jeykumar Sankaran
On 2018-10-01 13:30, Sean Paul wrote: On Wed, Sep 26, 2018 at 11:56:47AM -0700, Jeykumar Sankaran wrote: On 2018-09-19 11:56, Sean Paul wrote: > From: Sean Paul > > This patch sprinkles a few async/legacy_cursor_update checks > through commit to ensure that cursor updates ar

Re: [Freedreno] [PATCH 1/2] drm/msm: dpu: Only check flush register against pending flushes

2018-10-02 Thread Jeykumar Sankaran
On 2018-10-01 13:29, Sean Paul wrote: On Wed, Sep 26, 2018 at 11:51:35AM -0700, Jeykumar Sankaran wrote: On 2018-09-19 11:56, Sean Paul wrote: > From: Sean Paul > > There exists a case where a flush of a plane/dma may have been triggered > & started from an async commit. I

Re: [Freedreno] [PATCH] drm/msm: dpu: Don't reset dpu_enc->cur_master on .disable()

2018-10-02 Thread Jeykumar Sankaran
On 2018-10-02 12:17, Sean Paul wrote: On Tue, Oct 02, 2018 at 11:09:47AM -0700, Jeykumar Sankaran wrote: On 2018-09-17 13:49, Sean Paul wrote: > From: Sean Paul > > cur_master in dpu_encoder is assigned at modeset and cleared on > .disable(). Unfortunately dpms (or enable/d

Re: [Freedreno] [PATCH 2/2] drm/msm: dpu: Make legacy cursor updates asynchronous

2018-09-26 Thread Jeykumar Sankaran
On 2018-09-19 11:56, Sean Paul wrote: From: Sean Paul This patch sprinkles a few async/legacy_cursor_update checks through commit to ensure that cursor updates aren't blocked on vsync. There are 2 main components to this, the first is that we don't want to wait_for_commit_done in msm_atomic

Re: [Freedreno] [PATCH v3 7/7] drm/msm/dpu: Make _dpu_plane_get_aspace void

2018-09-24 Thread Jeykumar Sankaran
On 2018-09-24 10:45, Bruce Wang wrote: Remove unneeded checks from _dpu_plane_get_aspace. The function no longer needs to return anything so it is changed to void. Are the subject and text still appropriate for the patch? The function is returning a ptr to msm_gem_address_space. v3: change

Re: [Freedreno] [PATCH] drm/msm/dpu: Remove an unused enum

2018-09-13 Thread Jeykumar Sankaran
On 2018-09-13 09:46, Jordan Crouse wrote: enum dpu_ad isn't used and can be safely removed. Signed-off-by: Jordan Crouse --- Reviewed-by: Jeykumar Sankaran drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1

Re: [Freedreno] [PATCH v2 6/7] drm/msm: dpu: Make dpu_plane_sspp_atomic_update() void

2018-09-13 Thread Jeykumar Sankaran
in dpu_plane_atomic_update(). Changes in v2: - None Signed-off-by: Sean Paul --- Reviewed-by: Jeykumar Sankaran drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 71 +-- 1 file changed, 14 insertions(+), 57 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm

Re: [Freedreno] [PATCH v2 5/7] drm/msm: dpu: Remove dpu_plane_enabled()

2018-09-13 Thread Jeykumar Sankaran
On 2018-09-12 06:54, Sean Paul wrote: From: Sean Paul plane->state->visible encompasses all of these checks and more, so we can just check visible. Changes in v2: - None Signed-off-by: Sean Paul --- Reviewed-by: Jeykumar Sankaran drivers/gpu/drm/msm/disp/dpu1/dpu_plane

Re: [Freedreno] [PATCH v2 4/7] drm/msm: dpu: Remove dpu_plane_sspp_enabled()

2018-09-13 Thread Jeykumar Sankaran
On 2018-09-12 06:54, Sean Paul wrote: From: Sean Paul It's doing the same thing dpu_plane_enabled() is. Changes in v2: - None Signed-off-by: Sean Paul --- Reviewed-by: Jeykumar Sankaran drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions

Re: [Freedreno] [PATCH v2 3/7] drm/msm: dpu: Consolidate atomic_check functions()

2018-09-13 Thread Jeykumar Sankaran
isible = false when this is true. So remove dpu_plane_atomic_check() and just use dpu_plane_sspp_atomic_check() directly. Changes in v2: - Fix spelling mistake in Subject (Jeykumar) Reviewed-by: Jeykumar Sankaran Signed-off-by: Sean Paul --- Reviewed-by: Jeykumar Sankaran drivers/gpu/drm/msm/dis

Re: [Freedreno] [PATCH v2 2/7] drm/msm: dpu: Move atomic_check_plane_state() call to atomic_check

2018-09-13 Thread Jeykumar Sankaran
(Jeykumar) Cc: Jeykumar Sankaran Signed-off-by: Sean Paul --- Reviewed-by: Jeykumar Sankaran drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 57 +++ 1 file changed, 17 insertions(+), 40 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm

Re: [Freedreno] [PATCH 3/7] drm/msm: dpu: Consolodate atomic_check functions()

2018-09-11 Thread Jeykumar Sankaran
te->fb) - return 0; - - DPU_DEBUG_PLANE(to_dpu_plane(plane), "\n"); - - return dpu_plane_sspp_atomic_check(plane, state); -} - void dpu_plane_flush(struct drm_plane *plane) { struct dpu_plane *pdpu; Subject line typo: %s/Consolodate/Consolidate Reviewed-by

Re: [Freedreno] [PATCH 2/7] drm/msm: dpu: Move atomic_check_plane_state() call to atomic_check

2018-09-11 Thread Jeykumar Sankaran
On 2018-09-11 13:15, Sean Paul wrote: From: Sean Paul src/dst rects are checked in both atomic_check and atomic_update, with the more comprehensive check occurring in atomic_update, which is backwards. So consolodate the checks in atomic_check. Signed-off-by: Sean Paul ---

[Freedreno] [PATCH v6 17/19] drm/msm/dpu: remove RM dependency on connector state

2018-09-07 Thread Jeykumar Sankaran
: - Introduced in the series changes in v6: - remove parameter checking in rm reserve (Jordan) Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 15 +++--- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h| 4

[Freedreno] [PATCH v6 15/19] drm/msm/dpu: remove LOCK/CLEAR support in RM

2018-09-07 Thread Jeykumar Sankaran
in v5: - Introduced in the series. changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 25 ++--- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h | 16 2 files changed, 2 insertions

[Freedreno] [PATCH v6 14/19] drm/msm/dpu: remove cdm block support from resource manager

2018-09-07 Thread Jeykumar Sankaran
Support for CDM block is not present in DPU. Remove CDM handlers from resource manager. changes in v4: - Introduced in the series changes in v5: - Remove catalog references to CDM (Sean) changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul

[Freedreno] [PATCH v6 05/19] drm/msm/dpu: remove ping pong split topology variables

2018-09-07 Thread Jeykumar Sankaran
removes left out variables of previous ping pong split topology cleanup. changes in v4: - none changes in v5: - none changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 3 --- 1 file changed, 3

[Freedreno] [PATCH v6 12/19] drm/msm/dpu: rename hw_ctl to lm_ctl

2018-09-07 Thread Jeykumar Sankaran
ned-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 26 +- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 4 ++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c b/drivers/

[Freedreno] [PATCH v6 13/19] drm/msm/dpu: clean up destination scaler residue

2018-09-07 Thread Jeykumar Sankaran
the feature is formally implemented. changes in v5: - introduced in the series changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 42 +- drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v6 11/19] drm/msm/dpu: move hw resource tracking to crtc state

2018-09-07 Thread Jeykumar Sankaran
lock all before crtc state access (Sean) - remove unwanted memset for hw mixer cache (Sean) changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 59 +++- drivers/gpu/drm/msm/disp

[Freedreno] [PATCH v6 19/19] drm/msm/dpu: remove RM topology definition

2018-09-07 Thread Jeykumar Sankaran
(Sean) changes in v6: - avoid heap memory for topology (Sean) Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 10 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 3 - drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h| 1 - drivers/gpu

[Freedreno] [PATCH v6 07/19] drm/msm/dpu: use kms stored hw mdp block

2018-09-07 Thread Jeykumar Sankaran
Avoid querying RM for hw mdp block. Use the one stored in KMS during initialization. changes in v4: - none changes in v5: - none changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 12

[Freedreno] [PATCH v6 10/19] drm/msm/dpu: make crtc get_mixer_width helper static

2018-09-07 Thread Jeykumar Sankaran
Mark CRTC get_mixer_width helper API static as it is not used outside the file. changes in v4: - Patch introduced in the series changes in v5: - Simplify the inline function (Sean) changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul

[Freedreno] [PATCH v6 09/19] drm/msm/dpu: avoid querying for hw intf before assignment

2018-09-07 Thread Jeykumar Sankaran
details on commit text on why the change is needed (Sean) changes in v5: - Reword commit text on the usage of hw_intf objects (Sean) changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 53

[Freedreno] [PATCH v6 08/19] drm/msm/dpu: iterate for assigned hw ctl in virtual encoder

2018-09-07 Thread Jeykumar Sankaran
iteration and mapping from physical encoder to virtual encoder. changes in v4: - Fix hw_ctl initialization (Sean) changes in v5: - Update commit text with details on why the change is needed (Sean) changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed

[Freedreno] [PATCH v6 06/19] drm/msm/dpu: enable master-slave encoders explicitly

2018-09-07 Thread Jeykumar Sankaran
of temporary variable for phys enc(Sean) changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 43 - 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v6 03/19] drm/msm/dpu: remove scalar config definitions

2018-09-07 Thread Jeykumar Sankaran
cleans up left out scalar config definitions from headers changes in v4: - none changes in v5: - none changes in v6: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h| 2 -- drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v6 16/19] drm/msm/dpu: remove display H_TILE from encoder

2018-09-07 Thread Jeykumar Sankaran
Encoder H_TILE values are not used for allocating the hw blocks. no. of hw_intf blocks provides the info. changes in v4: - remove irrelevant changes (Sean) - retain log macros (Sean) changes in v5: - none changes in v6: - none Signed-off-by: Jeykumar Sankaran

[Freedreno] [PATCH v6 18/19] drm/msm/dpu: relax parameter validation in encoders

2018-09-07 Thread Jeykumar Sankaran
Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 6 -- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 14 -- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 6 -- 3 files changed, 26 deletions

[Freedreno] [PATCH v6 02/19] drm/msm/dpu: squash power handle event types

2018-09-07 Thread Jeykumar Sankaran
only ENABLE/DISABLE events. changes in v5: - introduced in the series changes in v6: - define macro values using BIT(x) (Sean) Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 28 +--- drivers/gpu

[Freedreno] [PATCH v6 00/19] clean up DPU for RM refactor

2018-09-07 Thread Jeykumar Sankaran
- use BIT(x) to define power handle event macros - avoid head allocation for RM topology Thanks and Regards, Jeykumar S. Jeykumar Sankaran (19): drm/msm/dpu: remove debugfs support for misr drm/msm/dpu: squash power handle event types drm/msm/dpu: remove scalar config definitions

Re: [Freedreno] [PATCH v5 17/19] drm/msm/dpu: remove RM dependency on connector state

2018-09-07 Thread Jeykumar Sankaran
On 2018-09-06 09:14, Jordan Crouse wrote: On Wed, Sep 05, 2018 at 07:08:26PM -0700, Jeykumar Sankaran wrote: Connector states were passed around RM to update the custom topology connector property with chosen topology data. Now that we got rid of both custom properties and topology names

[Freedreno] [PATCH v5 15/19] drm/msm/dpu: remove LOCK/CLEAR support in RM

2018-09-05 Thread Jeykumar Sankaran
in v5: - Introduced in the series. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 25 ++--- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h | 16 2 files changed, 2 insertions(+), 39 deletions(-) diff --git a/drivers/gpu/drm/msm

[Freedreno] [PATCH v5 17/19] drm/msm/dpu: remove RM dependency on connector state

2018-09-05 Thread Jeykumar Sankaran
: - Introduced in the series Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 15 +++--- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h| 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 3 +- .../gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v5 14/19] drm/msm/dpu: remove cdm block support from resource manager

2018-09-05 Thread Jeykumar Sankaran
Support for CDM block is not present in DPU. Remove CDM handlers from resource manager. changes in v4: - Introduced in the series changes in v5: - Remove catalog references to CDM (Sean) Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/Makefile | 1

[Freedreno] [PATCH v5 13/19] drm/msm/dpu: clean up destination scaler residue

2018-09-05 Thread Jeykumar Sankaran
the feature is formally implemented. changes in v5: - introduced in the series Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 42 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 40 drivers/gpu/drm

[Freedreno] [PATCH v5 18/19] drm/msm/dpu: relax parameter validation in encoders

2018-09-05 Thread Jeykumar Sankaran
DPU, being over protective, validates every parameter of a module. This change traces the call stack for some of encoder functions affected by previous set of clean up patches and cleans up unwanted validations. changes in v5: - Introduced in the series Signed-off-by: Jeykumar Sankaran

[Freedreno] [PATCH v5 16/19] drm/msm/dpu: remove display H_TILE from encoder

2018-09-05 Thread Jeykumar Sankaran
Encoder H_TILE values are not used for allocating the hw blocks. no. of hw_intf blocks provides the info. changes in v4: - remove irrelevant changes (Sean) - retain log macros (Sean) changes in v5: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul

[Freedreno] [PATCH v5 08/19] drm/msm/dpu: iterate for assigned hw ctl in virtual encoder

2018-09-05 Thread Jeykumar Sankaran
iteration and mapping from physical encoder to virtual encoder. changes in v4: - Fix hw_ctl initialization (Sean) changes in v5: - Update commit text with details on why the change is needed (Sean) Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v5 10/19] drm/msm/dpu: make crtc get_mixer_width helper static

2018-09-05 Thread Jeykumar Sankaran
Mark CRTC get_mixer_width helper API static as it is not used outside the file. changes in v4: - Patch introduced in the series changes in v5: - Simplify the inline function (Sean) Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 12

[Freedreno] [PATCH v5 19/19] drm/msm/dpu: remove RM topology definition

2018-09-05 Thread Jeykumar Sankaran
(Sean) Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 10 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 3 - drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h| 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 9 +- .../gpu/drm/msm

[Freedreno] [PATCH v5 05/19] drm/msm/dpu: remove ping pong split topology variables

2018-09-05 Thread Jeykumar Sankaran
removes left out variables of previous ping pong split topology cleanup. changes in v4: - none changes in v5: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 3 --- 1 file changed, 3 deletions(-) diff --git

[Freedreno] [PATCH v5 11/19] drm/msm/dpu: move hw resource tracking to crtc state

2018-09-05 Thread Jeykumar Sankaran
lock all before crtc state access (Sean) - remove unwanted memset for hw mixer cache (Sean) Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 59 +++- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 22 ++-- 2 files changed, 39

[Freedreno] [PATCH v5 04/19] drm/msm/dpu: remove resource pool manager

2018-09-05 Thread Jeykumar Sankaran
resource pool manager utility was introduced to manage rotator sessions. Removing the support as the rotator feature doesn't exist. changes in v4: - none changes in v5: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c

[Freedreno] [PATCH v5 01/19] drm/msm/dpu: remove debugfs support for misr

2018-09-05 Thread Jeykumar Sankaran
the driver. changes in v4: - changed introduced in the series changes in v5: - update commit text with the need for the change(Sean) Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 139 - drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v5 09/19] drm/msm/dpu: avoid querying for hw intf before assignment

2018-09-05 Thread Jeykumar Sankaran
details on commit text on why the change is needed (Sean) changes in v5: - Reword commit text on the usage of hw_intf objects (Sean) Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 53 +++--- 1 file changed

[Freedreno] [PATCH v5 02/19] drm/msm/dpu: squash power handle event types

2018-09-05 Thread Jeykumar Sankaran
only ENABLE/DISABLE events. changes in v5: - introduced in the series Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 28 +--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 8 +++ drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v5 00/19] clean up DPU for RM refactor

2018-09-05 Thread Jeykumar Sankaran
/ Thanks and Regards, Jeykumar S. Jeykumar Sankaran (19): drm/msm/dpu: remove debugfs support for misr drm/msm/dpu: squash power handle event types drm/msm/dpu: remove scalar config definitions drm/msm/dpu: remove resource pool manager drm/msm/dpu: remove ping pong split topology variables

[Freedreno] [PATCH v5 07/19] drm/msm/dpu: use kms stored hw mdp block

2018-09-05 Thread Jeykumar Sankaran
Avoid querying RM for hw mdp block. Use the one stored in KMS during initialization. changes in v4: - none changes in v5: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 12 +--- drivers/gpu/drm

[Freedreno] [PATCH v5 06/19] drm/msm/dpu: enable master-slave encoders explicitly

2018-09-05 Thread Jeykumar Sankaran
of temporary variable for phys enc(Sean) Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 43 - 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm

[Freedreno] [PATCH v5 12/19] drm/msm/dpu: rename hw_ctl to lm_ctl

2018-09-05 Thread Jeykumar Sankaran
Rename hw_ctl to lm_ctl to mean the ctl associated with the hw layer mixer block. sed -i 's/\([*@.>]\)hw_ctl\([^s]\)/\1lm_ctl\2/g' dpu_crtc.c dpu_crtc.h changes in v4: - Specifiy shell command used for renaming (Sean) changes in v5: - none Signed-off-by: Jeykumar Sanka

[Freedreno] [PATCH v5 03/19] drm/msm/dpu: remove scalar config definitions

2018-09-05 Thread Jeykumar Sankaran
cleans up left out scalar config definitions from headers changes in v4: - none changes in v5: - none Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h| 2 -- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h | 10 -- 2

Re: [Freedreno] [PATCH v3] drm/msm: dpu: Allow planes to extend past active display

2018-09-04 Thread Jeykumar Sankaran
Cc: Jeykumar Sankaran Cc: Ville Syrjälä Signed-off-by: Sean Paul --- Reviewed-by: Jeykumar Sankaran drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 3 +- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 34 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 1 - drivers/gpu/drm

Re: [Freedreno] [PATCH 12/14] drm/msm/dpu: remove topology name

2018-09-04 Thread Jeykumar Sankaran
On 2018-08-31 09:08, Sean Paul wrote: On Tue, Aug 28, 2018 at 05:40:01PM -0700, Jeykumar Sankaran wrote: Strip down the support for topology enums. It can be replaced with simple hw count checks. Changes in v4: ... Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1

Re: [Freedreno] [PATCH 10/14] drm/msm/dpu: move hw resource tracking to crtc state

2018-09-04 Thread Jeykumar Sankaran
On 2018-08-31 07:56, Sean Paul wrote: On Tue, Aug 28, 2018 at 05:39:59PM -0700, Jeykumar Sankaran wrote: Prep changes for state based resource management. Moves all the hw block tracking for the crtc to the state object. Changes in v4... Signed-off-by: Jeykumar Sankaran --- drivers/gpu

Re: [Freedreno] [PATCH 10/14] drm/msm/dpu: move hw resource tracking to crtc state

2018-08-31 Thread Jeykumar Sankaran
On 2018-08-31 07:56, Sean Paul wrote: On Tue, Aug 28, 2018 at 05:39:59PM -0700, Jeykumar Sankaran wrote: Prep changes for state based resource management. Moves all the hw block tracking for the crtc to the state object. Changes in v4... Signed-off-by: Jeykumar Sankaran --- drivers/gpu

Re: [Freedreno] [PATCH 05/14] drm/msm/dpu: enable master-slave encoders explicitly

2018-08-31 Thread Jeykumar Sankaran
On 2018-08-30 09:24, Sean Paul wrote: On Tue, Aug 28, 2018 at 05:39:54PM -0700, Jeykumar Sankaran wrote: Identify slave-master encoders during initialization and enable the encoders explicitly as the current logic has redundant and ambiguous loops. Please include a "Changes in vX"

[Freedreno] [PATCH 09/14] drm/msm/dpu: make crtc get_mixer_width helper static

2018-08-28 Thread Jeykumar Sankaran
Mark CRTC get_mixer_width helper API static as it is not used outside the file. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 21 ++--- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 18 -- 2 files changed, 18 insertions(+), 21

[Freedreno] [PATCH 12/14] drm/msm/dpu: remove topology name

2018-08-28 Thread Jeykumar Sankaran
Strip down the support for topology enums. It can be replaced with simple hw count checks. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 3 -- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h| 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h

[Freedreno] [PATCH 14/14] drm/msm/dpu: remove cdm block support from resource manager

2018-08-28 Thread Jeykumar Sankaran
Support for CDM block is not present in DPU. Remove CDM handlers from resource manager. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/Makefile | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 2 - drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 5

[Freedreno] [PATCH 13/14] drm/msm/dpu: remove display H_TILE from encoder

2018-08-28 Thread Jeykumar Sankaran
Encoder H_TILE values are not used for allocating the hw blocks. no. of hw_intf blocks provides the info. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 5 - drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c

[Freedreno] [PATCH 05/14] drm/msm/dpu: enable master-slave encoders explicitly

2018-08-28 Thread Jeykumar Sankaran
Identify slave-master encoders during initialization and enable the encoders explicitly as the current logic has redundant and ambiguous loops. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 46 ++--- 1 file changed, 15 insertions

[Freedreno] [PATCH 07/14] drm/msm/dpu: iterate for assigned hw ctl in virtual encoder

2018-08-28 Thread Jeykumar Sankaran
Instead of iterating for hw ctrl per physical encoder, this patch moves the iterations and assignment to the virtual encoder. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 22 +++--- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c

[Freedreno] [PATCH 08/14] drm/msm/dpu: avoid querying for hw intf before assignment

2018-08-28 Thread Jeykumar Sankaran
Resource manager assigns hw_intf blocks for the encoder only on modeset. If queried for hw_intf objects during init, it will be NULL. Since hw_intf objects are needed only during encoder enable, defer the query to encoder enable which will be triggered after modeset. Signed-off-by: Jeykumar

[Freedreno] [PATCH 04/14] drm/msm/dpu: remove ping pong split topology variables

2018-08-28 Thread Jeykumar Sankaran
removes left out variables of previous ping pong split topology cleanup. Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h b/drivers/gpu/drm/msm

[Freedreno] [PATCH 00/14] clean up DPU for RM refactor

2018-08-28 Thread Jeykumar Sankaran
/ Thanks and Regards, Jeykumar S. Jeykumar Sankaran (14): drm/msm/dpu: remove debugfs support for misr drm/msm/dpu: remove scalar config definitions drm/msm/dpu: remove resource pool manager drm/msm/dpu: remove ping pong split topology variables drm/msm/dpu: enable master-slave encoders

[Freedreno] [PATCH 03/14] drm/msm/dpu: remove resource pool manager

2018-08-28 Thread Jeykumar Sankaran
resource pool manager utility was introduced to manage rotator sessions. Removing the support as the rotator feature doesn't exist. Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 205 --- drivers/gpu/drm/msm

[Freedreno] [PATCH 10/14] drm/msm/dpu: move hw resource tracking to crtc state

2018-08-28 Thread Jeykumar Sankaran
Prep changes for state based resource management. Moves all the hw block tracking for the crtc to the state object. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 60 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 22 ++-- 2

[Freedreno] [PATCH 01/14] drm/msm/dpu: remove debugfs support for misr

2018-08-28 Thread Jeykumar Sankaran
Strip down debugfs support for misr data read on layer mixers and interfaces. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 139 - drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 6 - drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH 02/14] drm/msm/dpu: remove scalar config definitions

2018-08-28 Thread Jeykumar Sankaran
cleans up left out scalar config definitions from headers Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h| 2 -- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h | 10 -- 2 files changed, 12 deletions(-) diff --git a/drivers/gpu/drm

[Freedreno] [PATCH 06/14] drm/msm/dpu: use kms stored hw mdp block

2018-08-28 Thread Jeykumar Sankaran
Avoid querying RM for hw mdp block. Use the one stored in KMS during initialization. Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 12 +--- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 9 + 2 files

Re: [Freedreno] [PATCH v2] drm/msm: dpu: Allow planes to extend past active display

2018-08-28 Thread Jeykumar Sankaran
On 2018-08-28 15:52, Sean Paul wrote: On Tue, Aug 28, 2018, 6:04 PM Jeykumar Sankaran wrote: On 2018-08-28 13:50, Sean Paul wrote: From: Sean Paul The atomic_check is a bit too aggressive with respect to planes which leave the active area. This caused a bunch of log spew when the cursor

[Freedreno] [PATCH 3/3] drm/msm/dpu: use encoder type to identify display type

2018-08-28 Thread Jeykumar Sankaran
With patch [1], DPU is broken since it continues to use incorrect connector_type to identify the display type. Update DPU to use the encoder type to get the info. [1] https://patchwork.kernel.org/patch/10568269/ Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c

[Freedreno] [PATCH 0/3] use encoder type to identify display

2018-08-28 Thread Jeykumar Sankaran
DPU is broken with patch [1]. This patch cleans up few stale codes and fixes the DPU bug by using encoder type to identify displays. [1] https://patchwork.kernel.org/patch/10568269/ Thanks. Jeykumar Sankaran (3): drm/msm/dpu: remove stale display port programming drm/msm/dpu: remove

[Freedreno] [PATCH 1/3] drm/msm/dpu: remove stale display port programming

2018-08-28 Thread Jeykumar Sankaran
Remove stale display port programming. It can be added back with DPU support for display port. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm

Re: [Freedreno] [PATCH v2] drm/msm: dpu: Allow planes to extend past active display

2018-08-28 Thread Jeykumar Sankaran
the conservative bounds checks from atomic and clips the dst rect such that we properly display planes which go off the screen. Changes in v2: - Apply the clip to src as well (taking into account scaling) Cc: Sravanthi Kollukuduru Cc: Jeykumar Sankaran Signed-off-by: Sean Paul --- drivers/gpu/drm/msm

Re: [Freedreno] [PATCH] drm/msm: dpu: Allow planes to extend past active display

2018-08-23 Thread Jeykumar Sankaran
On 2018-08-23 07:21, Sean Paul wrote: On Wed, Aug 22, 2018 at 02:56:22PM -0700, Jeykumar Sankaran wrote: On 2018-08-22 13:41, Sean Paul wrote: > From: Sean Paul > > The atomic_check is a bit too aggressive with respect to planes which > leave the active area. This caused a bunch

Re: [Freedreno] [PATCH] drm/msm: dpu: Allow planes to extend past active display

2018-08-22 Thread Jeykumar Sankaran
On 2018-08-22 13:41, Sean Paul wrote: From: Sean Paul The atomic_check is a bit too aggressive with respect to planes which leave the active area. This caused a bunch of log spew when the cursor got to the edge of the screen and stopped it from going all the way. This patch removes the

Re: [Freedreno] [PATCH] drm/msm/disp/dpu: Use proper define for drm_encoder_init() 'encoder_type'

2018-08-17 Thread Jeykumar Sankaran
not a connector! We really want to use DRM_MODE_ENCODER_DSI (integer 6) instead of DRM_MODE_CONNECTOR_DSI here, or we'll go out of bounds of the encoder array. Pass the right thing and everything is fine. Cc: Jeykumar Sankaran Cc: Jordan Crouse Cc: Sean Paul Fixes: 25fdd5933e4c ("drm/msm

Re: [Freedreno] [PATCH v3 12/13] drm/msm/dpu: add atomic private object to dpu kms

2018-08-14 Thread Jeykumar Sankaran
On 2018-08-14 13:26, Sean Paul wrote: On Tue, Aug 07, 2018 at 08:20:10PM -0700, Jeykumar Sankaran wrote: Subclass drm private state for DPU for handling driver specific data. Adds atomic private object and private object lock to dpu kms. Provides helper function to retrieve DPU private data

Re: [Freedreno] [PATCH v3 10/13] drm/msm/dpu: remove topology name

2018-08-14 Thread Jeykumar Sankaran
On 2018-08-14 13:14, Sean Paul wrote: On Tue, Aug 07, 2018 at 08:20:08PM -0700, Jeykumar Sankaran wrote: Strip down the support for topology enums. It can be replaced with simple hw count checks. Can you remove the enum entirely? A quick scan seems like it might be possible, it seems like

Re: [Freedreno] [PATCH v3 04/13] drm/msm/dpu: program master-slave encoders explicitly

2018-08-14 Thread Jeykumar Sankaran
On 2018-08-14 12:19, Sean Paul wrote: On Tue, Aug 07, 2018 at 08:12:31PM -0700, Jeykumar Sankaran wrote: Identify slave-master encoders and program them explicitly. You've got the what, but could you please explain the why? changes in v2: - none changes in v3: - none

[Freedreno] [PATCH v3 12/13] drm/msm/dpu: add atomic private object to dpu kms

2018-08-07 Thread Jeykumar Sankaran
://gitlab.freedesktop.org/seanpaul/dpu-staging/commits/for-next Change-Id: Iaab32badff224ffed024e6ef6576efc8b3af3aec Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 61 + drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 15 2 files

[Freedreno] [PATCH v3 13/13] drm/msm/dpu: use private obj to track hw resources

2018-08-07 Thread Jeykumar Sankaran
: Ie9d42eb3e93257816daf3d36c444a335645d65c6 Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 165 ++--- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 32 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 133 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 2

[Freedreno] [PATCH v3 10/13] drm/msm/dpu: remove topology name

2018-08-07 Thread Jeykumar Sankaran
Strip down the support for topology enums. It can be replaced with simple hw count checks. changes in v2: - none changes in v3: - none Change-Id: If9b2a4db5bbdf8545b99b6d90825e256d014382d Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c

[Freedreno] [PATCH v3 11/13] drm/msm/dpu: remove display H_TILE from encoder

2018-08-07 Thread Jeykumar Sankaran
Encoder H_TILE values are not used for allocating the hw blocks. no. of hw_intf blocks provides the info. changes in v2: - none changes in v3: - none Change-Id: I1c1c13e9b9f608fbaa8c5897f9f1892029107ac5 Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v3 08/13] drm/msm/dpu: move hw resource tracking to crtc state

2018-08-07 Thread Jeykumar Sankaran
Prep changes for state based resource management. Moves all the hw block tracking for the crtc to the state object. changes in v2: - none changes in v3: - none Change-Id: I2816e9e28b27f1126b477d62eb3858a30a652747 Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp

<    1   2   3   4   >