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

2018-08-07 Thread Jeykumar Sankaran
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 from current atomic state. changes in v2: - none changes in v3: - rebase on [1] [1]

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

2018-08-07 Thread Jeykumar Sankaran
Switch to state based resource management. This patch overhauls the resource manager and HW allocation methods by maintaining the global resource pool and allocated hw blocks in respective drm component states. Global resource manager(RM) is tracked in private object. Allocation strategy is

[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 ---

[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 ---

[Freedreno] [PATCH v3 07/13] drm/msm/dpu: avoid querying for hw intf before assignment

2018-08-07 Thread Jeykumar Sankaran
hw intf blocks are needed only during encoder enable to program timing engines(for video panels). encoder->enable is triggered only after atomic_modeset at which point we assign the resources for the display pipeline. This patch defers the hw_intf look-up until encoder enable. changes in v2:

[Freedreno] [PATCH v3 06/13] drm/msm/dpu: iterate for assigned hw ctl in virtual encoder

2018-08-07 Thread Jeykumar Sankaran
Instead of iterating for hw ctrl per physical encoder, this patch moves the iterations and assignment to the virtual encoder. changes in v2: - none changes in v3: - none Change-Id: I896a8c36d6353986582e9d0fe3da9b2293579d4b Signed-off-by: Jeykumar Sankaran ---

[Freedreno] [PATCH v3 05/13] drm/msm/dpu: use kms stored hw mdp block

2018-08-07 Thread Jeykumar Sankaran
Avoid querying RM for hw mdp block. Use the one stored in KMS during initialization. changes in v2: - none changes in v3: - none Change-Id: I52129b96bd561a5547507d7f567bcaa3dbe554aa Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 12

[Freedreno] [PATCH v3 02/13] drm/msm/dpu: remove resource pool manager

2018-08-07 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 v2: - none changes in v3: - rebase on [1] [1] https://gitlab.freedesktop.org/seanpaul/dpu-staging/commits/for-next Change-Id:

[Freedreno] [PATCH v3 03/13] drm/msm/dpu: remove ping pong split topology variables

2018-08-07 Thread Jeykumar Sankaran
removes left out variables of previous ping pong split topology cleanup. changes in v2: - none changes in v3: - none Change-Id: I1bf9d242039ce7cfd271233fa27840e83184fb95 Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 3 --- 1 file changed, 3

[Freedreno] [PATCH v3 00/13] Atomic resource management

2018-08-07 Thread Jeykumar Sankaran
This patchset series introduces drm private object in KMS to manage HW resource management. It modifies the resource manager by introducing API's to do per DRM object resource allocation/cleanups. Patches 00/13 to 11/13 are clean up patches to prepare DPU for the above migration. major changes

[Freedreno] [PATCH v3 01/13] drm/msm/dpu: remove scalar config definitions

2018-08-07 Thread Jeykumar Sankaran
cleans up left out scalar config definitions from headers changes in v2: - none changes in v3: - none Change-Id: Id824dd5075c666f97b964573c97215bb786eac75 Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h| 2 --

[Freedreno] [PATCH] drm/msm/disp/dpu: fix early dereference of physical encoder

2018-08-07 Thread Jeykumar Sankaran
This change validates the physical encoder before it is dereferenced. Signed-off-by: Jeykumar Sankaran --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c

Re: [Freedreno] [bug report] drm/msm: Add SDM845 DPU support

2018-08-07 Thread Jeykumar Sankaran
On 2018-08-07 05:09, Dan Carpenter wrote: Hello Jeykumar Sankaran, This is a semi-automatic email about new static checker warnings. The patch 25fdd5933e4c: "drm/msm: Add SDM845 DPU support" from Jun 27, 2018, leads to the following Smatch complaint:

[Freedreno] [bug report] drm/msm: Add SDM845 DPU support

2018-08-07 Thread Dan Carpenter
Hello Jeykumar Sankaran, This is a semi-automatic email about new static checker warnings. The patch 25fdd5933e4c: "drm/msm: Add SDM845 DPU support" from Jun 27, 2018, leads to the following Smatch complaint: ./drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:2464 dpu_encoder_wait_for_event()