mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: address DVR comments for posix unit.
Fix the issues in posix unit as per the DVR comments. JIRA NVGPU-6615 Change-Id: I0069824c763e80df201df12efa38531eb2399762 Signed-off-by: ajesh <akv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2510842 (cherry picked from commit 7eed91174306ba358bb9a4ad6192479d52edde15) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2512606 Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -33,14 +33,14 @@
|
||||
/**
|
||||
* @brief Private handler of CPU timeout, should not be used directly.
|
||||
*
|
||||
* Posix implementation of the CPU timeout handler. Checks if the timeout
|
||||
* duration has expired or not.
|
||||
*
|
||||
* @param timeout [in] Timeout object.
|
||||
* @param caller [in] Instruction pointer of the caller.
|
||||
* @param fmt [in] Format of the variable length argument.
|
||||
* @param arg... [in] Variable length arguments.
|
||||
*
|
||||
* Posix implementation of the CPU timeout handler. Checks if the timeout
|
||||
* duration has expired or not.
|
||||
*
|
||||
* @return Shall return 0 if the timeout has not expired; otherwise, an error
|
||||
* number indicating a timeout is returned.
|
||||
*
|
||||
@@ -63,15 +63,15 @@
|
||||
/**
|
||||
* @brief Private handler of retry timeout, should not be used directly.
|
||||
*
|
||||
* Posix implementation of the retry timeout handler. Checks if the retry limit
|
||||
* has reached, return an error value to indicate a timeout if the retry limit
|
||||
* has reached else increment the retry count and return.
|
||||
*
|
||||
* @param timeout [in] Timeout object.
|
||||
* @param caller [in] Instruction pointer of the caller.
|
||||
* @param fmt [in] Format of the variable length argument.
|
||||
* @param arg... [in] Variable length arguments.
|
||||
*
|
||||
* Posix implementation of the retry timeout handler. Checks if the retry limit
|
||||
* has reached, return an error value to indicate a timeout if the retry limit
|
||||
* has reached else increment the retry count and return.
|
||||
*
|
||||
* @return Shall return 0 if the timeout has not expired; otherwise, an error
|
||||
* number indicating a timeout is returned.
|
||||
*
|
||||
@@ -96,14 +96,14 @@
|
||||
/**
|
||||
* @brief Private handler of userspace timeout, should not be used directly.
|
||||
*
|
||||
* Posix implementation of the timeout handler. Differentiates between a CPU
|
||||
* timer and a retry timer and handles accordingly.
|
||||
*
|
||||
* @param timeout [in] Timeout object.
|
||||
* @param caller [in] Instruction pointer of the caller.
|
||||
* @param fmt [in] Format of the variable length argument.
|
||||
* @param arg... [in] Variable length arguments.
|
||||
*
|
||||
* Posix implementation of the timeout handler. Differentiates between a CPU
|
||||
* timer and a retry timer and handles accordingly.
|
||||
*
|
||||
* @return Shall return 0 if the timeout has not expired; otherwise, an error
|
||||
* number indicating a timeout is returned.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user