]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Pass the -EINVAL when emit_pte doesn't update any PTE
authorRamalingam C <ramalingam.c@intel.com>
Tue, 5 Apr 2022 15:08:35 +0000 (20:38 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Thu, 14 Apr 2022 07:50:18 +0000 (13:20 +0530)
commita391559bb4150dc7ca1ea0029d6bef50b5619b5c
treeb99ffcc739d43f661b1edd8552d155a9e91a4175
parent82f14aea2da5b779072f5433d6b1c02725ce1045
drm/i915/gt: Pass the -EINVAL when emit_pte doesn't update any PTE

When emit_pte doesn't update any PTE with return value as 0, interpret
it as -EINVAL.

v2:
  Add missing goto [Thomas]

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Thomas Hellstrom <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220405150840.29351-5-ramalingam.c@intel.com
drivers/gpu/drm/i915/gt/intel_migrate.c