From fa73b73ba77b5951bdfd87ada41cbfd49e143b20 Mon Sep 17 00:00:00 2001 From: Antony Clince Alex Date: Tue, 31 Mar 2020 20:07:31 +0530 Subject: [PATCH] nvgpu: userspace: update priv_ring testcase Init below new hals in test_priv_ring_setup: - priv_ring.isr_handle_0 - priv_ring.isr_handle_1 Jira NVGPU-4669 Change-Id: Ia93a4ffca8335d71a463415d018e0746fc24e07e Signed-off-by: Antony Clince Alex Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2321415 Tested-by: mobile promotions Reviewed-by: mobile promotions --- drivers/gpu/nvgpu/libnvgpu-drv_safe.export | 2 ++ userspace/units/priv_ring/nvgpu-priv_ring.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/libnvgpu-drv_safe.export b/drivers/gpu/nvgpu/libnvgpu-drv_safe.export index 7083f7b32..a7b18b56e 100644 --- a/drivers/gpu/nvgpu/libnvgpu-drv_safe.export +++ b/drivers/gpu/nvgpu/libnvgpu-drv_safe.export @@ -803,3 +803,5 @@ nvgpu_rc_gr_fault nvgpu_rc_sched_error_bad_tsg nvgpu_rc_tsg_and_related_engines nvgpu_rc_mmu_fault +gp10b_priv_ring_isr_handle_0 +gp10b_priv_ring_isr_handle_1 diff --git a/userspace/units/priv_ring/nvgpu-priv_ring.c b/userspace/units/priv_ring/nvgpu-priv_ring.c index 141b3de3b..3e8db914e 100644 --- a/userspace/units/priv_ring/nvgpu-priv_ring.c +++ b/userspace/units/priv_ring/nvgpu-priv_ring.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -112,6 +112,8 @@ int test_priv_ring_setup(struct unit_module *m, struct gk20a *g, void *args) /* Init HAL */ g->ops.priv_ring.enable_priv_ring = gm20b_priv_ring_enable; g->ops.priv_ring.isr = gp10b_priv_ring_isr; + g->ops.priv_ring.isr_handle_0 = gp10b_priv_ring_isr_handle_0; + g->ops.priv_ring.isr_handle_1 = gp10b_priv_ring_isr_handle_1; g->ops.priv_ring.decode_error_code = gp10b_priv_ring_decode_error_code; g->ops.priv_ring.set_ppriv_timeout_settings = gm20b_priv_set_timeout_settings;