From: bugzilla-daemon@freedesktop.org Subject: [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 Date: Sun, 23 Aug 2015 09:17:15 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1445518472==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 49CD06E230 for ; Sun, 23 Aug 2015 02:17:15 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1445518472== Content-Type: multipart/alternative; boundary="1440321435.FAAB1.30100"; charset="UTF-8" --1440321435.FAAB1.30100 Date: Sun, 23 Aug 2015 09:17:15 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91704 --- Comment #12 from Mathias Tillman --- Created attachment 117870 --> https://bugs.freedesktop.org/attachment.cgi?id=117870&action=edit Debug output I've done some testing by adding debug output in amdgpu_device.c and while testing your va_test does indeed work, I think I have found the reason as to why startx does not work. Basically, the hash generation is broken, if you check util_hash_table_get in the logs, you can see that it returns null (in the startx output), even when the fd exists in the hash table. This seems to be because drmGetPrimaryDeviceNameFromFd in fd_hash returns the directory name of the dri device, as opposed to the dri device itself (/dev/dri/ vs /dev/dri/card0) - you can see that in the log at lines 14 and 25. Strangely it works just fine the first time amdgpu_device_initialize is called (line 4), and in your va_test. To explain the log a bit more, the amdgpu_callback output is a foreach of the fd_tab hash table right before the util_hash_table_get call. The rest should be self-explanatory I think. I will see if I can find out why drmGetPrimaryDeviceNameFromFd returns the directory name, so if you have any ideas, please let me know. -- You are receiving this mail because: You are the assignee for the bug. --1440321435.FAAB1.30100 Date: Sun, 23 Aug 2015 09:17:15 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 12 on bug 91704 from
Created attachment 117870 [details]
Debug output

I've done some testing by adding debug output in amdgpu_device.c and while
testing your va_test does indeed work, I think I have found the reason as to
why startx does not work. Basically, the hash generation is broken, if you
check util_hash_table_get in the logs, you can see that it returns null (in the
startx output), even when the fd exists in the hash table. This seems to be
because drmGetPrimaryDeviceNameFromFd in fd_hash returns the directory name of
the dri device, as opposed to the dri device itself (/dev/dri/ vs
/dev/dri/card0) - you can see that in the log at lines 14 and 25. Strangely it
works just fine the first time amdgpu_device_initialize is called (line 4), and
in your va_test.

To explain the log a bit more, the amdgpu_callback output is a foreach of the
fd_tab hash table right before the util_hash_table_get call. The rest should be
self-explanatory I think.

I will see if I can find out why drmGetPrimaryDeviceNameFromFd returns the
directory name, so if you have any ideas, please let me know.


You are receiving this mail because:
  • You are the assignee for the bug.
--1440321435.FAAB1.30100-- --===============1445518472== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1445518472==--