[PATCH v5 04/12] drm/framebuffer: Add framebuffer debugfs file
Noralf Trønnes
noralf at tronnes.org
Mon Nov 13 22:12:06 UTC 2017
Den 13.11.2017 22.33, skrev Chris Wilson:
> Quoting Noralf Trønnes (2017-11-13 19:54:43)
>> Den 11.11.2017 19.55, skrev Chris Wilson:
>>> Quoting Noralf Trønnes (2017-11-07 19:13:40)
>>>> Add debugfs file that dumps info about the framebuffers and its planes.
>>>> Also dump info about any connected gem object(s).
>>> This isn't too hot for non-modesetting drm drivers.
> Just to be clear; this is currently on fire in i915's CI. As
> framebuffer-info is installed for vgem and vgem hasn't initialised any
> of the data structs being inspected...
Ok, so I have broken vgem :-(
drm_framebuffer_info() takes dev->mode_config.fb_lock which hasn't been
initialized because vgem doesn't call drm_mode_config_init().
drm_mode_config_init() in addition to initializing various thing also
calls drm_mode_create_standard_properties().
Can we call drm_mode_config_init() in vgem or is this a no-go because of
the properties? Do you see a solution to this?
Sorry about the fallout.
Noralf.
More information about the dri-devel
mailing list