diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-03-08 19:59:43 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-22 21:37:05 -0400 |
commit | a0a081d0654ac4a2e888aa49ed5fc8840768c107 (patch) | |
tree | f637e229836c70c42ef2827e6c13ce99579a1fc1 /drivers/gpu/nvgpu/gm206/bios_gm206.c | |
parent | 3ab4a992e10cd0a312a865a4937b90162978356c (diff) |
gpu: nvgpu: Use new kmem API functions (gm206/*)
Use the new kmem API functions in gm206/*.
Bug 1799159
Bug 1823380
Change-Id: I7117c3153d266f0ac72978e2b54f6d4921d919e5
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1318310
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm206/bios_gm206.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm206/bios_gm206.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c index 6e20e23a..3993691a 100644 --- a/drivers/gpu/nvgpu/gm206/bios_gm206.c +++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c | |||
@@ -17,13 +17,13 @@ | |||
17 | #include <linux/pci.h> | 17 | #include <linux/pci.h> |
18 | 18 | ||
19 | #include <nvgpu/bios.h> | 19 | #include <nvgpu/bios.h> |
20 | #include <nvgpu/kmem.h> | ||
21 | #include <nvgpu/nvgpu_common.h> | ||
20 | 22 | ||
21 | #include "gk20a/gk20a.h" | 23 | #include "gk20a/gk20a.h" |
22 | #include "gm20b/fifo_gm20b.h" | 24 | #include "gm20b/fifo_gm20b.h" |
23 | #include "bios_gm206.h" | 25 | #include "bios_gm206.h" |
24 | 26 | ||
25 | #include <nvgpu/nvgpu_common.h> | ||
26 | |||
27 | #include <nvgpu/hw/gm206/hw_pwr_gm206.h> | 27 | #include <nvgpu/hw/gm206/hw_pwr_gm206.h> |
28 | #include <nvgpu/hw/gm206/hw_mc_gm206.h> | 28 | #include <nvgpu/hw/gm206/hw_mc_gm206.h> |
29 | #include <nvgpu/hw/gm206/hw_top_gm206.h> | 29 | #include <nvgpu/hw/gm206/hw_top_gm206.h> |
@@ -260,7 +260,7 @@ int gm206_bios_init(struct gk20a *g) | |||
260 | } else { | 260 | } else { |
261 | gk20a_dbg_info("reading bios from EEPROM"); | 261 | gk20a_dbg_info("reading bios from EEPROM"); |
262 | g->bios.size = BIOS_SIZE; | 262 | g->bios.size = BIOS_SIZE; |
263 | g->bios.data = vmalloc(BIOS_SIZE); | 263 | g->bios.data = nvgpu_vmalloc(g, BIOS_SIZE); |
264 | if (!g->bios.data) | 264 | if (!g->bios.data) |
265 | return -ENOMEM; | 265 | return -ENOMEM; |
266 | g->ops.xve.disable_shadow_rom(g); | 266 | g->ops.xve.disable_shadow_rom(g); |