/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to tests/dma/debug/test-iommu.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-27 00:28:57 UTC
  • Revision ID: csa@suren.me-20150427002857-82fk6r3e8rfgy4wr
First stand-alone ipecamera implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/bash
2
 
 
3
 
i=1
4
 
while [ 1 ]; do
5
 
    pci --start-dma dma1r
6
 
    for name in /sys/class/fpga/fpga0/kbuf*; do
7
 
        bus_addr=0x`cat $name | grep "bus addr" | cut -d ':' -f 2 | sed -e 's/\s\+//g'`
8
 
        if [ $((bus_addr % 4096)) -ne 0 ]; then
9
 
            
10
 
            echo "Failed at iteration $i, $name"
11
 
            echo "----------------------"
12
 
            cat $name
13
 
            exit
14
 
        fi
15
 
 
16
 
    done
17
 
    pci  --stop-dma dma1r
18
 
    i=$((i + 1))
19
 
done