From 135d6db448cfaf5a366e6572f1a02a67e35d70db Mon Sep 17 00:00:00 2001 From: Sami Kiminki Date: Fri, 7 Aug 2015 19:07:58 +0300 Subject: gpu: nvgpu: Add HAL for GPU characteristics Add function pointer for chip specific GPU characteristics init. Bug 1637486 Change-Id: I6ce5eea124d8057393dec6e86e72412cc87e1cfa Signed-off-by: Sami Kiminki Signed-off-by: Adeel Raza Reviewed-on: http://git-master/r/780535 (cherry picked from commit f5c240d6ed19b5b9eedff05767c885ad5812c71e) Reviewed-on: http://git-master/r/1120428 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/hal_gk20a.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/hal_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c index 9718aad2..6df8f37c 100644 --- a/drivers/gpu/nvgpu/gk20a/hal_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/hal_gk20a.c @@ -3,7 +3,7 @@ * * GK20A Tegra HAL interface. * - * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -70,6 +70,7 @@ int gk20a_init_hal(struct gk20a *g) gk20a_init_debug_ops(gops); gk20a_init_therm_ops(gops); gops->name = "gk20a"; + gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; c->twod_class = FERMI_TWOD_A; c->threed_class = KEPLER_C; -- cgit v1.2.2