]> git.baikalelectronics.ru Git - kernel.git/commit
memory: tegra20: Add debug statistics
authorDmitry Osipenko <digetx@gmail.com>
Fri, 19 Mar 2021 13:09:33 +0000 (16:09 +0300)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 1 Apr 2021 17:58:22 +0000 (19:58 +0200)
commit6ed2f9056ef9ba404ce20a9bdd9b60c3ef58b5f4
treea914b310974c61a59edf8f208513dc11c3bb238d
parent2db9725be864678028d284cef736abe419e3a83d
memory: tegra20: Add debug statistics

Add debug statistics collection support. The statistics is available
via debugfs in '/sys/kernel/debug/mc/stats', it shows percent of memory
controller utilization for each memory client. This information is
intended to help with debugging of memory performance issues, it already
was proven to be useful by helping to improve memory bandwidth management
of the display driver.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210319130933.23261-1-digetx@gmail.com
drivers/memory/tegra/mc.c
drivers/memory/tegra/mc.h
drivers/memory/tegra/tegra20.c
include/soc/tegra/mc.h