diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2021-06-01 07:21:08 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-08-13 12:31:07 +0200 |
commit | ad85b0843ee4536593415ca890d7fb52cd7f1fbe (patch) | |
tree | c68facbb4cfbbde7db6a9d79ec7a3237870a9f94 /drivers/gpu/drm/tegra/dc.h | |
parent | drm/tegra: dc: Support memory bandwidth management (diff) | |
download | wireguard-linux-ad85b0843ee4536593415ca890d7fb52cd7f1fbe.tar.xz wireguard-linux-ad85b0843ee4536593415ca890d7fb52cd7f1fbe.zip |
drm/tegra: dc: Extend debug stats with total number of events
It's useful to know the total number of underflow events and currently
the debug stats are getting reset each time CRTC is being disabled. Let's
account the overall number of events that doesn't get a reset.
Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.h')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/dc.h b/drivers/gpu/drm/tegra/dc.h index 2864f519bc19..f0cb691852a1 100644 --- a/drivers/gpu/drm/tegra/dc.h +++ b/drivers/gpu/drm/tegra/dc.h @@ -46,6 +46,11 @@ struct tegra_dc_stats { unsigned long vblank; unsigned long underflow; unsigned long overflow; + + unsigned long frames_total; + unsigned long vblank_total; + unsigned long underflow_total; + unsigned long overflow_total; }; struct tegra_windowgroup_soc { |