]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: fixup min_alignment usage
authorMatthew Auld <matthew.auld@intel.com>
Wed, 20 Apr 2022 18:16:12 +0000 (19:16 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 21 Apr 2022 09:10:56 +0000 (10:10 +0100)
commit83a10da5c967d6ead45f7a8e3fbf0426a74d4a71
treece40f66851e1e6bc3518191897b7cac39ccb177b
parentf8ccad99beb2fad16374277bc709ef2a594a75c5
drm/i915/selftests: fixup min_alignment usage

Trying to cast the region id into the region type doesn't work too well,
since the i915_vm_min_alignment() won't give us the correct value for
the stolen-lmem case.

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>
Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@linux.intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220420181613.70033-3-matthew.auld@intel.com
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c