[Freedreno] [DPU PATCH 17/19] drm/msm: dpu: Remove dsi debug block name

2018-06-20 Thread Sean Paul
Leftover from dsi-staging, it looks like. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/dpu_dbg.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/msm/dpu_dbg.c b/drivers/gpu/drm/msm/dpu_dbg.c index 2a9b8c732e33..51d46975cc27 100644 --- a/drivers/gpu/drm/msm/dpu_dbg.c

[Freedreno] [DPU PATCH 19/19] drm/msm: dpu: Move dpu_dbg into dpu1 directory

2018-06-20 Thread Sean Paul
Now that dpu_dbg is cleaned up, move it into dpu directory with the rest of dpu things. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/Makefile | 2 +- drivers/gpu/drm/msm/{ => disp/dpu1}/dpu_dbg.c | 0 drivers/gpu/drm/msm/{ => disp/dpu1}/dpu_dbg.h | 0 3 files changed, 1

[Freedreno] [DPU PATCH 15/19] drm/msm: dpu: Remove arbitrary register dumps

2018-06-20 Thread Sean Paul
This can be achieved via /dev/mem. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_cdm.c| 3 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c| 3 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 3 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c | 3 -

[Freedreno] [DPU PATCH 10/19] drm/msm: dpu_core_irq: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_core_irq with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.c | 52 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h| 50 +++ 2 files changed, 71

[Freedreno] [DPU PATCH 00/19] drm/msm: dpu: Clean up dpu_dbg

2018-06-20 Thread Sean Paul
Well hello, This patchset attempts to clean up some of dpu_dbg that was duplicating functionality already upstream. The majority of the set is replacing all instances of DPU_EVT* functions with proper tracepoints instead of the obfuscated ones that exist now. The second part of the set disects

[Freedreno] [DPU PATCH 02/19] drm/msm: dpu_crtc: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_crtc with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 122 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 166 ++ 2 files changed, 210

[Freedreno] [DPU PATCH 11/19] drm/msm: dpu_core_perf: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_core_perf with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 17 + 2 files changed, 18 insertions(+), 1

[Freedreno] [DPU PATCH 03/19] drm/msm: dpu_plane: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_plane with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 19 +++--- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 44 +++ 2 files changed, 49 insertions(+),

[Freedreno] [DPU PATCH 07/19] drm/msm: dpu_encoder_phys_vid: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_encoder_phys_vid with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 36 --- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 35 ++ 2 files

[Freedreno] [DPU PATCH 08/19] drm/msm: dpu_vbif: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_vbif with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 15 +++ drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c | 7 +++ 2 files changed, 18 insertions(+), 4

[Freedreno] [DPU PATCH 12/19] drm/msm: dpu_mdss: Replace DPU_EVT with DRM_ERROR

2018-06-20 Thread Sean Paul
The events are only issued in error cases, so use DRM_ERROR instead. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c

[Freedreno] [DPU PATCH 04/19] drm/msm: dpu_rm: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_rm with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c| 65 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 49 + 2 files changed, 78

[Freedreno] [DPU PATCH 13/19] drm/msm: dpu: Remove dpu evtlog

2018-06-20 Thread Sean Paul
Now that everything has been converted to tracepoints, remove the dpu evtlog. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/Makefile | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 5 - drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 33 --- drivers/gpu/drm/msm/dpu_dbg.c

[Freedreno] [DPU PATCH 05/19] drm/msm: dpu_kms: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_kms with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 19 --- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 16 2 files changed, 28 insertions(+),

[Freedreno] [DPU PATCH 16/19] drm/msm: dpu: Remove panic from dpu debug dump

2018-06-20 Thread Sean Paul
Better not to allow arbitrary panics of the kernel when poking debugfs files. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 2 +- .../drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 2 +- .../drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 2 +-

[Freedreno] [DPU PATCH 06/19] drm/msm: dpu_encoder_phys_cmd: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_encoder_phys_cmd with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- .../drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 79 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 68 2 files

[Freedreno] [DPU PATCH 01/19] drm/msm: dpu_encoder: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_encoder with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 290 - drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 329 2 files changed, 464

[Freedreno] [DPU PATCH 09/19] drm/msm: dpu_pingpong: Replace DPU_EVT with tracepoints

2018-06-20 Thread Sean Paul
This patch converts all DPU_EVTs in dpu_pingpong with either a DRM_* log message or a linux tracepoint. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 3 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 14 ++ 2 files changed, 16 insertions(+),

Re: [Freedreno] [DPU PATCH 2/5] drm/msm/dpu: enable cursor plane for primary crtc

2018-06-20 Thread Rob Clark
On Wed, Jun 20, 2018 at 12:29 PM, wrote: > On 2018-06-20 19:18, Rob Clark wrote: >> >> On Wed, Jun 20, 2018 at 8:50 AM, Sravanthi Kollukuduru >> wrote: >>> >>> Reserve one DMA pipe as cursor plane and also, update crtc >>> support of cursor in crtc_init. >> >> >> hmm, mdp5 in 820 had real

Re: [Freedreno] [DPU PATCH 2/5] drm/msm/dpu: enable cursor plane for primary crtc

2018-06-20 Thread ryadav
On 2018-06-20 19:18, Rob Clark wrote: On Wed, Jun 20, 2018 at 8:50 AM, Sravanthi Kollukuduru wrote: Reserve one DMA pipe as cursor plane and also, update crtc support of cursor in crtc_init. hmm, mdp5 in 820 had real cursor planes in hw, did these go away? If so I guess DMA plane is best

Re: [Freedreno] [PATCH v11 3/5] dt-bindings: drm/bridge: Document sn65dsi86 bridge bindings

2018-06-20 Thread Rob Herring
On Fri, Jun 15, 2018 at 12:13:41PM +0530, Sandeep Panda wrote: > Document the bindings used for the sn65dsi86 DSI to eDP bridge. > > Changes in v1: > - Rephrase the dt-binding descriptions to be more inline with existing >bindings (Andrzej Hajda). > - Add missing dt-binding that are parsed

Re: [Freedreno] [DPU PATCH 2/5] drm/msm/dpu: enable cursor plane for primary crtc

2018-06-20 Thread Rob Clark
On Wed, Jun 20, 2018 at 8:50 AM, Sravanthi Kollukuduru wrote: > Reserve one DMA pipe as cursor plane and also, update crtc > support of cursor in crtc_init. hmm, mdp5 in 820 had real cursor planes in hw, did these go away? If so I guess DMA plane is best candidate for cursor.. BR, -R > >

[Freedreno] [DPU PATCH 2/5] drm/msm/dpu: enable cursor plane for primary crtc

2018-06-20 Thread Sravanthi Kollukuduru
Reserve one DMA pipe as cursor plane and also, update crtc support of cursor in crtc_init. Signed-off-by: Sravanthi Kollukuduru --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 7 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 3 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c |

[Freedreno] [DPU PATCH 5/5] drm/msm/dpu: dynamic assignment of hw pipe to plane

2018-06-20 Thread Sravanthi Kollukuduru
Currently, there exists a static binding of hw pipe to plane. This restricts wide plane support where plane width exceeds the pipe's maximum width. To enable such use cases, the hw pipes are dynamically (re)allocated to a plane during atomic check based on the plane capabilities. Signed-off-by:

[Freedreno] [DPU PATCH 3/5] drm/msm/dpu: remove static binding of hw pipe to plane

2018-06-20 Thread Sravanthi Kollukuduru
Expose all planes with superset of formats and with no hw pipe static binding. Accordingly, remove checks from atomic_check reflecting the decoupling. Signed-off-by: Sravanthi Kollukuduru --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 26 +---

[Freedreno] [DPU PATCH 4/5] drm/msm/dpu: introduce state based plane resource management

2018-06-20 Thread Sravanthi Kollukuduru
A plane can be attached to a maximum of two hw pipes in case of wide resolution greater than pipe's max width limit. This mapping of hw pipe(s) to plane and number of pipes will be maintained in the plane state. Resource manager (RM) will handle the SSPP blocks reservation for a given plane.

[Freedreno] [DPU PATCH 1/5] drm/msm/dpu: remove smart dma support

2018-06-20 Thread Sravanthi Kollukuduru
Removing the smart dma feature implementation as it is currently not enabled on dpu driver. Signed-off-by: Sravanthi Kollukuduru --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 51 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 25 +--

[Freedreno] [DPU PATCH 0/5] Introduce plane virtualization in DPU driver

2018-06-20 Thread Sravanthi Kollukuduru
Currently, each drm plane controls a single HW pipe. For all use cases where plane width exceeds the maximum pipe width, the DPU driver will require more than one HW pipe. This patchset enables virtualization of planes through the following changes: (1) Expose all the planes with the superset of

Re: [Freedreno] [PATCH 9/9] drm/msm: Always obey implicit fencing

2018-06-20 Thread Daniel Vetter
On Thu, Apr 05, 2018 at 05:44:49PM +0200, Daniel Vetter wrote: > Again same justification as for drm_gem_fb_prepare_fb(). > > Definitely needs some testing because Rob doesn't remember why he did > this, and Google/git.fd.o or anything also doesn't shed some light on > it. > > Signed-off-by: