drm/i915/migrate: don't check the scratch page
authorMatthew Auld <matthew.auld@intel.com>
Mon, 6 Dec 2021 11:25:36 +0000 (11:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 10:59:07 +0000 (11:59 +0100)
commita3d1e6f9b67808286f09ee6a905b5a2926182729
tree0ecb483c61869982d79d761b76036cac6cc407e9
parent5bc0b2fda4b47c86278f7c6d30c211f425bf51cf
drm/i915/migrate: don't check the scratch page

[ Upstream commit 8eb7fcce34d16f77ac8efa80e8dfecec2503e8c5 ]

The scratch page might not be allocated in LMEM(like on DG2), so instead
of using that as the deciding factor for where the paging structures
live, let's just query the pt before mapping it.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211206112539.3149779-1-matthew.auld@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/i915/gt/intel_migrate.c