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)
commitfbd31f5aa60259bfa836dccb35159a7e17a60314
treea914b310974c61a59edf8f208513dc11c3bb238d
parente47faa54c3a30af87b0b441b3fc0960dba17c9a2
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