diff options
author | Lucas De Marchi <[email protected]> | 2024-01-26 14:46:36 -0800 |
---|---|---|
committer | Lucas De Marchi <[email protected]> | 2024-01-30 07:20:21 -0800 |
commit | d5c7854b50e634097da5dd6d221997ecf31ec8c1 (patch) | |
tree | 711bc09cc5e4a288a68e20db9e53efda5e960e36 /lib/memory-notifier-error-inject.c | |
parent | 4073dbbc56baafcf1ada13dca2af40e06806580e (diff) |
drm/i915/xe2lpd: Move D2D enable/disable
Bits to enable/disable and check state for D2D moved from
XELPDP_PORT_BUF_CTL1 to DDI_BUF_CTL (now named DDI_CTL_DE in the spec).
Make the functions mtl_ddi_disable_d2d() and mtl_ddi_enable_d2d generic
to work with multiple reg location and bitfield layout.
v2: Set/Clear XE2LPD_DDI_BUF_D2D_LINK_ENABLE in saved_port_bits when
enabling/disabling D2D so DDI_BUF_CTL is correctly programmed in
other places without overriding these bits (Clint)
v3: Leave saved_port_bits alone as those bits are not meant to be
modified outside of the port initialization. Rather propagate the
additional bit in DDI_BUF_CTL to be set when that register is
written again after D2D is enabled.
Cc: Matt Roper <[email protected]>
Signed-off-by: Lucas De Marchi <[email protected]>
Reviewed-by: Matt Roper <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions