diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c index 42eb9a14..2e5d46b9 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_allocator_page.c | |||
@@ -57,6 +57,13 @@ static u64 gk20a_page_alloc_end(struct gk20a_allocator *a) | |||
57 | return gk20a_alloc_end(&va->source_allocator); | 57 | return gk20a_alloc_end(&va->source_allocator); |
58 | } | 58 | } |
59 | 59 | ||
60 | static u64 gk20a_page_alloc_space(struct gk20a_allocator *a) | ||
61 | { | ||
62 | struct gk20a_page_allocator *va = a->priv; | ||
63 | |||
64 | return gk20a_alloc_space(&va->source_allocator); | ||
65 | } | ||
66 | |||
60 | static int gk20a_page_reserve_co(struct gk20a_allocator *a, | 67 | static int gk20a_page_reserve_co(struct gk20a_allocator *a, |
61 | struct gk20a_alloc_carveout *co) | 68 | struct gk20a_alloc_carveout *co) |
62 | { | 69 | { |
@@ -492,6 +499,7 @@ static const struct gk20a_allocator_ops page_ops = { | |||
492 | .length = gk20a_page_alloc_length, | 499 | .length = gk20a_page_alloc_length, |
493 | .end = gk20a_page_alloc_end, | 500 | .end = gk20a_page_alloc_end, |
494 | .inited = gk20a_page_alloc_inited, | 501 | .inited = gk20a_page_alloc_inited, |
502 | .space = gk20a_page_alloc_space, | ||
495 | 503 | ||
496 | .fini = gk20a_page_allocator_destroy, | 504 | .fini = gk20a_page_allocator_destroy, |
497 | 505 | ||