mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add flag to disable SW quiesce
Add NVGPU_DISABLE_SW_QUIESCE flag which can be set in unit tests to avoid entering SW quiesce. Jira NVGPU-4089 Change-Id: Ie44b28bf69ff86908a66bb1be8aab3d365945178 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2217828 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
dabc5dd8b8
commit
76eb949edb
@@ -156,7 +156,8 @@ static void nvgpu_sw_quiesce_remove_support(struct gk20a *g)
|
||||
void nvgpu_sw_quiesce(struct gk20a *g)
|
||||
{
|
||||
#ifndef CONFIG_NVGPU_RECOVERY
|
||||
if (g->is_virtual) {
|
||||
if (g->is_virtual || g->enabled_flags == NULL ||
|
||||
nvgpu_is_enabled(g, NVGPU_DISABLE_SW_QUIESCE)) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
||||
@@ -210,10 +210,13 @@ struct gk20a;
|
||||
/* Fault recovery support */
|
||||
#define NVGPU_SUPPORT_FAULT_RECOVERY 80U
|
||||
|
||||
/* SW Quiesce */
|
||||
#define NVGPU_DISABLE_SW_QUIESCE 81U
|
||||
|
||||
/*
|
||||
* Must be greater than the largest bit offset in the above list.
|
||||
*/
|
||||
#define NVGPU_MAX_ENABLED_BITS 81U
|
||||
#define NVGPU_MAX_ENABLED_BITS 82U
|
||||
|
||||
/**
|
||||
* nvgpu_is_enabled - Check if the passed flag is enabled.
|
||||
|
||||
Reference in New Issue
Block a user