drm/xe/stolen: Exclude reserved lmem portion
authorNirmoy Das <nirmoy.das@intel.com>
Wed, 8 Mar 2023 16:23:22 +0000 (17:23 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:29:44 +0000 (18:29 -0500)
commit6db7761bbca649319096431c38670c596107596d
tree5098e5d30f055e688da1e39458a00e4dd6d6075a
parentb99cb6216bdf350e2d94c547c27f063b4434ae5d
drm/xe/stolen: Exclude reserved lmem portion

The address set by firmware in GEN12_DSMBASE in driver initialization
doesn't mean "anything above that and until end of lmem is part of DSM".
In fact, there may be a few KB that is not part of DSM on the end of
lmem. How large is that space is platform-dependent, but since it's
always less than the DSM granularity, it can be simplified by simply
aligning the size down.

Suggested-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c