mirror of
https://github.com/openbsd/src.git
synced 2026-06-18 07:13:36 +02:00
drm/i915/psr: Read Intel DPCD workaround register
From Jouni Hogander c058cf6b84c131c3f535f5fd08ec6eba1e9da9df in linux-6.18.y/6.18.35 f30bece421a4ae34359254e1dc2a187a42b6af9b in mainline linux
This commit is contained in:
@@ -1710,6 +1710,7 @@ struct intel_dp {
|
||||
u8 lttpr_common_caps[DP_LTTPR_COMMON_CAP_SIZE];
|
||||
u8 lttpr_phy_caps[DP_MAX_LTTPR_COUNT][DP_LTTPR_PHY_CAP_SIZE];
|
||||
u8 pcon_dsc_dpcd[DP_PCON_DSC_ENCODER_CAP_SIZE];
|
||||
u8 intel_wa_dpcd;
|
||||
/* source rates */
|
||||
int num_source_rates;
|
||||
const int *source_rates;
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "intel_display_types.h"
|
||||
#include "intel_dmc.h"
|
||||
#include "intel_dp.h"
|
||||
#include "intel_dpcd.h"
|
||||
#include "intel_dp_aux.h"
|
||||
#include "intel_dsb.h"
|
||||
#include "intel_frontbuffer.h"
|
||||
@@ -679,6 +680,12 @@ static void _psr_init_dpcd(struct intel_dp *intel_dp)
|
||||
drm_dbg_kms(display->drm, "PSR2 %ssupported\n",
|
||||
intel_dp->psr.sink_psr2_support ? "" : "not ");
|
||||
}
|
||||
|
||||
if (intel_dp->psr.sink_psr2_support)
|
||||
drm_dp_dpcd_read(&intel_dp->aux,
|
||||
INTEL_DPCD_INTEL_WA_REGISTER_CAPS,
|
||||
&intel_dp->intel_wa_dpcd,
|
||||
sizeof(intel_dp->intel_wa_dpcd));
|
||||
}
|
||||
|
||||
void intel_psr_init_dpcd(struct intel_dp *intel_dp)
|
||||
|
||||
Reference in New Issue
Block a user