summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hal.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal.c b/drivers/gpu/nvgpu/gk20a/hal.c
index d24d4bc5..ec6816c6 100644
--- a/drivers/gpu/nvgpu/gk20a/hal.c
+++ b/drivers/gpu/nvgpu/gk20a/hal.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * NVIDIA GPU HAL interface. 2 * NVIDIA GPU HAL interface.
3 * 3 *
4 * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
@@ -27,10 +27,8 @@
27#include "gm20b/hal_gm20b.h" 27#include "gm20b/hal_gm20b.h"
28#include "gp10b/hal_gp10b.h" 28#include "gp10b/hal_gp10b.h"
29#include "gp106/hal_gp106.h" 29#include "gp106/hal_gp106.h"
30 30#include "gv100/hal_gv100.h"
31#ifdef CONFIG_TEGRA_19x_GPU 31#include "gv11b/hal_gv11b.h"
32#include "nvgpu_gpuid_t19x.h"
33#endif
34 32
35#include <nvgpu/log.h> 33#include <nvgpu/log.h>
36 34
@@ -53,17 +51,15 @@ int gpu_init_hal(struct gk20a *g)
53 if (gp106_init_hal(g)) 51 if (gp106_init_hal(g))
54 return -ENODEV; 52 return -ENODEV;
55 break; 53 break;
56#ifdef CONFIG_TEGRA_19x_GPU 54 case NVGPU_GPUID_GV11B:
57 case TEGRA_19x_GPUID: 55 if (gv11b_init_hal(g))
58 if (TEGRA_19x_GPUID_HAL(g))
59 return -ENODEV; 56 return -ENODEV;
60 break; 57 break;
61 case BIGGPU_19x_GPUID: 58 case NVGPU_GPUID_GV100:
62 if (BIGGPU_19x_GPUID_HAL(g)) 59 if (gv100_init_hal(g))
63 return -ENODEV; 60 return -ENODEV;
64 break; 61 break;
65 62
66#endif
67 default: 63 default:
68 nvgpu_err(g, "no support for %x", ver); 64 nvgpu_err(g, "no support for %x", ver);
69 return -ENODEV; 65 return -ENODEV;