File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -1543,6 +1543,14 @@ IS_SUBPLATFORM(const struct drm_i915_private *i915,
1543
1543
(IS_ALDERLAKE_S(__i915) && \
1544
1544
IS_GT_STEP(__i915, since, until))
1545
1545
1546
+ #define IS_ADLP_DISPLAY_STEP (__i915 , since , until ) \
1547
+ (IS_ALDERLAKE_P(__i915) && \
1548
+ IS_DISPLAY_STEP(__i915, since, until))
1549
+
1550
+ #define IS_ADLP_GT_STEP (__i915 , since , until ) \
1551
+ (IS_ALDERLAKE_P(__i915) && \
1552
+ IS_GT_STEP(__i915, since, until))
1553
+
1546
1554
#define IS_LP (dev_priv ) (INTEL_INFO(dev_priv)->is_lp)
1547
1555
#define IS_GEN9_LP (dev_priv ) (IS_GEN(dev_priv, 9) && IS_LP(dev_priv))
1548
1556
#define IS_GEN9_BC (dev_priv ) (IS_GEN(dev_priv, 9) && !IS_LP(dev_priv))
Original file line number Diff line number Diff line change @@ -47,14 +47,24 @@ static const struct intel_step_info adls_revid_step_tbl[] = {
47
47
[0xC ] = { .gt_step = STEP_D0 , .display_step = STEP_C0 },
48
48
};
49
49
50
+ static const struct intel_step_info adlp_revid_step_tbl [] = {
51
+ [0x0 ] = { .gt_step = STEP_A0 , .display_step = STEP_A0 },
52
+ [0x4 ] = { .gt_step = STEP_B0 , .display_step = STEP_B0 },
53
+ [0x8 ] = { .gt_step = STEP_C0 , .display_step = STEP_C0 },
54
+ [0xC ] = { .gt_step = STEP_C0 , .display_step = STEP_D0 },
55
+ };
56
+
50
57
void intel_step_init (struct drm_i915_private * i915 )
51
58
{
52
59
const struct intel_step_info * revids = NULL ;
53
60
int size = 0 ;
54
61
int revid = INTEL_REVID (i915 );
55
62
struct intel_step_info step = {};
56
63
57
- if (IS_ALDERLAKE_S (i915 )) {
64
+ if (IS_ALDERLAKE_P (i915 )) {
65
+ revids = adlp_revid_step_tbl ;
66
+ size = ARRAY_SIZE (adlp_revid_step_tbl );
67
+ } else if (IS_ALDERLAKE_S (i915 )) {
58
68
revids = adls_revid_step_tbl ;
59
69
size = ARRAY_SIZE (adls_revid_step_tbl );
60
70
} else if (IS_TGL_U (i915 ) || IS_TGL_Y (i915 )) {
You can’t perform that action at this time.
0 commit comments