diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/ce2_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/ce2_vgpu.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c b/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c index f7b06f3b..81035d71 100644 --- a/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/ce2_vgpu.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Virtualized GPU CE2 | 2 | * Virtualized GPU CE2 |
3 | * | 3 | * |
4 | * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -33,3 +33,15 @@ int vgpu_ce2_nonstall_isr(struct gk20a *g, | |||
33 | 33 | ||
34 | return 0; | 34 | return 0; |
35 | } | 35 | } |
36 | |||
37 | static u32 vgpu_ce_get_num_pce(struct gk20a *g) | ||
38 | { | ||
39 | struct vgpu_priv_data *priv = vgpu_get_priv_data(g); | ||
40 | |||
41 | return priv->constants.num_pce; | ||
42 | } | ||
43 | |||
44 | void vgpu_init_ce2_ops(struct gpu_ops *gops) | ||
45 | { | ||
46 | gops->ce2.get_num_pce = vgpu_ce_get_num_pce; | ||
47 | } | ||