mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: vgpu: add compression and fault recovery flags
It added missing flags nvgpu core introduced recently: NVGPU_SUPPORT_COMPRESSION NVGPU_SUPPORT_FAULT_RECOVERY Jira GVSCI-4622 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Change-Id: I7eb19b9fdcb834dd479707d8e8a7d21a9640dcfa Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2500558 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Aparna Das <aparnad@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
7f4e39aaf4
commit
beeec12e17
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2020, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2015-2021, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -963,6 +963,14 @@ int vgpu_gp10b_init_hal(struct gk20a *g)
|
|||||||
g->max_sm_diversity_config_count =
|
g->max_sm_diversity_config_count =
|
||||||
priv->constants.max_sm_diversity_config_count;
|
priv->constants.max_sm_diversity_config_count;
|
||||||
|
|
||||||
|
#ifdef CONFIG_NVGPU_COMPRESSION
|
||||||
|
nvgpu_set_enabled(g, NVGPU_SUPPORT_COMPRESSION, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_NVGPU_RECOVERY
|
||||||
|
nvgpu_set_enabled(g, NVGPU_SUPPORT_FAULT_RECOVERY, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
g->name = "gp10b";
|
g->name = "gp10b";
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -1109,6 +1109,14 @@ int vgpu_gv11b_init_hal(struct gk20a *g)
|
|||||||
g->max_sm_diversity_config_count =
|
g->max_sm_diversity_config_count =
|
||||||
priv->constants.max_sm_diversity_config_count;
|
priv->constants.max_sm_diversity_config_count;
|
||||||
|
|
||||||
|
#ifdef CONFIG_NVGPU_COMPRESSION
|
||||||
|
nvgpu_set_enabled(g, NVGPU_SUPPORT_COMPRESSION, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_NVGPU_RECOVERY
|
||||||
|
nvgpu_set_enabled(g, NVGPU_SUPPORT_FAULT_RECOVERY, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
g->name = "gv11b";
|
g->name = "gv11b";
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user