Files
linux-nv-oot/drivers/gpu/host1x/actmon.h
Johnny Liu 03fd3f1188 gpu: host1x: Enable general interrupts for actmon
Host1x general interrupts include actmon-related interrupts, axi
timeout interrupts, and illegal access interrupts. This change enables
actmon-related interrupts only.

Bug 3788919

Signed-off-by: Johnny Liu <johnliu@nvidia.com>
Change-Id: Iea1f1622a11afa72f70f8d10efebd857a51cc4e2
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2889825
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-28 03:32:38 -07:00

51 lines
967 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Tegra host1x Actmon
*
* Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#ifndef HOST1X_ACTMON_H
#define HOST1X_ACTMON_H
#include <linux/device.h>
#include <linux/types.h>
enum host1x_actmon_module_type {
HOST1X_ACTMON_MODULE_ACTIVE,
HOST1X_ACTMON_MODULE_STALL,
};
struct host1x_actmon;
struct host1x_actmon_module {
enum host1x_actmon_module_type type;
u32 k;
u32 consec_upper_num;
u32 consec_lower_num;
void __iomem *regs;
struct host1x_actmon *actmon;
struct dentry *debugfs;
};
struct host1x_client;
struct host1x_actmon {
char *name;
unsigned int irq;
unsigned int num_modules;
unsigned long rate;
u32 usecs_per_sample;
void __iomem *regs;
struct host1x_client *client;
struct host1x_actmon_module modules[8];
struct dentry *debugfs;
struct list_head list;
};
struct host1x;
void host1x_actmon_handle_interrupt(struct host1x *host, int classid);
#endif