Skip to content

Commit 9c0fed8

Browse files
committed
Merge tag 'drm-intel-next-2021-04-01' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
Features: - Add support for FBs requiring a power-of-two stride padding (Imre) Refactoring: - Disassociate display version from gen (Matt) - Refactor legacy DP and HDMI code to separate files (Ville) - Refactor FB plane code to a separate file (Imre) - Refactor VBT child device info parsing and usage (Jani) - Refactor KBL/TGL/ADL-S display and gt stepping schemes (Jani) Fixes: - DP Link-Training Tunable PHY Repeaters (LTTPR) fixes (Imre) - HDCP fixes (Anshuman) - DP 2.0 HDMI 2.1 PCON Fixed Rate Link (FRL) fixes (Ankit) - Set HDA link parameters in driver (Kai) - Fix enabled_planes bitmask (Ville) - Fix transposed arguments to skl_plane_wm_level() (Ville) - Stop adding planes to the commit needlessly (Ville) Signed-off-by: Dave Airlie <[email protected]> From: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 41d1d0c + 81f1f8f commit 9c0fed8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+5466
-4826
lines changed

drivers/gpu/drm/drm_dp_helper.c

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,14 +2635,16 @@ EXPORT_SYMBOL(drm_dp_pcon_is_frl_ready);
26352635
* drm_dp_pcon_frl_configure_1() - Set HDMI LINK Configuration-Step1
26362636
* @aux: DisplayPort AUX channel
26372637
* @max_frl_gbps: maximum frl bw to be configured between PCON and HDMI sink
2638-
* @concurrent_mode: true if concurrent mode or operation is required,
2639-
* false otherwise.
2638+
* @frl_mode: FRL Training mode, it can be either Concurrent or Sequential.
2639+
* In Concurrent Mode, the FRL link bring up can be done along with
2640+
* DP Link training. In Sequential mode, the FRL link bring up is done prior to
2641+
* the DP Link training.
26402642
*
26412643
* Returns 0 if success, else returns negative error code.
26422644
*/
26432645

26442646
int drm_dp_pcon_frl_configure_1(struct drm_dp_aux *aux, int max_frl_gbps,
2645-
bool concurrent_mode)
2647+
u8 frl_mode)
26462648
{
26472649
int ret;
26482650
u8 buf;
@@ -2651,7 +2653,7 @@ int drm_dp_pcon_frl_configure_1(struct drm_dp_aux *aux, int max_frl_gbps,
26512653
if (ret < 0)
26522654
return ret;
26532655

2654-
if (concurrent_mode)
2656+
if (frl_mode == DP_PCON_ENABLE_CONCURRENT_LINK)
26552657
buf |= DP_PCON_ENABLE_CONCURRENT_LINK;
26562658
else
26572659
buf &= ~DP_PCON_ENABLE_CONCURRENT_LINK;
@@ -2694,21 +2696,23 @@ EXPORT_SYMBOL(drm_dp_pcon_frl_configure_1);
26942696
* drm_dp_pcon_frl_configure_2() - Set HDMI Link configuration Step-2
26952697
* @aux: DisplayPort AUX channel
26962698
* @max_frl_mask : Max FRL BW to be tried by the PCON with HDMI Sink
2697-
* @extended_train_mode : true for Extended Mode, false for Normal Mode.
2698-
* In Normal mode, the PCON tries each frl bw from the max_frl_mask starting
2699-
* from min, and stops when link training is successful. In Extended mode, all
2700-
* frl bw selected in the mask are trained by the PCON.
2699+
* @frl_type : FRL training type, can be Extended, or Normal.
2700+
* In Normal FRL training, the PCON tries each frl bw from the max_frl_mask
2701+
* starting from min, and stops when link training is successful. In Extended
2702+
* FRL training, all frl bw selected in the mask are trained by the PCON.
27012703
*
27022704
* Returns 0 if success, else returns negative error code.
27032705
*/
27042706
int drm_dp_pcon_frl_configure_2(struct drm_dp_aux *aux, int max_frl_mask,
2705-
bool extended_train_mode)
2707+
u8 frl_type)
27062708
{
27072709
int ret;
27082710
u8 buf = max_frl_mask;
27092711

2710-
if (extended_train_mode)
2712+
if (frl_type == DP_PCON_FRL_LINK_TRAIN_EXTENDED)
27112713
buf |= DP_PCON_FRL_LINK_TRAIN_EXTENDED;
2714+
else
2715+
buf &= ~DP_PCON_FRL_LINK_TRAIN_EXTENDED;
27122716

27132717
ret = drm_dp_dpcd_writeb(aux, DP_PCON_HDMI_LINK_CONFIG_2, buf);
27142718
if (ret < 0)

drivers/gpu/drm/i915/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ i915-y += i915_drv.o \
5252
intel_pm.o \
5353
intel_runtime_pm.o \
5454
intel_sideband.o \
55+
intel_step.o \
5556
intel_uncore.o \
5657
intel_wakeref.o \
5758
vlv_suspend.o
@@ -208,6 +209,7 @@ i915-y += \
208209
display/intel_dpll.o \
209210
display/intel_dpll_mgr.o \
210211
display/intel_dsb.o \
212+
display/intel_fb.o \
211213
display/intel_fbc.o \
212214
display/intel_fdi.o \
213215
display/intel_fifo_underrun.o \
@@ -239,6 +241,8 @@ i915-y += \
239241
display/dvo_ns2501.o \
240242
display/dvo_sil164.o \
241243
display/dvo_tfp410.o \
244+
display/g4x_dp.o \
245+
display/g4x_hdmi.o \
242246
display/icl_dsi.o \
243247
display/intel_crt.o \
244248
display/intel_ddi.o \

0 commit comments

Comments
 (0)