]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove memory frequency calculation
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 13 Oct 2021 01:00:46 +0000 (18:00 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Thu, 14 Oct 2021 20:19:19 +0000 (13:19 -0700)
commiteb7704c8007d555f2f40466bc6dd381ddcafb88e
treec9ed98dfdfac820b5dfda0e42bb6fe48f23f097b
parent5ca4850829b8cc96034ed89c2c9451f700c43b3b
drm/i915: Remove memory frequency calculation

This memory frequency calculated is only used to check if it is zero,
what is not useful as it will never actually be zero.

Also the calculation is wrong, we should be checking other bit to
select the appropriate frequency multiplier while this code is stuck
with a fixed multiplier.

So here dropping it as whole.

v2:
- Also remove memory frequency calculation for gen9 LP platforms

Cc: Yakui Zhao <yakui.zhao@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Fixes: 1b66a856e727 ("drm/i915/gen11+: Only load DRAM information from pcode")
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211013010046.91858-1-jose.souza@intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_dram.c