[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 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 09/10] drm/msm/mdp: Add Software Pixel Extension support

2015-09-15 Thread Stephane Viau
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: Ste

[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

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

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

2015-09-15 Thread Stephane Viau
: 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 04/10] drm/msm/mdp5: Avoid printing error messages for optional clocks

2015-09-15 Thread Stephane Viau
v_err 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/bin

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

[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] 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/rnnd

[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

[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 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 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 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/dr

[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

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

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

[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 1/2] [RFC] drm/msm/hdmi: remove ->reset() from HDMI PHY

2015-06-16 Thread Stephane Viau
ed-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 0/2] drm/msm: HDMI PHY rework for MSM8x94 support

2015-06-16 Thread Stephane Viau
ort and won'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/

[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 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(+), 1

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

[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] 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/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: 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 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] 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 --- rnnd

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

2015-05-01 Thread Stephane Viau
some 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

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

2015-04-30 Thread Stephane Viau
ting 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/md

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

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

2015-03-24 Thread Stephane Viau
dware 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 96

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

[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/rnnd

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

[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 v3 4/4] drm/msm/mdp5: Make the intf connection in config module

2015-03-13 Thread Stephane Viau
INTF_TIMING_ENGINE_EN registers Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 8 +++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 4 ++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 112 ++-- 3 files changed, 75 insertions(+), 49 deletions(-) diff --git

[PATCH v3 3/4] drm/msm/mdp5: Add START signal to kick off certain pipelines

2015-03-13 Thread Stephane Viau
). Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 2 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 7 +- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 31 ++-- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 247 drivers/gpu/drm/msm

[PATCH v3 2/4] drm/msm/mdp5: Enhance operation mode for pipeline configuration

2015-03-13 Thread Stephane Viau
pipeline as far as operation mode goes. DSI and WB interfaces will be added later. v2: rename macro to mdp5_cfg_intf_is_virtual() [pointed by Archit] Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 4 ++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 39

[PATCH v3 1/4] drm/msm/mdp5: Update generated header files

2015-03-13 Thread Stephane Viau
Prepare for pipeline operation mode configuration, in particular for DSI and WB modes. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 68 - 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5

[PATCH v3 0/4] drm/msm: preparation for WB/DSI connectors

2015-03-13 Thread Stephane Viau
m/msm: Add display configuration for msm8x16" patch set depends on "drm/msm: preparation for WB/DSI connectors" patch set. Stephane Viau (4): drm/msm/mdp5: Update generated header files drm/msm/mdp5: Enhance operation mode for pipeline configuration drm/msm/mdp5: Add STAR

[PATCH] rnndb: update generated headers

2015-03-13 Thread Stephane Viau
From: Beeresh Gopal To avoid ambiguity rename register FRAME_SIZE to SSTILE_FRAME_SIZE. Signed-off-by: Beeresh Gopal --- rnndb/mdp/mdp4.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rnndb/mdp/mdp4.xml b/rnndb/mdp/mdp4.xml index 26d1deb..a84f530 100644 --- a/rnndb/mdp/

[PATCH v2 2/2] drm/msm/mdp4: Support NV12MT format in mdp4

2015-03-13 Thread Stephane Viau
From: Beeresh Gopal Using fb modifier flag, support NV12MT format in MDP4. v2: - rework the modifier's description [Daniel Vetter's comment] - drop .set_mode_config() callback [Rob Clark's comment] Signed-off-by: Beeresh Gopal Signed-off-by: Stephane Viau --- drivers/gpu/d

[PATCH v2 1/2] drm/msm: update generated headers

2015-03-13 Thread Stephane Viau
From: Beeresh Gopal To avoid ambiguity rename FRAME_SIZE to SSTILE_FRAME_SIZE Signed-off-by: Beeresh Gopal --- drivers/gpu/drm/msm/mdp/mdp4/mdp4.xml.h | 36 + 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp4/mdp4.xml.h

[PATCH v2 0/2] drm/msm: Add support for NV12MT format in mdp4

2015-03-13 Thread Stephane Viau
Resending a v2 on behalf of Beeresh with comments from Daniel and Rob addressed. Beeresh Gopal (2): drm/msm: update generated headers drm/msm/mdp4: Support NV12MT format in mdp4 drivers/gpu/drm/msm/mdp/mdp4/mdp4.xml.h | 36 --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_

[PATCH 2/2] rnndb: Do not use enum mdp5_client_id to configure SMP

2015-03-09 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 --- rnndb/mdp/mdp5.xml | 34 -- 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/rnndb/mdp/mdp5.xml b/rnndb/mdp

[PATCH 1/2] rnndb: Separate MDP5 domain from MDSS domain

2015-03-09 Thread Stephane Viau
MDSS HW version is read. Signed-off-by: Stephane Viau --- rnndb/mdp/mdp5.xml | 123 + 1 file changed, 67 insertions(+), 56 deletions(-) diff --git a/rnndb/mdp/mdp5.xml b/rnndb/mdp/mdp5.xml index db2e15c..aedaa7c 100644 --- a/rnndb/mdp/mdp5.xml

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

2015-03-09 Thread Stephane Viau
This change adds the hw configuration for msm8x16 chipsets in mdp5_cfg module. Note that only one external display interface is present in this configuration (DSI) but has not been enabled yet. It will be enabled once drm/msm driver supports DSI connectors. Signed-off-by: Stephane Viau

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

2015-03-09 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 3/5] drm/msm/mdp5: Update headers (remove enum mdp5_client_id)

2015-03-09 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 2/5] drm/msm/mdp5: Separate MDP5 domain from MDSS domain

2015-03-09 Thread Stephane Viau
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 1/5] drm/msm/mdp5: Update headers (introduce MDP5 domain)

2015-03-09 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 0/5] drm/msm: Add display configuration for msm8x16

2015-03-09 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. Stephane Viau (5): drm/msm/mdp5: Update headers (introduce MDP5 domain) drm/msm/mdp5: Separate MDP5 domain from MDSS domain drm/msm/mdp5

[PATCH v2 4/4] drm/msm/mdp5: Make the intf connection in config module

2015-03-05 Thread Stephane Viau
Up until now, we assume that eDP is tight to intf_0 and HDMI to intf_3. This information shall actually come from the mdp5_cfg module since it can change from one chip to another. v2: rename macro to mdp5_cfg_intf_is_virtual() [pointed by Archit] Signed-off-by: Stephane Viau --- drivers/gpu

[PATCH v2 3/4] drm/msm/mdp5: Add START signal to kick off certain pipelines

2015-03-05 Thread Stephane Viau
). Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 2 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 7 +- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 31 ++-- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 247 drivers/gpu/drm/msm

[PATCH v2 2/4] drm/msm/mdp5: Enhance operation mode for pipeline configuration

2015-03-05 Thread Stephane Viau
pipeline as far as operation mode goes. DSI and WB interfaces will be added later. v2: rename macro to mdp5_cfg_intf_is_virtual() [pointed by Archit] Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 4 ++ drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 39

[PATCH v2 1/4] drm/msm/mdp5: Update generated header files

2015-03-05 Thread Stephane Viau
Prepare for pipeline operation mode configuration, in particular for DSI and WB modes. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 68 - 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5

[PATCH v2 0/4] drm/msm: preparation for WB/DSI connectors

2015-03-05 Thread Stephane Viau
WB and DSI support are in the pipe and will come out soon. Before that, we need to prepare the MDP5 driver so we can support these connectors. v2: rename macro to mdp5_cfg_intf_is_virtual() [pointed by Archit] Stephane Viau (4): drm/msm/mdp5: Update generated header files drm/msm/mdp5

[PATCH] rnndb: Prepare for more interfaces support (WB, DSI)

2015-03-03 Thread Stephane Viau
. Signed-off-by: Stephane Viau --- rnndb/mdp/mdp5.xml | 67 +++--- 1 file changed, 33 insertions(+), 34 deletions(-) diff --git a/rnndb/mdp/mdp5.xml b/rnndb/mdp/mdp5.xml index 3c199a1..4d9781c 100644 --- a/rnndb/mdp/mdp5.xml +++ b/rnndb/mdp/mdp5.xml

[PATCH 4/4] drm/msm/mdp5: Make the intf connection in config module

2015-03-03 Thread Stephane Viau
Up until now, we assume that eDP is tight to intf_0 and HDMI to intf_3. This information shall actually come from the mdp5_cfg module since it can change from one chip to another. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 8 +++ drivers/gpu/drm/msm/mdp/mdp5

[PATCH 3/4] drm/msm/mdp5: Add START signal to kick off certain pipelines

2015-03-03 Thread Stephane Viau
). Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 2 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 7 +- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 31 ++-- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 247 drivers/gpu/drm/msm

[PATCH 2/4] drm/msm/mdp5: Enhance operation mode for pipeline configuration

2015-03-03 Thread Stephane Viau
pipeline as far as operation mode goes. DSI and WB interfaces will be added later. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 2 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 39 ++--- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 91

[PATCH 1/4] drm/msm/mdp5: Update generated header files

2015-03-03 Thread Stephane Viau
Prepare for pipeline operation mode configuration, in particular for DSI and WB modes. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 68 - 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5

[PATCH 0/4] drm/msm: preparation for WB/DSI connectors

2015-03-03 Thread Stephane Viau
WB and DSI support are in the pipe and will come out soon. Before that, we need to prepare the MDP5 driver so we can support these connectors. Stephane Viau (4): drm/msm/mdp5: Update generated header files drm/msm/mdp5: Enhance operation mode for pipeline configuration drm/msm/mdp5: Add

[PATCH] rnndb: Add a 6th lm.base entry

2015-02-20 Thread Stephane Viau
Some target have up to 6 layer mixers (LM). Let the xml file access the last LM's base address. Signed-off-by: Stephane Viau --- rnndb/mdp/mdp5.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rnndb/mdp/mdp5.xml b/rnndb/mdp/mdp5.xml index cd3bf37..eaaec47 100644

[PATCH 2/2] drm/msm/mdp5: Avoid flushing registers when CRTC is disabled

2015-02-20 Thread Stephane Viau
when we .atomic_check()/.atomic_flush() on a disabled CRTC. A CTL needs to be kept as long as the CRTC is alive. Releasing it after the last VBlank is safer than in .atomic_flush(). Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 26 +++--- 1 file cha

[PATCH 1/2] drm/msm: update generated headers (add 6th lm.base entry)

2015-02-20 Thread Stephane Viau
Some target have up to 6 layer mixers (LM). Let the header file access the last LM's base address. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5

[PATCH 0/2] drm/msm/mdp5: A couple of fixes

2015-02-20 Thread Stephane Viau
The 4th CRTC could not be accessed because of a missing case entry. Also, only flush registers when a CRTC is enabled (and thus a CTL is allocated). This shall fix the cursor move issue that Rob mentioned. Stephane Viau (2): drm/msm: update generated headers (add 6th lm.base entry) drm/msm

[PATCH] drm/msm/mdp5: fixup "drm/msm: fix fallout of atomic dpms changes"

2015-02-20 Thread Stephane Viau
s are only present for MDP5. MDP4 is fine. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 4 ++-- drivers/gpu/drm/msm/mdp/mdp5/mdp5_encoder.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c b/drivers/g

[PATCH] drm/msm/mdp5: only flush on a CRTC ->atomic_flush()

2015-01-27 Thread Stephane Viau
nly *one* FLUSH is called between Vblanks interrupts. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c index

[PATCH] drm/msm/mdp5: Fix negative SMP block allocation

2015-01-16 Thread Stephane Viau
In case we request a number of SMP blocks which is lower than the already reserved blocks, we should not try to allocate a negative number, but 0 blocks instead. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_smp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[PATCH 2/2] drm/msm/mdp5: Add hardware cursor support

2015-01-13 Thread Stephane Viau
From: Beeresh Gopal This patch implements the hardware accelarated cursor support for MDP5 platforms. Signed-off-by: Beeresh Gopal Signed-off-by: Wentao Xu Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c | 164 +++ 1 file changed, 164

[PATCH 1/2] drm/msm/mdp5: add register description for HW Cursor support

2015-01-13 Thread Stephane Viau
Update generated headers, in particular pick up the definitions for Hardware Cursor support (MDP5). Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 79 + 1 file changed, 79 insertions(+) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5

[PATCH 0/2] drm/msm/mdp5: hardware cursor support

2015-01-13 Thread Stephane Viau
This patch set contains the hardware cursor changes. Split into two, as usual, in order to separate header file generation from the rest of the code. Beeresh Gopal (1): drm/msm/mdp5: Add hardware cursor support Stephane Viau (1): drm/msm/mdp5: add register description for HW Cursor support

[PATCH RESEND] drm/msm/hdmi: use dynamic allocation for hdmi resources

2015-01-13 Thread Stephane Viau
Instead of reporting BUG_ON when resources arrays are not dimensioned correctly, this patch does a dynamic allocation of these arrays. This is needed for the following patches that add a regulator for a new target. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/hdmi/hdmi.c | 28

[PATCH] drm/msm/mdp5: fix parameter type for mdp5_ctl_set_intf()

2015-01-07 Thread Stephane Viau
mdp5_ctl_set_intf()'s second argument should be "int", not "enum mdp5_intf". The passed in value is "intf", not "intf_id". Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 2 +- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.

[PATCH 3/3] drm/msm/hdmi: rework hdmi configurations, using dt_match[]

2015-01-07 Thread Stephane Viau
In the same idea mdp5_cfg was added, this change allows us to quickly add new instances, such as apq8084's HDMI in this case. Signed-off-by: Stephane Viau --- Documentation/devicetree/bindings/drm/msm/hdmi.txt | 1 + drivers/gpu/drm/msm/hdmi/hdmi.c

[PATCH 2/3] drm/msm/hdmi: Add HDMI platform config for apq8084

2015-01-07 Thread Stephane Viau
This change add the regulator/clock configuration for MDP5 v1.3. This config is close to the one already existing for 8x74, except that one more regulator is needed (hpd-5v-en). Signed-off-by: Stephane Viau --- Documentation/devicetree/bindings/drm/msm/hdmi.txt | 1 + drivers/gpu/drm/msm/hdmi

[PATCH 1/3] drm/msm/hdmi: use dynamic allocation for hdmi resources

2015-01-07 Thread Stephane Viau
Instead of reporting BUG_ON when resources arrays are not dimensioned correctly, this patch does a dynamic allocation of these arrays. This is needed for the following patches that add a regulator for a new target. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/hdmi/hdmi.c | 33

[PATCH 0/3] drm/msm: Add power supplies config for apq8084

2015-01-07 Thread Stephane Viau
ation. Stephane Viau (3): drm/msm/hdmi: use dynamic allocation for hdmi resources drm/msm/hdmi: Add HDMI platform config for apq8084 drm/msm/hdmi: rework hdmi configurations, using dt_match[] Documentation/devicetree/bindings/drm/msm/hdmi.txt | 2 + drivers/gpu/drm/msm/hdmi/h

[PATCH 4/4] drm/msm/mdp4: add YUV format support

2014-12-08 Thread Stephane Viau
From: Beeresh Gopal The patch add support for YUV frame format for MDP4 platform. Signed-off-by: Beeresh Gopal Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c | 104 +++--- 1 file changed, 95 insertions(+), 9 deletions(-) diff --git a

[PATCH 3/4] drm/msm/mdp5: add NV12 support for MDP5

2014-12-08 Thread Stephane Viau
This change adds the NV12 format support for public planes. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 213 +++--- drivers/gpu/drm/msm/msm_fb.c | 2 +- 2 files changed, 194 insertions(+), 21 deletions(-) diff --git a

[PATCH 2/4] drm/msm/mdp: add common YUV information for MDP4/MDP5

2014-12-08 Thread Stephane Viau
Both MDP4 and MDP5 share some code as far as YUV support is concerned. This change adds this information and will be followed by the actual MDP4 and MDP5 YUV support patches. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h | 19 -- drivers/gpu/drm/msm/mdp/mdp5

[PATCH 1/4] drm/msm/mdp: add register description for YUV support

2014-12-08 Thread Stephane Viau
. Generated headers are kept in a separate change to ease the actual driver's code review. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/mdp/mdp4/mdp4.xml.h | 44 + drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 153 +-- drivers/gpu/drm/ms

[PATCH 0/4] drm/msm: YUV suppport addition for MDP4 & MDP5

2014-12-08 Thread Stephane Viau
don't have a build based on atomic yet. The change is pretty similar to MDP5 though. Rgds, Stephane. Beeresh Gopal (1): drm/msm/mdp4: add YUV format support Stephane Viau (3): drm/msm/mdp: add register description for YUV support drm/msm/mdp: add common YUV information for MDP4/MDP5 dr

[PATCH 3/3] drm/msm: add multiple CRTC and overlay support

2014-11-18 Thread Stephane Viau
MDP5 currently support one single CRTC with its private pipe. This change allows the configuration of multiple CRTCs with the possibility to attach several public planes to these CRTCs. Signed-off-by: Stephane Viau --- drivers/gpu/drm/msm/Makefile| 1 + drivers/gpu/drm/msm/mdp

  1   2   >