]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 8 Dec 2021 10:25:24 +0000 (10:25 +0000)
commit7730b36979a372a3513f6431df902f5fae3869a0
treeb244d0a01c533893d13829c3e67f4d84b15b601f
parentb15f36166dd1b4058d9a5c7a3495c4d51a7b859a
drm/i915/migrate: don't check the scratch page

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
drivers/gpu/drm/i915/gt/intel_migrate.c