[v4 05/12] drm: Add HDR capability field to plane structure

2019-01-08 Thread Uma Shankar
Hardware may have HDR capability on certain plane engines. Enabling the same in drm plane structure so that this can be communicated to user space. Each drm driver should set this flag to true for planes which support HDR. v2: Rebase Signed-off-by: Uma Shankar --- include/drm/drm_plane.h | 3

[v4 06/12] drm: Implement HDR output metadata set and get property handling

2019-01-08 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

[v4 02/12] drm: Parse HDR metadata info from EDID

2019-01-08 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_connector.c | 2 +- drivers

[v4 04/12] drm/i915: Attach HDR metadata property to connector

2019-01-08 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

[v4 03/12] drm: Parse Colorimetry data block from EDID

2019-01-08 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 fa1213e..c964c5c 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers

[v4 01/12] drm: Add HDR source metadata property

2019-01-08 Thread Uma Shankar
This patch adds a blob property to get HDR metadata information from userspace. This will be send as part of AVI Infoframe to panel. v2: Rebase and modified the metadata structure elements as per Ville's POC changes. v3: No Change v4: Addressed Shashank's review comments Signed-off-by: Uma

[v4 00/12] Add HDR Metadata Parsing and handling in DRM layer

2019-01-08 Thread Uma Shankar
series.Incorporated cleanups and fixes from Ville. Rebase on latest drm-tip. v3: Fixed a warning causing builds to break on CI. No major change. v4: Addressed Shashank's review comments. Note: Media driver and VAAPI changes for HDR are already out, with compositors changes also expected to land soon. Uma

[v6 0/2] Add Colorspace connector property interface

2018-12-27 Thread Uma Shankar
uggested by Shashank. With this there is no need for segregation between DP and HDMI. v6: Addressed Shashank's review comments. Uma Shankar (2): drm: Add colorspace connector property drm/i915: Attach colorspace property and enable modeset drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ drivers/gpu/drm/drm_con

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

2018-12-27 Thread Uma Shankar
protocol standard. v5: Made the property creation helper accept enum list based on platform capabilties as suggested by Shashank. Consolidated HDMI and DP property creation in the common helper. v6: Addressed Shashank's review comments. Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma

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

2018-12-27 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. Signed-off-by: Uma Shankar Reviewed-by: Shashank Sharma --- drivers/gpu/drm/i915/intel_atomic.c| 1 + drivers/gpu/drm/i915

[v3 14/14] drivers/video: Constantify function argument for HDMI infoframe log

2018-12-11 Thread Uma Shankar
From: Ville Syrjälä Function argument for hdmi_drm_infoframe_log is made constant. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/video/hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c index

[v3 13/14] drm/i915:Enabled Modeset when HDR Infoframe changes

2018-12-11 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

[v3 12/14] drm/i915: Enable infoframes on GLK+ for HDR

2018-12-11 Thread Uma Shankar
From: Ville Syrjälä This patch enables infoframes on GLK+ to be used to send HDR metadata to HDMI sink. 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 | 12 +--- 2 files changed, 13 insertions

[v3 11/14] drm/i915: Add HLG EOTF

2018-12-11 Thread Uma Shankar
From: Ville Syrjälä ADD HLG EOTF to the list of EOTF transfer functions supported. 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 a/drivers/gpu/drm

[v3 10/14] drm/i915: [DO NOT MERGE] hack for glk board outputs

2018-12-11 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

[v3 08/14] drm: Enable HDR infoframe support

2018-12-11 Thread Uma Shankar
: Rebase and added Ville's POC changes. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 58 drivers/video/hdmi.c | 129 + include/drm/drm_edid.h | 4 ++ include/linux/hdmi.h | 22 4 files

[v3 09/14] drm/i915: Write HDR infoframe and send to panel

2018-12-11 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 Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_hdmi.c | 27

[v3 04/14] drm: Parse Colorimetry data block from EDID

2018-12-11 Thread Uma Shankar
CEA 861.3 spec adds colorimetry data block for HDMI. Parsing the block to get the colorimetry data from panel. v2: Rebase Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 24 include/drm/drm_connector.h | 2 ++ 2 files changed, 26 insertions(+) diff --git

[v3 06/14] drm: Add HDR capability field to plane structure

2018-12-11 Thread Uma Shankar
Hardware may have HDR capability on certain plane engines. Enabling the same in drm plane structure so that this can be communicated to user space. Each drm driver should set this flag to true for planes which support HDR. v2: Rebase Signed-off-by: Uma Shankar --- include/drm/drm_plane.h | 3

[v3 05/14] drm/i915: Attach HDR metadata property to connector

2018-12-11 Thread Uma Shankar
Attach HDR metadata property to connector object. v2: Rebase 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/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 07e803a..8a1e5cb 100644 --- a/drivers

[v3 03/14] drm: Parse HDR metadata info from EDID

2018-12-11 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. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 45 + 1 file changed, 45

[v3 07/14] drm: Implement HDR source metadata set and get property handling

2018-12-11 Thread Uma Shankar
HDR source metadata set and get property implemented in this patch. The blob data is received from userspace and saved in connector state, the same is returned as blob in get property call to userspace. v2: Rebase and added Ville's POC changes Signed-off-by: Uma Shankar --- drivers/gpu/drm

[v3 02/14] drm: Add CEA extended tag blocks and HDR bitfield macros

2018-12-11 Thread Uma Shankar
Add bit field and macro for extended tag in CEA block. Also, declare macros for HDR metadata block. v2: Rebase Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c

[v3 01/14] drm: Add HDR source metadata property

2018-12-11 Thread Uma Shankar
This patch adds a blob property to get HDR metadata information from userspace. This will be send as part of AVI Infoframe to panel. v2: Rebase and modified the metadata structure elements as per Ville's POC changes. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_connector.c | 6

[v3 00/14] Add HDR Metadata Parsing and handling in DRM layer

2018-12-11 Thread Uma Shankar
now. Media driver and VAAPI changes for HDR are already out, with compositors changes also expected to land soon. Uma Shankar (10): drm: Add HDR source metadata property drm: Add CEA extended tag blocks and HDR bitfield macros drm: Parse HDR metadata info from EDID drm: Parse Colorimetry

[v2 09/14] drm/i915: Write HDR infoframe and send to panel

2018-12-11 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 Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_hdmi.c | 27 +++ 1 file

[v2 14/14] drivers/video: Constantify function argument for HDMI infoframe log

2018-12-11 Thread Uma Shankar
From: Ville Syrjälä Function argument for hdmi_drm_infoframe_log is made constant. Signed-off-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/video/hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c index

[v2 13/14] drm/i915:Enabled Modeset when HDR Infoframe changes

2018-12-11 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

[v2 10/14] drm/i915: [DO NOT MERGE] hack for glk board outputs

2018-12-11 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

[v2 07/14] drm: Implement HDR source metadata set and get property handling

2018-12-11 Thread Uma Shankar
HDR source metadata set and get property implemented in this patch. The blob data is received from userspace and saved in connector state, the same is returned as blob in get property call to userspace. v2: Rebase and added Ville's POC changes Signed-off-by: Uma Shankar --- drivers/gpu/drm

[v2 11/14] drm/i915: Add HLG EOTF

2018-12-11 Thread Uma Shankar
From: Ville Syrjälä ADD HLG EOTF to the list of EOTF transfer functions supported. 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 a/drivers/gpu/drm

[v2 06/14] drm: Add HDR capability field to plane structure

2018-12-11 Thread Uma Shankar
Hardware may have HDR capability on certain plane engines. Enabling the same in drm plane structure so that this can be communicated to user space. Each drm driver should set this flag to true for planes which support HDR. v2: Rebase Signed-off-by: Uma Shankar --- include/drm/drm_plane.h | 3

[v2 08/14] drm: Enable HDR infoframe support

2018-12-11 Thread Uma Shankar
: Rebase and added Ville's POC changes. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 58 drivers/video/hdmi.c | 129 + include/drm/drm_edid.h | 4 ++ include/linux/hdmi.h | 22 4 files

[v2 12/14] drm/i915: Enable infoframes on GLK+ for HDR

2018-12-11 Thread Uma Shankar
From: Ville Syrjälä This patch enables infoframes on GLK+ to be used to send HDR metadata to HDMI sink. 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 | 12 +--- 2 files changed, 13 insertions

[v2 02/14] drm: Add CEA extended tag blocks and HDR bitfield macros

2018-12-11 Thread Uma Shankar
Add bit field and macro for extended tag in CEA block. Also, declare macros for HDR metadata block. v2: Rebase Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c

[v2 05/14] drm/i915: Attach HDR metadata property to connector

2018-12-11 Thread Uma Shankar
Attach HDR metadata property to connector object. v2: Rebase 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/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 07e803a..8a1e5cb 100644 --- a/drivers

[v2 01/14] drm: Add HDR source metadata property

2018-12-11 Thread Uma Shankar
This patch adds a blob property to get HDR metadata information from userspace. This will be send as part of AVI Infoframe to panel. v2: Rebase and modified the metadata structure elements as per Ville's POC changes. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_connector.c | 6

[v2 00/14] Add HDR Metadata Parsing and handling in DRM layer

2018-12-11 Thread Uma Shankar
, with compositors changes also expected to land soon. Uma Shankar (10): drm: Add HDR source metadata property drm: Add CEA extended tag blocks and HDR bitfield macros drm: Parse HDR metadata info from EDID drm: Parse Colorimetry data block from EDID drm/i915: Attach HDR metadata property

[v2 04/14] drm: Parse Colorimetry data block from EDID

2018-12-11 Thread Uma Shankar
CEA 861.3 spec adds colorimetry data block for HDMI. Parsing the block to get the colorimetry data from panel. v2: Rebase Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 24 include/drm/drm_connector.h | 2 ++ 2 files changed, 26 insertions(+) diff --git

[v2 03/14] drm: Parse HDR metadata info from EDID

2018-12-11 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. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_edid.c | 45 + 1 file changed, 45

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

2018-12-11 Thread Uma Shankar
the default case properly. v5: Added Platform specific colorspace enums and called the property creation helper using the same. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_atomic.c| 1 + drivers/gpu/drm/i915/intel_connector.c | 63 ++ drivers/gpu/drm

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

2018-12-11 Thread Uma Shankar
protocol standard. v5: Made the property creation helper accept enum list based on platform capabilties as suggested by Shashank. Consolidated HDMI and DP property creation in the common helper. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ drivers/gpu/drm/drm_connector.c

[v5 0/2] Add Colorspace connector property interface

2018-12-11 Thread Uma Shankar
uggested by Shashank. With this there is no need for segregation between DP and HDMI. Uma Shankar (2): drm: Add colorspace connector property drm/i915: Attach colorspace property and enable modeset drivers/gpu/drm/drm_atomic_uapi.c | 4 ++ drivers/gpu/drm/drm_connector.c| 82 +++

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

2018-11-27 Thread Uma Shankar
by the respective protocol standard. Signed-off-by: Uma Shankar --- 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 57d36e4..30e2e6f 100644 --- a/drivers/gpu/drm

[v4 0/3] Add Colorspace connector property interface

2018-11-27 Thread Uma Shankar
erty for DP and HDMI, filtered the list based on the colorspaces supported by the respective protocol standard. Handled the default case more efficiently. Uma Shankar (3): drm: Add HDMI colorspace property drm: Add DP colorspace property drm/i915: Attach colorspace property and enable modes

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

2018-11-27 Thread Uma Shankar
standard. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_uapi.c | 4 +++ drivers/gpu/drm/drm_connector.c | 61 +++ include/drm/drm_connector.h | 14 + include/uapi/drm/drm_mode.h | 33 + 4 files changed, 112

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

2018-11-27 Thread Uma Shankar
the default case properly. 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 | 18 ++ 4 files changed, 28 insertions

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

2018-11-20 Thread Uma Shankar
comments from Shashank. Separated HDMI and DP colorspaces as suggested by Ville and Maarten. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_atomic.c| 2 ++ drivers/gpu/drm/i915/intel_connector.c | 8 drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_hdmi.c

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

2018-11-20 Thread Uma Shankar
other misc review comments from Maarten. Split the changes to have separate colorspace property for DP and HDMI. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_uapi.c | 4 +++ drivers/gpu/drm/drm_connector.c | 62 +++ include/drm/drm_connector.h

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

2018-11-20 Thread Uma Shankar
colorspaces. Also, added a default option for colorspace. v3: Split the changes to have separate colorspace property for DP and HDMI. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_uapi.c | 4 drivers/gpu/drm/drm_connector.c | 35 +++ include/drm

[v3 0/3] Add Colorspace connector property interface

2018-11-20 Thread Uma Shankar
n. Split the changes to have separate colorspace property for DP and HDMI. 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 | 8 +++ drivers/gpu/drm/drm_con

[v2 1/2] drm: Add colorspace property

2018-10-31 Thread Uma Shankar
. Also, added a default option for colorspace. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_uapi.c | 4 drivers/gpu/drm/drm_connector.c | 44 +++ include/drm/drm_connector.h | 7 +++ include/drm/drm_mode_config.h | 6

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

2018-10-31 Thread Uma Shankar
with proper colorspace value set which will help to enable wider color gamut like BT2020 on sink. v2: Merged the changes of creating infoframe as well to this patch as per Maarten's suggestion. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_atomic.c | 1 + drivers/gpu/drm/i915/intel_hdmi.c

[v2 0/2] Add Colorspace connector property interface

2018-10-31 Thread Uma Shankar
"Colorspace" "BT2020_rgb" v2: Addressed Ville and Maarten's review comments. Merged the 2nd and 3rd patch into one common logical patch. Uma Shankar (2): drm: Add colorspace property drm/i915: Attach colorspace property and enable modeset drivers/gpu/drm/drm_atomic_uapi.c |

[RFC v5 8/8] drm/i915: Load plane color luts from atomic flip

2018-09-16 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 | 4 drivers/gpu/drm/i915/intel_color.c| 8 drivers/gpu/drm

[RFC v5 1/8] drm: Add Enhanced Gamma LUT precision structure

2018-09-16 Thread Uma Shankar
. v4: Rebase v5: Relocated the helper function to drm_color_mgmt.c. Declared the same in a header file (Alexandru Gheorghe) Signed-off-by: Uma Shankar Reviewed-by: Alexandru Gheorghe --- drivers/gpu/drm/drm_color_mgmt.c | 19 +++ include/drm/drm_color_mgmt.h | 1 + include

[RFC v5 5/8] drm: Define helper function for plane color enabling

2018-09-16 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

[RFC v5 2/8] drm: Add Plane Degamma properties

2018-09-16 Thread Uma Shankar
color operations at one place. Signed-off-by: Uma Shankar Reviewed-by: Alexandru Gheorghe --- Documentation/gpu/drm-kms.rst | 90 + drivers/gpu/drm/drm_atomic.c| 13 ++ drivers/gpu/drm/drm_atomic_helper.c | 6 +++ drivers/gp

[RFC v5 3/8] drm: Add Plane CTM property

2018-09-16 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/drm_atomic.c

[RFC v5 0/8] Add Plane Color Properties

2018-09-16 Thread Uma Shankar
v4: Rebase v5: Added "Display Color Hardware Pipeline" flow to kernel documentation as suggested by "Ville Syrjala" and "Brian Starkey". Moved the property creation to drm_color_mgmt.c file to consolidate all color operations at one place. Addressed Alexandru's revie

[RFC v5 4/8] drm: Add Plane Gamma properties

2018-09-16 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

[RFC v5 6/8] drm/i915: Enable plane color features

2018-09-16 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

[RFC v5 7/8] drm/i915: Implement Plane Gamma for Bdw and Gen9 platforms

2018-09-16 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). Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915

[RFC v4 5/8] drm: Define helper function for plane color enabling

2018-08-17 Thread Uma Shankar
Define helper function to enable Plane color features to attach plane color properties to plane structure. v2: Rebase v3: Modiefied the function to use updated property names. v4: Rebase Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_plane.c | 42

[RFC v4 8/8] drm/i915: Load plane color luts from atomic flip

2018-08-17 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 Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_atomic_plane.c | 4 drivers/gpu/drm/i915/intel_color.c| 8 drivers/gpu/drm/i915

[RFC v4 6/8] drm/i915: Enable plane color features

2018-08-17 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 Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_drv.h | 5

[RFC v4 4/8] drm: Add Plane Gamma properties

2018-08-17 Thread Uma Shankar
documentation as suggested by Daniel, Vetter. v4: Rebase Signed-off-by: Uma Shankar --- Documentation/gpu/drm-kms.rst | 6 ++ drivers/gpu/drm/drm_atomic.c| 9 + drivers/gpu/drm/drm_atomic_helper.c | 3 +++ drivers/gpu/drm/drm_plane.c | 23

[RFC v4 7/8] drm/i915: Implement Plane Gamma for Bdw and Gen9 platforms

2018-08-17 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 Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_pci.c | 5 +++- drivers/gpu/drm/i915/i915_reg.h | 25

[RFC v4 0/8] Add Plane Color Properties

2018-08-17 Thread Uma Shankar
umentation as suggested by Daniel, Vetter. Fixed a rebase fumble which occurred in v2, pointed by Emil Velikov. v4: Rebase Uma Shankar (8): drm: Add Enhanced Gamma LUT precision structure drm: Add Plane Degamma properties drm: Add Plane CTM property drm: Add Plane Gamma properties d

[RFC v4 2/8] drm: Add Plane Degamma properties

2018-08-17 Thread Uma Shankar
Added property documentation as suggested by Daniel, Vetter. v4: Rebase Signed-off-by: Uma Shankar --- Documentation/gpu/drm-kms.rst | 9 + drivers/gpu/drm/drm_atomic.c| 13 + drivers/gpu/drm/drm_atomic_helper.c | 6 ++ drivers/gpu/drm/drm_plane.c

[RFC v4 1/8] drm: Add Enhanced Gamma LUT precision structure

2018-08-17 Thread Uma Shankar
. v4: Rebase Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_plane.c | 19 +++ include/uapi/drm/drm_mode.h | 15 +++ 2 files changed, 34 insertions(+) diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c index 6153cbd..cd71fd0 100644 --- a/drivers

[RFC v4 3/8] drm: Add Plane CTM property

2018-08-17 Thread Uma Shankar
by Daniel, Vetter. v4: Rebase Signed-off-by: Uma Shankar --- Documentation/gpu/drm-kms.rst | 3 +++ drivers/gpu/drm/drm_atomic.c| 10 ++ drivers/gpu/drm/drm_atomic_helper.c | 4 drivers/gpu/drm/drm_plane.c | 12 include/drm/drm_plane.h

[RFC 1/3] drm: Add colorspace property

2018-07-24 Thread Uma Shankar
This patch adds a colorspace property, enabling userspace to switch to various supported colorspaces. This will help enable BT2020 along with other colorspaces. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic.c| 4 drivers/gpu/drm/drm_connector.c | 31

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

2018-07-24 Thread Uma Shankar
This patch attaches the colorspace connector property to the hdmi connector. Based on colorspace change, modeset will be triggered to switch to new colorspace. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_atomic.c | 1 + drivers/gpu/drm/i915/intel_hdmi.c | 3 +++ 2 files changed

[RFC 3/3] drm/i915: Set colorspace by enabling Infoframe

2018-07-24 Thread Uma Shankar
Based on colorspace property value create an infoframe with appropriate colorspace. This can be used to send an infoframe packet with proper colorspace value set which will help to enable wider color gamut like BT2020 on sink. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/intel_hdmi.c | 2

[RFC 0/3] Add Colorspace connector property interface

2018-07-24 Thread Uma Shankar
"Colorspace" "BT2020_rgb" Please provide comments on this current approach. This is just an RFC to get some feedback. Will refine the series based on inputs and feedback. Uma Shankar (3): drm: Add colorspace property drm/i915: Attach colorspace property and enable modeset drm/

[RFC v3 8/8] drm/i915: Load plane color luts from atomic flip

2018-03-09 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. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/i915/intel_atomic_plane.c | 4 drivers/gpu/drm/i915/intel_color.c| 8 drivers/g

[RFC v3 7/8] drm/i915: Implement Plane Gamma for Bdw and Gen9 platforms

2018-03-09 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. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/i915/i915_pci.c | 5 +++- drivers/gpu/drm/i915/i915

[RFC v3 6/8] drm/i915: Enable plane color features

2018-03-09 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. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/i915/i915

[RFC v3 5/8] drm: Define helper function for plane color enabling

2018-03-09 Thread Uma Shankar
Define helper function to enable Plane color features to attach plane color properties to plane structure. v2: Rebase v3: Modiefied the function to use updated property names. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_plane.c

[RFC v3 4/8] drm: Add Plane Gamma properties

2018-03-09 Thread Uma Shankar
documentation as suggested by Daniel, Vetter. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- Documentation/gpu/drm-kms.rst | 6 ++ drivers/gpu/drm/drm_atomic.c| 8 drivers/gpu/drm/drm_atomic_helper.c | 3 +++ drivers/gpu/drm/drm_plane.c

[RFC v3 3/8] drm: Add Plane CTM property

2018-03-09 Thread Uma Shankar
by Daniel, Vetter. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- Documentation/gpu/drm-kms.rst | 3 +++ drivers/gpu/drm/drm_atomic.c| 10 ++ drivers/gpu/drm/drm_atomic_helper.c | 3 +++ drivers/gpu/drm/drm_plane.c | 12 include/drm/drm_p

[RFC v3 2/8] drm: Add Plane Degamma properties

2018-03-09 Thread Uma Shankar
Added property documentation as suggested by Daniel, Vetter. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- Documentation/gpu/drm-kms.rst | 9 + drivers/gpu/drm/drm_atomic.c| 12 drivers/gpu/drm/drm_atomic_helper.c | 6 ++ drivers/gpu/drm/drm_p

[RFC v3 0/8] Add Plane Color Properties

2018-03-09 Thread Uma Shankar
documentation as suggested by Daniel, Vetter. Fixed a rebase fumble which occurred in v2, pointed by Emil Velikov. Uma Shankar (8): 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

[RFC v3 1/8] drm: Add Enhanced Gamma LUT precision structure

2018-03-09 Thread Uma Shankar
. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_plane.c | 19 +++ include/uapi/drm/drm_mode.h | 15 +++ 2 files changed, 34 insertions(+) diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c index a5d1fc7..e706da6

[RFC 7/7] drm/i915: Load plane color luts from atomic flip

2017-11-07 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. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/i915/intel_atomic_plane.c |4 drivers/gpu/drm/i915/intel_color.c|8 drive

[RFC 6/7] drm/i915: Implement Plane Gamma for Bdw and Gen9 platforms

2017-11-07 Thread Uma Shankar
Implement Plane Gamma feature for BDW and Gen9 platforms. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/i915/i915_pci.c |5 ++- drivers/gpu/drm/i915/i915_reg.h | 24 ++ drivers/gpu/drm/i915/intel_color.c

[RFC 5/7] drm/i915: Enable plane color features

2017-11-07 Thread Uma Shankar
Enable and initialize plane color features. v2: Rebase and some cleanup Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/i915/i915_drv.h| 10 ++ drivers/gpu/drm/i915/intel_color.c | 12 drivers/gpu/drm/i915/intel_drv.h |9 ++

[RFC 3/7] drm: Add Plane Gamma properties

2017-11-07 Thread Uma Shankar
Add plane gamma as blob property and size as a range property. v2: Rebase Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_atomic.c|8 drivers/gpu/drm/drm_atomic_helper.c |3 +++ drivers/gpu/drm/drm_mode_config.c

[RFC 4/7] drm: Define helper function for plane color enabling

2017-11-07 Thread Uma Shankar
Define helper function to enable Plane color features to attach plane color properties to plane structure. v2: Rebase Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_plane.c | 45 ++ include/drm/drm_color_mgmt.h

[RFC 2/7] drm: Add Plane CTM property

2017-11-07 Thread Uma Shankar
Add a blob property for plane CSC usage. v2: Rebase Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_atomic.c| 10 ++ drivers/gpu/drm/drm_atomic_helper.c |3 +++ drivers/gpu/drm/drm_mode_config.c |7 +++ include/drm/drm_mode_co

[RFC 1/7] drm: Add Plane Degamma properties

2017-11-07 Thread Uma Shankar
Add Plane Degamma as a blob property and plane degamma size as a range property. v2: Rebase Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_atomic.c| 12 drivers/gpu/drm/drm_atomic_helper.c |6 ++ drivers/gpu/drm/drm_mode_co

[PATCH 0/7] Add Plane Color Properties

2017-11-07 Thread Uma Shankar
look ok. Based on community feedback on interfaces, we will implement IGT tests to validate plane color features. This is un-tested currently. v2: Dropped legacy gamma table for plane as suggested by Maarten. Added Gen9/BDW plane gamma feature and rebase on tot. Uma Shankar (7): drm: Add

[RFC v1 6/6] drm/i915: Enable plane color features

2017-09-26 Thread Uma Shankar
Enable and initilaize plane color features. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/i915/i915_drv.h |8 drivers/gpu/drm/i915/intel_color.c | 14 ++ drivers/gpu/drm/i915/intel_display.c |4 drivers/gpu/drm/i915/intel

[RFC v1 4/6] drm: Define helper function for plane color enabling

2017-09-26 Thread Uma Shankar
Define helper function to enable Plane color features to attach plane color properties to plane structure. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_plane.c | 48 ++ include/drm/drm_color_mgmt.h |5 + 2

[RFC v1 5/6] drm: Define helper to set legacy gamma table size

2017-09-26 Thread Uma Shankar
Define a helper function to set legacy gamma table size for planes. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_color_mgmt.c | 41 ++ include/drm/drm_color_mgmt.h |3 +++ include/drm/drm_plane.h |4 +

[RFC v1 3/6] drm: Add Plane Gamma properties

2017-09-26 Thread Uma Shankar
Add plane gamma as blob property and size as a range property. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_atomic.c|8 drivers/gpu/drm/drm_atomic_helper.c |3 +++ drivers/gpu/drm/drm_mode_config.c | 14 ++ inclu

[RFC v1 2/6] drm: Add Plane CTM property

2017-09-26 Thread Uma Shankar
Add a blob property for plane CSC usage. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_atomic.c| 10 ++ drivers/gpu/drm/drm_atomic_helper.c |3 +++ drivers/gpu/drm/drm_mode_config.c |7 +++ include/drm/drm_mode_config.h

[RFC V1 0/6] Add Plane Color Properties

2017-09-26 Thread Uma Shankar
will re-send the series with a hardware specific implementation along with IGT tests for plane color. Uma Shankar (6): drm: Add Plane Degamma properties drm: Add Plane CTM property drm: Add Plane Gamma properties drm: Define helper function for plane color enabling drm: Define helper

[RFC v1 1/6] drm: Add Plane Degamma properties

2017-09-26 Thread Uma Shankar
Add Plane Degamma as a blob property and plane degamma size as a range property. Signed-off-by: Uma Shankar <uma.shan...@intel.com> --- drivers/gpu/drm/drm_atomic.c| 12 drivers/gpu/drm/drm_atomic_helper.c |6 ++ drivers/gpu/drm/drm_mode_config.c

<    1   2   3   4   5   >