diff options
| author | Ville Syrjälä <[email protected]> | 2024-03-25 19:57:38 +0200 |
|---|---|---|
| committer | Ville Syrjälä <[email protected]> | 2024-03-26 13:42:20 +0200 |
| commit | c1289a5c3594cf04caa94ebf0edeb50c62009f1f (patch) | |
| tree | afd32a7bb4cd23db17f089fc71911b94cefc20d9 /tools/perf/scripts/python | |
| parent | 1a8864822a90eedc3185d4775070a1fb47f54524 (diff) | |
drm/i915: Pre-populate the cursor physical dma address
Calling i915_gem_object_get_dma_address() from the vblank
evade critical section triggers might_sleep().
While we know that we've already pinned the framebuffer
and thus i915_gem_object_get_dma_address() will in fact
not sleep in this case, it seems reasonable to keep the
unconditional might_sleep() for maximum coverage.
So let's instead pre-populate the dma address during
fb pinning, which all happens before we enter the
vblank evade critical section.
We can use u32 for the dma address as this class of
hardware doesn't support >32bit addresses.
Cc: [email protected]
Fixes: 0225a90981c8 ("drm/i915: Make cursor plane registers unlocked")
Reported-by: Borislav Petkov <[email protected]>
Closes: https://lore.kernel.org/intel-gfx/20240227100342.GAZd2zfmYcPS_SndtO@fat_crate.local/
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Tested-by: Borislav Petkov (AMD) <[email protected]>
Reviewed-by: Chaitanya Kumar Borah <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions