]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: exercise shmem_writeback with THP
authorMatthew Auld <matthew.auld@intel.com>
Tue, 21 Sep 2021 14:21:16 +0000 (15:21 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 24 Sep 2021 08:35:34 +0000 (09:35 +0100)
commit64540a3717d37179b9ea2edbf9054abb1d78f7c4
treec85ae8785dca1f3d62acde4d58d390dcd1f43507
parent021ba8e03a59d1b5e193c44d43854708ba83e5cf
drm/i915/selftests: exercise shmem_writeback with THP

In commit:

commit 6d5795eb05be76bacdbadc829e621f17140053f8
Author: Hugh Dickins <hughd@google.com>
Date:   Thu Sep 2 14:54:43 2021 -0700

    shmem: shmem_writepage() split unlikely i915 THP

it looks THP + shmem_writeback was an unexpected combination, and ends up
hitting some BUG_ON, but it also looks like that is now fixed.

While the IGTs did eventually hit this(although not during pre-merge it
seems), it's likely worthwhile adding some explicit coverage for this
scenario in the shrink_thp selftest.

References: https://gitlab.freedesktop.org/drm/intel/-/issues/4166
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210921142116.3807946-1-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/selftests/huge_pages.c