drivers/gpu/drm/i915/display/intel_atomic.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/intel_atomic.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/display/intel_atomic.c- Extension
.c- Size
- 11657 bytes
- Lines
- 369
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
drm/display/drm_dp_tunnel.hdrm/drm_atomic.hdrm/drm_atomic_helper.hdrm/drm_fourcc.hdrm/drm_print.hintel_atomic.hintel_cdclk.hintel_display_core.hintel_display_types.hintel_dp_tunnel.hintel_fb.hintel_global_state.hintel_hdcp.hintel_psr.hskl_universal_plane.h
Detected Declarations
function filesfunction intel_digital_connector_atomic_set_propertyfunction intel_digital_connector_atomic_checkfunction statefunction intel_connector_needs_modesetfunction intel_any_crtc_needs_modesetfunction for_each_new_intel_crtc_in_statefunction intel_atomic_get_digital_connector_statefunction statefunction intel_crtc_put_color_blobsfunction intel_crtc_free_hw_statefunction statefunction intel_atomic_state_allocfunction intel_atomic_state_freefunction intel_atomic_state_clearfunction intel_atomic_get_crtc_state
Annotated Snippet
#include <drm/display/drm_dp_tunnel.h>
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_print.h>
#include "intel_atomic.h"
#include "intel_cdclk.h"
#include "intel_display_core.h"
#include "intel_display_types.h"
#include "intel_dp_tunnel.h"
#include "intel_fb.h"
#include "intel_global_state.h"
#include "intel_hdcp.h"
#include "intel_psr.h"
#include "skl_universal_plane.h"
/**
* intel_digital_connector_atomic_get_property - hook for connector->atomic_get_property.
* @connector: Connector to get the property for.
* @state: Connector state to retrieve the property from.
* @property: Property to retrieve.
* @val: Return value for the property.
*
* Returns the atomic property value for a digital connector.
*/
int intel_digital_connector_atomic_get_property(struct drm_connector *connector,
const struct drm_connector_state *state,
struct drm_property *property,
u64 *val)
{
struct intel_display *display = to_intel_display(connector->dev);
const struct intel_digital_connector_state *intel_conn_state =
to_intel_digital_connector_state(state);
if (property == display->properties.force_audio)
*val = intel_conn_state->force_audio;
else if (property == display->properties.broadcast_rgb)
*val = intel_conn_state->broadcast_rgb;
else {
drm_dbg_atomic(display->drm,
"Unknown property [PROP:%d:%s]\n",
property->base.id, property->name);
return -EINVAL;
}
return 0;
}
/**
* intel_digital_connector_atomic_set_property - hook for connector->atomic_set_property.
* @connector: Connector to set the property for.
* @state: Connector state to set the property on.
* @property: Property to set.
* @val: New value for the property.
*
* Sets the atomic property value for a digital connector.
*/
int intel_digital_connector_atomic_set_property(struct drm_connector *connector,
struct drm_connector_state *state,
struct drm_property *property,
u64 val)
{
struct intel_display *display = to_intel_display(connector->dev);
struct intel_digital_connector_state *intel_conn_state =
to_intel_digital_connector_state(state);
if (property == display->properties.force_audio) {
intel_conn_state->force_audio = val;
return 0;
}
if (property == display->properties.broadcast_rgb) {
intel_conn_state->broadcast_rgb = val;
return 0;
}
drm_dbg_atomic(display->drm, "Unknown property [PROP:%d:%s]\n",
property->base.id, property->name);
return -EINVAL;
}
int intel_digital_connector_atomic_check(struct drm_connector *conn,
struct drm_atomic_commit *state)
{
struct drm_connector_state *new_state =
drm_atomic_get_new_connector_state(state, conn);
struct intel_digital_connector_state *new_conn_state =
to_intel_digital_connector_state(new_state);
struct drm_connector_state *old_state =
Annotation
- Immediate include surface: `drm/display/drm_dp_tunnel.h`, `drm/drm_atomic.h`, `drm/drm_atomic_helper.h`, `drm/drm_fourcc.h`, `drm/drm_print.h`, `intel_atomic.h`, `intel_cdclk.h`, `intel_display_core.h`.
- Detected declarations: `function files`, `function intel_digital_connector_atomic_set_property`, `function intel_digital_connector_atomic_check`, `function state`, `function intel_connector_needs_modeset`, `function intel_any_crtc_needs_modeset`, `function for_each_new_intel_crtc_in_state`, `function intel_atomic_get_digital_connector_state`, `function state`, `function intel_crtc_put_color_blobs`.
- 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.