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 <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2293680
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Seema Khowala
2020-02-12 09:04:14 -08:00
committed by Alex Waterman
parent 03393131fb
commit 9ca89fa97f

View File

@@ -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