summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-06-24 08:41:25 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:10:17 -0400
commit7ed71374e90f8e5c8554cb7d2f14aa8e9a807862 (patch)
tree3e29602dcd521417fbc07302f524cd4bc7bd52cd /drivers/gpu/nvgpu/gk20a/platform_gk20a.h
parent2680d6be576ce2c1b74f03e6e4cc5cbf321ef2bc (diff)
gpu: nvgpu: do not abort probe if secure page alloc fails
Do not abort GPU probe if secure page alloc fails. We can just note that this allocation failed (using bool secure_alloc_ready) and prevent further secure memory allocation if this flag is not set. Bug 1525465 Change-Id: Ie4eb6393951690174013d2de3db507876d7b657f Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/427730 GVS: Gerrit_Virtual_Submit Reviewed-by: Shridhar Rasal <srasal@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/platform_gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
index c343ad27..231f97b3 100644
--- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h
@@ -108,6 +108,7 @@ struct gk20a_platform {
108 */ 108 */
109 int (*secure_page_alloc)(struct platform_device *dev); 109 int (*secure_page_alloc)(struct platform_device *dev);
110 struct secure_page_buffer secure_buffer; 110 struct secure_page_buffer secure_buffer;
111 bool secure_alloc_ready;
111 112
112 /* Device is going to be suspended */ 113 /* Device is going to be suspended */
113 int (*suspend)(struct device *); 114 int (*suspend)(struct device *);