drivers/gpu/drm/imagination/pvr_fw_startstop.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/imagination/pvr_fw_startstop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/imagination/pvr_fw_startstop.c- Extension
.c- Size
- 10810 bytes
- Lines
- 356
- 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
pvr_device.hpvr_fw.hpvr_fw_meta.hpvr_fw_startstop.hpvr_rogue_cr_defs.hpvr_rogue_meta.hpvr_vm.hlinux/compiler.hlinux/delay.hlinux/ktime.hlinux/types.h
Detected Declarations
function rogue_axi_ace_list_initfunction rogue_bif_initfunction rogue_slc_initfunction pvr_fw_startfunction pvr_fw_stop
Annotated Snippet
if (!skip_garten_idle) {
err = pvr_cr_poll_reg32(pvr_dev, ROGUE_CR_SIDEKICK_IDLE,
ROGUE_CR_SIDEKICK_IDLE_GARTEN_EN,
ROGUE_CR_SIDEKICK_IDLE_GARTEN_EN,
POLL_TIMEOUT_USEC);
if (err)
return err;
}
} else {
/*
* As FW core has been moved from SIDEKICK to the new MARS domain, checking
* idle bits for CPU & System Arbiter excluding SOCIF which will never be
* idle if Host polling on this register
*/
err = pvr_cr_poll_reg32(pvr_dev, ROGUE_CR_MARS_IDLE,
ROGUE_CR_MARS_IDLE_CPU_EN |
ROGUE_CR_MARS_IDLE_MH_SYSARB0_EN,
ROGUE_CR_MARS_IDLE_CPU_EN |
ROGUE_CR_MARS_IDLE_MH_SYSARB0_EN,
POLL_TIMEOUT_USEC);
if (err)
return err;
}
if (PVR_HAS_FEATURE(pvr_dev, pbe2_in_xe))
pvr_cr_write64(pvr_dev, ROGUE_CR_SOFT_RESET,
ROGUE_CR_SOFT_RESET__PBE2_XE__MASKFULL);
else
pvr_cr_write64(pvr_dev, ROGUE_CR_SOFT_RESET, ROGUE_CR_SOFT_RESET_MASKFULL);
return 0;
}
Annotation
- Immediate include surface: `pvr_device.h`, `pvr_fw.h`, `pvr_fw_meta.h`, `pvr_fw_startstop.h`, `pvr_rogue_cr_defs.h`, `pvr_rogue_meta.h`, `pvr_vm.h`, `linux/compiler.h`.
- Detected declarations: `function rogue_axi_ace_list_init`, `function rogue_bif_init`, `function rogue_slc_init`, `function pvr_fw_start`, `function pvr_fw_stop`.
- 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.