[PATCH v1 2/3] drm/msm/disp/dpu1: add vsync and underrun irqs for INTF_5

2021-04-06 Thread Krishna Manikandan
INTF_5 is used by EDP panel in SC7280 target. Add vsync and underrun irqs needed by INTF_5 to dpu irq map. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp

[PATCH v1 1/3] drm/msm/disp/dpu1: increase the range of interrupts in dpu_irq_map

2021-04-06 Thread Krishna Manikandan
interrupt register to 64 to handle this. This patch has dependency on the below series: https://patchwork.kernel.org/project/linux-arm-msm/list/?series=461193 Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 755 +++--- 1 file changed, 661

[PATCH v1 0/3] Add irq support to accommodate SC7280 target

2021-04-06 Thread Krishna Manikandan
. - Some irqs which are applicable for sdm845 target are obsolete for sc7180 and sc7280 targets. Support is added to skip all the obsolete irqs based on the target. Krishna Manikandan (3): drm/msm/disp/dpu1: increase the range of interrupts in dpu_irq_map drm/msm/disp/dpu1

[PATCH v1 3/3] drm/msm/disp/dpu1: add flags to indicate obsolete irqs

2021-04-06 Thread Krishna Manikandan
Some irqs which are applicable for sdm845 target are no longer applicable for sc7180 and sc7280 targets. Add a flag to indicate the irqs which are obsolete for a particular target so that these irqs are skipped while checking for matching irq lookup index. Signed-off-by: Krishna Manikandan

[PATCH v1 3/4] drm/msm/disp/dpu1: add support to program fetch active in ctl path

2021-04-05 Thread Krishna Manikandan
A new register called CTL_FETCH_ACTIVE is introduced in SC7280 family which is used to inform the HW about the pipes which are active in the current ctl path. This change adds support to program this register based on the active pipes in the current composition. Signed-off-by: Krishna Manikandan

[PATCH v1 1/4] drm/msm/disp/dpu1: add support for display for SC7280 target

2021-04-05 Thread Krishna Manikandan
Add required display hw catalog changes for SC7280 target. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 176 ++--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 8 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c| 4

[PATCH v1 2/4] drm/msm/disp/dpu1: add intf offsets for SC7280 target

2021-04-05 Thread Krishna Manikandan
Interface block offsets are different for SC7280 family when compared to existing targets. These offset values are used to access the interface irq registers. This change adds proper interface offsets for SC7280 target. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/disp/dpu1

[PATCH v1 4/4] drm/msm/disp/dpu1: enable DATA_HCTL_EN for sc7280 target

2021-04-05 Thread Krishna Manikandan
follows DISPLAY_DATA_HCTL register value. This change adds support to program these registers for sc7280 target. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm

[PATCH v1 0/4] Add display support for SC7280 target

2021-04-05 Thread Krishna Manikandan
value of this register has changed in SC7280 family and we need to explicitly program it with correct values to avoid wrong interface configuration. - INTF_5 is added to intf configuration to support EDP. Krishna Manikandan (4): drm/msm/disp/dpu1: add support

[PATCH v15 1/4] dt-bindings: msm: disp: add yaml schemas for DPU bindings

2021-04-05 Thread Krishna Manikandan
MSM Mobile Display Subsytem (MDSS) encapsulates sub-blocks like DPU display controller, DSI etc. Add YAML schema for DPU device tree bindings. Signed-off-by: Krishna Manikandan Changes in v2: - Changed dpu to DPU (Sam Ravnborg) - Fixed indentation issues (Sam Ravnborg) - Added empty

[PATCH v15 3/4] dt-bindings: msm: dsi: add yaml schemas for DSI PHY bindings

2021-04-05 Thread Krishna Manikandan
Add YAML schema for the device tree bindings for DSI PHY. Signed-off-by: Krishna Manikandan Changes in v1: - Merge dsi-phy.yaml and dsi-phy-10nm.yaml (Stephen Boyd) - Remove qcom,dsi-phy-regulator-ldo-mode (Stephen Boyd) - Add clock cells properly (Stephen Boyd) - Remove unnecessary

[PATCH v15 2/4] dt-bindings: msm: dsi: add yaml schemas for DSI bindings

2021-04-05 Thread Krishna Manikandan
Add YAML schema for the device tree bindings for DSI Signed-off-by: Krishna Manikandan Changes in v1: - Separate dsi controller bindings to a separate patch (Stephen Boyd) - Merge dsi-common-controller.yaml and dsi-controller-main.yaml to a single file (Stephen Boyd) - Drop

[PATCH v15 4/4] dt-bindings: msm/dp: Add bindings of MSM DisplayPort controller

2021-04-05 Thread Krishna Manikandan
Add bindings for Snapdragon DisplayPort controller driver. Signed-off-by: Chandan Uddaraju Signed-off-by: Vara Reddy Signed-off-by: Tanmay Shah Signed-off-by: Kuogee Hsieh Signed-off-by: Krishna Manikandan Changes in V2: -Provide details about sel-gpio Changes in V4: -Provide details about

[v3] drm/msm: Fix race condition in msm driver with async layer updates

2020-10-16 Thread Krishna Manikandan
of commit_lock for each crtc. (Rob Clark) Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/msm_atomic.c | 37 - drivers/gpu/drm/msm/msm_kms.h| 6 -- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/msm

[v2] drm/msm: Fix race condition in msm driver with async layer updates

2020-10-15 Thread Krishna Manikandan
also introduces per crtc commit lock, such that commits on different crtcs are not blocked by each other. Changes in v2: - Use an array of mutexes in kms to handle commit lock per crtc. (Rob Clark) Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/msm_atomic.c | 32

[v1] drm/msm: Fix race condition in msm driver with async layer updates

2020-10-14 Thread Krishna Manikandan
also introduces per crtc commit lock, such that commits on different crtcs are not blocked by each other. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 26

[PATCH 2/2] dt-bindings: msm/dp: add bindings of DP/DP-PLL driver for Snapdragon

2020-08-10 Thread Krishna Manikandan
From: Chandan Uddaraju Add bindings for Snapdragon DisplayPort controller driver. Changes in V2: Provide details about sel-gpio Changes in V4: Provide details about max dp lanes Change the commit text Changes in V5: moved dp.txt to yaml file Changes in v6: - Squash all AUX LUT properties

[PATCH 1/2] dt-bindings: msm: disp: add yaml schemas for DPU and DSI bindings

2020-08-10 Thread Krishna Manikandan
MSM Mobile Display Subsytem (MDSS) encapsulates sub-blocks like DPU display controller, DSI etc. Add YAML schema for the device tree bindings for the same. Signed-off-by: Krishna Manikandan Changes in v2: - Changed dpu to DPU (Sam Ravnborg) - Fixed indentation issues (Sam Ravnborg

[v7] dt-bindings: msm: disp: add yaml schemas for DPU and DSI bindings

2020-08-02 Thread Krishna Manikandan
MSM Mobile Display Subsytem (MDSS) encapsulates sub-blocks like DPU display controller, DSI etc. Add YAML schema for the device tree bindings for the same. Signed-off-by: Krishna Manikandan Changes in v2: - Changed dpu to DPU (Sam Ravnborg) - Fixed indentation issues (Sam Ravnborg

[v6] dt-bindings: msm: disp: add yaml schemas for DPU and DSI bindings

2020-07-16 Thread Krishna Manikandan
MSM Mobile Display Subsytem (MDSS) encapsulates sub-blocks like DPU display controller, DSI etc. Add YAML schema for the device tree bindings for the same. Signed-off-by: Krishna Manikandan Changes in v2: - Changed dpu to DPU (Sam Ravnborg) - Fixed indentation issues (Sam Ravnborg

[v5] dt-bindings: msm: disp: add yaml schemas for DPU and DSI bindings

2020-07-10 Thread Krishna Manikandan
MSM Mobile Display Subsytem (MDSS) encapsulates sub-blocks like DPU display controller, DSI etc. Add YAML schema for the device tree bindings for the same. Signed-off-by: Krishna Manikandan Changes in v2: - Changed dpu to DPU (Sam Ravnborg) - Fixed indentation issues (Sam

[v2] drm/msm/dpu: request for display color blocks based on hw catalog entry

2020-06-12 Thread Krishna Manikandan
From: Kalyan Thota Request for color processing blocks only if they are available in the display hw catalog and they are sufficient in number for the selection. Changes in v2: - Include Fixes tag in commit message (Rob Clark) - Adding the Tested by tag as there are no code

[v1] drm/msm/dpu: request for display color blocks based on hw catalog entry

2020-06-11 Thread Krishna Manikandan
From: Kalyan Thota Request for color processing blocks only if they are available in the display hw catalog and they are sufficient in number for the selection. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 12 1 file changed, 8 insertions(+), 4

[v2] drm/msm: add shutdown support for display platform_driver

2020-06-01 Thread Krishna Manikandan
. Signed-off-by: Krishna Manikandan Changes in v2: - Remove NULL check from msm_pdev_shutdown (Stephen Boyd) - Change commit text to reflect when this issue was uncovered (Sai Prakash Ranjan) --- drivers/gpu/drm/msm/msm_drv.c | 8 1 file changed, 8 insertions(+) diff

[v1] drm/msm: add shutdown support for display platform_driver

2020-05-28 Thread Krishna Manikandan
Define shutdown callback for display drm driver, so as to disable all the CRTCS when shutdown notification is received by the driver. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/msm_drv.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/msm

[v1] drm/msm/dpu: allow initialization of encoder locks during encoder init

2020-05-28 Thread Krishna Manikandan
In the current implementation, mutex initialization for encoder mutex locks are done during encoder setup. This can lead to scenarios where the lock is used before it is initialized. Move mutex_init to dpu_encoder_init to avoid this. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm

[v4] dt-bindings: msm: disp: add yaml schemas for DPU and DSI bindings

2020-05-19 Thread Krishna Manikandan
MSM Mobile Display Subsytem (MDSS) encapsulates sub-blocks like DPU display controller, DSI etc. Add YAML schema for the device tree bindings for the same. Signed-off-by: Krishna Manikandan Changes in v2: - Changed dpu to DPU (Sam Ravnborg) - Fixed indentation issues (Sam

[v1] drm/msm/dpu: update bandwidth threshold check

2020-05-04 Thread Krishna Manikandan
Maximum allowed bandwidth has no dependency on the type of panel used. Hence, cleanup the code to use max_bw_high as the threshold value for bandwidth checks. Update the maximum allowed bandwidth as 6.8Gbps for SC7180 target. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/disp/dpu1