summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gv11b
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2018-06-14 15:41:03 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-06-25 13:54:56 -0400
commita012527dbde6308bc158d17cace96d2a2e9fdcfd (patch)
tree51004fc8133c4599829effe501b18dba3a92d910 /drivers/gpu/nvgpu/vgpu/gv11b
parentcd6e821cf66837a2c3479e928414007064b9c496 (diff)
gpu: nvgpu: gv11b: fix fb flush issue
membar.sys does synchronization with the whole system (GPU and CPU), membar.gl does synchronization within the GPU. In gv11b, fb flush is generating membar.gl instead of membar.sys, which is an issue. To fix this issue. following WAR is used: 1. Use bar1 engine id and bind it to a particular pdb, 2. Then instead of a fb_flush, issue a tlb invalidate of the bar1 pdb. Now allocation of vm for bar1 instance block and bar1 binding is done without check for bar1 support. Only bar1 register mapping is done based on bar1 support enabled. Bug 2112790 Change-Id: I76f43f1178a68f10823d48bc9da55d2bd686dd52 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1750257 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gv11b')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
index fd408e3a..2b65c992 100644
--- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
+++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
@@ -21,6 +21,7 @@
21 */ 21 */
22 22
23#include "common/bus/bus_gk20a.h" 23#include "common/bus/bus_gk20a.h"
24#include "common/bus/bus_gm20b.h"
24#include "common/clock_gating/gv11b_gating_reglist.h" 25#include "common/clock_gating/gv11b_gating_reglist.h"
25 26
26#include <gk20a/gk20a.h> 27#include <gk20a/gk20a.h>
@@ -597,7 +598,7 @@ static const struct gpu_ops vgpu_gv11b_ops = {
597 .bus = { 598 .bus = {
598 .init_hw = gk20a_bus_init_hw, 599 .init_hw = gk20a_bus_init_hw,
599 .isr = gk20a_bus_isr, 600 .isr = gk20a_bus_isr,
600 .bar1_bind = NULL, 601 .bar1_bind = gm20b_bus_bar1_bind,
601 .bar2_bind = NULL, 602 .bar2_bind = NULL,
602 .set_bar0_window = gk20a_bus_set_bar0_window, 603 .set_bar0_window = gk20a_bus_set_bar0_window,
603 }, 604 },