mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
drm/{i915, xe}/panic: move panic handling to parent interface
Move the panic handling to the display parent interface, making display more independent of i915 and xe driver implementations. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/e27eca5424479e8936b786018d0af19a34f839f6.1765474612.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
@@ -55,7 +55,6 @@
|
||||
#include "intel_fb.h"
|
||||
#include "intel_fb_pin.h"
|
||||
#include "intel_fbdev.h"
|
||||
#include "intel_panic.h"
|
||||
#include "intel_parent.h"
|
||||
#include "intel_plane.h"
|
||||
#include "intel_psr.h"
|
||||
@@ -1344,7 +1343,7 @@ static void intel_panic_flush(struct drm_plane *_plane)
|
||||
const struct intel_crtc_state *crtc_state = to_intel_crtc_state(crtc->base.state);
|
||||
const struct intel_framebuffer *fb = to_intel_framebuffer(plane_state->hw.fb);
|
||||
|
||||
intel_panic_finish(fb->panic);
|
||||
intel_parent_panic_finish(display, fb->panic);
|
||||
|
||||
if (crtc_state->enable_psr2_sel_fetch) {
|
||||
/* Force a full update for psr2 */
|
||||
@@ -1425,7 +1424,7 @@ static int intel_get_scanout_buffer(struct drm_plane *plane,
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
sb->private = fb;
|
||||
ret = intel_panic_setup(fb->panic, sb);
|
||||
ret = intel_parent_panic_setup(display, fb->panic, sb);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user