summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/hal_gp106.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-08-30 17:05:16 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-13 22:18:24 -0400
commit7ac0b046a538daa1a3532d3d5ae7cba1ef3295ba (patch)
tree79e42a4abe1e0c7d2918fa588f50061b90ee3e5f /drivers/gpu/nvgpu/gp106/hal_gp106.c
parentbf14c2a0faf922073eaf72d490bf8bde8df1a5c7 (diff)
gpu: nvgpu: Move MC HAL to common
Move implementation of MC HAL to common/mc. Also bump gk20a implementation to gm20b. gk20a_mc_boot_0 was used via a HAL, but we have only one possible implementation. It also has to be anyway called directly to detect which HALs to assign, so make it a true common function. mc_gk20a_handle_intr_nonstall was also used only in os/linux/intr.c so move it there. JIRA NVGPU-954 Change-Id: I79aedc9158f90d578db0edc17b714617b52690ac Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1813519 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/hal_gp106.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c
index 69a797a6..a1682c79 100644
--- a/drivers/gpu/nvgpu/gp106/hal_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c
@@ -40,6 +40,8 @@
40#include "common/fuse/fuse_gm20b.h" 40#include "common/fuse/fuse_gm20b.h"
41#include "common/fuse/fuse_gp10b.h" 41#include "common/fuse/fuse_gp10b.h"
42#include "common/fuse/fuse_gp106.h" 42#include "common/fuse/fuse_gp106.h"
43#include "common/mc/mc_gm20b.h"
44#include "common/mc/mc_gp10b.h"
43 45
44#include "gk20a/gk20a.h" 46#include "gk20a/gk20a.h"
45#include "gk20a/fifo_gk20a.h" 47#include "gk20a/fifo_gk20a.h"
@@ -49,13 +51,11 @@
49#include "gk20a/css_gr_gk20a.h" 51#include "gk20a/css_gr_gk20a.h"
50#include "gk20a/flcn_gk20a.h" 52#include "gk20a/flcn_gk20a.h"
51#include "gk20a/regops_gk20a.h" 53#include "gk20a/regops_gk20a.h"
52#include "gk20a/mc_gk20a.h"
53#include "gk20a/pmu_gk20a.h" 54#include "gk20a/pmu_gk20a.h"
54#include "gk20a/gr_gk20a.h" 55#include "gk20a/gr_gk20a.h"
55 56
56#include "gp10b/gr_gp10b.h" 57#include "gp10b/gr_gp10b.h"
57#include "gp10b/fecs_trace_gp10b.h" 58#include "gp10b/fecs_trace_gp10b.h"
58#include "gp10b/mc_gp10b.h"
59#include "gp10b/mm_gp10b.h" 59#include "gp10b/mm_gp10b.h"
60#include "gp10b/ce_gp10b.h" 60#include "gp10b/ce_gp10b.h"
61#include "gp10b/regops_gp10b.h" 61#include "gp10b/regops_gp10b.h"
@@ -714,11 +714,10 @@ static const struct gpu_ops gp106_ops = {
714 .intr_nonstall = mc_gp10b_intr_nonstall, 714 .intr_nonstall = mc_gp10b_intr_nonstall,
715 .intr_nonstall_pause = mc_gp10b_intr_nonstall_pause, 715 .intr_nonstall_pause = mc_gp10b_intr_nonstall_pause,
716 .intr_nonstall_resume = mc_gp10b_intr_nonstall_resume, 716 .intr_nonstall_resume = mc_gp10b_intr_nonstall_resume,
717 .isr_nonstall = mc_gk20a_isr_nonstall, 717 .isr_nonstall = gm20b_mc_isr_nonstall,
718 .enable = gk20a_mc_enable, 718 .enable = gm20b_mc_enable,
719 .disable = gk20a_mc_disable, 719 .disable = gm20b_mc_disable,
720 .reset = gk20a_mc_reset, 720 .reset = gm20b_mc_reset,
721 .boot_0 = gk20a_mc_boot_0,
722 .is_intr1_pending = mc_gp10b_is_intr1_pending, 721 .is_intr1_pending = mc_gp10b_is_intr1_pending,
723 .log_pending_intrs = mc_gp10b_log_pending_intrs, 722 .log_pending_intrs = mc_gp10b_log_pending_intrs,
724 }, 723 },