Skip to contentSkip to conversation

New: RadeonSI get a huge performance dip with used with the nine state tracker

Bug 119631 [email protected] 1 participant 20 messages Jun 4, 2016 – Aug 16, 2016

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=119631

            Bug ID: 119631
           Summary: RadeonSI get a huge performance dip with used with the
                    nine state tracker
           Product: Drivers
           Version: 2.5
    Kernel Version: 4.7-rc1
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Video(DRI - non Intel)
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Hi,

I have a Radeon 7970HD and I use the Gallium Nine state tracker to play a specific game (EVE-Online). I did notice that the performance take a big dip when used with the kernel 4.7-next and -rc1. I did know about a regretion affecting some opengl game, that might and might not be related.

Using the kernel 4.7, I lose about 1/3 to 2/3 of the fps depending of the situation.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

https://bugzilla.kernel.org/show_bug.cgi?id=119631

Vedran Miletić <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Vedran Miletić <[email protected]> --- Compared to 4.6? Can you bisect?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
author Reviewed-by Christian König
#2 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #2 from Mathieu Belanger <[email protected]> --- Compared to 4.6-rc5
There.

c63dd758589b1f7e8398841d1f443f06ebfbcefc is the first bad commit commit c63dd758589b1f7e8398841d1f443f06ebfbcefc

Author: Michel Dänzer <[email protected]>
Date:   Fri Apr 1 18:51:34 2016 +0900

drm/radeon: Support DRM_MODE_PAGE_FLIP_ASYNC

When this flag is set, we program the hardware to execute the flip during horizontal blank (i.e. for the next scanline) instead of during vertical blank (i.e. for the next frame).

Currently this is only supported on ASICs which have a page flip completion interrupt (>= R600), and only if the use_pflipirq parameter has value 2 (the default).

:040000 040000 2f3d8295e7fa2809a3546a23c64da33311e624b9
6cd9fd9b53df0942efab559295e4c11fc6cc0463 M drivers

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

Mathieu Belanger <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Regression|No |Yes

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #3 from Michel Dänzer <[email protected]> --- Please attach the corresponding Xorg log file, preferably captured after running EVE-Online.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #4 from Mathieu Belanger <[email protected]> --- Created attachment 219661
--> https://bugzilla.kernel.org/attachment.cgi?id=219661&action=edit
Xorg log file after running EVE

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #5 from Mathieu Belanger <[email protected]> --- Created attachment 219671
--> https://bugzilla.kernel.org/attachment.cgi?id=219671&action=edit
dmesg after running EVE

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #6 from Michel Dänzer <[email protected]> --- Does the problem also occur with xserver 1.18.3 or newer?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #7 from Mathieu Belanger <[email protected]> --- Yes, I just updated xserver to 1.18.3, bug still present.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #8 from Michel Dänzer <[email protected]> ---
Does setting the environment variable thread_submit=true for the EVE-Online process avoid the problem?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#10 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #9 from Mathieu Belanger <[email protected]> --- No,thread_submit=true just remove more fps.

Big drop if I run EVE without DRM_MODE_PAGE_FLIP_ASYNC Small drop if I run EVE with DRM_MODE_PAGE_FLIP_ASYNC

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

Axel Davy <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #10 from Axel Davy <[email protected]> --- Hi,

It looks like to be a bug in gallium nine, wine side. (Though I don't get why thread_submit=true didn't help)

Please try with the following diff:

https://paste.fedoraproject.org/379178/93261014/

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#12 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #11 from Mathieu Belanger <[email protected]> --- I will test the patch this night.

Isn't thread_submit just to fix rendering on DRI PRIME or something like that?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#13 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #12 from Axel Davy <[email protected]> --- thread_submit delays submission of buffers to the X server until the moment the buffer has all rendering finished.

This is useful for DRI PRIME, because the kernel doesn't have yet all the pieces to have the other card wait for the rendering.
I thought perhaps in your case the issue was that the async flip was taking too long because it needed to wait for the rendering to finish, but apparently not.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#14 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #13 from Mathieu Belanger <[email protected]> --- Tested Axel patch.

It making it better. Instead of loosing about half of the fps, I lose about 10

337 -> 331
175 -> 165

But still have a "small" loss, I don't know if it's normal with DRM_MODE_PAGE_FLIP_ASYNC or no. Note, I did test the patch with DRM_MODE_PAGE_FLIP_ASYNC disabled too and did get the same exact fps than without the patch.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#15 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #14 from Michel Dänzer <[email protected]> ---
The DRM_MODE_PAGE_FLIP_ASYNC change can't have any effect with Axel's patch, because it explicitly forces the Present operations to be executed as copies instead of flips. The difference you're seeing must therefore be caused by something else.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#16 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

Thorsten Leemhuis <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #15 from Thorsten Leemhuis <[email protected]> --- What's the status of this issue? Just wondering, as this issue is listed in my regression reports for 4.7 and it seems nothing much happened for more than a week now – which is a bad sign as the 4.7 release seems only a week or two away.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#17 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #16 from Michel Dänzer <[email protected]> --- (In reply to Thorsten Leemhuis from comment #15)

Quoted 2 lines

What's the status of this issue? Just wondering, as this issue is listed in my regression reports for 4.7 [...]

This isn't a kernel regression. It's a Wine/nine issue.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#18 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

John Brooks <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #17 from John Brooks <[email protected]> --- Looks like it may actually have been a kernel regression.
https://bugs.freedesktop.org/show_bug.cgi?id=97260#c12

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#19 lore raw

[Bug 119631] RadeonSI get a huge performance dip with used with the nine state tracker

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=119631

--- Comment #18 from Michel Dänzer <[email protected]> --- (In reply to John Brooks from comment #17)

Quoted 2 lines

Looks like it may actually have been a kernel regression.
https://bugs.freedesktop.org/show_bug.cgi?id=97260#c12

We can't be sure about that until the problem is fully understood / fixed. So far it still seems more likely that the kernel change triggered an existing issue somewhere else.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel