summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-09-12 17:51:40 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-27 18:05:25 -0400
commite3ae03e17abd452c157545234348692364b4b9f6 (patch)
tree121b3dcde56c87f9a1008ad4f5effbeb69cff945 /drivers/gpu/nvgpu/vgpu
parent78e3d22da3c2513d425c8c2560468ce854a982dd (diff)
gpu: nvgpu: Add MC APIs for reset masks
Add API for querying reset mask corresponding to a unit. The reset masks need to be read from MC HW header, and we do not want all units to access Mc HW headers themselves. JIRA NVGPU-954 Change-Id: I49ebbd891569de634bfc71afcecc8cd2358805c0 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1823384 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c3
-rw-r--r--drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
index 2b4b3463..61ab3b1b 100644
--- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
+++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c
@@ -493,6 +493,9 @@ static const struct gpu_ops vgpu_gp10b_ops = {
493 .reset = NULL, 493 .reset = NULL,
494 .is_intr1_pending = NULL, 494 .is_intr1_pending = NULL,
495 .log_pending_intrs = NULL, 495 .log_pending_intrs = NULL,
496 .reset_mask = NULL,
497 .is_enabled = NULL,
498 .fb_reset = NULL,
496 }, 499 },
497 .debug = { 500 .debug = {
498 .show_dump = NULL, 501 .show_dump = NULL,
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
index c0e1b1bb..a024a0ea 100644
--- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
+++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
@@ -566,6 +566,9 @@ static const struct gpu_ops vgpu_gv11b_ops = {
566 .is_intr1_pending = NULL, 566 .is_intr1_pending = NULL,
567 .is_intr_hub_pending = NULL, 567 .is_intr_hub_pending = NULL,
568 .log_pending_intrs = NULL , 568 .log_pending_intrs = NULL ,
569 .reset_mask = NULL,
570 .is_enabled = NULL,
571 .fb_reset = NULL,
569 }, 572 },
570 .debug = { 573 .debug = {
571 .show_dump = NULL, 574 .show_dump = NULL,