gpu: host1x: Support updating actmon watermark

Add support for updating actmon watermark thresholds so that
actmon DFS can work properly.

Add support for enabling or disabling watermark interrupts.

Bug 3788919

Signed-off-by: Johnny Liu <johnliu@nvidia.com>
Change-Id: Id1d0b744bc8a0a19fccbb3044d4267ae35cd5feb
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2897816
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Johnny Liu
2023-05-03 10:11:54 +00:00
committed by mobile promotions
parent d06443deae
commit 18b0b032d4
2 changed files with 47 additions and 0 deletions

View File

@@ -531,5 +531,12 @@ void host1x_actmon_update_client_rate(struct host1x_client *client,
unsigned long rate,
u32 *weight);
void host1x_actmon_read_active_norm(struct host1x_client *client, unsigned long *usage);
void host1x_actmon_update_active_wmark(struct host1x_client *client,
u32 avg_upper_wmark,
u32 avg_lower_wmark,
u32 consec_upper_wmark,
u32 consec_lower_wmark,
bool upper_wmark_enabled,
bool lower_wmark_enabled);
#endif