Bug 97593

Summary: [amdgpu SI] low performace, low (about 1/4) VRAM usage
Product: DRI Reporter: Arek Ruśniak <arek.rusi>
Component: DRM/AMDgpuAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: lakostis
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
screenshot from unigine-heaven
none
kernel log for heaven
none
xorg log for heaven
none
dmesg log
none
xorg log
none
Update active VRAM size when turning DMA on/off none

Description Arek Ruśniak 2016-09-04 19:16:10 UTC
Created attachment 126201 [details]
screenshot from unigine-heaven

Hi, I've tried amdgpu driver for SI and GL apps run much slower than for radeon.
Unigine-Heaven drops from 20 fps to 8 fps
VRAM usage ~ 200MB
requested VRAM ~500MB
GTT usage ~ 500MB 
Look at the screenshot for more.

drm-next-4.9-wip: 48fad3aff638c7bc16656e31047f689aa44020a1 
xorg-git
mesa-git:98f734e
llvm-svn:280612
libdrm:4462303 + 2 patches for SI support from amd-gfx's list

I used unigine-heaven benchmark for first shot but more apps in affected:
Alien Isolation
Shadow of Mordor
Bioshock Infinite
Metro 2033 Redux
XCOM
The Witcher 2
xonotic (for quality "low" performance is normal) 
In fact only glxgears, lightsmark, gputest(all),openarena are not affected :) 

In any case VRAM-usage isn't raised over a 250MB but dmesg & xorg logs are different for each games, I will try update the logs later.
I've tested it with dpm=1, but dpm=0 makes nothing.
Comment 1 Arek Ruśniak 2016-09-04 19:19:13 UTC
Created attachment 126202 [details]
kernel log for heaven
Comment 2 Arek Ruśniak 2016-09-04 19:37:06 UTC
Created attachment 126203 [details]
xorg log for heaven

this is next boot then dmesg, heaven starts at 78 sec.
Comment 3 Arek Ruśniak 2016-09-05 21:07:23 UTC
Created attachment 126231 [details]
dmesg log

dmesg for:

shadow of mordor (empty)
metro 2033 redux
bioshock infinite
alien: isolation
deadfall adventures
tomb raider
xcom (empty)

xonotic

i've played a few second each game
Comment 4 Arek Ruśniak 2016-09-05 21:09:08 UTC
Created attachment 126232 [details]
xorg log

looks good to me
Comment 5 Michel Dänzer 2016-09-06 08:03:07 UTC
Created attachment 126237 [details] [review]
Update active VRAM size when turning DMA on/off

Does this patch fix the problem?
Comment 6 Konstantin A. Lepikhov 2016-09-06 18:45:31 UTC
(In reply to Michel Dänzer from comment #5)
> Created attachment 126237 [details] [review] [review]
> Update active VRAM size when turning DMA on/off
> 
> Does this patch fix the problem?

It helped in my case - FPS in Heaven increased from 1 to 15 and VRAM usage was optimal.
Comment 7 Arek Ruśniak 2016-09-06 20:11:38 UTC
Michael yes, it fix the problem. VM-errors are still making some noise but i think it's another problem.
thx
Comment 8 Arek Ruśniak 2016-09-06 20:52:23 UTC
*Michel
it's embarrassing

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.