diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/cde_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/cde_gk20a.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c index 2187e833..18432c55 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c | |||
@@ -17,7 +17,6 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/dma-mapping.h> | 19 | #include <linux/dma-mapping.h> |
20 | #include <linux/firmware.h> | ||
21 | #include <linux/fs.h> | 20 | #include <linux/fs.h> |
22 | #include <linux/debugfs.h> | 21 | #include <linux/debugfs.h> |
23 | #include <linux/dma-buf.h> | 22 | #include <linux/dma-buf.h> |
@@ -30,6 +29,7 @@ | |||
30 | #include <nvgpu/kmem.h> | 29 | #include <nvgpu/kmem.h> |
31 | #include <nvgpu/log.h> | 30 | #include <nvgpu/log.h> |
32 | #include <nvgpu/bug.h> | 31 | #include <nvgpu/bug.h> |
32 | #include <nvgpu/firmware.h> | ||
33 | 33 | ||
34 | #include "gk20a.h" | 34 | #include "gk20a.h" |
35 | #include "channel_gk20a.h" | 35 | #include "channel_gk20a.h" |
@@ -226,7 +226,7 @@ out: | |||
226 | } | 226 | } |
227 | 227 | ||
228 | static int gk20a_init_cde_buf(struct gk20a_cde_ctx *cde_ctx, | 228 | static int gk20a_init_cde_buf(struct gk20a_cde_ctx *cde_ctx, |
229 | const struct firmware *img, | 229 | struct nvgpu_firmware *img, |
230 | struct gk20a_cde_hdr_buf *buf) | 230 | struct gk20a_cde_hdr_buf *buf) |
231 | { | 231 | { |
232 | struct nvgpu_mem *mem; | 232 | struct nvgpu_mem *mem; |
@@ -314,7 +314,7 @@ static int gk20a_replace_data(struct gk20a_cde_ctx *cde_ctx, void *target, | |||
314 | } | 314 | } |
315 | 315 | ||
316 | static int gk20a_init_cde_replace(struct gk20a_cde_ctx *cde_ctx, | 316 | static int gk20a_init_cde_replace(struct gk20a_cde_ctx *cde_ctx, |
317 | const struct firmware *img, | 317 | struct nvgpu_firmware *img, |
318 | struct gk20a_cde_hdr_replace *replace) | 318 | struct gk20a_cde_hdr_replace *replace) |
319 | { | 319 | { |
320 | struct nvgpu_mem *source_mem; | 320 | struct nvgpu_mem *source_mem; |
@@ -454,7 +454,7 @@ static int gk20a_cde_patch_params(struct gk20a_cde_ctx *cde_ctx) | |||
454 | } | 454 | } |
455 | 455 | ||
456 | static int gk20a_init_cde_param(struct gk20a_cde_ctx *cde_ctx, | 456 | static int gk20a_init_cde_param(struct gk20a_cde_ctx *cde_ctx, |
457 | const struct firmware *img, | 457 | struct nvgpu_firmware *img, |
458 | struct gk20a_cde_hdr_param *param) | 458 | struct gk20a_cde_hdr_param *param) |
459 | { | 459 | { |
460 | struct nvgpu_mem *target_mem; | 460 | struct nvgpu_mem *target_mem; |
@@ -497,7 +497,7 @@ static int gk20a_init_cde_param(struct gk20a_cde_ctx *cde_ctx, | |||
497 | } | 497 | } |
498 | 498 | ||
499 | static int gk20a_init_cde_required_class(struct gk20a_cde_ctx *cde_ctx, | 499 | static int gk20a_init_cde_required_class(struct gk20a_cde_ctx *cde_ctx, |
500 | const struct firmware *img, | 500 | struct nvgpu_firmware *img, |
501 | u32 required_class) | 501 | u32 required_class) |
502 | { | 502 | { |
503 | struct gk20a *g = cde_ctx->g; | 503 | struct gk20a *g = cde_ctx->g; |
@@ -521,7 +521,7 @@ static int gk20a_init_cde_required_class(struct gk20a_cde_ctx *cde_ctx, | |||
521 | } | 521 | } |
522 | 522 | ||
523 | static int gk20a_init_cde_command(struct gk20a_cde_ctx *cde_ctx, | 523 | static int gk20a_init_cde_command(struct gk20a_cde_ctx *cde_ctx, |
524 | const struct firmware *img, | 524 | struct nvgpu_firmware *img, |
525 | u32 op, | 525 | u32 op, |
526 | struct gk20a_cde_cmd_elem *cmd_elem, | 526 | struct gk20a_cde_cmd_elem *cmd_elem, |
527 | u32 num_elems) | 527 | u32 num_elems) |
@@ -622,7 +622,7 @@ static int gk20a_cde_pack_cmdbufs(struct gk20a_cde_ctx *cde_ctx) | |||
622 | } | 622 | } |
623 | 623 | ||
624 | static int gk20a_init_cde_img(struct gk20a_cde_ctx *cde_ctx, | 624 | static int gk20a_init_cde_img(struct gk20a_cde_ctx *cde_ctx, |
625 | const struct firmware *img) | 625 | struct nvgpu_firmware *img) |
626 | { | 626 | { |
627 | struct gk20a *g = cde_ctx->g; | 627 | struct gk20a *g = cde_ctx->g; |
628 | struct gk20a_cde_app *cde_app = &cde_ctx->g->cde_app; | 628 | struct gk20a_cde_app *cde_app = &cde_ctx->g->cde_app; |
@@ -1202,7 +1202,7 @@ __releases(&cde_app->mutex) | |||
1202 | static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx) | 1202 | static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx) |
1203 | { | 1203 | { |
1204 | struct gk20a *g = cde_ctx->g; | 1204 | struct gk20a *g = cde_ctx->g; |
1205 | const struct firmware *img; | 1205 | struct nvgpu_firmware *img; |
1206 | struct channel_gk20a *ch; | 1206 | struct channel_gk20a *ch; |
1207 | struct gr_gk20a *gr = &g->gr; | 1207 | struct gr_gk20a *gr = &g->gr; |
1208 | int err = 0; | 1208 | int err = 0; |
@@ -1265,7 +1265,7 @@ static int gk20a_cde_load(struct gk20a_cde_ctx *cde_ctx) | |||
1265 | } | 1265 | } |
1266 | 1266 | ||
1267 | /* initialisation done */ | 1267 | /* initialisation done */ |
1268 | release_firmware(img); | 1268 | nvgpu_release_firmware(g, img); |
1269 | 1269 | ||
1270 | return 0; | 1270 | return 0; |
1271 | 1271 | ||
@@ -1276,7 +1276,7 @@ err_alloc_gpfifo: | |||
1276 | gk20a_vm_put(ch->vm); | 1276 | gk20a_vm_put(ch->vm); |
1277 | err_commit_va: | 1277 | err_commit_va: |
1278 | err_get_gk20a_channel: | 1278 | err_get_gk20a_channel: |
1279 | release_firmware(img); | 1279 | nvgpu_release_firmware(g, img); |
1280 | nvgpu_err(g, "cde: couldn't initialise buffer converter: %d", err); | 1280 | nvgpu_err(g, "cde: couldn't initialise buffer converter: %d", err); |
1281 | return err; | 1281 | return err; |
1282 | } | 1282 | } |