Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Admin message
The migration is almost done, at least the rest should happen in the background. There are still a few technical difference between the old cluster and the new ones, and they are summarized in this issue. Please pay attention to the TL:DR at the end of the comment.
Project 'drm/intel' was moved to 'drm/i915/kernel'. Please update any links and bookmarks that may still have the old path.
Critical Memory Management issues and System Freezing after update to Kernel 5.12.0
A few more details from the distro bugzilla report:
the 5.12 kernel started showing the KFENCE error reports at first around
i915_gem_madvise_ioctl(), followed by the actual NULL dereference and other crashes.
The same error and a similar crash are seen on the latest drm-tip (as of two days ago, commit 83c98bb), too, so it's still not fixed in the latest upstream code, as it seems.
The same system works fine on 5.11.x kernels (though, kfence didn't exist on 5.11).
Since yesterday I trying to build the kernel but my pc is so weak for compiling the kernel.
There are several packages in the repo and I installed "kernel-vanilla-5.12.4-1.1.gb31df5b.x86_64.rpm"(If I have installed the right package) and currently using that and I inform the result.
kernel-vanilla is a wrong pick. That is a package without downstream patches (that's why called "vanilla"), and this fix patch won't be applied there. Use kernel-default instead.
OK, I switched to "5.12.4-1.gb31df5b-default" but looks like 'Kfence' is disabled(on both 'Vanilla' and 'Default') because I don't see the "kfence: initialized" message in Logs(Or maybe somethings changed since 5.12.0).
Maybe too early to conclude, But I ran QEMU/KVM VM(Without patching, Kernel 5.12.0 always caused the system to freeze) and did few hours of web browsing and also played several online(from Youtube and other websites) and local videoes(Without patching usually caused the system to freeze) and I don't see any issue and looks like the problem is solved with this patch but to ensure about it, I will monitor the situation in the next few days and report the result.
drm/i915/gem: Pin the L-shape quirked object as unshrinkable When instantiating a tiled object on an L-shaped memory machine, we mark the object as unshrinkable to prevent the shrinker from trying to swap out the pages. We have to do this as we do not know the swizzling on the individual pages, and so the data will be scrambled across swap out/in. Not only do we need to move the object off the shrinker list, we need to mark the object with shrink_pin so that the counter is consistent across calls to madvise. v2: in the madvise ioctl we need to check if the object is currently shrinkable/purgeable, not if the object type supports shrinking Fixes: 0175969e489a ("drm/i915/gem: Use shrinkable status for unknown swizzle quirks") References: https://gitlab.freedesktop.org/drm/intel/-/issues/3293 References: https://gitlab.freedesktop.org/drm/intel/-/issues/3450 Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Tested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: <stable@vger.kernel.org> # v5.12+ Link: https://patchwork.freedesktop.org/patch/msgid/20210517084640.18862-1-matthew.auld@intel.com