OSDN Git Service

drm/i915/display: fix level 0 adjustement on display ver >= 12
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 22 Jun 2021 21:22:09 +0000 (14:22 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 25 Jun 2021 16:04:08 +0000 (09:04 -0700)
commitcbeeb00f14d2bf71200cbfad329a62be6309f7e2
tree576fdaf391419f93b2c56467c173ce89d090a557
parentc4449742a7c2c4f565cef5604738cfcb29769db9
drm/i915/display: fix level 0 adjustement on display ver >= 12

We should no longer increment level 0 by 1usec when we have 16Gb DIMMs.
Instead spec says to add 3usec (as opposed to 2) to each valid level
when punit replies 0 to level 0.

So set wm_lv_0_adjust_needed to false for DISPLAY_VER() >= 12 and set
the proper adjustment value when handling WaWmMemoryReadLatency.

Bspec: 49326, 4381
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210622212210.3746133-1-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_dram.c
drivers/gpu/drm/i915/intel_pm.c