All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
@ 2015-08-20 18:19 bugzilla-daemon
  2015-08-20 20:50 ` bugzilla-daemon
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-20 18:19 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

            Bug ID: 91704
           Summary: Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make
                    vamgr per device v2
           Product: DRI
           Version: DRI git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: adf.lists@gmail.com

Created attachment 117820
  --> https://bugs.freedesktop.org/attachment.cgi?id=117820&action=edit
xorg log

With latest libdrm git I can't startx due to a segfault shown in attached xorg
log.

dmesg logs several -

amdgpu 0000:01:00.0: bo ffff8800bd34b800 va 0x0000100000-0x0000100400 conflict
with 0x0000100000-0x0000100400

This happens with mesa/drm on commit 

56d8dd6 amdgpu: make vamgr per device v2

On the commit before that -

ffa305d amdgpu: add flag to support 32bit VA address v4

I can startx without error but performance is broken eg. scrolling in xterm
takes about a second to refresh the screen.

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

[-- Attachment #1.2: Type: text/html, Size: 2529 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
@ 2015-08-20 20:50 ` bugzilla-daemon
  2015-08-20 21:20 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-20 20:50 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

Alex Deucher <alexdeucher@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |master.homer@gmail.com

--- Comment #1 from Alex Deucher <alexdeucher@gmail.com> ---
*** Bug 91708 has been marked as a duplicate of this bug. ***

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

[-- Attachment #1.2: Type: text/html, Size: 2067 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
  2015-08-20 20:50 ` bugzilla-daemon
@ 2015-08-20 21:20 ` bugzilla-daemon
  2015-08-20 22:06 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-20 21:20 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #2 from Andy Furniss <adf.lists@gmail.com> ---
Further testing - booting into a pre existing drm-fixes-4.2 has the same issue.

The modesetting ddx works OK and using that I still have OpenGL, though uvd
will fail with dmesg errors as above.

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

[-- Attachment #1.2: Type: text/html, Size: 1197 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
  2015-08-20 20:50 ` bugzilla-daemon
  2015-08-20 21:20 ` bugzilla-daemon
@ 2015-08-20 22:06 ` bugzilla-daemon
  2015-08-21  3:56 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-20 22:06 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #3 from Andy Furniss <adf.lists@gmail.com> ---
Created attachment 117831
  --> https://bugs.freedesktop.org/attachment.cgi?id=117831&action=edit
xorg log modesetting aiglx fails

When I say OK for modesetting there are still errors with dri2 and AIGLX falls
back to s/w.

Which makes me a bit confused as to why xonotic-linux64-glx is working OK - in
fact it benchmarks 20% faster than I've seen so far on tonga. I can't be using
llvm with this test - it's set everything as high as it will go and I get 64
fps on the big keybench.

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

[-- Attachment #1.2: Type: text/html, Size: 1644 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2015-08-20 22:06 ` bugzilla-daemon
@ 2015-08-21  3:56 ` bugzilla-daemon
  2015-08-21  9:58 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-21  3:56 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #4 from Jammy Zhou <jammy.zhou@aliyun.com> ---
Were you only changing the libdrm_amdgpu for the bisecting? It looks like those
two libdrm commits you mentioned shouldn't cause this VA confict and
performance issue for xterm scrolling. Which kernel were you using?

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

[-- Attachment #1.2: Type: text/html, Size: 1219 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2015-08-21  3:56 ` bugzilla-daemon
@ 2015-08-21  9:58 ` bugzilla-daemon
  2015-08-21 11:54 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-21  9:58 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #5 from Andy Furniss <adf.lists@gmail.com> ---
Created attachment 117837
  --> https://bugs.freedesktop.org/attachment.cgi?id=117837&action=edit
egl fail causing scrolling issue

I am using agd5f drm-next-4.3-wip but have tested an older drm fixes.

I am just changing libdrm, but I do rebuild mesa after (and ddx usually). On
heads I also tried rebuilding xserver + kernel as well, just in case in
magically started working by doing that :-)

As for the scrolling issue - I didn't look into it as I was just "passing"
while looking at the main issue.

Looking now I can see why - glamor/egl fail log attached. I have after
resetting onto ffa305d this time, rebuilt xserver as well and checked output.
Mesa xserver ddx all build OK AFAICT and the issue persists.

Maybe these commits are causing some strange build issues for stuff that
depends on/uses libdrm headers or something.

Thanks to Mathias taking time to report with obiaf ppas, at least I know it's
not just me (using an old LFS set up).

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

[-- Attachment #1.2: Type: text/html, Size: 2122 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2015-08-21  9:58 ` bugzilla-daemon
@ 2015-08-21 11:54 ` bugzilla-daemon
  2015-08-22 13:29 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-21 11:54 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #6 from Mathias Tillman <master.homer@gmail.com> ---
I can confirm that reverting to ffa305d0fc926418e4dff432381ead8907dc18d9 makes
it work, before it would fail before reaching the dm login page (I'm using
sddm), and now it reaches the login page. I also did a manual unpatching of
56d8dd6a9c03680700e0b0043cb56e0af7e3e3de when on the latest commit, which gave
me the same result.

The conflict looks to me like it's trying to initialize the device multiple
times - I did some debugging, and it reaches the amdgpu_device_initialize
function several times with the same virtual address. I'm not sure if this is
intentional or not, but it does seem a bit odd to me. Maybe there should be a
saved global state of vamgr's that corresponds to the virtual address? Or is it
just not supposed to initialize the same device multiple times?

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

[-- Attachment #1.2: Type: text/html, Size: 1794 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2015-08-21 11:54 ` bugzilla-daemon
@ 2015-08-22 13:29 ` bugzilla-daemon
  2015-08-22 13:31 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-22 13:29 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #7 from Jammy Zhou <jammy.zhou@aliyun.com> ---
Created attachment 117860
  --> https://bugs.freedesktop.org/attachment.cgi?id=117860&action=edit
va_test

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

[-- Attachment #1.2: Type: text/html, Size: 1215 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (6 preceding siblings ...)
  2015-08-22 13:29 ` bugzilla-daemon
@ 2015-08-22 13:31 ` bugzilla-daemon
  2015-08-22 16:20 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-22 13:31 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #8 from Jammy Zhou <jammy.zhou@aliyun.com> ---
Thanks for the information. But it seems not expected. Even if
amdgpu_device_initialize is called multiple times with different fds (returned
by opening the device nodes) in one single process, only one amdgpu_device
should be created, since a hash table is maitained for the created devices. In
this case, the per-device vamgr should only be initialized as well in one
process.I wrote a simple test application (see attached), and it worked for me
quite well. Could you try it on your failing system?

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

[-- Attachment #1.2: Type: text/html, Size: 1504 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (7 preceding siblings ...)
  2015-08-22 13:31 ` bugzilla-daemon
@ 2015-08-22 16:20 ` bugzilla-daemon
  2015-08-22 19:36 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-22 16:20 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #9 from Andy Furniss <adf.lists@gmail.com> ---
(In reply to Jammy Zhou from comment #7)
> Created attachment 117860 [details]
> va_test

Where to compile this from - and why is 

#include "amdgpu_drm.h"

there twice - is the second one supposed to be something else (changing the
includes to <libdrm/amdgpu_drm.h> etc. won't build.

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

[-- Attachment #1.2: Type: text/html, Size: 1545 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (8 preceding siblings ...)
  2015-08-22 16:20 ` bugzilla-daemon
@ 2015-08-22 19:36 ` bugzilla-daemon
  2015-08-22 19:52 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-22 19:36 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #10 from Andy Furniss <adf.lists@gmail.com> ---
> (changing the
> includes to <libdrm/amdgpu_drm.h> etc. won't build.

Oh NVM it will build with system headers as long as I remember to specify the
lib :-)

So outside X it works (assuming silence is success) as user and root.

Inside X it only works as root, device_initialization fails as user - which
prompted me to try startx as root - this works with amdgpu (unless its a fluke
because root got twm and I use fluxbox).

Starting X as root with modesetting starts but I see the same as the
modesetting log I posted.

So maybe some permissions issue.

FWIW card0 is 

crw-rw---- 1 root video 226, 0 Aug 22  2015 /dev/dri/card0

and my user is in group video.

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

[-- Attachment #1.2: Type: text/html, Size: 1707 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (9 preceding siblings ...)
  2015-08-22 19:36 ` bugzilla-daemon
@ 2015-08-22 19:52 ` bugzilla-daemon
  2015-08-23  9:17 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-22 19:52 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #11 from Andy Furniss <adf.lists@gmail.com> ---
(In reply to Andy Furniss from comment #10)
> > (changing the
> > includes to <libdrm/amdgpu_drm.h> etc. won't build.
> 
> Oh NVM it will build with system headers as long as I remember to specify
> the lib :-)
> 
> So outside X it works (assuming silence is success) as user and root.
> 
> Inside X it only works as root, device_initialization fails as user - which
> prompted me to try startx as root - this works with amdgpu (unless its a
> fluke because root got twm and I use fluxbox).
> 
> Starting X as root with modesetting starts but I see the same as the
> modesetting log I posted.
> 
> So maybe some permissions issue.

Permissions seems to be a red herring - It's possible for startx as root to
fail in the same way as user. So startx may work as root but only if I am lucky
- repeated testing and it mostly fails now.

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

[-- Attachment #1.2: Type: text/html, Size: 1964 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (10 preceding siblings ...)
  2015-08-22 19:52 ` bugzilla-daemon
@ 2015-08-23  9:17 ` bugzilla-daemon
  2015-08-23  9:44 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-23  9:17 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #12 from Mathias Tillman <master.homer@gmail.com> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 2272 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (11 preceding siblings ...)
  2015-08-23  9:17 ` bugzilla-daemon
@ 2015-08-23  9:44 ` bugzilla-daemon
  2015-08-23 10:55 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-23  9:44 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #13 from Mathias Tillman <master.homer@gmail.com> ---
Created attachment 117871
  --> https://bugs.freedesktop.org/attachment.cgi?id=117871&action=edit
Potential fix

Andy: Could you test the attached patch, please? It's now working fine for me.

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

[-- Attachment #1.2: Type: text/html, Size: 1412 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (12 preceding siblings ...)
  2015-08-23  9:44 ` bugzilla-daemon
@ 2015-08-23 10:55 ` bugzilla-daemon
  2015-08-23 11:56 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-23 10:55 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #14 from Andy Furniss <adf.lists@gmail.com> ---
(In reply to Mathias Tillman from comment #13)
> Created attachment 117871 [details] [review]
> Potential fix
> 
> Andy: Could you test the attached patch, please? It's now working fine for
> me.

It also seems to be working for me :-)

I just did about 20 startx in a row and all is OK.

va_test behaves the same as before = fail as user from within X, but maybe that
is expected?

modesetting still has issues, but they probably are nothing to do with this bug
anyway - I had never used it before this issue arose.

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

[-- Attachment #1.2: Type: text/html, Size: 1870 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (13 preceding siblings ...)
  2015-08-23 10:55 ` bugzilla-daemon
@ 2015-08-23 11:56 ` bugzilla-daemon
  2015-08-23 14:07 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-23 11:56 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #15 from Andy Furniss <adf.lists@gmail.com> ---
(In reply to Andy Furniss from comment #14)
> (In reply to Mathias Tillman from comment #13)
> > Created attachment 117871 [details] [review] [review]
> > Potential fix
> > 
> > Andy: Could you test the attached patch, please? It's now working fine for
> > me.
> 
> It also seems to be working for me :-)

It gets better - there is a chance that this (well it + working current libdrm
it enables) has fixed a long standing UVD issue and a more recent vapau_interop
one (basically both would randomly fail). It's slightly possible that something
else fixed it - will have to play over coming days.

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

[-- Attachment #1.2: Type: text/html, Size: 2014 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (14 preceding siblings ...)
  2015-08-23 11:56 ` bugzilla-daemon
@ 2015-08-23 14:07 ` bugzilla-daemon
  2015-08-23 14:13 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-23 14:07 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #16 from Mathias Tillman <master.homer@gmail.com> ---
Doubt my patch had anything to do with that, unless the affected function is
used from anywhere outside the drm code.
Glad to hear that it works though, hopefully the fix can be pushed to master
soon.

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

[-- Attachment #1.2: Type: text/html, Size: 1217 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (15 preceding siblings ...)
  2015-08-23 14:07 ` bugzilla-daemon
@ 2015-08-23 14:13 ` bugzilla-daemon
  2015-08-24  4:00 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-23 14:13 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #17 from Andy Furniss <adf.lists@gmail.com> ---
(In reply to Mathias Tillman from comment #16)
> Doubt my patch had anything to do with that, unless the affected function is
> used from anywhere outside the drm code.
> Glad to hear that it works though, hopefully the fix can be pushed to master
> soon.

Yea turned out to be false (for uvd lock at least haven't had time to stress
vapau interop) extended testing = I can still lock - just with current setup it
takes much longer than I've seen recently.

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

[-- Attachment #1.2: Type: text/html, Size: 1541 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (16 preceding siblings ...)
  2015-08-23 14:13 ` bugzilla-daemon
@ 2015-08-24  4:00 ` bugzilla-daemon
  2015-08-24  7:53 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-24  4:00 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #18 from Jammy Zhou <jammy.zhou@aliyun.com> ---
Thanks guys for the investigation. I have posted the patch to the dri-devel
mailing list. Please check below.

http://lists.freedesktop.org/archives/dri-devel/2015-August/089003.html

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

[-- Attachment #1.2: Type: text/html, Size: 1273 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (17 preceding siblings ...)
  2015-08-24  4:00 ` bugzilla-daemon
@ 2015-08-24  7:53 ` bugzilla-daemon
  2015-08-24 11:25 ` bugzilla-daemon
  2015-08-24 11:27 ` bugzilla-daemon
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-24  7:53 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #19 from Christian König <deathsimple@vodafone.de> ---
Nice catch!

And Andy is right this could explain some of the problem we had with VDPAU
interop as well, cause there the device is also opened from multiple sides at
the same time.

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

[-- Attachment #1.2: Type: text/html, Size: 1233 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (18 preceding siblings ...)
  2015-08-24  7:53 ` bugzilla-daemon
@ 2015-08-24 11:25 ` bugzilla-daemon
  2015-08-24 11:27 ` bugzilla-daemon
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-24 11:25 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

--- Comment #20 from Andy Furniss <adf.lists@gmail.com> ---
(In reply to Christian König from comment #19)
> Nice catch!
> 
> And Andy is right this could explain some of the problem we had with VDPAU
> interop as well, cause there the device is also opened from multiple sides
> at the same time.

New version of the patch seems good for startx.

Also tried harder than yesterday with vdpau interop and it also seems good.

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

[-- Attachment #1.2: Type: text/html, Size: 1489 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2
  2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
                   ` (19 preceding siblings ...)
  2015-08-24 11:25 ` bugzilla-daemon
@ 2015-08-24 11:27 ` bugzilla-daemon
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2015-08-24 11:27 UTC (permalink / raw)
  To: dri-devel


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

https://bugs.freedesktop.org/show_bug.cgi?id=91704

Mathias Tillman <master.homer@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #21 from Mathias Tillman <master.homer@gmail.com> ---
Marking this as resolved then :)

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

[-- Attachment #1.2: Type: text/html, Size: 2075 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-08-24 11:27 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-20 18:19 [Bug 91704] Tonga startx fails since mesa/drm 56d8dd6 amdgpu: make vamgr per device v2 bugzilla-daemon
2015-08-20 20:50 ` bugzilla-daemon
2015-08-20 21:20 ` bugzilla-daemon
2015-08-20 22:06 ` bugzilla-daemon
2015-08-21  3:56 ` bugzilla-daemon
2015-08-21  9:58 ` bugzilla-daemon
2015-08-21 11:54 ` bugzilla-daemon
2015-08-22 13:29 ` bugzilla-daemon
2015-08-22 13:31 ` bugzilla-daemon
2015-08-22 16:20 ` bugzilla-daemon
2015-08-22 19:36 ` bugzilla-daemon
2015-08-22 19:52 ` bugzilla-daemon
2015-08-23  9:17 ` bugzilla-daemon
2015-08-23  9:44 ` bugzilla-daemon
2015-08-23 10:55 ` bugzilla-daemon
2015-08-23 11:56 ` bugzilla-daemon
2015-08-23 14:07 ` bugzilla-daemon
2015-08-23 14:13 ` bugzilla-daemon
2015-08-24  4:00 ` bugzilla-daemon
2015-08-24  7:53 ` bugzilla-daemon
2015-08-24 11:25 ` bugzilla-daemon
2015-08-24 11:27 ` bugzilla-daemon

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.