[Freedreno] [DPU PATCH 03/15] drm/msm: Move dpu_dbg init/destroy into dpu_kms

2018-06-28 Thread Sean Paul
No need to have this in msm_drv, so move it into dpu. While we're at it, remove the other CONFIG_DRM_MSM_DPU ifdef gates. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 18 ++- drivers/gpu/drm/msm/msm_drv.c | 41 - 2

[Freedreno] [DPU PATCH 05/15] drm/msm: More cleanup in msm_drv

2018-06-28 Thread Sean Paul
Revert the component_bind function back to upstream. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/msm_drv.c | 30 +- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 561617db7338

[Freedreno] [DPU PATCH 09/15] drm/msm: Remove get_address_space msm_kms hook

2018-06-28 Thread Sean Paul
It's unused. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 8 drivers/gpu/drm/msm/msm_kms.h | 4 2 files changed, 12 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 1f21634

[Freedreno] [DPU PATCH 06/15] drm/msm: Move debugfs root tracking to dpu

2018-06-28 Thread Sean Paul
We don't use it for anything else, so hide it in dpu. A few other whitespace/trivial fixes to revert dpu changes in msm. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 37 ++--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 1 + drivers/gpu/dr

[Freedreno] [DPU PATCH 04/15] drm/msm: Remove more dpu-related code from msm_drv

2018-06-28 Thread Sean Paul
This time the iomap/iounmap helper functions. Move map into dpu and refactor it to reflect their actual use. iounmap wasn't useful, so delete it and call iounmap directly. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 38 +--- drivers/gpu/dr

[Freedreno] [DPU PATCH 01/15] drm/msm: Remove more dpu changes from msm core

2018-06-28 Thread Sean Paul
This patch is removing a bunch more dpu changes that touch msm core. Signed-off-by: Sean Paul Change-Id: I1c82454ad372b34ca5b0d6db2af1b513a5ba2fe1 --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 77 +-- drivers/gpu/drm/msm/msm_atomic.c | 3 +- drivers/gpu/drm/msm/msm_drv.c

[Freedreno] [DPU PATCH 02/15] video: Remove LF copyright in mipi_display.h

2018-06-28 Thread Sean Paul
It's the only change in that file, so... remove it. Signed-off-by: Sean Paul --- include/video/mipi_display.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/video/mipi_display.h b/include/video/mipi_display.h index c83f8a35d765..49a53ef8da96 100644 --- a/include/video/mipi_disp

[Freedreno] [DPU PATCH 00/15] drm/msm: dpu cleanup in msm

2018-06-28 Thread Sean Paul
Same old thing here, more cleanup patches to reduce the amount of dpu code leaking into msm core. Most of this has already been squashed into for-next, because it should be (mostly) uncontraversial and (mostly) code removal. Sean Sean Paul (15): drm/msm: Remove more dpu changes from msm core

Re: [Freedreno] [DPU PATCH 09/11] drm/msm/dpu: Remove unused code and move the header

2018-06-22 Thread Sean Paul
On Wed, May 30, 2018 at 10:50 AM Rajesh Yadav wrote: > > From: Jordan Crouse > > Remove unused code from dpu_io_util.c. The functions are only > used inside of the msm driver so remove the EXPORT_SYMBOL > tags and move the header dpu_io_util.h from include/linux. > > Signed-off-by: Jordan Crouse

[Freedreno] [DPU PATCH] drm/msm: Remove more dpu changes from msm core

2018-06-21 Thread Sean Paul
This patch is removing a bunch more dpu changes that touch msm core. I'm pretty sure the event_thread stuff can go, but I might be wrong about that aspect. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c| 242 +--- drivers/gpu/drm/msm/disp

[Freedreno] [DPU PATCH 1/2] drm/msm: dpu: Remove dpu_format_populate_layout_with_roi()

2018-06-21 Thread Sean Paul
It's unused, so let's get rid of it. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c | 31 - drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h | 16 --- 2 files changed, 47 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_fo

[Freedreno] [DPU PATCH 2/2] drm/msm: dpu: Remove dpu_rect

2018-06-21 Thread Sean Paul
Well, that was a lot stickier than I thought it would be! This patch removes dpu_rect and its helpers in favor of drm_rect and its helpers. Signed-off-by: Sean Paul --- Based on my tracepoints set. drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 86 drivers/gpu/drm/msm/disp/dpu1

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

[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 - .../gpu/drm

[Freedreno] [DPU PATCH 18/19] drm/msm: dpu_dbg: Remove string parsing from DBG_DUMP

2018-06-20 Thread Sean Paul
Now that we don't have arbitrary register dumping, remove the macro and just call dpu_dbg_dump directly. 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

[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
dpu_dbg.[ch] a bit and removes the arbitrary register reads, and evtlog duplication. Finally, the dpu_dbg files are moved into the dpu1 directory. Sean Sean Paul (19): drm/msm: dpu_encoder: Replace DPU_EVT with tracepoints drm/msm: dpu_crtc: Replace DPU_EVT with tracepoints drm/msm: dpu_plane

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

[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 b/drivers/gpu/drm/msm/disp/dpu1

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

[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 14/19] drm/msm: dpu_dbg: Remove dump_all option for dumping registers

2018-06-20 Thread Sean Paul
This can be accomplished via /dev/mem 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 +- drivers/gpu/drm/msm/dpu_dbg.c | 34

[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 +- drivers/gpu/drm/msm

[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

[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

Re: [Freedreno] [DPU PATCH 4/4] drm/msm/dpu: use private obj to track hw resources

2018-06-14 Thread Sean Paul
c->state); > mode = &cstate->base.adjusted_mode; > priv = crtc->dev->dev_private; > + dpu_kms = to_dpu_kms(priv->kms); > + > + /* accessing after swap state. piv_obj.state is the current state */ s/piv_obj/priv_obj/ > + dpu_priv_st

Re: [Freedreno] [DPU PATCH 0/4] Atomic resource management

2018-06-14 Thread Sean Paul
15 insertions(+), 1659 deletions(-) > > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > -- Sean Paul, Software Engineer, Google / Chromium OS ___ Freedreno mailing list Freedreno@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/freedreno

Re: [Freedreno] [DPU PATCH 4/4] drm/msm/dpu: use private obj to track hw resources

2018-06-14 Thread Sean Paul
an 2 mixers. With > the new state based RM, its very unlikely we hit this condition. > In this case, add a comment with "/* This should never happen */" I'm just kidding, that would virtually guarantee that it does happen and we certainly don't n

Re: [Freedreno] [DPU PATCH v3 0/7] clean up DPU custom properties

2018-06-14 Thread Sean Paul
4 drivers/gpu/drm/msm/disp/dpu1/dpu_reg_dma.c > delete mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_reg_dma.h > delete mode 100644 drivers/gpu/drm/msm/msm_prop.c > delete mode 100644 drivers/gpu/drm/msm/msm_prop.h > delete mode 100644 include/uapi/drm/dpu_drm.h > delete mode

Re: [Freedreno] [DPU PATCH v2 2/7] drm/msm/dpu: clean up dpu plane custom properties

2018-06-07 Thread Sean Paul
On Tue, Jun 05, 2018 at 08:45:33PM -0700, Jeykumar Sankaran wrote: > This change removes all the dpu plane custom properties > and its handlers. > > changs in v2: > - remove stale code in blend config(Sean Paul) > - Makefile changes to remove warning flags(Sean Pau

Re: [Freedreno] [DPU PATCH v2 0/7] clean up DPU custom properties

2018-06-07 Thread Sean Paul
pu_reg_dma.c > delete mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_reg_dma.h > delete mode 100644 drivers/gpu/drm/msm/msm_prop.c > delete mode 100644 drivers/gpu/drm/msm/msm_prop.h > delete mode 100644 include/uapi/drm/dpu_drm.h > delete mode 100644 include/uapi/drm/msm_drm_pp.h

Re: [Freedreno] [PATCH v8 1/4] drm/bridge: add support for sn65dsi86 bridge driver

2018-06-05 Thread Sean Paul
driver and create a separate edp panel drivers to handle panel >specific mode information and HW resources (Sean Paul). > - Replace pr_* APIs to DRM_* APIs to log error or debug information >(Sean Paul). > - Remove some of the unnecessary structure/variable from driver (

Re: [Freedreno] [PATCH v8 1/4] drm/bridge: add support for sn65dsi86 bridge driver

2018-06-05 Thread Sean Paul
truct drm_bridge *bridge) > > +{ > > + struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge); > > + unsigned int val = 0; > > here as well > > > +static void ti_sn_bridge_pre_enable(struct drm_bridge *bridge) > > +{ > > + struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge); > > + > > + pm_runtime_get_sync(pdata->dev); > > error check required > -- > ~Vinod -- Sean Paul, Software Engineer, Google / Chromium OS ___ Freedreno mailing list Freedreno@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/freedreno

Re: [Freedreno] [PATCH v8 3/4] drm/panel: add Innolux TV123WAM panel driver support

2018-06-05 Thread Sean Paul
On Tue, Jun 05, 2018 at 11:10:17AM +0530, Sandeep Panda wrote: > Add support for Innolux TV123WAM, which is a 12.3" eDP > display panel with 2160x1440 resolution. > > Changes in v1: > - Add the compatibility string, display_mode and panel_desc >structures in alphab

Re: [Freedreno] [DPU PATCH 4/7] drm/msm/dpu: switch to drm zpos property

2018-06-04 Thread Sean Paul
be true. > so > printing the return value isn't interesting. Also if I was reviewing or casual reading this without the ret print, I would probably leave a comment such as "print the return value" since I don't generally keep track of all possible return values. So printing the return value seems reasonable to me. Sean > > > /* success! finalize initialization */ > > drm_plane_helper_add(plane, &dpu_plane_helper_funcs); > > > > -- > > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > > a Linux Foundation Collaborative Project > > > > ___ > > Freedreno mailing list > > Freedreno@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/freedreno > > -- > The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, > a Linux Foundation Collaborative Project -- Sean Paul, Software Engineer, Google / Chromium OS ___ Freedreno mailing list Freedreno@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/freedreno

Re: [Freedreno] [DPU PATCH 4/7] drm/msm/dpu: switch to drm zpos property

2018-06-04 Thread Sean Paul
zpos_max = DPU_STAGE_MAX - DPU_STAGE_0 - 1; > + } > + > + ret = drm_plane_create_zpos_property(plane, 0, 0, zpos_max); > + if (ret) > + DPU_ERROR("failed to install zpos property, rc = %d\n", ret); > + > /* success! finalize initialization */ > drm_plane_helper_add(plane, &dpu_plane_helper_funcs); > > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > -- Sean Paul, Software Engineer, Google / Chromium OS ___ Freedreno mailing list Freedreno@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/freedreno

Re: [Freedreno] [DPU PATCH 7/7] drm/msm: remove dpu specific uapi header

2018-06-04 Thread Sean Paul
On Wed, May 23, 2018 at 12:31:02PM -0700, Jeykumar Sankaran wrote: > remove unwanted dpu uapi headers exposing custom > payload layouts for custom properties > > Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul > --- > include/uapi/drm/

Re: [Freedreno] [DPU PATCH 6/7] drm/msm: remove msm_prop files

2018-06-04 Thread Sean Paul
On Wed, May 23, 2018 at 12:31:01PM -0700, Jeykumar Sankaran wrote: > Remove hand rolled msm property caching to handle DPU > custom properties. This change also cleans up all its > dependencies to cache and restore respective drm > states. > > Signed-off-by: Jeykumar Sankaran

Re: [Freedreno] [DPU PATCH 5/7] drm/msm/dpu: clean up dpu crtc custom properties

2018-06-04 Thread Sean Paul
On Wed, May 23, 2018 at 12:31:00PM -0700, Jeykumar Sankaran wrote: > Remove dpu crtc custom properties and its handlers. > > Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/Makefile | 1 - > drivers/gpu/drm/msm/disp/dp

Re: [Freedreno] [DPU PATCH 3/7] drm/msm: enable zpos normalization

2018-06-04 Thread Sean Paul
On Wed, May 23, 2018 at 12:30:58PM -0700, Jeykumar Sankaran wrote: > Enable drm core zpos normalization for planes. > > Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/msm_drv.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff

Re: [Freedreno] [DPU PATCH 1/7] drm/msm: remove connector custom properties

2018-06-04 Thread Sean Paul
On Wed, May 23, 2018 at 12:30:56PM -0700, Jeykumar Sankaran wrote: > Cleanup residual connector property enumerations. > > Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/msm_drv.h | 27 --- > 1 file cha

Re: [Freedreno] [DPU PATCH 2/7] drm/msm/dpu: clean up dpu plane custom properties

2018-06-04 Thread Sean Paul
> /* default to opaque blending */ > - fg_alpha = dpu_plane_get_property(pstate, PLANE_PROP_ALPHA); > + fg_alpha = 0XFF; > bg_alpha = 0xFF - fg_alpha; This goes to 0 and the fg_alpha != 0xff checks are always false. So let's clean the rest of the function

Re: [Freedreno] [DPU PATCH v3 5/6] drm/msm: hook up DPU with upstream DSI

2018-06-01 Thread Sean Paul
ack and display port drivers > - compile out dsi-staging driver (separate patch submitted to > remove the driver) > - adapt upstream device hierarchy > > changes in v2: > - remove files not applicable upstream (Sean Paul) > - remove compiled out non-dsi disp

[Freedreno] [PATCH] drm/msm: Fix NULL deref on bind/probe deferral

2018-05-31 Thread Sean Paul
s commit to ensure the arguments to msm_gem_put_iova() are correct (even though that function has been a stub for ~5 years). Correctness FTW! \o/ Fixes: b01884a286b0 drm/msm: use correct aspace pointer in msm_gem_put_iova() Cc: Daniel Mack Cc: Rob Clark Signed-off-by: Sean Paul --- drivers/gpu

Re: [Freedreno] [DPU PATCH v2 5/6] drm/msm: hook up DPU with upstream DSI

2018-05-17 Thread Sean Paul
ack and display port drivers > - compile out dsi-staging driver (separate patch submitted to > remove the driver) > - adapt upstream device hierarchy > > changes in v2: > - remove files not applicable upstream (Sean Paul) > - remove compiled out non-dsi disp

Re: [Freedreno] [DPU PATCH v2 03/12] drm/msm/dpu: add MDSS top level driver for dpu

2018-05-11 Thread Sean Paul
; > > It implements runtime_pm support for resource management. > > Child nodes can control these resources via runtime_pm > > get/put calls on their corresponding devices due to parent > > child relationship defined in dt. > > > > Changes in v2: > >

Re: [Freedreno] [DPU PATCH v2 12/12] drm/msm/dpu: add error handling in dpu_core_perf_crtc_update

2018-05-11 Thread Sean Paul
his function > so there is no way caller can know if the perf request fails. > This change adds error handling code in dpu_core_perf_crtc_update(). > The caller side error handling is not added in this patch. > > Signed-off-by: Rajesh Yadav Cool! Thanks for doing this

Re: [Freedreno] [DPU PATCH v2 11/12] drm/msm/dpu: move dpu_power_handle to dpu folder

2018-05-11 Thread Sean Paul
lict in dpu_unbind > - dropped (Reviewed-by: Sean Paul) due to above change > Reviewed-by: Sean Paul > Signed-off-by: Rajesh Yadav > --- > drivers/gpu/drm/msm/Makefile | 2 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.c | 1 - > driver

Re: [Freedreno] [DPU PATCH v2 10/12] drm/msm/dpu: use runtime_pm calls in dpu_dbg

2018-05-11 Thread Sean Paul
er access). > > Changes in v2: > - resolved conflict in dpu_core_perf_init > - dropped (Reviewed-by: Sean Paul) due to above change Reviewed-by: Sean Paul > > Signed-off-by: Rajesh Yadav > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 7 --- > drivers/g

Re: [Freedreno] [DPU PATCH v2 08/12] drm/msm/dpu: remove power management code from dpu_power_handle

2018-05-11 Thread Sean Paul
> Changes in v2: > - resolved merge conflict in dpu_power_resource_init > - dropped (Reviewed-by: Sean Paul) due to above change > > Signed-off-by: Rajesh Yadav > --- > drivers/gpu/drm/msm/dpu_power_handle.c | 194 > + > drivers/gpu/drm

Re: [Freedreno] [DPU PATCH v2 07/12] drm/msm/dpu: remove clock management code from dpu_power_handle

2018-05-11 Thread Sean Paul
> > Changes in v2: > - remove local variable to hold and return error code > in _dpu_core_perf_set_core_clk_rate() instead return > retcode directly from msm_dss_clk_set_rate() call (Sean Paul) > - dpu_core_perf_init() is called from dpu_kms_hw_init() and

Re: [Freedreno] [DPU PATCH v2 04/12] drm/msm/dpu: create new platform driver for dpu device

2018-05-11 Thread Sean Paul
unctionality. > > The dpu driver implements runtime_pm support for managing clocks > and bus bandwidth etc. > > Changes in v2: > - remove redundant param check from _dpu_kms_hw_destroy (Sean Paul) > - remove explicit calls to devm_kfree (Sean Paul) > -

Re: [Freedreno] [DPU PATCH v2 03/12] drm/msm/dpu: add MDSS top level driver for dpu

2018-05-11 Thread Sean Paul
evices due to parent > child relationship defined in dt. > > Changes in v2: > - merge _dpu_mdss_hw_rev_init to dpu_mdss_init (Sean Paul) > - merge _dpu_mdss_get_intr_sources to dpu_mdss_irq (Sean Paul) > - fix indentation for irq_find_mapping call (Sean Paul) >

Re: [Freedreno] [DPU PATCH 11/11] drm/msm/dpu: move dpu_power_handle to dpu folder

2018-05-10 Thread Sean Paul
kms->base, &kms_funcs); > @@ -1876,6 +1882,7 @@ static int dpu_init(struct platform_device *pdev, > struct drm_device *dev) > > return ret; > > +power_init_fail: Nit: No need to add an empty label, just use clk_rate_error above. With that fixed, Re

Re: [Freedreno] [DPU PATCH 10/11] drm/msm/dpu: use runtime_pm calls in dpu_dbg

2018-05-10 Thread Sean Paul
t; > Signed-off-by: Rajesh Yadav Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 4 +--- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h | 4 > drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 3 +-- > drivers/gpu/drm/msm/dpu_dbg.c

Re: [Freedreno] [DPU PATCH 09/11] drm/msm/dp: remove dpu_power_handle calls from dp driver

2018-05-10 Thread Sean Paul
P device. > For same reason, clock and power management code is > removed from dpu_power_handle. Hence, remove the > dpu_power_handle calls from dp driver. > > Signed-off-by: Rajesh Yadav Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/dp/dp_power.c | 32 +--

Re: [Freedreno] [DPU PATCH 08/11] drm/msm/dpu: remove power management code from dpu_power_handle

2018-05-10 Thread Sean Paul
f-by: Rajesh Yadav Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/dpu_power_handle.c | 190 > + > drivers/gpu/drm/msm/dpu_power_handle.h | 2 - > 2 files changed, 1 insertion(+), 191 deletions(-) > > diff --git a/drivers/gpu/drm/msm/

Re: [Freedreno] [DPU PATCH 07/11] drm/msm/dpu: remove clock management code from dpu_power_handle

2018-05-10 Thread Sean Paul
goto end; > - } > - > rc = dpu_power_parse_dt_supply(pdev, mp); > if (rc) { > pr_err("device vreg supply parsing failed\n"); > - goto parse_vreg_err; > + goto end; Just return directly and remove the end label

Re: [Freedreno] [DPU PATCH 06/11] drm/msm/dpu: use runtime_pm calls on dpu device

2018-05-10 Thread Sean Paul
or all child nodes > (mdp5/dpu, dsi, dp etc) is done by parent MDSS device/driver > via runtime_pm due to parent child relationship. > > Signed-off-by: Rajesh Yadav Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_core_irq.c | 8 ++--- > drivers/gp

Re: [Freedreno] [DPU PATCH 05/11] drm/msm/dpu: update dpu sub-block offsets wrt dpu base address

2018-05-10 Thread Sean Paul
> Signed-off-by: Rajesh Yadav Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c| 68 > +++ > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 18 +++--- > 2 files changed, 43 insertions(+), 43 deletions(-) > > dif

Re: [Freedreno] [DPU PATCH 01/11] drm/msm: remove redundant pm_runtime_enable call from msm_drv

2018-05-10 Thread Sean Paul
_enable call from msm_drv. > > Signed-off-by: Rajesh Yadav Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/msm_drv.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c > index ebc40a9..9bb436f 100644 >

Re: [Freedreno] [DPU PATCH 04/11] drm/msm/dpu: create new platform driver for dpu device

2018-05-10 Thread Sean Paul
t; + bool rpm_enabled; > + struct dss_module_power mp; > }; > > struct vsync_info { > diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c > index a0e73ea..5470529 100644 > --- a/drivers/gpu/drm/msm/msm_drv.c > +++ b/drivers/gpu/drm/msm/msm_drv.c

Re: [Freedreno] [DPU PATCH 03/11] drm/msm/dpu: add MDSS top level driver for dpu

2018-05-10 Thread Sean Paul
dev_err(dev, "failed to populate children devices\n"); > @@ -1686,7 +1698,7 @@ static int msm_pdev_remove(struct platform_device *pdev) > { .compatible = "qcom,mdp4", .data = (void *)KMS_MDP4 }, > { .compatible = "qcom,mdss", .data = (void *)KMS

Re: [Freedreno] [DPU PATCH 02/11] drm/msm/mdp5: subclass msm_mdss for mdp5

2018-05-10 Thread Sean Paul
t; Signed-off-by: Rajesh Yadav Hi Rajesh, Thanks for the patch, everything looks good to me aside from one tiny indent fix. With that resolved, please add my Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c | 154 > -- > drivers/gp

Re: [Freedreno] [PATCH v5 3/4] drm/panel: add Innolux TV123WAM panel driver support

2018-05-02 Thread Sean Paul
; .data = &winstar_wf35ltiacd, > }, { > + .compatible = "innolux,tv123wam", > + .data = &innolux_tv123wam, > + }, { These are alphabetically ordered, as are the drm_display_mode/panel_desc structs. Sean >

Re: [Freedreno] [PATCH v5 1/4] drm/bridge: add support for sn65dsi86 bridge driver

2018-05-02 Thread Sean Paul
driver and create a separate edp panel drivers to handle panel >specific mode information and HW resources (Sean Paul). > - Replace pr_* APIs to DRM_* APIs to log error or debug information >(Sean Paul). > - Remove some of the unnecessary structure/variable from driver (

Re: [Freedreno] [[RFC]DPU PATCH 3/4] drm/panel: add Innolux TV123WAM eDP panel driver

2018-04-20 Thread Sean Paul
dev); > + > + drm_panel_detach(&pdata->base); > + drm_panel_remove(&pdata->base); > + > + innolux_edp_2k_panel_disable(&pdata->base); > + innolux_edp_2k_panel_unprepare(&pdata->base); > + > + if (pdata->backlight) > +

Re: [Freedreno] [[RFC]DPU PATCH 1/4] drm/bridge: add support for sn65dsi86 bridge driver

2018-04-20 Thread Sean Paul
driver and create a separate edp panel drivers to handle panel >specific mode information and HW resources (Sean Paul). > - Replace pr_* APIs to DRM_* APIs to log error or debug information >(Sean Paul). > - Remove some of the unnecessary structure/variable from driver (

[Freedreno] [DPU PATCH] drm/msm: dpu: Fix build warnings

2018-04-20 Thread Sean Paul
Signed-off-by: Sean Paul --- .../gpu/drm/msm/disp/dpu1/dpu_color_processing.c | 5 +++-- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_reg_dma_v1.c | 14 +++--- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 9

Re: [Freedreno] [DPU PATCH v3 2/2] drm/msm/dsi: Use one connector for dual DSI mode

2018-04-19 Thread Sean Paul
ector/bridge. > > Changes in V2: > -Removed Change-Id from the commit text tags. > -Remove extra parentheses > > Changes in V3: > -None > > Signed-off-by: Chandan Uddaraju Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/dsi/dsi.c | 3 + &

Re: [Freedreno] [DPU PATCH v3 2/2] drm/msm/dsi: Use one connector for dual DSI mode

2018-04-19 Thread Sean Paul
ector/bridge. > > Changes in V2: > -Removed Change-Id from the commit text tags. > -Remove extra parentheses > > Changes in V3: > -None > > Signed-off-by: Chandan Uddaraju Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/dsi/dsi.c | 3 + &

Re: [Freedreno] [DPU PATCH v3 1/2] drm/msm/dsi: adjust dsi timing for dual dsi mode

2018-04-19 Thread Sean Paul
; --Removed Change-Id from the commit text tags. > > Changes in V3: > --Instead of adjusting the DRM mode structure, divide > the clocks and horizontal timings in DSI host just > before configuring the values. > > Signed-off-by: Chandan Uddaraju Reviewed-by: Sean Pau

Re: [Freedreno] [DPU PATCH 6/6] drm/msm: remove dsi-staging driver

2018-04-19 Thread Sean Paul
_calc.c | 676 > .../gpu/drm/msm/dsi-staging/dsi_phy_timing_calc.h | 144 - > .../gpu/drm/msm/dsi-staging/dsi_phy_timing_v2_0.c | 126 - > .../gpu/drm/msm/dsi-staging/dsi_phy_timing_v3_0.c | 107 - > drivers/gpu/drm/msm/dsi-staging/dsi_pwr.c | 365 -- > drivers/gpu/drm/m

Re: [Freedreno] [DPU PATCH 5/6] drm/msm: hook up DPU with upstream DSI

2018-04-19 Thread Sean Paul
t; @@ -1521,6 +1420,7 @@ static int dpu_kms_atomic_check(struct msm_kms *kms, > dpu_kms->aspace[domain] : NULL; > } > > +#ifdef CONFIG_DRM_MSM_DISPLAYPORT This seems suspicious. Why different behavior depending on DisplayPort? The function loops through all connectors, so

[Freedreno] [PULL] msm fixes/improvements

2018-04-18 Thread Sean Paul
value for video done waits drm/msm/dsi: check video mode engine status before waiting drm/msm/dsi: implement auto PHY timing calculator for 10nm PHY Jeykumar Sankaran (1): drm/msm: Add modifier to mdp_get_format arguments Sean Paul (1): drm/msm: Mark the crtc->sta

Re: [Freedreno] [[RFC]DPU PATCH 0/4] Add suppport for sn65dsi86 bridge chip and Innolux 2k edp panel driver

2018-04-18 Thread Sean Paul
> create mode 100644 drivers/gpu/drm/bridge/ti-sn65dsi86.c > create mode 100644 drivers/gpu/drm/panel/panel-innolux-tv123wam.c > > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > -- S

Re: [Freedreno] [[RFC]DPU PATCH 1/4] drm/bridge: add support for sn65dsi86 bridge driver

2018-04-18 Thread Sean Paul
goto err_dt_parse; > + } > + > + ret = ti_sn_bridge_parse_gpios(pdata); > + if (ret) { > + DRM_ERROR("failed to parse gpios from DT\n"); > + goto err_dt_parse; > + } > + > + ret = ti_sn_bridge_parse_regulators(pdata);

Re: [Freedreno] [[RFC]DPU PATCH 2/4] dt-bindings: drm/bridge: Document sn65dsi86 bridge bindings

2018-04-18 Thread Sean Paul
dp_bridge_in: endpoint { > + remote-endpoint = <&dsi_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + > + edp_bridge_out: endpoint { > +

Re: [Freedreno] [DPU PATCH v2 2/2] drm/panel: add backlight control support for truly panel

2018-04-18 Thread Sean Paul
hing fancy in the kernel aside from scaling the brightness level down twice. I assume the magic is in userspace. My initial reaction was that the scaling factor should just be applied in userspace. Especially since the scaling factor reduces the resolution of the backlight, and that's not immediately

Re: [Freedreno] [DPU PATCH v2 2/2] drm/panel: add backlight control support for truly panel

2018-04-18 Thread Sean Paul
;s hard enough to accommodate open source u/s as it is. Sean > > If this isnt a convincing reason enough to have its own sysfs node path, I > will use > your approach. > > Let me know your comments or if this is still not clear. > > > _____

Re: [Freedreno] [DPU PATCH 4/6] drm/msm: strip down custom event ioctl's

2018-04-17 Thread Sean Paul
On Mon, Apr 16, 2018 at 11:22:19AM -0700, Jeykumar Sankaran wrote: > Remove custom ioctl support in SDM845 which allows > user space to register/unregister for hw events. > > Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/disp/dpu

Re: [Freedreno] [DPU PATCH 3/6] drm/msm: remove panel autorefresh support for SDM845

2018-04-17 Thread Sean Paul
ESH_CONFIG, refresh_cfg); > - DPU_EVT32(pp->idx - PINGPONG_0, refresh_cfg); > - > - return 0; > -} > - > -static int dpu_hw_pp_get_autorefresh_config(struct dpu_hw_pingpong *pp, > - struct dpu_hw_autorefresh *cfg) > -{ > - struct dpu_hw_

Re: [Freedreno] [DPU PATCH 2/6] drm/msm: remove support for ping pong split topology

2018-04-17 Thread Sean Paul
mply the driver programming, striping off the support > for SDM845. > > Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_connector.c | 2 +- > drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 19 --- > drivers/

Re: [Freedreno] [DPU PATCH 1/6] drm/msm: remove display stream compression(DSC) support for SM845

2018-04-17 Thread Sean Paul
enum msm_display_compression_type comp_type; > spinlock_t *enc_spinlock; > }; > > @@ -479,8 +475,7 @@ static inline enum dpu_3d_blend_mode > dpu_encoder_helper_get_3d_blend_mode( > > topology = dpu_connector_get_topology_name(phys_enc->con

Re: [Freedreno] [DPU PATCH v2 1/2] drm/msm/dsi: adjust dsi timing for dual dsi mode

2018-04-17 Thread Sean Paul
if (other_dsi) > + msm_dsi_host_adjust_timing_config(other_dsi->host); > + } > + > } > > static const struct drm_connector_funcs dsi_mgr_connector_funcs = { > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > -- Sean Paul, Software Engineer, Google / Chromium OS ___ Freedreno mailing list Freedreno@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/freedreno

Re: [Freedreno] [DPU PATCH v3 1/2] drm/msm/dsi: check video mode engine status before waiting

2018-04-17 Thread Sean Paul
i_sw_reset(msm_host); > - > + msm_host->enabled = false; I thought this was moving to the start of the function? > return 0; > } > > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > -- Sean Paul, Software Engineer, Google / Chromium OS ___ Freedreno mailing list Freedreno@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/freedreno

Re: [Freedreno] [DPU PATCH v2 1/2] drm/msm/dsi: check video mode engine status before waiting

2018-04-16 Thread Sean Paul
On Mon, Apr 16, 2018 at 10:44:57AM -0700, abhin...@codeaurora.org wrote: > Hi Sean > > Thanks for reviewing. > > Reply inline. > > On 2018-04-16 10:07, Sean Paul wrote: > > On Fri, Apr 13, 2018 at 03:04:48PM -0700, abhin...@codeaurora.org wrote: >

Re: [Freedreno] [DPU PATCH v2 1/2] drm/msm/dsi: check video mode engine status before waiting

2018-04-16 Thread Sean Paul
On Fri, Apr 13, 2018 at 03:04:48PM -0700, abhin...@codeaurora.org wrote: > On 2018-04-13 14:10, abhin...@codeaurora.org wrote: > > Hi Sean > > > > Thanks for the review. > > > > Reply inline. > > > > On 2018-04-13 13:26, Sean Paul wrote: > >

Re: [Freedreno] [DPU PATCH v2 2/2] drm/msm/dsi: implement auto PHY timing calculator for 10nm PHY

2018-04-16 Thread Sean Paul
On Fri, Apr 13, 2018 at 01:52:17PM -0700, abhin...@codeaurora.org wrote: > On 2018-04-13 13:29, Sean Paul wrote: > > On Tue, Apr 10, 2018 at 06:54:07PM -0700, Abhinav Kumar wrote: > > > Currently the DSI PHY timings are hard-coded for a specific panel > > > for the 10n

Re: [Freedreno] [DPU PATCH 2/2] drm/panel: add backlight control support for truly panel

2018-04-16 Thread Sean Paul
On Fri, Apr 13, 2018 at 01:59:29PM -0700, abhin...@codeaurora.org wrote: > Hi Sean > > Thanks for the comments. > > Some replies inline. > > On 2018-04-13 13:46, Sean Paul wrote: > > On Sat, Apr 07, 2018 at 12:06:53AM -0700, Abhinav Kumar wrote: > > > Reg

Re: [Freedreno] [[RFC]DPU PATCH 1/2] drm/bridge: add support for sn65dsi86 bridge driver

2018-04-16 Thread Sean Paul
On Mon, Apr 16, 2018 at 11:32:50AM +0530, spa...@codeaurora.org wrote: > On 2018-04-14 00:59, Sean Paul wrote: > > On Fri, Apr 13, 2018 at 10:53:00AM +0530, Sandeep Panda wrote: > > > Add support for TI's sn65dsi86 dsi2edp bridge chip. > > > The chip converts DSI

Re: [Freedreno] [DPU PATCH v2 2/2] drm/panel: add backlight control support for truly panel

2018-04-16 Thread Sean Paul
On Mon, Apr 16, 2018 at 12:41 PM Bjorn Andersson wrote: > On Sat 14 Apr 00:25 PDT 2018, Abhinav Kumar wrote: > > Register truly panel as a backlight led device and > > provide methods to control its backlight operation. > > > > Changes in v2: > > - Removed redundant NULL checks > > - Arranged he

Re: [Freedreno] [DPU PATCH 2/2] drm/panel: add backlight control support for truly panel

2018-04-13 Thread Sean Paul
put_device(&secondary->dev); > return ret; > } > + > + ret = truly_backlight_setup(ctx); > + if (ret) { > + put_device(&secondary->dev); > + return ret; > +

<    2   3   4   5   6   7   8   9   >