https://bugs.freedesktop.org/show_bug.cgi?id=106634
Bug ID: 106634 Summary: some memory issue Product: DRI Version: XOrg git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: udovdh@xs4all.nl
Created attachment 139715 --> https://bugs.freedesktop.org/attachment.cgi?id=139715&action=edit dmesg
Gigabyte X470-AORUS-ULTRA-GAMING board with AMD Ryzen 5 2400g APU, Fedora 28, git MESA, git AMDGPU; box was migrated today from AMD A10-5800 based solution.
I found these in xorg.log:
[ 1894.583] (WW) AMDGPU(0): flip queue failed: Cannot allocate memory [ 1894.583] (WW) AMDGPU(0): Page flip failed: Cannot allocate memory [ 1894.583] (EE) AMDGPU(0): present flip failed [ 1894.594] (WW) AMDGPU(0): flip queue failed in amdgpu_scanout_flip: Cannot allocate memory, TearFree inactive until next modeset
https://bugs.freedesktop.org/show_bug.cgi?id=106634
--- Comment #1 from udo udovdh@xs4all.nl --- Created attachment 139716 --> https://bugs.freedesktop.org/attachment.cgi?id=139716&action=edit messages
https://bugs.freedesktop.org/show_bug.cgi?id=106634
udo udovdh@xs4all.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|some memory issue |flip queue failed: Cannot | |allocate memory
https://bugs.freedesktop.org/show_bug.cgi?id=106634
udo udovdh@xs4all.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|flip queue failed: Cannot |flip queue failed in |allocate memory |amdgpu_scanout_flip: Cannot | |allocate memory, TearFree | |inactive until next modeset
https://bugs.freedesktop.org/show_bug.cgi?id=106634
--- Comment #2 from udo udovdh@xs4all.nl --- Created attachment 139717 --> https://bugs.freedesktop.org/attachment.cgi?id=139717&action=edit xorg log
https://bugs.freedesktop.org/show_bug.cgi?id=106634
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|flip queue failed in |Failed to find memory space |amdgpu_scanout_flip: Cannot |for buffer [...] eviction |allocate memory, TearFree | |inactive until next modeset |
--- Comment #3 from Michel Dänzer michel@daenzer.net --- Please also attach the dmesg output from before the problem occurs, containing at least all the amdgpu and TTM initialization messages.
https://bugs.freedesktop.org/show_bug.cgi?id=106634
--- Comment #4 from Michel Dänzer michel@daenzer.net --- Created attachment 139718 --> https://bugs.freedesktop.org/attachment.cgi?id=139718&action=edit Print fpfn/lpfn values in ttm_bo_mem_space_debug
Can you rebuild the ttm.ko module with this patch applied, and attach the resulting dmesg output when the problem occurs again? It might shed some more light on why we fail to evict a BO to GTT, even though there seems to be enough space there.
https://bugs.freedesktop.org/show_bug.cgi?id=106634
--- Comment #5 from udo udovdh@xs4all.nl --- There is no dmesg from before the problem occurs. I will try the patch!
https://bugs.freedesktop.org/show_bug.cgi?id=106634
--- Comment #6 from udo udovdh@xs4all.nl --- Created attachment 139719 --> https://bugs.freedesktop.org/attachment.cgi?id=139719&action=edit journal
https://bugs.freedesktop.org/show_bug.cgi?id=106634
--- Comment #7 from Michel Dänzer michel@daenzer.net --- Actually, it seems clear that this happens because 1 GB of VRAM and 3 GB of GTT are full with buffer objects. Unless this keeps happening even immediately after closing applications / logging out and back in / restarting X, this looks like a userspace issue (could be a leak somewhere).
https://bugs.freedesktop.org/show_bug.cgi?id=106634
Martin Peres martin.peres@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED
--- 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/394.
dri-devel@lists.freedesktop.org