]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/migrate: move the sanity check
authorMatthew Auld <matthew.auld@intel.com>
Thu, 24 Mar 2022 17:21:43 +0000 (17:21 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 29 Mar 2022 08:10:59 +0000 (09:10 +0100)
commit36b15ceb8166c0e5892332cba8bd48b41ec3ae54
treee1ae21841f1523a684a60704a26d18214e43b4ab
parentf07044c92cc20b6be5f236a3a496d16b902a1343
drm/i915/migrate: move the sanity check

Move the sanity check that both src and dst are never both system
memory, which should never happen on discrete, and likely means we have
a bug. The only exception is on integrated where we trigger this path in
the selftests.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Nirmoy Das <nirmoy.das@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220324172143.377104-2-matthew.auld@intel.com
drivers/gpu/drm/i915/gt/intel_migrate.c