diff options
author | smadhavan <smadhavan@nvidia.com> | 2021-02-12 01:07:42 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2021-10-05 22:10:26 -0400 |
commit | d87030e73048073d4bf1dd52a461b1efc1f04867 (patch) | |
tree | 261503706f15b871fdf72b6bf0648a26013518b8 /drivers/gpu/nvgpu/gv11b | |
parent | db1393886badf352bdea5642f9e1809dd1428748 (diff) |
nvgpu: gpu: adds support for ACR dbg/prod.
ACR ucode is encrypted using different keys for prod/dbg boards.
This change adds a check to select ACR ucode based on board type.
Note: This support is added only for t19x.
Bug 2350733
Bug 2672832
Bug 2672836
Bug 2674821
JIRA NVGPU-4001
(cherry picked from commit c19a0f0c26ab94f6bbf4380ab93e458b88589c82)
Change-Id: I2febc2cbe869c06bca0adebd7723b0d6fc1d4b23
Signed-off-by: smadhavan <smadhavan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2483968
Tested-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/acr_gv11b.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/acr_gv11b.c b/drivers/gpu/nvgpu/gv11b/acr_gv11b.c index de2502ce..876ea610 100644 --- a/drivers/gpu/nvgpu/gv11b/acr_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/acr_gv11b.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -148,7 +148,11 @@ static void gv11b_acr_default_sw_init(struct gk20a *g, struct hs_acr *hs_acr) | |||
148 | hs_bl->bl_fw_name = HSBIN_ACR_BL_UCODE_IMAGE; | 148 | hs_bl->bl_fw_name = HSBIN_ACR_BL_UCODE_IMAGE; |
149 | 149 | ||
150 | hs_acr->acr_type = ACR_DEFAULT; | 150 | hs_acr->acr_type = ACR_DEFAULT; |
151 | hs_acr->acr_fw_name = HSBIN_ACR_UCODE_IMAGE; | 151 | if (!g->ops.pmu.is_debug_mode_enabled(g)) { |
152 | hs_acr->acr_fw_name = HSBIN_ACR_PROD_UCODE; | ||
153 | } else { | ||
154 | hs_acr->acr_fw_name = HSBIN_ACR_DBG_UCODE; | ||
155 | } | ||
152 | 156 | ||
153 | hs_acr->ptr_bl_dmem_desc = &hs_acr->bl_dmem_desc_v1; | 157 | hs_acr->ptr_bl_dmem_desc = &hs_acr->bl_dmem_desc_v1; |
154 | hs_acr->bl_dmem_desc_size = sizeof(struct flcn_bl_dmem_desc_v1); | 158 | hs_acr->bl_dmem_desc_size = sizeof(struct flcn_bl_dmem_desc_v1); |