Radeon memory management improvements v3
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | drm/radeon: add a way to get and set initial buffer domainsdrivers/ drivers/ drivers/ +3 more | +57 | 0 replies | |
| 2/6 | drm/radeon: track memory statistics about VRAM and GTT usage and buffer movesdrivers/ drivers/ drivers/ +3 more | +65 | 0 replies | |
| 3/6 | drm/radeon: deduplicate code in radeon_gem_busy_ioctldrivers/ | +1 | 0 replies | |
| 4/6 | drm/radeon: add buffers to the LRU list from smallest to largestdrivers/ | +23 | 0 replies | |
| 5/6 | drm/radeon: validate relocations in the order determined by userspacedrivers/ drivers/ drivers/ +1 more | +61 | 0 replies | |
| 6/6 | drm/radeon: limit how much memory TTM can move per IB according to VRAM usagedrivers/ drivers/ drivers/ | +85 | 0 replies |
Reviews trailers per patch
3 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Christian König |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] Radeon memory management improvements v3
While updating "[PATCH 5/6] drm/radeon: validate relocations in the order determined by userspace" based on feedback, which should have been a harmless change, I discovered that the performance dropped. The problem was that list_add/move from one list to another reversed the list of relocations and the only thing which restored performance was to sort the relocation list with a stable sort. (preserve ordering of buffers whose priorities are equal). The only explanation I've come up with is that the buffers which appear sooner in the list are likely to be used more often by an IB than buffers which appear later in the list. For example, a texture used in all draw commands will most probably be somewhere at the beginning. However, a texture which appears at the end is probably only used in a
few last draw commands.
Also, the stats are changed to atomic64_t as discusssed before.
Marek