[Bug 261773] graphics/drm-fbsd13-kmod: Instability and artifacts after 5.4.144.g20220128 update (Intel GM45)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 09 Feb 2022 10:10:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261773

Tijl Coosemans <tijl@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib@FreeBSD.org

--- Comment #10 from Tijl Coosemans <tijl@FreeBSD.org> ---
The problem happens when there's memory pressure.  This hack seems to fix it. 
It essentially reverts base 3de96d664aaa.  So it doesn't seem to have anything
to do with drm or linuxkpi.

--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -732,8 +732,8 @@ vm_pageout_clean(vm_page_t m, int *numpagedout)
 static bool
 vm_pageout_object_act(vm_object_t object)
 {
-       return (object->ref_count >
-           ((object->flags & (OBJ_SWAP | OBJ_ANON)) == OBJ_SWAP ? 1 : 0));
+       return (object->ref_count > 0);
+//         ((object->flags & (OBJ_SWAP | OBJ_ANON)) == OBJ_SWAP ? 1 : 0));
 }

 static int

-- 
You are receiving this mail because:
You are the assignee for the bug.