Difference between revisions of "R-Car/Tests:VSPWriteback"

From eLinux.org
Jump to: navigation, search
(A writeback capture test)
m (Fix up output to match mainline yavta results (I had extra debug in there))
 
Line 72: Line 72:
 
  Connector 0,: fps 61.542155, slowest 16.25 ms
 
  Connector 0,: fps 61.542155, slowest 16.25 ms
 
  Connector 0,: fps 61.542132, slowest 16.26 ms
 
  Connector 0,: fps 61.542132, slowest 16.26 ms
 +
Connector 0: fps 61.542127, slowest 16.28 ms
 +
Connector 0: fps 61.542159, slowest 16.27 ms
 +
Connector 0: fps 61.542159, slowest 16.25 ms
 +
Connector 0: fps 61.542326, slowest 16.27 ms
 +
Connector 0: fps 61.541951, slowest 16.31 ms
 +
Connector 0: fps 61.542168, slowest 16.27 ms
 +
Connector 0: fps 61.542082, slowest 16.26 ms
 +
Connector 0: fps 61.542245, slowest 16.27 ms
 +
Connector 0: fps 61.542137, slowest 16.27 ms
 +
Connector 0: fps 61.542146, slowest 16.25 ms
 +
Connector 0: fps 61.542200, slowest 16.27 ms
 
!
 
!
 
  # grep -l fea38000 /sys/class/video4linux/video*/name
 
  # grep -l fea38000 /sys/class/video4linux/video*/name
Line 77: Line 88:
 
  # yavta -I -c30 -n8 -f RGB24 -s1024x768 --file=frame-rgb24-1024x768-#.bin /dev/video28
 
  # yavta -I -c30 -n8 -f RGB24 -s1024x768 --file=frame-rgb24-1024x768-#.bin /dev/video28
 
  Device /dev/video28 opened.
 
  Device /dev/video28 opened.
  Device `fea38000.vsp wpf.0 output' on `platform:fea38000.vsp' (driver 'vsp1') supports video, capture, with mplanes.
+
  Device `fea38000.vsp wpf.0 output' on `platform:fea38000.vsp' (driver 'vsp1') is a video capture (with mplanes) device.
 
  Video format set: RGB24 (33424752) 1024x768 field none, 1 planes:  
 
  Video format set: RGB24 (33424752) 1024x768 field none, 1 planes:  
 
   * Stride 3072, buffer size 2359296
 
   * Stride 3072, buffer size 2359296
Line 83: Line 94:
 
   * Stride 3072, buffer size 2359296
 
   * Stride 3072, buffer size 2359296
 
  8 buffers requested.
 
  8 buffers requested.
  length: 1 offset: 3413115408 timestamp type/source: copy/EoF
+
  length: 1 offset: 3469240976 timestamp type/source: copy/EoF
  Buffer 0/0 mapped at address 0x7f7a655000.
+
  Buffer 0/0 mapped at address 0x7f7b150000.
  length: 1 offset: 3413115408 timestamp type/source: copy/EoF
+
  length: 1 offset: 3469240976 timestamp type/source: copy/EoF
  Buffer 1/0 mapped at address 0x7f7a415000.
+
  Buffer 1/0 mapped at address 0x7f7af10000.
  length: 1 offset: 3413115408 timestamp type/source: copy/EoF
+
  length: 1 offset: 3469240976 timestamp type/source: copy/EoF
  Buffer 2/0 mapped at address 0x7f7a1d5000.
+
  Buffer 2/0 mapped at address 0x7f7acd0000.
  length: 1 offset: 3413115408 timestamp type/source: copy/EoF
+
  length: 1 offset: 3469240976 timestamp type/source: copy/EoF
  Buffer 3/0 mapped at address 0x7f79f95000.
+
  Buffer 3/0 mapped at address 0x7f7aa90000.
  length: 1 offset: 3413115408 timestamp type/source: copy/EoF
+
  length: 1 offset: 3469240976 timestamp type/source: copy/EoF
  Buffer 4/0 mapped at address 0x7f79d55000.
+
  Buffer 4/0 mapped at address 0x7f7a850000.
  length: 1 offset: 3413115408 timestamp type/source: copy/EoF
+
  length: 1 offset: 3469240976 timestamp type/source: copy/EoF
  Buffer 5/0 mapped at address 0x7f79b15000.
+
  Buffer 5/0 mapped at address 0x7f7a610000.
  length: 1 offset: 3413115408 timestamp type/source: copy/EoF
+
  length: 1 offset: 3469240976 timestamp type/source: copy/EoF
  Buffer 6/0 mapped at address 0x7f798d5000.
+
  Buffer 6/0 mapped at address 0x7f7a3d0000.
  length: 1 offset: 3413115408 timestamp type/source: copy/EoF
+
  length: 1 offset: 3469240976 timestamp type/source: copy/EoF
  Buffer 7/0 mapped at address 0x7f79695000.
+
  Buffer 7/0 mapped at address 0x7f7a190000.
  Commencing Capture...
+
  0 (0) [-] any 3925 2359296 B 65.194019 65.194307 0.152 fps ts copy/EoF
  Since Start : 0.046643
+
  1 (1) [-] any 3926 2359296 B 65.208672 65.419949 68.245 fps ts copy/EoF
  Since Previous : 0.046676
+
  2 (2) [-] any 3927 2359296 B 65.224957 65.644586 61.406 fps ts copy/EoF
  Verify Image took : 0.000000
+
  3 (3) [-] any 3928 2359296 B 65.241203 65.867995 61.554 fps ts copy/EoF
  0 (0) [-] any 9578 2359296 B 157.059179 157.059374 21.500 fps ts copy/EoF
+
  4 (4) [-] any 3929 2359296 B 65.257323 66.091535 62.035 fps ts copy/EoF
  Save Image took :  0.277358
+
  5 (5) [-] any 3930 2359296 B 65.273618 66.319976 61.369 fps ts copy/EoF
  Since Start : 0.324937
+
  6 (6) [-] any 3931 2359296 B 65.289814 66.543446 61.744 fps ts copy/EoF
  Since Previous :  0.278288
+
  7 (7) [-] any 3932 2359296 B 65.306108 66.767550 61.372 fps ts copy/EoF
  Verify Image took :  0.000000
+
  8 (0) [-] any 3942 2359296 B 65.468731 66.991723 6.149 fps ts copy/EoF
  1 (1) [-] any 9579 2359296 B 157.075548 157.337664 61.091 fps ts copy/EoF
+
  9 (1) [-] any 3955 2359296 B 65.679858 67.218849 4.736 fps ts copy/EoF
  Save Image took :  0.258360
+
  10 (2) [-] any 3969 2359296 B 65.907333 67.443060 4.396 fps ts copy/EoF
  Since Start :  0.584285
+
  11 (3) [-] any 3983 2359296 B 66.134812 67.666845 4.396 fps ts copy/EoF
  Since Previous :  0.259350
+
  12 (4) [-] any 3997 2359296 B 66.362295 67.891086 4.396 fps ts copy/EoF
  Verify Image took :  0.000001
+
  13 (5) [-] any 4011 2359296 B 66.589769 68.115011 4.396 fps ts copy/EoF
  2 (2) [-] any 9580 2359296 B 157.091732 157.597017 61.789 fps ts copy/EoF
+
  14 (6) [-] any 4024 2359296 B 66.801141 68.341183 4.731 fps ts copy/EoF
  Save Image took : 0.222265
+
  15 (7) [-] any 4038 2359296 B 67.028604 68.567016 4.396 fps ts copy/EoF
  Since Start : 0.808047
+
  16 (0) [-] any 4052 2359296 B 67.256100 68.790977 4.396 fps ts copy/EoF
  Since Previous : 0.224035
+
  17 (1) [-] any 4066 2359296 B 67.484821 69.014821 4.372 fps ts copy/EoF
  Verify Image took : 0.000001
+
  18 (2) [-] any 4080 2359296 B 67.711581 69.239477 4.410 fps ts copy/EoF
  3 (3) [-] any 9581 2359296 B 157.108107 157.821516 61.069 fps ts copy/EoF
+
  19 (3) [-] any 4094 2359296 B 67.938980 69.463426 4.398 fps ts copy/EoF
  < ... continues ... >
+
  20 (4) [-] any 4107 2359296 B 68.149811 69.687315 4.743 fps ts copy/EoF
 
+
  21 (5) [-] any 4121 2359296 B 68.377332 69.911209 4.395 fps ts copy/EoF
 +
  22 (6) [-] any 4135 2359296 B 68.605389 70.135002 4.385 fps ts copy/EoF
 +
  23 (7) [-] any 4149 2359296 B 68.833921 70.358234 4.376 fps ts copy/EoF
 +
  24 (0) [-] any 4163 2359296 B 69.060939 70.581742 4.405 fps ts copy/EoF
 +
  25 (1) [-] any 4177 2359296 B 69.287953 70.805247 4.405 fps ts copy/EoF
 +
  26 (2) [-] any 4190 2359296 B 69.499108 71.028590 4.736 fps ts copy/EoF
 +
  27 (3) [-] any 4204 2359296 B 69.726643 71.251872 4.395 fps ts copy/EoF
 +
28 (4) [-] any 4218 2359296 B 69.953930 71.475180 4.400 fps ts copy/EoF
 +
  29 (5) [-] any 4232 2359296 B 70.181688 71.698587 4.391 fps ts copy/EoF
 +
Captured 30 frames in 13.086996 seconds (2.292352 fps, 0.000000 B/s).
 +
8 buffers released.
 
|}
 
|}

Latest revision as of 10:15, 5 December 2016

VSP Writeback

The VSP DU Writeback node is a prototype stage extension to the VSP, which at this time requires manual testing.

Two terminals on the target are required, one to generate frames on the display, and one to capture the output.

Generating Frames

Any application or method which generates images on the display pipeline should be suitable for the test. For this test, kmstest has been used. This is part of the DRM libraries and can be built following the instructions at R-Car/Tests:KMS-modetest

Capturing Frames

The writeback device node exposes a V4L2 video capture device node and any application suitable for grabbing frames from these devices can be used. For the purposes of this test we will use the utility yavta which is available at http://git.ideasonboard.org/?p=yavta.git

A writeback capture test

Identify the writeback capture video device node using sysfs

  • grep -l fea38000 /sys/class/video4linux/video*/name

This, for instance, will return "/sys/class/video4linux/video28/name" which will show video28 as the node for /dev/

Execute the following command examples in parallel

  1. kmstest --flip
  2. yavta -I -c30 -n8 -f RGB24 -s1024x768 --file=frame-rgb24-1024x768-#.bin /dev/$VIDEO
# kmstest --flip
Connector 0/@66: VGA-1
  Crtc 3/@64 (plane 15/@52): 1024x768 65.000 1024/24/136/160 768/3/6/29 60 (60.00) 0xa 0x40
    Fb 75 1024x768-XR24
press enter to exit
Connector 0,: fps 61.548679, slowest 16.27 ms
Connector 0,: fps 61.541988, slowest 16.59 ms
Connector 0,: fps 61.542231, slowest 16.27 ms
Connector 0,: fps 61.542118, slowest 16.38 ms
Connector 0,: fps 61.542132, slowest 16.25 ms
Connector 0,: fps 61.542191, slowest 16.27 ms
Connector 0,: fps 61.542164, slowest 16.25 ms
Connector 0,: fps 61.542123, slowest 16.26 ms
Connector 0,: fps 61.542173, slowest 16.27 ms
Connector 0,: fps 61.542164, slowest 16.25 ms
Connector 0,: fps 61.542168, slowest 16.27 ms
Connector 0,: fps 61.542150, slowest 16.27 ms
Connector 0,: fps 61.542060, slowest 16.59 ms
Connector 0,: fps 61.542236, slowest 16.27 ms
Connector 0,: fps 61.542100, slowest 16.25 ms
Connector 0,: fps 61.542186, slowest 16.26 ms
Connector 0,: fps 61.542182, slowest 16.27 ms
Connector 0,: fps 61.541811, slowest 16.29 ms
Connector 0,: fps 61.542498, slowest 16.27 ms
Connector 0,: fps 61.542060, slowest 16.25 ms
Connector 0,: fps 61.542204, slowest 16.25 ms
Connector 0,: fps 61.542159, slowest 16.27 ms
Connector 0,: fps 61.542182, slowest 16.25 ms
Connector 0,: fps 61.542168, slowest 16.27 ms
Connector 0,: fps 61.542155, slowest 16.25 ms
Connector 0,: fps 61.542127, slowest 16.28 ms
Connector 0,: fps 61.542155, slowest 16.27 ms
Connector 0,: fps 61.542137, slowest 16.26 ms
Connector 0,: fps 61.542195, slowest 16.27 ms
Connector 0,: fps 61.542069, slowest 16.27 ms
Connector 0,: fps 61.542191, slowest 16.29 ms
Connector 0,: fps 61.542195, slowest 16.27 ms
Connector 0,: fps 61.542164, slowest 16.26 ms
Connector 0,: fps 61.542146, slowest 16.26 ms
Connector 0,: fps 61.542164, slowest 16.28 ms
Connector 0,: fps 61.542254, slowest 16.27 ms
Connector 0,: fps 61.542132, slowest 16.25 ms
Connector 0,: fps 61.542159, slowest 16.25 ms
Connector 0,: fps 61.542150, slowest 16.27 ms
Connector 0,: fps 61.542227, slowest 16.27 ms
Connector 0,: fps 61.542155, slowest 16.25 ms
Connector 0,: fps 61.542132, slowest 16.26 ms
Connector 0: fps 61.542127, slowest 16.28 ms
Connector 0: fps 61.542159, slowest 16.27 ms
Connector 0: fps 61.542159, slowest 16.25 ms
Connector 0: fps 61.542326, slowest 16.27 ms
Connector 0: fps 61.541951, slowest 16.31 ms
Connector 0: fps 61.542168, slowest 16.27 ms
Connector 0: fps 61.542082, slowest 16.26 ms
Connector 0: fps 61.542245, slowest 16.27 ms
Connector 0: fps 61.542137, slowest 16.27 ms
Connector 0: fps 61.542146, slowest 16.25 ms
Connector 0: fps 61.542200, slowest 16.27 ms
# grep -l fea38000 /sys/class/video4linux/video*/name
/sys/class/video4linux/video28/name
# yavta -I -c30 -n8 -f RGB24 -s1024x768 --file=frame-rgb24-1024x768-#.bin /dev/video28
Device /dev/video28 opened.
Device `fea38000.vsp wpf.0 output' on `platform:fea38000.vsp' (driver 'vsp1') is a video capture (with mplanes) device.
Video format set: RGB24 (33424752) 1024x768 field none, 1 planes: 
 * Stride 3072, buffer size 2359296
Video format: RGB24 (33424752) 1024x768 field none, 1 planes: 
 * Stride 3072, buffer size 2359296
8 buffers requested.
length: 1 offset: 3469240976 timestamp type/source: copy/EoF
Buffer 0/0 mapped at address 0x7f7b150000.
length: 1 offset: 3469240976 timestamp type/source: copy/EoF
Buffer 1/0 mapped at address 0x7f7af10000.
length: 1 offset: 3469240976 timestamp type/source: copy/EoF
Buffer 2/0 mapped at address 0x7f7acd0000.
length: 1 offset: 3469240976 timestamp type/source: copy/EoF
Buffer 3/0 mapped at address 0x7f7aa90000.
length: 1 offset: 3469240976 timestamp type/source: copy/EoF
Buffer 4/0 mapped at address 0x7f7a850000.
length: 1 offset: 3469240976 timestamp type/source: copy/EoF
Buffer 5/0 mapped at address 0x7f7a610000.
length: 1 offset: 3469240976 timestamp type/source: copy/EoF
Buffer 6/0 mapped at address 0x7f7a3d0000.
length: 1 offset: 3469240976 timestamp type/source: copy/EoF
Buffer 7/0 mapped at address 0x7f7a190000.
0 (0) [-] any 3925 2359296 B 65.194019 65.194307 0.152 fps ts copy/EoF
1 (1) [-] any 3926 2359296 B 65.208672 65.419949 68.245 fps ts copy/EoF
2 (2) [-] any 3927 2359296 B 65.224957 65.644586 61.406 fps ts copy/EoF
3 (3) [-] any 3928 2359296 B 65.241203 65.867995 61.554 fps ts copy/EoF
4 (4) [-] any 3929 2359296 B 65.257323 66.091535 62.035 fps ts copy/EoF
5 (5) [-] any 3930 2359296 B 65.273618 66.319976 61.369 fps ts copy/EoF
6 (6) [-] any 3931 2359296 B 65.289814 66.543446 61.744 fps ts copy/EoF
7 (7) [-] any 3932 2359296 B 65.306108 66.767550 61.372 fps ts copy/EoF
8 (0) [-] any 3942 2359296 B 65.468731 66.991723 6.149 fps ts copy/EoF
9 (1) [-] any 3955 2359296 B 65.679858 67.218849 4.736 fps ts copy/EoF
10 (2) [-] any 3969 2359296 B 65.907333 67.443060 4.396 fps ts copy/EoF
11 (3) [-] any 3983 2359296 B 66.134812 67.666845 4.396 fps ts copy/EoF
12 (4) [-] any 3997 2359296 B 66.362295 67.891086 4.396 fps ts copy/EoF
13 (5) [-] any 4011 2359296 B 66.589769 68.115011 4.396 fps ts copy/EoF
14 (6) [-] any 4024 2359296 B 66.801141 68.341183 4.731 fps ts copy/EoF
15 (7) [-] any 4038 2359296 B 67.028604 68.567016 4.396 fps ts copy/EoF
16 (0) [-] any 4052 2359296 B 67.256100 68.790977 4.396 fps ts copy/EoF
17 (1) [-] any 4066 2359296 B 67.484821 69.014821 4.372 fps ts copy/EoF
18 (2) [-] any 4080 2359296 B 67.711581 69.239477 4.410 fps ts copy/EoF
19 (3) [-] any 4094 2359296 B 67.938980 69.463426 4.398 fps ts copy/EoF
20 (4) [-] any 4107 2359296 B 68.149811 69.687315 4.743 fps ts copy/EoF
21 (5) [-] any 4121 2359296 B 68.377332 69.911209 4.395 fps ts copy/EoF
22 (6) [-] any 4135 2359296 B 68.605389 70.135002 4.385 fps ts copy/EoF
23 (7) [-] any 4149 2359296 B 68.833921 70.358234 4.376 fps ts copy/EoF
24 (0) [-] any 4163 2359296 B 69.060939 70.581742 4.405 fps ts copy/EoF
25 (1) [-] any 4177 2359296 B 69.287953 70.805247 4.405 fps ts copy/EoF
26 (2) [-] any 4190 2359296 B 69.499108 71.028590 4.736 fps ts copy/EoF
27 (3) [-] any 4204 2359296 B 69.726643 71.251872 4.395 fps ts copy/EoF
28 (4) [-] any 4218 2359296 B 69.953930 71.475180 4.400 fps ts copy/EoF
29 (5) [-] any 4232 2359296 B 70.181688 71.698587 4.391 fps ts copy/EoF
Captured 30 frames in 13.086996 seconds (2.292352 fps, 0.000000 B/s).
8 buffers released.