drm/xe: Map the entire BAR0 and hold onto the initial mapping
authorMichał Winiarski <michal.winiarski@intel.com>
Tue, 5 Dec 2023 01:32:58 +0000 (02:32 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:45:11 +0000 (11:45 -0500)
commit99e4b1aa8dbe2e23c73229ac1bbd9dc3e6b30c80
tree64a6a6e8cc7e14e41d240ba3fba544fd5f346332
parent7e4ce4518b906a960122f29e8f3426ca95ebee0a
drm/xe: Map the entire BAR0 and hold onto the initial mapping

Both MMIO registers and GGTT for root tile will need to be used earlier
during probe. Don't rely on tile count to compute the mapping size.
Further more, there's no need to remap after figuring out the real
resource size.

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_mmio.c