OSDN Git Service

drm/i915: Add missing mask when reading GEN12_DSMBASE
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 16 Sep 2022 17:36:06 +0000 (10:36 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 22 Sep 2022 13:43:29 +0000 (06:43 -0700)
commite5f415bfc5c2c94fbb124f8aabfc638168a44cf4
treea4c028123706e33e7347804543822d48b7c007ad
parent07a70f38e9c33b3c614668b12a847f9fe65a4e25
drm/i915: Add missing mask when reading GEN12_DSMBASE

DSMBASE register is defined so BDSM bitfield contains the bits 63 to 20
of the base address of stolen. For the supported platforms bits 0-19 are
zero but that may not be true in future. Add the missing mask.

v2: Use REG_GENMASK64()

Acked-by: Aravind Iddamsetty <aravind.iddamsetty@intel.com>
Reviewed-by: Caz Yokoyama <caz@caztech.com>
Reviewed-by: Wayne Boyer <wayne.boyer@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220915-stolen-v2-1-20ff797de047@intel.com
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
drivers/gpu/drm/i915/i915_reg.h