[Intel-gfx] [v11 10/13] drm/i915/display: Implement DRM infoframe read for LSPCON

2020-11-25 Thread Uma Shankar
. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjä --- drivers/gpu/drm/i915/display/intel_hdmi.c | 7 +++ drivers/gpu/drm/i915/display/intel_lspcon.c | 5 - drivers/gpu/drm/i915/display/intel_lspcon.h | 4 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [v11 00/13] Enable HDR on MCA LSPCON based Gen9 devices

2020-11-25 Thread Uma Shankar
new lspcon detetction changes. v9: Rebase v10: Fixed one patch for detection v11: Addressed Ville's review comments and added RB in the respective patches. Thanks Ville for all the suggestions and inputs. Note: Patch 13 of the series is for reference to userspace, not to be merged to driver. Uma S

[Intel-gfx] [v6 1/2] drm/i915/display/tgl: Disable FBC with PSR2

2020-12-01 Thread Uma Shankar
iew comments by Jose. v6: Move WA to end of function and added Jose's RB. Signed-off-by: Uma Shankar Reviewed-by: José Roberto de Souza --- drivers/gpu/drm/i915/display/intel_fbc.c | 12 drivers/gpu/drm/i915/i915_drv.h | 1 + 2 files changed, 13 insertions(+) diff --

[Intel-gfx] [v6 0/2] Re-enable FBC on TGL

2020-12-01 Thread Uma Shankar
Ville's review comments v4: Change the WA as per Jose's recommendation. v5: Addressed Jose's review comments. v6: Added Jose and Ville RB's. Fixed a minor review comment. Uma Shankar (2): drm/i915/display/tgl: Disable FBC with PSR2 Revert "drm/i915/display/fbc: Disable fbc by default o

[Intel-gfx] [v6 2/2] Revert "drm/i915/display/fbc: Disable fbc by default on TGL"

2020-12-01 Thread Uma Shankar
FBC can be re-enabled on TGL with WA of keeping it disabled while PSR2 is enabled. This reverts commit 2982ded2ff5ce0cf1a49bc39a526da182782b664. Signed-off-by: Uma Shankar Reviewed-by: José Roberto de Souza Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_fbc.c | 7

[Intel-gfx] [v14 00/15] Enable HDR on MCA LSPCON based Gen9 devices

2020-11-30 Thread Uma Shankar
es updated with feedback. v14: Final series with all RB's in place, ready to merge. Thanks Ville for all the suggestions and inputs. Note: Patch 15 of the series is for reference to userspace, not to be merged to driver. Uma Shankar (14): drm/i915/display: Add HDR Capability detection for LS

[Intel-gfx] [v14 02/15] drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon

2020-11-30 Thread Uma Shankar
, passed arguments instead of hardcodings. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_hdmi.c | 8 +++--- drivers/gpu/drm/i915/display/intel_lspcon.c | 31 - drivers/gpu/drm/i915/display/intel_lspcon.h | 4 +++ 3 files changed

[Intel-gfx] [v14 01/15] drm/i915/display: Add HDR Capability detection for LSPCON

2020-11-30 Thread Uma Shankar
Nikula's review comment and fixed the HDR capability detection logic v3: Deferred HDR detection from lspcon_init (Ville) v4: Addressed Ville's minor review comments, added his RB. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- .../drm/i915/display/intel_display_types.h| 1

[Intel-gfx] [v14 14/15] drm/i915/lspcon: Do not send DRM infoframes to non-HDMI sinks

2020-11-30 Thread Uma Shankar
Non-HDMI sinks shouldn't be sent Dynamic Range and Mastering infoframes. Check for that when using LSPCON. v2: Addressed Ville's review comment. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_ddi.c | 6 +- 1 file changed, 5 insertions(+), 1

[Intel-gfx] [v14 13/15] drm/i915/display: Implement DRM infoframe read for LSPCON

2020-11-30 Thread Uma Shankar
. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_hdmi.c | 7 +++ drivers/gpu/drm/i915/display/intel_lspcon.c | 5 - drivers/gpu/drm/i915/display/intel_lspcon.h | 4 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [v14 12/15] drm/i915/display: Implement infoframes readback for LSPCON

2020-11-30 Thread Uma Shankar
, as recommended by Ville. v4: Addressed Ville's review comment by adding HDMI infoframe versions directly instead of DIP wrappers. v5: Re-ordered the patches to avoid potential break in usage, as suggested by Ville. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[Intel-gfx] [v14 15/15] drm/i915/display: [NOT FOR MERGE] Reduce blanking to support 4k60@10bpp for LSPCON

2020-11-30 Thread Uma Shankar
: updated commit message. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 21a0ca6ae2a6..15e9c46af1d9 100644

[Intel-gfx] [v14 10/15] drm/i915/display: Enable HDR for Parade based lspcon

2020-11-30 Thread Uma Shankar
Enable HDR for LSPCON based on Parade along with MCA. v2: Added a helper for status reg as suggested by Ville. v3: Removed a redundant variable, added Ville's RB. Signed-off-by: Uma Shankar Signed-off-by: Vipin Anand Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_lspcon.c

[Intel-gfx] [v14 07/15] drm/i915: Split intel_attach_colorspace_property() into HDMI vs. DP variants

2020-11-30 Thread Uma Shankar
. To that end just split intel_attach_colorspace_property() into HDMI and DP variants and let the caller worry about which one it wants to use. Cc: Uma Shankar Signed-off-by: Ville Syrjälä Reviewed-by: Uma Shankar --- .../gpu/drm/i915/display/intel_connector.c| 29

[Intel-gfx] [v14 08/15] drm/i915/display: Enable colorspace programming for LSPCON devices

2020-11-30 Thread Uma Shankar
as we can't create property at late_register. Credits-to: Ville Syrjälä Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c | 9 ++--- drivers/gpu/drm/i915/display/intel_lspcon.c | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff

[Intel-gfx] [v14 11/15] drm/i915/lspcon: Create separate infoframe_enabled helper

2020-11-30 Thread Uma Shankar
instead of a redundant and confusing DIP overhead. Suggested-by: Ville Syrjälä Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_ddi.c| 10 +++--- drivers/gpu/drm/i915/display/intel_lspcon.c | 9 + drivers/gpu/drm/i915/display

[Intel-gfx] [v14 03/15] drm/i915/display: Attach HDR property for capable Gen9 devices

2020-11-30 Thread Uma Shankar
: Add HDR proprty in late_register to handle lspcon detection, as suggested by Ville. v5: Init Lspcon only if advertized from BIOS. v6: Added a Todo to plan a cleanup later, added Ville's RB. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c

[Intel-gfx] [v14 04/15] drm/i915/display: Fixes quantization range for YCbCr output

2020-11-30 Thread Uma Shankar
This patch fixes the quantization range for YCbCr output on Lspcon based devices. v2: Re-phrased the description and added Ville's Rb. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_lspcon.c | 17 +++-- 1 file changed, 11 insertions

[Intel-gfx] [v14 05/15] drm/i915/display: Add a WARN for invalid output range and format

2020-11-30 Thread Uma Shankar
Add a WARN to rule out an invalid output range and format combination. This is to align the lspcon code with compute_avi_infoframes. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_lspcon.c | 4 1 file changed, 4 insertions(+) diff --git

[Intel-gfx] [v14 09/15] drm/i915/display: Nuke bogus lspcon check

2020-11-30 Thread Uma Shankar
Dropped a irrelevant lspcon check from intel_hdmi_add_properties function. Suggested-by: Ville Syrjälä Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_hdmi.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers

[Intel-gfx] [v14 06/15] drm/i915/display: Attach content type property for LSPCON

2020-11-30 Thread Uma Shankar
of new properties is not possible at late_register. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c | 3 +++ drivers/gpu/drm/i915/display/intel_lspcon.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c

[Intel-gfx] [v12 01/15] drm/i915/display: Add HDR Capability detection for LSPCON

2020-11-26 Thread Uma Shankar
Nikula's review comment and fixed the HDR capability detection logic v3: Deferred HDR detection from lspcon_init (Ville) v4: Addressed Ville's minor review comments, added his RB. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- .../drm/i915/display/intel_display_types.h| 1

[Intel-gfx] [v12 00/15] Enable HDR on MCA LSPCON based Gen9 devices

2020-11-26 Thread Uma Shankar
le for all the suggestions and inputs. Note: Patch 15 of the series is for reference to userspace, not to be merged to driver. Uma Shankar (14): drm/i915/display: Add HDR Capability detection for LSPCON drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon drm/i915/display: Attach HD

[Intel-gfx] [v12 03/15] drm/i915/display: Attach HDR property for capable Gen9 devices

2020-11-26 Thread Uma Shankar
: Add HDR proprty in late_register to handle lspcon detection, as suggested by Ville. v5: Init Lspcon only if advertized from BIOS. v6: Added a Todo to plan a cleanup later, added Ville's RB. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c

[Intel-gfx] [v12 02/15] drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon

2020-11-26 Thread Uma Shankar
, passed arguments instead of hardcodings. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_hdmi.c | 8 +++--- drivers/gpu/drm/i915/display/intel_lspcon.c | 31 - drivers/gpu/drm/i915/display/intel_lspcon.h | 4 +++ 3 files changed

[Intel-gfx] [v12 06/15] drm/i915/display: Attach content type property for LSPCON

2020-11-26 Thread Uma Shankar
Content type is supported on HDMI sink devices. Attached the property for the same for LSPCON based devices. v2: Added the content type programming when we are attaching the property to connector, as suggested by Ville. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm

[Intel-gfx] [v12 05/15] drm/i915/display: Add a WARN for invalid output range and format

2020-11-26 Thread Uma Shankar
Add a WARN to rule out an invalid output range and format combination. This is to align the lspcon code with compute_avi_infoframes. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_lspcon.c | 4 1 file changed, 4 insertions(+) diff --git

[Intel-gfx] [v12 14/15] drm/i915/lspcon: Do not send DRM infoframes to non-HDMI sinks

2020-11-26 Thread Uma Shankar
Non-HDMI sinks shouldn't be sent Dynamic Range and Mastering infoframes. Check for that when using LSPCON. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_ddi.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [v12 15/15] drm/i915/display: [NOT FOR MERGE] Reduce blanking to support 4k60@10bpp for LSPCON

2020-11-26 Thread Uma Shankar
: updated commit message. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 0f89dbfa958a..f6f66033176b 100644

[Intel-gfx] [v12 11/15] drm/i915/lspcon: Create separate infoframe_enabled helper

2020-11-26 Thread Uma Shankar
instead of a redundant and confusing DIP overhead. Suggested-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_ddi.c| 10 +++--- drivers/gpu/drm/i915/display/intel_lspcon.c | 9 + drivers/gpu/drm/i915/display/intel_lspcon.h | 2 ++ 3 files

[Intel-gfx] [v12 09/15] drm/i915/display: Nuke bogus lspcon check

2020-11-26 Thread Uma Shankar
Dropped a irrelevant lspcon check from intel_hdmi_add_properties function. Suggested-by: Ville Syrjälä Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_hdmi.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers

[Intel-gfx] [v12 10/15] drm/i915/display: Enable HDR for Parade based lspcon

2020-11-26 Thread Uma Shankar
Enable HDR for LSPCON based on Parade along with MCA. v2: Added a helper for status reg as suggested by Ville. v3: Removed a redundant variable, added Ville's RB. Signed-off-by: Uma Shankar Signed-off-by: Vipin Anand Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_lspcon.c

[Intel-gfx] [v12 07/15] drm/i915: Split intel_attach_colorspace_property() into HDMI vs. DP variants

2020-11-26 Thread Uma Shankar
. To that end just split intel_attach_colorspace_property() into HDMI and DP variants and let the caller worry about which one it wants to use. Cc: Uma Shankar Signed-off-by: Ville Syrjälä Reviewed-by: Uma Shankar --- .../gpu/drm/i915/display/intel_connector.c| 29

[Intel-gfx] [v12 08/15] drm/i915/display: Enable colorspace programming for LSPCON devices

2020-11-26 Thread Uma Shankar
as per Jani Nikula's suggestion. v3: Aligned colorimetry handling for lspcon as per compute_avi_infoframes, as suggested by Ville. v4: Finally fixed this with Ville's help, re-phrased the commit header and description. Credits-to: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915

[Intel-gfx] [v12 13/15] drm/i915/display: Implement DRM infoframe read for LSPCON

2020-11-26 Thread Uma Shankar
. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_hdmi.c | 7 +++ drivers/gpu/drm/i915/display/intel_lspcon.c | 5 - drivers/gpu/drm/i915/display/intel_lspcon.h | 4 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [v12 04/15] drm/i915/display: Fixes quantization range for YCbCr output

2020-11-26 Thread Uma Shankar
This patch fixes the quantization range for YCbCr output on Lspcon based devices. v2: Re-phrased the description and added Ville's Rb. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_lspcon.c | 17 +++-- 1 file changed, 11 insertions

[Intel-gfx] [v12 12/15] drm/i915/display: Implement infoframes readback for LSPCON

2020-11-26 Thread Uma Shankar
, as recommended by Ville. v4: Addressed Ville's review comment by adding HDMI infoframe versions directly instead of DIP wrappers. v5: Re-ordered the patches to avoid potential break in usage, as suggested by Ville. Signed-off-by: Uma Shankar Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[Intel-gfx] [v4 0/2] Re-enable FBC on TGL

2020-12-01 Thread Uma Shankar
Ville's review comments v4: Change the WA as per Jose's recommendation. Uma Shankar (2): drm/i915/display/tgl: Disable FBC with PSR2 Revert "drm/i915/display/fbc: Disable fbc by default on TGL" drivers/gpu/drm/i915/display/intel_fbc.c | 36 +++- drivers/gp

[Intel-gfx] [v4 1/2] drm/i915/display/tgl: Disable FBC with PSR2

2020-12-01 Thread Uma Shankar
to disable fbc to intel_fbc_update_state_cache and removed the crtc->config usages, as per Ville's recommendation. v4: Introduced a variable in fbc state_cache instead of the earlier plane.visible WA, as suggested by Jose. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_fb

[Intel-gfx] [v4 2/2] Revert "drm/i915/display/fbc: Disable fbc by default on TGL"

2020-12-01 Thread Uma Shankar
FBC can be re-enabled on TGL with WA of keeping it disabled while PSR2 is enabled. This reverts commit 2982ded2ff5ce0cf1a49bc39a526da182782b664. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_fbc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [v5 0/2] Re-enable FBC on TGL

2020-12-01 Thread Uma Shankar
Ville's review comments v4: Change the WA as per Jose's recommendation. v5: Addressed Jose's review comments. Uma Shankar (2): drm/i915/display/tgl: Disable FBC with PSR2 Revert "drm/i915/display/fbc: Disable fbc by default on TGL" drivers/gpu/drm/i915/display/intel_

[Intel-gfx] [v5 1/2] drm/i915/display/tgl: Disable FBC with PSR2

2020-12-01 Thread Uma Shankar
iew comments by Jose. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_fbc.c | 12 drivers/gpu/drm/i915/i915_drv.h | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c in

[Intel-gfx] [v5 2/2] Revert "drm/i915/display/fbc: Disable fbc by default on TGL"

2020-12-01 Thread Uma Shankar
FBC can be re-enabled on TGL with WA of keeping it disabled while PSR2 is enabled. This reverts commit 2982ded2ff5ce0cf1a49bc39a526da182782b664. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_fbc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [v3 1/2] drm/i915/display/tgl: Disable FBC with PSR2

2020-11-19 Thread Uma Shankar
to disable fbc to intel_fbc_update_state_cache and removed the crtc->config usages, as per Ville's recommendation. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_fbc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c

[Intel-gfx] [v2 0/2] Re-enable FBC on TGL

2020-11-19 Thread Uma Shankar
FBC was disabled on TGL due to random underruns. It has been determined that FBC will not work reliably with PSR2. This series re-enables fbc along with taking care of the PSR2 limitations for TGL. Bspec: 50422 HSD: 14010260002 v2: Addressed review comments and added bspec links Uma Shankar (2

[Intel-gfx] [v2 1/2] drm/i915/display/tgl: Disable FBC with PSR2

2020-11-19 Thread Uma Shankar
There are some corner cases wrt underrun when we enable FBC with PSR2 on TGL. Recommendation from hardware is to keep this combination disabled. Bspec: 50422 HSD: 14010260002 v2: Added psr2 enabled check from crtc_state (Anshuman) Added Bspec link and HSD referneces (Jose) Signed-off-by: Uma

[Intel-gfx] [v2 2/2] Revert "drm/i915/display/fbc: Disable fbc by default on TGL"

2020-11-19 Thread Uma Shankar
FBC can be re-enabled on TGL with WA of keeping it disabled while PSR2 is enabled. This reverts commit 2982ded2ff5ce0cf1a49bc39a526da182782b664. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_fbc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [v9 10/12] drm/i915/lspcon: Create separate infoframe_enabled helper

2020-11-03 Thread Uma Shankar
Lspcon has Infoframes as well as DIP for HDR metadata(DRM Infoframe). Create a separate mechanism for lspcon compared to HDMI in order to address the same and ensure future scalability. Suggested-by: Ville Syrjälä Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_ddi.c| 10

[Intel-gfx] [v9 02/12] drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon

2020-11-03 Thread Uma Shankar
, passed arguments instead of hardcodings. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_hdmi.c | 8 +++--- drivers/gpu/drm/i915/display/intel_lspcon.c | 31 - drivers/gpu/drm/i915/display/intel_lspcon.h | 4 +++ 3 files changed, 26 insertions(+), 17

[Intel-gfx] [v9 01/12] drm/i915/display: Add HDR Capability detection for LSPCON

2020-11-03 Thread Uma Shankar
Nikula's review comment and fixed the HDR capability detection logic v3: Deferred HDR detection from lspcon_init (Ville) Signed-off-by: Uma Shankar --- .../drm/i915/display/intel_display_types.h| 1 + drivers/gpu/drm/i915/display/intel_lspcon.c | 28 +++ drivers/gpu/drm

[Intel-gfx] [v9 07/12] drm/i915/display: Enable HDR for Parade based lspcon

2020-11-03 Thread Uma Shankar
Enable HDR for LSPCON based on Parade along with MCA. v2: Added a helper for status reg as suggested by Ville. Signed-off-by: Uma Shankar Signed-off-by: Vipin Anand --- drivers/gpu/drm/i915/display/intel_lspcon.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff

[Intel-gfx] [v9 00/12] Enable HDR on MCA LSPCON based Gen9 devices

2020-11-03 Thread Uma Shankar
new lspcon detetction changes. v9: Rebase Thanks Ville for all the suggestions and inputs. Note: Patch 12 of the series is for reference to userspace, not to be merged to driver. Uma Shankar (12): drm/i915/display: Add HDR Capability detection for LSPCON drm/i915/display: Enable HDR on gen9 device

[Intel-gfx] [v9 04/12] drm/i915/display: Attach content type property for LSPCON

2020-11-03 Thread Uma Shankar
Content type is supported on HDMI sink devices. Attached the property for the same for LSPCON based devices. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915

[Intel-gfx] [v9 06/12] drm/i915/display: Enable BT2020 for HDR on LSPCON devices

2020-11-03 Thread Uma Shankar
as per Jani Nikula's suggestion. v3: Aligned colorimetry handling for lspcon as per compute_avi_infoframes, as suggested by Ville. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_lspcon.c | 31 + 1 file changed, 25 insertions(+), 6 deletions(-) diff --git

[Intel-gfx] [v9 09/12] drm/i915/display: Implement DRM infoframe read for LSPCON

2020-11-03 Thread Uma Shankar
Implement Read back of HDR metadata infoframes i.e Dynamic Range and Mastering Infoframe for LSPCON devices. v2: Added proper bitmask of enabled infoframes as per Ville's recommendation. v3: Dropped a redundant wrapper as per Ville's comment. Signed-off-by: Uma Shankar --- drivers/gpu/drm

[Intel-gfx] [v9 11/12] drm/i915/lspcon: Do not send DRM infoframes to non-HDMI sinks

2020-11-03 Thread Uma Shankar
Non-HDMI sinks shouldn't be sent Dynamic Range and Mastering infoframes. Check for that when using LSPCON. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_ddi.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [v9 08/12] drm/i915/display: Implement infoframes readback for LSPCON

2020-11-03 Thread Uma Shankar
, as recommended by Ville. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_lspcon.c | 57 - drivers/gpu/drm/i915/i915_reg.h | 2 + 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_lspcon.c b/drivers/gpu/drm

[Intel-gfx] [v9 05/12] drm/i915/display: Nuke bogus lspcon check

2020-11-03 Thread Uma Shankar
Dropped a irrelevant lspcon check from intel_hdmi_add_properties function. Suggested-by: Ville Syrjälä" Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_hdmi.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/di

[Intel-gfx] [v9 03/12] drm/i915/display: Attach HDR property for capable Gen9 devices

2020-11-03 Thread Uma Shankar
: Add HDR proprty in late_register to handle lspcon detection, as suggested by Ville. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 11 +++ drivers/gpu/drm/i915/display/intel_lspcon.c | 2 +- drivers/gpu/drm/i915/display/intel_lspcon.h | 1 + 3 files changed

[Intel-gfx] [v9 12/12] drm/i915/display: [NOT FOR MERGE] Reduce blanking to support 4k60@10bpp for LSPCON

2020-11-03 Thread Uma Shankar
: updated commit message. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 79a49d1cbb21..1ad4c08f850b 100644

[Intel-gfx] [v10 03/12] drm/i915/display: Attach HDR property for capable Gen9 devices

2020-11-03 Thread Uma Shankar
: Add HDR proprty in late_register to handle lspcon detection, as suggested by Ville. v5: Init Lspcon only if advertized from BIOS. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 14 ++ drivers/gpu/drm/i915/display/intel_lspcon.c | 2 +- drivers/gpu/drm

[Intel-gfx] [PATCH 1/2] drm/i915/display/tgl: Disable FBC with PSR2

2020-11-04 Thread Uma Shankar
There are some corner cases wrt underrun when we enable FBC with PSR2 on TGL. Recommendation from hardware is to keep this combination disabled. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_fbc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 2/2] Revert "drm/i915/display/fbc: Disable fbc by default on TGL"

2020-11-04 Thread Uma Shankar
FBC can be re-enabled on TGL with WA of keeping it disabled while PSR2 is enabled. This reverts commit 2982ded2ff5ce0cf1a49bc39a526da182782b664. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_fbc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH 0/2] Re-enable FBC on TGL

2020-11-04 Thread Uma Shankar
FBC was disabled on TGL due to random underruns. It has been determined that FBC will not work reliably with PSR2. This series re-enables fbc along with taking care of the PSR2 limitations for TGL. Test-with: 20201104195142.3223-1-uma.shan...@intel.com Uma Shankar (2): drm/i915/display/tgl

[Intel-gfx] [PATCH 15/21] drm/i915/xelpd: Enable Plane CSC

2021-06-01 Thread Uma Shankar
Implement plane CSC for ICL+ Signed-off-by: Uma Shankar --- .../gpu/drm/i915/display/intel_atomic_plane.c | 5 +- drivers/gpu/drm/i915/display/intel_color.c| 82 +++ .../drm/i915/display/skl_universal_plane.c| 4 + drivers/gpu/drm/i915/i915_reg.h | 1

[Intel-gfx] [PATCH 16/21] drm: Add Plane Gamma Mode property

2021-06-01 Thread Uma Shankar
. It can then set one of the modes using this enum property. Lut values will be sent through a separate GAMMA_LUT blob property. Signed-off-by: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/drm_atomic_uapi.c | 4 drivers/gpu/drm/drm_color_mgmt.c | 26

[Intel-gfx] [PATCH 17/21] drm: Add Plane Gamma Lut property

2021-06-01 Thread Uma Shankar
Add Plane Gamma Lut as a blob property. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_state_helper.c | 3 +++ drivers/gpu/drm/drm_atomic_uapi.c | 10 ++ drivers/gpu/drm/drm_color_mgmt.c | 18 ++ include/drm/drm_plane.h | 14

[Intel-gfx] [PATCH 02/21] drm: Add Plane Degamma Mode property

2021-06-01 Thread Uma Shankar
and also the range of gamma mode supported with number of lut coefficients. It can then set one of the modes using this enum property. Lut values will be sent through separate GAMMA_LUT blob property. Signed-off-by: Uma Shankar --- Documentation/gpu/drm-kms.rst | 90

[Intel-gfx] [PATCH 04/21] drm/i915/xelpd: Define Degamma Lut range struct for HDR planes

2021-06-01 Thread Uma Shankar
Define the structure with XE_LPD degamma lut ranges. HDR and SDR planes have different capabilities, implemented respective structure for the HDR planes. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_color.c | 52 ++ 1 file changed, 52 insertions(+) diff

[Intel-gfx] [PATCH 18/21] drm/i915/xelpd: Define and Initialize Plane Gamma Lut range

2021-06-01 Thread Uma Shankar
Define the structure with XE_LPD gamma lut ranges. HDR and SDR planes have different capabilities, implemented respective structure for the HDR planes. Degamma and GAMMA has same Lut caps for SDR planes, extended the same. Initialize the mode range caps as well. Signed-off-by: Uma Shankar

[Intel-gfx] [PATCH 19/21] drm/i915/xelpd: Add register definitions for Plane Gamma

2021-06-01 Thread Uma Shankar
Add macros to define Plane Gamma registers Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 73 + 1 file changed, 73 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index a8e35357aea0..2ebc92104f64

[Intel-gfx] [PATCH 20/21] drm/i915/xelpd: Program Plane Gamma Registers

2021-06-01 Thread Uma Shankar
Extract the LUT and program plane gamma registers. Enabled multi segmented lut as well. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_color.c | 89 ++ drivers/gpu/drm/i915/i915_reg.h| 9 ++- 2 files changed, 94 insertions(+), 4 deletions

[Intel-gfx] [PATCH 21/21] drm/i915/xelpd: Enable plane gamma

2021-06-01 Thread Uma Shankar
Enable plane gamma feature in check callbacks. Decide based on the user input. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/skl_universal_plane.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/skl_universal_plane.c b/drivers

[Intel-gfx] [PATCH 01/21] drm: Add Enhanced Gamma and color lut range attributes

2021-06-01 Thread Uma Shankar
macro definitions and enums. This will help describe multi segmented lut ranges in the hardware. Signed-off-by: Uma Shankar --- include/uapi/drm/drm_mode.h | 58 + 1 file changed, 58 insertions(+) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm

[Intel-gfx] [PATCH 03/21] drm: Add Plane Degamma Lut property

2021-06-01 Thread Uma Shankar
Add Plane Degamma Lut as a blob property. User will calculate the lut values, create the blob and send it to driver using this property. Lut calculation will be based on the gamma mode chosen out of the gamma mode exposed. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_state_helper.c

[Intel-gfx] [PATCH 05/21] drm/i915/xelpd: Add register definitions for Plane Degamma

2021-06-01 Thread Uma Shankar
Add macros to define Plane Degamma registers Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 52 + 1 file changed, 52 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 24307c49085f..9431913969f3

[Intel-gfx] [PATCH 06/21] drm/i915/xelpd: Enable plane color features

2021-06-01 Thread Uma Shankar
Enable and initialize plane color features. Also initialize the color features of HDR planes. Signed-off-by: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_color.c | 22 +- drivers/gpu/drm/i915/display/intel_color.h | 2 ++ drivers/gpu

[Intel-gfx] [PATCH 07/21] drm/i915/xelpd: Add color capabilities of SDR planes

2021-06-01 Thread Uma Shankar
Add the Color capabilities of SDR planes. Signed-off-by: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_color.c | 67 -- 1 file changed, 63 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_color.c b

[Intel-gfx] [PATCH 11/21] drm/i915/xelpd: Load plane color luts from atomic flip

2021-06-01 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 --- drivers/gpu/drm/i915/display/intel_atomic_plane.c | 3 +++ drivers/gpu/drm/i915/display/intel_atomic_plane.h | 1 + drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 12/21] drm: Add Plane CTM property

2021-06-01 Thread Uma Shankar
Add a blob property for plane CSC usage. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_state_helper.c | 3 +++ drivers/gpu/drm/drm_atomic_uapi.c | 10 ++ drivers/gpu/drm/drm_color_mgmt.c | 11 +++ include/drm/drm_plane.h | 15

[Intel-gfx] [PATCH 13/21] drm: Add helper to attach Plane ctm property

2021-06-01 Thread Uma Shankar
Add a DRM helper to attach ctm property. Signed-off-by: Uma Shankar --- drivers/gpu/drm/drm_color_mgmt.c | 10 ++ include/drm/drm_plane.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/gpu/drm/drm_color_mgmt.c b/drivers/gpu/drm/drm_color_mgmt.c index

[Intel-gfx] [PATCH 14/21] drm/i915/xelpd: Define Plane CSC Registers

2021-06-01 Thread Uma Shankar
Define Register macros for plane CSC. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_reg.h | 43 + 1 file changed, 43 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index ede7dca440e2..df8500a86e9d 100644

[Intel-gfx] [PATCH 08/21] drm/i915/xelpd: Program Plane Degamma Registers

2021-06-01 Thread Uma Shankar
Extract the LUT and program plane degamma registers. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_color.c | 116 + drivers/gpu/drm/i915/i915_reg.h| 2 + 2 files changed, 118 insertions(+) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 09/21] drm/i915/xelpd: Add plane color check to glk_plane_color_ctl

2021-06-01 Thread Uma Shankar
Extended glk_plane_color_ctl to have plane color checks. This helps enabling the degamma or gamma block based on user inputs. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/skl_universal_plane.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 10/21] drm/i915/xelpd: Initialize plane color features

2021-06-01 Thread Uma Shankar
Initialize plane color features for XE_LPD. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_atomic_plane.h | 1 + drivers/gpu/drm/i915/display/skl_universal_plane.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_atomic_plane.h b

[Intel-gfx] [PATCH 00/21] Add Support for Plane Color Lut and CSC features

2021-06-01 Thread Uma Shankar
and idea. Note: Userspace support for this new UAPI will be done on Chrome. We will notify the list once we have that ready for review. ToDo: State readout for this feature will be added next. Uma Shankar (21): drm: Add Enhanced Gamma and color lut range attributes drm: Add Plane Degamma Mode

[Intel-gfx] [PATCH 2/9] drm/i915/xelpd: Define color lut range structure

2021-06-01 Thread Uma Shankar
This defines the color lut ranges for logarithmic gamma which is being introduced from XE_LPD onwards. Signed-off-by: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_color.c | 250 - 1 file changed, 246 insertions(+), 4 deletions

[Intel-gfx] [PATCH 6/9] drm/i915/xelpd: logarithmic gamma enabled only with advance gamma mode

2021-06-01 Thread Uma Shankar
Only Enable Logarithmic Gamma if client caps for advance gamma mode is enabled. Fallback to 10bit gamma in case its not supported. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_color.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers

[Intel-gfx] [PATCH 4/9] drm/i915/xelpd: Attach gamma mode property

2021-06-01 Thread Uma Shankar
Attach the gamma mode property to allow userspace set the gamma mode and provide the luts for the same. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_color.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm

[Intel-gfx] [PATCH 1/9] drm: Add gamma mode property

2021-06-01 Thread Uma Shankar
-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_uapi.c | 5 +++ drivers/gpu/drm/drm_color_mgmt.c | 75 +++ include/drm/drm_color_mgmt.h | 8 include/drm/drm_crtc.h| 14 ++ include/uapi/drm/drm_mode.h | 43 ++ 5 files changed

[Intel-gfx] [PATCH 7/9] drm/i915/xelpd: Enable Pipe Degamma

2021-06-01 Thread Uma Shankar
Enable Pipe Degamma for XE_LPD. Extend the legacy implementation to incorparate the extended lut size for XE_LPD. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_color.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 5/9] drm: Add Client Cap for advance gamma mode

2021-06-01 Thread Uma Shankar
-off-by: Uma Shankar --- drivers/gpu/drm/drm_atomic_uapi.c | 3 +++ drivers/gpu/drm/drm_ioctl.c | 5 + include/drm/drm_atomic.h | 1 + include/drm/drm_crtc.h| 8 include/drm/drm_file.h| 8 include/uapi/drm/drm.h| 8 6

[Intel-gfx] [PATCH 8/9] drm/i915/xelpd: Add Pipe Color Lut caps to platform config

2021-06-01 Thread Uma Shankar
XE_LPD has 128 Lut entries for Degamma, with additional 3 entries for extended range. It has 511 entries for gamma with additional 2 entries for extended range. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[Intel-gfx] [PATCH 9/9] drm/i915/xelpd: Enable XE_LPD Gamma Lut readout

2021-06-01 Thread Uma Shankar
Enable support for Logarithmic gamma readout for XE_LPD. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_color.c | 72 ++ drivers/gpu/drm/i915/i915_reg.h| 6 ++ 2 files changed, 78 insertions(+) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 0/9] Enhance pipe color support for multi segmented luts

2021-06-01 Thread Uma Shankar
for this new UAPI will be done on Chrome and plan is to get this supported on mutter as well. We will notify the list once we have that ready for review. Uma Shankar (9): drm: Add gamma mode property drm/i915/xelpd: Define color lut range structure drm/i915/xelpd: Add support for Logarithmic gamma

[Intel-gfx] [PATCH 3/9] drm/i915/xelpd: Add support for Logarithmic gamma mode

2021-06-01 Thread Uma Shankar
XE_LPD hardware introduced a new gamma mode i.e, Logarithmic gamma mode. Added support for the same. Signed-off-by: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_color.c | 111 - drivers/gpu/drm/i915/i915_reg.h| 1

[Intel-gfx] [PATCH] drm/i915/display/xelpd: Fix incorrect color capability reporting

2021-07-07 Thread Uma Shankar
On XELPD platforms, color management support is not yet enabled. Fix wrongly reporting the same through platform info, which was resulting in incorrect initialization and usage. Cc: Swati Sharma Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/i915_pci.c | 2 +- 1 file changed, 1 insertion

[Intel-gfx] [PATCH] drm/i915/display: Handle lane polarity for DDI port

2021-02-11 Thread Uma Shankar
Lane Reversal is required for some of the DDI ports. This information is populated in VBT and driver should read the same and set the polarity while enabling the port. This patch handles the same. It helps fix a display blankout issue on DP ports on certain platforms. Signed-off-by: Uma Shankar

[Intel-gfx] [RFC v2 02/22] drm: Add Enhanced Gamma and color lut range attributes

2021-09-06 Thread Uma Shankar
macro definitions and enums. This will help describe multi segmented lut ranges in the hardware. Signed-off-by: Uma Shankar --- include/uapi/drm/drm_mode.h | 58 + 1 file changed, 58 insertions(+) diff --git a/include/uapi/drm/drm_mode.h b/include/uapi/drm

[Intel-gfx] [RFC v2 05/22] drm/i915/xelpd: Define Degamma Lut range struct for HDR planes

2021-09-06 Thread Uma Shankar
Define the structure with XE_LPD degamma lut ranges. HDR and SDR planes have different capabilities, implemented respective structure for the HDR planes. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_color.c | 52 ++ 1 file changed, 52 insertions(+) diff

<    2   3   4   5   6   7   8   9   >