mbox series

[0/4] drm/i915: Fix older platforms

Message ID 20210421153401.13847-1-ville.syrjala@linux.intel.com (mailing list archive)
Headers show
Series drm/i915: Fix older platforms | expand

Message

Ville Syrjälä April 21, 2021, 3:33 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Fix a div-by-zero on gen2, and make the L-shaped memory detection
actually work on cl/ctg. Atm the SWIZZLE_UNKNOWN stuff just trips
some GEM_BUG_ONs. This doesn't fix those but since I populate all
my memory channels symmetrically I get to avoid the GEM_BUG_ONs
by correctly detecting that I don't have an L-shaped memory
configuration.

Ville Syrjälä (4):
  drm/i915: Avoid div-by-zero on gen2
  drm/i915: Read C0DRB3/C1DRB3 as 16 bits again
  drm/i915: Give C0DRB3/C1DRB3 a _BW suffix
  drm/i915: Rewrite CL/CTG L-shaped memory detection

 drivers/gpu/drm/i915/gem/i915_gem_mman.c     |  2 +-
 drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c | 19 ++++++++++---------
 drivers/gpu/drm/i915/i915_debugfs.c          | 16 ++++++++++++----
 drivers/gpu/drm/i915/i915_reg.h              |  8 ++++++--
 4 files changed, 29 insertions(+), 16 deletions(-)