From 7ed71374e90f8e5c8554cb7d2f14aa8e9a807862 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 24 Jun 2014 18:11:25 +0530 Subject: 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 Reviewed-on: http://git-master/r/427730 GVS: Gerrit_Virtual_Submit Reviewed-by: Shridhar Rasal Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h') 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 { */ int (*secure_page_alloc)(struct platform_device *dev); struct secure_page_buffer secure_buffer; + bool secure_alloc_ready; /* Device is going to be suspended */ int (*suspend)(struct device *); -- cgit v1.2.2