summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-01-10 18:50:43 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-24 18:15:22 -0500
commitefe32664311677c87d4da4f0f0e36d519bcc5c16 (patch)
treed47f7d1e682a3ba7f0d8098e3eaa9de23d940d90 /drivers
parentd2b851533bd1c3ce1a6f9010e61a63f4f9c10012 (diff)
gpu: nvgpu: Add GPU reset to XVE
Add a full GPU reset function to the XVE block. This allows the driver to reset the GPU (except the XVE and XP interfaces) to clear the GPU's state. This is necessary for the GPU rebind to work. The state of the GPU needs to be cleared before the new driver instance can work. Bug 1816516 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1287642 Reviewed-on: http://git-master/r/1287648 (cherry picked from commit 7e751c0eb2c0f7d9d0b2020600c33fc8b4381878) Change-Id: Ie2b721bf1b40acbab34de2436dea4e70d33b5611 Reviewed-on: http://git-master/r/1292698 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 18e99d6f..30a3252a 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -774,6 +774,7 @@ struct gpu_ops {
774 u32 (*xve_readl)(struct gk20a *g, u32 reg); 774 u32 (*xve_readl)(struct gk20a *g, u32 reg);
775 void (*xve_writel)(struct gk20a *g, u32 reg, u32 val); 775 void (*xve_writel)(struct gk20a *g, u32 reg, u32 val);
776 void (*disable_aspm)(struct gk20a *g); 776 void (*disable_aspm)(struct gk20a *g);
777 void (*reset_gpu)(struct gk20a *g);
777 } xve; 778 } xve;
778}; 779};
779 780