[v2 6/7] drm/i915: Add gamma mode caps property

2019-04-01 Thread Uma Shankar
Create the gamma mode caps property and attach to crtc. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_color.c | 2 ++ drivers/gpu/drm/i915/intel_display.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_color.c b/drivers/gpu/drm/i915

[v2 5/7] drm/i915/icl: Add support for multi segmented gamma mode

2019-04-01 Thread Uma Shankar
Gen11 introduced a new gamma mode i.e, multi segmented gamma mode. Added support for the same. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_color.c | 161 - include/drm/drm_crtc.h | 3 + 2 files changed, 161 insertions(+), 3

[v2 4/7] drm/i915/icl: Add register definitions for Multi Segmented gamma

2019-04-01 Thread Uma Shankar
Add macros to define multi segmented gamma registers Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 341f03e..f95f82f 100644

[v2 1/7] drm: Add gamma mode caps property

2019-04-01 Thread Uma Shankar
and the possible ranges. It can then create the LUT and send it to driver using another gamma mode property as blob. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_uapi.c | 3 ++ drivers/gpu/drm/drm_color_mgmt.c | 78 +++ include

[v2 2/7] drm/i915: Define color lut range structure

2019-04-01 Thread Uma Shankar
From: Ville Syrjälä This defines the color lut ranges for 10bit and multi segmented gamma range for ICL. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_color.c | 301 - 1 file changed, 297 insertions(+), 4 deletions

[v2 3/7] drm: Add gamma mode property

2019-04-01 Thread Uma Shankar
Add Gamma Mode property to set the gamma mode (Interploated, Split, Multi Segmented etc) from the list obtained through the gamma mode caps property. Create the blob and send to driver for programming the luts to the appropriate registers and setting the chosen gamma mode. Signed-off-by: Uma

[v2 0/7] Add Multi Segment Gamma Support

2019-04-01 Thread Uma Shankar
for that particular mode. v2: Used Ville's design and approach to define the interfaces. Addressed Matt Roper's review feedback and re-ordered the patches. Uma Shankar (5): drm: Add gamma mode property drm/i915/icl: Add register definitions for Multi Segmented gamma drm/i915/icl: Add support

[v7 12/16] drm/i915/icl: Add Plane Gamma Register Definitions

2019-03-28 Thread Uma Shankar
Add Plane Gamma Register definitions for ICL+ Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 42 - 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index

[v7 16/16] drm/i915: Enable Plane CSC

2019-03-28 Thread Uma Shankar
Implement plane CSC on ICL. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_color.c | 86 drivers/gpu/drm/i915/intel_display.c | 3 ++ 3 files changed, 90 insertions(+) diff --git a/drivers/gpu/drm

[v7 13/16] drm/i915/icl: Implement Plane Gamma

2019-03-28 Thread Uma Shankar
Implement Plane Gamma on ICL. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_color.c | 75 ++ 1 file changed, 75 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_color.c b/drivers/gpu/drm/i915/intel_color.c index 504c046..22790b4 100644

[v7 14/16] drm/i915: Enable Plane Gamma/Degamma

2019-03-28 Thread Uma Shankar
Update the plane gamma and degamma feature in the plane state and eventually program to PLANE_COLOR_CTL. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_color.c | 6 ++ drivers/gpu/drm/i915/intel_display.c | 6 +- 3 files changed

[v7 09/16] drm/i915: Add plane color capabilities

2019-03-28 Thread Uma Shankar
Add Plane color capabilties, support for degamma and gamma added. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_color.c | 12 +--- drivers/gpu/drm/i915/intel_display.c | 4 ++-- drivers/gpu/drm/i915/intel_drv.h | 3 ++- drivers/gpu/drm/i915/intel_sprite.c | 11

[v7 15/16] drm/i915: Define Plane CSC Registers

2019-03-28 Thread Uma Shankar
Define Register macros for plane CSC. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 44 + 1 file changed, 44 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 40bde4b..657232bd 100644

[v7 10/16] drm/i915/icl: Add ICL Plane Degamma Register definition

2019-03-28 Thread Uma Shankar
Add register definitions for ICL Plane Degamma. v2: Fixed register definitions for Degamma Index, spotted by Matt Roper. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 42 + 1 file changed, 42 insertions(+) diff --git a/drivers/gpu/drm

[v7 08/16] drm/i915: Load plane color luts from atomic flip

2019-03-28 Thread Uma Shankar
Load plane color luts as part of atomic plane updates. This will be done only if the plane color luts are changed. v4: Rebase v5: Rebase Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_atomic_plane.c | 3 +++ drivers/gpu/drm/i915/intel_color.c| 8 drivers/gpu/drm

[v7 07/16] drm/i915: Implement Plane Gamma for Bdw and Gen9 platforms

2019-03-28 Thread Uma Shankar
Implement Plane Gamma feature for BDW and Gen9 platforms. v2: Used newly added drm_color_lut_ext structure for enhanced precision for Gamma LUT entries. v3: Rebase v4: Used extended function for LUT extraction (pointed by Alexandru). v5: Rebase Signed-off-by: Uma Shankar --- drivers/gpu/drm

[v7 11/16] drm/i915/icl: Enable Plane Degamma

2019-03-28 Thread Uma Shankar
Enable Plane Degamma for ICL. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_color.c | 86 ++ 1 file changed, 86 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_color.c b/drivers/gpu/drm/i915/intel_color.c index afb1d00..504c046 100644

[v7 06/16] drm/i915: Enable plane color features

2019-03-28 Thread Uma Shankar
Enable and initialize plane color features. v2: Rebase and some cleanup v3: Updated intel_plane_color_init to call drm_plane_color_create_prop function, which will in turn create plane color properties. v4: Rebase v5: Rebase Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_drv.h

[v7 05/16] drm: Define helper function for plane color enabling

2019-03-28 Thread Uma Shankar
. No logical change. Signed-off-by: Uma Shankar Reviewed-by: Alexandru Gheorghe --- drivers/gpu/drm/drm_color_mgmt.c | 42 include/drm/drm_color_mgmt.h | 5 + 2 files changed, 47 insertions(+) diff --git a/drivers/gpu/drm/drm_color_mgmt.c b

[v7 04/16] drm: Add Plane Gamma properties

2019-03-28 Thread Uma Shankar
documentation as suggested by Daniel, Vetter. v4: Rebase v5: Moved property creation to drm_color_mgmt.c file to have all color operations consolidated at one place. No logical change. Signed-off-by: Uma Shankar Reviewed-by: Alexandru Gheorghe --- Documentation/gpu/drm-kms.rst | 6

[v7 01/16] drm: Add Enhanced Gamma LUT precision structure

2019-03-28 Thread Uma Shankar
and fixed the calculation. Signed-off-by: Uma Shankar Reviewed-by: Alexandru Gheorghe --- drivers/gpu/drm/drm_color_mgmt.c | 20 include/drm/drm_color_mgmt.h | 1 + include/uapi/drm/drm_mode.h | 15 +++ 3 files changed, 36 insertions(+) diff --git a/drivers

[v7 03/16] drm: Add Plane CTM property

2019-03-28 Thread Uma Shankar
by Daniel, Vetter. v4: Rebase v5: Moved property creation to drm_color_mgmt.c file to have all color operations consolidated at one place. No logical change. Signed-off-by: Uma Shankar Reviewed-by: Alexandru Gheorghe --- Documentation/gpu/drm-kms.rst | 3 +++ drivers/gpu/drm

[v7 02/16] drm: Add Plane Degamma properties

2019-03-28 Thread Uma Shankar
color operations at one place. v6: Fixed checkpatch issues with --strict as parameter. Signed-off-by: Uma Shankar Reviewed-by: Alexandru Gheorghe --- Documentation/gpu/drm-kms.rst | 90 +++ drivers/gpu/drm/drm_atomic.c | 1 + drivers/gpu/drm/

[v7 00/16] Add Plane Color Properties

2019-03-28 Thread Uma Shankar
10. Rest of the patches are just rebased. Uma Shankar (16): drm: Add Enhanced Gamma LUT precision structure drm: Add Plane Degamma properties drm: Add Plane CTM property drm: Add Plane Gamma properties drm: Define helper function for plane color enabling drm/i915: Enable plane color fe

[v6 12/13] drm/i915: Set Infoframe for non modeset case for HDR

2019-03-20 Thread Uma Shankar
HDR metadata requires a infoframe to be set. Due to fastset, full modeset is not performed hence adding it to update_pipe to handle that. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_ddi.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/i915

[v6 10/13] drm/i915: Enable infoframes on GLK+ for HDR

2019-03-20 Thread Uma Shankar
From: Ville Syrjälä This patch enables infoframes on GLK+ to be used to send HDR metadata to HDMI sink. v2: Addressed Shashank's review comment. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 4 drivers/gpu/drm/i915/intel_hdmi.c | 18

[v6 04/13] drm/i915: Attach HDR metadata property to connector

2019-03-20 Thread Uma Shankar
Attach HDR metadata property to connector object. v2: Rebase v3: Updated the property name as per updated name while creating hdr metadata property Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff

[v6 06/13] drm: Enable HDR infoframe support

2019-03-20 Thread Uma Shankar
-by: Uma Shankar Signed-off-by: Ville Syrjälä Reviewed-by: Shashank Sharma --- drivers/gpu/drm/drm_edid.c | 56 drivers/video/hdmi.c | 129 + include/drm/drm_edid.h | 4 ++ include/linux/hdmi.h | 22 4

[v6 08/13] drm/i915: [DO NOT MERGE] hack for glk board outputs

2019-03-20 Thread Uma Shankar
From: Ville Syrjälä This is to limit PORT C on GLK to drive only HDMI. Not sure if this is mandatory, this is just to test HDR on GLK HDMI. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_bios.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[v6 05/13] drm: Implement HDR output metadata set and get property handling

2019-03-20 Thread Uma Shankar
review comments Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic.c | 2 ++ drivers/gpu/drm/drm_atomic_uapi.c | 13 + 2 files changed, 15 insertions(+) diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c index 5eb4013..8b9c126 100644 --- a/drivers

[v6 09/13] drm/i915: Add HLG EOTF

2019-03-20 Thread Uma Shankar
a logarithmic curve. v2: Rebase v3: Fixed a warning message v4: Addressed Shashank's review comments Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/drm_edid.c | 3 ++- include/linux/hdmi.h | 1 + 2 files changed, 3 insertions

[v6 07/13] drm/i915: Write HDR infoframe and send to panel

2019-03-20 Thread Uma Shankar
calculation in compute config. v6: Addressed Shashank's review comment. Added HDR metadata support from GEN10 onwards as per Shashank's recommendation. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_hdmi.c | 41 +++ 2

[v6 13/13] video/hdmi: Add const variants for drm infoframe

2019-03-20 Thread Uma Shankar
Added the const version of infoframe for DRM metadata for HDR. Signed-off-by: Uma Shankar --- drivers/video/hdmi.c | 63 ++-- include/linux/hdmi.h | 5 + 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/drivers/video/hdmi.c b

[v6 11/13] drm/i915:Enabled Modeset when HDR Infoframe changes

2019-03-20 Thread Uma Shankar
This patch enables modeset whenever HDR metadata needs to be updated to sink. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_atomic.c | 15 ++- drivers/gpu/drm/i915/intel_hdmi.c | 4 2 files changed, 18 insertions(+), 1 deletion

[v6 02/13] drm: Parse HDR metadata info from EDID

2019-03-20 Thread Uma Shankar
HDR metadata block is introduced in CEA-861.3 spec. Parsing the same to get the panel's HDR metadata. v2: Rebase and added Ville's POC changes to the patch. v3: No Change v4: Addressed Shashank's review comments Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 49

[v6 01/13] drm: Add HDR source metadata property

2019-03-20 Thread Uma Shankar
-off-by: Uma Shankar --- drivers/gpu/drm/drm_connector.c | 6 ++ include/drm/drm_connector.h | 10 ++ include/drm/drm_mode_config.h | 6 ++ include/linux/hdmi.h| 10 ++ include/uapi/drm/drm_mode.h | 16 5 files changed, 48 insertions

[v6 00/13] Add HDR Metadata Parsing and handling in DRM layer

2019-03-20 Thread Uma Shankar
with GL efforts. Uma Shankar (10): drm: Add HDR source metadata property drm: Parse HDR metadata info from EDID drm: Parse Colorimetry data block from EDID drm/i915: Attach HDR metadata property to connector drm: Implement HDR output metadata set and get property handling drm: Enable HDR

[v6 03/13] drm: Parse Colorimetry data block from EDID

2019-03-20 Thread Uma Shankar
checkpatch warnings with --strict option. Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/drm_edid.c | 25 + include/drm/drm_connector.h | 3 +++ 2 files changed, 28 insertions(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm

[v5 09/13] drm/i915: Add HLG EOTF

2019-03-10 Thread Uma Shankar
a logarithmic curve. v2: Rebase v3: Fixed a warning message v4: Addressed Shashank's review comments Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 4 ++-- include/linux/hdmi.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git

[v5 11/13] drm/i915:Enabled Modeset when HDR Infoframe changes

2019-03-10 Thread Uma Shankar
This patch enables modeset whenever HDR metadata needs to be updated to sink. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_atomic.c | 15 ++- drivers/gpu/drm/i915/intel_hdmi.c | 4 2 files changed, 18 insertions(+), 1 deletion

[v5 13/13] video/hdmi: Add const variants for drm infoframe

2019-03-10 Thread Uma Shankar
Added the const version of infoframe for DRM metadata for HDR. Signed-off-by: Uma Shankar --- drivers/video/hdmi.c | 63 ++-- include/linux/hdmi.h | 5 + 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/drivers/video/hdmi.c b

[v5 10/13] drm/i915: Enable infoframes on GLK+ for HDR

2019-03-10 Thread Uma Shankar
From: Ville Syrjälä This patch enables infoframes on GLK+ to be used to send HDR metadata to HDMI sink. v2: Addressed Shashank's review comment. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 4 drivers/gpu/drm/i915/intel_hdmi.c | 18

[v5 07/13] drm/i915: Write HDR infoframe and send to panel

2019-03-10 Thread Uma Shankar
calculation in compute config. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_hdmi.c | 33 + 2 files changed, 34 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 58483f8

[v5 12/13] drm/i915: Set Infoframe for non modeset case for HDR

2019-03-10 Thread Uma Shankar
HDR metadata requires a infoframe to be set. Due to fastset, full modeset is not performed hence adding it to update_pipe to handle that. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_ddi.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/i915

[v5 08/13] drm/i915: [DO NOT MERGE] hack for glk board outputs

2019-03-10 Thread Uma Shankar
From: Ville Syrjälä This is to limit PORT C on GLK to drive only HDMI. Not sure if this is mandatory, this is just to test HDR on GLK HDMI. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_bios.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[v5 02/13] drm: Parse HDR metadata info from EDID

2019-03-10 Thread Uma Shankar
HDR metadata block is introduced in CEA-861.3 spec. Parsing the same to get the panel's HDR metadata. v2: Rebase and added Ville's POC changes to the patch. v3: No Change v4: Addressed Shashank's review comments Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 52

[v5 03/13] drm: Parse Colorimetry data block from EDID

2019-03-10 Thread Uma Shankar
-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 26 ++ include/drm/drm_connector.h | 3 +++ 2 files changed, 29 insertions(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index c5a81b8..0470845 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers

[v5 04/13] drm/i915: Attach HDR metadata property to connector

2019-03-10 Thread Uma Shankar
Attach HDR metadata property to connector object. v2: Rebase v3: Updated the property name as per updated name while creating hdr metadata property Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915

[v5 06/13] drm: Enable HDR infoframe support

2019-03-10 Thread Uma Shankar
: Rebase and added Ville's POC changes. v3: No Change v4: Addressed Shashank's review comments and merged the patch making drm infoframe function arguments as constant. v5: Rebase Signed-off-by: Uma Shankar Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_edid.c | 58

[v5 00/13] Add HDR Metadata Parsing and handling in DRM layer

2019-03-10 Thread Uma Shankar
a redundant patch. Note: Media driver and VAAPI changes for HDR are already out, with compositors changes also expected to land soon. Some discussions have already started with initial design on weston in community and is in active development along with GL efforts. Uma Shankar (10): drm: Add HDR

[v5 01/13] drm: Add HDR source metadata property

2019-03-10 Thread Uma Shankar
-off-by: Uma Shankar --- drivers/gpu/drm/drm_connector.c | 6 ++ include/drm/drm_connector.h | 10 ++ include/drm/drm_mode_config.h | 6 ++ include/linux/hdmi.h| 10 ++ include/uapi/drm/drm_mode.h | 16 5 files changed, 48 insertions

[v17 3/3] drm/i915: Attach colorspace property and enable modeset

2019-02-19 Thread Uma Shankar
ace to pick whatever pipe output it is able to drive. v12: Added Ville's RB. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_atomic.c| 1 + drivers/gpu/drm/i915/intel_connector.c | 8 drivers/

[v17 2/3] drm: Add colorspace info to AVI Infoframe

2019-02-19 Thread Uma Shankar
out of header file to avoid any namespace issues. v7: Undef some macros to avoid any namespace collision as suggested by Ville. Added Ville's RB. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/drm_edid.c | 70 ++ include/drm

[v17 1/3] drm: Add HDMI colorspace property

2019-02-19 Thread Uma Shankar
information as per Ville's review comment to be clear and not to be confused with RGB. v13: Reorder the colorspace macros. v14: Removed DP as of now, will be added later once full support is enabled, as per Ville's suggestion. Added Ville's RB. Signed-off-by: Uma Shankar Acked-by: Jani Nikula

[v17 0/3] Add Colorspace connector property interface

2019-02-19 Thread Uma Shankar
olorspace is enabled. Addressed Ville's review comments and added Ville's RB tags. Uma Shankar (3): drm: Add HDMI colorspace property drm: Add colorspace info to AVI Infoframe drm/i915: Attach colorspace property and enable modeset drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ drivers/gpu

[v16 4/4] drm/i915: Attach colorspace property and enable modeset

2019-02-12 Thread Uma Shankar via dri-devel
ace to pick whatever pipe output it is able to drive. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_atomic.c| 1 + drivers/gpu/drm/i915/intel_connector.c | 8 drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/

[v16 3/4] drm: Add colorspace info to AVI Infoframe

2019-02-12 Thread Uma Shankar via dri-devel
out of header file to avoid any namespace issues. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 66 ++ include/drm/drm_edid.h | 6 + 2 files changed, 72 insertions(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm

[v16 1/4] drm: Add HDMI colorspace property

2019-02-12 Thread Uma Shankar via dri-devel
information as per Ville's review comment to be clear and not to be confused with RGB. v13: Reorder the colorspace macros. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Shashank Sharma Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ drivers/gpu

[v16 0/4] Add Colorspace connector property interface

2019-02-12 Thread Uma Shankar via dri-devel
o for various fields of colorimetry for easier understanding and review as per Ville's comments. Moved the same out of header file to avoid any namespace issues. Dropped the check for planar vs RGB and allow all the colorspaces. Uma Shankar (4): drm: Add HDMI colorspace property drm: Add DP color

[v16 2/4] drm: Add DP colorspace property

2019-02-12 Thread Uma Shankar via dri-devel
: Addressed Ville's review comments and updated the colorspace macro definitions. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/drm_connector.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm

[v15 4/4] drm/i915: Attach colorspace property and enable modeset

2019-02-08 Thread Uma Shankar
formats and it will be added later. Changes for RGB->YUV conversion inside driver without userspace knowledge is still supported. This is as per Ville's suggestion. v10: Fixed an error in if check for rgb colorspace. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankho

[v15 1/4] drm: Add HDMI colorspace property

2019-02-08 Thread Uma Shankar
information as per Ville's review comment to be clear and not to be confused with RGB. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Shashank Sharma Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ drivers/gpu/drm/drm_connector.c | 78

[v15 0/4] Add Colorspace connector property interface

2019-02-08 Thread Uma Shankar
comment to be clear and not to be confused with RGB. Added a check to allow only RGB colorspaces to be set in infoframe through the colorspace property, since there is no output csc property to control planar formats and it will be added later. v15: Fixed an error in one of the if check. Uma Shankar (4): drm:

[v15 3/4] drm: Add colorspace info to AVI Infoframe

2019-02-08 Thread Uma Shankar
. This is as per Ville's suggestion. v5: Appended BT709 and SMPTE 170M with YCC information as per Ville's review comment to be clear and not to be confused with RGB. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 57 + include/drm

[v15 2/4] drm: Add DP colorspace property

2019-02-08 Thread Uma Shankar
: Addressed Ville's review comments and updated the colorspace macro definitions. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/drm_connector.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm

[v13 3/4] drm: Add colorspace info to AVI Infoframe

2019-02-05 Thread Uma Shankar
. This is as per Ville's suggestion. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 57 + include/drm/drm_connector.h | 20 include/drm/drm_edid.h | 6 + 3 files changed, 83 insertions(+) diff --git a/drivers/gpu

[v13 2/4] drm: Add DP colorspace property

2019-02-05 Thread Uma Shankar
: Addressed Ville's review comments and updated the colorspace macro definitions. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/drm_connector.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm

[v13 1/4] drm: Add HDMI colorspace property

2019-02-05 Thread Uma Shankar
on legacy platforms, as per Ville's review comments. v10: Fixed sparse warnings, updated the RB from Maarten and Jani's ack. v11: Addressed Ville's review comments. Updated the Macro naming and added DCI-P3 colorspace as well, defined in CTA 861.G spec. Signed-off-by: Uma Shankar Acked-by: Jani

[v13 4/4] drm/i915: Attach colorspace property and enable modeset

2019-02-05 Thread Uma Shankar
from Maarten and Jani's ack. v8: Moved colorspace AVI Infoframe programming to drm core and removed from driver as per Ville's suggestion. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_atomic.c| 1 + drivers/gpu/drm/i915

[v13 0/4] Add Colorspace connector property interface

2019-02-05 Thread Uma Shankar
orted the helper API. v13: As per Ville's suggestion, added separate CTA 861.G spec defined HDMI specific macros. This is separate from user exposed enum values. Fixed some macro naming inconsistencies. Uma Shankar (4): drm: Add HDMI colorspace property drm: Add DP colorspace property drm:

[v12 4/4] drm/i915: Attach colorspace property and enable modeset

2019-02-05 Thread Uma Shankar
from Maarten and Jani's ack. v8: Moved colorspace AVI Infoframe programming to drm core and removed from driver as per Ville's suggestion. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_atomic.c| 1 + drivers/gpu/drm/i915

[v12 1/4] drm: Add HDMI colorspace property

2019-02-05 Thread Uma Shankar
on legacy platforms, as per Ville's review comments. v10: Fixed sparse warnings, updated the RB from Maarten and Jani's ack. v11: Addressed Ville's review comments. Updated the Macro naming and added DCI-P3 colorspace as well defined in CEA 861.G spec. Signed-off-by: Uma Shankar Acked-by: Jani

[v12 3/4] drm: Add colorspace info to AVI Infoframe

2019-02-05 Thread Uma Shankar
This adds colorspace information to HDMI AVI infoframe. A helper function is added to program the same. v2: Moved this to drm core instead of i915 driver. v3: Exported the helper function. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_connector.c | 2 +- drivers/gpu/drm/drm_edid.c

[v12 0/4] Add Colorspace connector property interface

2019-02-05 Thread Uma Shankar
orted the helper API. Uma Shankar (4): drm: Add HDMI colorspace property drm: Add DP colorspace property drm: Add colorspace info to AVI Infoframe drm/i915: Attach colorspace property and enable modeset drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ drivers/gpu/drm/drm_conn

[v12 2/4] drm: Add DP colorspace property

2019-02-05 Thread Uma Shankar
: Addressed Ville's review comments and updated the colorspace macro definitions. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/drm_connector.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm

[v11 4/4] drm/i915: Attach colorspace property and enable modeset

2019-02-05 Thread Uma Shankar
from Maarten and Jani's ack. v8: Moved colorspace AVI Infoframe programming to drm core and removed from driver as per Ville's suggestion. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_atomic.c| 1 + drivers/gpu/drm/i915

[v11 0/4] Add Colorspace connector property interface

2019-02-05 Thread Uma Shankar
heckpatch complaints. v11: Addressed Ville's review comments. Modified MACRO names, added infoframe helper for colorspace to drm layer. Added DCI-P3 colorspace macro definitions defined in CTA 861.G. Currently linux/hdmi lacks support for ACE formats, will be added as a separate series. Uma Shankar

[v11 3/4] drm: Add colorspace info to AVI Infoframe

2019-02-05 Thread Uma Shankar
This adds colorspace information to HDMI AVI infoframe. A helper function is added to program the same. v2: Moved this to drm core instead of i915 driver. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_connector.c | 2 +- drivers/gpu/drm/drm_edid.c | 28

[v11 1/4] drm: Add HDMI colorspace property

2019-02-05 Thread Uma Shankar
on legacy platforms, as per Ville's review comments. v10: Fixed sparse warnings, updated the RB from Maarten and Jani's ack. v11: Addressed Ville's review comments. Updated the Macro naming and added DCI-P3 colorspace as well defined in CEA 861.G spec. Signed-off-by: Uma Shankar Acked-by: Jani

[v11 2/4] drm: Add DP colorspace property

2019-02-05 Thread Uma Shankar
: Addressed Ville's review comments and updated the colorspace macro definitions. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/drm_connector.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm

[v10 3/3] drm/i915: Attach colorspace property and enable modeset

2019-01-30 Thread Uma Shankar
from Maarten and Jani's ack. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_atomic.c| 1 + drivers/gpu/drm/i915/intel_connector.c | 8 drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_hdmi.c

[v10 2/3] drm: Add DP colorspace property

2019-01-30 Thread Uma Shankar
. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/drm_connector.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index ed10dd9..b331be8 100644

[v10 0/3] Add Colorspace connector property interface

2019-01-30 Thread Uma Shankar
heckpatch complaints. Uma Shankar (3): drm: Add HDMI colorspace property drm: Add DP colorspace property drm/i915: Attach colorspace property and enable modeset drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ drivers/gpu/drm/drm_connector.c| 104 +

[v10 1/3] drm: Add HDMI colorspace property

2019-01-30 Thread Uma Shankar
on legacy platforms, as per Ville's review comments. v10: Fixed sparse warnings, updated the RB from Maarten and Jani's ack. Signed-off-by: Uma Shankar Acked-by: Jani Nikula Reviewed-by: Shashank Sharma Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/drm_atomic_uapi.c | 4 +++ drivers/gpu

[v9 1/3] drm: Add HDMI colorspace property

2019-01-29 Thread Uma Shankar
on legacy platforms, as per Ville's review comments. Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/drm_atomic_uapi.c | 4 +++ drivers/gpu/drm/drm_connector.c | 73 +++ include/drm/drm_connector.h | 46

[v9 3/3] drm/i915: Attach colorspace property and enable modeset

2019-01-29 Thread Uma Shankar
comment Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_atomic.c| 1 + drivers/gpu/drm/i915/intel_connector.c | 8 drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_hdmi.c | 25 + 4 files changed, 35 insertions

[v9 2/3] drm: Add DP colorspace property

2019-01-29 Thread Uma Shankar
by the respective protocol standard. v5: Merged the DP handling along with platform colorspace handling as per Shashank's comments. v6: Reverted to old design of exposing all colorspaces to userspace as per Ville's review comment Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_connector.c | 31

[v9 0/3] Add Colorspace connector property interface

2019-01-29 Thread Uma Shankar
ude file. Moved back to older design with exposing all HDMI colorspaces to userspace since infoframe capability is there even on legacy platforms, as per Ville's review comments. Uma Shankar (3): drm: Add HDMI colorspace property drm: Add DP colorspace property drm/i915: Attach colorspace propert

[v8 2/2] drm/i915: Attach colorspace property and enable modeset

2019-01-29 Thread Uma Shankar
the default case properly. v5: Added Platform specific colorspace enums and called the property creation helper using the same. v6: Addressed Shashank's review comments. v7: Rebase v8: Addressed Maarten's review comments. Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm

[v8 1/2] drm: Add colorspace connector property

2019-01-29 Thread Uma Shankar
message to add more details as well kernel docs. v8: Addressed Maarten's review comments. Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ drivers/gpu/drm/drm_connector.c | 95 +++ include/drm/drm_connector.h

[v8 0/2] Add Colorspace connector property interface

2019-01-29 Thread Uma Shankar
dded defines instead of enum in uapi as per Brian Starkey's suggestion in order to go with string matching at userspace. Updated the kernel doc as well with more details. v8: Addressed Maarten's review comments. Uma Shankar (2): drm: Add colorspace connector property drm/i915: Attach colorspace

[v7 1/2] drm: Add colorspace connector property

2019-01-28 Thread Uma Shankar
message to add more details as well kernel docs. Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ drivers/gpu/drm/drm_connector.c | 95 +++ include/drm/drm_connector.h | 17 +++ include/uapi/drm

[v7 2/2] drm/i915: Attach colorspace property and enable modeset

2019-01-28 Thread Uma Shankar
the default case properly. v5: Added Platform specific colorspace enums and called the property creation helper using the same. v6: Addressed Shashank's review comments. v7: Rebase Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_atomic.c| 1 + drivers/gpu

[v7 0/2] Add Colorspace connector property interface

2019-01-28 Thread Uma Shankar
uggested by Shashank. With this there is no need for segregation between DP and HDMI. v6: Addressed Shashank's review comments. v7: Added defines instead of enum in uapi as per Brian Starkey's suggestion in order to go with string matching at userspace. Updated the kernel doc as well with more details. Uma Shankar (2):

[v4 11/12] drm/i915: Enable infoframes on GLK+ for HDR

2019-01-08 Thread Uma Shankar
From: Ville Syrjälä This patch enables infoframes on GLK+ to be used to send HDR metadata to HDMI sink. v2: Addressed Shashank's review comment. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 4 drivers/gpu/drm/i915/intel_hdmi.c | 13

[v4 07/12] drm: Enable HDR infoframe support

2019-01-08 Thread Uma Shankar
: Rebase and added Ville's POC changes. v3: No Change v4: Addressed Shashank's review comments and merged the patch making drm infoframe function arguments as constant. Signed-off-by: Uma Shankar Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_edid.c | 58 drivers

[v4 12/12] drm/i915:Enabled Modeset when HDR Infoframe changes

2019-01-08 Thread Uma Shankar
This patch enables modeset whenever HDR metadata needs to be updated to sink. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_atomic.c | 15 ++- drivers/gpu/drm/i915/intel_hdmi.c | 4 2 files changed, 18 insertions(+), 1 deletion

[v4 10/12] drm/i915: Add HLG EOTF

2019-01-08 Thread Uma Shankar
a logarithmic curve. v2: Rebase v3: Fixed a warning message v4: Addressed Shashank's review comments Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 4 ++-- include/linux/hdmi.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git

[v4 09/12] drm/i915: [DO NOT MERGE] hack for glk board outputs

2019-01-08 Thread Uma Shankar
From: Ville Syrjälä This is to limit PORT C on GLK to drive only HDMI. Not sure if this is mandatory, this is just to test HDR on GLK HDMI. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_bios.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[v4 08/12] drm/i915: Write HDR infoframe and send to panel

2019-01-08 Thread Uma Shankar
Enable writing of HDR metadata infoframe to panel. The data will be provid by usersapace compositors, based on blending policies and passsed to driver through a blob property. v2: Rebase v3: Fixed a warning message v4: Addressed Shashank's review comments Signed-off-by: Uma Shankar

<    1   2   3   4   5   >