[PATCH] drm/tegra: Remove existing framebuffer only if we support display
Javier Martinez Canillas
javierm at redhat.com
Thu Sep 7 08:47:49 UTC 2023
Thomas Zimmermann <tzimmermann at suse.de> writes:
[...]
>> That's a good point. However I recall from earlier attempts at doing
>> something like this in Nouveau (although this is now very long ago) that
>> it's not very easy. The problem, as I recall, is that the driver is a
>> singleton, so we would essentially be supporting either modesetting or
>> not, for any device in the system.
>
> Take a look at struct drm_device.driver_features. It let's you clear the
> flags that your device doesn't support.
>
> https://elixir.bootlin.com/linux/v6.5/source/include/drm/drm_device.h#L128
>
That sounds indeed as the best approach and I see that at least i915 does it:
https://elixir.bootlin.com/linux/v6.5/source/drivers/gpu/drm/i915/intel_device_info.c#L418
> Best regards
> Thomas
>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
More information about the dri-devel
mailing list