drivers/gpu/drm/i915/i915_panic.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/i915_panic.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/i915_panic.c- Extension
.c- Size
- 915 bytes
- Lines
- 36
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
drm/drm_panic.hdrm/intel/display_parent_interface.hdisplay/intel_display_types.hdisplay/intel_fb.hgem/i915_gem_object.hi915_panic.h
Detected Declarations
function intel_panic_setupfunction intel_panic_finish
Annotated Snippet
// SPDX-License-Identifier: MIT
/* Copyright © 2025 Intel Corporation */
#include <drm/drm_panic.h>
#include <drm/intel/display_parent_interface.h>
#include "display/intel_display_types.h"
#include "display/intel_fb.h"
#include "gem/i915_gem_object.h"
#include "i915_panic.h"
static struct intel_panic *intel_panic_alloc(void)
{
return i915_gem_object_alloc_panic();
}
static 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);
}
static void intel_panic_finish(struct intel_panic *panic)
{
return i915_gem_object_panic_finish(panic);
}
const struct intel_display_panic_interface i915_display_panic_interface = {
.alloc = intel_panic_alloc,
.setup = intel_panic_setup,
.finish = intel_panic_finish,
};
Annotation
- Immediate include surface: `drm/drm_panic.h`, `drm/intel/display_parent_interface.h`, `display/intel_display_types.h`, `display/intel_fb.h`, `gem/i915_gem_object.h`, `i915_panic.h`.
- Detected declarations: `function intel_panic_setup`, `function intel_panic_finish`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.