diff options
author | David Nieto <dmartineznie@nvidia.com> | 2018-01-04 14:09:57 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-08 17:38:06 -0500 |
commit | 6dde9e67d91419d1e671a520571a2be9bde93999 (patch) | |
tree | 0471b3f8ef26bed5b3adf4c8ddc6c949e8651bf4 /drivers/gpu/nvgpu/gv100 | |
parent | 82f253b7c14d7811a54f8187ff82f8d8befae529 (diff) |
gpu: nvgpu: allocate from coherent pool
Maps memory coherently on devices that are connected to a coherent bus.
(1) Add code to be able to get the platform device node.
(2) Create a new flag to mark if the device is connected to a coherent bus
(3) Map memory coherently on coherent devices.
bug 2040331
Change-Id: Ide83a9261acdbbc6e9fef4fc5f38d6f9d0e5ab5b
Signed-off-by: David Nieto <dmartineznie@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1633985
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv100')
-rw-r--r-- | drivers/gpu/nvgpu/gv100/hal_gv100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c index a03ae03e..9c847a55 100644 --- a/drivers/gpu/nvgpu/gv100/hal_gv100.c +++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c | |||
@@ -540,7 +540,7 @@ static const struct gpu_ops gv100_ops = { | |||
540 | .vm_bind_channel = gk20a_vm_bind_channel, | 540 | .vm_bind_channel = gk20a_vm_bind_channel, |
541 | .fb_flush = gk20a_mm_fb_flush, | 541 | .fb_flush = gk20a_mm_fb_flush, |
542 | .l2_invalidate = gk20a_mm_l2_invalidate, | 542 | .l2_invalidate = gk20a_mm_l2_invalidate, |
543 | .l2_flush = gk20a_mm_l2_flush, | 543 | .l2_flush = gv11b_mm_l2_flush, |
544 | .cbc_clean = gk20a_mm_cbc_clean, | 544 | .cbc_clean = gk20a_mm_cbc_clean, |
545 | .set_big_page_size = gm20b_mm_set_big_page_size, | 545 | .set_big_page_size = gm20b_mm_set_big_page_size, |
546 | .get_big_page_sizes = gm20b_mm_get_big_page_sizes, | 546 | .get_big_page_sizes = gm20b_mm_get_big_page_sizes, |