drm/i915: determine lmem_size properly
authorNirmoy Das <nirmoy.das@intel.com>
Wed, 11 May 2022 15:37:45 +0000 (17:37 +0200)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 17 May 2022 08:34:45 +0000 (09:34 +0100)
commit8f6de23184452793e60945a26ac40db435d7798d
tree0fc8bc8980e5d47e5a3747efb0bdb1fccd75907a
parentd158367c31f0f87567d2e8a0955287dc005d40e5
drm/i915: determine lmem_size properly

Determine lmem_size using ADDR_RANGE register so that lmem_setup()
works on platform with small-bar as well.

Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220511153746.14142-2-nirmoy.das@intel.com
drivers/gpu/drm/i915/gt/intel_region_lmem.c