[PATCH 7/7] drm/i915/dp: Set the DSC link limits intel_dp_compute_config_link_bpp_limits

2024-10-03 Thread Ankit Nautiyal
The helper intel_dp_compute_config_link_bpp_limits is the correct place to set the DSC link limits. Move the code to this function and remove the #TODO item. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 64 + drivers/gpu/drm/i915/display

[PATCH 6/7] drm/i915/dp: Use clamp for pipe_bpp limits with DSC

2024-10-03 Thread Ankit Nautiyal
limits->pipe.max/min_bpp to ensure that the pipe_bpp limits are constrained within the DSC-defined minimum and maximum values. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i91

[PATCH 5/7] drm/i915/dp: Refactor pipe_bpp limits with dsc

2024-10-03 Thread Ankit Nautiyal
With DSC there are additional limits for pipe_bpp. Currently these are scattered in different places. Instead set the limits->pipe.max/min_bpp in one place and use them wherever required. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 43 ++---

[PATCH 4/7] drm/i915/dp: Drop max_requested_bpc for dsc pipe_min/max bpp

2024-10-03 Thread Ankit Nautiyal
limits->pipe.bpp_max. This will also result in dropping conn_state argument in functions where it was used only to get max_requested_bpc. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/dr

[PATCH 3/7] drm/i915/dp_mst: Use helpers to get dsc min/max input bpc

2024-10-03 Thread Ankit Nautiyal
Use helpers for source min/max input bpc with DSC. While at it, make them return int instead of u8 and use struct intel_display. v2: Make the helpers return int instead of u8. (Jani) v3: Use min/max macros instead of min_t/max_t. (Jani) v4: Use struct intel_display. Signed-off-by: Ankit Nautiyal

[PATCH 2/7] drm/i915/dp: Return int from dsc_max/min_src_input_bpc helpers

2024-10-03 Thread Ankit Nautiyal
Use ints for dsc_max/min_bpc instead of u8 in dsc_max/min_src_input_bpc helpers and their callers. This will also help replace min_t/max_t macros with min/max ones. Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_dp.c | 18 +- 1

[PATCH 0/7] DP DSC min/max src bpc fixes

2024-10-03 Thread Ankit Nautiyal
commit message. Rev4: Rebase. Rev5: Addressed Jani's comment on patch#3. Rev6: Rebase. Rev7: Added patch to fix return type for dsc_min/max_src bpc helpers to int. Rev8: Drop the first patch and added patches to refactor pipe_bpp limits and link limits. Ankit Nautiyal (7): drm/i915/dp

[PATCH 1/7] drm/i915/dp: Use HAS_DSC macro in intel_dp_dsc_max_src_input_bpc

2024-10-03 Thread Ankit Nautiyal
Use HAS_DSC macro to take into account platforms for which DSC is fused. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index

[PATCH 13/13] drm/i915/intel_dp: Add support for forcing ultrajoiner

2024-09-30 Thread Ankit Nautiyal
Allow forcing ultrajoiner through debugfs. v2: Minor refactoring of switch case logic. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 1 file changed, 8 insertions(+) diff

[PATCH 10/13] drm/i915/dp: Simplify helper to get slice count with joiner

2024-09-30 Thread Ankit Nautiyal
From: Stanislav Lisovskiy When bigjoiner is used, we need at least 2 dsc slices per pipe. Modify the condition in intel_dp_dsc_get_slice_count() to reflect the same. Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[PATCH 05/13] drm/i915: Implement hw state readout and checks for ultrajoiner

2024-09-30 Thread Ankit Nautiyal
ultrajoiner. (Ville) -Add fixup to accommodate PIPED check for ultrajoiner. (Ville) -Add more Ultrajoiner drm_WARNs. (Ville) v5: Remove spurious newline. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[PATCH 12/13] drm/i915/display: Consider ultrajoiner for computing maxdotclock

2024-09-30 Thread Ankit Nautiyal
Use the check for ultrajoiner while computing maxdotclock. v2: Add Check for HAS_UNCOMPRESSED_JOINER. (Ville) v3: Remove extraneous newline. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 5 +++-- 1 file changed, 3

[PATCH 11/13] drm/i915: Compute config and mode valid changes for ultrajoiner

2024-09-30 Thread Ankit Nautiyal
patches for ultrajoiner changes for max dsc slices and compressed bpp.(Ankit) v5: Fix check for joiner. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c | 26 +++-- 1 file changed

[PATCH 07/13] drm/i915/dp: Refactor joiner max_bpp calculations into separate functions

2024-09-30 Thread Ankit Nautiyal
Currently compressed max_bpp limitations for small joiner ram, big joiner etc are intermingled. Seprate these limitations into separate functions. v2: Use num_joined_pipes in small joiner ram helper and other minor fixes. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä

[PATCH 09/13] drm/i915/dp: Modify compressed bpp limitations for ultrajoiner

2024-09-30 Thread Ankit Nautiyal
Add compressed bpp limitations for ultrajoiner. v2: Fix the case for 1 pipe. (Ankit) v3: Refactor existing helper separately and add only ultrajoiner limitation. (Ville) v4: Separate out function for ultrajoiner_ram_bits. v5: Make the helper function more concise. (Ville) Signed-off-by: Ankit

[PATCH 08/13] drm/i915/dp: Use num_joined_pipes in bigjoiner_bw_max_bpp

2024-09-30 Thread Ankit Nautiyal
Streamline the helper to get max compressed bpp for bigjoiner case, to effectively use num of pipes joined. This will make the addition of ultrajoiner limitations easier and improve redability. Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c

[PATCH 06/13] drm/i915/display/vdsc: Add ultrajoiner support with DSC

2024-09-30 Thread Ankit Nautiyal
: Use num_vdsc_instances *= num_joined_pipes (Ville) v5: Align the helper to get ultrajoiner enabled pipes with other helpers (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 42

[PATCH 02/13] drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks

2024-09-30 Thread Ankit Nautiyal
From: Stanislav Lisovskiy Add sanity checks for primary and secondary bigjoiner/uncompressed bitmasks, should make it easier to spot possible issues. v2: -Streamline the expected masks and add few more drm_WARNs. (Ville) -Use %#x format specifier for printing joiner masks. (Ville) -Use struct in

[PATCH 04/13] drm/i915/display: Refactor enable_joiner_pipes

2024-09-30 Thread Ankit Nautiyal
get_joiner_primary_pipe and use primary_pipes set by enabled_joiner_pipes(). (Ville) Signed-off-by: Ankit Nautiyal Suggested-by: Ville Syrjälä Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 92 ++-- 1 file changed, 45 insertions(+), 47 deletions(-) diff

[PATCH 03/13] drm/i915/display: Add macro HAS_ULTRAJOINER()

2024-09-30 Thread Ankit Nautiyal
Add macro to check if platform supports Ultrajoiner. v2: -Use check for DISPLAY_VER >= 20, and add bmg as a special case. (Ville) -Add check for HAS_DSC. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display_device.h | 3 +++ 1 f

[PATCH 00/13] Ultrajoiner basic functionality series

2024-09-30 Thread Ankit Nautiyal
ssed_bpp_with_joiner and split changes into 3 patches. Rev14: -Fix issues in patches#11~13 for num_joined_pipes = 1. Rev15: -Rebase Ankit Nautiyal (8): drm/i915: Split current joiner hw state readout drm/i915/display: Add macro HAS_ULTRAJOINER() drm/i915/display: Refactor enable_joiner_pipes

[PATCH 01/13] drm/i915: Split current joiner hw state readout

2024-09-30 Thread Ankit Nautiyal
. (Ankit) v4: Use check for bigjoiner before reading the regs. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 74 +++- 1 file changed, 55 insertions

[PATCH 13/17] drm/i915/dp: Modify compressed bpp limitations for ultrajoiner

2024-09-27 Thread Ankit Nautiyal
Add compressed bpp limitations for ultrajoiner. v2: Fix the case for 1 pipe. (Ankit) v3: Refactor existing helper separately and add only ultrajoiner limitation. (Ville) v4: Separate out function for ultrajoiner_ram_bits. v5: Make the helper function more concise. (Ville) Signed-off-by: Ankit

[PATCH 02/17] drm/i915/display_debugfs: Allow force joiner only if supported

2024-09-27 Thread Ankit Nautiyal
. (Ville) v3: Remove HAS_BIGJOINER check. (Ville) v4: Reverse checks for connector type and intel_dp_has_joiner(). (Ville) v5: Drop the local variable intel_dp and use intel_attached_dp() directly. Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[PATCH 08/17] drm/i915/display: Refactor enable_joiner_pipes

2024-09-27 Thread Ankit Nautiyal
get_joiner_primary_pipe and use primary_pipes set by enabled_joiner_pipes(). (Ville) Signed-off-by: Ankit Nautiyal Suggested-by: Ville Syrjälä Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 92 ++-- 1 file changed, 45 insertions(+), 47 deletions(-) diff

[PATCH 11/17] drm/i915/dp: Refactor joiner max_bpp calculations into separate functions

2024-09-27 Thread Ankit Nautiyal
Currently compressed max_bpp limitations for small joiner ram, big joiner etc are intermingled. Seprate these limitations into separate functions. v2: Use num_joined_pipes in small joiner ram helper and other minor fixes. (Ville) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display

[PATCH 17/17] drm/i915/intel_dp: Add support for forcing ultrajoiner

2024-09-27 Thread Ankit Nautiyal
Allow forcing ultrajoiner through debugfs. v2: Minor refactoring of switch case logic. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 1 file changed, 8 insertions(+) diff

[PATCH 16/17] drm/i915/display: Consider ultrajoiner for computing maxdotclock

2024-09-27 Thread Ankit Nautiyal
Use the check for ultrajoiner while computing maxdotclock. v2: Add Check for HAS_UNCOMPRESSED_JOINER. (Ville) v3: Remove extraneous newline. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 5 +++-- 1 file changed, 3

[PATCH 09/17] drm/i915: Implement hw state readout and checks for ultrajoiner

2024-09-27 Thread Ankit Nautiyal
ultrajoiner. (Ville) -Add fixup to accommodate PIPED check for ultrajoiner. (Ville) -Add more Ultrajoiner drm_WARNs. (Ville) v5: Remove spurious newline. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[PATCH 14/17] drm/i915/dp: Simplify helper to get slice count with joiner

2024-09-27 Thread Ankit Nautiyal
From: Stanislav Lisovskiy When bigjoiner is used, we need at least 2 dsc slices per pipe. Modify the condition in intel_dp_dsc_get_slice_count() to reflect the same. Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[PATCH 15/17] drm/i915: Compute config and mode valid changes for ultrajoiner

2024-09-27 Thread Ankit Nautiyal
patches for ultrajoiner changes for max dsc slices and compressed bpp.(Ankit) v5: Fix check for joiner. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c | 26 +++-- 1 file changed

[PATCH 04/17] drm/i915/dp: Add helper to compute num pipes required

2024-09-27 Thread Ankit Nautiyal
number of pipes while calculating joined_pipe masks and max_dotclk. (Ville) v3: Simplify and rename the helper to intel_dp_num_joined_pipes(). Ville v4: Remove redundant 'fallthrough' statement. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- .../drm/i9

[PATCH 00/17] Ultrajoiner basic functionality series

2024-09-27 Thread Ankit Nautiyal
ssed_bpp_with_joiner and split changes into 3 patches. Rev14: -Fix issues in patches#11~13 for num_joined_pipes = 1. Ankit Nautiyal (12): drm/i915/display_device: Add Check HAS_DSC for bigjoiner drm/i915/display_debugfs: Allow force joiner only if supported drm/i915/display: Modify debugfs for join

[PATCH 13/17] drm/i915/dp: Modify compressed bpp limitations for ultrajoiner

2024-09-27 Thread Ankit Nautiyal
Add compressed bpp limitations for ultrajoiner. v2: Fix the case for 1 pipe. (Ankit) v3: Refactor existing helper separately and add only ultrajoiner limitation. (Ville) v4: Separate out function for ultrajoiner_ram_bits. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display

[PATCH 12/17] drm/i915/dp: Use num_joined_pipes in bigjoiner_bw_max_bpp

2024-09-27 Thread Ankit Nautiyal
Streamline the helper to get max compressed bpp for bigjoiner case, to effectively use num of pipes joined. This will make the addition of ultrajoiner limitations easier and improve redability. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 10 -- 1 file

[PATCH 06/17] drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks

2024-09-27 Thread Ankit Nautiyal
From: Stanislav Lisovskiy Add sanity checks for primary and secondary bigjoiner/uncompressed bitmasks, should make it easier to spot possible issues. v2: -Streamline the expected masks and add few more drm_WARNs. (Ville) -Use %#x format specifier for printing joiner masks. (Ville) -Use struct in

[PATCH 10/17] drm/i915/display/vdsc: Add ultrajoiner support with DSC

2024-09-27 Thread Ankit Nautiyal
: Use num_vdsc_instances *= num_joined_pipes (Ville) v5: Align the helper to get ultrajoiner enabled pipes with other helpers (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 42

[PATCH 05/17] drm/i915: Split current joiner hw state readout

2024-09-27 Thread Ankit Nautiyal
. (Ankit) v4: Use check for bigjoiner before reading the regs. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 74 +++- 1 file changed, 55 insertions

[PATCH 07/17] drm/i915/display: Add macro HAS_ULTRAJOINER()

2024-09-27 Thread Ankit Nautiyal
Add macro to check if platform supports Ultrajoiner. v2: -Use check for DISPLAY_VER >= 20, and add bmg as a special case. (Ville) -Add check for HAS_DSC. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display_device.h | 3 +++ 1 f

[PATCH 03/17] drm/i915/display: Modify debugfs for joiner to force n pipes

2024-09-27 Thread Ankit Nautiyal
an invalid value. v5: Remove extra debug message. (Ville) v6: Minor fix in switch case. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- .../drm/i915/display/intel_display_debugfs.c | 57 ++- .../drm/i915/display/intel_display_types.h| 2 +- drivers/gp

[PATCH 01/17] drm/i915/display_device: Add Check HAS_DSC for bigjoiner

2024-09-27 Thread Ankit Nautiyal
Bigjoiner needs DSC, but DSC might be disabled on some platforms. The platform check itself is not sufficient, so add a check for DSC to reflect that. v2: Modify the commit message to address the DSC fuse case. Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915

[PATCH 17/17] drm/i915/intel_dp: Add support for forcing ultrajoiner

2024-09-27 Thread Ankit Nautiyal
Allow forcing ultrajoiner through debugfs. v2: Minor refactoring of switch case logic. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 1 file changed, 8 insertions(+) diff

[PATCH 14/17] drm/i915/dp: Simplify helper to get slice count with joiner

2024-09-27 Thread Ankit Nautiyal
From: Stanislav Lisovskiy When bigjoiner is used, we need at least 2 dsc slices per pipe. Modify the condition in intel_dp_dsc_get_slice_count() to reflect the same. Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[PATCH 12/17] drm/i915/dp: Simplify the helper get_max_compressed_bpp_with_joiner

2024-09-27 Thread Ankit Nautiyal
Streamline the helper to get max compressed bpp for joiner case, to effectively use num of pipes joined. This will make the addition of ultrajoiner limitations easier and improve redability. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 20 1

[PATCH 16/17] drm/i915/display: Consider ultrajoiner for computing maxdotclock

2024-09-27 Thread Ankit Nautiyal
Use the check for ultrajoiner while computing maxdotclock. v2: Add Check for HAS_UNCOMPRESSED_JOINER. (Ville) v3: Remove extraneous newline. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 5 +++-- 1 file changed, 3

[PATCH 06/17] drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks

2024-09-27 Thread Ankit Nautiyal
From: Stanislav Lisovskiy Add sanity checks for primary and secondary bigjoiner/uncompressed bitmasks, should make it easier to spot possible issues. v2: -Streamline the expected masks and add few more drm_WARNs. (Ville) -Use %#x format specifier for printing joiner masks. (Ville) -Use struct in

[PATCH 15/17] drm/i915: Compute config and mode valid changes for ultrajoiner

2024-09-27 Thread Ankit Nautiyal
patches for ultrajoiner changes for max dsc slices and compressed bpp.(Ankit) v5: Fix check for joiner. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c | 26 +++-- 1 file changed

[PATCH 10/17] drm/i915/display/vdsc: Add ultrajoiner support with DSC

2024-09-27 Thread Ankit Nautiyal
: Use num_vdsc_instances *= num_joined_pipes (Ville) v5: Align the helper to get ultrajoiner enabled pipes with other helpers (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 42

[PATCH 13/17] drm/i915/dp: Modify compressed bpp limitations for ultrajoiner

2024-09-27 Thread Ankit Nautiyal
Add compressed bpp limitations for ultrajoiner. v2: Fix the case for 1 pipe. (Ankit) v3: Refactor existing helper separately and add only ultrajoiner limitation. (Ville) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 8 1 file changed, 8 insertions

[PATCH 11/17] drm/i915/dp: Refactor joiner max_bpp calculations into separate functions

2024-09-27 Thread Ankit Nautiyal
Currently compressed max_bpp limitations for small joiner ram, big joiner and others are intermingled. Separate them into distinct functions to enhance clarity and maintainability. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 45 - 1 file

[PATCH 08/17] drm/i915/display: Refactor enable_joiner_pipes

2024-09-27 Thread Ankit Nautiyal
get_joiner_primary_pipe and use primary_pipes set by enabled_joiner_pipes(). (Ville) Signed-off-by: Ankit Nautiyal Suggested-by: Ville Syrjälä Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 98 ++-- 1 file changed, 48 insertions(+), 50 deletions(-) diff

[PATCH 09/17] drm/i915: Implement hw state readout and checks for ultrajoiner

2024-09-27 Thread Ankit Nautiyal
ultrajoiner. (Ville) -Add fixup to accommodate PIPED check for ultrajoiner. (Ville) -Add more Ultrajoiner drm_WARNs. (Ville) v5: Remove spurious newline. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[PATCH 07/17] drm/i915/display: Add macro HAS_ULTRAJOINER()

2024-09-27 Thread Ankit Nautiyal
Add macro to check if platform supports Ultrajoiner. v2: -Use check for DISPLAY_VER >= 20, and add bmg as a special case. (Ville) -Add check for HAS_DSC. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display_device.h | 3 +++ 1 f

[PATCH 05/17] drm/i915: Split current joiner hw state readout

2024-09-27 Thread Ankit Nautiyal
. (Ankit) v4: Use check for bigjoiner before reading the regs. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 74 +++- 1 file changed, 55 insertions

[PATCH 04/17] drm/i915/dp: Add helper to compute num pipes required

2024-09-27 Thread Ankit Nautiyal
number of pipes while calculating joined_pipe masks and max_dotclk. (Ville) v3: Simplify and rename the helper to intel_dp_num_joined_pipes(). Ville v4: Remove redundant 'fallthrough' statement. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- .../drm/i9

[PATCH 03/17] drm/i915/display: Modify debugfs for joiner to force n pipes

2024-09-27 Thread Ankit Nautiyal
an invalid value. v5: Remove extra debug message. (Ville) v6: Minor fix in switch case. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- .../drm/i915/display/intel_display_debugfs.c | 57 ++- .../drm/i915/display/intel_display_types.h| 2 +- drivers/gp

[PATCH 02/17] drm/i915/display_debugfs: Allow force joiner only if supported

2024-09-27 Thread Ankit Nautiyal
. (Ville) v3: Remove HAS_BIGJOINER check. (Ville) v4: Reverse checks for connector type and intel_dp_has_joiner(). (Ville) v5: Drop the local variable intel_dp and use intel_attached_dp() directly. Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[PATCH 01/17] drm/i915/display_device: Add Check HAS_DSC for bigjoiner

2024-09-27 Thread Ankit Nautiyal
Bigjoiner needs DSC, but DSC might be disabled on some platforms. The platform check itself is not sufficient, so add a check for DSC to reflect that. v2: Modify the commit message to address the DSC fuse case. Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915

[PATCH 00/17] Ultrajoiner basic functionality series

2024-09-27 Thread Ankit Nautiyal
ssed_bpp_with_joiner and split changes into 3 patches. Ankit Nautiyal (12): drm/i915/display_device: Add Check HAS_DSC for bigjoiner drm/i915/display_debugfs: Allow force joiner only if supported drm/i915/display: Modify debugfs for joiner to force n pipes drm/i915/dp: Add helper to compute num pi

[PATCH 1/4] drm/i915/display_device: Add Check HAS_DSC for bigjoiner

2024-09-26 Thread Ankit Nautiyal
Bigjoiner needs DSC, but DSC might be disabled on some platforms. The platform check itself is not sufficient, so add a check for DSC to reflect that. v2: Modify the commit message to address the DSC fuse case. Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915

[PATCH 3/4] drm/i915/display: Modify debugfs for joiner to force n pipes

2024-09-26 Thread Ankit Nautiyal
an invalid value. v5: Remove extra debug message. (Ville) v6: Minor fix in switch case. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- .../drm/i915/display/intel_display_debugfs.c | 57 ++- .../drm/i915/display/intel_display_types.h| 2 +- drivers/gp

[PATCH 4/4] drm/i915/dp: Add helper to compute num pipes required

2024-09-26 Thread Ankit Nautiyal
number of pipes while calculating joined_pipe masks and max_dotclk. (Ville) v3: Simplify and rename the helper to intel_dp_num_joined_pipes(). Ville v4: Remove redundant 'fallthrough' statement. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- .../drm/i9

[PATCH 2/4] drm/i915/display_debugfs: Allow force joiner only if supported

2024-09-26 Thread Ankit Nautiyal
. (Ville) v3: Remove HAS_BIGJOINER check. (Ville) v4: Reverse checks for connector type and intel_dp_has_joiner(). (Ville) v5: Drop the local variable intel_dp and use intel_attached_dp() directly. Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[PATCH 0/4] Enhance debugfs for forcing joiner

2024-09-26 Thread Ankit Nautiyal
prior to the integration of the core patches in this series. [1] https://patchwork.freedesktop.org/series/133800/ Ankit Nautiyal (4): drm/i915/display_device: Add Check HAS_DSC for bigjoiner drm/i915/display_debugfs: Allow force joiner only if supported drm/i915/display: Modify debugfs for

[PATCH 15/15] drm/i915/intel_dp: Add support for forcing ultrajoiner

2024-09-26 Thread Ankit Nautiyal
Allow forcing ultrajoiner through debugfs. v2: Minor refactoring of switch case logic. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 1 file changed, 8 insertions(+) diff

[PATCH 13/15] drm/i915: Compute config and mode valid changes for ultrajoiner

2024-09-26 Thread Ankit Nautiyal
patches for ultrajoiner changes for max dsc slices and compressed bpp.(Ankit) v5: Fix check for joiner. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c | 26 +++-- 1 file changed

[PATCH 07/15] drm/i915/display: Add macro HAS_ULTRAJOINER()

2024-09-26 Thread Ankit Nautiyal
Add macro to check if platform supports Ultrajoiner. v2: -Use check for DISPLAY_VER >= 20, and add bmg as a special case. (Ville) -Add check for HAS_DSC. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display_device.h | 3 +++ 1 f

[PATCH 12/15] drm/i915/dp: Simplify helper to get slice count with joiner

2024-09-26 Thread Ankit Nautiyal
From: Stanislav Lisovskiy When bigjoiner is used, we need at least 2 dsc slices per pipe. Modify the condition in intel_dp_dsc_get_slice_count() to reflect the same. Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 8 ++-- 1

[PATCH 10/15] drm/i915/display/vdsc: Add ultrajoiner support with DSC

2024-09-26 Thread Ankit Nautiyal
: Use num_vdsc_instances *= num_joined_pipes (Ville) v5: Align the helper to get ultrajoiner enabled pipes with other helpers (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 42

[PATCH 14/15] drm/i915/display: Consider ultrajoiner for computing maxdotclock

2024-09-26 Thread Ankit Nautiyal
Use the check for ultrajoiner while computing maxdotclock. v2: Add Check for HAS_UNCOMPRESSED_JOINER. (Ville) v3: Remove extraneous newline. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 5 +++-- 1 file changed, 3

[PATCH 09/15] drm/i915: Implement hw state readout and checks for ultrajoiner

2024-09-26 Thread Ankit Nautiyal
ultrajoiner. (Ville) -Add fixup to accommodate PIPED check for ultrajoiner. (Ville) -Add more Ultrajoiner drm_WARNs. (Ville) v5: Remove spurious newline. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display.c | 88

[PATCH 11/15] drm/i915/dp: Modify compressed bpp limitations for ultrajoiner

2024-09-26 Thread Ankit Nautiyal
Add compressed bpp limitations for ultrajoiner. v2: Fix the case for 1 pipe. (Ankit) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 27 +++-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c

[PATCH 05/15] drm/i915: Split current joiner hw state readout

2024-09-26 Thread Ankit Nautiyal
. (Ankit) v4: Use check for bigjoiner before reading the regs. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 74 +++- 1 file changed, 55 insertions

[PATCH 08/15] drm/i915/display: Refactor enable_joiner_pipes

2024-09-26 Thread Ankit Nautiyal
get_joiner_primary_pipes. (Ville) -Nuke get_joiner_secondary_pipes. (Ville) -Add more drm_WARNs final primary/secondary pipes. (Ville) v3: -Drop ultrajoiner stuff and add it in subsequent patches. (Ville) Signed-off-by: Ankit Nautiyal Suggested-by: Ville Syrjälä --- drivers/gpu/drm/i915/display

[PATCH 06/15] drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks

2024-09-26 Thread Ankit Nautiyal
From: Stanislav Lisovskiy Add sanity checks for primary and secondary bigjoiner/uncompressed bitmasks, should make it easier to spot possible issues. v2: -Streamline the expected masks and add few more drm_WARNs. (Ville) -Use %#x format specifier for printing joiner masks. (Ville) -Use struct in

[PATCH 04/15] drm/i915/dp: Add helper to compute num pipes required

2024-09-26 Thread Ankit Nautiyal
number of pipes while calculating joined_pipe masks and max_dotclk. (Ville) v3: Simplify and rename the helper to intel_dp_num_joined_pipes(). Ville v4: Remove redundant 'fallthrough' statement. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- .../drm/i9

[PATCH 03/15] drm/i915/display: Modify debugfs for joiner to force n pipes

2024-09-26 Thread Ankit Nautiyal
an invalid value. v5: Remove extra debug message. (Ville) v6: Minor fix in switch case. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- .../drm/i915/display/intel_display_debugfs.c | 57 ++- .../drm/i915/display/intel_display_types.h| 2 +- drivers/gp

[PATCH 01/15] drm/i915/display_device: Add Check HAS_DSC for bigjoiner

2024-09-26 Thread Ankit Nautiyal
Bigjoiner needs DSC, but DSC might be disabled on some platforms. The platform check itself is not sufficient, so add a check for DSC to reflect that. v2: Modify the commit message to address the DSC fuse case. Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915

[PATCH 00/15] Ultrajoiner basic functionality series

2024-09-26 Thread Ankit Nautiyal
'Refactor enable_joiner_pipes' earlier than 'Implement hw state readout and checks for ultrajoiner'. -Few improvements as suggested in review comments. -Use --patience for Patch #8 "drm/i915/display: Refactor enable_joiner_pipes" Ankit Nautiyal (10): drm/i915/dis

[PATCH 02/15] drm/i915/display_debugfs: Allow force joiner only if supported

2024-09-26 Thread Ankit Nautiyal
. (Ville) v3: Remove HAS_BIGJOINER check. (Ville) v4: Reverse checks for connector type and intel_dp_has_joiner(). (Ville) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu

[PATCH 12/16] drm/i915/dp: Modify compressed bpp limitations for ultrajoiner

2024-09-23 Thread Ankit Nautiyal
Add compressed bpp limitations for ultrajoiner. v2: Fix the case for 1 pipe. (Ankit) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 27 +++-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c

[PATCH 08/16] drm/i915/display: Add macro HAS_ULTRAJOINER()

2024-09-23 Thread Ankit Nautiyal
Add macro to check if platform supports Ultrajoiner. v2: -Use check for DISPLAY_VER >= 20, and add bmg as a special case. (Ville) -Add check for HAS_DSC. (Ville) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display_device.h | 3 +++ 1 file changed, 3 insertions(+) d

[PATCH 13/16] drm/i915/dp: Modify helper to get slice count for ultrajoiner

2024-09-23 Thread Ankit Nautiyal
From: Stanislav Lisovskiy ultrajoiner needs 2 bigjoiners to be enabled, so modify the helper intel_dp_dsc_get_slice_count for ultrajoiner. Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 7 +-- 1 file changed, 5 insertions

[PATCH 16/16] drm/i915/intel_dp: Add support for forcing ultrajoiner

2024-09-23 Thread Ankit Nautiyal
Allow forcing ultrajoiner through debugfs. v2: Minor refactoring of switch case logic. (Ville) Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915

[PATCH 09/16] drm/i915: Implement hw state readout and checks for ultrajoiner

2024-09-23 Thread Ankit Nautiyal
ultrajoiner. (Ville) -Add fixup to accommodate PIPED check for ultrajoiner. (Ville) -Add more Ultrajoiner drm_WARNs. (Ville) v5: Remove spurious newline. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display.c | 87

[PATCH 05/16] drm/i915/display: Add debugfs support to avoid joiner

2024-09-23 Thread Ankit Nautiyal
Currently debugfs for joiner can take a value of 0->dont care and 2->join 2 pipes. Add option to force to use only 1 pipe. If debugfs is set to 1, force to exactly one pipe (ie. no joiner despite what the automagic logic is saying). Signed-off-by: Ankit Nautiyal --- drivers/gpu/dr

[PATCH 04/16] drm/i915/dp: Add helper to compute num pipes required

2024-09-23 Thread Ankit Nautiyal
number of pipes while calculating joined_pipe masks and max_dotclk. (Ville) v3: Simplify and rename the helper to intel_dp_num_joined_pipes(). Ville Signed-off-by: Ankit Nautiyal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_dp.c | 46 - drivers/gpu

[PATCH 15/16] drm/i915/display: Consider ultrajoiner for computing maxdotclock

2024-09-23 Thread Ankit Nautiyal
Use the check for ultrajoiner while computing maxdotclock. v2: Add Check for HAS_UNCOMPRESSED_JOINER. (Ville) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display

[PATCH 14/16] drm/i915: Compute config and mode valid changes for ultrajoiner

2024-09-23 Thread Ankit Nautiyal
patches for ultrajoiner changes for max dsc slices and compressed bpp.(Ankit) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 26 +++-- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/drivers/gpu

[PATCH 12/16] drm/i915/dp: Modify compressed bpp limitations for ultrajoiner

2024-09-23 Thread Ankit Nautiyal
Add compressed bpp limitations for ultrajoiner. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display

[PATCH 10/16] drm/i915/display: Refactor enable_joiner_pipes

2024-09-23 Thread Ankit Nautiyal
Pass the current pipe into enabled_joiner_pipes(), and let it figure out the proper bitmasks for us. v2: -Simplify helper get_joiner_primary_pipes. (Ville) -Nuke get_joiner_secondary_pipes. (Ville) -Add more drm_WARNs and checks for final primary/secondary pipes. (Ville) Signed-off-by: Ankit

[PATCH 11/16] drm/i915/display/vdsc: Add ultrajoiner support with DSC

2024-09-23 Thread Ankit Nautiyal
: Use num_vdsc_instances *= num_joined_pipes (Ville) v5: Align the helper to get ultrajoiner enabled pipes with other helpers (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display.c | 42 drivers/gpu/drm/i915

[PATCH 06/16] drm/i915: Split current joiner hw state readout

2024-09-23 Thread Ankit Nautiyal
. (Ankit) v4: Use check for bigjoiner before reading the regs. (Ville) Signed-off-by: Stanislav Lisovskiy Signed-off-by: Ankit Nautiyal Reviewed-by: Suraj Kandpal Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 74 +++- 1 file changed, 55 insertions

[PATCH 07/16] drm/i915: Add bigjoiner and uncompressed joiner hw readout sanity checks

2024-09-23 Thread Ankit Nautiyal
From: Stanislav Lisovskiy Add sanity checks for primary and secondary bigjoiner/uncompressed bitmasks, should make it easier to spot possible issues. v2: -Streamline the expected masks and add few more drm_WARNs. (Ville) -Use %#x format specifier for printing joiner masks. (Ville) -Use struct in

[PATCH 01/16] drm/i915/display_device: Add Check HAS_DSC for bigjoiner

2024-09-23 Thread Ankit Nautiyal
Bigjoiner needs DSC, add a check to reflect that. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_device.h b/drivers/gpu/drm/i915/display

[PATCH 03/16] drm/i915/display: Modify debugfs for joiner to force n pipes

2024-09-23 Thread Ankit Nautiyal
an invalid value. v5: Remove extra debug message. (Ville) Signed-off-by: Ankit Nautiyal --- .../drm/i915/display/intel_display_debugfs.c | 58 ++- .../drm/i915/display/intel_display_types.h| 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 58

[PATCH 02/16] drm/i915/display_debugfs: Allow force joiner only if supported

2024-09-23 Thread Ankit Nautiyal
. (Ville) v3 : Remove HAS_BIGJOINER check. (Ville) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display

[PATCH 00/16] Ultrajoiner basic functionality series

2024-09-23 Thread Ankit Nautiyal
suggested. Rev9: Rebase Rev10: -Rebase -Fix enable_joined_pipes as suggested by Ville, to avoid propagate is_ultrajoiner. -Enhance the mask to iterate over joiner pipes, as suggested by Ville. Rev11: -Address review comments from Ville -Split changes to dsc helpers to separate patches Ankit

[PATCH 04/15] drm/i915/display: Modify debugfs for joiner to force n pipes

2024-09-18 Thread Ankit Nautiyal
an invalid value. Signed-off-by: Ankit Nautiyal --- .../drm/i915/display/intel_display_debugfs.c | 63 ++- .../drm/i915/display/intel_display_types.h| 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- 3 files changed, 63 insertions(+), 4 deletions(-) diff --git

[PATCH 05/15] drm/i915/dp: Add helper to compute num pipes required

2024-09-18 Thread Ankit Nautiyal
number of pipes while calculating joined_pipe masks and max_dotclk. (Ville) Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 51 + drivers/gpu/drm/i915/display/intel_dp.h | 6 +-- drivers/gpu/drm/i915/display/intel_dp_mst.c | 23

  1   2   3   4   5   6   7   8   9   10   >