* [Bug 106872] vram sizes reported by the kernel totally off
@ 2018-06-09 22:47 bugzilla-daemon
2018-06-11 17:15 ` bugzilla-daemon
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bugzilla-daemon @ 2018-06-09 22:47 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1352 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=106872
Bug ID: 106872
Summary: vram sizes reported by the kernel totally off
Product: DRI
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: dri-devel@lists.freedesktop.org
Reporter: bas@basnieuwenhuizen.nl
With Pierre-Loup's desktop we have an issue where the reported VRAM and CPU
visible VRAM are totally off.
e.g. the last report we had kernel reported total VRAM size of
0xfffffffb3070f000 (16.0 EiB) and a visible VRAM size of 0x86135000 (2.09 GiB).
The system is a large aperture system, so expected is ~8 GiB for both, and it
is most of the time. The system typically boots in a good state and eventually
after a while transitions to a bad state and sometimes it transitions back.
We have not been able to find a pattern and on one of the earlier cases the
debugfs vram_mm file reported reasonable size & utilization.
The kernels that have been tried include amd-staging-drm-next and a released
kernel (need to look up whether it was 4.15 or 4.16 if that information is
needed)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2649 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] 4+ messages in thread
* [Bug 106872] vram sizes reported by the kernel totally off
2018-06-09 22:47 [Bug 106872] vram sizes reported by the kernel totally off bugzilla-daemon
@ 2018-06-11 17:15 ` bugzilla-daemon
2018-06-12 6:59 ` bugzilla-daemon
2018-06-14 15:47 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2018-06-11 17:15 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1039 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=106872
--- Comment #1 from Michel Dänzer <michel@daenzer.net> ---
Please attach the dmesg output from the affected system, preferably captured
while or after the problem occurs.
(In reply to Bas Nieuwenhuizen from comment #0)
> e.g. the last report we had kernel reported total VRAM size of
> 0xfffffffb3070f000 (16.0 EiB) and a visible VRAM size of 0x86135000 (2.09
> GiB).
Not the other way around?
One potential issue I can see is that only BOs with
AMDGPU_GEM_CREATE_NO_CPU_ACCESS are accounted for invisible_pin_size. But such
BOs can still end up pinned at least partially in CPU visible VRAM, which would
mess up the calculation of how much visible VRAM currently isn't pinned.
One possible solution for this would be for amdgpu_bo_pin_restricted and
amdgpu_bo_unpin to walk the list of memory nodes and calculate exactly how much
of each of them lies in visible or invisible VRAM.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1892 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] 4+ messages in thread
* [Bug 106872] vram sizes reported by the kernel totally off
2018-06-09 22:47 [Bug 106872] vram sizes reported by the kernel totally off bugzilla-daemon
2018-06-11 17:15 ` bugzilla-daemon
@ 2018-06-12 6:59 ` bugzilla-daemon
2018-06-14 15:47 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2018-06-12 6:59 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 808 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=106872
--- Comment #2 from Christian König <ckoenig.leichtzumerken@gmail.com> ---
(In reply to Michel Dänzer from comment #1)
> One possible solution for this would be for amdgpu_bo_pin_restricted and
> amdgpu_bo_unpin to walk the list of memory nodes and calculate exactly how
> much of each of them lies in visible or invisible VRAM.
We actually have a helper for that in amdgpu_vram_mgr_vis_size().
Apart from that if the problem only occurse after a certain time it looks like
we have a mismatch between adding the pinned size and subtracting it again. Or
alternatively some sort of memory corruption.
Have you tried running it with KASAN enabled for a while?
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1677 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] 4+ messages in thread
* [Bug 106872] vram sizes reported by the kernel totally off
2018-06-09 22:47 [Bug 106872] vram sizes reported by the kernel totally off bugzilla-daemon
2018-06-11 17:15 ` bugzilla-daemon
2018-06-12 6:59 ` bugzilla-daemon
@ 2018-06-14 15:47 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2018-06-14 15:47 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 711 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=106872
Michel Dänzer <michel@daenzer.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|dri-devel@lists.freedesktop |michel@daenzer.net
|.org |
--- Comment #3 from Michel Dänzer <michel@daenzer.net> ---
Created attachment 140160
--> https://bugs.freedesktop.org/attachment.cgi?id=140160&action=edit
drm/amdgpu: Refactor amdgpu_vram_mgr_bo_sizes helper
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2418 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] 4+ messages in thread
end of thread, other threads:[~2018-06-14 15:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-09 22:47 [Bug 106872] vram sizes reported by the kernel totally off bugzilla-daemon
2018-06-11 17:15 ` bugzilla-daemon
2018-06-12 6:59 ` bugzilla-daemon
2018-06-14 15:47 ` 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.