[Intel-gfx] [PATCH v6 5/8] drm/i915: Add AVI infoframe support for LSPCON

2018-03-29 Thread Shashank Sharma
Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_ddi.c| 19 +++--- drivers/gpu/drm/i915/intel_drv.h| 13 +- drivers/gpu/drm/i915/intel_hdmi.c | 13 +++--- drivers/gpu/drm/i915/intel_lspcon.c | 49 + 4 files c

[Intel-gfx] [PATCH v6 7/8] drm/i915: Write AVI infoframes for Parade LSPCON

2018-03-29 Thread Shashank Sharma
rebase V6: rebase Cc: Imre Deak Cc: Ville Syrjälä Cc: Maarten Lankhorst Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_lspcon.c | 119 +++- 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/drivers/gp

[Intel-gfx] [PATCH v7 7/8] drm/i915: Write AVI infoframes for Parade LSPCON

2018-04-03 Thread Shashank Sharma
checkpatch warnings for alignment Cc: Imre Deak Cc: Ville Syrjälä Cc: Maarten Lankhorst Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_lspcon.c | 117 +++- 1 file changed, 116 insertions(+), 1 deletion(-) diff --git a

[Intel-gfx] [PATCH v7 8/8] drm/i915: Add YCBCR 4:2:0/4:4:4 support for LSPCON

2018-04-03 Thread Shashank Sharma
S_MSA_CLRSP_YCBCR (2<<3) Cc: Ville Syrjala Cc: Maarten Lankhorst Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/i915_reg.h | 2 ++ drivers/gpu/drm/i915/intel_ddi.c | 7 +++ drivers/gpu/drm/i915/intel_display.c | 12 ++

[Intel-gfx] [PATCH v7 5/8] drm/i915: Add AVI infoframe support for LSPCON

2018-04-03 Thread Shashank Sharma
y: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_ddi.c| 19 +++--- drivers/gpu/drm/i915/intel_drv.h| 13 +- drivers/gpu/drm/i915/intel_hdmi.c | 13 +++--- drivers/gpu/drm/i915/intel_lspcon.c | 49

[Intel-gfx] [PATCH v7 0/8] YCBCR 4:2:0/4:4:4 output support for LSPCON

2018-04-03 Thread Shashank Sharma
->get_config(). - V7 fixes alignment warnings from checkpatch. Sharma, Shashank (2): drm/i915: Check LSPCON vendor OUI drm/i915: Write AVI infoframes for MCA LSPCON Shashank Sharma (6): drm/i915: Introduce CRTC output format drm/i915: Add CRTC output format YCBCR 4:2:0 drm/i915: Add C

[Intel-gfx] [PATCH v7 3/8] drm/i915: Add CRTC output format YCBCR 4:4:4

2018-04-03 Thread Shashank Sharma
gs Cc: Ville Syrjälä Cc: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_color.c | 3 ++- drivers/gpu/drm/i915/intel_display.c | 13 + drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_hdmi.c| 2 ++ 4 files changed, 14 inse

[Intel-gfx] [PATCH v7 4/8] drm/i915: Check LSPCON vendor OUI

2018-04-03 Thread Shashank Sharma
V5: Rebase V6: Rebase V7: Rebase Cc: Imre Deak Cc: Ville Syrjälä Cc: Maarten Lankhorst Reviewed-by: Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_drv.h| 6 drivers/gpu/drm/i915/intel_lspcon.c | 69 + 2 files changed, 61 inse

[Intel-gfx] [PATCH v7 2/8] drm/i915: Add CRTC output format YCBCR 4:2:0

2018-04-03 Thread Shashank Sharma
aarten Lankhorst Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_color.c | 2 +- drivers/gpu/drm/i915/intel_ddi.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 72 +--- drivers/gpu/drm/i915/intel_drv.h | 4

[Intel-gfx] [PATCH v7 1/8] drm/i915: Introduce CRTC output format

2018-04-03 Thread Shashank Sharma
checkpatch) Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_crt.c | 3 +++ drivers/gpu/drm/i915/intel_display.c | 17 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_dp_mst.c | 1 + drivers/gpu/drm/i915/intel_drv.h | 8 d

[Intel-gfx] [PATCH v7 6/8] drm/i915: Write AVI infoframes for MCA LSPCON

2018-04-03 Thread Shashank Sharma
rames into MCA LSPCON devices. V2: Rebase V3: Added r-b from Maarten V4: Rebase V5: Rebase V6: Rebase V7: Fixed checkpatch warnings for alignment Cc: Imre Deak Cc: Ville Syrjälä Cc: Maarten Lankhorst Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/i

[Intel-gfx] [PATCH v8 1/8] drm/i915: Introduce CRTC output format

2018-04-04 Thread Shashank Sharma
checkpatch) V8: Another check[atch warning for alignment Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_crt.c | 3 +++ drivers/gpu/drm/i915/intel_display.c | 17 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_dp_mst.c | 1 + drivers/gp

[Intel-gfx] [PATCH v8 7/8] drm/i915: Write AVI infoframes for Parade LSPCON

2018-04-04 Thread Shashank Sharma
checkpatch warnings for alignment V8: Fixed another checkpatch warning for alignment Cc: Imre Deak Cc: Ville Syrjälä Cc: Maarten Lankhorst Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_lspcon.c | 117 +++- 1 file changed

[Intel-gfx] [REBASE v9 0/8] YCBCR 4:2:0/4:4:4 output support for LSPCON

2018-05-30 Thread Shashank Sharma
->get_config(). - V7 fixes alignment warnings from checkpatch. - V8 fixes more alignment warnings from checkpatch. - V9 is just with rebase Sharma, Shashank (2): drm/i915: Check LSPCON vendor OUI drm/i915: Write AVI infoframes for MCA LSPCON Shashank Sharma (6): drm/i915: Introduce C

[Intel-gfx] [REBASE v9 1/8] drm/i915: Introduce CRTC output format

2018-05-30 Thread Shashank Sharma
checkpatch) V8: Another check[atch warning for alignment V9: Rebase Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_crt.c | 3 +++ drivers/gpu/drm/i915/intel_display.c | 17 + drivers/gpu/drm/i915/intel_dp.c | 1 + drivers/gpu/drm/i915/intel_dp_mst.c | 1

[Intel-gfx] [REBASE v9 2/8] drm/i915: Add CRTC output format YCBCR 4:2:0

2018-05-30 Thread Shashank Sharma
ala Cc: Maarten Lankhorst Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_color.c | 2 +- drivers/gpu/drm/i915/intel_ddi.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 72 +--- drivers/gpu/drm/i915/inte

[Intel-gfx] [REBASE v9 3/8] drm/i915: Add CRTC output format YCBCR 4:4:4

2018-05-30 Thread Shashank Sharma
ngs V8: Rebase Cc: Ville Syrjälä Cc: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_color.c | 3 ++- drivers/gpu/drm/i915/intel_display.c | 13 + drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_hdmi.c| 2 ++ 4 files chang

[Intel-gfx] [REBASE v9 4/8] drm/i915: Check LSPCON vendor OUI

2018-05-30 Thread Shashank Sharma
V5: Rebase V6: Rebase V7: Rebase Cc: Imre Deak Cc: Ville Syrjälä Cc: Maarten Lankhorst Reviewed-by: Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_drv.h| 6 drivers/gpu/drm/i915/intel_lspcon.c | 69 + 2 files changed, 61 inse

[Intel-gfx] [REBASE v9 5/8] drm/i915: Add AVI infoframe support for LSPCON

2018-05-30 Thread Shashank Sharma
Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_ddi.c| 19 +++--- drivers/gpu/drm/i915/intel_drv.h| 13 +- drivers/gpu/drm/i915/intel_hdmi.c | 13 +++--- drivers/gpu/drm/i915/intel_lsp

[Intel-gfx] [REBASE v9 6/8] drm/i915: Write AVI infoframes for MCA LSPCON

2018-05-30 Thread Shashank Sharma
rames into MCA LSPCON devices. V2: Rebase V3: Added r-b from Maarten V4: Rebase V5: Rebase V6: Rebase V7: Fixed checkpatch warnings for alignment V8: Rebase Cc: Imre Deak Cc: Ville Syrjälä Cc: Maarten Lankhorst Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gp

[Intel-gfx] [REBASE v9 8/8] drm/i915: Add YCBCR 4:2:0/4:4:4 support for LSPCON

2018-05-30 Thread Shashank Sharma
e TRANS_MSA_CLRSP_YCBCR (2<<3) Cc: Ville Syrjala Cc: Maarten Lankhorst Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/i915_reg.h | 2 ++ drivers/gpu/drm/i915/intel_ddi.c | 7 +++ drivers/gpu/drm/i915/intel_display.c |

[Intel-gfx] [REBASE v9 7/8] drm/i915: Write AVI infoframes for Parade LSPCON

2018-05-30 Thread Shashank Sharma
checkpatch warnings for alignment V8: Rebase Cc: Imre Deak Cc: Ville Syrjälä Cc: Maarten Lankhorst Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_lspcon.c | 117 +++- 1 file changed, 116 insertions(+), 1 deletion(-) diff

[Intel-gfx] [PATCH v9 5/8] drm/i915: Add AVI infoframe support for LSPCON

2018-06-05 Thread Shashank Sharma
Reviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_ddi.c| 19 +++--- drivers/gpu/drm/i915/intel_drv.h| 13 +- drivers/gpu/drm/i915/intel_hdmi.c | 13 +++--- drivers/gpu/drm/i915/intel_lsp

[Intel-gfx] [PATCH v9 6/8] drm/i915: Write AVI infoframes for MCA LSPCON

2018-06-05 Thread Shashank Sharma
eviewed-by: Maarten Lankhorst Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_drv.h| 4 ++ drivers/gpu/drm/i915/intel_hdmi.c | 2 + drivers/gpu/drm/i915/intel_lspcon.c | 89 + 3 files changed, 95 insertions(+) diff --git a/drivers/gp

[Intel-gfx] [PATCH 5/5] drm/i915: Enable lspcon initialization

2016-05-31 Thread Shashank Sharma
-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_ddi.c | 36 ++-- drivers/gpu/drm/i915/intel_drv.h | 4 drivers/gpu/drm/i915/intel_hdmi.c | 17 + 3 files changed, 55 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/5] drm/i915: Add lspcon support for I915 driver

2016-05-31 Thread Shashank Sharma
alize and configure an on-board lspcon device during the driver init time. Also, this patch adds a small structure for lspcon device, which will provide the runtime status of the device. Signed-off-by: Shashank Sharma Signed-off-by: Akashdeep Sharma --- drivers/gpu/drm/i915/Makefile

[Intel-gfx] [PATCH 3/5] drm/i915: lspcon detection

2016-05-31 Thread Shashank Sharma
specific requirements of lspcon detection by adding appropriate changes in I915 drivers HDMI/DP detection sequence. Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_ddi.c| 14 ++ drivers/gpu/drm/i915/intel_dp.c | 12 drivers/gpu/drm/i915/intel_drv.h| 2

[Intel-gfx] [PATCH 0/5] Enable lspcon support for GEN9 devices

2016-05-31 Thread Shashank Sharma
er. Paulo: 1. Do not create a separate connector for lspcon, re-use the existing ddi layer, with special detection sequence (Mutually agreed by Daniel) Shashank Sharma (5): drm: Helper for LSPCON in drm_dp_dual_mode drm/i915: Add lspcon support for I915 driver drm/i915: lspcon detection

[Intel-gfx] [PATCH 1/5] drm: Helper for LSPCON in drm_dp_dual_mode

2016-05-31 Thread Shashank Sharma
Signed-off-by: Shashank Sharma --- drivers/gpu/drm/drm_dp_dual_mode_helper.c | 85 +++ include/drm/drm_dp_dual_mode_helper.h | 29 +++ 2 files changed, 114 insertions(+) diff --git a/drivers/gpu/drm/drm_dp_dual_mode_helper.c b/drivers/gpu/drm

[Intel-gfx] [PATCH 4/5] drm/i915: Parse VBT data for lspcon

2016-05-31 Thread Shashank Sharma
port is configured to have a lspcon device or not. Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/i915_drv.h | 3 +++ drivers/gpu/drm/i915/intel_bios.c | 44 +++ 2 files changed, 47 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.h b

[Intel-gfx] [PATCH v2 0/4] Enable lspcon support for GEN9 devices

2016-06-21 Thread Shashank Sharma
is, we driving lspcon in PCON mode only, where it can serve both HDMI1.3/HDMI1.4 sinks as well as 4k@60 capable HDMI 2.0 sinks. So compared to previous series, there is one patch less, as we have dropped lspcon detection patch. Shashank Sharma (4): drm: Helper for lspcon in drm_dp_dual_mode

[Intel-gfx] [PATCH v2 3/4] drm/i915: Parse VBT data for lspcon

2016-06-21 Thread Shashank Sharma
port is configured to have a lspcon device or not. V2: Fixed review comments from Ville - Do not forget PORT_D while checking lspcon for GEN9 Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/i915_drv.h | 3 +++ drivers/gpu/drm/i915/intel_bios.c | 49

[Intel-gfx] [PATCH v2 4/4] drm/i915: Enable lspcon initialization

2016-06-21 Thread Shashank Sharma
s for LSPCON display now. This part will be added once the dig_port level AVI-IF series gets merged. Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_ddi.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_

[Intel-gfx] [PATCH v2 2/4] drm/i915: Add lspcon support for I915 driver

2016-06-21 Thread Shashank Sharma
. V2: addressed ville's review comments - Clean the leftover macros from previous patch set Signed-off-by: Shashank Sharma Signed-off-by: Akashdeep Sharma --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/intel_drv.h| 13 +++- drivers/gpu/drm/i915/intel_lspcon.c

[Intel-gfx] [PATCH v2 1/4] drm: Helper for lspcon in drm_dp_dual_mode

2016-06-21 Thread Shashank Sharma
definition Signed-off-by: Shashank Sharma --- drivers/gpu/drm/drm_dp_dual_mode_helper.c | 103 ++ include/drm/drm_dp_dual_mode_helper.h | 25 2 files changed, 128 insertions(+) diff --git a/drivers/gpu/drm/drm_dp_dual_mode_helper.c b/drivers/gpu/drm/drm_d

[Intel-gfx] [PATCH v8 01/25] drm: Create Color Management DRM properties

2015-12-03 Thread Shashank Sharma
correction properties. 2. Creating these DRM properties in DRM standard properties creation sequence. Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm/drm_crtc.c | 19 +++ include/drm/drm_crtc.h | 8 2 files changed, 27 insertions

[Intel-gfx] [PATCH v8 03/25] drm: Add color correction blobs in CRTC state

2015-12-03 Thread Shashank Sharma
This patch adds new variables in CRTC state, to hold respective color correction blobs. These blobs will be required during the atomic commit for writing the color correction values in correction registers. Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm

[Intel-gfx] [PATCH v8 00/25] Color Management for DRM framework

2015-12-03 Thread Shashank Sharma
,2,4,8: Fixed make htmldoc warnings, for missing description of new variables added in drm_crtc_state and mode_config. -Rebase: === Changed few variables from u32->i915_reg_t to align with changes in I915_READ and I915_WRITE. Shashank Sharma (25): drm: Create Color Ma

[Intel-gfx] [PATCH v8 02/25] drm: Create Color Management query properties

2015-12-03 Thread Shashank Sharma
. - cm_coeff_after_ctm_property: A platform driver should use this property to show supported no_of_coefficients for palette correction, which gets applied after ctm correction. Signed-off-by: Shashank Sharma --- drivers/gpu/drm/drm_crtc.c | 13 + include/drm/drm_crtc.h

[Intel-gfx] [PATCH v8 08/25] drm: Add color correction state flag

2015-12-03 Thread Shashank Sharma
Add a color correction state flag, to indicate a change in color correction states. This flag will help a core driver to optimize its commit calls, by appling the color correction only when there is a change, not every commit. Signed-off-by: Shashank Sharma --- drivers/gpu/drm/drm_atomic.c | 6

[Intel-gfx] [PATCH v8 05/25] drm: Add get property support for color manager

2015-12-03 Thread Shashank Sharma
the property and passing its blob_id. Signed-off-by: Shashank Sharma --- drivers/gpu/drm/drm_atomic.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c index 6c5baba..203a4a4 100644 --- a/drivers/gpu/drm/drm_atomic.c +++ b

[Intel-gfx] [PATCH v8 11/25] drm/i915: Register color correction capabilities

2015-12-03 Thread Shashank Sharma
TC getting initiaized. 3. Adds two new parameters "num_samples_after_ctm" and "num_samples_before_ctm" in intel_device_info as gamma and degamma coefficients vary per platform basis. Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi ---

[Intel-gfx] [PATCH v8 04/25] drm: Add set property support for color manager

2015-12-03 Thread Shashank Sharma
the blob can referred and applied on display controller registers. This patch adds this set_property support for color correction blobs in drm framework. Signed-off-by: Shashank Sharma Signed-off-by: Kausal malladi --- drivers/gpu/drm/drm_atomic.c | 53

[Intel-gfx] [PATCH v8 12/25] drm/i915: CHV: Load gamma color correction values

2015-12-03 Thread Shashank Sharma
coefficitents for best gamma color correction modes possible in CHV, in device info structure, which is: Gamma(10 bit, CGM HW unit): 257 coeff These values will be loaded in cm_crtc_palette_capabilities_property during the CRTC init section, by color manager's attach function. Signed-off-by: Sha

[Intel-gfx] [PATCH v8 09/25] drm/i915: Add set property interface for CRTC

2015-12-03 Thread Shashank Sharma
This patch adds set property interface for intel CRTC. This interface will be used for set operation on any DRM properties. Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm/i915/intel_display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH v8 14/25] drm/i915: CHV: Pipe level Gamma correction

2015-12-03 Thread Shashank Sharma
macros Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm/i915/i915_reg.h| 12 drivers/gpu/drm/i915/intel_color_manager.c | 97 ++ drivers/gpu/drm/i915/intel_color_manager.h | 13 3 files changed, 122 insertions

[Intel-gfx] [PATCH v8 06/25] drm: Add drm structures for palette color property

2015-12-03 Thread Shashank Sharma
This patch adds new structures in DRM layer for Palette color correction.These structures will be used by user space agents to configure appropriate number of samples and Palette LUT for a platform. Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- include/uapi/drm/drm.h | 20

[Intel-gfx] [PATCH v8 10/25] drm/i915: Create color management files

2015-12-03 Thread Shashank Sharma
This patch create new files intel_color_manager.c which will contain the core color correction code for I915 driver and its header intel_color_manager.h The per color property patches coming up in this patch series will fill the appropriate functions in this file. Signed-off-by: Shashank Sharma

[Intel-gfx] [PATCH v8 07/25] drm: Add structure for CTM color property

2015-12-03 Thread Shashank Sharma
color correction. Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- include/uapi/drm/drm.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h index 3dce251..d4de772 100644 --- a/include/uapi/drm/drm.h +++ b/include/uapi

[Intel-gfx] [PATCH v8 17/25] drm/i915: Commit color correction to CRTC

2015-12-03 Thread Shashank Sharma
The color correction blob values are loaded during set_property calls. This patch adds a function to find the blob and apply the correction values to the display registers, during the atomic commit call. Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH v8 13/25] drm/i915: CHV: Load degamma color correction values

2015-12-03 Thread Shashank Sharma
ff-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm/i915/i915_drv.c| 1 + drivers/gpu/drm/i915/intel_color_manager.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 0060027..09fdba4 100644

[Intel-gfx] [PATCH v8 20/25] drm/i915: BDW: Pipe level Gamma correction

2015-12-03 Thread Shashank Sharma
Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm/i915/i915_reg.h| 25 ++- drivers/gpu/drm/i915/intel_color_manager.c | 280 + drivers/gpu/drm/i915/intel_color_manager.h | 6 + 3 files changed, 309 insertions(+), 2

[Intel-gfx] [PATCH v8 16/25] drm/i915: CHV: Pipe level CSC correction

2015-12-03 Thread Shashank Sharma
-off-by: Shashank Sharma Signed-off-by: Kausal Malladi Signed-off-by: Kumar, Kiran S --- drivers/gpu/drm/i915/i915_reg.h| 8 +++ drivers/gpu/drm/i915/intel_color_manager.c | 99 ++ drivers/gpu/drm/i915/intel_color_manager.h | 19 ++ 3 files changed, 126

[Intel-gfx] [PATCH v8 15/25] drm/i915: CHV: Pipe level degamma correction

2015-12-03 Thread Shashank Sharma
. Add DeGamma correction macros/defines Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm/i915/i915_reg.h| 6 ++ drivers/gpu/drm/i915/intel_color_manager.c | 95 ++ drivers/gpu/drm/i915/intel_color_manager.h | 5 ++ 3 files

[Intel-gfx] [PATCH v8 23/25] drm/i915: BDW: Pipe level CSC correction

2015-12-03 Thread Shashank Sharma
: Shashank Sharma Signed-off-by: Kausal Malladi Signed-off-by: Kumar, Kiran S --- drivers/gpu/drm/i915/i915_reg.h| 7 ++ drivers/gpu/drm/i915/intel_color_manager.c | 114 + drivers/gpu/drm/i915/intel_color_manager.h | 8 ++ 3 files changed, 129

[Intel-gfx] [PATCH v8 19/25] drm/i915: BDW: Load gamma correction values

2015-12-03 Thread Shashank Sharma
in device info structures, for all of those. Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm/i915/i915_drv.c| 7 +++ drivers/gpu/drm/i915/intel_color_manager.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH v8 21/25] drm/i915: BDW: Load degamma correction values

2015-12-03 Thread Shashank Sharma
I915 color manager registers pipe degamma correction as palette correction before CTM, DRM property. This patch adds the no of coefficients(512) for degamma correction as "num_samples_before_ctm" parameter in device info structures, for BDW and higher platforms. Signed-off-by: Shash

[Intel-gfx] [PATCH v8 22/25] drm/i915: BDW: Pipe level degamma correction

2015-12-03 Thread Shashank Sharma
2. Adds DeGamma correction macros/defines Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm/i915/intel_color_manager.c | 59 ++ 1 file changed, 59 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_color_manager.c b/drivers/gpu/drm

[Intel-gfx] [PATCH v8 25/25] drm/i915: Commit color correction only when needed

2015-12-03 Thread Shashank Sharma
set_property call. Apply color correction from the commit layer, only when this flag is set, else pass. Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_color_manager.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_color_manager.c b/drivers/gpu

[Intel-gfx] [PATCH v8 24/25] drm/i915: disable plane gamma

2015-12-03 Thread Shashank Sharma
In plane enabling sequence, plane gamma bit is by default enabled. Plane gamma gets higher priority than pipe gamma, if both enabled. This patch disables plane gamma from sequence. If required, plane gamma can be enabled via the color manager drm interface. Signed-off-by: Shashank Sharma Signed

[Intel-gfx] [PATCH v8 18/25] drm/i915: Attach color properties to CRTC

2015-12-03 Thread Shashank Sharma
Function intel_attach_color_properties_to_crtc attaches a color property to its CRTC object. This patch calls this function from crtc initialization sequence. Signed-off-by: Shashank Sharma Signed-off-by: Kausal Malladi --- drivers/gpu/drm/i915/intel_display.c | 1 + 1 file changed, 1

[Intel-gfx] [PATCH] drm: add picture aspect ratio flags

2015-12-17 Thread Shashank Sharma
This patch adds drm flag bits for aspect ratio information Currently drm flag bits don't have field for mode's picture aspect ratio. This field will help the driver to pick mode with right aspect ratio, and help in setting right VIC field in avi infoframes. Signed-off-by: Shash

[Intel-gfx] [PATCH 4/5] drm: Add flags for new aspect ratios

2015-12-17 Thread Shashank Sharma
HDMI 2.0/CEA-861-F introduces two new aspect ratios: - 64:27 - 256:135 This patch adds DRM flags for the new aspect ratios in the existing aspect ratio flags. Signed-off-by: Shashank Sharma --- include/uapi/drm/drm_mode.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi

[Intel-gfx] [PATCH 3/5] video: Add new aspect ratios for HDMI 2.0

2015-12-17 Thread Shashank Sharma
HDMI 2.0/CEA-861-F introduces two new aspect ratios: - 64:27 - 256:135 This patch adds enumeration for the new aspect ratios in the existing aspect ratio list. Signed-off-by: Shashank Sharma --- drivers/video/hdmi.c | 4 include/linux/hdmi.h | 2 ++ 2 files changed, 6 insertions(+) diff

[Intel-gfx] [PATCH 2/5] drm: Add aspect ratio parsing in DRM layer

2015-12-17 Thread Shashank Sharma
in DRM's mode conversion and mode comparision functions, to make sure kernel picks mode with right aspect ratio (as per the VIC). Signed-off-by: Shashank Sharma Signed-off-by: Lin, Jia Signed-off-by: Akashdeep Sharma --- drivers/gpu/drm/drm_modes.c | 34 ++

[Intel-gfx] [PATCH 5/5] drm/i915: Add support for new aspect ratios

2015-12-17 Thread Shashank Sharma
HDMI 2.0/CEA-861-F introduces two new aspect ratios: - 64:27 - 256:135 This patch adds support for these aspect ratios in I915 driver, at various places. Signed-off-by: Shashank Sharma --- drivers/gpu/drm/drm_modes.c | 12 drivers/gpu/drm/i915/intel_hdmi.c | 6

[Intel-gfx] [PATCH 0/5]: Add aspect ratio parsing

2015-12-17 Thread Shashank Sharma
ion of a umode->kmode and viceversa. - Adds aspect ratio check while finding a mode, during modeset. Patch 3-5 - Adds some new aspect ratio defined in CEA-861-F specs to support HDMI 2.0 displays, in DRM and I915 layer. Shashank Sharma (5): drm: add picture aspect ratio flags drm: Add a

[Intel-gfx] [PATCH v2 1/5] drm: add picture aspect ratio flags

2015-12-17 Thread Shashank Sharma
This patch adds drm flag bits for aspect ratio information Currently drm flag bits don't have field for mode's picture aspect ratio. This field will help the driver to pick mode with right aspect ratio, and help in setting right VIC field in avi infoframes. Signed-off-by: Shash

[Intel-gfx] [PATCH v2 0/5] Add aspect ratio parsing

2015-12-17 Thread Shashank Sharma
a umode->kmode and viceversa. - Adds aspect ratio check while finding a mode, during modeset. Patch 3-5 - Adds some new aspect ratio defined in CEA-861-F specs to support HDMI 2.0 displays, in DRM and I915 layer. V2: needed a rebase Shashank Sharma (5): drm: add picture aspect ratio

[Intel-gfx] [PATCH v2 4/5] drm: Add flags for new aspect ratios

2015-12-17 Thread Shashank Sharma
HDMI 2.0/CEA-861-F introduces two new aspect ratios: - 64:27 - 256:135 This patch adds DRM flags for the new aspect ratios in the existing aspect ratio flags. Signed-off-by: Shashank Sharma --- include/uapi/drm/drm_mode.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/uapi

[Intel-gfx] [PATCH v2 2/5] drm: Add aspect ratio parsing in DRM layer

2015-12-17 Thread Shashank Sharma
in DRM's mode conversion and mode comparision functions, to make sure kernel picks mode with right aspect ratio (as per the VIC). Signed-off-by: Shashank Sharma Signed-off-by: Lin, Jia Signed-off-by: Akashdeep Sharma --- drivers/gpu/drm/drm_modes.c | 34 ++

[Intel-gfx] [PATCH v2 5/5] drm/i915: Add support for new aspect ratios

2015-12-17 Thread Shashank Sharma
HDMI 2.0/CEA-861-F introduces two new aspect ratios: - 64:27 - 256:135 This patch adds support for these aspect ratios in I915 driver, at various places. Signed-off-by: Shashank Sharma --- drivers/gpu/drm/drm_modes.c | 12 drivers/gpu/drm/i915/intel_hdmi.c | 6

[Intel-gfx] [PATCH v2 3/5] video: Add new aspect ratios for HDMI 2.0

2015-12-17 Thread Shashank Sharma
HDMI 2.0/CEA-861-F introduces two new aspect ratios: - 64:27 - 256:135 This patch adds enumeration for the new aspect ratios in the existing aspect ratio list. Signed-off-by: Shashank Sharma --- drivers/video/hdmi.c | 4 include/linux/hdmi.h | 2 ++ 2 files changed, 6 insertions(+) diff

[Intel-gfx] [PATCH] drm: Complete CEA modedb(VIC 1-107)

2016-10-20 Thread Shashank Sharma
(VIC=65 onwards). This patch adds: - Timings for existing CEA video modes (from VIC=65 till VIC=92) - Newly added 4k modes (from VIC=93 to VIC=107). Signed-off-by: Shashank Sharma Signed-off-by: Sonika Jindal Cc: Joes Abreu --- drivers/gpu/drm/drm_edid.c | 231

[Intel-gfx] [PATCH v2] drm: Complete CEA modedb(VIC 1-107)

2016-11-02 Thread Shashank Sharma
(VIC=65 onwards). This patch adds: - Timings for existing CEA video modes (from VIC=65 till VIC=92) - Newly added 4k modes (from VIC=93 to VIC=107). Signed-off-by: Shashank Sharma Signed-off-by: Sonika Jindal Reviewed-by: Jose Abreu Reviewed-by: Alex Deucher Cc: Jose Abreu Cc: Alex Deucher

[Intel-gfx] [PATCH] drm/i915: Restrict usage of live status check

2016-03-10 Thread Shashank Sharma
k for HDMI detection, only for platforms from gen7 onwards. - Cleans up the retry logic. There is an extra 'if (try)' check, which can be avoided by changing the logic slightly, keeping the delay as same(80ms) Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/in

[Intel-gfx] [PATCH v2] drm/i915: Restrict usage of live status check

2016-03-10 Thread Shashank Sharma
k for HDMI detection, only for platforms from gen7 onwards. - Cleans up the retry logic. There is an extra 'if (try)' check, which can be avoided by changing the logic slightly, keeping the delay as same(80ms) V2: Ville: Skipped live_status check for IVB Signed-off-by: Shashank Sharm

[Intel-gfx] [PATCH 0/2] Changes in HDMI detection

2016-03-11 Thread Shashank Sharma
This patch set adds 2 patches: - First patch optimizes the HDMI detection retry loop - Second patch restricts the use of live status register for HDMI detection to certain platforms. This is to fix a regression introduced by a previos patch. Shashank Sharma (2): drm/i915: Optimize the live

[Intel-gfx] [PATCH 1/2] drm/i915: Optimize the live status retry logic

2016-03-11 Thread Shashank Sharma
There is an extra 'if (try)' check, which can be avoided by changing the logic slightly, keeping the delay as same(80ms) Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_hdmi.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drive

[Intel-gfx] [PATCH 2/2] drm/i915: Restrict usage of live status check

2016-03-11 Thread Shashank Sharma
regression introduced in: commit 237ed86c693d8a8e4db476976aeb30df4deac74b Author: Sonika Jindal Date: Tue Sep 15 09:44:20 2015 +0530 drm/i915: Check live status before reading edid Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_hdmi.c | 18 +- 1 file changed, 13

[Intel-gfx] [PATCH] drm: parse hf-vsdb

2016-11-29 Thread Shashank Sharma
ff-by: Shashank Sharma --- drivers/gpu/drm/drm_edid.c | 73 + include/drm/drm_connector.h | 48 + include/drm/drm_edid.h | 5 include/linux/hdmi.h| 1 + 4 files changed, 127 insertions(+) diff --git a/dr

[Intel-gfx] [PATCH] drm/i915: Fake HDMI live status

2016-04-20 Thread Shashank Sharma
atus check for HDMI detection, only for platforms from gen7 onwards. This fixes regression added by patch: 'commit 237ed86c693d ("drm/i915: Check live status before reading edid")' Based on suggestion by: Ville Syrjala Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i

[Intel-gfx] [PATCH v2] drm/i915: Fake HDMI live status

2016-04-20 Thread Shashank Sharma
atus check for HDMI detection, only for platforms from gen7 onwards. This fixes regression added by patch: 'commit 237ed86c693d ("drm/i915: Check live status before reading edid")' V2: restrict faking live_status to certain platforms Based on suggestion by: Ville Syrjala

[Intel-gfx] [PATCH v3] drm/i915: Fake HDMI live status

2016-04-21 Thread Shashank Sharma
status case - fix indentation of comment - remove "warning" from the debug message (Jani) - Change format of fix details in the commit message Suggested-by: Ville Syrjala Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_hdmi.c | 12 ++-- 1 file changed,

[Intel-gfx] [PATCH v5 4/5] drm/i915: Enable lspcon initialization

2016-10-14 Thread Shashank Sharma
s for LSPCON display now. This part will be added once the dig_port level AVI-IF series gets merged. V3: Rebase V4: Rebase V5: Rebase Signed-off-by: Shashank Sharma Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_ddi.c | 29 - 1 file changed, 28 inser

[Intel-gfx] [PATCH v5 2/5] drm/i915: Add lspcon support for I915 driver

2016-10-14 Thread Shashank Sharma
orce check while setting a lspcon mode V5: Rebase Signed-off-by: Shashank Sharma Signed-off-by: Akashdeep Sharma Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/intel_drv.h| 9 +++ drivers/gpu/drm/i915/intel_lspc

[Intel-gfx] [PATCH v5 3/5] drm/i915: Parse VBT data for lspcon

2016-10-14 Thread Shashank Sharma
will be noise. V4: Rebase V5: Rebase Signed-off-by: Shashank Sharma Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_drv.h | 5 drivers/gpu/drm/i915/intel_bios.c | 49 +++ 2 files changed, 54 insertions(+) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH v5 0/5] Enable lspcon support for GEN9 devices

2016-10-14 Thread Shashank Sharma
ith respective patch. V4: Addressed review comments from Ville Details available with respective patch. V5: Rebase, added a new patch for suspend/resume Shashank Sharma (5): drm: Helper for lspcon in drm_dp_dual_mode drm/i915: Add lspcon support for I915 driver drm/i915: Parse VBT d

[Intel-gfx] [PATCH v5 5/5] drm/i915: Add lspcon resume function

2016-10-14 Thread Shashank Sharma
: Shashank Sharma --- drivers/gpu/drm/i915/i915_drv.c | 2 ++ drivers/gpu/drm/i915/intel_drv.h| 1 + drivers/gpu/drm/i915/intel_lspcon.c | 38 + 3 files changed, 41 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH v5 1/5] drm: Helper for lspcon in drm_dp_dual_mode

2016-10-14 Thread Shashank Sharma
t for _HAS_DPCD - Fix enum description, for lspcon_mode. v5: Rebase Signed-off-by: Shashank Sharma Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/drm_dp_dual_mode_helper.c | 103 ++ include/drm/drm_dp_dual_mode_helper.h | 26 2 files changed, 129 insertions(+)

[Intel-gfx] [PATCH v6 3/5] drm/i915: Parse VBT data for lspcon

2016-10-14 Thread Shashank Sharma
will be noise. V4: Rebase V5: Rebase V6: Pass dev_priv to HAS_LSPCON() macro Signed-off-by: Shashank Sharma Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_drv.h | 5 drivers/gpu/drm/i915/intel_bios.c | 49 +++ 2 files changed, 54 insertions

[Intel-gfx] [PATCH v6 4/5] drm/i915: Enable lspcon initialization

2016-10-14 Thread Shashank Sharma
s for LSPCON display now. This part will be added once the dig_port level AVI-IF series gets merged. V3: Rebase V4: Rebase V5: Rebase V6: Rebase Signed-off-by: Shashank Sharma Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_ddi.c | 29 - 1 file change

[Intel-gfx] [PATCH v6 2/5] drm/i915: Add lspcon support for I915 driver

2016-10-14 Thread Shashank Sharma
orce check while setting a lspcon mode V5: Rebase V6: Pass dev_priv to IS_GEN9 check Signed-off-by: Shashank Sharma Signed-off-by: Akashdeep Sharma Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/intel_drv.h| 9 +++ drivers/gpu/drm/i915/inte

[Intel-gfx] [PATCH v6 1/5] drm: Helper for lspcon in drm_dp_dual_mode

2016-10-14 Thread Shashank Sharma
t for _HAS_DPCD - Fix enum description, for lspcon_mode. v5: Rebase v6: Rebase Signed-off-by: Shashank Sharma Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/drm_dp_dual_mode_helper.c | 103 ++ include/drm/drm_dp_dual_mode_helper.h | 26 2 files changed, 129 i

[Intel-gfx] [PATCH v6 0/5] Enable lspcon support for GEN9 devices

2016-10-14 Thread Shashank Sharma
ith respective patch. V4: Addressed review comments from Ville Details available with respective patch. V5: Rebase, added a new patch for suspend/resume V6: Rebase, addressed review comments from Imre Shashank Sharma (5): drm: Helper for lspcon in drm_dp_dual_mode drm/i915: Add lspcon su

[Intel-gfx] [PATCH v6 5/5] drm/i915: Add lspcon resume function

2016-10-14 Thread Shashank Sharma
comments from Imre - move lspcon_resume call to encoder->reset() - use early returns Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_dp.c | 7 ++- drivers/gpu/drm/i915/intel_drv.h| 1 + drivers/gpu/drm/i915/intel_lspcon.c | 8 3 files changed,

[Intel-gfx] [PATCH v3 2/4] drm: Add aspect ratio parsing in DRM layer

2016-10-17 Thread Shashank Sharma
ormation in DRM's mode conversion and mode comparision functions, to make sure kernel picks mode with right aspect ratio (as per the VIC). Signed-off-by: Shashank Sharma Signed-off-by: Lin, Jia Signed-off-by: Akashdeep Sharma Reviewed-by: Jim Bride Cc: Daniel Vetter Cc: Emil Velikov

[Intel-gfx] [PATCH v3 3/4] video: Add new aspect ratios for HDMI 2.0

2016-10-17 Thread Shashank Sharma
HDMI 2.0/CEA-861-F introduces two new aspect ratios: - 64:27 - 256:135 This patch adds enumeration for the new aspect ratios in the existing aspect ratio list. Signed-off-by: Shashank Sharma Reviewed-by: Sean Paul Cc: Daniel Vetter Cc: Emil Velikov V2: rebase V3: rebase --- drivers/video

[Intel-gfx] [PATCH v3 4/4] drm: Add and handle new aspect ratios in DRM layer

2016-10-17 Thread Shashank Sharma
HDMI 2.0/CEA-861-F introduces two new aspect ratios: - 64:27 - 256:135 This patch: - Adds new DRM flags for to represent these new aspect ratios. - Adds new cases to handle these aspect ratios while converting from user->kernel mode or vise versa. Signed-off-by: Shashank Sharma Reviewed

[Intel-gfx] [PATCH v3 1/4] drm/i915: Add lspcon resume function

2016-10-17 Thread Shashank Sharma
comments from Imre - move lspcon_resume call to encoder->reset() - use early returns Signed-off-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_dp.c | 7 ++- drivers/gpu/drm/i915/intel_drv.h| 1 + drivers/gpu/drm/i915/intel_lspcon.c | 8 3 files changed,

<    1   2   3   4   5   6   7   >