diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-11-05 03:12:17 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:12:06 -0400 |
commit | 2c23d1066f947e697240f5e61529c5b48407fa08 (patch) | |
tree | 6f9bebc525a516d19ded1e3e7ae4b6067953e8b8 /drivers/gpu/nvgpu/gk20a/hal.c | |
parent | 88c760b2eac861298535dac6df89b8a14152efe9 (diff) |
gpu: nvgpu: Add class numbers to characteristics
Some kernel APIs rely on user space knowing class numbers. Allow
querying the numbers from kernel.
Bug 1567274
Change-Id: Idec2fe8ee983ee74bcbf9dfc98f71bbcc1492cfb
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/594402
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hal.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hal.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hal.c b/drivers/gpu/nvgpu/gk20a/hal.c index 56553819..10607af0 100644 --- a/drivers/gpu/nvgpu/gk20a/hal.c +++ b/drivers/gpu/nvgpu/gk20a/hal.c | |||
@@ -27,16 +27,16 @@ int gpu_init_hal(struct gk20a *g) | |||
27 | switch (ver) { | 27 | switch (ver) { |
28 | case GK20A_GPUID_GK20A: | 28 | case GK20A_GPUID_GK20A: |
29 | gk20a_dbg_info("gk20a detected"); | 29 | gk20a_dbg_info("gk20a detected"); |
30 | gk20a_init_hal(&g->ops); | 30 | gk20a_init_hal(g); |
31 | break; | 31 | break; |
32 | case GK20A_GPUID_GM20B: | 32 | case GK20A_GPUID_GM20B: |
33 | gk20a_dbg_info("gm20b detected"); | 33 | gk20a_dbg_info("gm20b detected"); |
34 | if (gm20b_init_hal(&g->ops)) | 34 | if (gm20b_init_hal(g)) |
35 | return -ENODEV; | 35 | return -ENODEV; |
36 | break; | 36 | break; |
37 | #if defined(CONFIG_ARCH_TEGRA_18x_SOC) | 37 | #if defined(CONFIG_ARCH_TEGRA_18x_SOC) |
38 | case TEGRA_18x_GPUID: | 38 | case TEGRA_18x_GPUID: |
39 | if (TEGRA_18x_GPUID_HAL(&g->ops)) | 39 | if (TEGRA_18x_GPUID_HAL(g)) |
40 | return -ENODEV; | 40 | return -ENODEV; |
41 | break; | 41 | break; |
42 | #endif | 42 | #endif |