diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c index 10c2211e..f6c13db1 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/vgpu.c | |||
@@ -16,6 +16,7 @@ | |||
16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/mm.h> | ||
19 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
20 | #include <linux/dma-mapping.h> | 21 | #include <linux/dma-mapping.h> |
21 | #include <linux/pm_runtime.h> | 22 | #include <linux/pm_runtime.h> |
@@ -756,6 +757,10 @@ int vgpu_probe(struct platform_device *pdev) | |||
756 | vgpu_create_sysfs(dev); | 757 | vgpu_create_sysfs(dev); |
757 | gk20a_init_gr(gk20a); | 758 | gk20a_init_gr(gk20a); |
758 | 759 | ||
760 | gk20a_dbg_info("total ram pages : %lu", totalram_pages); | ||
761 | gk20a->gr.max_comptag_mem = totalram_pages | ||
762 | >> (10 - (PAGE_SHIFT - 10)); | ||
763 | |||
759 | nvgpu_ref_init(&gk20a->refcount); | 764 | nvgpu_ref_init(&gk20a->refcount); |
760 | 765 | ||
761 | return 0; | 766 | return 0; |