From: Marek Olšák Date: Sat, 1 Mar 2014 23:56:18 +0000 (+0100) Subject: drm/radeon: track memory statistics about VRAM and GTT usage and buffer moves v2 X-Git-Tag: v3.15-rc1~51^2~58^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67e8e3f970ad747d3c854fb40f8ec0cecedd9089;p=pandora-kernel.git drm/radeon: track memory statistics about VRAM and GTT usage and buffer moves v2 The statistics are: - VRAM usage in bytes - GTT usage in bytes - number of bytes moved by TTM The last one is actually a counter, so you need to sample it before and after command submission and take the difference. This is useful for finding performance bottlenecks. Userspace queries are also added. v2: use atomic64_t Signed-off-by: Marek Olšák Reviewed-by: Christian König --- Reading git-diff-tree failed