From e0b77a876177ba6db78a522f6ccf41127832737f Mon Sep 17 00:00:00 2001 From: Johnny Liu Date: Tue, 3 Oct 2023 07:11:23 +0000 Subject: [PATCH] gpu: host1x: add actmon information for OFA OFA is one of the host1x clients. One unit actmon is used for OFA. Bug 4310958 Signed-off-by: Johnny Liu Change-Id: I27bf72d642530740eb67954ef93177d56e63db87 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2990250 Reviewed-by: Mikko Perttunen GVS: Gerrit_Virtual_Submit --- drivers/gpu/host1x/dev.c | 7 +++++++ drivers/gpu/host1x/include/linux/host1x-next.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c index 55cd6dd4..55c8695e 100644 --- a/drivers/gpu/host1x/dev.c +++ b/drivers/gpu/host1x/dev.c @@ -473,6 +473,13 @@ static const struct host1x_actmon_entry tegra234_actmon_table[] = { .offset = 0x40000, .num_modules = 1, }, + { + .classid = HOST1X_CLASS_OFA, + .name = "ofa", + .irq = 7, + .offset = 0x50000, + .num_modules = 1, + }, }; static const struct host1x_info host1x08_info = { diff --git a/drivers/gpu/host1x/include/linux/host1x-next.h b/drivers/gpu/host1x/include/linux/host1x-next.h index f7e123e8..f8e619cf 100644 --- a/drivers/gpu/host1x/include/linux/host1x-next.h +++ b/drivers/gpu/host1x/include/linux/host1x-next.h @@ -25,6 +25,7 @@ enum host1x_class { HOST1X_CLASS_NVJPG = 0xC0, HOST1X_CLASS_NVDEC = 0xF0, HOST1X_CLASS_NVDEC1 = 0xF5, + HOST1X_CLASS_OFA = 0xF8, }; enum host1x_actmon_wmark_event {