Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
28 lines
661 B
C
28 lines
661 B
C
// SPDX-License-Identifier: MIT
|
|
/* Copyright © 2025 Intel Corporation */
|
|
|
|
#include <drm/drm_panic.h>
|
|
|
|
#include "gem/i915_gem_object.h"
|
|
#include "intel_display_types.h"
|
|
#include "intel_fb.h"
|
|
#include "intel_panic.h"
|
|
|
|
struct intel_panic *intel_panic_alloc(void)
|
|
{
|
|
return i915_gem_object_alloc_panic();
|
|
}
|
|
|
|
int intel_panic_setup(struct intel_panic *panic, struct drm_scanout_buffer *sb)
|
|
{
|
|
struct intel_framebuffer *fb = sb->private;
|
|
struct drm_gem_object *obj = intel_fb_bo(&fb->base);
|
|
|
|
return i915_gem_object_panic_setup(panic, sb, obj, fb->panic_tiling);
|
|
}
|
|
|
|
void intel_panic_finish(struct intel_panic *panic)
|
|
{
|
|
return i915_gem_object_panic_finish(panic);
|
|
}
|