NetBSD Problem Report #58307

From rhialto@falu.nl  Tue Jun  4 21:03:03 2024
Return-Path: <rhialto@falu.nl>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3C2041A9238
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  4 Jun 2024 21:03:03 +0000 (UTC)
Message-Id: <Zl-BAGpx0fD6vA_K@falu.nl>
Date: Tue, 4 Jun 2024 23:02:56 +0200
From: Rhialto <rhialto@falu.nl>
Reply-To: Rhialto <rhialto@falu.nl>
To: gnats-bugs@NetBSD.org
Cc: Rhialto <rhialto@falu.nl>
Subject: Slow/incremental updating of mouse cursor sprite
X-Send-Pr-Version: 3.95

>Number:         58307
>Category:       xsrc
>Synopsis:       Slow/incremental updating of mouse cursor sprite
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    riastradh
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 04 21:05:00 +0000 2024
>Closed-Date:    
>Last-Modified:  Tue Jun 04 22:27:46 +0000 2024
>Originator:     Rhialto
>Release:        NetBSD 10.0
>Organization:
>Environment:
System: NetBSD murthe.falu.nl 10.0 NetBSD 10.0 (GENERIC) #0: Sat May 18 22:55:37 CEST 2024 rhialto@murthe.falu.nl:/mnt/scratch/scratch/tmp/xcrash/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	When using Intel integrated graphics, and the modesetting driver
        for X, then when the mouse cursor changes shape, it isn't updated
        immediately. It happens incrementally over the course of sometimes
        several seconds. It is like the data is written into some kind
        of cache which isn't copied to its final destination
        immediately, but only as parts of it get pushed out because of
        evictions.

        I saw the same effect on different machines with different
        generations of Intel graphics (several years in between).

        Running xcompmgr has no effect on this. Probably because the
        mouse cursor is a sprite (or player missile graphics for the
        Atari fans).
>How-To-Repeat:
	in /etc/X11/xorg.conf, have
        Section "Device"
        ...
            Driver      "modesetting"
>Fix:
	I tried
	https://www.NetBSD.org/~riastradh/tmp/20240603/i915gemmmanpmapflags.patch	
	with the same change applied to the function below it as well.

	That seemed to fix the issue.
	I did not test yet if the patch in unchanged form is sufficient.

>Release-Note:

>Audit-Trail:
From: Rhialto <rhialto@falu.nl>
To: gnats-bugs@netbsd.org
Cc: Rhialto <rhialto@falu.nl>
Subject: Re: xsrc/58307: Slow/incremental updating of mouse cursor sprite
Date: Tue, 4 Jun 2024 23:12:30 +0200

 I just tested if the unchanged patch is sufficient cure for this
 symptom, and a quick test indicates yes.

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58307 CVS commit: src/sys/external/bsd/drm2/dist/drm/i915/gem
Date: Tue, 4 Jun 2024 21:42:40 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Tue Jun  4 21:42:40 UTC 2024

 Modified Files:
 	src/sys/external/bsd/drm2/dist/drm/i915/gem: i915_gem_mman.c

 Log Message:
 i915_gem_mman.c: Apply mmap types via pmap flags.

 This way, userland gets buffers mapped write-combining or uncached as
 needed.

 PR xsrc/58307


 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.23 \
     src/sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_mman.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: xsrc-manager->riastradh
Responsible-Changed-By: riastradh@NetBSD.org
Responsible-Changed-When: Tue, 04 Jun 2024 22:27:46 +0000
Responsible-Changed-Why:
needs pullup-10
pullup-9 requires further analysis and patch, code changed a lot


State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Tue, 04 Jun 2024 22:27:46 +0000
State-Changed-Why:
mine


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.