summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRoy Pledge <Roy.Pledge@freescale.com>2013-07-03 18:28:36 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-07-23 21:04:18 (GMT)
commit0028e6f867816411aac6bbf57740286d12114bcb (patch)
tree73faa7c9c6eebd09e02acbb032c7a7bde19ecb88 /include/linux
parent286d9a0debaee7e159808aa41a40c5c863295365 (diff)
downloadlinux-fsl-qoriq-0028e6f867816411aac6bbf57740286d12114bcb.tar.xz
Set SDQCR to ensure frame queues can reach the retired state
In some situations frame queues may still be on a work queue when a retirement command is sent during cleanup. In order to reach the retired state these frame queues must be scheduled. This patch sets an appropriate SDQCR value to ensure that the Frame Queue is scheduled. Since Frame Queues could be 'locked' to a particular portal if the Hold Active feature is enabled the shutrown routine must service all portals to ensure that the FQ reaches a retired state Signed-off-by: Roy Pledge <Roy.Pledge@freescale.com> Change-Id: I9faab0039e4bb7f8c740a271154e7756ce014d98 Reviewed-on: http://git.am.freescale.net:8181/3229 Reviewed-by: Wang Haiying-R54964 <Haiying.Wang@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fsl_bman.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/fsl_bman.h b/include/linux/fsl_bman.h
index 48663d7..4bf2366 100644
--- a/include/linux/fsl_bman.h
+++ b/include/linux/fsl_bman.h
@@ -403,6 +403,12 @@ static inline void bman_release_bpid(u32 bpid)
bman_release_bpid_range(bpid, 1);
}
+int bman_reserve_bpid_range(u32 bpid, unsigned int count);
+static inline int bman_reserve_bpid(u32 bpid)
+{
+ return bman_reserve_bpid_range(bpid, 1);
+}
+
void bman_seed_bpid_range(u32 bpid, unsigned int count);