diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/mm.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/mm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/mm.c b/drivers/gpu/nvgpu/common/mm/mm.c index 03325cce..88e3baa8 100644 --- a/drivers/gpu/nvgpu/common/mm/mm.c +++ b/drivers/gpu/nvgpu/common/mm/mm.c | |||
@@ -442,9 +442,10 @@ static int nvgpu_init_mm_setup_sw(struct gk20a *g) | |||
442 | * this requires fixed allocations in vidmem which must be | 442 | * this requires fixed allocations in vidmem which must be |
443 | * allocated before all other buffers | 443 | * allocated before all other buffers |
444 | */ | 444 | */ |
445 | if (g->ops.pmu.alloc_blob_space != NULL && | 445 | |
446 | if (g->acr.alloc_blob_space != NULL && | ||
446 | !nvgpu_is_enabled(g, NVGPU_MM_UNIFIED_MEMORY)) { | 447 | !nvgpu_is_enabled(g, NVGPU_MM_UNIFIED_MEMORY)) { |
447 | err = g->ops.pmu.alloc_blob_space(g, 0, &g->acr.ucode_blob); | 448 | err = g->acr.alloc_blob_space(g, 0, &g->acr.ucode_blob); |
448 | if (err) { | 449 | if (err) { |
449 | return err; | 450 | return err; |
450 | } | 451 | } |