[Intel-xe] [PATCH] drm/xe/display: Print display ip version

Jani Nikula jani.nikula at linux.intel.com
Fri Sep 8 16:50:45 UTC 2023


On Fri, 08 Sep 2023, Lucas De Marchi <lucas.demarchi at intel.com> wrote:
> On Fri, Sep 08, 2023 at 01:11:43PM +0300, Jani Nikula wrote:
>>On Wed, 06 Sep 2023, Lucas De Marchi <lucas.demarchi at intel.com> wrote:
>>> On Wed, Sep 06, 2023 at 11:04:57AM -0700, Matt Roper wrote:
>>>>On Wed, Sep 06, 2023 at 11:34:00AM +0530, Balasubramani Vivekanandan wrote:
>>>>> Print display ip version during module load
>>>>>
>>>>> Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan at intel.com>
>>>>> ---
>>>>>  drivers/gpu/drm/xe/xe_pci.c | 5 +++++
>>>>>  1 file changed, 5 insertions(+)
>>>>>
>>>>> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
>>>>> index 60f3474844e2..fc01544346d5 100644
>>>>> --- a/drivers/gpu/drm/xe/xe_pci.c
>>>>> +++ b/drivers/gpu/drm/xe/xe_pci.c
>>>>> @@ -844,6 +844,11 @@ static int xe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
>>>>>  		str_yes_no(xe->info.enable_display),
>>>>>  		xe->info.dma_mask_size, xe->info.tile_count);
>>>>>
>>>>> +	if (xe->info.enable_display)
>>>>> +		drm_dbg(&xe->drm, "Display: %d.%02d\n",
>>>>> +			xe->info.display_runtime.ip.ver,
>>>>> +			xe->info.display_runtime.ip.rel);
>>>>> +
>>>>
>>>>Rather than printing the display version here, it might be better to
>>>>call intel_display_device_info_print() somewhere appropriate which will
>>>
>>> Somewhere appropriate would be xe_display.c, so it only gets printed if
>>> there is display.... or if it's moved to a shared function in i915
>>> itself that we already call.
>>
>>https://lore.kernel.org/r/87r0nbheil.fsf@intel.com
>
> not sure if you are confirming what I said or saying it was wrong...
> A call to intel_display_device_info_print() in xe_display.c seems very
> reasonable.

Just trying to tie two threads of review into one in a rush. :)

Just calling intel_display_device_info_print() from somewhere, anywhere
in xe is an improvement. But perhaps it could be called from i915
display code after it's all been initialized. *shrug*

BR,
Jani.

-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the Intel-xe mailing list