diff options
author | José Roberto de Souza <[email protected]> | 2018-11-27 23:28:38 -0800 |
---|---|---|
committer | José Roberto de Souza <[email protected]> | 2018-11-30 09:58:02 -0800 |
commit | f0ad62a631e040ae4413286a4b46a90c5ce42d07 (patch) | |
tree | 04de8bc4e597fb8a5f5928bfbb1cfbd4e5e7630e /scripts/bpf_helpers_doc.py | |
parent | b9f78d675230a9f65611600496235cdbd369d55d (diff) |
drm/i915/psr: Get pipe id following atomic guidelines
As stated in struct drm_encoder, crtc field should only be used
by non-atomic drivers.
So here caching the pipe id in intel_psr_enable() what is way more
simple and efficient than at every call to
intel_psr_flush()/invalidate() get the
drm.mode_config.connection_mutex lock to safely be able to get the
pipe id by reading drm_connector_state.crtc.
This should fix the null pointer dereference crash below as the
previous way to get the pipe id was prone to race conditions.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105959
Cc: Dhinakaran Pandiyan <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Signed-off-by: José Roberto de Souza <[email protected]>
Reviewed-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions