<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi, all!<br>
<br>
I test with piglit/igt-basic which is a wonderfule test tool.<br>
But i find a confused issue like below:<br>
Traceback (most recent call last):<br>
File "/lkp/benchmarks/piglit/lib/piglit/framework/test/base.py", line 209, in execute<br>
self.run()<br>
File "/lkp/benchmarks/piglit/lib/piglit/framework/test/base.py", line 270, in run<br>
self._run_command()<br>
File "/lkp/benchmarks/piglit/lib/piglit/framework/test/base.py", line 337, in _run_command<br>
out, err = proc.communicate(timeout=self.timeout)<br>
File "/usr/lib/python3.5/subprocess.py", line 801, in communicate<br>
stdout, stderr = self._communicate(input, endtime, timeout)<br>
File "/usr/lib/python3.5/subprocess.py", line 1485, in _communicate<br>
self.stdout.encoding)<br>
File "/usr/lib/python3.5/subprocess.py", line 705, in _translate_newlines<br>
data = data.decode(encoding)<br>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 117: ordinal not in range(128)<br>
<br>
When test igt-gem_pread-basic and igt-gem_pwrite-basic, the above issue occur.<br>
I try to set the default code way to ues utf-8 but not help.<br>
<br>
My test host is debian with the kernel v4.11-rc8.<br>
<br>
And if i directly run the script no with piglit, it seems ok:<br>
root@lkp-hsw-d01 /lkp/benchmarks/piglit/lib/piglit/bin/igt/tests# ./gem_pread<br>
IGT-Version: 1.16-g5bfbbea (x86_64) (Linux: 4.11.0-rc8 x86_64)<br>
Time to pread 16384 bytes x 1: 45.000µs, 364.1MiB/s<br>
Time to pread 16384 bytes x 2: 4.000µs, 4.1GiB/s<br>
Time to pread 16384 bytes x 4: 3.500µs, 4.7GiB/s<br>
Time to pread 16384 bytes x 8: 4.750µs, 3.4GiB/s<br>
Time to pread 16384 bytes x 16: 4.812µs, 3.4GiB/s<br>
Time to pread 16384 bytes x 32: 4.781µs, 3.4GiB/s<br>
Time to pread 16384 bytes x 64: 4.094µs, 4.0GiB/s<br>
Time to pread 16384 bytes x 128: 3.305µs, 5.0GiB/s<br>
Time to pread 16384 bytes x 256: 3.145µs, 5.2GiB/s<br>
Time to pread 16384 bytes x 512: 3.100µs, 5.3GiB/s<br>
Time to pread 16384 bytes x 1024: 3.037µs, 5.4GiB/s<br>
Time to pread 16384 bytes x 2048: 2.919µs, 5.6GiB/s<br>
Time to pread 16384 bytes x 4096: 2.663µs, 6.2GiB/s<br>
Time to pread 16384 bytes x 8192: 2.340µs, 7.0GiB/s<br>
Time to pread 16384 bytes x 16384: 1.938µs, 8.5GiB/s<br>
Time to pread 16384 bytes x 32768: 1.521µs, 10.8GiB/s<br>
Time to pread 16384 bytes x 65536: 1.151µs, 14.2GiB/s<br>
Time to pread 16384 bytes x 131072: 0.847µs, 19.3GiB/s<br>
Subtest basic: SUCCESS (0.311s)<br>
Time to uncached pread 16384 bytes x 1: 2.000µs, 8.2GiB/s<br>
Time to uncached pread 16384 bytes x 2: 1.000µs, 16.4GiB/s<br>
Time to uncached pread 16384 bytes x 4: 0.750µs, 21.8GiB/s<br>
Time to uncached pread 16384 bytes x 8: 0.875µs, 18.7GiB/s<br>
Time to uncached pread 16384 bytes x 16: 1.312µs, 12.5GiB/s<br>
Time to uncached pread 16384 bytes x 32: 1.000µs, 16.4GiB/s<br>
Time to uncached pread 16384 bytes x 64: 0.969µs, 16.9GiB/s<br>
Time to uncached pread 16384 bytes x 128: 0.852µs, 19.2GiB/s<br>
Time to uncached pread 16384 bytes x 256: 0.793µs, 20.7GiB/s<br>
Time to uncached pread 16384 bytes x 512: 0.768µs, 21.3GiB/s<br>
Time to uncached pread 16384 bytes x 1024: 0.718µs, 22.8GiB/s<br>
Time to uncached pread 16384 bytes x 2048: 0.729µs, 22.5GiB/s<br>
Time to uncached pread 16384 bytes x 4096: 0.725µs, 22.6GiB/s<br>
Time to uncached pread 16384 bytes x 8192: 0.722µs, 22.7GiB/s<br>
Time to uncached pread 16384 bytes x 16384: 0.708µs, 23.2GiB/s<br>
Time to uncached pread 16384 bytes x 32768: 0.688µs, 23.8GiB/s<br>
Time to uncached pread 16384 bytes x 65536: 0.685µs, 23.9GiB/s<br>
Time to uncached pread 16384 bytes x 131072: 0.680µs, 24.1GiB/s<br>
Subtest uncached: SUCCESS (0.180s)<br>
Time to snoop pread 16384 bytes x 1: 2.000µs, 8.2GiB/s<br>
Time to snoop pread 16384 bytes x 2: 1.000µs, 16.4GiB/s<br>
Time to snoop pread 16384 bytes x 4: 0.750µs, 21.8GiB/s<br>
Time to snoop pread 16384 bytes x 8: 0.875µs, 18.7GiB/s<br>
Time to snoop pread 16384 bytes x 16: 1.312µs, 12.5GiB/s<br>
Time to snoop pread 16384 bytes x 32: 1.094µs, 15.0GiB/s<br>
Time to snoop pread 16384 bytes x 64: 0.875µs, 18.7GiB/s<br>
Time to snoop pread 16384 bytes x 128: 0.773µs, 21.2GiB/s<br>
Time to snoop pread 16384 bytes x 256: 0.711µs, 23.0GiB/s<br>
Time to snoop pread 16384 bytes x 512: 0.701µs, 23.4GiB/s<br>
Time to snoop pread 16384 bytes x 1024: 0.702µs, 23.3GiB/s<br>
Time to snoop pread 16384 bytes x 2048: 0.701µs, 23.4GiB/s<br>
Time to snoop pread 16384 bytes x 4096: 0.686µs, 23.9GiB/s<br>
Time to snoop pread 16384 bytes x 8192: 0.690µs, 23.8GiB/s<br>
Time to snoop pread 16384 bytes x 16384: 0.685µs, 23.9GiB/s<br>
Time to snoop pread 16384 bytes x 32768: 0.684µs, 24.0GiB/s<br>
Time to snoop pread 16384 bytes x 65536: 0.687µs, 23.9GiB/s<br>
Time to snoop pread 16384 bytes x 131072: 0.685µs, 23.9GiB/s<br>
Subtest snoop: SUCCESS (0.180s)<br>
Time to display pread 16384 bytes x 1: 1.000µs, 16.4GiB/s<br>
Time to display pread 16384 bytes x 2: 1.000µs, 16.4GiB/s<br>
Time to display pread 16384 bytes x 4: 1.000µs, 16.4GiB/s<br>
Time to display pread 16384 bytes x 8: 0.875µs, 18.7GiB/s<br>
Time to display pread 16384 bytes x 16: 1.312µs, 12.5GiB/s<br>
Time to display pread 16384 bytes x 32: 1.000µs, 16.4GiB/s<br>
Time to display pread 16384 bytes x 64: 0.953µs, 17.2GiB/s<br>
Time to display pread 16384 bytes x 128: 0.852µs, 19.2GiB/s<br>
Time to display pread 16384 bytes x 256: 0.789µs, 20.8GiB/s<br>
Time to display pread 16384 bytes x 512: 0.729µs, 22.5GiB/s<br>
Time to display pread 16384 bytes x 1024: 0.685µs, 23.9GiB/s<br>
Time to display pread 16384 bytes x 2048: 0.691µs, 23.7GiB/s<br>
Time to display pread 16384 bytes x 4096: 0.687µs, 23.9GiB/s<br>
Time to display pread 16384 bytes x 8192: 0.688µs, 23.8GiB/s<br>
Time to display pread 16384 bytes x 16384: 0.684µs, 24.0GiB/s<br>
Time to display pread 16384 bytes x 32768: 0.687µs, 23.8GiB/s<br>
Time to display pread 16384 bytes x 65536: 0.687µs, 23.9GiB/s<br>
Time to display pread 16384 bytes x 131072: 0.685µs, 23.9GiB/s<br>
Subtest display: SUCCESS (0.180s)<br>
Test requirement not met in function main, file gem_pread.c:155:<br>
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)<br>
Subtest stolen-normal: SKIP (0.000s)<br>
Test requirement not met in function main, file gem_pread.c:171:<br>
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)<br>
Subtest stolen-uncached: SKIP (0.000s)<br>
Test requirement not met in function main, file gem_pread.c:171:<br>
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)<br>
Subtest stolen-snoop: SKIP (0.000s)<br>
Test requirement not met in function main, file gem_pread.c:171:<br>
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)<br>
Subtest stolen-display: SKIP (0.000s)<br>
Test requirement not met in function main, file gem_pread.c:195:<br>
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)<br>
Subtest pagefault-pread: SKIP (0.000s)<br>
root@lkp-hsw-d01 /lkp/benchmarks/piglit/lib/piglit/bin/igt/tests# ./gem_pwrite<br>
IGT-Version: 1.16-g5bfbbea (x86_64) (Linux: 4.11.0-rc8 x86_64)<br>
Time to pwrite 16384 bytes x 1: 27.000µs, 606.8MiB/s<br>
Time to pwrite 16384 bytes x 2: 5.000µs, 3.3GiB/s<br>
Time to pwrite 16384 bytes x 4: 3.750µs, 4.4GiB/s<br>
Time to pwrite 16384 bytes x 8: 3.625µs, 4.5GiB/s<br>
Time to pwrite 16384 bytes x 16: 3.500µs, 4.7GiB/s<br>
Time to pwrite 16384 bytes x 32: 3.531µs, 4.6GiB/s<br>
Time to pwrite 16384 bytes x 64: 4.000µs, 4.1GiB/s<br>
Time to pwrite 16384 bytes x 128: 3.500µs, 4.7GiB/s<br>
Time to pwrite 16384 bytes x 256: 3.000µs, 5.5GiB/s<br>
Time to pwrite 16384 bytes x 512: 2.850µs, 5.7GiB/s<br>
Time to pwrite 16384 bytes x 1024: 2.821µs, 5.8GiB/s<br>
Time to pwrite 16384 bytes x 2048: 2.644µs, 6.2GiB/s<br>
Time to pwrite 16384 bytes x 4096: 2.052µs, 8.0GiB/s<br>
Time to pwrite 16384 bytes x 8192: 1.907µs, 8.6GiB/s<br>
Time to pwrite 16384 bytes x 16384: 1.692µs, 9.7GiB/s<br>
Time to pwrite 16384 bytes x 32768: 1.423µs, 11.5GiB/s<br>
Time to pwrite 16384 bytes x 65536: 1.129µs, 14.5GiB/s<br>
Time to pwrite 16384 bytes x 131072: 0.859µs, 19.1GiB/s<br>
Subtest basic: SUCCESS (0.297s)<br>
Time to uncached pwrite 16384 bytes x 1: 1.000µs, 16.4GiB/s<br>
Time to uncached pwrite 16384 bytes x 2: 1.000µs, 16.4GiB/s<br>
Time to uncached pwrite 16384 bytes x 4: 1.000µs, 16.4GiB/s<br>
Time to uncached pwrite 16384 bytes x 8: 2.000µs, 8.2GiB/s<br>
Time to uncached pwrite 16384 bytes x 16: 1.562µs, 10.5GiB/s<br>
Time to uncached pwrite 16384 bytes x 32: 1.375µs, 11.9GiB/s<br>
Time to uncached pwrite 16384 bytes x 64: 1.109µs, 14.8GiB/s<br>
Time to uncached pwrite 16384 bytes x 128: 0.984µs, 16.6GiB/s<br>
Time to uncached pwrite 16384 bytes x 256: 0.867µs, 18.9GiB/s<br>
Time to uncached pwrite 16384 bytes x 512: 0.844µs, 19.4GiB/s<br>
Time to uncached pwrite 16384 bytes x 1024: 0.801µs, 20.5GiB/s<br>
Time to uncached pwrite 16384 bytes x 2048: 0.794µs, 20.6GiB/s<br>
Time to uncached pwrite 16384 bytes x 4096: 0.792µs, 20.7GiB/s<br>
Time to uncached pwrite 16384 bytes x 8192: 0.791µs, 20.7GiB/s<br>
Time to uncached pwrite 16384 bytes x 16384: 0.789µs, 20.8GiB/s<br>
Time to uncached pwrite 16384 bytes x 32768: 0.781µs, 21.0GiB/s<br>
Time to uncached pwrite 16384 bytes x 65536: 0.781µs, 21.0GiB/s<br>
Time to uncached pwrite 16384 bytes x 131072: 0.782µs, 21.0GiB/s<br>
Subtest uncached: SUCCESS (0.205s)<br>
Time to snoop pwrite 16384 bytes x 1: 1.000µs, 16.4GiB/s<br>
Time to snoop pwrite 16384 bytes x 2: 1.000µs, 16.4GiB/s<br>
Time to snoop pwrite 16384 bytes x 4: 4.750µs, 3.4GiB/s<br>
Time to snoop pwrite 16384 bytes x 8: 2.125µs, 7.7GiB/s<br>
Time to snoop pwrite 16384 bytes x 16: 1.375µs, 11.9GiB/s<br>
Time to snoop pwrite 16384 bytes x 32: 1.844µs, 8.9GiB/s<br>
Time to snoop pwrite 16384 bytes x 64: 1.281µs, 12.8GiB/s<br>
Time to snoop pwrite 16384 bytes x 128: 0.969µs, 16.9GiB/s<br>
Time to snoop pwrite 16384 bytes x 256: 0.887µs, 18.5GiB/s<br>
Time to snoop pwrite 16384 bytes x 512: 0.820µs, 20.0GiB/s<br>
Time to snoop pwrite 16384 bytes x 1024: 0.810µs, 20.2GiB/s<br>
Time to snoop pwrite 16384 bytes x 2048: 0.795µs, 20.6GiB/s<br>
Time to snoop pwrite 16384 bytes x 4096: 0.790µs, 20.7GiB/s<br>
Time to snoop pwrite 16384 bytes x 8192: 0.789µs, 20.8GiB/s<br>
Time to snoop pwrite 16384 bytes x 16384: 0.787µs, 20.8GiB/s<br>
Time to snoop pwrite 16384 bytes x 32768: 0.787µs, 20.8GiB/s<br>
Time to snoop pwrite 16384 bytes x 65536: 0.783µs, 20.9GiB/s<br>
Time to snoop pwrite 16384 bytes x 131072: 0.780µs, 21.0GiB/s<br>
Subtest snoop: SUCCESS (0.205s)<br>
Time to display pwrite 16384 bytes x 1: 1.000µs, 16.4GiB/s<br>
Time to display pwrite 16384 bytes x 2: 1.000µs, 16.4GiB/s<br>
Time to display pwrite 16384 bytes x 4: 0.750µs, 21.8GiB/s<br>
Time to display pwrite 16384 bytes x 8: 2.125µs, 7.7GiB/s<br>
Time to display pwrite 16384 bytes x 16: 1.500µs, 10.9GiB/s<br>
Time to display pwrite 16384 bytes x 32: 1.469µs, 11.2GiB/s<br>
Time to display pwrite 16384 bytes x 64: 1.234µs, 13.3GiB/s<br>
Time to display pwrite 16384 bytes x 128: 1.008µs, 16.3GiB/s<br>
Time to display pwrite 16384 bytes x 256: 0.887µs, 18.5GiB/s<br>
Time to display pwrite 16384 bytes x 512: 0.830µs, 19.7GiB/s<br>
Time to display pwrite 16384 bytes x 1024: 0.809µs, 20.3GiB/s<br>
Time to display pwrite 16384 bytes x 2048: 0.797µs, 20.5GiB/s<br>
Time to display pwrite 16384 bytes x 4096: 0.797µs, 20.5GiB/s<br>
Time to display pwrite 16384 bytes x 8192: 0.792µs, 20.7GiB/s<br>
Time to display pwrite 16384 bytes x 16384: 0.782µs, 21.0GiB/s<br>
Time to display pwrite 16384 bytes x 32768: 0.782µs, 21.0GiB/s<br>
Time to display pwrite 16384 bytes x 65536: 0.779µs, 21.0GiB/s<br>
Time to display pwrite 16384 bytes x 131072: 0.781µs, 21.0GiB/s<br>
Subtest display: SUCCESS (0.205s)<br>
Test requirement not met in function main, file gem_pwrite.c:283:<br>
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)<br>
Subtest stolen-normal: SKIP (0.000s)<br>
Test requirement not met in function main, file gem_pwrite.c:301:<br>
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)<br>
Subtest stolen-uncached: SKIP (0.000s)<br>
Test requirement not met in function main, file gem_pwrite.c:301:<br>
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)<br>
Subtest stolen-snoop: SKIP (0.000s)<br>
Test requirement not met in function main, file gem_pwrite.c:301:<br>
Test requirement: gem_create__has_stolen_support(fd) && (gem_total_stolen_size(fd) > 0)<br>
Subtest stolen-display: SKIP (0.000s)<br>
Subtest small-cpu-forwards: SUCCESS (0.187s)<br>
Subtest small-gtt-forwards: SUCCESS (0.217s)<br>
Subtest big-cpu-forwards: SUCCESS (0.731s)<br>
Subtest big-gtt-forwards: SUCCESS (0.999s)<br>
Subtest huge-cpu-forwards: SUCCESS (0.912s)<br>
Subtest huge-gtt-forwards: SUCCESS (0.988s)<br>
Subtest small-cpu-backwards: SUCCESS (0.400s)<br>
Subtest small-gtt-backwards: SUCCESS (0.217s)<br>
Subtest big-cpu-backwards: SUCCESS (0.743s)<br>
Subtest big-gtt-backwards: SUCCESS (1.012s)<br>
Subtest huge-cpu-backwards: SUCCESS (0.962s)<br>
Subtest huge-gtt-backwards: SUCCESS (1.002s)<br>
Subtest small-cpu-random: SUCCESS (0.411s)<br>
Subtest small-gtt-random: SUCCESS (0.197s)<br>
Subtest big-cpu-random: SUCCESS (0.782s)<br>
Subtest big-gtt-random: SUCCESS (0.864s)<br>
Subtest huge-cpu-random: SUCCESS (0.985s)<br>
Subtest huge-gtt-random: SUCCESS (1.079s)<br>
Subtest small-cpu-fbr: SUCCESS (0.409s)<br>
Subtest small-gtt-fbr: SUCCESS (0.301s)<br>
Subtest big-cpu-fbr: SUCCESS (1.444s)<br>
Subtest big-gtt-fbr: SUCCESS (1.765s)<br>
Subtest huge-cpu-fbr: SUCCESS (1.591s)<br>
Subtest huge-gtt-fbr: SUCCESS (1.700s)<br>
<br>
Also, i met a question when i want to retest pread:<br>
root@lkp-hsw-d01 /lkp/benchmarks/piglit# bin/piglit run igt -t igt/gem_pread/basic /tmp/lkp/piglit-results -x igt/gem_pread/basic<br>
Fatal Error: There are no tests scheduled to run. Aborting run.<br>
<br>
Could you help me?<br>
<br>
Thanks <br>
Dai Xiang<br>
</div>
</body>
</html>