Re: [Intel-gfx] [PATCH v3 3/4] drm/i915/hdcp: Fix modeset locking issue in hdcp mst

2023-05-15 Thread Nautiyal, Ankit K
On 5/15/2023 10:45 AM, Suraj Kandpal wrote: Since topology state is being added to drm_atomic_state now all drm_modeset_lock required are being taken from core. This raises an issue when we try to loop over connector and assign vcpi id to our streams as we did not have atomic state to derive

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915/hdcp: Fix modeset locking issue in hdcp mst

2023-05-12 Thread Nautiyal, Ankit K
On 5/11/2023 3:26 PM, Suraj Kandpal wrote: Since topology state is being added to drm_atomic_state now all drm_modeset_lock required are being taken from core this raises an issue when we try to loop over connector and assign vcpi id to our streams as we did not have atomic state to derive

Re: [Intel-gfx] [PATCH] drm/i915/hdcp: Check if media_gt exists

2023-05-03 Thread Nautiyal, Ankit K
On 5/3/2023 7:07 AM, Suraj Kandpal wrote: Check if media_gt exists if we are using gsc cs --v2 -correct typo [Ankit] -assign gsc variable if gt exists [Ankit] Cc: Ankit Nautiyal Signed-off-by: Suraj Kandpal Reviewed-by: Gustavo Sousa --- drivers/gpu/drm/i915/display/intel_hdcp.c | 8

Re: [Intel-gfx] [PATCH 04/13] drm/i915/dp: Update Bigjoiner interface bits for computing compressed bpp

2023-05-18 Thread Nautiyal, Ankit K
On 5/15/2023 7:21 PM, Ville Syrjälä wrote: On Fri, May 12, 2023 at 11:54:08AM +0530, Ankit Nautiyal wrote: In Bigjoiner check for DSC, bigjoiner interface bits for DP for DISPLAY > 13 is 36 (Bspec: 49259). v2: Corrected Display ver to 13. v3: Follow convention for conditional statement.

Re: [Intel-gfx] [PATCH 12/13] drm/i915/dp: Get optimal link config to have best compressed bpp

2023-05-18 Thread Nautiyal, Ankit K
Thanks Stan and Ville for the review comments. I agree can have some documentation about the values used, instead of magic numbers. Also, Ville's approach for dsc_{sink,source}_{min,max}_bpp() seems good, and that can be used as helpers in MST case too. Will add the changes in the next

Re: [Intel-gfx] [PATCH 05/13] drm/i915/intel_cdclk: Add vdsc with bigjoiner constraints on min_cdlck

2023-05-18 Thread Nautiyal, Ankit K
Thanks Ville and Stan for the comments. I agree with the changes in _plane_min_cdclk and intel_pixel_rate_to_cdclk regarding PPC. But I am a little confused for about the pixel clock. Please find my comments inline: On 5/16/2023 3:41 PM, Lisovskiy, Stanislav wrote: On Mon, May 15, 2023 at

Re: [Intel-gfx] [PATCH 0/6] Introduce sink_format and other fixes

2023-05-07 Thread Nautiyal, Ankit K
On 5/5/2023 9:55 PM, Ville Syrjälä wrote: On Thu, Apr 27, 2023 at 06:25:59PM +0530, Ankit Nautiyal wrote: This patch series is part of a previous series: https://patchwork.freedesktop.org/series/109470/ This adds new member sink_format to store the final format that the sink will be using,

Re: [PATCH 2/7] drm/i915/hdcp: HDCP Capability for the downstream device

2024-01-24 Thread Nautiyal, Ankit K
On 1/12/2024 1:11 PM, Suraj Kandpal wrote: Currently we are only checking capability of remote device and not immediate downstream device but during capability check we need are concerned with only the HDCP capability of downstream device. During i915_display_info reporting we need HDCP

Re: [PATCH 1/7] drm/i915/hdcp: Move to direct reads for HDCP

2024-01-24 Thread Nautiyal, Ankit K
On 1/12/2024 1:11 PM, Suraj Kandpal wrote: Even for MST scenarios we need to do direct reads only on the immediate downstream device the rest of the authentication is taken care by that device. Remote reads will only be used to check capability of the monitors in MST topology. I think it

Re: [PATCH 05/11] drm/i915/hdcp: Add new remote capability check shim function

2024-02-06 Thread Nautiyal, Ankit K
On 2/4/2024 7:54 PM, Suraj Kandpal wrote: Create a remote HDCP capability shim function which can read the remote monitor HDCP capability when in MST configuration. --v2 -Add an assertion to make sure only mst encoder call this remote_cap function [Ankit] Signed-off-by: Suraj Kandpal ---

Re: [PATCH 06/11] drm/i915/hdcp: HDCP Capability for the downstream device

2024-02-06 Thread Nautiyal, Ankit K
On 2/4/2024 7:55 PM, Suraj Kandpal wrote: Currently we are only checking capability of remote device and not immediate downstream device but during capability check we need are concerned with only the HDCP capability of downstream device. During i915_display_info reporting we need HDCP

Re: [PATCH 10/12] drm/i915/hdcp: Don't enable HDCP directly from check_link

2024-02-14 Thread Nautiyal, Ankit K
On 2/15/2024 10:35 AM, Suraj Kandpal wrote: Whenever LIC fails instead of moving from ENABLED to DESIRED CP property we directly enable HDCP without informing the userspace of this failure in link integrity check. Now we will just update the value to DESIRED send the event to userspace and

Re: [PATCH 11/12] drm/i915/hdcp: Allocate stream id after HDCP AKE stage

2024-02-15 Thread Nautiyal, Ankit K
On 2/15/2024 10:35 AM, Suraj Kandpal wrote: Allocate stream id after HDCP AKE stage and not before so that it can also be done during link integrity check. Right now for MST scenarios LIC fails after hdcp enablement for this reason. Signed-off-by: Suraj Kandpal ---

Re: [PATCH 3/4] drm/i915/dp: Add Read/Write support for Adaptive Sync SDP

2024-02-13 Thread Nautiyal, Ankit K
On 2/12/2024 11:06 PM, Mitul Golani wrote: Add the necessary structures and functions to handle reading and unpacking Adaptive Sync Secondary Data Packets. Also add support to write and pack AS SDP. --v2: - Correct use of REG_BIT and REG_GENMASK. [Jani] - Use as_sdp instead of async. [Jani] -

Re: [PATCH] drm/i915/dp: Fix connector DSC HW state readout

2024-02-12 Thread Nautiyal, Ankit K
On 2/5/2024 6:56 PM, Imre Deak wrote: The DSC HW state of DP connectors is read out during driver loading and system resume in intel_modeset_update_connector_atomic_state(). This function is called for all connectors though and so the state of DSI connectors will also get updated incorrectly,

Re: [PATCH 4/4] drm/i915/display: Compute and Enable AS SDP

2024-02-12 Thread Nautiyal, Ankit K
On 2/12/2024 11:06 PM, Mitul Golani wrote: Add necessary functions definitions to enable and compute AS SDP data. The new `intel_dp_compute_as_sdp` function computes AS SDP values based on the display configuration, ensuring proper handling of Variable Refresh Rate (VRR). --v2: - Add

Re: [PATCH 1/4] drm/i915/display: Compute TRANS_VRR_VSYNC

2024-02-12 Thread Nautiyal, Ankit K
On 2/12/2024 11:06 PM, Mitul Golani wrote: Compute TRANS_VRR_VSYNC which sets the position for hardware to send the Vsync at a fixed position relative to the end of the Vblank. --- drivers/gpu/drm/i915/display/intel_display_types.h | 1 + drivers/gpu/drm/i915/display/intel_vrr.c |

Re: [PATCH 2/4] drm: Add Adaptive Sync SDP logging

2024-02-12 Thread Nautiyal, Ankit K
Needs to be sent to dri-devel as well. Regards, Ankit On 2/12/2024 11:06 PM, Mitul Golani wrote: Add structure representing Adaptive Sync Secondary Data Packet (AS SDP). Also, add Adaptive Sync SDP logging in drm_dp_helper.c to facilitate debugging. --v2: - Update logging. [Jani, Ankit] -

Re: [PATCH 5/6] drm/i915/display: Compute vrr_vsync params

2024-02-19 Thread Nautiyal, Ankit K
On 2/16/2024 7:50 PM, Mitul Golani wrote: Compute vrr_vsync_start/end which sets the position for hardware to send the Vsync at a fixed position relative to the end of the Vblank. --v2: - Update, VSYNC_START/END macros to VRR_VSYNC_START/END.(Ankit) - Update bit fields of

Re: [PATCH 3/6] drm/i915/dp: Add Read/Write support for Adaptive Sync SDP

2024-02-19 Thread Nautiyal, Ankit K
On 2/16/2024 7:50 PM, Mitul Golani wrote: Add the necessary structures and functions to handle reading and unpacking Adaptive Sync Secondary Data Packets. Also add support to write and pack AS SDP. --v2: - Correct use of REG_BIT and REG_GENMASK. [Jani] - Use as_sdp instead of async. [Jani] -

Re: [PATCH 6/6] drm/i915/display: Read/Write AS sdp only when sink/source has enabled

2024-02-19 Thread Nautiyal, Ankit K
On 2/16/2024 7:50 PM, Mitul Golani wrote: Write/Read Adaptive sync SDP only when Sink and Source is enabled for the same. Also along with write TRANS_VRR_VSYNC values. Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_ddi.c | 4

Re: [PATCH 4/6] drm/i915/display: Compute and Enable AS SDP

2024-02-19 Thread Nautiyal, Ankit K
On 2/16/2024 7:50 PM, Mitul Golani wrote: Add necessary functions definitions to enable and compute AS SDP data. The new `intel_dp_compute_as_sdp` function computes AS SDP values based on the display configuration, ensuring proper handling of Variable Refresh Rate (VRR). --v2: - Add

Re: [PATCH 3/6] drm/i915/dp: Add Read/Write support for Adaptive Sync SDP

2024-02-19 Thread Nautiyal, Ankit K
On 2/16/2024 7:50 PM, Mitul Golani wrote: Add the necessary structures and functions to handle reading and unpacking Adaptive Sync Secondary Data Packets. Also add support to write and pack AS SDP. --v2: - Correct use of REG_BIT and REG_GENMASK. [Jani] - Use as_sdp instead of async. [Jani] -

Re: [PATCH 2/6] drm: Add Adaptive Sync SDP logging

2024-02-19 Thread Nautiyal, Ankit K
On 2/16/2024 7:50 PM, Mitul Golani wrote: Add structure representing Adaptive Sync Secondary Data Packet (AS SDP). Also, add Adaptive Sync SDP logging in drm_dp_helper.c to facilitate debugging. --v2: - Update logging. [Jani, Ankit] - use as_sdp instead of async [Ankit] - Correct define

Re: [PATCH 05/13] drm/i915/hdcp: Rename hdcp capable functions

2024-02-19 Thread Nautiyal, Ankit K
On 2/15/2024 4:29 PM, Suraj Kandpal wrote: Rename hdcp_capable and hdcp_2_2_capable to hdcp_get_capability and hdcp_2_2_get_capability to properly reflect what these functions are doing. Signed-off-by: Suraj Kandpal LGTM. Reviewed-by: Ankit Nautiyal ---

Re: [PATCH 10/13] drm/i915/hdcp: Don't enable HDCP2.2 directly from check_link

2024-02-15 Thread Nautiyal, Ankit K
On 2/15/2024 4:29 PM, Suraj Kandpal wrote: Whenever LIC fails instead of moving from ENABLED to DESIRED CP property we directly enable HDCP2.2 without informing the userspace of this failure in link integrity check. Now we will just update the value to DESIRED send the event to userspace and

Re: [PATCH 11/13] drm/i915/hdcp: Don't enable HDCP1.4 directly from check_link

2024-02-15 Thread Nautiyal, Ankit K
On 2/15/2024 4:29 PM, Suraj Kandpal wrote: Whenever LIC fails instead of moving from ENABLED to DESIRED CP property we directly enable HDCP1.4 without informing the userspace of this failure in link integrity check. Now we will just update the value to DESIRED send the event to userspace and

Re: [PATCH 12/13] drm/i915/hdcp: Allocate stream id after HDCP AKE stage

2024-02-15 Thread Nautiyal, Ankit K
On 2/15/2024 4:29 PM, Suraj Kandpal wrote: Allocate stream id after HDCP AKE stage and not before so that it can also be done during link integrity check. Right now for MST scenarios LIC fails after hdcp enablement for this reason. --v2 -no need for else block in prepare_streams function

Re: [PATCH] drm/i915/display: Get bigjoiner config before dsc config during readout

2023-12-13 Thread Nautiyal, Ankit K
On 11/23/2023 11:57 AM, Kandpal, Suraj wrote: -Original Message- From: Nautiyal, Ankit K Sent: Wednesday, November 22, 2023 12:16 PM To: intel-gfx@lists.freedesktop.org Cc: Kandpal, Suraj ; Manna, Animesh ; jani.nik...@linux.intel.com; Nautiyal, Ankit K Subject: [PATCH] drm/i915

Re: [PATCH] drm/i915/hdcp: Fail Repeater authentication if Type1 device not present

2023-12-21 Thread Nautiyal, Ankit K
Reviewed-by: Ankit Nautiyal On 12/15/2023 10:39 AM, Suraj Kandpal wrote: Fail repeater authentication step in case RX_INFO indicates HDCP1.x or HDCP2.0/2.1 device is present downstream in repeater topology and content type set by userspace is Type1. --v2 -Fix build error. --v3 -remove mst

Re: [PATCH] drm/i915/dp: Update dfp caps only if its a branch device

2023-12-11 Thread Nautiyal, Ankit K
On 12/11/2023 2:24 PM, Jani Nikula wrote: On Mon, 11 Dec 2023, Ankit Nautiyal wrote: Avoid checking for Downstream Facing Port capabilities, if its not a DP branch device. Why? The commit message *always* needs to answer the question why. This commit message describes what the patch does

Re: [PATCH] drm/i915/display/dp: 128/132b DP-capable with SST

2024-01-08 Thread Nautiyal, Ankit K
On 1/3/2024 2:37 PM, Arun R Murthy wrote: With a value of '0' read from MSTM_CAP register MST to be enabled. DP2.1 SCR updates the spec for 128/132b DP capable supporting only one stream and not supporting single stream sideband MSG. I think, we still need to read bit

Re: [Intel-gfx] [PATCH 1/3] drm: Add Adaptive Sync SDP logging

2023-11-23 Thread Nautiyal, Ankit K
On 11/23/2023 7:32 PM, Mitul Golani wrote: Add structure representing Adaptive Sync Secondary Data Packet (AS SDP). Also, add Adaptive Sync SDP logging in drm_dp_helper.c to facilitate debugging. Signed-off-by: Mitul Golani --- drivers/gpu/drm/display/drm_dp_helper.c | 15 +

Re: [PATCH] drm/i915/hdcp: Fail Repeater authentication if Type1 device not present

2023-12-07 Thread Nautiyal, Ankit K
LGTM. Reviewed-by: Ankit Nautiyal Regards, Ankit On 12/7/2023 11:05 AM, Suraj Kandpal wrote: Fail repeater authentication step in case RX_INFO indicates HDCP1.x or HDCP2.0/2.1 device is present downstream in repeater topology and content type set by userspace is Type1. --v2 -Fix build

Re: [Intel-gfx] [PATCH 3/4] drm/i915/dp_mst: Use helpers to get dsc min/max input bpc

2023-11-26 Thread Nautiyal, Ankit K
On 11/24/2023 6:46 PM, Jani Nikula wrote: On Thu, 23 Nov 2023, Ankit Nautiyal wrote: Use helpers for source min/max input bpc with DSC. Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_dp.c | 2 --

Re: [Intel-gfx] [PATCH 2/3] drm/i915/display/: Add Read/Write support for Adaptive Sync SDP

2023-11-27 Thread Nautiyal, Ankit K
On 11/23/2023 7:32 PM, Mitul Golani wrote: Add the necessary structures and functions to handle reading and unpacking Adaptive Sync Secondary Data Packets. Also add support to write and pack AS SDP. Signed-off-by: Mitul Golani --- .../drm/i915/display/intel_display_types.h| 1 +

Re: [Intel-gfx] [PATCH 3/3] drm/i915/display/:Compute and enable daptive Sync SDP

2023-11-27 Thread Nautiyal, Ankit K
Typo in the Subject: s/daptive/adaptive/ On 11/23/2023 7:32 PM, Mitul Golani wrote: Add necessary functions and register definitions to enable and compute AS SDP data. The new `intel_dp_compute_as_sdp` function computes AS SDP values based on the display configuration, ensuring proper handling

Re: [Intel-gfx] [PATCH 3/4] drm/i915/dp_mst: Use helpers to get dsc min/max input bpc

2023-11-27 Thread Nautiyal, Ankit K
On 11/27/2023 3:07 PM, Jani Nikula wrote: On Mon, 27 Nov 2023, Ankit Nautiyal wrote: Use helpers for source min/max input bpc with DSC. While at it, make them return int instead of u8. v2: Make the helpers return int instead of u8. (Jani) Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj

Re: [PATCH 04/10] drm/i915/hdcp: Pass drm_dp_aux to read_bcaps function

2024-02-01 Thread Nautiyal, Ankit K
LGTM. Reviewed-by: Ankit Nautiyal On 2/1/2024 1:09 AM, Suraj Kandpal wrote: Pass drm_dp_aux to intel_dp_hdcp_read_bcaps function so as to aid in reading the bcaps for the remote monitor later on. Signed-off-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 12

Re: [PATCH 09/10] drm/i915/hdcp: Allocate stream id after HDCP AKE stage

2024-02-01 Thread Nautiyal, Ankit K
On 2/1/2024 1:09 AM, Suraj Kandpal wrote: Allocate stream id after HDCP AKE stage and not before so that it can also be done during link integrity check. Right now for MST scenarios LIC fails after hdcp enablement for this reason. Signed-off-by: Suraj Kandpal ---

Re: [PATCH 02/10] drm/i915/hdcp: Move source hdcp2 checks into its own function

2024-02-01 Thread Nautiyal, Ankit K
LGTM. Reviewed-by: Ankit Nautiyal On 2/1/2024 1:09 AM, Suraj Kandpal wrote: Move checks on the source side for HDCP2.2 into its own function so that they can be used in the HDCP remote capability check function. Signed-off-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_hdcp.c |

Re: [PATCH 08/10] drm/i915/hdcp: Extract hdcp structure from correct connector

2024-02-01 Thread Nautiyal, Ankit K
LGTM. Reviewed-by: Ankit Nautiyal On 2/1/2024 1:09 AM, Suraj Kandpal wrote: Currently intel_hdcp is not being extracted from primary connector this patch fixes that. Fixes: 524240b231ea ("drm/i915/hdcp: Propagate aux info in DP HDCP functions") Signed-off-by: Suraj Kandpal ---

Re: [PATCH 03/10] drm/i915/hdcp: Refactor intel_dp_hdcp2_capable

2024-02-01 Thread Nautiyal, Ankit K
LGTM. Reviewed-by: Ankit Nautiyal On 2/1/2024 1:09 AM, Suraj Kandpal wrote: Break intel_dp_hdcp2_capable so that the common the code can be reused for the remote capability check. Signed-off-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 14 -- 1 file

Re: [PATCH 03/10] drm/i915/hdcp: Refactor intel_dp_hdcp2_capable

2024-02-01 Thread Nautiyal, Ankit K
LGTM Reviewed-by: Ankit Nautiyal On 2/1/2024 1:09 AM, Suraj Kandpal wrote: Break intel_dp_hdcp2_capable so that the common the code can be reused for the remote capability check. Signed-off-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_dp_hdcp.c | 14 -- 1 file

Re: [PATCH 06/11] drm/i915/hdcp: HDCP Capability for the downstream device

2024-02-02 Thread Nautiyal, Ankit K
On 2/2/2024 12:08 PM, Suraj Kandpal wrote: Currently we are only checking capability of remote device and not immediate downstream device but during capability check we need are concerned with only the HDCP capability of downstream device. During i915_display_info reporting we need HDCP

Re: [PATCH 05/11] drm/i915/hdcp: Add new remote capability check shim function

2024-02-02 Thread Nautiyal, Ankit K
On 2/2/2024 12:08 PM, Suraj Kandpal wrote: Create a remote HDCP capability shim function which can read the remote monitor HDCP capability when in MST configuration. Signed-off-by: Suraj Kandpal --- .../drm/i915/display/intel_display_types.h| 4

Re: [PATCH 2/7] drm/i915/hdcp: HDCP Capability for the downstream device

2024-01-30 Thread Nautiyal, Ankit K
On 1/27/2024 12:14 PM, Kandpal, Suraj wrote: = On 1/24/2024 6:50 PM, Nautiyal, Ankit K wrote: On 1/12/2024 1:11 PM, Suraj Kandpal wrote: Currently we are only checking capability of remote device and not immediate downstream device but during capability check we need are concerned with only

Re: [PATCH 1/6] drm/i915/hdcp: Move to direct reads for HDCP

2024-01-30 Thread Nautiyal, Ankit K
LGTM. Reviewed-by: Ankit Nautiyal On 1/27/2024 12:46 PM, Suraj Kandpal wrote: Even for MST scenarios we need to do direct reads only on the immediate downstream device the rest of the authentication is taken care by that device. Remote reads will only be used to check capability of the

Re: [PATCH 3/7] drm/i915/hdcp: Remove additional timing for reading mst hdcp message

2024-01-30 Thread Nautiyal, Ankit K
On 1/12/2024 1:11 PM, Suraj Kandpal wrote: Now that we have moved back to direct reads the additional timing is not required hence this can be removed. Signed-off-by: Suraj Kandpal Add fixes tag. With that this is, Reviewed-by: Ankit Nautiyal ---

Re: [PATCH 3/6] drm/i915/adlp: Add DP MST DPT/DPTP alignment WA (Wa_14014143976)

2024-01-30 Thread Nautiyal, Ankit K
On 1/29/2024 11:25 PM, Imre Deak wrote: Add a workaround to fix BS-BS jitter issues on MST links, aligning DPT/DPTP MTPs. Bspec: 50050, 55424 Signed-off-by: Imre Deak LGTM. As an aside, with these WAs do we also need to re-visit the transcoder Data M and N values. There is a note too

Re: [PATCH 6/6] drm/i915/mtl: Add DP FEC BS jitter WA

2024-01-30 Thread Nautiyal, Ankit K
On 1/29/2024 11:25 PM, Imre Deak wrote: Add a workaround to fix BS (blank start) to BS jitter fixes on non-UHBR MST/FEC and UHBR links. Bspec doesn't provide an actual WA ID for this. Bspec: 65448, 50054 Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/display/intel_display.c | 3 +++

Re: [PATCH 2/6] drm/i915/adlp: Add MST short HBlank WA (Wa_14014143976)

2024-01-30 Thread Nautiyal, Ankit K
On 1/29/2024 11:25 PM, Imre Deak wrote: Add a workaround to fix BS jitter issues on MST links if the HBLANK period is less than 1 MTP. The WA applies only to UHBR rates while on non-UHBR the specification requires disabling it explicitly - presumedly because the register's reset value has the

Re: [PATCH 1/6] drm/i915/adlp: Add MST FEC BS jitter WA (Wa_14013163432)

2024-01-30 Thread Nautiyal, Ankit K
On 1/30/2024 7:35 PM, Imre Deak wrote: On Tue, Jan 30, 2024 at 07:18:25PM +0530, Nautiyal, Ankit K wrote: On 1/29/2024 11:25 PM, Imre Deak wrote: Add a workaround to fix BS (blank start) to BS jitter issues on MST links when FEC is enabled. Neither Bspec requires this nor Windows clears

Re: [PATCH 4/6] drm/i915/adlp+: Add DSC early pixel count scaling WA (Wa_1409098942)

2024-01-30 Thread Nautiyal, Ankit K
On 1/29/2024 11:25 PM, Imre Deak wrote: Add a workaround to fix timing issues on links with DSC enabled - presumedly related to the audio functionality. Bspec requires enabling this workaround if audio is enabled on ADLP, however Windows enables it whenever DSC is enabled ADLP onwards; follow

Re: [PATCH 5/6] drm/i915/mtl+: Disable DP/DSC SF insertion at EOL WA

2024-01-30 Thread Nautiyal, Ankit K
LGTM. Reviewed-by: Ankit Nautiyal On 1/29/2024 11:25 PM, Imre Deak wrote: Disable the workaround inserting an SF symbol between the last DSC EOC symbol and the subsequent BS symbol. The WA is enabled by default - based on the register's reset value - and Bspec requires disabling it

Re: [PATCH 3/6] drm/i915/hdcp: Remove additional timing for reading mst hdcp message

2024-01-30 Thread Nautiyal, Ankit K
On 1/27/2024 12:46 PM, Suraj Kandpal wrote: Now that we have moved back to direct reads the additional timing is not required hence this can be removed. Signed-off-by: Suraj Kandpal Add fixes tag. With that, this is: Reviewed-by: Ankit Nautiyal ---

Re: [PATCH 2/7] drm/i915/hdcp: HDCP Capability for the downstream device

2024-01-24 Thread Nautiyal, Ankit K
On 1/24/2024 6:50 PM, Nautiyal, Ankit K wrote: On 1/12/2024 1:11 PM, Suraj Kandpal wrote: Currently we are only checking capability of remote device and not immediate downstream device but during capability check we need are concerned with only the HDCP capability of downstream device

Re: [PATCH 1/6] drm/i915/adlp: Add MST FEC BS jitter WA (Wa_14013163432)

2024-01-30 Thread Nautiyal, Ankit K
On 1/29/2024 11:25 PM, Imre Deak wrote: Add a workaround to fix BS (blank start) to BS jitter issues on MST links when FEC is enabled. Neither Bspec requires this nor Windows clears the WA when disabling the output - presumedly because CHICKEN_MISC_3 gets reset after disabling the

Re: [PATCH 6/6] drm/i915/hdcp: Read Rxcaps for robustibility

2024-01-30 Thread Nautiyal, Ankit K
On 1/27/2024 12:46 PM, Suraj Kandpal wrote: We see some monitors and docks report incorrect hdcp version and capability in first few reads so we read rx_caps three times before we conclude the monitor's or docks HDCP capability Signed-off-by: Suraj Kandpal ---

Re: [Intel-gfx] [PATCH 4/4] drm/i915/dp: Ignore max_requested_bpc if its too low for DSC

2023-11-15 Thread Nautiyal, Ankit K
On 11/9/2023 12:19 PM, Kandpal, Suraj wrote: -Original Message- From: Intel-gfx On Behalf Of Ankit Nautiyal Sent: Tuesday, November 7, 2023 9:48 AM To: intel-gfx@lists.freedesktop.org Cc: Nikula, Jani Subject: [Intel-gfx] [PATCH 4/4] drm/i915/dp: Ignore max_requested_bpc if its too

Re: [Intel-gfx] [PATCH 00/11] Add DSC fractional bpp support

2023-11-14 Thread Nautiyal, Ankit K
On 11/10/2023 3:40 PM, Ankit Nautiyal wrote: This patch series adds support for DSC fractional compressed bpp for MTL+. The series starts with some fixes, followed by patches that lay groundwork to iterate over valid compressed bpps to select the 'best' compressed bpp with optimal link

Re: [Intel-gfx] [PATCH] drm/i915: Fix fractional bpp handling in intel_link_bw_reduce_bpp()

2023-11-14 Thread Nautiyal, Ankit K
On 11/14/2023 7:40 PM, Imre Deak wrote: Convert crtc_state->pipe_bpp to U6.4 format as expected by the rest of the function. Fixes: 59a266f068b4 ("drm/i915/display: Store compressed bpp in U6.4 format") Cc: Ankit Nautiyal Cc: Suraj Kandpal Cc: Sui Jingfeng Signed-off-by: Imre Deak ---

Re: [PATCH] drm/i915/display/debugfs: New entry "DRRS capable" to i915_drrs_status

2024-02-26 Thread Nautiyal, Ankit K
On 2/26/2024 7:50 PM, Jani Nikula wrote: On Mon, 26 Feb 2024, "Nautiyal, Ankit K" wrote: On 2/22/2024 11:27 AM, Golani, Mitulkumar Ajitkumar wrote: -Original Message- From: Intel-gfx On Behalf Of Bhanuprakash Modem Sent: Wednesday, February 21, 2024 4:42 PM To:

Re: [PATCH] drm/i915/display/debugfs: New entry "DRRS capable" to i915_drrs_status

2024-02-25 Thread Nautiyal, Ankit K
On 2/22/2024 11:27 AM, Golani, Mitulkumar Ajitkumar wrote: -Original Message- From: Intel-gfx On Behalf Of Bhanuprakash Modem Sent: Wednesday, February 21, 2024 4:42 PM To: intel-gfx@lists.freedesktop.org Cc: Modem, Bhanuprakash Subject: [PATCH] drm/i915/display/debugfs: New entry

Re: [PATCH 06/13] drm/i915/hdcp: Add new remote capability check shim function

2024-02-25 Thread Nautiyal, Ankit K
On 2/26/2024 10:40 AM, Suraj Kandpal wrote: Create a remote HDCP capability shim function which can read the remote monitor HDCP capability when in MST configuration. --v2 -Add an assertion to make sure only mst encoder call this remote_cap function [Ankit] --v3 -rename remote_hdcp_cap to

Re: [PATCH 06/13] drm/i915/hdcp: Add new remote capability check shim function

2024-02-25 Thread Nautiyal, Ankit K
On 2/26/2024 10:40 AM, Suraj Kandpal wrote: Create a remote HDCP capability shim function which can read the remote monitor HDCP capability when in MST configuration. --v2 -Add an assertion to make sure only mst encoder call this remote_cap function [Ankit] --v3 -rename remote_hdcp_cap to

Re: [PATCH v14 6/9] drm/i915/display: Compute AS SDP parameters

2024-03-01 Thread Nautiyal, Ankit K
On 2/29/2024 10:09 PM, Mitul Golani wrote: Add necessary function definitions to compute AS SDP data. The new intel_dp_compute_as_sdp function computes AS SDP values based on the display configuration, ensuring proper handling of Variable Refresh Rate (VRR). --v2: - Added DP_SDP_ADAPTIVE_SYNC

Re: [PATCH v14 4/9] drm/i915/dp: Add Read/Write support for Adaptive Sync SDP

2024-02-29 Thread Nautiyal, Ankit K
On 2/29/2024 10:09 PM, Mitul Golani wrote: Add the necessary structures and functions to handle reading and unpacking Adaptive Sync Secondary Data Packets. Also add support to write and pack AS SDP. --v2: - Correct use of REG_BIT and REG_GENMASK. [Jani] - Use as_sdp instead of async. [Jani] -

Re: [PATCH v15 1/9] drm/dp: Add support to indicate if sink supports AS SDP

2024-03-04 Thread Nautiyal, Ankit K
On 3/1/2024 2:14 PM, Mitul Golani wrote: Add an API that indicates support for Adaptive Sync SDP in the sink, which can be utilized by the rest of the DP programming. --v1: - Format commit message properly. Signed-off-by: Mitul Golani LGTM. Reviewed-by: Ankit Nautiyal ---

Re: [PATCH v15 2/9] drm: Add Adaptive Sync SDP logging

2024-03-04 Thread Nautiyal, Ankit K
On 3/1/2024 2:14 PM, Mitul Golani wrote: Add structure representing Adaptive Sync Secondary Data Packet (AS SDP). Also, add Adaptive Sync SDP logging in drm_dp_helper.c to facilitate debugging. --v2: - Update logging. [Jani, Ankit] - Use 'as_sdp' instead of 'async' [Ankit] - Correct define

Re: [PATCH v15 5/9] drm/i915/dp: Add wrapper function to check AS SDP

2024-03-04 Thread Nautiyal, Ankit K
On 3/1/2024 2:14 PM, Mitul Golani wrote: Add a wrapper function to check if both the source and sink support Adaptive Sync SDP. --v1: Just use drm/i915/dp in subject line. Signed-off-by: Mitul Golani LGTM. Reviewed-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 8

Re: [PATCH v15 3/9] drm: Add crtc state dump for Adaptive Sync SDP

2024-03-04 Thread Nautiyal, Ankit K
Add drm/i915/display in subject line. With that fixed this is: Reviewed-by: Ankit Nautiyal On 3/1/2024 2:14 PM, Mitul Golani wrote: Add crtc state dump for Adaptive Sync SDP to know which crtc specifically caused the failure. Signed-off-by: Mitul Golani ---

Re: [PATCH v15 4/9] drm/i915/dp: Add Read/Write support for Adaptive Sync SDP

2024-03-04 Thread Nautiyal, Ankit K
On 3/1/2024 2:14 PM, Mitul Golani wrote: Add the necessary structures and functions to handle reading and unpacking Adaptive Sync Secondary Data Packets. Also add support to write and pack AS SDP. --v2: - Correct use of REG_BIT and REG_GENMASK. [Jani] - Use as_sdp instead of async. [Jani] -

Re: [PATCH v15 6/9] drm/i915/display: Compute AS SDP parameters

2024-03-04 Thread Nautiyal, Ankit K
On 3/1/2024 2:15 PM, Mitul Golani wrote: Add necessary function definitions to compute AS SDP data. The new intel_dp_compute_as_sdp function computes AS SDP values based on the display configuration, ensuring proper handling of Variable Refresh Rate (VRR). --v2: - Added DP_SDP_ADAPTIVE_SYNC

Re: [PATCH v15 7/9] drm/i915/display: Add state checker for Adaptive Sync SDP

2024-03-04 Thread Nautiyal, Ankit K
On 3/1/2024 2:15 PM, Mitul Golani wrote: Enable infoframe and add state checker for Adaptive Sync SDP enablement. --v1: - crtc_state->infoframes.enable, to add on correct place holder. Signed-off-by: Mitul Golani LGTM. Reviewed-by: Ankit Nautiyal ---

Re: [PATCH v15 8/9] drm/i915/display: Compute vrr_vsync params

2024-03-04 Thread Nautiyal, Ankit K
On 3/1/2024 2:15 PM, Mitul Golani wrote: Compute vrr_vsync_start/end, which sets the position for hardware to send the Vsync at a fixed position relative to the end of the Vblank. --v2: - Updated VSYNC_START/END macros to VRR_VSYNC_START/END. (Ankit) - Updated bit fields of

Re: [PATCH v15 9/9] drm/i915/display: Read/Write AS sdp only when sink/source has enabled

2024-03-04 Thread Nautiyal, Ankit K
On 3/1/2024 2:15 PM, Mitul Golani wrote: Write/Read Adaptive sync SDP only when Sink and Source is enabled for the same. Also along with write TRANS_VRR_VSYNC values. The subject line and commit message need to be updated. Now we are just enabling Adaptive sync SDP. Regards, Ankit

Re: [PATCH v12 6/8] drm/i915/display: Add state checker for Adaptive Sync SDP

2024-02-29 Thread Nautiyal, Ankit K
On 2/28/2024 8:08 PM, Mitul Golani wrote: Enable infoframe and add state checker for Adaptive Sync SDP enablement. Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_display.c | 46 drivers/gpu/drm/i915/display/intel_dp.c | 2 + 2 files changed,

Re: [PATCH v12 2/8] drm: Add Adaptive Sync SDP logging

2024-02-29 Thread Nautiyal, Ankit K
On 2/29/2024 4:53 PM, Jani Nikula wrote: On Thu, 29 Feb 2024, "Nautiyal, Ankit K" wrote: On 2/28/2024 8:08 PM, Mitul Golani wrote: +enum operation_mode { + DP_AS_SDP_AVT_DYNAMIC_VTOTAL = 0x00, + DP_AS_SDP_AVT_FIXED_VTOTAL = 0x01, + DP_AS_SDP_FAVT_TRR_NOT_REAC

Re: [PATCH v12 5/8] drm/i915/display: Compute AS SDP parameters.

2024-02-29 Thread Nautiyal, Ankit K
On 2/28/2024 8:08 PM, Mitul Golani wrote: Add necessary function definitions to compute AS SDP data. The new intel_dp_compute_as_sdp function computes AS SDP values based on the display configuration, ensuring proper handling of Variable Refresh Rate (VRR). --v2: - Added DP_SDP_ADAPTIVE_SYNC

Re: [PATCH v12 3/8] drm/i915/dp: Add Read/Write support for Adaptive Sync SDP

2024-02-29 Thread Nautiyal, Ankit K
On 2/28/2024 8:08 PM, Mitul Golani wrote: Add the necessary structures and functions to handle reading and unpacking Adaptive Sync Secondary Data Packets. Also add support to write and pack AS SDP. --v2: - Correct use of REG_BIT and REG_GENMASK. [Jani] - Use as_sdp instead of async. [Jani] -

Re: [PATCH v12 2/8] drm: Add Adaptive Sync SDP logging

2024-02-29 Thread Nautiyal, Ankit K
On 2/28/2024 8:08 PM, Mitul Golani wrote: Add structure representing Adaptive Sync Secondary Data Packet (AS SDP). Also, add Adaptive Sync SDP logging in drm_dp_helper.c to facilitate debugging. --v2: - Update logging. [Jani, Ankit] - Use 'as_sdp' instead of 'async' [Ankit] - Correct define

Re: [PATCH v12 4/8] drm/i915/display/dp: Add wrapper function to check AS SDP

2024-02-29 Thread Nautiyal, Ankit K
On 2/28/2024 8:08 PM, Mitul Golani wrote: Add a wrapper function to check if both the source and sink support Adaptive Sync SDP. Signed-off-by: Mitul Golani Just use drm/i915/dp in subject line Otherwise LGTM. Reviewed-by: Ankit Nautiyal ---

Re: [PATCH v12 1/8] drm/dp: Add support to indicate if sink supports AS SDP

2024-02-29 Thread Nautiyal, Ankit K
On 2/28/2024 8:08 PM, Mitul Golani wrote: Add an API that indicates support for Adaptive Sync SDP in the sink, which can be utilized by the rest of the DP programming. --v1: - Format commit message properly. Signed-off-by: Mitul Golani LGTM. Reviewed-by: Ankit Nautiyal ---

Re: [PATCH 4/6] drm/i915/display: Compute AS SDP parameters.

2024-02-26 Thread Nautiyal, Ankit K
On 2/22/2024 5:42 PM, Mitul Golani wrote: Add necessary functions definitions to enable and compute AS SDP data. The new `intel_dp_compute_as_sdp` function computes AS SDP values based on the display configuration, ensuring proper handling of Variable Refresh Rate (VRR). --v2: - Add

Re: [PATCH 5/6] drm/i915/display: Compute vrr_vsync params

2024-02-26 Thread Nautiyal, Ankit K
On 2/22/2024 5:42 PM, Mitul Golani wrote: Compute vrr_vsync_start/end which sets the position for hardware to send the Vsync at a fixed position relative to the end of the Vblank. --v2: - Update, VSYNC_START/END macros to VRR_VSYNC_START/END.(Ankit) - Update bit fields of

Re: [PATCH 3/6] drm/i915/dp: Add Read/Write support for Adaptive Sync SDP

2024-02-26 Thread Nautiyal, Ankit K
On 2/22/2024 5:42 PM, Mitul Golani wrote: Add the necessary structures and functions to handle reading and unpacking Adaptive Sync Secondary Data Packets. Also add support to write and pack AS SDP. --v2: - Correct use of REG_BIT and REG_GENMASK. [Jani] - Use as_sdp instead of async. [Jani] -

Re: [PATCH] drm/i915/scaler: Update Pipe src size check for DISPLAY_VER >= 12

2024-03-06 Thread Nautiyal, Ankit K
On 3/5/2024 8:56 PM, Ville Syrjälä wrote: On Mon, Feb 19, 2024 at 11:22:55AM +0530, Ankit Nautiyal wrote: For Earlier platforms, the Pipe source size is 12-bits so max pipe source width and height is 4096. For newer platforms it is 13-bits so theoretically max height is 8192, but maximum

Re: [PATCH v16 9/9] drm/i915/display: Read/Write Adaptive Sync SDP

2024-03-07 Thread Nautiyal, Ankit K
On 3/7/2024 11:23 AM, Mitul Golani wrote: Add read/write calls for Adaptive Sync SDP. Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_ddi.c | 1 + drivers/gpu/drm/i915/display/intel_dp.c | 1 + 2 files changed, 2 insertions(+) diff --git

Re: [PATCH v16 4/9] drm/i915/dp: Add Read/Write support for Adaptive Sync SDP

2024-03-07 Thread Nautiyal, Ankit K
On 3/7/2024 11:23 AM, Mitul Golani wrote: Add the necessary structures and functions to handle reading and unpacking Adaptive Sync Secondary Data Packets. Also add support to write and pack AS SDP. --v2: - Correct use of REG_BIT and REG_GENMASK. [Jani] - Use as_sdp instead of async. [Jani] -

Re: [PATCH v16 8/9] drm/i915/display: Compute vrr_vsync params

2024-03-07 Thread Nautiyal, Ankit K
On 3/7/2024 11:23 AM, Mitul Golani wrote: Compute vrr_vsync_start/end, which sets the position for hardware to send the Vsync at a fixed position relative to the end of the Vblank. --v2: - Updated VSYNC_START/END macros to VRR_VSYNC_START/END. (Ankit) - Updated bit fields of

Re: [PATCH] drm/i915/dp: Fix DSC state HW readout for SST connectors

2024-03-11 Thread Nautiyal, Ankit K
On 3/11/2024 8:26 PM, Imre Deak wrote: Commit a62e14598150 ("drm/i915/dp: Fix connector DSC HW state readout") moved the DSC HW state readout to a connector specific hook, however only added the hook for DP MST connectors, not for DP SST ones. Fix adding the hook for SST connectors as well.

Re: [PATCH v18 8/9] drm/i915/display: Compute vrr_vsync params

2024-03-14 Thread Nautiyal, Ankit K
On 3/13/2024 9:26 AM, Mitul Golani wrote: Compute vrr_vsync_start/end, which sets the position for hardware to send the Vsync at a fixed position relative to the end of the Vblank. --v2: - Updated VSYNC_START/END macros to VRR_VSYNC_START/END. (Ankit) - Updated bit fields of

Re: [PATCH v20 8/9] drm/i915/display: Compute vrr_vsync params

2024-03-20 Thread Nautiyal, Ankit K
LGTM. Reviewed-by: Ankit Nautiyal On 3/20/2024 10:30 AM, Mitul Golani wrote: Compute vrr_vsync_start/end, which sets the position for hardware to send the Vsync at a fixed position relative to the end of the Vblank. --v2: - Updated VSYNC_START/END macros to VRR_VSYNC_START/END. (Ankit) -

Re: [PATCH] drm/i915/scaler: Update Pipe src size check in skl_update_scaler

2024-03-20 Thread Nautiyal, Ankit K
On 3/15/2024 1:56 PM, Ville Syrjälä wrote: On Wed, Mar 13, 2024 at 08:08:25PM +0530, Ankit Nautiyal wrote: For Earlier platforms, the Pipe source size is 12-bits so max pipe source width and height is 4096. For newer platforms it is 13-bits so theoretically max width/height is 8192. For few

Re: [PATCH 1/2] drm/i915/lspcon: Separate function to set expected mode

2024-03-25 Thread Nautiyal, Ankit K
On 3/25/2024 8:47 PM, Jani Nikula wrote: On Fri, 22 Mar 2024, Ankit Nautiyal wrote: LSPCON can be configured to LS or PCON mode. Separate the function to set the expected mode from the lspcon probe function during lspcon init. Signed-off-by: Ankit Nautiyal ---

Re: [PATCH 2/2] drm/i915/lspcon: Separate lspcon probe and lspcon init

2024-03-25 Thread Nautiyal, Ankit K
On 3/25/2024 8:48 PM, Jani Nikula wrote: On Fri, 22 Mar 2024, Ankit Nautiyal wrote: Currently we probe for lspcon, inside lspcon init. Which does 2 things: probe the lspcon and set the expected LS/PCON mode. If there is no lspcon connected, the probe expectedly fails and results in error

Re: [PATCH 2/2] drm/i915/lspcon: Separate lspcon probe and lspcon init

2024-03-26 Thread Nautiyal, Ankit K
On 3/26/2024 12:26 PM, Jani Nikula wrote: On Tue, 26 Mar 2024, "Nautiyal, Ankit K" wrote: On 3/25/2024 8:48 PM, Jani Nikula wrote: On Fri, 22 Mar 2024, Ankit Nautiyal wrote: Currently we probe for lspcon, inside lspcon init. Which does 2 things: probe the lspcon and set the e

Re: [PATCH 10/11] drm/i915/dp_mst: Make HBLANK expansion quirk work for logical ports

2024-03-27 Thread Nautiyal, Ankit K
On 3/27/2024 7:49 PM, Imre Deak wrote: On Wed, Mar 27, 2024 at 01:40:58PM +0530, Nautiyal, Ankit K wrote: On 3/21/2024 1:41 AM, Imre Deak wrote: The DPCD OUI of the logical port on a Dell UHBR monitor - on which the AUX device is used to enable DSC - is all 0. To detect if the HBLANK

Re: [PATCH 09/11] drm/dp_mst: Add drm_dp_mst_aux_for_parent()

2024-03-27 Thread Nautiyal, Ankit K
On 3/27/2024 7:55 PM, Imre Deak wrote: On Wed, Mar 27, 2024 at 02:30:53PM +0530, Nautiyal, Ankit K wrote: On 3/21/2024 1:41 AM, Imre Deak wrote: Add a function to get the AUX device of the parent of an MST port, used by a follow-up i915 patch in the patchset. Cc: Lyude Paul Cc: dri-de

<    1   2   3   4   5   6   >