Pending interrupt status needs to be cleared before enable the
interrupt. Otherwise it's possible to get a pending interrupt instead
of an incoming interrupt.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp4/mdp4_irq.c | 10 +++---
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h
switch to drm_atomic_helper_plane_set_property
helper function.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 49 ++-
1 file changed, 41 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
b/drivers/g
MDP5 SSPPs can flip the input source horizontally or vertically.
This change is to support this feature by adding vflip/hflip properties
to MDP5 planes.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h | 2 ++
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 25
Add plane properties hflip/vflip which are used in MDP driver to flip
the input horizontally/vertically.
Signed-off-by: Jilai Wang
---
Documentation/DocBook/drm.tmpl | 18 --
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/Documentation/DocBook/drm.tmpl b
msm8x74v1 has different MDP5 version (v1.0) from msm8x74v2 (v1.2).
Add a separate config data to support msm8x74v1.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 77 +++--
1 file changed, 73 insertions(+), 4 deletions(-)
diff --git a
plane which comes from mdp5_cfg data
and use it to differenciate the plane operation.
V1: Initial change
V2: Fix a typo in mdp4_kms.h
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h | 19
drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c | 7 ++-
drivers/gpu/drm/msm/mdp
This change is to add planes which use DMA pipes for MDP5.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 23 ---
1 file changed, 20 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
b/drivers/gpu/drm/msm/mdp/mdp5
plane which comes from mdp5_cfg data
and use it to differenciate the plane operation.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h | 19
drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c | 7 ++-
drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 26 ++-
drivers/gpu
This change is to add properties alpha/zpos/blend_mode to mdp5 plane
for alpha blending operation to generate the blended output.
V1: Initial change
V2: Change "premultilied" property to enum (Rob's comment)
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp5/mdp
Add plane properties "premultiplied/zpos/alpha" used in msm MDP
driver to perform proper blending operation.
V1: Initial change
V2: Change "premultiplied" property to enum (Rob's comment)
Signed-off-by: Jilai Wang
---
Documentation/DocBook/drm.tmpl | 23 ++
To support mdp5 blending for mdp5 v1.5 and later
V1: Initial change
V2: After the stage number is increased to 7, BLENDx registers are
not continuous now. Using the offset for each BLEND stage
to fix it.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 95
MDP1.5 can support 7 stages. Update xml file accordingly.
V1: Initial change
V2: After the stage number is increased to 7, BLENDx registers are
not continuous now. Using the offset for each BLEND stage
to fix it.
Signed-off-by: Jilai Wang
---
rnndb/mdp/mdp5.xml | 38
MDP1.5 can support 7 stages. Update xml file accordingly.
Signed-off-by: Jilai Wang
---
rnndb/mdp/mdp5.xml | 36 ++--
rnndb/mdp/mdp_common.xml | 4
2 files changed, 30 insertions(+), 10 deletions(-)
diff --git a/rnndb/mdp/mdp5.xml b/rnndb/mdp/mdp5
To support mdp5 blending for mdp5 v1.5 and later
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 58 ++--
drivers/gpu/drm/msm/mdp/mdp_common.xml.h | 4 +++
2 files changed, 52 insertions(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/msm
Add plane properties "premultiplied/zpos/alpha" used in msm MDP
driver to perform proper blending operation.
Signed-off-by: Jilai Wang
---
Documentation/DocBook/drm.tmpl | 23 +++
1 file changed, 23 insertions(+)
diff --git a/Documentation/DocBook/drm.tmpl b/Doc
This change is to add properties alpha/zpos/premultiplied to mdp5 plane
for alpha blending operation to generate the blended output.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 110 +-
drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 66
Jilai Wang (3):
drm/doc: Add description of drm properties in msm
drm/msm/mdp5: Update generated header files
drm/msm/mdp5: Add plane blending operation support for MDP5
Documentation/DocBook/drm.tmpl| 23 +++
drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 58
HDCP driver needs to check if secure environment supports HDCP.
If it's supported, then it requires to program some registers
through SCM.
Add qcom_scm_hdcp_available and qcom_scm_hdcp_req to support
these requirements.
V1: original change
V2: Add ARM64 SoCs support
Signed-off-by: Jilai
Add writeback support in msm kms framework.
V1: Initial change
V2: Address Rob/Paul/Emil's comments
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/Kconfig | 10 +
drivers/gpu/drm/msm/Makefile | 7 +
drivers/gpu/drm/msm/mdp/mdp5/mdp5_
If the GEM object is imported, drm_prime_gem_destroy needs to be
called to clean up dma buffer related information.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/msm_gem.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c
index
HDCP driver needs to check if secure environment supports HDCP.
If it's supported, then it requires to program some registers
through SCM.
Add qcom_scm_hdcp_available and qcom_scm_hdcp_req to support
these requirements.
Signed-off-by: Jilai Wang
---
drivers/firmware/qcom_scm.c
ed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/Makefile |1 +
drivers/gpu/drm/msm/hdmi/hdmi.c | 45 +-
drivers/gpu/drm/msm/hdmi/hdmi.h | 31 +
drivers/gpu/drm/msm/hdmi/hdmi_audio.c |1 -
drivers/gpu/drm/msm/hdmi/hdmi_bridge.c|8 +-
drivers/gp
Add writeback support in msm kms framework.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/Kconfig | 10 +
drivers/gpu/drm/msm/Makefile | 9 +-
drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 10 +
drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h
Add register field for MDP5 writeback block
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 373 ++-
drivers/gpu/drm/msm/mdp/mdp_common.xml.h | 18 +-
2 files changed, 373 insertions(+), 18 deletions(-)
diff --git a/drivers/gpu/drm/msm/mdp
This patch adds the register description in mdp5 writeback block.
Signed-off-by: Jilai Wang
---
rnndb/mdp/mdp5.xml | 126 ++-
rnndb/mdp/mdp_common.xml | 2 +-
2 files changed, 126 insertions(+), 2 deletions(-)
diff --git a/rnndb/mdp/mdp5.xml
Introduce msm_drm_sub_dev for each mdp interface component such as
HDMI/eDP/DSI to contain common information shared with MDP.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/edp/edp.c | 18 +--
drivers/gpu/drm/msm/edp/edp.h | 1 +
drivers/gpu/drm/msm/hdmi/hdmi.c
Each HW component's driver such as HDMI/eDP/DSI should be able to
compiled as a module which allows user to prevent this part of code
to be compiled if not needed.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/adreno/adreno_device.c | 13 +--
drivers/gpu/drm/msm/edp/
Crtc state may not reflect the current crtc state if drm_fb_helper_blank
is called to turn dpms off without turning crtc off. A full modeset in
this case to solve the problem.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 7 +++
1 file changed, 7 insertions
Add HDMI HDCP support including HDCP PartI/II/III authentication.
V1: Initial Change
V2: Address Bjorn&Rob's comments
Refactor the authentication process to use single work instead
of multiple work for different authentication stages.
Signed-off-by: Jilai Wang
---
drivers/gp
Add HDCP related register description.
V1: Initial Change
V2: Add register bit description.
Signed-off-by: Jiali Wang
---
drivers/gpu/drm/msm/hdmi/hdmi.xml.h | 42 +++--
1 file changed, 31 insertions(+), 11 deletions(-)
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.
This patch adds the field description for HDMI HDCP registers.
V1: Initial change
V2: Add register bit description.
Signed-off-by: Jilai Wang
---
rnndb/hdmi/hdmi.xml | 87 -
1 file changed, 79 insertions(+), 8 deletions(-)
diff --git a/rnndb
Add HDMI HDCP support including HDCP PartI/II/III authentication.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/Makefile |1 +
drivers/gpu/drm/msm/hdmi/hdmi.c | 44 +
drivers/gpu/drm/msm/hdmi/hdmi.h | 31 +
drivers/gpu/drm/msm/hdmi/hdmi_audio.c
Add HDCP related register description.
Signed-off-by: Jiali Wang
---
drivers/gpu/drm/msm/hdmi/hdmi.xml.h | 76 +
1 file changed, 60 insertions(+), 16 deletions(-)
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.xml.h
b/drivers/gpu/drm/msm/hdmi/hdmi.xml.h
index 76
This patch adds the field description for HDMI HDCP registers.
Signed-off-by: Jilai Wang
---
rnndb/hdmi/hdmi.xml | 46 --
1 file changed, 40 insertions(+), 6 deletions(-)
diff --git a/rnndb/hdmi/hdmi.xml b/rnndb/hdmi/hdmi.xml
index 64393b4..c67e6c1
clock driver can support dynamic rate settings for HDMI
pixelclock, so don't need to use clk_round_rate to check if the
clockrate for specific mode is supported therefore more display
modes can be supported.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/hdmi/hdmi_connector.
Disable the HPD interrupt when acking it, to avoid spurious
interrupt.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_connector.c
b/drivers/gpu/drm/msm/hdmi
HPD regulators need to be enabled before clocks, otherwise clock
driver will report warning.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 45 +--
1 file changed, 18 insertions(+), 27 deletions(-)
diff --git a/drivers/gpu/drm/msm/hdmi
HPD interrupt can be tracked for each connector, so don't need
to poll the connector status for state change.
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_connec
HPD regulators need to be enabled before clocks, otherwise clock
driver will report warning.
Change-Id: Ieca41722ae3b15873e6290649a21bbd13e1a4278
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 45 +--
1 file changed, 18 insertions(+), 27
Disable the HPD interrupt when acking it, to avoid spurious
interrupt.
Change-Id: Icb64d7fa813380c7ffa3047058503ebab13ff4c4
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/msm
clock driver can support dynamic rate settings for HDMI
pixelclock, so don't need to use clk_round_rate to check if the
clockrate for specific mode is supported therefore more display
modes can be supported.
Change-Id: I308df4eb604438c24df463619571d8e18cc956b6
Signed-off-by: Jilai
HPD interrupt can be tracked for each connector, so don't need
to poll the connector status for state change.
Change-Id: I2c062838af5922d32ce87a50676a45dcaedb44f2
Signed-off-by: Jilai Wang
---
drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 5 +
1 file changed, 1 insertion(+), 4 dele
42 matches
Mail list logo