[PATCH 02/10] drm/msm/mdp5: Disable hardware translation table walks (MSM8996)

2015-09-15 Thread Stephane Viau
hardware table walks in the future Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c index bbab6e6..14ac20a 100644

[PATCH] rnndb: Add Pixel Extension registers

2015-09-15 Thread Stephane Viau
could also overwrite those values for optimization. In some hardware (eg: MDP5 v1.7), software *must* program those values since they are not handled in hardware. Change-Id: I4900165e770f8da702a4f938044616daf5aa81af Signed-off-by: Stephane Viau --- rnndb/mdp/mdp5.xml | 24

[PATCH 04/10] drm/msm/mdp5: Avoid printing error messages for optional clocks

2015-09-15 Thread Stephane Viau
messages during the probe. Signed-off-by: Stephane Viau --- Documentation/devicetree/bindings/drm/msm/mdp.txt | 3 ++- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 27 ++- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings

[PATCH 06/10] drm/msm/hdmi: Add basic HDMI support for msm8996

2015-09-15 Thread Stephane Viau
The HDMI controller is new in MDP5 v1.7. As of now, this change doesn't reflect the novelty and only adds the basics so the probe gets triggered. Signed-off-by: Stephane Viau --- Documentation/devicetree/bindings/drm/msm/hdmi.txt | 3 +++ drivers/gpu/drm/msm/hdmi/hdmi.c| 17

[PATCH 03/10] drm/msm: Fix IOMMU clean up path in case msm_iommu_new() fails

2015-09-15 Thread Stephane Viau
msm_iommu_new() can fail and this change makes sure that we detect the failure and free the allocated domain before going any further. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 1 + drivers/gpu/drm/msm/msm_gpu.c | 8 2 files changed, 9

[PATCH 05/10] drm/msm/mdp5: Vote for SMMU power when performing translations

2015-09-15 Thread Stephane Viau
-by: Stephane Viau --- Documentation/devicetree/bindings/drm/msm/mdp.txt | 3 ++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 65 +++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h | 3 ++ 3 files changed, 71 insertions(+) diff --git a/Documentation/devicetree/bindings/drm/msm

[PATCH 10/10] drm/msm/mdp5: Basic support for MDP5 v1.7 (MSM8996)

2015-09-15 Thread Stephane Viau
This change adds the basic MDP5 support for MSM8996. Signed-off-by: Stephane Viau --- Documentation/devicetree/bindings/drm/msm/mdp.txt | 2 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 95 ++- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 9 ++- drivers/gpu

[PATCH 07/10] drm/msm/mdp: Update generated headers (Pixel Extension)

2015-09-15 Thread Stephane Viau
This change is the output of Envytools change: "rnndb: Add Pixel Extension registers" Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 82 +++- drivers/gpu/drm/msm/mdp/mdp_common.xml.h | 11 - 2 files changed, 90

[PATCH 09/10] drm/msm/mdp: Add Software Pixel Extension support

2015-09-15 Thread Stephane Viau
by software. For some targets (e.g.: msm8996), software *must* program those registers. In order to ease this computation, let's always use bilinear filters, which are easier to program from kernel. Eventually, all of these values will come down from user space for better quality. Signed-off-by: Stephane

[PATCH 08/10] drm/msm/mdp5: Use the newly introduced enum mdp_component_type

2015-09-15 Thread Stephane Viau
When calculating phase steps, let's use the same enum mdp_component_type in order to ease the readability; 0/1 indexes are a bit confusing and we now have explicit values to index this type of arrays. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 25

[PATCH 01/10] drm/msm/mdp5: remove the cfg pointer from SMP struct

2015-09-15 Thread Stephane Viau
We want to make sure we control all the information being passed down to SMP block. Having access to the cfg pointer here may create bad things in the future. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 2 +- drivers/gpu/drm/msm/mdp/mdp5/mdp5_smp.c | 8 2

[PATCH 00/10] drm/msm: Add support for MSM8996

2015-09-15 Thread Stephane Viau
This series of patches adds support for MSM8996, including MDP5 v1.7. Note that only the HDMI interface is supported for now. Stephane Viau (10): drm/msm/mdp5: remove the cfg pointer from SMP struct drm/msm/mdp5: Disable hardware translation table walks (MSM8996) drm/msm: Fix IOMMU clean

[PATCH 01/10] drm/msm/mdp5: remove the cfg pointer from SMP struct

2015-09-15 Thread Stephane Viau
We want to make sure we control all the information being passed down to SMP block. Having access to the cfg pointer here may create bad things in the future. Signed-off-by: Stephane Viau <sv...@codeaurora.org> --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 2 +- drivers/gpu/drm/msm/md

[PATCH 00/10] drm/msm: Add support for MSM8996

2015-09-15 Thread Stephane Viau
This series of patches adds support for MSM8996, including MDP5 v1.7. Note that only the HDMI interface is supported for now. Stephane Viau (10): drm/msm/mdp5: remove the cfg pointer from SMP struct drm/msm/mdp5: Disable hardware translation table walks (MSM8996) drm/msm: Fix IOMMU clean

[PATCH 03/10] drm/msm: Fix IOMMU clean up path in case msm_iommu_new() fails

2015-09-15 Thread Stephane Viau
msm_iommu_new() can fail and this change makes sure that we detect the failure and free the allocated domain before going any further. Signed-off-by: Stephane Viau <sv...@codeaurora.org> --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 1 + drivers/gpu/drm/msm/msm_gpu.c | 8 +

[PATCH 06/10] drm/msm/hdmi: Add basic HDMI support for msm8996

2015-09-15 Thread Stephane Viau
The HDMI controller is new in MDP5 v1.7. As of now, this change doesn't reflect the novelty and only adds the basics so the probe gets triggered. Signed-off-by: Stephane Viau <sv...@codeaurora.org> --- Documentation/devicetree/bindings/drm/msm/hdmi.txt | 3 +++ drivers/gpu/drm/msm/hdmi/

[PATCH 05/10] drm/msm/mdp5: Vote for SMMU power when performing translations

2015-09-15 Thread Stephane Viau
-by: Stephane Viau <sv...@codeaurora.org> --- Documentation/devicetree/bindings/drm/msm/mdp.txt | 3 ++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 65 +++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h | 3 ++ 3 files changed, 71 insertions(+) diff --git a/Documen

[PATCH 10/10] drm/msm/mdp5: Basic support for MDP5 v1.7 (MSM8996)

2015-09-15 Thread Stephane Viau
This change adds the basic MDP5 support for MSM8996. Signed-off-by: Stephane Viau <sv...@codeaurora.org> --- Documentation/devicetree/bindings/drm/msm/mdp.txt | 2 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 95 ++- drivers/gpu/drm/msm/mdp/mdp5/mdp5

[PATCH 07/10] drm/msm/mdp: Update generated headers (Pixel Extension)

2015-09-15 Thread Stephane Viau
This change is the output of Envytools change: "rnndb: Add Pixel Extension registers" Signed-off-by: Stephane Viau <sv...@codeaurora.org> --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 82 +++- drivers/gpu/drm/msm/mdp/mdp_common.xml.h | 1

[PATCH 09/10] drm/msm/mdp: Add Software Pixel Extension support

2015-09-15 Thread Stephane Viau
by software. For some targets (e.g.: msm8996), software *must* program those registers. In order to ease this computation, let's always use bilinear filters, which are easier to program from kernel. Eventually, all of these values will come down from user space for better quality. Signed-off-by: Stephane

[PATCH 08/10] drm/msm/mdp5: Use the newly introduced enum mdp_component_type

2015-09-15 Thread Stephane Viau
When calculating phase steps, let's use the same enum mdp_component_type in order to ease the readability; 0/1 indexes are a bit confusing and we now have explicit values to index this type of arrays. Signed-off-by: Stephane Viau <sv...@codeaurora.org> --- drivers/gpu/drm/msm/md

[PATCH] rnndb: Add Pixel Extension registers

2015-09-15 Thread Stephane Viau
could also overwrite those values for optimization. In some hardware (eg: MDP5 v1.7), software *must* program those values since they are not handled in hardware. Change-Id: I4900165e770f8da702a4f938044616daf5aa81af Signed-off-by: Stephane Viau <sv...@codeaurora.org> --- rnndb/mdp/md

[PATCH 02/10] drm/msm/mdp5: Disable hardware translation table walks (MSM8996)

2015-09-15 Thread Stephane Viau
hardware table walks in the future Signed-off-by: Stephane Viau <sv...@codeaurora.org> --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c index b

[PATCH 04/10] drm/msm/mdp5: Avoid printing error messages for optional clocks

2015-09-15 Thread Stephane Viau
messages during the probe. Signed-off-by: Stephane Viau <sv...@codeaurora.org> --- Documentation/devicetree/bindings/drm/msm/mdp.txt | 3 ++- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 27 ++- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/Documen

[PATCH] rnndb: Rename scalers' filter fields

2015-07-06 Thread Stephane Viau
The current names were guessed based on downstream driver. This change replaces the filter fields' names to avoid any confusion. Signed-off-by: Stephane Viau --- rnndb/mdp/mdp5.xml | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/rnndb/mdp/mdp5.xml b/rnndb/mdp

[PATCH] rnndb: Rename 1st Source Chroma Sampling option

2015-07-06 Thread Stephane Viau
enum mdp_chroma_samp_type's first value (0) is actually shared by all non-subsampled formats; that is RGB but also some YUV formats (eg: YUV444). This change makes the name a little less confusing. Signed-off-by: Stephane Viau Signed-off-by: Wentao Xu --- rnndb/mdp/mdp_common.xml | 2 +- 1

[PATCH 5/6] drm/msm/mdp5: use 2 memory clients for YUV formats on newer mdp5

2015-07-06 Thread Stephane Viau
From: Wentao Xu Newer MDP5 uses 2 shared memory pool clients for certain YUV formats. For example, if VIG0 is used to fetch data in YUYV format, it will use VIG0_Y for Y component, and VIG0_Cr for UV packed. Signed-off-by: Wentao Xu [rebase] Signed-off-by: Stephane Viau Change-Id

[PATCH 6/6] drm/msm/mdp5: add more YUV formats for MDP5

2015-07-06 Thread Stephane Viau
Add packed YUV422 and planar YUV420 formats to MDP supported formats. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 105 +- drivers/gpu/drm/msm/mdp/mdp_format.c | 19 ++ 2 files changed, 77 insertions(+), 47 deletions(-) diff

[PATCH 4/6] drm/msm/mdp: mark if a MDP format is YUV at definition

2015-07-06 Thread Stephane Viau
From: Wentao Xu This makes it easy to determine if a format is YUV. The old method of using chroma sample type incorrectly marks YUV444 as RGB format. Signed-off-by: Wentao Xu [rebase] Signed-off-by: Stephane Viau Change-Id: I3e1fa4473be8421fac8d79100f30bff5823be5f4 --- drivers/gpu/drm/msm

[PATCH 1/6] drm/msm/mdp5: Update generated headers (filter fieds)

2015-07-06 Thread Stephane Viau
See envytools commit: "rnndb: Rename scalers' filter fields" Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 58 - 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h b/d

[PATCH 3/6] drm/msm/mdp: Update generated headers (chroma_samp)

2015-07-06 Thread Stephane Viau
See Envytools patch: rnndb: Rename 1st Source Chroma Sampling option Signed-off-by: Wentao Xu Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp_common.xml.h | 37 +++- 1 file changed, 3 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 2/6] drm/msm/mdp5: Rename scalers' filter fields

2015-07-06 Thread Stephane Viau
The current names were guessed based on downstream driver. This change replaces the filter fields' names to avoid any confusion. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH 0/6] drm/msm/mdp: Add the rest of YUV formats

2015-07-06 Thread Stephane Viau
, Stephane. Stephane Viau (4): drm/msm/mdp5: Update generated headers (filter fieds) drm/msm/mdp5: Rename scalers' filter fields drm/msm/mdp: Update generated headers (chroma_samp) drm/msm/mdp5: add more YUV formats for MDP5 Wentao Xu (2): drm/msm/mdp: mark if a MDP format is YUV

[PATCH 2/6] drm/msm/mdp5: Rename scalers' filter fields

2015-07-06 Thread Stephane Viau
The current names were guessed based on downstream driver. This change replaces the filter fields' names to avoid any confusion. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions

[PATCH 3/6] drm/msm/mdp: Update generated headers (chroma_samp)

2015-07-06 Thread Stephane Viau
See Envytools patch: rnndb: Rename 1st Source Chroma Sampling option Signed-off-by: Wentao Xu went...@codeaurora.org Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp_common.xml.h | 37 +++- 1 file changed, 3 insertions(+), 34

[PATCH 0/6] drm/msm/mdp: Add the rest of YUV formats

2015-07-06 Thread Stephane Viau
, Stephane. Stephane Viau (4): drm/msm/mdp5: Update generated headers (filter fieds) drm/msm/mdp5: Rename scalers' filter fields drm/msm/mdp: Update generated headers (chroma_samp) drm/msm/mdp5: add more YUV formats for MDP5 Wentao Xu (2): drm/msm/mdp: mark if a MDP format is YUV

[PATCH 4/6] drm/msm/mdp: mark if a MDP format is YUV at definition

2015-07-06 Thread Stephane Viau
From: Wentao Xu went...@codeaurora.org This makes it easy to determine if a format is YUV. The old method of using chroma sample type incorrectly marks YUV444 as RGB format. Signed-off-by: Wentao Xu went...@codeaurora.org [rebase] Signed-off-by: Stephane Viau sv...@codeaurora.org Change-Id

[PATCH 1/6] drm/msm/mdp5: Update generated headers (filter fieds)

2015-07-06 Thread Stephane Viau
See envytools commit: rnndb: Rename scalers' filter fields Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 58 - 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h

[PATCH 6/6] drm/msm/mdp5: add more YUV formats for MDP5

2015-07-06 Thread Stephane Viau
Add packed YUV422 and planar YUV420 formats to MDP supported formats. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 105 +- drivers/gpu/drm/msm/mdp/mdp_format.c | 19 ++ 2 files changed, 77 insertions

[PATCH] rnndb: Rename scalers' filter fields

2015-07-06 Thread Stephane Viau
The current names were guessed based on downstream driver. This change replaces the filter fields' names to avoid any confusion. Signed-off-by: Stephane Viau sv...@codeaurora.org --- rnndb/mdp/mdp5.xml | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/rnndb/mdp

[PATCH 5/6] drm/msm/mdp5: use 2 memory clients for YUV formats on newer mdp5

2015-07-06 Thread Stephane Viau
-off-by: Stephane Viau sv...@codeaurora.org Change-Id: I24df222372b6cea5e67d2331e2c842c4faba383e --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 2 +- drivers/gpu/drm/msm/mdp/mdp5/mdp5_smp.c | 26 ++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_smp.h | 3 ++- 3 files changed, 25

[PATCH] rnndb: Rename 1st Source Chroma Sampling option

2015-07-06 Thread Stephane Viau
enum mdp_chroma_samp_type's first value (0) is actually shared by all non-subsampled formats; that is RGB but also some YUV formats (eg: YUV444). This change makes the name a little less confusing. Signed-off-by: Stephane Viau sv...@codeaurora.org Signed-off-by: Wentao Xu went...@codeaurora.org

[PATCH 2/2] drm/msm: Add support for msm8x94

2015-06-19 Thread Stephane Viau
This change adds the MDP and HDMI support for msm8x94. Note that HDMI PHY registers are not being accessed anymore from the driver. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/hdmi/hdmi.c | 30 - drivers/gpu/drm/msm/hdmi/hdmi_bridge.c| 8 +++- drivers/gpu/drm

[PATCH 1/2] drm/msm/hdmi: remove ->reset() from HDMI PHY

2015-06-19 Thread Stephane Viau
igned-off-by: Stephane Viau --- drivers/gpu/drm/msm/hdmi/hdmi.h | 1 - drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 51 ++- drivers/gpu/drm/msm/hdmi/hdmi_phy_8960.c | 52 drivers/gpu/drm/msm/hdmi/hdmi_phy_8x60.c | 32 - driver

[PATCH 0/2] drm/msm: HDMI PHY rework for MSM8x94 support

2015-06-19 Thread Stephane Viau
This it to follow up with my RFC sent a few days ago[1]. Since the RFC got discussed and approved through IRC, here are the actual patches. Rgds, Stephane. [1] http://lists.freedesktop.org/archives/dri-devel/2015-June/084788.html Stephane Viau (2): drm/msm/hdmi: remove ->reset() from H

[PATCH 2/2] drm/msm: Add support for msm8x94

2015-06-19 Thread Stephane Viau
This change adds the MDP and HDMI support for msm8x94. Note that HDMI PHY registers are not being accessed anymore from the driver. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/hdmi/hdmi.c | 30 - drivers/gpu/drm/msm/hdmi/hdmi_bridge.c| 8

[PATCH 1/2] drm/msm/hdmi: remove -reset() from HDMI PHY

2015-06-19 Thread Stephane Viau
for which no PHY registers accesses are done (-phy_init == NULL) but the HDMI PHY reset from HDMI core still needs to be done. Note: SW_RESET_PLL bit is not written in hdmi_phy_8x60_reset(); this write should not affect anything if the corresponding field is not writable. Signed-off-by: Stephane

[PATCH 0/2] drm/msm: HDMI PHY rework for MSM8x94 support

2015-06-19 Thread Stephane Viau
This it to follow up with my RFC sent a few days ago[1]. Since the RFC got discussed and approved through IRC, here are the actual patches. Rgds, Stephane. [1] http://lists.freedesktop.org/archives/dri-devel/2015-June/084788.html Stephane Viau (2): drm/msm/hdmi: remove -reset() from HDMI PHY

[RFC 1/2] [RFC] drm/msm/hdmi: remove ->reset() from HDMI PHY

2015-06-16 Thread Stephane Viau
igned-off-by: Stephane Viau --- drivers/gpu/drm/msm/hdmi/hdmi.h | 1 - drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 51 ++- drivers/gpu/drm/msm/hdmi/hdmi_phy_8960.c | 52 drivers/gpu/drm/msm/hdmi/hdmi_phy_8x60.c | 32 - driver

[RFC 2/2] drm/msm: Add support for msm8x94

2015-06-16 Thread Stephane Viau
This change adds the MDP and HDMI support for msm8x94. Note that HDMI PHY registers are not being accessed anymore from the driver. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/hdmi/hdmi.c | 30 - drivers/gpu/drm/msm/hdmi/hdmi_bridge.c| 8 +++- drivers/gpu/drm

[RFC 0/2] drm/msm: HDMI PHY rework for MSM8x94 support

2015-06-16 Thread Stephane Viau
n't change the current functionality. Stephane Viau (2): [RFC] drm/msm/hdmi: remove ->reset() from HDMI PHY drm/msm: Add support for msm8x94 drivers/gpu/drm/msm/hdmi/hdmi.c | 30 ++ drivers/gpu/drm/msm/hdmi/hdmi.h | 1 - drivers/gpu/drm/msm/hdmi/hdmi_bridge.c

[RFC 2/2] drm/msm: Add support for msm8x94

2015-06-16 Thread Stephane Viau
This change adds the MDP and HDMI support for msm8x94. Note that HDMI PHY registers are not being accessed anymore from the driver. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/hdmi/hdmi.c | 30 - drivers/gpu/drm/msm/hdmi/hdmi_bridge.c| 8

[RFC 1/2] [RFC] drm/msm/hdmi: remove -reset() from HDMI PHY

2015-06-16 Thread Stephane Viau
for which no PHY registers accesses are done (-phy_init == NULL) but the HDMI PHY reset from HDMI core still needs to be done. Note: SW_RESET_PLL bit is not written in hdmi_phy_8x60_reset(); this write should not affect anything if the corresponding field is not writable. Signed-off-by: Stephane

[RFC 0/2] drm/msm: HDMI PHY rework for MSM8x94 support

2015-06-16 Thread Stephane Viau
change the current functionality. Stephane Viau (2): [RFC] drm/msm/hdmi: remove -reset() from HDMI PHY drm/msm: Add support for msm8x94 drivers/gpu/drm/msm/hdmi/hdmi.c | 30 ++ drivers/gpu/drm/msm/hdmi/hdmi.h | 1 - drivers/gpu/drm/msm/hdmi/hdmi_bridge.c| 8

[PATCH v3 1/2] drm/msm/hdmi: Point to the right struct device

2015-06-04 Thread Stephane Viau
DRM device's dev (hdmi->dev->dev) points to the mdss_mdp device handle. Instead, we should get a reference to the mdss_hdmi handle. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 32 +++ 1 file changed, 16 insertions(+), 16 del

[PATCH v3 2/2] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-06-04 Thread Stephane Viau
Some targets (eg: msm8994) use the pinctrl framework to configure interface pins. This change adds support for initialization and pinctrl active/sleep state control for the HDMI driver. Signed-off-by: Stephane Viau --- v3: - Use pins binding handled in driver really_probe() [Ivan] v2

[PATCH v3 0/2] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-06-04 Thread Stephane Viau
Pinctrl support for HDMI needs a small fix before the actual implementation... Stephane Viau (2): drm/msm/hdmi: Point to the right struct device drm/msm/hdmi: Use pinctrl in HDMI driver Documentation/devicetree/bindings/drm/msm/hdmi.txt | 6 +++ drivers/gpu/drm/msm/hdmi/hdmi_connector.c

[PATCH v3 1/2] drm/msm/hdmi: Point to the right struct device

2015-06-04 Thread Stephane Viau
DRM device's dev (hdmi-dev-dev) points to the mdss_mdp device handle. Instead, we should get a reference to the mdss_hdmi handle. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 32 +++ 1 file changed, 16 insertions

[PATCH v3 2/2] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-06-04 Thread Stephane Viau
Some targets (eg: msm8994) use the pinctrl framework to configure interface pins. This change adds support for initialization and pinctrl active/sleep state control for the HDMI driver. Signed-off-by: Stephane Viau sv...@codeaurora.org --- v3: - Use pins binding handled in driver really_probe

[PATCH v3 0/2] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-06-04 Thread Stephane Viau
Pinctrl support for HDMI needs a small fix before the actual implementation... Stephane Viau (2): drm/msm/hdmi: Point to the right struct device drm/msm/hdmi: Use pinctrl in HDMI driver Documentation/devicetree/bindings/drm/msm/hdmi.txt | 6 +++ drivers/gpu/drm/msm/hdmi/hdmi_connector.c

[PATCH] drm/msm/mdp: Add support for more 32-bit RGB formats

2015-06-03 Thread Stephane Viau
That will complete the lists of Alpha + RGB formats. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp_format.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/msm/mdp/mdp_format.c b/drivers/gpu/drm/msm/mdp/mdp_format.c index f683433..7b0524d 100644

[PATCH] drm/msm/mdp: Add support for more 32-bit RGB formats

2015-06-03 Thread Stephane Viau
That will complete the lists of Alpha + RGB formats. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp_format.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/msm/mdp/mdp_format.c b/drivers/gpu/drm/msm/mdp/mdp_format.c index f683433

[PATCH v2] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-06-01 Thread Stephane Viau
Some targets (eg: msm8994) use the pinctrl framework to configure interface pins. This change adds support for initialization and pinctrl active/sleep state control for the HDMI driver. Signed-off-by: Stephane Viau --- v2: - Add devicetree binding documentation for pinctrl property [Ivan] - Use

[PATCH v2] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-06-01 Thread Stephane Viau
Some targets (eg: msm8994) use the pinctrl framework to configure interface pins. This change adds support for initialization and pinctrl active/sleep state control for the HDMI driver. Signed-off-by: Stephane Viau sv...@codeaurora.org --- v2: - Add devicetree binding documentation for pinctrl

[PATCH] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-05-29 Thread Stephane Viau
Some targets (eg: msm8994) use the pinctrl framework to configure interface pins. This change adds support for initialization and pinctrl active/sleep state control for the HDMI driver. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/hdmi/hdmi.c | 25

[PATCH] drm/msm/hdmi: Use pinctrl in HDMI driver

2015-05-29 Thread Stephane Viau
Some targets (eg: msm8994) use the pinctrl framework to configure interface pins. This change adds support for initialization and pinctrl active/sleep state control for the HDMI driver. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/hdmi/hdmi.c | 25

[PATCH] drm/msm/mdp5: fix incorrect parameter for msm_framebuffer_iova()

2015-05-20 Thread Stephane Viau
The index of ->planes[] array (3rd parameter) cannot be equal to MAX_PLANE. This looks like a typo that is now fixed. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/mdp/m

[PATCH] drm/msm/mdp5: fix incorrect parameter for msm_framebuffer_iova()

2015-05-20 Thread Stephane Viau
The index of -planes[] array (3rd parameter) cannot be equal to MAX_PLANE. This looks like a typo that is now fixed. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH] drm/msm: Fix compil issue when DRM_MSM_FBDEV is disabled

2015-05-06 Thread Stephane Viau
When CONFIG_DRM_MSM_FBDEV is not defined, CONFIG_DRM_KMS_FB_HELPER does not get selected and drm_fb_helper_*() helper functions are thus not available. This change fixes these link issues. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/msm_drv.c | 4 1 file changed, 4 insertions

[PATCH] drm/msm: Fix compil issue when DRM_MSM_FBDEV is disabled

2015-05-06 Thread Stephane Viau
When CONFIG_DRM_MSM_FBDEV is not defined, CONFIG_DRM_KMS_FB_HELPER does not get selected and drm_fb_helper_*() helper functions are thus not available. This change fixes these link issues. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/msm_drv.c | 4 1 file

[PATCH] drm/msm: fix unbalanced DRM framebuffer init/destroy

2015-05-05 Thread Stephane Viau
[] (internal_framebuffer_create+0x67c/0x7b4) [ 247.877537] [] (internal_framebuffer_create) from [] (drm_mode_addfb2+0x20/0x98) [ 247.886650] [] (drm_mode_addfb2) from [] (drm_ioctl+0x240/0x420) [ 247.894378] [] (drm_ioctl) from [] (do_vfs_ioctl+0x4e4/0x5a4) ... Signed-off-by: Stephane Viau --- drivers/gpu

[PATCH] drm/msm: fix unbalanced DRM framebuffer init/destroy

2015-05-05 Thread Stephane Viau
+0x240/0x420) [ 247.894378] [c034071c] (drm_ioctl) from [c011df7c] (do_vfs_ioctl+0x4e4/0x5a4) ... Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/msm_fb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_fb.c b/drivers/gpu/drm

[PATCH] rnndb: Add 28nm PLL register description

2015-05-01 Thread Stephane Viau
Each interface (DSI/eDP/HDMI) has to control its own PLL. This change only add the register description for each one of them. Let's not make the register description common as some registers may not be implemented the same way for each interface PHY. Signed-off-by: Stephane Viau --- rnndb/dsi

[PATCH] drm/msm: Update generated headers (PLL registers)

2015-05-01 Thread Stephane Viau
registers may not be implemented the same way for each interface PHY. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/dsi/dsi.xml.h | 118 +++- drivers/gpu/drm/msm/edp/edp.xml.h | 104 +++ drivers/gpu/drm/msm/hdmi

[PATCH] drm/msm: Update generated headers (PLL registers)

2015-05-01 Thread Stephane Viau
registers may not be implemented the same way for each interface PHY. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi.xml.h | 118 +++- drivers/gpu/drm/msm/edp/edp.xml.h | 104 +++ drivers/gpu

[PATCH] rnndb: Add 28nm PLL register description

2015-05-01 Thread Stephane Viau
Each interface (DSI/eDP/HDMI) has to control its own PLL. This change only add the register description for each one of them. Let's not make the register description common as some registers may not be implemented the same way for each interface PHY. Signed-off-by: Stephane Viau sv

[PATCH] drm/msm/mdp5: Fix iteration on INTF config array

2015-04-30 Thread Stephane Viau
once i reaches hw_cfg->intf.count (== 1), we will miss the test for intfs[1]. Actually, this hw_cfg->intf.count entry is quite confusing and is not (or *should not be*) used anywhere else; let's remove it. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp

[PATCH] drm/msm/dsi: Fix a couple more 64-bit build warnings

2015-04-30 Thread Stephane Viau
Avoid such errors at compilation time: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/dsi/dsi_host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi

[PATCH] drm/msm/dsi: Fix a couple more 64-bit build warnings

2015-04-30 Thread Stephane Viau
Avoid such errors at compilation time: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi_host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH] drm/msm/mdp5: Fix iteration on INTF config array

2015-04-30 Thread Stephane Viau
hw_cfg-intf.count (== 1), we will miss the test for intfs[1]. Actually, this hw_cfg-intf.count entry is quite confusing and is not (or *should not be*) used anywhere else; let's remove it. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 34

[PATCH] clk: qcom: gdsc: Add GDSCs in apq8084 MMCC

2015-03-25 Thread Stephane Viau
Add the GDSC instances that exist as part of apq8084 MMCC block. Signed-off-by: Stephane Viau --- drivers/clk/qcom/Kconfig | 1 + drivers/clk/qcom/mmcc-apq8084.c | 56 ++- include/dt-bindings/clock/qcom,mmcc-apq8084.h | 8 3

[PATCH] clk: qcom: gdsc: Add GDSCs in apq8084 MMCC

2015-03-25 Thread Stephane Viau
Add the GDSC instances that exist as part of apq8084 MMCC block. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/clk/qcom/Kconfig | 1 + drivers/clk/qcom/mmcc-apq8084.c | 56 ++- include/dt-bindings/clock/qcom,mmcc-apq8084

[PATCH v2 4/5] drm/msm/mdp5: Get SMP client list from mdp5_cfg

2015-03-24 Thread Stephane Viau
, the client ID list is passed through the MDP5 config module rather than using a list of hard-coded enum values. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 20 --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 1 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_smp.c

[PATCH v2 1/5] drm/msm/mdp5: Update headers (introduce MDP5 domain)

2015-03-24 Thread Stephane Viau
This change contains the generated header file for the following change "drm/msm/mdp5: Separate MDP5 domain from MDSS domain". Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 203 +++- 1 file changed, 118 insertions(+), 85

[PATCH v2 3/5] drm/msm/mdp5: Update headers (remove enum mdp5_client_id)

2015-03-24 Thread Stephane Viau
This patch contains the generated header file of the following change "drm/msm/mdp5: Get SMP client list from mdp5_cfg". Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 41 ++--- 1 file changed, 7 insertions(+), 34 deletions(-)

[PATCH v2 2/5] drm/msm/mdp5: Separate MDP5 domain from MDSS domain

2015-03-24 Thread Stephane Viau
the MDSS HW version is read. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 8 drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 1 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 20 ++-- drivers/gpu/drm/msm/mdp/mdp5/mdp5_irq.c | 26

[PATCH v2 0/5] drm/msm: Add display configuration for msm8x16

2015-03-24 Thread Stephane Viau
This patch set contains a couple modifications of the MDP5 register description, followed by the MDP hw configuration of the msm8016 and msm8916 chipsets. v2: add CTL flush register's hardware mask [pointed by Archit] Stephane Viau (5): drm/msm/mdp5: Update headers (introduce MDP5 domain

[PATCH v2 5/5] drm/msm/mdp5: Add hardware configuration for msm8x16

2015-03-24 Thread Stephane Viau
mask [pointed by Archit] Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 52 - 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c index 96ea6dd

[PATCH 2/2] drm/msm/mdp5: Remove CTL flush dummy bits

2015-03-24 Thread Stephane Viau
This TODO can now be removed and replaced by the previous patch "drm/msm/mdp5: Update headers (add CTL flush bits)" Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp

[PATCH 1/2] drm/msm/mdp5: Update headers (add CTL flush bits)

2015-03-24 Thread Stephane Viau
Some upcoming targets have more bits to set in CTL_FLUSH registers. Example: msm8x16 needs to set TIMING1 bit so that some of the INTF1's interface registers get flushed. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 12 ++-- 1 file changed, 10 insertions

[PATCH] rnndb/mdp5: Add some CTL flush bits

2015-03-24 Thread Stephane Viau
Some upcoming targets have more bits to set in CTL_FLUSH registers. Example: msm8x16 needs to set TIMING1 bit so that some of the INTF1's interface registers get flushed. Signed-off-by: Stephane Viau --- rnndb/mdp/mdp5.xml | 8 1 file changed, 8 insertions(+) diff --git a/rnndb/mdp

[PATCH 0/2] Implement CTL flush dummy bits

2015-03-24 Thread Stephane Viau
This patchset proposes in a couple of changes (separate generated header) to remove the temporary defined symbols in the code and place them into the generated header file. Stephane Viau (2): drm/msm/mdp5: Update headers (add CTL flush bits) drm/msm/mdp5: Remove CTL flush dummy bits drivers

[PATCH 2/2] drm/msm/mdp5: Remove CTL flush dummy bits

2015-03-24 Thread Stephane Viau
This TODO can now be removed and replaced by the previous patch drm/msm/mdp5: Update headers (add CTL flush bits) Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp

[PATCH 0/2] Implement CTL flush dummy bits

2015-03-24 Thread Stephane Viau
This patchset proposes in a couple of changes (separate generated header) to remove the temporary defined symbols in the code and place them into the generated header file. Stephane Viau (2): drm/msm/mdp5: Update headers (add CTL flush bits) drm/msm/mdp5: Remove CTL flush dummy bits drivers

[PATCH] rnndb/mdp5: Add some CTL flush bits

2015-03-24 Thread Stephane Viau
Some upcoming targets have more bits to set in CTL_FLUSH registers. Example: msm8x16 needs to set TIMING1 bit so that some of the INTF1's interface registers get flushed. Signed-off-by: Stephane Viau sv...@codeaurora.org --- rnndb/mdp/mdp5.xml | 8 1 file changed, 8 insertions(+) diff

[PATCH 1/2] drm/msm/mdp5: Update headers (add CTL flush bits)

2015-03-24 Thread Stephane Viau
Some upcoming targets have more bits to set in CTL_FLUSH registers. Example: msm8x16 needs to set TIMING1 bit so that some of the INTF1's interface registers get flushed. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 12 ++-- 1 file

[PATCH v2 3/5] drm/msm/mdp5: Update headers (remove enum mdp5_client_id)

2015-03-24 Thread Stephane Viau
This patch contains the generated header file of the following change drm/msm/mdp5: Get SMP client list from mdp5_cfg. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 41 ++--- 1 file changed, 7 insertions(+), 34

[PATCH v2 4/5] drm/msm/mdp5: Get SMP client list from mdp5_cfg

2015-03-24 Thread Stephane Viau
, the client ID list is passed through the MDP5 config module rather than using a list of hard-coded enum values. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 20 --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 1 + drivers/gpu/drm/msm/mdp

[PATCH v2 1/5] drm/msm/mdp5: Update headers (introduce MDP5 domain)

2015-03-24 Thread Stephane Viau
This change contains the generated header file for the following change drm/msm/mdp5: Separate MDP5 domain from MDSS domain. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 203 +++- 1 file changed, 118 insertions(+), 85

[PATCH v2 2/5] drm/msm/mdp5: Separate MDP5 domain from MDSS domain

2015-03-24 Thread Stephane Viau
the MDSS HW version is read. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 8 drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 1 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 20 ++-- drivers/gpu/drm/msm/mdp/mdp5/mdp5_irq.c | 26

  1   2   3   >