R-Car/Tests:VSPWriteback

From eLinux.org
< R-Car
Revision as of 02:44, 2 December 2016 by Kbingham (talk | contribs) (A writeback capture test)
Jump to: navigation, search

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
# 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') supports video, capture, with mplanes.
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: 3413115408 timestamp type/source: copy/EoF
Buffer 0/0 mapped at address 0x7f7a655000.
length: 1 offset: 3413115408 timestamp type/source: copy/EoF
Buffer 1/0 mapped at address 0x7f7a415000.
length: 1 offset: 3413115408 timestamp type/source: copy/EoF
Buffer 2/0 mapped at address 0x7f7a1d5000.
length: 1 offset: 3413115408 timestamp type/source: copy/EoF
Buffer 3/0 mapped at address 0x7f79f95000.
length: 1 offset: 3413115408 timestamp type/source: copy/EoF
Buffer 4/0 mapped at address 0x7f79d55000.
length: 1 offset: 3413115408 timestamp type/source: copy/EoF
Buffer 5/0 mapped at address 0x7f79b15000.
length: 1 offset: 3413115408 timestamp type/source: copy/EoF
Buffer 6/0 mapped at address 0x7f798d5000.
length: 1 offset: 3413115408 timestamp type/source: copy/EoF
Buffer 7/0 mapped at address 0x7f79695000.
Commencing Capture...
Since Start :  0.046643
Since Previous :  0.046676
Verify Image took :  0.000000
0 (0) [-] any 9578 2359296 B 157.059179 157.059374 21.500 fps ts copy/EoF
Save Image took :  0.277358
Since Start :  0.324937
Since Previous :  0.278288
Verify Image took :  0.000000
1 (1) [-] any 9579 2359296 B 157.075548 157.337664 61.091 fps ts copy/EoF
Save Image took :  0.258360
Since Start :  0.584285
Since Previous :  0.259350
Verify Image took :  0.000001
2 (2) [-] any 9580 2359296 B 157.091732 157.597017 61.789 fps ts copy/EoF
Save Image took :  0.222265
Since Start :  0.808047
Since Previous :  0.224035
Verify Image took :  0.000001
3 (3) [-] any 9581 2359296 B 157.108107 157.821516 61.069 fps ts copy/EoF
< ... continues ... >