1
0
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:
jsg
2026-06-09 23:55:26 +00:00
parent 6a9e47b6df
commit 16db0c9d8b
2 changed files with 8 additions and 0 deletions
@@ -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;
+7
View File
@@ -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)