drivers/gpu/drm/i915/intel_device_info.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/intel_device_info.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/intel_device_info.h- Extension
.h- Size
- 6802 bytes
- Lines
- 269
- 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
uapi/drm/i915_drm.hintel_step.hgt/intel_engine_types.hgt/intel_context_types.hgt/intel_sseu.hgem/i915_gem_object_types.h
Detected Declarations
struct drm_printerstruct drm_i915_privatestruct intel_gt_definitionstruct intel_ip_versionstruct intel_runtime_infostruct intel_device_infostruct intel_driver_capsenum intel_platformenum intel_ppgtt_type
Annotated Snippet
struct intel_ip_version {
u8 ver;
u8 rel;
u8 step;
};
struct intel_runtime_info {
/*
* Single "graphics" IP version that represents
* render, compute and copy behavior.
*/
struct {
struct intel_ip_version ip;
} graphics;
struct {
struct intel_ip_version ip;
} media;
/*
* Platform mask is used for optimizing or-ed IS_PLATFORM calls into
* single runtime conditionals, and also to provide groundwork for
* future per platform, or per SKU build optimizations.
*
* Array can be extended when necessary if the corresponding
* BUILD_BUG_ON is hit.
*/
u32 platform_mask[2];
u16 device_id;
struct intel_step_info step;
unsigned int page_sizes; /* page sizes supported by the HW */
enum intel_ppgtt_type ppgtt_type;
unsigned int ppgtt_size; /* log2, e.g. 31/32/48 bits */
bool has_pooled_eu;
};
struct intel_device_info {
enum intel_platform platform;
unsigned int dma_mask_size; /* available DMA address bits */
const struct intel_gt_definition *extra_gt_list;
u8 gt; /* GT number, 0 if undefined */
intel_engine_mask_t platform_engine_mask; /* Engines supported by the HW */
u32 memory_regions; /* regions supported by the HW */
#define DEFINE_FLAG(name) u8 name:1
DEV_INFO_FOR_EACH_FLAG(DEFINE_FLAG);
#undef DEFINE_FLAG
/*
* Initial runtime info. Do not access outside of i915_driver_create().
*/
const struct intel_runtime_info __runtime;
u32 cachelevel_to_pat[I915_MAX_CACHE_LEVEL];
u32 max_pat_index;
};
struct intel_driver_caps {
unsigned int scheduler;
bool has_logical_contexts:1;
};
const char *intel_platform_name(enum intel_platform platform);
void intel_device_info_driver_create(struct drm_i915_private *i915, u16 device_id,
const struct intel_device_info *match_info);
void intel_device_info_runtime_init_early(struct drm_i915_private *dev_priv);
void intel_device_info_runtime_init(struct drm_i915_private *dev_priv);
void intel_device_info_print(const struct intel_device_info *info,
const struct intel_runtime_info *runtime,
struct drm_printer *p);
void intel_driver_caps_print(const struct intel_driver_caps *caps,
struct drm_printer *p);
#endif
Annotation
- Immediate include surface: `uapi/drm/i915_drm.h`, `intel_step.h`, `gt/intel_engine_types.h`, `gt/intel_context_types.h`, `gt/intel_sseu.h`, `gem/i915_gem_object_types.h`.
- Detected declarations: `struct drm_printer`, `struct drm_i915_private`, `struct intel_gt_definition`, `struct intel_ip_version`, `struct intel_runtime_info`, `struct intel_device_info`, `struct intel_driver_caps`, `enum intel_platform`, `enum intel_ppgtt_type`.
- 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.