summaryrefslogtreecommitdiff
path: root/include
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 20:02:57 (GMT)
commit9781107ad6081bffbb34c9c7bc68ec5dff671cbd (patch)
treef7cc32055f5ef04d72828ed122bcccf5ce60b370 /include
parentea5ff9f0b8c419fc3a60a6d746be9dead11227f4 (diff)
downloadlinux-fsl-qoriq-9781107ad6081bffbb34c9c7bc68ec5dff671cbd.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: I97f79d35c62f179f21b6bd11c23bc0150e54ff5f Reviewed-on: http://git.am.freescale.net:8181/3339 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'include')
-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);