All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: nouveau@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Subject: Leaking fences
Date: Thu, 16 Oct 2014 11:49:16 +0200	[thread overview]
Message-ID: <20141016094915.GA15517@ulmo> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1443 bytes --]

Hi,

While investigating something completely unrelated, I came across this:

	# cat /sys/kernel/debug/kmemleak
	unreferenced object 0xec934200 (size 512):
	  comm "triangle", pid 186, jiffies 4294949362 (age 199.440s)
	  hex dump (first 32 bytes):
	    08 00 08 00 ad 4e ad de ff ff ff ff ff ff ff ff  .....N..........
	    a8 b5 1a c1 38 1a d4 c0 00 00 00 00 4c 73 9d c0  ....8.......Ls..
	  backtrace:
	    [<c00ee72c>] kmem_cache_alloc+0xf4/0x174
	    [<c03edcc8>] nv84_fence_context_new+0x58/0x170
	    [<c03ee564>] nvc0_fence_context_new+0xc/0x34
	    [<c03e2d3c>] nouveau_channel_new+0x374/0x730
	    [<c03eb6d4>] nouveau_abi16_ioctl_channel_alloc+0x148/0x37c
	    [<c0327620>] drm_ioctl+0x1d4/0x50c
	    [<c03e0eac>] nouveau_drm_ioctl+0x58/0xa4
	    [<c0107498>] do_vfs_ioctl+0x3f0/0x614
	    [<c01076f0>] SyS_ioctl+0x34/0x5c
	    [<c000e8e0>] ret_fast_syscall+0x0/0x30
	    [<ffffffff>] 0xffffffff

That's recorded by kmemleak after running a the "triangle" test program,
which is essentially just a program that renders a smooth-shaded
triangle on gk20a and displays it on Tegra DRM. Anyway, I'm pretty sure
the workload isn't anything special, so I suspect that this is happening
for other programs as well.

It seems like this could be due to somebody holding a reference to the
fence. Perhaps this is just kmemleak getting confused, but I thought I'd
bring it up, perhaps somebody has an idea about what's going on here.

Thierry

[-- Attachment #1.2: Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

                 reply	other threads:[~2014-10-16  9:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141016094915.GA15517@ulmo \
    --to=thierry.reding@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=nouveau@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.