diff options
author | Vinod G <vinodg@nvidia.com> | 2018-04-27 12:33:07 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-04 02:57:12 -0400 |
commit | 010439ba08891ce97c53c239b5bb8c4a2f5b5f01 (patch) | |
tree | 0f7b6fdf83176183ddb9ee24e71e652a31528314 /drivers/gpu/nvgpu/gm20b/fifo_gm20b.h | |
parent | 76597927e4059fd763949f633ef4f8f412e45f6b (diff) |
gpu: nvgpu: add HALs to mmu fault descriptors.
mmu fault information for client and gpc differ
on various chip. Add separate table for each chip
based on that change and add hal functions to access
those descriptors.
bug 2050564
Change-Id: If15a4757762569d60d4ce1a6a47b8c9a93c11cb0
Signed-off-by: Vinod G <vinodg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1704105
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/fifo_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/fifo_gm20b.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.h b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.h index 8d487358..f9e1f95d 100644 --- a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GM20B Fifo | 2 | * GM20B Fifo |
3 | * | 3 | * |
4 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -25,6 +25,7 @@ | |||
25 | #ifndef _NVHOST_GM20B_FIFO | 25 | #ifndef _NVHOST_GM20B_FIFO |
26 | #define _NVHOST_GM20B_FIFO | 26 | #define _NVHOST_GM20B_FIFO |
27 | struct gk20a; | 27 | struct gk20a; |
28 | struct mmu_fault_info; | ||
28 | 29 | ||
29 | void channel_gm20b_bind(struct channel_gk20a *c); | 30 | void channel_gm20b_bind(struct channel_gk20a *c); |
30 | void gm20b_fifo_trigger_mmu_fault(struct gk20a *g, | 31 | void gm20b_fifo_trigger_mmu_fault(struct gk20a *g, |
@@ -35,5 +36,6 @@ void gm20b_device_info_data_parse(struct gk20a *g, | |||
35 | u32 *pri_base, u32 *fault_id); | 36 | u32 *pri_base, u32 *fault_id); |
36 | void gm20b_fifo_init_pbdma_intr_descs(struct fifo_gk20a *f); | 37 | void gm20b_fifo_init_pbdma_intr_descs(struct fifo_gk20a *f); |
37 | void gm20b_fifo_tsg_verify_status_ctx_reload(struct channel_gk20a *ch); | 38 | void gm20b_fifo_tsg_verify_status_ctx_reload(struct channel_gk20a *ch); |
39 | void gm20b_fifo_get_mmu_fault_gpc_desc(struct mmu_fault_info *mmfault); | ||
38 | 40 | ||
39 | #endif | 41 | #endif |