From 9a0e3cee098be83b2a86e6919fd1acd4a35a083c Mon Sep 17 00:00:00 2001 From: Harshdeep Dhatt Date: Tue, 27 Sep 2022 13:46:59 -0600 Subject: [PATCH] soc: hw-fence: Add MSM_HW_FENCE_FLAG_SIGNALED_BIT This bit is set by hw-fence driver when it sees that the hw-fence is already signaled at the time when a client wants to add itself as a waiter for this hw-fence. This helps the client to avoid adding itself as a waiter for an already signaled hw-fence. Change-Id: I767745923066ee66c4bd8cd756ff05cd8cdbc833 Signed-off-by: Harshdeep Dhatt --- include/linux/soc/qcom/msm_hw_fence.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/linux/soc/qcom/msm_hw_fence.h b/include/linux/soc/qcom/msm_hw_fence.h index 84acc38778d1..7afaa6fb0645 100644 --- a/include/linux/soc/qcom/msm_hw_fence.h +++ b/include/linux/soc/qcom/msm_hw_fence.h @@ -18,6 +18,15 @@ */ #define MSM_HW_FENCE_FLAG_ENABLED_BIT 31 +/** + * MSM_HW_FENCE_FLAG_SIGNALED_BIT - Hw-fence is signaled for the dma_fence. + * + * This flag is set by hw-fence driver when a client wants to add itself as + * a waiter for this hw-fence. The client uses this flag to avoid adding itself + * as a waiter for a fence that is already retired. + */ +#define MSM_HW_FENCE_FLAG_SIGNALED_BIT 30 + /** * MSM_HW_FENCE_ERROR_RESET - Hw-fence flagged as error due to forced reset from producer. */