[Freedreno] [PATCH v1] msm:disp:dpu1: add support for display for SC7180 target

2019-11-18 Thread Kalyan Thota
Add display hw catalog changes for SC7180 target. Changes in v1: 1) Configure register offsets and capabilities for the display hw blocks. This patch has dependency on the below series https://patchwork.kernel.org/patch/11243111/ Signed-off-by: Kalyan Thota Signed-off-by: Shubhashree Dhar

[Freedreno] [PATCH v1] msm:disp:dpu1: setup display datapath for SC7180 target

2019-11-18 Thread Kalyan Thota
the MDP_CTL__TOP and newly added ACTIVE registers to handle other sub blocks such as interface (INTF) resources, PingPong buffer / Layer Mixer, Display Stream Compression (DSC) resources, writeback (WB) and 3D Merge selections that are part of the datapath. Kalyan Thota (1): msm:disp:dpu1

[Freedreno] [PATCH v1] msm:disp:dpu1: setup display datapath for SC7180 target

2019-11-18 Thread Kalyan Thota
/11249423/ Signed-off-by: Kalyan Thota Signed-off-by: Shubhashree Dhar Signed-off-by: Raviteja Tamatam --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 4 +- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 21 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 1 + drivers

[Freedreno] [PATCH v3] msm:disp:dpu1: add support for display for SC7180 target

2019-11-20 Thread Kalyan Thota
Tamatam Signed-off-by: Kalyan Thota --- .../devicetree/bindings/display/msm/dpu.txt| 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 189 +++-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 4 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c | 3

[Freedreno] [PATCH v3] msm:disp:dpu1: setup display datapath for SC7180 target

2019-11-20 Thread Kalyan Thota
-by: Raviteja Tamatam Signed-off-by: Raviteja Tamatam Signed-off-by: Kalyan Thota --- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 21 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 84 +- drivers/gpu/drm

[Freedreno] [PATCH v2] msm:disp:dpu1: add support for display for SC7180 target

2019-11-20 Thread Kalyan Thota
msg (Stephen Boyd). This patch has dependency on the below series https://patchwork.kernel.org/patch/11251761/ Co-developed-by: Shubhashree Dhar Signed-off-by: Shubhashree Dhar Co-developed-by: Raviteja Tamatam Signed-off-by: Raviteja Tamatam Signed-off-by: Kalyan Thota --- drivers/gpu/drm

[Freedreno] [PATCH v2] msm:disp:dpu1: setup display datapath for SC7180 target

2019-11-20 Thread Kalyan Thota
-off-by: Kalyan Thota --- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 21 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 84 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h | 24

[Freedreno] [PATCH 3/4] msm:disp:dpu1: setup display datapath for SC7180 target

2019-11-25 Thread Kalyan Thota
-by: Raviteja Tamatam Signed-off-by: Raviteja Tamatam Signed-off-by: Kalyan Thota --- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 21 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 84 +- drivers/gpu/drm

[Freedreno] [PATCH 2/4] msm:disp:dpu1: add support for display for SC7180 target

2019-11-25 Thread Kalyan Thota
-by: Shubhashree Dhar Co-developed-by: Raviteja Tamatam Signed-off-by: Raviteja Tamatam Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 189 +++-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 4 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c | 3

[Freedreno] [PATCH 4/4] msm:disp:dpu1: add mixer selection for display topology

2019-11-25 Thread Kalyan Thota
mixer selection in the display topology is based on multiple factors 1) mixers available in the hw 2) interfaces to be enabled 3) merge capability change will pickup mixer as per the topology need. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 21

[Freedreno] [PATCH 1/4] dt-bindings: msm:disp: add sc7180 DPU variant

2019-11-25 Thread Kalyan Thota
Add a compatible string to support sc7180 dpu version. Signed-off-by: Kalyan Thota --- Documentation/devicetree/bindings/display/msm/dpu.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/dpu.txt b/Documentation/devicetree

[Freedreno] [PATCH 0/4] Add support for SC7180 display

2019-11-25 Thread Kalyan Thota
the MDP_CTL__TOP and newly added ACTIVE registers to handle other sub blocks such as interface (INTF) resources, PingPong buffer / Layer Mixer, Display Stream Compression (DSC) resources, writeback (WB) and 3D Merge selections that are part of the datapath. Kalyan Thota (4): dt-bindings: msm:disp

[Freedreno] [PATCH] msm:disp:dpu1: add UBWC support for display on SC7180

2020-01-23 Thread Kalyan Thota
Add UBWC global configuration for display on SC7180 target. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c | 58 +++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c b/drivers/gpu/drm

[Freedreno] [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-03-16 Thread Kalyan Thota
s device suspend, since usage count is already incremented, runtime suspend was not getting called and it kept the clocks on which resulted in target not entering into XO shutdown. Add changes to manage runtime devices during pm sleep. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu

[Freedreno] [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-04-17 Thread Kalyan Thota
API's to trigger callbacks (Doug). Changes in v4: - Check the return values of pm_runtime_force_suspend and pm_runtime_force_resume API's and pass appropriately (Doug). Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 ++ drivers/gpu/drm/msm/dsi/dsi.c | 2 ++

[Freedreno] [PATCH] drm/msm/dpu: add support for clk and bw scaling for display

2020-04-01 Thread Kalyan Thota
This change adds support to scale src clk and bandwidth as per composition requirements. Interconnect registration for bw has been moved to mdp device node from mdss to facilitate the scaling. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 106

[Freedreno] [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-03-31 Thread Kalyan Thota
API's to trigger callbacks (Doug). Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 ++ drivers/gpu/drm/msm/dsi/dsi.c | 2 ++ drivers/gpu/drm/msm/msm_drv.c | 4 3 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/dri

[Freedreno] [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-03-30 Thread Kalyan Thota
_kms_disable_dpu (Rob Clark). Changes in v2: - Avoid using suspend_late to reset the usagecount as suspend_late might not be called during suspend call failures (Doug). Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 33 + dri

[Freedreno] [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-05-01 Thread Kalyan Thota
complete phases there by ensuring that clks are on when panel off commands are being processed. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 ++ drivers/gpu/drm/msm/dsi/dsi.c | 2 ++ drivers/gpu/drm/msm/msm_drv.c | 20

[Freedreno] [PATCH] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-03-23 Thread Kalyan Thota
in the function _dpu_kms_disable_dpu (Rob Clark). Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 28 drivers/gpu/drm/msm/dsi/dsi.c | 7 +++ drivers/gpu/drm/msm/msm_drv.c | 14 ++ drivers/gpu/drm/msm/msm_kms.h

[Freedreno] [PATCH 1/2] drm/msm/dpu: add support for color processing blocks in dpu driver

2020-03-24 Thread Kalyan Thota
-by: Kalyan Thota --- drivers/gpu/drm/msm/Makefile | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 2 + drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 12 +++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 39 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h

[Freedreno] [PATCH 2/2] drm/msm/dpu: add support for pcc color block in dpu driver

2020-03-24 Thread Kalyan Thota
This change adds support for color correction sub block for SC7180 device. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 77 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 9 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c| 49

[Freedreno] [v2] drm/msm/dpu: Fix reservation failures in modeset

2020-08-07 Thread Kalyan Thota
-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c index 63976dc..50a98d1 100644 --- a/drivers/gpu/drm

[Freedreno] [v3] drm/msm/dpu: Fix reservation failures in modeset

2020-08-10 Thread Kalyan Thota
in v2: - Handle dpu_kms_get_global_state API failure as it may return EDEADLK (swboyd). Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [v1] drm/msm/dpu: Fix reservation failures in modeset

2020-08-05 Thread Kalyan Thota
--> old, new modeset disables --> virt disable modeset enable --> virt modeset Allow reservations to be cleared only when crtc active is false as in that case there wont be any modeset enable after disable. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_enco

[Freedreno] [v1] drm/msm/dpu: update reservations in commit path

2020-08-04 Thread Kalyan Thota
the composition if resources are not available. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c

[Freedreno] [v1] drm/msm/dpu: add support for clk and bw scaling for display

2020-06-18 Thread Kalyan Thota
This change adds support to scale src clk and bandwidth as per composition requirements. Interconnect registration for bw has been moved to mdp device node from mdss to facilitate the scaling. Changes in v1: - Address armv7 compilation issues with the patch (Rob) Signed-off-by: Kalyan Thota

[Freedreno] [v8] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-06-18 Thread Kalyan Thota
ff the resources. Changes in v7: - Add "__maybe_unused" to the functions to avoid compilation failures. Cleanup unnecessary configs (Doug). Signed-off-by: Kalyan Thota Reviewed-by: Douglas Anderson --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 + drivers/gpu/drm/msm/dsi/dsi.c

[Freedreno] [PATCH] drm/msm/dpu: add support for dither block in display

2020-06-24 Thread Kalyan Thota
This change enables dither block for primary interface in display. Enabled for 6bpc in the current version. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 45 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 66

[Freedreno] [v2] drm/msm/dpu: add support for dither block in display

2020-06-25 Thread Kalyan Thota
This change enables dither block for primary interface in display. Enabled for 6bpc in the current version. Changes in v1: - Remove redundant error checks (Rob). Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 39 +++ drivers/gpu/drm/msm/disp

[Freedreno] [v1] drm/msm/dpu: enumerate second cursor pipe for external interface

2020-06-25 Thread Kalyan Thota
Setup an RGB HW pipe as cursor which can be used on secondary interface. For SC7180 2 HW pipes are enumerated as cursors 1 - primary interface 2 - secondary interface Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 12 ++-- 1 file changed, 6 insertions

[Freedreno] [PATCH v6] drm/msm/dpu: ensure device suspend happens during PM sleep

2020-06-04 Thread Kalyan Thota
ff the resources. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 + drivers/gpu/drm/msm/dsi/dsi.c | 2 + drivers/gpu/drm/msm/msm_drv.c | 67 - 3 files changed, 37 insertions(+), 34 deletions(-) diff --git a/drivers/

[Freedreno] [PATCH 2/3] arm64: dts: sc7180: add bus clock to mdp node for sc7180 target

2020-07-16 Thread Kalyan Thota
From: Krishna Manikandan Move the bus clock to mdp device node,in order to facilitate bus band width scaling on sc7180 target. The parent device MDSS will not vote for bus bw, instead the vote will be triggered by mdp device node. Since a minimum vote is required to turn on bus clock, move the

[Freedreno] [PATCH 3/3] drm/msm/dpu: add support for clk and bw scaling for display

2020-07-16 Thread Kalyan Thota
This change adds support to scale src clk and bandwidth as per composition requirements. Interconnect registration for bw has been moved to mdp device node from mdss to facilitate the scaling. Changes in v1: - Address armv7 compilation issues with the patch (Rob) Signed-off-by: Kalyan Thota

[Freedreno] [PATCH 1/3] arm64: dts: sc7180: add interconnect bindings for display

2020-07-16 Thread Kalyan Thota
From: Krishna Manikandan This change adds the interconnect bindings to the MDSS node. This will establish Display to DDR path for bus bandwidth voting. Changes in v2: - Change in commit message(Matthias Kaehlcke) Changes in v3: - Updated commit message to include

[Freedreno] [v1] drm/msm/dpu: Fix scale params in plane validation

2020-07-30 Thread Kalyan Thota
Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c index 6379fe1..e46dcb9 100644 --- a/drivers/gpu/drm/msm/dis

[Freedreno] [v1] drm/msm/dpu: consider vertical front porch in the prefill bw calculation

2020-11-25 Thread Kalyan Thota
to fill the latency lines. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c index 7ea90d2..315b999

[Freedreno] [v1] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu driver

2020-12-14 Thread Kalyan Thota
Turn off vblank irqs immediately as soon as drm_vblank_put is requested so that there are no irqs triggered during idle state. This will reduce cpu wakeups and help in power saving. The change also enable driver timestamp for vblanks. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp

[Freedreno] [v2] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu driver

2020-12-18 Thread Kalyan Thota
vblank timestamp support. (Rob) - Add changes to provide vblank counter from dpu driver. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 80 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c| 30 drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [RFC] drm/msm/disp/dpu1: add support for inline rotation in dpu driver

2021-07-03 Thread Kalyan Thota
Add inline rotation support in dpu driver. This change adds rotation config for SC7280 target. Change-Id: I15861dc03422274ffd823fc0fc2c1e47909bb22c Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 47 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h

[Freedreno] [RFC] Inline rotation support in dpu driver

2021-07-03 Thread Kalyan Thota
check. 2) If a display composition fails in atomic check due to any of the restrictions in overlays can chrome compositor switch it back to the GPU and re trigger the commit ? posting it as RFC as validation is not complete, please share early comments on this. Kalyan Thota (1): drm/msm/disp

[Freedreno] [v1] drm/msm/disp/dpu1: add safe lut config in dpu driver

2021-07-09 Thread Kalyan Thota
the invalidaiton process thus impacting the performance on NRT clients such as eMMC and NVMe. Validated this change on SC7280, With this change eMMC performance has improved significantly. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 5 + 1 file changed, 5

[Freedreno] [v1] drm/msm/disp/dpu1: fix warn stack reported during dpu resume

2021-03-31 Thread Kalyan Thota
x the WARN condition appropriately. Reported-by: Steev Klimaszewski Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 8 +--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 9 + drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c | 11 ++- 3 files changed, 20 insert

[Freedreno] [v1] drm/msm/disp/dpu1: program 3d_merge only if block is attached

2021-04-02 Thread Kalyan Thota
Update the 3d merge as active in the data path only if the hw block is selected in the configuration. Reported-by: Stephen Boyd Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm

[Freedreno] [v1] drm/msm/disp/dpu1: fix display underruns during modeset.

2021-03-19 Thread Kalyan Thota
atomic check when there is no modeset enable. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c b

[Freedreno] [v1] drm/msm/disp/dpu1: icc path needs to be set before dpu runtime resume

2021-03-22 Thread Kalyan Thota
From: Kalyan Thota DPU runtime resume will request for a min vote on the AXI bus as it is a necessary step before turning ON the AXI clock. The change does below 1) Move the icc path set before requesting runtime get_sync. 2) remove the dependency of hw catalog for min ib vote

[Freedreno] [v1] drm/msm/disp/dpu1: fix warning reported by kernel bot in dpu driver

2021-03-04 Thread Kalyan Thota
Fix a warning, pointing to an early deference of a variable before check. This bug was introduced in the following commit. commit 4259ff7ae509 ("drm/msm/dpu: add support for pcc color block in dpu driver") Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Ka

[Freedreno] [v3] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu

2021-02-12 Thread Kalyan Thota
From: Kalyan Thota Set the flag vblank_disable_immediate = true to turn off vblank irqs immediately as soon as drm_vblank_put is requested so that there are no irqs triggered during idle state. This will reduce cpu wakeups and help in power saving. To enable vblank_disable_immediate flag

[Freedreno] [v3] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu

2021-02-12 Thread Kalyan Thota
vblank timestamp support. (Rob) - Add changes to provide vblank counter from dpu driver. Changes in v2: - fix warn stack reported by Rob with v2 patch Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c| 80 + drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [v4] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu driver

2021-02-18 Thread Kalyan Thota
vblank timestamp support. (Rob). - Add changes to provide vblank counter from dpu driver. Changes in v2: - Fix warn stack reported by Rob Clark with v2 patch. Changes in v3: - Move back to HW frame counter (Rob). Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c

[Freedreno] [v2] drm/msm/disp/dpu1: add safe lut config in dpu driver

2021-08-03 Thread Kalyan Thota
for display for SC7280 target) Signed-off-by: Kalyan Thota Tested-by: Sai Prakash Ranjan (sc7280, sc7180) --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [Resend v3] drm/msm/disp/dpu1: add safe lut config in dpu driver

2021-08-04 Thread Kalyan Thota
hash (stephen) - Resend patch adding reviewed by tag - Resend patch adding correct format for pushing into stable tree (Greg) Fixes: 591e34a091d1 ("drm/msm/disp/dpu1: add support for display for SC7280 target") Cc: sta...@vger.kernel.org Signed-off-by: Kalyan Thota Reviewed-by: Dmitry

[Freedreno] [Resend v3] drm/msm/disp/dpu1: add safe lut config in dpu driver

2021-08-04 Thread Kalyan Thota
hash (stephen) - Resend patch adding reviewed by tag Fixes: 591e34a091d1 ("drm/msm/disp/dpu1: add support for display for SC7280 target") Signed-off-by: Kalyan Thota Reviewed-by: Dmitry Baryshkov Tested-by: Sai Prakash Ranjan (sc7280, sc7180) --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw

[Freedreno] [v3] drm/msm/disp/dpu1: add safe lut config in dpu driver

2021-08-04 Thread Kalyan Thota
hash (stephen) Fixes: 591e34a091d1 (drm/msm/disp/dpu1: add support for display for SC7280 target) Signed-off-by: Kalyan Thota Tested-by: Sai Prakash Ranjan (sc7280, sc7180) --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm

[Freedreno] [v2] drm/msm/disp/dpu1: set default group ID for CTL.

2021-10-29 Thread Kalyan Thota
New required programming in CTL for SC7280. Group ID informs HW of which VM owns that CTL. Force this group ID to default/disabled until virtualization support is enabled in SW. Changes in v1: - Fix documentation and add descritpion for the change (Stephen) Signed-off-by: Kalyan Thota

[Freedreno] [v1] drm/msm/disp/dpu1: set default group ID for CTL.

2021-10-28 Thread Kalyan Thota
From: Kalyan Thota New required programming in CTL for SC7280. Group ID informs HW of which VM owns that CTL. Force this group ID to default/disabled until virtualization support is enabled in SW. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- drivers

Re: [Freedreno] [v1 2/2] drm/msm/disp/dpu1: enable crtc color management based on encoder topology

2022-06-27 Thread Kalyan Thota
we framework code query for the property before issuing a commit for the frame after modeset ? Thanks, Kalyan > -Original Message- > From: Dmitry Baryshkov > Sent: Tuesday, June 21, 2022 4:43 PM > To: Kalyan Thota (QUIC) > Cc: y...@qualcomm.com; dri-de...@lists.freedesk

[Freedreno] [v1 1/2] drm/msm/disp/dpu1: add dspp support for sc7280

2022-06-21 Thread Kalyan Thota
Add destination side post processing hw block support in sc7280. This hwblock enablement is necessary to support color features like CT Matix (Ex: Night Light feature) Change-Id: Iba7d5e1693b06cede2891f5b998466070a77c6ef Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [v1 2/2] drm/msm/disp/dpu1: enable crtc color management based on encoder topology

2022-06-21 Thread Kalyan Thota
ned-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c| 8 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h| 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 20 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 5 + drivers/gpu/drm/msm/disp/d

[Freedreno] [v2] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2022-09-02 Thread Kalyan Thota
Flush mechanism for DSPP blocks has changed in sc7280 family, it allows individual sub blocks to be flushed in coordination with master flush control. Representation: master_flush && (PCC_flush | IGC_flush .. etc ) This change adds necessary support for the above design. Changes in v1: - Few

Re: [Freedreno] [v1] drm/msm/disp/dpu1: add support for hierarchical flush for dspp in sc7280

2022-09-02 Thread Kalyan Thota
>-Original Message- >From: Dmitry Baryshkov >Sent: Friday, August 26, 2022 5:02 PM >To: Kalyan Thota ; Kalyan Thota (QUIC) >; diand...@chromium.org >Cc: dri-de...@lists.freedesktop.org; linux-arm-...@vger.kernel.org; >freedreno@lists.freedesktop.org; devicet...@v

[Freedreno] [v5] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2022-09-14 Thread Kalyan Thota
Flush mechanism for DSPP blocks has changed in sc7280 family, it allows individual sub blocks to be flushed in coordination with master flush control. Representation: master_flush && (PCC_flush | IGC_flush .. etc ) This change adds necessary support for the above design. Changes in v1: - Few

[Freedreno] [v3] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2022-09-08 Thread Kalyan Thota
Flush mechanism for DSPP blocks has changed in sc7280 family, it allows individual sub blocks to be flushed in coordination with master flush control. Representation: master_flush && (PCC_flush | IGC_flush .. etc ) This change adds necessary support for the above design. Changes in v1: - Few

[Freedreno] [v4] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2022-09-08 Thread Kalyan Thota
Flush mechanism for DSPP blocks has changed in sc7280 family, it allows individual sub blocks to be flushed in coordination with master flush control. Representation: master_flush && (PCC_flush | IGC_flush .. etc ) This change adds necessary support for the above design. Changes in v1: - Few

[Freedreno] [Resend v4] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2022-09-21 Thread Kalyan Thota
4: - Use shorter version for unsigned int (Stephen) Signed-off-by: Kalyan Thota Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 5 +++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 4 +++ drivers/gpu/drm/

Re: [Freedreno] [v5] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2022-10-01 Thread Kalyan Thota
>-Original Message- >From: Dmitry Baryshkov >Sent: Friday, September 30, 2022 1:59 PM >To: Doug Anderson ; Kalyan Thota (QUIC) > >Cc: y...@qualcomm.com; dri-devel ; linux-arm- >msm ; freedreno >; open list:OPEN FIRMWARE AND FLATTENED >DEVICE TREE BINDINGS ;

[Freedreno] [v1] drm/msm/disp/dpu1: add support for hierarchical flush for dspp in sc7280

2022-08-04 Thread Kalyan Thota
Flush mechanism for DSPP blocks has changed in sc7280 family, it allows individual sub blocks to be flushed in coordination with master flush control. representation: master_flush && (PCC_flush | IGC_flush .. etc ) This change adds necessary support for the above design. Signed-off-by

Re: [Freedreno] [v1] drm/msm/disp/dpu1: add support for hierarchical flush for dspp in sc7280

2022-08-08 Thread Kalyan Thota
>-Original Message- >From: Dmitry Baryshkov >Sent: Thursday, August 4, 2022 9:29 PM >To: Kalyan Thota (QUIC) >Cc: dri-de...@lists.freedesktop.org; linux-arm-...@vger.kernel.org; >freedreno@lists.freedesktop.org; devicet...@vger.kernel.org; linux- >ker...@vg

[Freedreno] [v11] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2022-12-20 Thread Kalyan Thota
ush mask to make it readable (Dmitry) - Few nits (Dmitry) Changes in v10: - Fix white spaces in a separate patch (Dmitry) Changes in v11: - Define a macro for dspp flush selection (Marijn) - Few nits (Marijn) Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +-

Re: [Freedreno] [v10] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2022-12-12 Thread Kalyan Thota
>-Original Message- >From: Marijn Suijten >Sent: Wednesday, December 7, 2022 7:39 PM >To: Kalyan Thota (QUIC) >Cc: dri-de...@lists.freedesktop.org; linux-arm-...@vger.kernel.org; >freedreno@lists.freedesktop.org; devicet...@vger.kernel.org; linux- >ker...@vg

[Freedreno] [v10] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2022-12-07 Thread Kalyan Thota
ush mask to make it readable (Dmitry) - Few nits (Dmitry) Changes in v10: - fix white spaces in a seperate patch (Dmitry) Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 5 ++- drivers/gpu/drm/msm/d

Re: [Freedreno] [v1] drm/msm/disp/dpu1: pin 1 crtc to 1 encoder

2022-11-16 Thread Kalyan Thota
>-Original Message- >From: Dmitry Baryshkov >Sent: Saturday, November 12, 2022 3:51 AM >To: Kalyan Thota (QUIC) ; dri- >de...@lists.freedesktop.org; linux-arm-...@vger.kernel.org; >freedreno@lists.freedesktop.org; devicet...@vger.kernel.org >Cc: linux-ker...@vg

Re: [Freedreno] [v1] drm/msm/disp/dpu1: add color management support for the crtc

2022-11-16 Thread Kalyan Thota
>-Original Message- >From: Dmitry Baryshkov >Sent: Wednesday, November 16, 2022 8:37 PM >To: Kalyan Thota ; Kalyan Thota (QUIC) >; dri-de...@lists.freedesktop.org; linux-arm- >m...@vger.kernel.org; freedreno@lists.freedesktop.org; >devicet...@vger.kern

[Freedreno] [PATCH v2 0/3] add color management support for the crtc

2022-11-16 Thread Kalyan Thota
Add color management support for the crtc provided there are enough dspps that can be allocated from the catalog Kalyan Thota (3): drm/msm/disp/dpu1: pin 1 crtc to 1 encoder drm/msm/disp/dpu1: add helper to know if display is pluggable drm/msm/disp/dpu1: add color management support

[Freedreno] [PATCH v2 1/3] drm/msm/disp/dpu1: pin 1 crtc to 1 encoder

2022-11-16 Thread Kalyan Thota
: - make sure no encoder miss to have a crtc (Dmitry) - revisit various factors in deciding the crtc count such as num_mixers, num_sspp (Dmitry) Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git

[Freedreno] [PATCH v2 2/3] drm/msm/disp/dpu1: add helper to know if display is pluggable

2022-11-16 Thread Kalyan Thota
- update commit text reflecting the change Changes in v2: - avoid hardcode of connector type for DSI as it may not be true (Dmitry) - get the HPD information from encoder bridge Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 16 drivers/gpu/drm/msm

[Freedreno] [PATCH v2 3/3] drm/msm/disp/dpu1: add color management support for the crtc

2022-11-16 Thread Kalyan Thota
) Changes in v2: - avoid primary encoders in the documentation (Dmitry) Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c| 5 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h| 6 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 7 +++- drivers/gpu/drm/msm/disp/dpu1

Re: [Freedreno] [v1] drm/msm/disp/dpu1: add color management support for the crtc

2022-11-16 Thread Kalyan Thota
>-Original Message- >From: Dmitry Baryshkov >Sent: Saturday, November 12, 2022 4:13 AM >To: Kalyan Thota (QUIC) ; dri- >de...@lists.freedesktop.org; linux-arm-...@vger.kernel.org; >freedreno@lists.freedesktop.org; devicet...@vger.kernel.org >Cc: linux-ker...@vg

[Freedreno] [PATCH v3 1/3] drm/msm/disp/dpu1: pin 1 crtc to 1 encoder

2022-11-18 Thread Kalyan Thota
: - make sure no encoder miss to have a crtc (Dmitry) - revisit various factors in deciding the crtc count such as num_mixers, num_sspp (Dmitry) Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git

[Freedreno] [PATCH v3 0/3] add color management support for the crtc

2022-11-18 Thread Kalyan Thota
Add color management support for the crtc provided there are enough dspps that can be allocated from the catalog Kalyan Thota (3): drm/msm/disp/dpu1: pin 1 crtc to 1 encoder drm/msm/disp/dpu1: add helper to know if display is builtin drm/msm/disp/dpu1: add color management support

[Freedreno] [PATCH v3 2/3] drm/msm/disp/dpu1: add helper to know if display is builtin

2022-11-18 Thread Kalyan Thota
- update commit text reflecting the change Changes in v2: - avoid hardcode of connector type for DSI as it may not be true (Dmitry) - get the HPD information from encoder bridge Changes in v3: - use bridge type instead of bridge ops in determining connector (Dmitry) Signed-off-by: Kalyan Thota

[Freedreno] [PATCH v3 3/3] drm/msm/disp/dpu1: add color management support for the crtc

2022-11-18 Thread Kalyan Thota
) Changes in v2: - avoid primary encoders in the documentation (Dmitry) Changes in v3: - add ctm for builtin encoders (Dmitry) Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c| 5 +++-- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h| 6 -- drivers/gpu/drm/msm/disp/dpu1

Re: [Freedreno] [PATCH v3 2/3] drm/msm/disp/dpu1: add helper to know if display is builtin

2022-11-18 Thread Kalyan Thota
>-Original Message- >From: Dmitry Baryshkov >Sent: Friday, November 18, 2022 6:09 PM >To: Kalyan Thota (QUIC) ; dri- >de...@lists.freedesktop.org; linux-arm-...@vger.kernel.org; >freedreno@lists.freedesktop.org; devicet...@vger.kernel.org >Cc: linux-ker...@vg

[Freedreno] [PATCH v4 2/3] drm/msm/disp/dpu1: add helper to know if display is builtin

2022-11-21 Thread Kalyan Thota
connector rather from bridge connector (Dmitry) Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 26 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.h | 6 ++ 2 files changed, 32 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH v4 1/3] drm/msm/disp/dpu1: pin 1 crtc to 1 encoder

2022-11-21 Thread Kalyan Thota
: - make sure no encoder miss to have a crtc (Dmitry) - revisit various factors in deciding the crtc count such as num_mixers, num_sspp (Dmitry) Changes in v3: - none Changes in v4: - use max_crtc_count instead of num_encoders in WARN (Dmitry) Reviewed-by: Dmitry Baryshkov Signed-off-by: Kalyan

[Freedreno] [PATCH v4 3/3] drm/msm/disp/dpu1: add color management support for the crtc

2022-11-21 Thread Kalyan Thota
) Changes in v2: - avoid primary encoders in the documentation (Dmitry) Changes in v3: - add ctm for builtin encoders (Dmitry) Changes in v4: - few nits (Dmitry) Reviewed-by: Dmitry Baryshkov Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c| 5 +++-- drivers/gpu/drm/msm

[Freedreno] [PATCH v4 0/3] add color management support for the crtc

2022-11-21 Thread Kalyan Thota
Add color management support for the crtc provided there are enough dspps that can be allocated from the catalog Kalyan Thota (3): drm/msm/disp/dpu1: pin 1 crtc to 1 encoder drm/msm/disp/dpu1: add helper to know if display is builtin drm/msm/disp/dpu1: add color management support

Re: [Freedreno] [PATCH 1/3] drm/msm/disp/dpu1: allow reservation even if dspps are not available.

2023-01-17 Thread Kalyan Thota
>-Original Message- >From: Dmitry Baryshkov >Sent: Tuesday, January 17, 2023 10:10 PM >To: Kalyan Thota (QUIC) ; dri- >de...@lists.freedesktop.org; linux-arm-...@vger.kernel.org; >freedreno@lists.freedesktop.org; devicet...@vger.kernel.org >Cc: linux-ker...@vg

Re: [Freedreno] [PATCH 2/3] drm/msm/disp/dpu1: allow dspp selection for all the interfaces

2023-01-17 Thread Kalyan Thota
>-Original Message- >From: Dmitry Baryshkov >Sent: Tuesday, January 17, 2023 10:26 PM >To: Kalyan Thota (QUIC) ; dri- >de...@lists.freedesktop.org; linux-arm-...@vger.kernel.org; >freedreno@lists.freedesktop.org; devicet...@vger.kernel.org >Cc: linux-ker...@vg

Re: [Freedreno] [PATCH 2/3] drm/msm/disp/dpu1: allow dspp selection for all the interfaces

2023-01-19 Thread Kalyan Thota
>-Original Message- >From: Dmitry Baryshkov >Sent: Wednesday, January 18, 2023 9:06 AM >To: Kalyan Thota ; Kalyan Thota (QUIC) >; dri-de...@lists.freedesktop.org; linux-arm- >m...@vger.kernel.org; freedreno@lists.freedesktop.org; >devicet...@vger.kernel.org; Abhinav

[Freedreno] [PATCH 0/3] Reserve dspps based on user request

2023-01-27 Thread Kalyan Thota
to suit the new requirements. Kalyan Thota (3): drm/msm/disp/dpu1: clear dspp reservations in rm release drm/msm/disp/dpu1: add dspps into reservation if there is a ctm request drm/msm/disp/dpu1: reserve the resources on topology change drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h| 1

[Freedreno] [PATCH 1/3] drm/msm/disp/dpu1: clear dspp reservations in rm release

2023-01-27 Thread Kalyan Thota
Clear dspp reservations from the global state during rm release Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c index 73b3442..718ea0a

[Freedreno] [PATCH 2/3] drm/msm/disp/dpu1: add dspps into reservation if there is a ctm request

2023-01-27 Thread Kalyan Thota
Add dspp blocks into the topology for reservation, if there is a ctm request for that composition. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH 3/3] drm/msm/disp/dpu1: reserve the resources on topology change

2023-01-27 Thread Kalyan Thota
Some features like ctm can be enabled dynamically. Release and reserve the dpu resources whenever a topology change occurs such that required hw blocks are allocated appropriately. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h| 1 + drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [v12] drm/msm/disp/dpu1: add support for dspp sub block flush in sc7280

2023-01-27 Thread Kalyan Thota
ush mask to make it readable (Dmitry) - Few nits (Dmitry) Changes in v10: - Fix white spaces in a separate patch (Dmitry) Changes in v11: - Define a macro for dspp flush selection (Marijn) - Few nits (Marijn) Changes in v12: - Minor comments (reorder macros and a condition) (Marijn) Signed-off-by

[Freedreno] [v1 2/3] drm/msm/disp/dpu1: add dspps into reservation if there is a ctm request

2023-01-30 Thread Kalyan Thota
Add dspp blocks into the topology for reservation, if there is a ctm request for that composition. Changes in v1: - Minor nits (Dmitry) Signed-off-by: Kalyan Thota Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 13 ++--- 1 file changed, 6 insertions

[Freedreno] [v1 1/3] drm/msm/disp/dpu1: clear dspp reservations in rm release

2023-01-30 Thread Kalyan Thota
Clear dspp reservations from the global state during rm release Signed-off-by: Kalyan Thota Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c b/drivers/gpu/drm/msm/disp/dpu1

[Freedreno] [PATCH 0/3] Reserve dspps based on user request

2023-01-30 Thread Kalyan Thota
to suit the new requirements. Kalyan Thota (3): drm/msm/disp/dpu1: clear dspp reservations in rm release drm/msm/disp/dpu1: add dspps into reservation if there is a ctm request drm/msm/disp/dpu1: reserve the resources on topology change drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h| 1

[Freedreno] [v1 3/3] drm/msm/disp/dpu1: reserve the resources on topology change

2023-01-30 Thread Kalyan Thota
Some features like ctm can be enabled dynamically. Release and reserve the dpu resources whenever a topology change occurs such that required hw blocks are allocated appropriately. Changes in v1: - Avoid mode_set call directly instead change the mode_changed (Dmitry) Signed-off-by: Kalyan Thota

[Freedreno] [PATCH 1/3] drm/msm/disp/dpu1: allow reservation even if dspps are not available.

2023-01-17 Thread Kalyan Thota
if any topology requests for dspps and catalogue doesn't have the allocation, avoid failing the reservation. This can pave way to build logic allowing composer fallbacks for all the color features that are handled in dspp. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c

  1   2   >