drivers/gpu/drm/msm/adreno/a5xx_preempt.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/msm/adreno/a5xx_preempt.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/msm/adreno/a5xx_preempt.c- Extension
.c- Size
- 9345 bytes
- Lines
- 330
- 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
msm_gem.ha5xx_gpu.h
Detected Declarations
function try_preempt_statefunction set_preempt_statefunction update_wptrfunction a5xx_preempt_timerfunction a5xx_preempt_triggerfunction a5xx_preempt_irqfunction a5xx_preempt_hw_initfunction preempt_init_ringfunction a5xx_preempt_finifunction a5xx_preempt_init
Annotated Snippet
if (preempt_init_ring(a5xx_gpu, gpu->rb[i])) {
/*
* On any failure our adventure is over. Clean up and
* set nr_rings to 1 to force preemption off
*/
a5xx_preempt_fini(gpu);
gpu->nr_rings = 1;
return;
}
}
spin_lock_init(&a5xx_gpu->preempt_start_lock);
timer_setup(&a5xx_gpu->preempt_timer, a5xx_preempt_timer, 0);
}
Annotation
- Immediate include surface: `msm_gem.h`, `a5xx_gpu.h`.
- Detected declarations: `function try_preempt_state`, `function set_preempt_state`, `function update_wptr`, `function a5xx_preempt_timer`, `function a5xx_preempt_trigger`, `function a5xx_preempt_irq`, `function a5xx_preempt_hw_init`, `function preempt_init_ring`, `function a5xx_preempt_fini`, `function a5xx_preempt_init`.
- 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.