Skip to content

Commit

Permalink
drm/i915: Don't enable WaIncreaseLatencyIPCEnabled when IPC is disabled
Browse files Browse the repository at this point in the history
[ Upstream commit 421abe2 ]

In commit 5a7d202, a logical AND was erroneously changed to an OR,
causing WaIncreaseLatencyIPCEnabled to be enabled unconditionally for
kabylake and coffeelake, even when IPC is disabled. Fix the logic so
that WaIncreaseLatencyIPCEnabled is only used when IPC is enabled.

Fixes: 5a7d202 ("drm/i915: Drop WaIncreaseLatencyIPCEnabled/1140 for cnl")
Cc: [email protected] # 5.3.x+
Signed-off-by: Sultan Alsawaf <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 690d22d)
Signed-off-by: Rodrigo Vivi <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
  • Loading branch information
kerneltoast authored and gregkh committed May 20, 2020
1 parent 0d9bc79 commit af1f11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4784,7 +4784,7 @@ static void skl_compute_plane_wm(const struct intel_crtc_state *crtc_state,
* WaIncreaseLatencyIPCEnabled: kbl,cfl
* Display WA #1141: kbl,cfl
*/
if ((IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) ||
if ((IS_KABYLAKE(dev_priv) || IS_COFFEELAKE(dev_priv)) &&
dev_priv->ipc_enabled)
latency += 4;

Expand Down

0 comments on commit af1f11f

Please sign in to comment.