[Intel-gfx] [PATCH v4 1/2] drm/i915/display: debugfs entry to list display capabilities

Jani Nikula jani.nikula at linux.intel.com
Wed Oct 25 12:08:02 UTC 2023


On Thu, 19 Oct 2023, "Borah, Chaitanya Kumar" <chaitanya.kumar.borah at intel.com> wrote:
>> -----Original Message-----
>> From: Govindapillai, Vinod <vinod.govindapillai at intel.com>
>> Sent: Wednesday, October 18, 2023 3:57 PM
>> To: intel-gfx at lists.freedesktop.org
>> Cc: Govindapillai, Vinod <vinod.govindapillai at intel.com>; Sharma, Swati2
>> <swati2.sharma at intel.com>; Borah, Chaitanya Kumar
>> <chaitanya.kumar.borah at intel.com>
>> Subject: [PATCH v4 1/2] drm/i915/display: debugfs entry to list display
>> capabilities
>> 
>> Create a separate debugfs entry to list the display capabilities IGT can rely on
>> this debugfs entry for tests that depend on display device and display runtime
>> info for both xe and i915 drivers.
>> 
>> v2: rename the entry to i915_display_capabilities (Chaitanya)
>> 
>> Signed-off-by: Vinod Govindapillai <vinod.govindapillai at intel.com>
>
> Assuming that it has no other impact in user-space. The change looks LGTM.
>
> Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah at intel.com>

Thanks for the patches and review, pushed the first patch.

Please get the igt change merged before pushing the second patch.

BR,
Jani.


>
>> ---
>>  drivers/gpu/drm/i915/display/intel_display_debugfs.c | 12 ++++++++++++
>>  1 file changed, 12 insertions(+)
>> 
>> diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
>> b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
>> index fbe75d47a165..b0248dfa8dea 100644
>> --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
>> +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
>> @@ -641,6 +641,17 @@ static int i915_display_info(struct seq_file *m, void
>> *unused)
>>  	return 0;
>>  }
>> 
>> +static int i915_display_capabilities(struct seq_file *m, void *unused)
>> +{
>> +	struct drm_i915_private *i915 = node_to_i915(m->private);
>> +	struct drm_printer p = drm_seq_file_printer(m);
>> +
>> +	intel_display_device_info_print(DISPLAY_INFO(i915),
>> +					DISPLAY_RUNTIME_INFO(i915), &p);
>> +
>> +	return 0;
>> +}
>> +
>>  static int i915_shared_dplls_info(struct seq_file *m, void *unused)  {
>>  	struct drm_i915_private *dev_priv = node_to_i915(m->private); @@
>> -1059,6 +1070,7 @@ static const struct drm_info_list
>> intel_display_debugfs_list[] = {
>>  	{"i915_gem_framebuffer", i915_gem_framebuffer_info, 0},
>>  	{"i915_power_domain_info", i915_power_domain_info, 0},
>>  	{"i915_display_info", i915_display_info, 0},
>> +	{"i915_display_capabilities", i915_display_capabilities, 0},
>>  	{"i915_shared_dplls_info", i915_shared_dplls_info, 0},
>>  	{"i915_dp_mst_info", i915_dp_mst_info, 0},
>>  	{"i915_ddb_info", i915_ddb_info, 0},
>> --
>> 2.34.1
>

-- 
Jani Nikula, Intel


More information about the Intel-gfx mailing list