summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx18/cx18-io.c
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2008-11-08 12:19:37 -0500
committerAndy Walls <awalls@radix.net>2008-11-08 12:19:37 -0500
commit6df1bdecf27c9e9b049e97e0b157eaf49e4208ed (patch)
tree4e3070a009c9b0433ffd5cba65a194c7aafa0afa /linux/drivers/media/video/cx18/cx18-io.c
parentd2d260c5ae3e899c0f3d1482a4e58057c4031dbd (diff)
downloadmediapointer-dvb-s2-6df1bdecf27c9e9b049e97e0b157eaf49e4208ed.tar.gz
mediapointer-dvb-s2-6df1bdecf27c9e9b049e97e0b157eaf49e4208ed.tar.bz2
cx18: Further changes to improve mailbox protocol integrity & performnce
From: Andy Walls <awalls@radix.net> All waits for cx18 mailbox API commands are now uninterruptable. Added code to collect mailbox ack statistics. Tweaked timeouts based on collected stats and video vertical frame and field rates. Priority: normal Signed-off-by: Andy Walls <awalls@radix.net>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-io.c')
-rw-r--r--linux/drivers/media/video/cx18/cx18-io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-io.c b/linux/drivers/media/video/cx18/cx18-io.c
index 0ad8dea3e..48a8adc83 100644
--- a/linux/drivers/media/video/cx18/cx18-io.c
+++ b/linux/drivers/media/video/cx18/cx18-io.c
@@ -37,6 +37,10 @@ void cx18_log_statistics(struct cx18 *cx)
for (i = 0; i <= CX18_MAX_MMIO_RD_RETRIES; i++)
CX18_DEBUG_INFO("retried_read[%d] = %d\n", i,
atomic_read(&cx->mmio_stats.retried_read[i]));
+ for (i = 0; i <= CX18_MAX_MB_ACK_DELAY; i++)
+ if (atomic_read(&cx->mbox_stats.mb_ack_delay[i]))
+ CX18_DEBUG_INFO("mb_ack_delay[%d] = %d\n", i,
+ atomic_read(&cx->mbox_stats.mb_ack_delay[i]));
return;
}