drm/i915: Don't enable WaIncreaseLatencyIPCEnabled when IPC is disabled
authorSultan Alsawaf <sultan@kerneltoast.com>
Thu, 30 Apr 2020 21:46:54 +0000 (14:46 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 4 May 2020 17:36:00 +0000 (10:36 -0700)
commit421abe200321a2c907ede1a6208c558284ba0b75
tree263797f20d5e391f2abf1452a4c6b1b25c8a9236
parentfe5a708267911d55cce42910d93e303924b088fd
drm/i915: Don't enable WaIncreaseLatencyIPCEnabled when IPC is disabled

In commit 5a7d202b1574, 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: 5a7d202b1574 ("drm/i915: Drop WaIncreaseLatencyIPCEnabled/1140 for cnl")
Cc: stable@vger.kernel.org # 5.3.x+
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200430214654.51314-1-sultan@kerneltoast.com
(cherry picked from commit 690d22dafa88b82453516387b475664047a6bd14)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/intel_pm.c