]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 2 May 2024 12:14:21 +0000 (15:14 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 May 2024 11:22:34 +0000 (14:22 +0300)
commit8b69ac66d68907deb473b310b4f2c2a6b26ef191
treeb1a4bafefdb432c47dc9ec66bd617f9ebddf83d5
parent749670a58d935303ad1ce529acc73f12de25832e
drm/i915: Fix HAS_REGION() usage in intel_gt_probe_lmem()

HAS_REGION() takes a bitmask, not the region ID. This causes the
GEM_BUG_ON() to assert that the SMEM region is available rather
than the intended LMEM region. No real harm since SMEM is always
available, but also not checking what was intended.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240502121423.1002-1-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/gt/intel_gt.c