From fc724baa4becf051b3e6647858a6ded90f1cee86 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 7 Jun 2017 12:44:10 -0700 Subject: gpu: nvgpu: Add MC HAL is_intr1_pending Add MC HAL is_intr1_pending. At the same time introduce nvgpu_unit that is passed as parameter to is_intr1_pending. The API is passed contents of intr1 register and an engine number, and returns true if there's an interrupt pending for the engine. JIRA NVGPU-26 Change-Id: I8e6363dd78572f8e41dbab2b258036ed168b6f75 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1497870 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gm20b/mc_gm20b.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gm20b/mc_gm20b.c') diff --git a/drivers/gpu/nvgpu/gm20b/mc_gm20b.c b/drivers/gpu/nvgpu/gm20b/mc_gm20b.c index ebb9780d..7330a027 100644 --- a/drivers/gpu/nvgpu/gm20b/mc_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/mc_gm20b.c @@ -32,4 +32,5 @@ void gm20b_init_mc(struct gpu_ops *gops) gops->mc.disable = gk20a_mc_disable; gops->mc.reset = gk20a_mc_reset; gops->mc.boot_0 = gk20a_mc_boot_0; + gops->mc.is_intr1_pending = mc_gk20a_is_intr1_pending; } -- cgit v1.2.2