[V2 1/2] drm/i915/drrs: Refactor CPU transcoder DRRS check

2024-02-27 Thread Bhanuprakash Modem
Rename cpu_transcoder_has_drrs() to intel_cpu_transcoder_has_drrs() and make it as non-static, therefore it can be re-used. V2: - Move helpers to intel_drrs.[ch] (Jani) - Fix commit message (Jani) Cc: Jani Nikula Cc: Ankit Nautiyal Cc: Mitul Golani Signed-off-by: Bhanuprakash Modem

[PATCH 2/2] drm/i915/display/debugfs: Fix duplicate checks in i915_drrs_status

2024-02-27 Thread Bhanuprakash Modem
Remove duplicate checks for debugfs entry "DRRS capable:". Fixes: (20af10845864) drm/i915/display/debugfs: New entry "DRRS capable" to i915_drrs_status Cc: Jani Nikula Cc: Ankit Nautiyal Cc: Mitul Golani Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/disp

[PATCH 1/2] drm/i915/display/drrs: Refactor CPU transcoder DRRS check

2024-02-27 Thread Bhanuprakash Modem
Rename cpu_transcoder_has_drrs() to intel_cpu_transcoder_has_drrs() and make it as non-static, therefore it can be re-used. Cc: Jani Nikula Cc: Ankit Nautiyal Cc: Mitul Golani Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_display.c | 9 + drivers/gpu/drm

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

2024-02-21 Thread Bhanuprakash Modem
us, so that IGT will read the DRRS capability as "DRRS capable: yes". Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_drrs.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_drrs.c b/drivers/gpu/drm/i915/display/intel_drrs.c i

[PATCH] drm/i915/display: Move display params to i915_display_capabilities

2024-01-21 Thread Bhanuprakash Modem
nder Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 2 ++ drivers/gpu/drm/i915/i915_debugfs.c | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/

[i-g-t 1/1] drm/i915/display: Dump display parameters to i915_display_capabilities

2024-01-17 Thread Bhanuprakash Modem
Include Display parameters in i915_display_capabilities debugfs. Cc: Jouni Högander Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers

[Intel-gfx] [V3 1/1] drm/i915/debugfs: New debugfs for display clock frequencies

2023-04-13 Thread Bhanuprakash Modem
(Jani) Cc: Jani Nikula Signed-off-by: Bhanuprakash Modem Reviewed-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_cdclk.c| 21 +++ drivers/gpu/drm/i915/display/intel_cdclk.h| 1 + .../drm/i915/display/intel_display_debugfs.c | 1 + 3 files changed, 23 insertions(+

[Intel-gfx] [V2 0/1] drm/i915/debugfs: New debugfs for display clock frequencies

2023-04-12 Thread Bhanuprakash Modem
sh.mo...@intel.com Bhanuprakash Modem (1): drm/i915/debugfs: New debugfs for display clock frequencies drivers/gpu/drm/i915/display/intel_cdclk.c| 25 +++ drivers/gpu/drm/i915/display/intel_cdclk.h| 1 + .../drm/i915/display/intel_display_debugfs.c | 1 + 3 files chan

[Intel-gfx] [V2 1/1] drm/i915/debugfs: New debugfs for display clock frequencies

2023-04-12 Thread Bhanuprakash Modem
o Current CD clock frequency: 163200 kHz Max CD clock frequency: 652800 kHz Max pixel clock frequency: 1305600 kHz V2: - s/i915_display_clock_info/i915_cdclk_info/ (Jani) - Move the logic to intel_cdclk.c (Jani) - Don't remove info from i915_frequency_info (Jani) Cc: Jani Nikula Sign

[Intel-gfx] [PATCH 0/1] drm/i915/debugfs: New debugfs for display clock frequencies

2023-04-12 Thread Bhanuprakash Modem
sh.mo...@intel.com Bhanuprakash Modem (1): drm/i915/debugfs: New debugfs for display clock frequencies .../gpu/drm/i915/display/intel_display_debugfs.c | 16 drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c| 4 2 files changed, 16 insertions(+), 4 deletions(-) -- 2.40.0

[Intel-gfx] [PATCH 1/1] drm/i915/debugfs: New debugfs for display clock frequencies

2023-04-12 Thread Bhanuprakash Modem
Instead of mixing display & non-display stuff together, move display specific clock info to new debugfs. This patch will move Current & Max cdclk and Max pixel clock frequency info to the new debugfs file "i915_display_clock_info". Cc: Jani Nikula Signed-off-by: Bhanuprakash M

[Intel-gfx] [V2 2/2] drm/i915/debugfs: add crtc i915_pipe debugfs file

2023-03-17 Thread Bhanuprakash Modem
From: Jani Nikula The pipe may differ from crtc index if pipes are fused off. For testing purposes, IGT needs to know the pipe. There's already a I915_GET_PIPE_FROM_CRTC_ID IOCTL for this. However, the upcoming Xe driver won't have that IOCTL, and going forward, we'll want a unified interface fo

[Intel-gfx] [V2 1/2] drm/i915/debugfs: switch crtc debugfs to struct intel_crtc

2023-03-17 Thread Bhanuprakash Modem
From: Jani Nikula Convert the crtc debugfs code to use struct intel_crtc instead of struct drm_crtc. V2: - Fix build failures in CI Signed-off-by: Jani Nikula Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_crtc.c | 2 +- .../drm/i915/display

[Intel-gfx] [V2 0/2] Add crtc i915_pipe debugfs file

2023-03-17 Thread Bhanuprakash Modem
The pipe may differ from crtc index if pipes are fused off. For testing purposes, IGT needs to know the pipe. There's already a I915_GET_PIPE_FROM_CRTC_ID IOCTL for this. However, the upcoming Xe driver won't have that IOCTL, and going forward, we'll want a unified interface for testing i915 and X

[Intel-gfx] [CI 3/3] drm/amd/display: Move connector debugfs to drm

2022-05-19 Thread Bhanuprakash Modem
tc_state. Cc: Harry Wentland Cc: Rodrigo Siqueira Signed-off-by: Bhanuprakash Modem Reported-by: kernel test robot Reviewed-by: Arun R Murthy Reviewed-by: Harry Wentland Acked-by: Harry Wentland --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 -- .../amd/display/amdgpu_dm/amdg

[Intel-gfx] [CI 2/3] drm/i915/display/debug: Expose crtc current bpc via debugfs

2022-05-19 Thread Bhanuprakash Modem
ug/dri/0/crtc-0/i915_current_bpc Current: 8 Cc: Jani Nikula Cc: Ville Syrjälä Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem Reviewed-by: Arun R Murthy Acked-by: Jani Nikula --- .../drm/i915/display/intel_display_debugfs.c | 28 +++ 1 file changed, 28 insertions(+) diff --git a/

[Intel-gfx] [CI 1/3] drm/debug: Expose connector's max supported bpc via debugfs

2022-05-19 Thread Bhanuprakash Modem
tland Signed-off-by: Bhanuprakash Modem Reviewed-by: Arun R Murthy Reviewed-by: Harry Wentland --- drivers/gpu/drm/drm_debugfs.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index 7f1b82dbaebb..fb04b7a984de

[Intel-gfx] [CI 0/3] Expose max and current bpc via debugfs

2022-05-19 Thread Bhanuprakash Modem
This series will expose the Connector's max supported bpc via connector debugfs and Crtc's current bpc via crtc debugfs. Also move the existing vendor specific "output_bpc" logic to drm. Bhanuprakash Modem (3): drm/debug: Expose connector's max supported bpc via debugfs

[Intel-gfx] [RFC V3 2/2] drm/i915/vrr: Set drm crtc vrr_enabled property

2022-05-17 Thread Bhanuprakash Modem
ff-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_vrr.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c index 396f2f994fa0..7263b35550de 100644 --- a/drivers/gpu/drm/i915/display/intel_vrr.c

[Intel-gfx] [RFC V3 1/2] drm/vrr: Attach vrr_enabled property to the drm crtc

2022-05-17 Thread Bhanuprakash Modem
y attached (Manasi) Cc: Ville Syrjälä Cc: Nicholas Kazlauskas Cc: Manasi Navare Cc: Harry Wentland Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/drm_crtc.c| 26 ++ drivers/gpu/drm/drm_mode_config.c | 2 +- include/drm/drm_crtc.h| 3 ++

[Intel-gfx] [RFC V3 0/2] Attach and Set vrr_enabled property

2022-05-17 Thread Bhanuprakash Modem
This series will add a support to set the vrr_enabled property for crtc based on the platform support and the request from userspace. And userspace can also query to get the status of "vrr_enabled". Test-with: 20220422075223.2792586-2-bhanuprakash.mo...@intel.com Bhanuprakash Modem

[Intel-gfx] [RFC v2 2/2] drm/i915/vrr: Attach and set drm crtc vrr_enabled property

2022-04-24 Thread Bhanuprakash Modem
This function attaches & sets the vrr_enabled property for crtc based on the platform support and the request from userspace. V2: Check for platform support before updating the prop. Cc: Ville Syrjälä Cc: Manasi Navare Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/dis

[Intel-gfx] [RFC v2 1/2] drm/vrr: Attach vrr_enabled property to the drm crtc

2022-04-24 Thread Bhanuprakash Modem
Navare Cc: Harry Wentland Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/drm_crtc.c| 44 +++ drivers/gpu/drm/drm_mode_config.c | 2 +- include/drm/drm_crtc.h| 4 +++ 3 files changed, 49 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/

[Intel-gfx] [RFC v2 0/2] Attach and Set vrr_enabled property

2022-04-24 Thread Bhanuprakash Modem
This series will add a support to attach & set the vrr_enabled property for crtc based on the platform support and the request from userspace. And userspace can also query to get the status of "vrr_enabled". Test-with: 20220422075223.2792586-2-bhanuprakash.mo...@intel.com Bhanupr

[Intel-gfx] [RFC 2/2] drm/i915/vrr: Attach and set drm crtc vrr_enabled property

2022-04-22 Thread Bhanuprakash Modem
This function attaches & sets the vrr_enabled property for crtc based on the platform support and the request from userspace. Cc: Ville Syrjälä Cc: Manasi Navare Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_crtc.c | 3 +++ drivers/gpu/drm/i915/display/intel_v

[Intel-gfx] [RFC 1/2] drm/vrr: Attach vrr_enabled property to the drm crtc

2022-04-22 Thread Bhanuprakash Modem
ned-off-by: Bhanuprakash Modem --- drivers/gpu/drm/drm_crtc.c | 44 ++ include/drm/drm_crtc.h | 4 2 files changed, 48 insertions(+) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 26a77a735905..95b4a0c7ecb3 100644 --- a/drive

[Intel-gfx] [RFC 0/2] Attach and Set vrr_enabled property

2022-04-22 Thread Bhanuprakash Modem
This series will add a support to attach & set the vrr_enabled property for crtc based on the platform support and the request from userspace. And userspace can also query to get the status of "vrr_enabled". Test-with: 20220422075223.2792586-2-bhanuprakash.mo...@intel.com Bhanupr

[Intel-gfx] [V2 3/3] drm/amd/display: Move connector debugfs to drm

2022-04-11 Thread Bhanuprakash Modem
tc_state. Cc: Harry Wentland Cc: Rodrigo Siqueira Signed-off-by: Bhanuprakash Modem Reported-by: kernel test robot --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 -- .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 38 +++ .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.h | 2 -

[Intel-gfx] [V2 2/3] drm/i915/display/debug: Expose crtc current bpc via debugfs

2022-04-11 Thread Bhanuprakash Modem
ug/dri/0/crtc-0/i915_current_bpc Current: 8 Cc: Jani Nikula Cc: Ville Syrjälä Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- .../drm/i915/display/intel_display_debugfs.c | 28 +++ 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c

[Intel-gfx] [V2 1/3] drm/debug: Expose connector's max supported bpc via debugfs

2022-04-11 Thread Bhanuprakash Modem
tland Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/drm_debugfs.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index 7f1b82dbaebb..fb04b7a984de 100644 --- a/drivers/gpu/drm/drm_debugfs.c +++ b/drivers/g

[Intel-gfx] [V2 0/3] Expose max and current bpc via debugfs

2022-04-11 Thread Bhanuprakash Modem
This series will expose the Connector's max supported bpc via connector debugfs and Crtc's current bpc via crtc debugfs. Also move the existing vendor specific "output_bpc" logic to drm. Test-with: 20220411094147.1650859-2-bhanuprakash.mo...@intel.com Bhanuprakash Modem (3):

[Intel-gfx] [V2 0/3] Expose max and current bpc via debugfs

2022-04-11 Thread Bhanuprakash Modem
This series will expose the Connector's max supported bpc via connector debugfs and Crtc's current bpc via crtc debugfs. Also move the existing vendor specific "output_bpc" logic to drm. Test-with: 20220411094147.1650859-2-bhanuprakash.mo...@intel.com Bhanuprakash Modem (3):

[Intel-gfx] [V2 0/3] Expose max and current bpc via debugfs

2022-04-11 Thread Bhanuprakash Modem
This series will expose the Connector's max supported bpc via connector debugfs and Crtc's current bpc via crtc debugfs. Also move the existing vendor specific "output_bpc" logic to drm. Test-with: 20220411094147.1650859-2-bhanuprakash.mo...@intel.com Bhanuprakash Modem (3):

[Intel-gfx] [V2 1/3] drm/debug: Expose connector's max supported bpc via debugfs

2022-04-10 Thread Bhanuprakash Modem
tland Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/drm_debugfs.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index 7f1b82dbaebb..fb04b7a984de 100644 --- a/drivers/gpu/drm/drm_debugfs.c +++ b/drivers/g

[Intel-gfx] [PATCH 3/3] drm/amd/display: Move connector debugfs to drm

2022-04-07 Thread Bhanuprakash Modem
tc_state. Cc: Harry Wentland Cc: Rodrigo Siqueira Signed-off-by: Bhanuprakash Modem --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 -- .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 38 +++ .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.h | 2 - 3 files changed, 13 inserti

[Intel-gfx] [PATCH 1/3] drm/debug: Expose connector's max supported bpc via debugfs

2022-04-07 Thread Bhanuprakash Modem
It's useful to know the connector's max supported bpc for IGT testing. Expose it via a debugfs file on the connector "output_bpc". Example: cat /sys/kernel/debug/dri/0/DP-1/output_bpc Cc: Jani Nikula Cc: Ville Syrjälä Cc: Harry Wentland Signed-off-by: Bhanuprakash Modem

[Intel-gfx] [PATCH 2/3] drm/i915/display/debug: Expose crtc current bpc via debugfs

2022-04-07 Thread Bhanuprakash Modem
ug/dri/0/crtc-0/i915_current_bpc Current: 8 Cc: Jani Nikula Cc: Ville Syrjälä Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- .../drm/i915/display/intel_display_debugfs.c | 28 +++ 1 file changed, 28 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c

[Intel-gfx] [PATCH 0/3] Expose max and current bpc via debugfs

2022-04-07 Thread Bhanuprakash Modem
This series will expose the Connector's max supported bpc via connector debugfs and Crtc's current bpc via crtc debugfs. Also move the existing vendor specific "output_bpc" logic to drm. Test-with: 20220408065143.1485069-2-bhanuprakash.mo...@intel.com Bhanuprakash Modem (3):

[Intel-gfx] [PATCH] drm/i915/display/debugfs: Add connector debugfs for "output_bpc"

2022-03-28 Thread Bhanuprakash Modem
max bpc to i915_display_info Cc: Ville Syrjälä Cc: Uma Shankar Cc: Swati Sharma Signed-off-by: Bhanuprakash Modem --- .../drm/i915/display/intel_display_debugfs.c | 46 +++ 1 file changed, 46 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drive

[Intel-gfx] [PATCH] drm/i915/display/debugfs: Add connector debugfs for "output_bpc"

2022-03-28 Thread Bhanuprakash Modem
r Cc: Swati Sharma Signed-off-by: Bhanuprakash Modem --- .../drm/i915/display/intel_display_debugfs.c | 44 +++ 1 file changed, 44 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c

[Intel-gfx] [PATCH 2/2] drm/i915/display/debug: Expose Dither status via debugfs

2021-05-26 Thread Bhanuprakash Modem
It's useful to know the dithering state & pipe bpc for IGT testing. This patch will expose the dithering state for the crtc via a debugfs file "dither". Example usage: cat /sys/kernel/debug/dri/0/crtc-0/dither Cc: Uma Shankar Cc: Nischal Varide Cc: Matt Roper Signed-off-by:

[Intel-gfx] [PATCH 1/2] drm/i915/xelpd: Enabling dithering after the CC1

2021-05-26 Thread Bhanuprakash Modem
From: Nischal Varide If the panel is 12bpc then Dithering is not enabled in the Legacy dithering block , instead its Enabled after the C1 CC1 pipe post color space conversion.For a 6bpc pannel Dithering is enabled in Legacy block. Signed-off-by: Nischal Varide --- drivers/gpu/drm/i915/display/

[Intel-gfx] [PATCH 0/2] drm/i915/xelpd: Enabling dithering after the CC1

2021-05-26 Thread Bhanuprakash Modem
If the panel is 12bpc then Dithering is not enabled in the Legacy dithering block , instead its Enabled after the C1 CC1 pipe post color space conversion.For a 6bpc pannel Dithering is enabled in Legacy block. Bhanuprakash Modem (1): drm/i915/display/debug: Expose Dither status via debugfs

[Intel-gfx] [V3] drm/i915/display: Fix state mismatch in drm infoframe

2021-04-22 Thread Bhanuprakash Modem
encoder->type check V3: * Remove internal reviews Cc: Uma Shankar Cc: Ville Syrjälä Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_dp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display

[Intel-gfx] [V2] drm/i915/display: Fix state mismatch in drm infoframe

2021-04-22 Thread Bhanuprakash Modem
encoder->type check Cc: Uma Shankar Cc: Ville Syrjälä Signed-off-by: Bhanuprakash Modem Reviewed-by: Uma Shankar (V1) --- drivers/gpu/drm/i915/display/intel_dp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH] drm/i915/display: Fix state mismatch in drm infoframe

2021-04-19 Thread Bhanuprakash Modem
ff-by: Bhanuprakash Modem Reviewed-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_dp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 5ee953aaa00c..91e67735a45c 100644 --- a/dr

[Intel-gfx] [PATCH 5/7] drm/i915/display: Extract ilk_read_csc()

2021-03-21 Thread Bhanuprakash Modem
For ilk+, add hw read out to create hw blob of ctm coeff values. Cc: Swati Sharma Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_color.c | 52 ++ 1 file changed, 52 insertions(+) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 6/7] drm/i915/display: Extract icl_read_csc()

2021-03-21 Thread Bhanuprakash Modem
For icl+, add hw read out to create hw blob of ctm coeff values. Cc: Swati Sharma Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_color.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 4/7] drm/i915/display: Extract chv_read_csc()

2021-03-21 Thread Bhanuprakash Modem
For Cherryview, add hw read out to create hw blob of ctm coeff values. Cc: Swati Sharma Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_color.c | 47 ++ 1 file changed, 47 insertions(+) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 7/7] FOR_TESTING_ONLY: Print coeffs of hw and sw CTM

2021-03-21 Thread Bhanuprakash Modem
Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_color.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_color.c b/drivers/gpu/drm/i915/display/intel_color.c index 8f9727553c45..caf4c3442b9e 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 3/7] drm/i915/display: Add macro to compare hw/sw CSC matrix

2021-03-21 Thread Bhanuprakash Modem
Add macro to compare hw/sw CSC coeff values. First need to check whether hw/sw csc enable and csc mode matches or not. If not no need to compare coeff values, if matches then only compare. Cc: Swati Sharma Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 2/7] drm/i915/display: Add func to compare hw/sw CSC matrix

2021-03-21 Thread Bhanuprakash Modem
Add func intel_csc_equal() to compare hw/sw CSC coeff values. Cc: Swati Sharma Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display/intel_color.c | 51 +++--- drivers/gpu/drm/i915/display/intel_color.h | 3 ++ 2 files changed, 47 insertions(+), 7

[Intel-gfx] [PATCH 1/7] drm/i915/display: Introduce vfunc read_csc() to create hw ctm

2021-03-21 Thread Bhanuprakash Modem
In this patch, a vfunc read_csc() is introduced to create a hw ctm i.e. ctm having values read from CSC registers which will later be used to compare with sw ctm to validate CSC coeff values. Cc: Swati Sharma Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 0/7] drm/i915: Add state checker for CSC coeff values

2021-03-21 Thread Bhanuprakash Modem
In this patch series, added state checker to validate CSC. This reads hardware state, and compares the originally requested state(s/w). This is done for chv, ilk, glk and their variant platforms. Rest of the platforms will be enabled on top of this later. Signed-off-by: Bhanuprakash Modem

[Intel-gfx] [PATCH 2/2] i915/debug: Expose Max BPC info via debugfs

2020-07-30 Thread Bhanuprakash Modem
[Why] It's useful to know the max supported panel BPC for IGT testing. [How] Expose the max supported BPC for the panel via a debugfs file on the connector, "output_bpc". Example usage: cat /sys/kernel/debug/dri/0/DP-1/output_bpc Cc: Uma Shankar Cc: Rodrigo Vivi Signed-off-b

[Intel-gfx] [PATCH 0/2] Expose crtc dither state and connector max bpc via debugfs

2020-07-30 Thread Bhanuprakash Modem
ering state for the crtc via a debugfs file "dither". Example: cat /sys/kernel/debug/dri/0/crtc-0/dither Test-with: 20200729184152.9236-1-bhanuprakash.mo...@intel.com Bhanuprakash Modem (2): i915/debug: Expose crtc dither state via debugfs i915/debug: Expose Max BPC info via debug

[Intel-gfx] [PATCH 1/2] i915/debug: Expose crtc dither state via debugfs

2020-07-30 Thread Bhanuprakash Modem
[Why] It's useful to know the dithering state for IGT testing. [How] Expose the dithering state for the crtc via a debugfs file "dither". Example usage: cat /sys/kernel/debug/dri/0/crtc-0/dither Cc: Uma Shankar Cc: Rodrigo Vivi Signed-off-by: Bhanuprakash Modem --- drive

[Intel-gfx] [PATCH 0/2] Expose crtc dither state and connector max bpc via debugfs

2020-07-25 Thread Bhanuprakash Modem
ering state for the crtc via a debugfs file "dither". Example: cat /sys/kernel/debug/dri/0/crtc-0/dither Test-with: 20200726122944.9864-1-bhanuprakash.mo...@intel.com Bhanuprakash Modem (2): i915/debug: Expose crtc dither state via debugfs i915/debug: Expose Max BPC info via debug

[Intel-gfx] [PATCH 2/2] i915/debug: Expose Max BPC info via debugfs

2020-07-25 Thread Bhanuprakash Modem
[Why] It's useful to know the max supported panel BPC for IGT testing. [How] Expose the max supported BPC for the panel via a debugfs file on the connector, "output_bpc". Example usage: cat /sys/kernel/debug/dri/0/DP-1/output_bpc Cc: Uma Shankar Signed-off-by: Bhanuprakash Mode

[Intel-gfx] [PATCH 1/2] i915/debug: Expose crtc dither state via debugfs

2020-07-25 Thread Bhanuprakash Modem
[Why] It's useful to know the dithering state for IGT testing. [How] Expose the dithering state for the crtc via a debugfs file "dither". Example usage: cat /sys/kernel/debug/dri/0/crtc-0/dither Cc: Uma Shankar Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/i915

[Intel-gfx] [PATCH 2/2] i915/debug: Expose Max BPC info via debugfs

2020-07-20 Thread Bhanuprakash Modem
[Why] It's useful to know the max supported panel BPC for IGT testing. [How] Expose the max supported BPC for the panel via a debugfs file on the connector, "output_bpc". Example usage: cat /sys/kernel/debug/dri/0/DP-1/output_bpc Signed-off-by: Bhanuprakash Modem --- .../d

[Intel-gfx] [PATCH 1/2] i915/debug: Expose crtc dither state via debugfs

2020-07-20 Thread Bhanuprakash Modem
[Why] It's useful to know the dithering state for IGT testing. [How] Expose the dithering state for the crtc via a debugfs file "dither". Example usage: cat /sys/kernel/debug/dri/0/crtc-0/dither Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/i915

[Intel-gfx] [PATCH 0/2] Expose crtc dither state and connector max bpc via debugfs

2020-07-20 Thread Bhanuprakash Modem
ering state for the crtc via a debugfs file "dither". Example: cat /sys/kernel/debug/dri/0/crtc-0/dither Test-with: 20200720165011.23918-1-bhanuprakash.mo...@intel.com Bhanuprakash Modem (2): i915/debug: Expose crtc dither state via debugfs i915/debug: Expose Max BPC info via debug

[Intel-gfx] [PATCH 0/2] Expose crtc dither state and connector max bpc via debugfs

2020-07-20 Thread Bhanuprakash Modem
ering state for the crtc via a debugfs file "dither". Example: cat /sys/kernel/debug/dri/0/crtc-0/dither Test-with: 20200720165011.23918-1-bhanuprakash.mo...@intel.com Bhanuprakash Modem (2): i915/debug: Expose crtc dither state via debugfs i915/debug: Expose Max BPC info via debug

[Intel-gfx] [PATCH 2/2] i915/debug: Expose Max BPC info via debugfs

2020-07-20 Thread Bhanuprakash Modem
[Why] It's useful to know the max supported panel BPC for IGT testing. [How] Expose the max supported BPC for the panel via a debugfs file on the connector, "output_bpc". Example usage: cat /sys/kernel/debug/dri/0/DP-1/output_bpc Signed-off-by: Bhanuprakash Modem --- .../d

[Intel-gfx] [PATCH 1/2] i915/debug: Expose crtc dither state via debugfs

2020-07-20 Thread Bhanuprakash Modem
[Why] It's useful to know the dithering state for IGT testing. [How] Expose the dithering state for the crtc via a debugfs file "dither". Example usage: cat /sys/kernel/debug/dri/0/crtc-0/dither Signed-off-by: Bhanuprakash Modem --- drivers/gpu/drm/i915/i915

[Intel-gfx] [v9 2/3] drm/debug: Expose connector VRR monitor range via debugfs

2020-06-21 Thread Bhanuprakash Modem
fs v6: * Rebase (manasi) v7: * Fix cmpilation due to rebase v8: * Move debugfs node creation logic to DRM (Emil) * Remove AMD specific logic (Emil) v9: * Seperate patch for removal of AMD specific logic (Manasi) Signed-off-by: Bhanuprakash Modem Signed-off-by: Manasi Navare Cc: Jani Nikula Cc: Vi

[Intel-gfx] [v6 1/3] drm/i915/dp: Attach and set drm connector VRR property

2020-06-21 Thread Bhanuprakash Modem
From: Aditya Swarup This function sets the VRR property for connector based on the platform support, EDID monitor range and DP sink DPCD capability of outputing video without msa timing information. v5: * Fix the vrr prop not being set in kernel (Manasi) * Unset the prop on connector disconnect

[Intel-gfx] [v1 3/3] Revert "drm/amd/display: Expose connector VRR range via debugfs"

2020-06-21 Thread Bhanuprakash Modem
As both VRR min and max are already part of drm_display_info, drm can expose this VRR range for each connector. Hence this logic should move to core DRM. This reverts commit 727962f030c23422a01e8b22d0f463815fb15ec4. Signed-off-by: Bhanuprakash Modem Cc: Nicholas Kazlauskas Cc: Harry Wentland

[Intel-gfx] [v6 0/3] VRR capable attach prop in i915, VRR debugfs

2020-06-21 Thread Bhanuprakash Modem
drm connector VRR property Bhanuprakash Modem (2): drm/debug: Expose connector VRR monitor range via debugfs Revert "drm/amd/display: Expose connector VRR range via debugfs" .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 20 -- drivers/gpu/drm/drm_debugfs.c

[Intel-gfx] [v6 2/3] drm/i915/dp: Attach and set drm connector VRR property

2020-06-19 Thread Bhanuprakash Modem
From: Aditya Swarup This function sets the VRR property for connector based on the platform support, EDID monitor range and DP sink DPCD capability of outputing video without msa timing information. v5: * Fix the vrr prop not being set in kernel (Manasi) * Unset the prop on connector disconnect

[Intel-gfx] [v6 0/3] VRR capable attach prop in i915, DPCD helper, VRR debugfs

2020-06-19 Thread Bhanuprakash Modem
rough debugfs Aditya Swarup (1): drm/i915/dp: Attach and set drm connector VRR property Bhanuprakash Modem (1): drm/debug: Expose connector VRR monitor range via debugfs Manasi Navare (1): drm/dp: DRM DP helper for reading Ignore MSA from DPCD .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

[Intel-gfx] [v8 3/3] drm/debug: Expose connector VRR monitor range via debugfs

2020-06-19 Thread Bhanuprakash Modem
fs v6: * Rebase (manasi) v7: * Fix cmpilation due to rebase v8: * Move debugfs node creation logic to DRM (Emil) * Remove AMD specific logic (Emil) Signed-off-by: Bhanuprakash Modem Signed-off-by: Manasi Navare Cc: Jani Nikula Cc: Ville Syrjälä Cc: Harry Wentland --- .../amd/di

[Intel-gfx] [v6 1/3] drm/dp: DRM DP helper for reading Ignore MSA from DPCD

2020-06-19 Thread Bhanuprakash Modem
From: Manasi Navare DP sink device sets the Ignore MSA bit in its DP_DOWNSTREAM_PORT_COUNT register to indicate its ability to ignore the MSA video timing parameters and its ability to support seamless video timing change over a range of timing exposed by DisplayID and EDID. This is required for

[Intel-gfx] [v6 2/3] drm/i915/dp: Attach and set drm connector VRR property

2020-06-19 Thread Bhanuprakash Modem
From: Aditya Swarup This function sets the VRR property for connector based on the platform support, EDID monitor range and DP sink DPCD capability of outputing video without msa timing information. v5: * Fix the vrr prop not being set in kernel (Manasi) * Unset the prop on connector disconnect

[Intel-gfx] [v8 3/3] drm/debug: Expose connector VRR monitor range via debugfs

2020-06-19 Thread Bhanuprakash Modem
fs v6: * Rebase (manasi) v7: * Fix cmpilation due to rebase v8: * Move debugfs node creation logic to DRM * Remove AMD specific logic Signed-off-by: Bhanuprakash Modem Signed-off-by: Manasi Navare Cc: Jani Nikula Cc: Ville Syrjälä Cc: Harry Wentland --- .../amd/display/amdgpu_dm/amdgpu_dm

[Intel-gfx] [v6 1/3] drm/dp: DRM DP helper for reading Ignore MSA from DPCD

2020-06-19 Thread Bhanuprakash Modem
From: Manasi Navare DP sink device sets the Ignore MSA bit in its DP_DOWNSTREAM_PORT_COUNT register to indicate its ability to ignore the MSA video timing parameters and its ability to support seamless video timing change over a range of timing exposed by DisplayID and EDID. This is required for

[Intel-gfx] [v6 0/3] VRR capable attach prop in i915, DPCD helper, VRR debugfs

2020-06-19 Thread Bhanuprakash Modem
rough debugfs Aditya Swarup (1): drm/i915/dp: Attach and set drm connector VRR property Bhanuprakash Modem (1): drm/debug: Expose connector VRR monitor range via debugfs Manasi Navare (1): drm/dp: DRM DP helper for reading Ignore MSA from DPCD .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c

[Intel-gfx] [v5, 1/3] drm/dp: DRM DP helper for reading Ignore MSA from DPCD

2020-04-22 Thread bhanuprakash . modem
From: Manasi Navare From: Manasi Navare DP sink device sets the Ignore MSA bit in its DP_DOWNSTREAM_PORT_COUNT register to indicate its ability to ignore the MSA video timing parameters and its ability to support seamless video timing change over a range of timing exposed by DisplayID and EDID.

[Intel-gfx] [v5, 2/3] drm/i915/dp: Attach and set drm connector VRR property

2020-04-22 Thread bhanuprakash . modem
From: Aditya Swarup From: Aditya Swarup This function sets the VRR property for connector based on the platform support, EDID monitor range and DP sink DPCD capability of outputing video without msa timing information. v4: * Rebase (Mansi) v3: * intel_dp_is_vrr_capable can be used for debugfs,

[Intel-gfx] [v5, 3/3] drm/i915/dp: Expose connector VRR info via debugfs

2020-04-22 Thread bhanuprakash . modem
From: Bhanuprakash Modem [Why] It's useful to know the min and max vrr range for IGT testing. [How] Expose the min and max vfreq for the connector via a debugfs file on the connector, "vrr_range". Example usage: cat /sys/kernel/debug/dri/0/DP-1/vrr_range v4: * Rebase (