From 9ca89fa97f3480797d3950c8457715e8e40efc99 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Wed, 12 Feb 2020 09:04:14 -0800 Subject: [PATCH] gpu: nvgpu: gm20b: enable priv_ring interrupts for sim Simulation platform supports priv_ring interrupts. JIRA NVGPU-4864 JIRA NVGPU-5017 Bug 2848340 Change-Id: Ia37e7f6aa6ce6ab654772d7688243c8fe931a80d Signed-off-by: Seema Khowala Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2293680 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: Seshendra Gadagottu Reviewed-by: Deepak Nibade Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/hal/priv_ring/priv_ring_gm20b_fusa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/hal/priv_ring/priv_ring_gm20b_fusa.c b/drivers/gpu/nvgpu/hal/priv_ring/priv_ring_gm20b_fusa.c index d811b5801..3d27460e7 100644 --- a/drivers/gpu/nvgpu/hal/priv_ring/priv_ring_gm20b_fusa.c +++ b/drivers/gpu/nvgpu/hal/priv_ring/priv_ring_gm20b_fusa.c @@ -1,7 +1,7 @@ /* * GM20B priv ring * - * Copyright (c) 2011-2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2011-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"), @@ -42,6 +42,8 @@ int gm20b_priv_ring_enable(struct gk20a *g) #ifdef CONFIG_NVGPU_SIM if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)) { nvgpu_log_info(g, "priv ring is already enabled"); + nvgpu_mc_intr_stall_unit_config(g, MC_INTR_UNIT_PRIV_RING, + MC_INTR_ENABLE); return 0; } #endif