All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 107229] Metro 2033 Redux hangs
@ 2018-07-14 20:38 bugzilla-daemon
  2018-07-14 20:44 ` bugzilla-daemon
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-07-14 20:38 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 107229
           Summary: Metro 2033 Redux hangs
           Product: DRI
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: alexander@tsoy.me

Metro 2033 Redux hangs when the certain combination of mesa version, kernel
version and kernel configuration is used. This is always happen on loading
screen.

I have done some tests using integrated benchmark (benchmark.sh):

linux-4.14.x + mesa-7.3.x = OK
linux-4.14.x + mesa-8.0.x / mesa-8.1.x = hang
linux-4.17.x with CONFIG_TRANSPARENT_HUGEPAGE=y = OK
linux-4.17.x with CONFIG_TRANSPARENT_HUGEPAGE=n + mesa-8.0.x / mesa-8.1.x =
hang

When the hang occur, it is causes massive slowdown of all other graphical
applications. With 4.14 kernels the game process is unkillable so it hangs
somewhere in the kernel space. With 4.17 kernels it can be killed but this
takes some time.


My GPU:
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
[AMD/ATI] Tonga PRO [Radeon R9 285/380] [1002:6939] (rev f1) (prog-if 00 [VGA
controller])
        Subsystem: PC Partner Limited / Sapphire Technology Tonga PRO [Radeon
R9 285/380] [174b:e305]

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

[-- Attachment #1.2: Type: text/html, Size: 2770 bytes --]

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

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

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

* [Bug 107229] Metro 2033 Redux hangs
  2018-07-14 20:38 [Bug 107229] Metro 2033 Redux hangs bugzilla-daemon
@ 2018-07-14 20:44 ` bugzilla-daemon
  2018-07-15 16:52 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-07-14 20:44 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #1 from Alexander Tsoy <alexander@tsoy.me> ---
Created attachment 140639
  --> https://bugs.freedesktop.org/attachment.cgi?id=140639&action=edit
linux_metro_bisect.log

> # first bad commit: [6ed4e2e673d348df6623012a628a8ab8624e3222] drm/ttm: add transparent huge page support for wc or uc allocations v2

Bisect is done with CONFIG_TRANSPARENT_HUGEPAGE=y. This is how I came to an
idea to play with transparent huge pages. Yes, I forgot about
--term-old/--term-new bisect options :)

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

[-- Attachment #1.2: Type: text/html, Size: 1535 bytes --]

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

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

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

* [Bug 107229] Metro 2033 Redux hangs
  2018-07-14 20:38 [Bug 107229] Metro 2033 Redux hangs bugzilla-daemon
  2018-07-14 20:44 ` bugzilla-daemon
@ 2018-07-15 16:52 ` bugzilla-daemon
  2018-07-16  9:44 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-07-15 16:52 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #2 from Alexander Tsoy <alexander@tsoy.me> ---
(In reply to Alexander Tsoy from comment #0)
> With 4.14 kernels the game process is unkillable so it hangs somewhere 
> in the kernel space. With 4.17 kernels it can be killed but this
> takes some time.
The process actually can be killed in a while loop.

Perf report:

$ sudo perf report | grep metro | head
    33.33%  metro            metro                          [.]
cbackend_OGL::delayed_upload
    31.56%  metro            [kernel.vmlinux]               [k] rb_prev
     2.07%  metro            [kernel.vmlinux]               [k] alloc_iova
     0.20%  metro            [kernel.vmlinux]               [k] __switch_to
     0.18%  metro            [kernel.vmlinux]               [k]
native_load_gs_index
     0.13%  metro            [kernel.vmlinux]               [k]
__x86_indirect_thunk_rax
     0.12%  metro            [kernel.vmlinux]               [k]
entry_SYSCALL_64
     0.08%  metro            [kernel.vmlinux]               [k] __schedule
     0.08%  metro            [kernel.vmlinux]               [k] read_tsc
     0.07%  metro            libc-2.26.so                   [.] __nanosleep

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

[-- Attachment #1.2: Type: text/html, Size: 2128 bytes --]

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

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

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

* [Bug 107229] Metro 2033 Redux hangs
  2018-07-14 20:38 [Bug 107229] Metro 2033 Redux hangs bugzilla-daemon
  2018-07-14 20:44 ` bugzilla-daemon
  2018-07-15 16:52 ` bugzilla-daemon
@ 2018-07-16  9:44 ` bugzilla-daemon
  2018-07-16 10:15 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-07-16  9:44 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #3 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Alexander Tsoy from comment #0)
> 
> linux-4.17.x with CONFIG_TRANSPARENT_HUGEPAGE=y = OK
> linux-4.17.x with CONFIG_TRANSPARENT_HUGEPAGE=n + mesa-8.0.x / mesa-8.1.x =
> hang

Did you swap CONFIG_TRANSPARENT_HUGEPAGE=y/n here? I.e.
CONFIG_TRANSPARENT_HUGEPAGE=y is bad, CONFIG_TRANSPARENT_HUGEPAGE=n is good?

If not, how exactly did you bisect with CONFIG_TRANSPARENT_HUGEPAGE=y ?

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

[-- Attachment #1.2: Type: text/html, Size: 1409 bytes --]

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

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

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

* [Bug 107229] Metro 2033 Redux hangs
  2018-07-14 20:38 [Bug 107229] Metro 2033 Redux hangs bugzilla-daemon
                   ` (2 preceding siblings ...)
  2018-07-16  9:44 ` bugzilla-daemon
@ 2018-07-16 10:15 ` bugzilla-daemon
  2018-07-16 10:18 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-07-16 10:15 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #4 from Alexander Tsoy <alexander@tsoy.me> ---
(In reply to Michel Dänzer from comment #3)
> (In reply to Alexander Tsoy from comment #0)
> > 
> > linux-4.17.x with CONFIG_TRANSPARENT_HUGEPAGE=y = OK
> > linux-4.17.x with CONFIG_TRANSPARENT_HUGEPAGE=n + mesa-8.0.x / mesa-8.1.x =
> > hang
> 
> Did you swap CONFIG_TRANSPARENT_HUGEPAGE=y/n here? I.e.
> CONFIG_TRANSPARENT_HUGEPAGE=y is bad, CONFIG_TRANSPARENT_HUGEPAGE=n is good?

Yes, after getting a clue that this bug could be related to transparent huge
pages, I tried to disable CONFIG_TRANSPARENT_HUGEPAGE in 4.17.6 kernel. This
results in the same hang I had with 4.14.x kernels.

Note that transparent huge pages must be disabled at build time. cmdline option
" transparent_hugepage=never" doesn't change anything.

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

[-- Attachment #1.2: Type: text/html, Size: 1818 bytes --]

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

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

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

* [Bug 107229] Metro 2033 Redux hangs
  2018-07-14 20:38 [Bug 107229] Metro 2033 Redux hangs bugzilla-daemon
                   ` (3 preceding siblings ...)
  2018-07-16 10:15 ` bugzilla-daemon
@ 2018-07-16 10:18 ` bugzilla-daemon
  2018-07-16 10:19 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-07-16 10:18 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #5 from Alexander Tsoy <alexander@tsoy.me> ---
To clarify a bit: first bad commit in bisect is actually the first good commit
that fixed hangs in Metro.

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

[-- Attachment #1.2: Type: text/html, Size: 1030 bytes --]

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

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

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

* [Bug 107229] Metro 2033 Redux hangs
  2018-07-14 20:38 [Bug 107229] Metro 2033 Redux hangs bugzilla-daemon
                   ` (4 preceding siblings ...)
  2018-07-16 10:18 ` bugzilla-daemon
@ 2018-07-16 10:19 ` bugzilla-daemon
  2018-08-04 11:34 ` bugzilla-daemon
  2019-11-19  8:43 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-07-16 10:19 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #6 from Alexander Tsoy <alexander@tsoy.me> ---
(In reply to Alexander Tsoy from comment #5)
> To clarify a bit: first bad commit in bisect is actually the first good
> commit that fixed hangs in Metro.
But only when transparent huge pages are enabled of course.

-- 
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: 160 bytes --]

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

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

* [Bug 107229] Metro 2033 Redux hangs
  2018-07-14 20:38 [Bug 107229] Metro 2033 Redux hangs bugzilla-daemon
                   ` (5 preceding siblings ...)
  2018-07-16 10:19 ` bugzilla-daemon
@ 2018-08-04 11:34 ` bugzilla-daemon
  2019-11-19  8:43 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-08-04 11:34 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #7 from Alexander Tsoy <alexander@tsoy.me> ---
Created attachment 140964
  --> https://bugs.freedesktop.org/attachment.cgi?id=140964&action=edit
dmesg

Same problem with the latest amd-staging-drm-next (commit
bf1fd52b0632cd17ac875432a36d3e92be96d8cb). Now the kernel gives me the
following errors:

[  324.552371] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR*
amdgpu_cs_list_validate(validated) failed.
[  324.561030] [drm:amdgpu_cs_ioctl [amdgpu]] *ERROR* Not enough memory for
command submission!

And with CONFIG_TRANSPARENT_HUGEPAGE=y the same kernel works fine.

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

[-- Attachment #1.2: Type: text/html, Size: 1552 bytes --]

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

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

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

* [Bug 107229] Metro 2033 Redux hangs
  2018-07-14 20:38 [Bug 107229] Metro 2033 Redux hangs bugzilla-daemon
                   ` (6 preceding siblings ...)
  2018-08-04 11:34 ` bugzilla-daemon
@ 2019-11-19  8:43 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2019-11-19  8:43 UTC (permalink / raw)
  To: dri-devel


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

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

Martin Peres <martin.peres@free.fr> changed:

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

--- Comment #8 from Martin Peres <martin.peres@free.fr> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/447.

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

[-- Attachment #1.2: Type: text/html, Size: 2290 bytes --]

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

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

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

end of thread, other threads:[~2019-11-19  8:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-14 20:38 [Bug 107229] Metro 2033 Redux hangs bugzilla-daemon
2018-07-14 20:44 ` bugzilla-daemon
2018-07-15 16:52 ` bugzilla-daemon
2018-07-16  9:44 ` bugzilla-daemon
2018-07-16 10:15 ` bugzilla-daemon
2018-07-16 10:18 ` bugzilla-daemon
2018-07-16 10:19 ` bugzilla-daemon
2018-08-04 11:34 ` bugzilla-daemon
2019-11-19  8:43 ` 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.