[Intel-gfx] [PATCH v2] drm:i915:display: add checks for Gen9 devices with hdr capability

2020-05-14 Thread Vipin Anand
this patch adds hdr capabilities checks for Gen9 devices with lspcon support. This patch is dependent on patch series https://patchwork.kernel.org/cover/11192807/ Signed-off-by: Vipin Anand --- drivers/gpu/drm/i915/display/intel_lspcon.c | 11 +-- 1 file changed, 9 insertions(+), 2

[Intel-gfx] [PATCH v4 1/1] drm:i915:display: add checks for Gen9 devices with hdr capability

2020-03-27 Thread Vipin Anand
this patch adds hdr capabilities checks for Gen9 devices with lspcon support. Signed-off-by: Vipin Anand --- drivers/gpu/drm/i915/display/intel_hdmi.c | 17 + drivers/gpu/drm/i915/display/intel_lspcon.c | 9 +++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff

[Intel-gfx] [PATCH v4 0/1] Enable HDR on Gen9 devices with lspcon hdr capability

2020-03-27 Thread Vipin Anand
Removing Uma's patches as it is already under review https://patchwork.freedesktop.org/series/68081/ Once that is merged this patch need to be reviewed. Vipin Anand (1): drm:i915:display: add checks for Gen9 devices with hdr capability drivers/gpu/drm/i915/display/intel_hdmi.c | 17

[Intel-gfx] [PATCH v3 7/7] drm:i915:display: add checks for Gen9 devices with hdr capability

2020-03-27 Thread Vipin Anand
this patch adds hdr capabilities checks for Gen9 devices with lspcon support. Signed-off-by: Vipin Anand --- drivers/gpu/drm/i915/display/intel_hdmi.c | 17 + drivers/gpu/drm/i915/display/intel_lspcon.c | 9 +++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff

[Intel-gfx] [PATCH v3 5/7] drm/i915/display: Enable BT2020 for HDR on LSPCON devices

2020-03-27 Thread Vipin Anand
Shankar Signed-off-by: Vipin Anand --- drivers/gpu/drm/i915/display/intel_lspcon.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_lspcon.c b/drivers/gpu/drm/i915/display/intel_lspcon.c index 4d8027493f2c..5cede4f07f22 100644

[Intel-gfx] [PATCH v3 0/7] Enable HDR on Gen9 devices with lspcon hdr capability

2020-03-27 Thread Vipin Anand
drm/i915/display: Enable BT2020 for HDR on LSPCON devices drm/i915/display: Reduce blanking to support 4k60@10bpp for LSPCON Vipin Anand (1): drm:i915:display: add checks for Gen9 devices with hdr capability drivers/gpu/drm/drm_atomic_state_helper.c | 1 + drivers/gpu/drm

[Intel-gfx] [PATCH v3 1/7] drm/i915/display: Add HDR Capability detection for LSPCON

2020-03-27 Thread Vipin Anand
. Signed-off-by: Uma Shankar Signed-off-by: Vipin Anand --- .../drm/i915/display/intel_display_types.h| 1 + drivers/gpu/drm/i915/display/intel_lspcon.c | 32 +++ 2 files changed, 33 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu

[Intel-gfx] [PATCH v3 3/7] drm/i915/display: Attach HDR property for capable Gen9 devices

2020-03-27 Thread Vipin Anand
From: Uma Shankar Attach HDR property for Gen9 devices with MCA LSPCON chips. Signed-off-by: Uma Shankar Signed-off-by: Vipin Anand --- drivers/gpu/drm/i915/display/intel_lspcon.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_lspcon.c b/drivers

[Intel-gfx] [PATCH v3 6/7] drm/i915/display: Reduce blanking to support 4k60@10bpp for LSPCON

2020-03-27 Thread Vipin Anand
porch and front porch within permissible limits. v2: This is marked as Not for merge and the responsibilty to program these custom timings will be on userspace. This patch is just for reference purposes. This is based on Ville's recommendation. Signed-off-by: Uma Shankar Signed-off-by: Vipin Anand

[Intel-gfx] [PATCH v3 2/7] drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon

2020-03-27 Thread Vipin Anand
Range and Mastering Infoframe (DRM packets) and send it to HDR capable HDMI sink devices. v2: Re-used hsw infoframe write implementation for HDR metadata for LSPCON as per Ville's suggestion. Signed-off-by: Uma Shankar Signed-off-by: Vipin Anand --- drivers/gpu/drm/i915/display/intel_hdmi.c

[Intel-gfx] [PATCH v3 4/7] drm/i915/display: Set HDR Infoframe for HDR capable LSPCON devices

2020-03-27 Thread Vipin Anand
From: Uma Shankar Send Dynamic Range and Mastering Infoframe (DRM for HDR metadata) as SDP packet to LSPCON following the DP spec. LSPCON receives the same and sends it to HDMI sink. v2: Suppressed some warnings. No functional change. Signed-off-by: Uma Shankar Signed-off-by: Vipin Anand

[Intel-gfx] [PATCH v2 4/7] drm/i915/display: Set HDR Infoframe for HDR capable LSPCON devices

2020-03-27 Thread Vipin Anand
From: Uma Shankar Send Dynamic Range and Mastering Infoframe (DRM for HDR metadata) as SDP packet to LSPCON following the DP spec. LSPCON receives the same and sends it to HDMI sink. v2: Suppressed some warnings. No functional change. Signed-off-by: Uma Shankar ---

[Intel-gfx] [PATCH v2 5/7] drm/i915/display: Enable BT2020 for HDR on LSPCON devices

2020-03-27 Thread Vipin Anand
From: Uma Shankar Enable Colorspace as BT2020 if driving HDR content.Sending Colorimetry data for HDR using AVI infoframe. LSPCON firmware expects this and though SOC drives DP, for HDMI panel AVI infoframe is sent to the LSPCON device which transfers the same to HDMI sink. Signed-off-by: Uma

[Intel-gfx] [PATCH v2 1/7] drm/i915/display: Add HDR Capability detection for LSPCON

2020-03-27 Thread Vipin Anand
From: Uma Shankar LSPCON firmware exposes HDR capability through LPCON_CAPABILITIES DPCD register. LSPCON implementations capable of supporting HDR set HDR_CAPABILITY bit in LSPCON_CAPABILITIES to 1. This patch reads the same, detects the HDR capability and adds this to intel_lspcon struct.

[Intel-gfx] [PATCH v2 3/7] drm/i915/display: Attach HDR property for capable Gen9 devices

2020-03-27 Thread Vipin Anand
From: Uma Shankar Attach HDR property for Gen9 devices with MCA LSPCON chips. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_lspcon.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_lspcon.c

[Intel-gfx] [PATCH v2 0/7] Enable HDR on Gen9 devices with lspcon hdr capability

2020-03-27 Thread Vipin Anand
/display: Enable BT2020 for HDR on LSPCON devices drm/i915/display: Reduce blanking to support 4k60@10bpp for LSPCON Vipin Anand (1): drm:i915:display: add checks for Gen9 devices with hdr capability drivers/gpu/drm/drm_atomic_state_helper.c | 1 + drivers/gpu/drm/drm_atomic_uapi.c

[Intel-gfx] [PATCH v2 2/7] drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon

2020-03-27 Thread Vipin Anand
From: Uma Shankar Gen9 hardware supports HDMI2.0 through LSPCON chips. Extending HDR support for MCA LSPCON based GEN9 devices. SOC will drive LSPCON as DP and send HDR metadata as standard DP SDP packets. LSPCON will be set to operate in PCON mode, will receive the metadata and create Dynamic

[Intel-gfx] [PATCH v2 6/7] drm/i915/display: Reduce blanking to support 4k60@10bpp for LSPCON

2020-03-27 Thread Vipin Anand
From: Uma Shankar Blanking needs to be reduced to incorporate DP and HDMI timing/link bandwidth limitations for CEA modes (4k@60 at 10 bpp). DP can drive 17.28Gbs while 4k modes (VIC97 etc) at 10 bpp required 17.8 Gbps. This will cause mode to blank out. Reduced Htotal by shortening the back

[Intel-gfx] [PATCH v2 7/7] drm:i915:display: add checks for Gen9 devices with hdr capability

2020-03-27 Thread Vipin Anand
this patch adds hdr capabilities checks for Gen9 devices with lspcon support. Signed-off-by: Vipin Anand --- drivers/gpu/drm/i915/display/intel_hdmi.c | 17 + drivers/gpu/drm/i915/display/intel_lspcon.c | 9 +++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff

[Intel-gfx] [PATCH 1/7] drm/i915/display: Add HDR Capability detection for LSPCON

2020-03-26 Thread Vipin Anand
From: Uma Shankar LSPCON firmware exposes HDR capability through LPCON_CAPABILITIES DPCD register. LSPCON implementations capable of supporting HDR set HDR_CAPABILITY bit in LSPCON_CAPABILITIES to 1. This patch reads the same, detects the HDR capability and adds this to intel_lspcon struct.

[Intel-gfx] [PATCH 7/7] drm:i915:display: add checks for Gen9 devices with hdr capability

2020-03-26 Thread Vipin Anand
this patch adds hdr capabilities checks for Gen9 devices with lspcon support. Signed-off-by: Vipin Anand --- drivers/gpu/drm/i915/display/intel_hdmi.c | 17 + drivers/gpu/drm/i915/display/intel_lspcon.c | 9 +++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff

[Intel-gfx] [PATCH 2/7] drm/i915/display: Enable HDR on gen9 devices with MCA Lspcon

2020-03-26 Thread Vipin Anand
From: Uma Shankar Gen9 hardware supports HDMI2.0 through LSPCON chips. Extending HDR support for MCA LSPCON based GEN9 devices. SOC will drive LSPCON as DP and send HDR metadata as standard DP SDP packets. LSPCON will be set to operate in PCON mode, will receive the metadata and create Dynamic

[Intel-gfx] [PATCH 4/7] drm/i915/display: Set HDR Infoframe for HDR capable LSPCON devices

2020-03-26 Thread Vipin Anand
From: Uma Shankar Send Dynamic Range and Mastering Infoframe (DRM for HDR metadata) as SDP packet to LSPCON following the DP spec. LSPCON receives the same and sends it to HDMI sink. v2: Suppressed some warnings. No functional change. Signed-off-by: Uma Shankar ---

[Intel-gfx] [PATCH 0/7] Enable HDR on Gen9 devices with lspcon hdr capability

2020-03-26 Thread Vipin Anand
4k60@10bpp for LSPCON Vipin Anand (1): drm:i915:display: add checks for Gen9 devices with hdr capability drivers/gpu/drm/drm_atomic_state_helper.c | 1 + drivers/gpu/drm/drm_atomic_uapi.c | 1 + .../drm/i915/display/intel_display_types.h| 1 + drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 6/7] drm/i915/display: Reduce blanking to support 4k60@10bpp for LSPCON

2020-03-26 Thread Vipin Anand
From: Uma Shankar Blanking needs to be reduced to incorporate DP and HDMI timing/link bandwidth limitations for CEA modes (4k@60 at 10 bpp). DP can drive 17.28Gbs while 4k modes (VIC97 etc) at 10 bpp required 17.8 Gbps. This will cause mode to blank out. Reduced Htotal by shortening the back

[Intel-gfx] [PATCH 5/7] drm/i915/display: Enable BT2020 for HDR on LSPCON devices

2020-03-26 Thread Vipin Anand
From: Uma Shankar Enable Colorspace as BT2020 if driving HDR content.Sending Colorimetry data for HDR using AVI infoframe. LSPCON firmware expects this and though SOC drives DP, for HDMI panel AVI infoframe is sent to the LSPCON device which transfers the same to HDMI sink. Signed-off-by: Uma

[Intel-gfx] [PATCH 3/7] drm/i915/display: Attach HDR property for capable Gen9 devices

2020-03-26 Thread Vipin Anand
From: Uma Shankar Attach HDR property for Gen9 devices with MCA LSPCON chips. Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_lspcon.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_lspcon.c

[Intel-gfx] [PATCH] drm:i915:display: add checks for Gen9 devices with hdr capability

2020-03-26 Thread Vipin Anand
this patch adds hdr capabilities checks for Gen9 devices with lspcon support. Signed-off-by: Vipin Anand --- drivers/gpu/drm/i915/display/intel_hdmi.c | 17 + drivers/gpu/drm/i915/display/intel_lspcon.c | 9 +++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff