drivers/gpu/drm/i915/display/intel_display_reset.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/intel_display_reset.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/display/intel_display_reset.c- Extension
.c- Size
- 3209 bytes
- Lines
- 127
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/debugfs.hdrm/drm_atomic_helper.hdrm/drm_print.hintel_clock_gating.hintel_cx0_phy.hintel_display_core.hintel_display_driver.hintel_display_reset.hintel_display_types.hintel_display_utils.hintel_hotplug.hintel_pps.h
Detected Declarations
function intel_display_reset_supportedfunction intel_display_reset_testfunction intel_display_reset_preparefunction intel_display_reset_finishfunction intel_display_reset_debugfs_register
Annotated Snippet
if (ret) {
drm_WARN_ON(display->drm, ret == -EDEADLK);
drm_err(display->drm,
"Restoring old state failed with %i\n", ret);
}
} else {
/*
* The display has been reset as well,
* so need a full re-initialization.
*/
intel_pps_unlock_regs_wa(display);
intel_display_driver_init_hw(display);
intel_clock_gating_init(display->drm);
intel_cx0_pll_power_save_wa(display);
intel_hpd_init(display);
ret = __intel_display_driver_resume(display, state, ctx);
if (ret)
drm_err(display->drm,
"Restoring old state failed with %i\n", ret);
intel_hpd_poll_disable(display);
}
drm_atomic_commit_put(state);
unlock:
drm_modeset_drop_locks(ctx);
drm_modeset_acquire_fini(ctx);
mutex_unlock(&display->drm->mode_config.mutex);
}
void intel_display_reset_debugfs_register(struct intel_display *display)
{
debugfs_create_u32("intel_display_reset_count", 0400,
display->drm->debugfs_root,
&display->reset.count);
}
Annotation
- Immediate include surface: `linux/debugfs.h`, `drm/drm_atomic_helper.h`, `drm/drm_print.h`, `intel_clock_gating.h`, `intel_cx0_phy.h`, `intel_display_core.h`, `intel_display_driver.h`, `intel_display_reset.h`.
- Detected declarations: `function intel_display_reset_supported`, `function intel_display_reset_test`, `function intel_display_reset_prepare`, `function intel_display_reset_finish`, `function intel_display_reset_debugfs_register`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.