Support to assemble CB kernel for gen7
v4 cover Support to assemble CB kernel for gen7
Summary
-------
This is patch adds support to assemble CB kernel for gen7 and gen7.5 devices. It is needed for "Security mitigation for Intel Gen7/7.5 HWs" Intel ID: PSIRT-TA-201910-001/CVEID: CVE-2019-14615.
Additional Note
---------------
The changes in the IGT GPU tool require latest Mesa tool to work correctly. Generated CB kernel are imported to i915 driver, without need for additional modifications. Users can use assembly sources provided with this patch, and Mesa/igt to assemble CB kernel for verifications.
Akeem G Abodunrin (1):
tools/generate_cb_buffer: Add script to assemble CB kernel
scripts/asm_eu_kernel.sh | 153 ++++++++++++++++++++++++ tools/assembly_source/hsw_clear_buf.asm | 141 ++++++++++++++++++++++ tools/assembly_source/ivb_clear_buf.asm | 139 +++++++++++++++++++++ 3 files changed, 433 insertions(+) create mode 100755 scripts/asm_eu_kernel.sh create mode 100644 tools/assembly_source/hsw_clear_buf.asm create mode 100644 tools/assembly_source/ivb_clear_buf.asm
Signature · 6 lines
2.20.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v4 1/1 tools/generate_cb_buffer: Add script to assemble CB kernel
This patch adds script and applicable assembly sources, so that we can use igt to assemble Clear Batch Buffer kernel for gen7 and gen7.5 devices - Resultant header files would be imported to i915, and used as they are...
With this patch, user need to have mesa configured on their platform, before igt could be used to achieve the purpose of assembling the kernel from source.
This is needed for "Security mitigation for Intel Gen7/7.5 HWs" Intel ID: PSIRT-TA-201910-001/CVEID: CVE-2019-14615
v2: Addressed formatting, -g option and other minor issues (Petri)
V3: Update script due to suggested changes in i915, and Mesa tool
v4: Update help comment with Mesa build option with meson (Petri)
--- scripts/asm_eu_kernel.sh | 153 ++++++++++++++++++++++++ tools/assembly_source/hsw_clear_buf.asm | 141 ++++++++++++++++++++++ tools/assembly_source/ivb_clear_buf.asm | 139 +++++++++++++++++++++ 3 files changed, 433 insertions(+) create mode 100755 scripts/asm_eu_kernel.sh create mode 100644 tools/assembly_source/hsw_clear_buf.asm create mode 100644 tools/assembly_source/ivb_clear_buf.asm
scripts/asm_eu_kernel.sh new file +153 -0
@@ -0,0 +1,153 @@ +#!/bin/bash +# +# SPDX-License-Identifier: MIT +# +# Copyright © 2020 Intel Corporation +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +export ASSEMBLY_SOURCE=./tools/assembly_source + +function get_help { + echo "Usage: asm_eu_kernel.sh [options]" + echo "Note: hsw_clear_kernel.c/ivb_clear_kernel.c automatically generated by this script should never be modified - it would be imported to i915, to use as it is..." + echo " " + echo "Please make sure your Mesa tool is compiled with "-Dtools=intel" and "-Ddri-drivers=i965", and run this script from IGT source root directory" + echo " " + echo "Options are:" + echo " -h display this help message, and exit" + echo " -g=platform generation of device: use "hsw" for gen7.5, and "ivb" for gen7 devices" + echo " -o=name_of_file output file to store Mesa assembled c-literal for the device - If none specified, default file will be used - ivb/hsw-cb_assembled" + echo " -m=mesa Mesa source directory" + echo " " + echo " Usage example: \"scripts/asm_eu_kernel.sh -g hsw -o hsw_clear_buffer.h -m /path/to/Mesa/source/directory\"" +} + +function include_array # $1=array_name +{ + echo "static const u32 $(basename $1)_clear_kernel[] = {" +} +function prefix_header # $1=filename $2=comment +{ + array_name=$(include_array $1) + + cat <<EOF +// SPDX-License-Identifier: MIT +/* + * Copyright © 2020 Intel Corporation + * + * Generated by: IGT Gpu Tools on $(date) + */ + +$array_name +EOF +} + +function postfix_footer # filename +{ + cat <<EOF +}; +EOF +} + +function check_output_file #check output file +{ + if [ "x$output_file" != "x" ]; then + if [ -f "$output_file" ]; then + echo -e "Warning: The \"$output_file\" file already exist - choose another file\n" + get_help + exit 1 + fi + else + # It is okay to overwrite default file created + echo -e "Output file not specified - using default file \"$gen_device-cb_assembled\"\n" + output_file="$gen_device-cb_assembled" + fi +} +function asm_cb_kernel # as-root <args> +{ + check_output_file + + # Using i965_asm tool to assemble hex file from assembly source + $I965_ASM -g $gen_device -t c_literal $input_asm_source -o $output_file + + # Generate header file + if [ "$gen_device" == "hsw" ]; then + echo "Generating gen7.5 CB Kernel assembled file \"hsw_clear_kernel.c\" for i915 driver..." + + i915_filename=hsw_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + + elif [ "$gen_device" == "ivb" ]; then + echo "Generating gen7 CB Kernel assembled file \"ivb_clear_kernel.c\" for i915 driver..." + + i915_filename=ivb_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + fi +} + +while getopts "hg:o:m:" opt; do + case $opt in + h) get_help; exit 0;; + g) gen_device="$OPTARG" ;; + o) output_file="$OPTARG" ;; + m) mesa_dir="$OPTARG" ;; + \?) + echo -e "Unknown option: -$OPTARG\n" + get_help + exit 1 + ;; + esac +done +shift $(($OPTIND-1)) + +if [ "x$1" != "x" ]; then + echo -e "Unknown option: $1\n" + get_help + exit 1 +fi + +I965_ASM="$mesa_dir/build/debug/src/intel/tools/i965_asm" +if [ ! -f ${I965_ASM} ]; then + echo -e "i965_asm not found at ${I965_ASM}\n" + get_help + exit 1 +fi + +if [ "x$gen_device" != "x" ]; then + if [ "$gen_device" == "hsw" ]; then + input_asm_source="${ASSEMBLY_SOURCE}/hsw_clear_buf.asm" + elif [ "$gen_device" == "ivb" ]; then + input_asm_source="${ASSEMBLY_SOURCE}/ivb_clear_buf.asm" + else + echo -e "Unknown platform specified\n" + get_help + exit 1 + fi + asm_cb_kernel +else + echo -e "Platform generation not specified\n" + get_help + exit 1 +fi
tools/assembly_source/hsw_clear_buf.asm new file +141 -0
141 lines not on this page · raw message
tools/assembly_source/ivb_clear_buf.asm new file +139 -0
139 lines not on this page · raw message
Signature · 6 lines
2.20.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v4 1/1] tools/generate_cb_buffer: Add script to assemble CB kernel
Quoted 157 lines · Akeem G Abodunrin
This patch adds script and applicable assembly sources, so that we can use igt to assemble Clear Batch Buffer kernel for gen7 and gen7.5 devices - Resultant header files would be imported to i915, and used as they are...
With this patch, user need to have mesa configured on their platform, before igt could be used to achieve the purpose of assembling the kernel from source.
This is needed for "Security mitigation for Intel Gen7/7.5 HWs" Intel ID: PSIRT-TA-201910-001/CVEID: CVE-2019-14615
v2: Addressed formatting, -g option and other minor issues (Petri)
V3: Update script due to suggested changes in i915, and Mesa tool
v4: Update help comment with Mesa build option with meson (Petri)Cc Ville Syrjälä <[email protected]>Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Petri Latvala <[email protected]>Cc Bloomfield Jon <[email protected]>Signed-off-by Akeem G Abodunrin <[email protected]>--- scripts/asm_eu_kernel.sh | 153 ++++++++++++++++++++++++ tools/assembly_source/hsw_clear_buf.asm | 141 ++++++++++++++++++++++ tools/assembly_source/ivb_clear_buf.asm | 139 +++++++++++++++++++++ 3 files changed, 433 insertions(+) create mode 100755 scripts/asm_eu_kernel.sh create mode 100644 tools/assembly_source/hsw_clear_buf.asm create mode 100644 tools/assembly_source/ivb_clear_buf.asmscripts/asm_eu_kernel.sh new file +121
-0@@ -0,0 +1,153 @@ +#!/bin/bash +# +# SPDX-License-Identifier: MIT +# +# Copyright © 2020 Intel Corporation +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +export ASSEMBLY_SOURCE=./tools/assembly_source + +function get_help { + echo "Usage: asm_eu_kernel.sh [options]" + echo "Note: hsw_clear_kernel.c/ivb_clear_kernel.c automatically generated by this script should never be modified - it would be imported to i915, to use as it is..." + echo " " + echo "Please make sure your Mesa tool is compiled with "-Dtools=intel" and "-Ddri-drivers=i965", and run this script from IGT source root directory" + echo " " + echo "Options are:" + echo " -h display this help message, and exit" + echo " -g=platform generation of device: use "hsw" for gen7.5, and "ivb" for gen7 devices" + echo " -o=name_of_file output file to store Mesa assembled c-literal for the device - If none specified, default file will be used - ivb/hsw-cb_assembled" + echo " -m=mesa Mesa source directory" + echo " " + echo " Usage example: \"scripts/asm_eu_kernel.sh -g hsw -o hsw_clear_buffer.h -m /path/to/Mesa/source/directory\"" +} + +function include_array # $1=array_name +{ + echo "static const u32 $(basename $1)_clear_kernel[] = {" +} +function prefix_header # $1=filename $2=comment +{ + array_name=$(include_array $1) + + cat <<EOF +// SPDX-License-Identifier: MIT +/* + * Copyright © 2020 Intel Corporation + * + * Generated by: IGT Gpu Tools on $(date) + */ + +$array_name +EOF +} + +function postfix_footer # filename +{ + cat <<EOF +}; +EOF +} + +function check_output_file #check output file +{ + if [ "x$output_file" != "x" ]; then + if [ -f "$output_file" ]; then + echo -e "Warning: The \"$output_file\" file already exist - choose another file\n" + get_help + exit 1 + fi + else + # It is okay to overwrite default file created + echo -e "Output file not specified - using default file \"$gen_device-cb_assembled\"\n" + output_file="$gen_device-cb_assembled" + fi +} +function asm_cb_kernel # as-root <args> +{ + check_output_file + + # Using i965_asm tool to assemble hex file from assembly source + $I965_ASM -g $gen_device -t c_literal $input_asm_source -o $output_file + + # Generate header file + if [ "$gen_device" == "hsw" ]; then + echo "Generating gen7.5 CB Kernel assembled file \"hsw_clear_kernel.c\" for i915 driver..." + + i915_filename=hsw_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + + elif [ "$gen_device" == "ivb" ]; then + echo "Generating gen7 CB Kernel assembled file \"ivb_clear_kernel.c\" for i915 driver..." + + i915_filename=ivb_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + fi +} + +while getopts "hg:o:m:" opt; do + case $opt in + h) get_help; exit 0;; + g) gen_device="$OPTARG" ;; + o) output_file="$OPTARG" ;; + m) mesa_dir="$OPTARG" ;; + \?) + echo -e "Unknown option: -$OPTARG\n" + get_help + exit 1 + ;; + esac
scripts/asm_eu_kernel.sh line 131
Quoted 10 lines
scripts/asm_eu_kernel.sh new file +10
-0+done +shift $(($OPTIND-1)) + +if [ "x$1" != "x" ]; then + echo -e "Unknown option: $1\n" + get_help + exit 1 +fi + +I965_ASM="$mesa_dir/build/debug/src/intel/tools/i965_asm"
Should this be $mesa_dir/build/src/intel/tools/i965_asm instead?
After changing that I get
# scripts/asm_eu_kernel.sh -m ~/src/mesa -ghsw Output file not specified - using default file "hsw-cb_assembled"
./tools/assembly_source/hsw_clear_buf.asm: 71: syntax error at "<" Generating gen7.5 CB Kernel assembled file "hsw_clear_kernel.c" for i915 driver...
And then 'hsw-cb_assembled' is an empty file, 'hsw_clear_kernel.c' contains an empty array but the script exited with success...
Line 71 in the asm is
shr(1) g3<1>D sr0<0,1,0>D 12D { align1 1N };
Signature · 5 lines
Petri Latvala _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v4 1/1] tools/generate_cb_buffer: Add script to assemble CB kernel
Quoted 162 lines · Petri Latvala
Quoted 161 lines · Akeem G Abodunrin
This patch adds script and applicable assembly sources, so that we can use igt to assemble Clear Batch Buffer kernel for gen7 and gen7.5 devices - Resultant header files would be imported to i915, and used as they are...
With this patch, user need to have mesa configured on their platform, before igt could be used to achieve the purpose of assembling the kernel from source.
This is needed for "Security mitigation for Intel Gen7/7.5 HWs" Intel ID: PSIRT-TA-201910-001/CVEID: CVE-2019-14615
v2: Addressed formatting, -g option and other minor issues (Petri)
V3: Update script due to suggested changes in i915, and Mesa tool
v4: Update help comment with Mesa build option with meson (Petri)Cc Ville Syrjälä <[email protected]>Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Petri Latvala <[email protected]>Cc Bloomfield Jon <[email protected]>Signed-off-by Akeem G Abodunrin <[email protected]>--- scripts/asm_eu_kernel.sh | 153 ++++++++++++++++++++++++ tools/assembly_source/hsw_clear_buf.asm | 141 ++++++++++++++++++++++ tools/assembly_source/ivb_clear_buf.asm | 139 +++++++++++++++++++++ 3 files changed, 433 insertions(+) create mode 100755 scripts/asm_eu_kernel.sh create mode 100644 tools/assembly_source/hsw_clear_buf.asm create mode 100644 tools/assembly_source/ivb_clear_buf.asmscripts/asm_eu_kernel.sh new file +125
-0@@ -0,0 +1,153 @@ +#!/bin/bash +# +# SPDX-License-Identifier: MIT +# +# Copyright © 2020 Intel Corporation +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +export ASSEMBLY_SOURCE=./tools/assembly_source + +function get_help { + echo "Usage: asm_eu_kernel.sh [options]" + echo "Note: hsw_clear_kernel.c/ivb_clear_kernel.c automatically generated by this script should never be modified - it would be imported to i915, to use as it is..." + echo " " + echo "Please make sure your Mesa tool is compiled with "-Dtools=intel" and "-Ddri-drivers=i965", and run this script from IGT source root directory" + echo " " + echo "Options are:" + echo " -h display this help message, and exit" + echo " -g=platform generation of device: use "hsw" for gen7.5, and "ivb" for gen7 devices" + echo " -o=name_of_file output file to store Mesa assembled c-literal for the device - If none specified, default file will be used - ivb/hsw-cb_assembled" + echo " -m=mesa Mesa source directory" + echo " " + echo " Usage example: \"scripts/asm_eu_kernel.sh -g hsw -o hsw_clear_buffer.h -m /path/to/Mesa/source/directory\"" +} + +function include_array # $1=array_name +{ + echo "static const u32 $(basename $1)_clear_kernel[] = {" +} +function prefix_header # $1=filename $2=comment +{ + array_name=$(include_array $1) + + cat <<EOF +// SPDX-License-Identifier: MIT +/* + * Copyright © 2020 Intel Corporation + * + * Generated by: IGT Gpu Tools on $(date) + */ + +$array_name +EOF +} + +function postfix_footer # filename +{ + cat <<EOF +}; +EOF +} + +function check_output_file #check output file +{ + if [ "x$output_file" != "x" ]; then + if [ -f "$output_file" ]; then + echo -e "Warning: The \"$output_file\" file already exist - choose another file\n" + get_help + exit 1 + fi + else + # It is okay to overwrite default file created + echo -e "Output file not specified - using default file \"$gen_device-cb_assembled\"\n" + output_file="$gen_device-cb_assembled" + fi +} +function asm_cb_kernel # as-root <args> +{ + check_output_file + + # Using i965_asm tool to assemble hex file from assembly source + $I965_ASM -g $gen_device -t c_literal $input_asm_source -o $output_file + + # Generate header file + if [ "$gen_device" == "hsw" ]; then + echo "Generating gen7.5 CB Kernel assembled file \"hsw_clear_kernel.c\" for i915 driver..." + + i915_filename=hsw_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + + elif [ "$gen_device" == "ivb" ]; then + echo "Generating gen7 CB Kernel assembled file \"ivb_clear_kernel.c\" for i915 driver..." + + i915_filename=ivb_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + fi +} + +while getopts "hg:o:m:" opt; do + case $opt in + h) get_help; exit 0;; + g) gen_device="$OPTARG" ;; + o) output_file="$OPTARG" ;; + m) mesa_dir="$OPTARG" ;; + \?) + echo -e "Unknown option: -$OPTARG\n" + get_help + exit 1 + ;; + esac +done +shift $(($OPTIND-1)) + +if [ "x$1" != "x" ]; then
Quoted 8 lines
scripts/asm_eu_kernel.sh line 131
Quoted 6 lines
scripts/asm_eu_kernel.sh new file +6
-0+ echo -e "Unknown option: $1\n" + get_help + exit 1 +fi + +I965_ASM="$mesa_dir/build/debug/src/intel/tools/i965_asm"Should this be $mesa_dir/build/src/intel/tools/i965_asm instead?
Both assume the user specied the build directly exactly like so when building Mesa. We should probably ask the user to point at either the binary itself or the build directory.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v4 1/1] tools/generate_cb_buffer: Add script to assemble CB kernel
Quoted 80 lines · Petri Latvala
Quoted 4 lines · Akeem G Abodunrin
Quoted 3 lines
This patch adds script and applicable assembly sources, so that we can use igt to assemble Clear Batch Buffer kernel for gen7 and gen7.5 devices - Resultant header files would be imported to i915, and
used as they are...
Quoted 28 lines
Quoted 28 lines
With this patch, user need to have mesa configured on their platform, before igt could be used to achieve the purpose of assembling the kernel from source.
This is needed for "Security mitigation for Intel Gen7/7.5 HWs" Intel ID: PSIRT-TA-201910-001/CVEID: CVE-2019-14615
v2: Addressed formatting, -g option and other minor issues (Petri)
V3: Update script due to suggested changes in i915, and Mesa tool
v4: Update help comment with Mesa build option with meson (Petri)Cc Ville Syrjälä <[email protected]>Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Petri Latvala <[email protected]>Cc Bloomfield Jon <[email protected]>Signed-off-by Akeem G Abodunrin <[email protected]>--- scripts/asm_eu_kernel.sh | 153 ++++++++++++++++++++++++ tools/assembly_source/hsw_clear_buf.asm | 141 ++++++++++++++++++++++ tools/assembly_source/ivb_clear_buf.asm | 139 +++++++++++++++++++++ 3 files changed, 433 insertions(+) create mode 100755 scripts/asm_eu_kernel.sh create mode 100644 tools/assembly_source/hsw_clear_buf.asm create mode 100644 tools/assembly_source/ivb_clear_buf.asmQuoted 16 lines
Quoted 6 lines
scripts/asm_eu_kernel.sh new renamed from scripts/asm_eu_kernel.sh +0
-0file mode 100755 index 00000000..1958829c
scripts/asm_eu_kernel.sh new file +1
-0@@ -0,0 +1,153 @@ +#!/bin/bashscripts/asm_eu_kernel.sh line 11
Quoted 10 lines
scripts/asm_eu_kernel.sh new file +10
-0+# +# SPDX-License-Identifier: MIT +# +# Copyright © 2020 Intel Corporation # # Permission is hereby +granted, free of charge, to any person obtaining a # copy of this +software and associated documentation files (the "Software"), # to +deal in the Software without restriction, including without +limitation # the rights to use, copy, modify, merge, publish, +distribute, sublicense, # and/or sell copies of the Software, and +to permit persons to whom the # Software is furnished to do so, subjectto the following conditions:
Quoted 6 lines
scripts/asm_eu_kernel.sh line 17
Quoted 6 lines
scripts/asm_eu_kernel.sh new file +6
-0+# +# The above copyright notice and this permission notice (including +the next # paragraph) shall be included in all copies or +substantial portions of the # Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANYKIND,
Quoted 1 line
scripts/asm_eu_kernel.sh line 18
Quoted 1 line
scripts/asm_eu_kernel.sh new file +1
-0+EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THEWARRANTIES
Quoted 2 lines
scripts/asm_eu_kernel.sh line 20
Quoted 2 lines
scripts/asm_eu_kernel.sh new file +2
-0+OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS ORCOPYRIGHT
Quoted 2 lines
scripts/asm_eu_kernel.sh line 22
Quoted 2 lines
scripts/asm_eu_kernel.sh new file +2
-0+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING#
Quoted 1 line
scripts/asm_eu_kernel.sh line 23
Quoted 1 line
scripts/asm_eu_kernel.sh new file +1
-0+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USEOR OTHER DEALINGS # IN THE SOFTWARE.
Quoted 6 lines
scripts/asm_eu_kernel.sh
Quoted 6 lines
scripts/asm_eu_kernel.sh new file +6
-0+ +export ASSEMBLY_SOURCE=./tools/assembly_source + +function get_help { + echo "Usage: asm_eu_kernel.sh [options]" + echo "Note: hsw_clear_kernel.c/ivb_clear_kernel.c automaticallygenerated by this script should never be modified - it would be imported to i915, to use as it is..."
Quoted 2 lines
scripts/asm_eu_kernel.sh line 31
Quoted 2 lines
scripts/asm_eu_kernel.sh new file +2
-0+ echo " " + echo "Please make sure your Mesa tool is compiled with "-Dtools=intel" and "-Ddri-drivers=i965", and run this script from IGT source root directory"
Quoted 9 lines
Quoted 4 lines
scripts/asm_eu_kernel.sh
Quoted 4 lines
scripts/asm_eu_kernel.sh new file +4
-0+ echo " " + echo "Options are:" + echo " -h display this help message, and exit" + echo " -g=platform generation of device: use "hsw" forgen7.5, and "ivb" for gen7 devices"
Quoted 1 line
scripts/asm_eu_kernel.sh line 36
Quoted 1 line
scripts/asm_eu_kernel.sh new file +1
-0+ echo " -o=name_of_file output file to store Mesa assembled c-literal for the device - If none specified, default file will be used - ivb/hsw-
cb_assembled"Quoted 1 line
Quoted 1 line
scripts/asm_eu_kernel.sh new file +1
-0+ echo " -m=mesa Mesa source directory"
As pointed out here, user only specify Mesa source directory...
Quoted 14 lines
Quoted 5 lines
Quoted 5 lines
scripts/asm_eu_kernel.sh new file +5
-0+ esac +done +shift $(($OPTIND-1)) + +if [ "x$1" != "x" ]; thenQuoted 8 lines
scripts/asm_eu_kernel.sh line 131
Quoted 6 lines
scripts/asm_eu_kernel.sh new file +6
-0+ echo -e "Unknown option: $1\n" + get_help + exit 1 +fi + +I965_ASM="$mesa_dir/build/debug/src/intel/tools/i965_asm"Should this be $mesa_dir/build/src/intel/tools/i965_asm instead?
Quoted 3 lines
Both assume the user specied the build directly exactly like so when building Mesa. We should probably ask the user to point at either the binary itself or the build directory.
Yes, we could do that - but that would be a long "complex" command line option for the script 😊
May be we can check for various options where binary could be in the script - I don't know how many other build options Mesa has, but we know that this is common " src/intel/tools/i965_asm", what precedes that is the optional part now.
That being said, we can always update this script, especially if anything changes in Mesa - but since this address security issue, I honestly don't know how long we can afford to delay this, and other related patches.
Thanks,
~Akeem
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v4 1/1] tools/generate_cb_buffer: Add script to assemble CB kernel
In reply to Ville SyrjäläQuoted 172 lines · Ville Syrjälä
Quoted 162 lines · Petri Latvala
Quoted 161 lines · Akeem G Abodunrin
This patch adds script and applicable assembly sources, so that we can use igt to assemble Clear Batch Buffer kernel for gen7 and gen7.5 devices - Resultant header files would be imported to i915, and used as they are...
With this patch, user need to have mesa configured on their platform, before igt could be used to achieve the purpose of assembling the kernel from source.
This is needed for "Security mitigation for Intel Gen7/7.5 HWs" Intel ID: PSIRT-TA-201910-001/CVEID: CVE-2019-14615
v2: Addressed formatting, -g option and other minor issues (Petri)
V3: Update script due to suggested changes in i915, and Mesa tool
v4: Update help comment with Mesa build option with meson (Petri)Cc Ville Syrjälä <[email protected]>Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Petri Latvala <[email protected]>Cc Bloomfield Jon <[email protected]>Signed-off-by Akeem G Abodunrin <[email protected]>--- scripts/asm_eu_kernel.sh | 153 ++++++++++++++++++++++++ tools/assembly_source/hsw_clear_buf.asm | 141 ++++++++++++++++++++++ tools/assembly_source/ivb_clear_buf.asm | 139 +++++++++++++++++++++ 3 files changed, 433 insertions(+) create mode 100755 scripts/asm_eu_kernel.sh create mode 100644 tools/assembly_source/hsw_clear_buf.asm create mode 100644 tools/assembly_source/ivb_clear_buf.asmscripts/asm_eu_kernel.sh new file +125
-0@@ -0,0 +1,153 @@ +#!/bin/bash +# +# SPDX-License-Identifier: MIT +# +# Copyright © 2020 Intel Corporation +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +export ASSEMBLY_SOURCE=./tools/assembly_source + +function get_help { + echo "Usage: asm_eu_kernel.sh [options]" + echo "Note: hsw_clear_kernel.c/ivb_clear_kernel.c automatically generated by this script should never be modified - it would be imported to i915, to use as it is..." + echo " " + echo "Please make sure your Mesa tool is compiled with "-Dtools=intel" and "-Ddri-drivers=i965", and run this script from IGT source root directory" + echo " " + echo "Options are:" + echo " -h display this help message, and exit" + echo " -g=platform generation of device: use "hsw" for gen7.5, and "ivb" for gen7 devices" + echo " -o=name_of_file output file to store Mesa assembled c-literal for the device - If none specified, default file will be used - ivb/hsw-cb_assembled" + echo " -m=mesa Mesa source directory" + echo " " + echo " Usage example: \"scripts/asm_eu_kernel.sh -g hsw -o hsw_clear_buffer.h -m /path/to/Mesa/source/directory\"" +} + +function include_array # $1=array_name +{ + echo "static const u32 $(basename $1)_clear_kernel[] = {" +} +function prefix_header # $1=filename $2=comment +{ + array_name=$(include_array $1) + + cat <<EOF +// SPDX-License-Identifier: MIT +/* + * Copyright © 2020 Intel Corporation + * + * Generated by: IGT Gpu Tools on $(date) + */ + +$array_name +EOF +} + +function postfix_footer # filename +{ + cat <<EOF +}; +EOF +} + +function check_output_file #check output file +{ + if [ "x$output_file" != "x" ]; then + if [ -f "$output_file" ]; then + echo -e "Warning: The \"$output_file\" file already exist - choose another file\n" + get_help + exit 1 + fi + else + # It is okay to overwrite default file created + echo -e "Output file not specified - using default file \"$gen_device-cb_assembled\"\n" + output_file="$gen_device-cb_assembled" + fi +} +function asm_cb_kernel # as-root <args> +{ + check_output_file + + # Using i965_asm tool to assemble hex file from assembly source + $I965_ASM -g $gen_device -t c_literal $input_asm_source -o $output_file + + # Generate header file + if [ "$gen_device" == "hsw" ]; then + echo "Generating gen7.5 CB Kernel assembled file \"hsw_clear_kernel.c\" for i915 driver..." + + i915_filename=hsw_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + + elif [ "$gen_device" == "ivb" ]; then + echo "Generating gen7 CB Kernel assembled file \"ivb_clear_kernel.c\" for i915 driver..." + + i915_filename=ivb_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + fi +} + +while getopts "hg:o:m:" opt; do + case $opt in + h) get_help; exit 0;; + g) gen_device="$OPTARG" ;; + o) output_file="$OPTARG" ;; + m) mesa_dir="$OPTARG" ;; + \?) + echo -e "Unknown option: -$OPTARG\n" + get_help + exit 1 + ;; + esac +done +shift $(($OPTIND-1)) + +if [ "x$1" != "x" ]; thenQuoted 8 lines
scripts/asm_eu_kernel.sh line 131
Quoted 6 lines
scripts/asm_eu_kernel.sh new file +6
-0+ echo -e "Unknown option: $1\n" + get_help + exit 1 +fi + +I965_ASM="$mesa_dir/build/debug/src/intel/tools/i965_asm"Should this be $mesa_dir/build/src/intel/tools/i965_asm instead?
Quoted 3 lines
Both assume the user specied the build directly exactly like so when building Mesa. We should probably ask the user to point at either the binary itself or the build directory.
We could just say "assuming build directory name is 'build'", Mesa's build instructions recommend that.
Signature · 5 lines
Petri Latvala _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v4 1/1] tools/generate_cb_buffer: Add script to assemble CB kernel
Quoted 173 lines · Petri Latvala
Quoted 172 lines · Ville Syrjälä
Quoted 170 lines · Petri Latvala
Quoted 157 lines · Akeem G Abodunrin
This patch adds script and applicable assembly sources, so that we can use igt to assemble Clear Batch Buffer kernel for gen7 and gen7.5 devices - Resultant header files would be imported to i915, and used as they are...
With this patch, user need to have mesa configured on their platform, before igt could be used to achieve the purpose of assembling the kernel from source.
This is needed for "Security mitigation for Intel Gen7/7.5 HWs" Intel ID: PSIRT-TA-201910-001/CVEID: CVE-2019-14615
v2: Addressed formatting, -g option and other minor issues (Petri)
V3: Update script due to suggested changes in i915, and Mesa tool
v4: Update help comment with Mesa build option with meson (Petri)Cc Ville Syrjälä <[email protected]>Cc Jani Nikula <[email protected]>Cc Joonas Lahtinen <[email protected]>Cc Petri Latvala <[email protected]>Cc Bloomfield Jon <[email protected]>Signed-off-by Akeem G Abodunrin <[email protected]>--- scripts/asm_eu_kernel.sh | 153 ++++++++++++++++++++++++ tools/assembly_source/hsw_clear_buf.asm | 141 ++++++++++++++++++++++ tools/assembly_source/ivb_clear_buf.asm | 139 +++++++++++++++++++++ 3 files changed, 433 insertions(+) create mode 100755 scripts/asm_eu_kernel.sh create mode 100644 tools/assembly_source/hsw_clear_buf.asm create mode 100644 tools/assembly_source/ivb_clear_buf.asmscripts/asm_eu_kernel.sh new file +121
-0@@ -0,0 +1,153 @@ +#!/bin/bash +# +# SPDX-License-Identifier: MIT +# +# Copyright © 2020 Intel Corporation +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +export ASSEMBLY_SOURCE=./tools/assembly_source + +function get_help { + echo "Usage: asm_eu_kernel.sh [options]" + echo "Note: hsw_clear_kernel.c/ivb_clear_kernel.c automatically generated by this script should never be modified - it would be imported to i915, to use as it is..." + echo " " + echo "Please make sure your Mesa tool is compiled with "-Dtools=intel" and "-Ddri-drivers=i965", and run this script from IGT source root directory" + echo " " + echo "Options are:" + echo " -h display this help message, and exit" + echo " -g=platform generation of device: use "hsw" for gen7.5, and "ivb" for gen7 devices" + echo " -o=name_of_file output file to store Mesa assembled c-literal for the device - If none specified, default file will be used - ivb/hsw-cb_assembled" + echo " -m=mesa Mesa source directory" + echo " " + echo " Usage example: \"scripts/asm_eu_kernel.sh -g hsw -o hsw_clear_buffer.h -m /path/to/Mesa/source/directory\"" +} + +function include_array # $1=array_name +{ + echo "static const u32 $(basename $1)_clear_kernel[] = {" +} +function prefix_header # $1=filename $2=comment +{ + array_name=$(include_array $1) + + cat <<EOF +// SPDX-License-Identifier: MIT +/* + * Copyright © 2020 Intel Corporation + * + * Generated by: IGT Gpu Tools on $(date) + */ + +$array_name +EOF +} + +function postfix_footer # filename +{ + cat <<EOF +}; +EOF +} + +function check_output_file #check output file +{ + if [ "x$output_file" != "x" ]; then + if [ -f "$output_file" ]; then + echo -e "Warning: The \"$output_file\" file already exist - choose another file\n" + get_help + exit 1 + fi + else + # It is okay to overwrite default file created + echo -e "Output file not specified - using default file \"$gen_device-cb_assembled\"\n" + output_file="$gen_device-cb_assembled" + fi +} +function asm_cb_kernel # as-root <args> +{ + check_output_file + + # Using i965_asm tool to assemble hex file from assembly source + $I965_ASM -g $gen_device -t c_literal $input_asm_source -o $output_file + + # Generate header file + if [ "$gen_device" == "hsw" ]; then + echo "Generating gen7.5 CB Kernel assembled file \"hsw_clear_kernel.c\" for i915 driver..." + + i915_filename=hsw_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + + elif [ "$gen_device" == "ivb" ]; then + echo "Generating gen7 CB Kernel assembled file \"ivb_clear_kernel.c\" for i915 driver..." + + i915_filename=ivb_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + fi +} + +while getopts "hg:o:m:" opt; do + case $opt in + h) get_help; exit 0;; + g) gen_device="$OPTARG" ;; + o) output_file="$OPTARG" ;; + m) mesa_dir="$OPTARG" ;; + \?) + echo -e "Unknown option: -$OPTARG\n" + get_help + exit 1 + ;; + esacscripts/asm_eu_kernel.sh line 131
Quoted 10 lines
scripts/asm_eu_kernel.sh new file +10
-0+done +shift $(($OPTIND-1)) + +if [ "x$1" != "x" ]; then + echo -e "Unknown option: $1\n" + get_help + exit 1 +fi + +I965_ASM="$mesa_dir/build/debug/src/intel/tools/i965_asm"Should this be $mesa_dir/build/src/intel/tools/i965_asm instead?
Quoted 6 lines
Quoted 3 lines
Both assume the user specied the build directly exactly like so when building Mesa. We should probably ask the user to point at either the binary itself or the build directory.
We could just say "assuming build directory name is 'build'", Mesa's build instructions recommend that.
Only works for people who have just a single build directory, and who read the noob docs. So mostly normal users that have no use for the assembler in the first place. Developers are much more likely to have several build directories.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v4 1/1] tools/generate_cb_buffer: Add script to assemble CB kernel
In reply to Petri LatvalaQuoted 131 lines
scripts/asm_eu_kernel.sh
Quoted 5 lines
scripts/asm_eu_kernel.sh new file +5
-0+export ASSEMBLY_SOURCE=./tools/assembly_source + +function get_help { + echo "Usage: asm_eu_kernel.sh [options]" + echo "Note: hsw_clear_kernel.c/ivb_clear_kernel.c automaticallygenerated by this script should never be modified - it would be imported to i915, to use as it is..."
Review
Quoted 2 lines
(quoted diff) +2
-0+ echo " " + echo "Please make sure your Mesa tool is compiled with "-Dtools=intel" and "-Ddri-drivers=i965", and run this script from IGT source root directory"
scripts/asm_eu_kernel.sh
Quoted 4 lines
scripts/asm_eu_kernel.sh new file +4
-0+ echo " " + echo "Options are:" + echo " -h display this help message, and exit" + echo " -g=platform generation of device: use "hsw" for gen7.5,and "ivb" for gen7 devices"
Quoted 1 line
+ echo " -o=name_of_file output file to store Mesa assembled c-
literal for the device - If none specified, default file will be used - ivb/hsw-
cb_assembled"scripts/asm_eu_kernel.sh
Quoted 3 lines
scripts/asm_eu_kernel.sh new file +3
-0+ echo " -m=mesa Mesa source directory" + echo " " + echo " Usage example: \"scripts/asm_eu_kernel.sh -g hsw -o
hsw_clear_buffer.h-m /path/to/Mesa/source/directory\""Quoted 20 lines
scripts/asm_eu_kernel.sh new file +20
-0+} + +function include_array # $1=array_name { + echo "static const u32 $(basename $1)_clear_kernel[] = {" +} +function prefix_header # $1=filename $2=comment { + array_name=$(include_array $1) + + cat <<EOF +// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2020 Intel Corporation + * + * Generated by: IGT Gpu Tools on $(date) */ + +$array_name +EOF +} + +function postfix_footer # filenamescripts/asm_eu_kernel.sh
Quoted 10 lines
scripts/asm_eu_kernel.sh new file +10
-0+{ + cat <<EOF +}; +EOF +} + +function check_output_file #check output file { + if [ "x$output_file" != "x" ]; then + if [ -f "$output_file" ]; then + echo -e "Warning: The \"$output_file\" file already exist -choose another file\n"
scripts/asm_eu_kernel.sh
Quoted 6 lines
scripts/asm_eu_kernel.sh new file +6
-0+ get_help + exit 1 + fi + else + # It is okay to overwrite default file created + echo -e "Output file not specified - using default file\"$gen_device-cb_assembled\"\n"
scripts/asm_eu_kernel.sh
Quoted 13 lines
scripts/asm_eu_kernel.sh new file +13
-0+ output_file="$gen_device-cb_assembled" + fi +} +function asm_cb_kernel # as-root <args> { + check_output_file + + # Using i965_asm tool to assemble hex file from assembly source + $I965_ASM -g $gen_device -t c_literal $input_asm_source -o + $output_file + + # Generate header file + if [ "$gen_device" == "hsw" ]; then + echo "Generating gen7.5 CB Kernel assembled file\"hsw_clear_kernel.c\" for i915 driver..."
scripts/asm_eu_kernel.sh
Quoted 8 lines
scripts/asm_eu_kernel.sh new file +8
-0+ + i915_filename=hsw_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + + elif [ "$gen_device" == "ivb" ]; then + echo "Generating gen7 CB Kernel assembled file\"ivb_clear_kernel.c\" for i915 driver..."
Quoted 20 lines
scripts/asm_eu_kernel.sh new file +20
-0+ + i915_filename=ivb_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + fi +} + +while getopts "hg:o:m:" opt; do + case $opt in + h) get_help; exit 0;; + g) gen_device="$OPTARG" ;; + o) output_file="$OPTARG" ;; + m) mesa_dir="$OPTARG" ;; + \?) + echo -e "Unknown option: -$OPTARG\n" + get_help + exit 1 + ;; + esacscripts/asm_eu_kernel.sh line 131
Quoted 10 lines
scripts/asm_eu_kernel.sh new file +10
-0+done +shift $(($OPTIND-1)) + +if [ "x$1" != "x" ]; then + echo -e "Unknown option: $1\n" + get_help + exit 1 +fi + +I965_ASM="$mesa_dir/build/debug/src/intel/tools/i965_asm"Should this be $mesa_dir/build/src/intel/tools/i965_asm instead?
After changing that I get
# scripts/asm_eu_kernel.sh -m ~/src/mesa -ghsw Output file not specified - using default file "hsw-cb_assembled"
./tools/assembly_source/hsw_clear_buf.asm: 71: syntax error at "<" Generating gen7.5 CB Kernel assembled file "hsw_clear_kernel.c" for i915 driver...And then 'hsw-cb_assembled' is an empty file, '
hsw_clear_kernel.c' contains an empty array but the script exited with success...
Quoted 7 lines
Line 71 in the asm is
shr(1) g3<1>D sr0<0,1,0>D 12D { align1 1N };--
Petri Latvala
Yes, that is true - I might have forgotten to mention in the cover letter that changes to Mesa might have not been merged yet, albeit I mentioned that " The changes in the IGT GPU tool require latest Mesa tool to work correctly" So, without new changes to assembler/disassembler in the Mesa tool, you will see those error messages.
Regards,
~Akeem
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v4 1/1] tools/generate_cb_buffer: Add script to assemble CB kernel
Quoted 131 lines · Akeem G
Quoted 131 lines
scripts/asm_eu_kernel.sh
Quoted 5 lines
scripts/asm_eu_kernel.sh new file +5
-0+export ASSEMBLY_SOURCE=./tools/assembly_source + +function get_help { + echo "Usage: asm_eu_kernel.sh [options]" + echo "Note: hsw_clear_kernel.c/ivb_clear_kernel.c automaticallygenerated by this script should never be modified - it would be imported to i915, to use as it is..."
Review
Quoted 2 lines
(quoted diff) +2
-0+ echo " " + echo "Please make sure your Mesa tool is compiled with "-Dtools=intel" and "-Ddri-drivers=i965", and run this script from IGT source root directory"
scripts/asm_eu_kernel.sh
Quoted 4 lines
scripts/asm_eu_kernel.sh new file +4
-0+ echo " " + echo "Options are:" + echo " -h display this help message, and exit" + echo " -g=platform generation of device: use "hsw" for gen7.5,and "ivb" for gen7 devices"
Quoted 1 line
+ echo " -o=name_of_file output file to store Mesa assembled c-
literal for the device - If none specified, default file will be used - ivb/hsw-
cb_assembled"scripts/asm_eu_kernel.sh
Quoted 3 lines
scripts/asm_eu_kernel.sh new file +3
-0+ echo " -m=mesa Mesa source directory" + echo " " + echo " Usage example: \"scripts/asm_eu_kernel.sh -g hsw -o
hsw_clear_buffer.h-m /path/to/Mesa/source/directory\""Quoted 20 lines
scripts/asm_eu_kernel.sh new file +20
-0+} + +function include_array # $1=array_name { + echo "static const u32 $(basename $1)_clear_kernel[] = {" +} +function prefix_header # $1=filename $2=comment { + array_name=$(include_array $1) + + cat <<EOF +// SPDX-License-Identifier: MIT +/* + * Copyright (c) 2020 Intel Corporation + * + * Generated by: IGT Gpu Tools on $(date) */ + +$array_name +EOF +} + +function postfix_footer # filenamescripts/asm_eu_kernel.sh
Quoted 10 lines
scripts/asm_eu_kernel.sh new file +10
-0+{ + cat <<EOF +}; +EOF +} + +function check_output_file #check output file { + if [ "x$output_file" != "x" ]; then + if [ -f "$output_file" ]; then + echo -e "Warning: The \"$output_file\" file already exist -choose another file\n"
scripts/asm_eu_kernel.sh
Quoted 6 lines
scripts/asm_eu_kernel.sh new file +6
-0+ get_help + exit 1 + fi + else + # It is okay to overwrite default file created + echo -e "Output file not specified - using default file\"$gen_device-cb_assembled\"\n"
scripts/asm_eu_kernel.sh
Quoted 13 lines
scripts/asm_eu_kernel.sh new file +13
-0+ output_file="$gen_device-cb_assembled" + fi +} +function asm_cb_kernel # as-root <args> { + check_output_file + + # Using i965_asm tool to assemble hex file from assembly source + $I965_ASM -g $gen_device -t c_literal $input_asm_source -o + $output_file + + # Generate header file + if [ "$gen_device" == "hsw" ]; then + echo "Generating gen7.5 CB Kernel assembled file\"hsw_clear_kernel.c\" for i915 driver..."
scripts/asm_eu_kernel.sh
Quoted 8 lines
scripts/asm_eu_kernel.sh new file +8
-0+ + i915_filename=hsw_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + + elif [ "$gen_device" == "ivb" ]; then + echo "Generating gen7 CB Kernel assembled file\"ivb_clear_kernel.c\" for i915 driver..."
Quoted 20 lines
scripts/asm_eu_kernel.sh new file +20
-0+ + i915_filename=ivb_clear_kernel.c + prefix_header $gen_device > $i915_filename + cat $output_file >> $i915_filename + postfix_footer $i915_filename >> $i915_filename + fi +} + +while getopts "hg:o:m:" opt; do + case $opt in + h) get_help; exit 0;; + g) gen_device="$OPTARG" ;; + o) output_file="$OPTARG" ;; + m) mesa_dir="$OPTARG" ;; + \?) + echo -e "Unknown option: -$OPTARG\n" + get_help + exit 1 + ;; + esacscripts/asm_eu_kernel.sh line 131
Quoted 10 lines
scripts/asm_eu_kernel.sh new file +10
-0+done +shift $(($OPTIND-1)) + +if [ "x$1" != "x" ]; then + echo -e "Unknown option: $1\n" + get_help + exit 1 +fi + +I965_ASM="$mesa_dir/build/debug/src/intel/tools/i965_asm"Should this be $mesa_dir/build/src/intel/tools/i965_asm instead?
After changing that I get
# scripts/asm_eu_kernel.sh -m ~/src/mesa -ghsw Output file not specified - using default file "hsw-cb_assembled"
./tools/assembly_source/hsw_clear_buf.asm: 71: syntax error at "<" Generating gen7.5 CB Kernel assembled file "hsw_clear_kernel.c" for i915 driver...And then 'hsw-cb_assembled' is an empty file, '
hsw_clear_kernel.c' contains an empty array but the script exited with success...
Quoted 8 lines
Quoted 7 lines
Line 71 in the asm is
shr(1) g3<1>D sr0<0,1,0>D 12D { align1 1N };--
Petri LatvalaYes, that is true - I might have forgotten to mention in the cover letter that changes to Mesa might have not been merged yet, albeit I mentioned that " The changes in the IGT GPU tool require latest Mesa tool to work correctly" So, without new changes to assembler/disassembler in the Mesa tool, you will see those error messages.
Do you have a MR link so I could test the script?
Signature · 5 lines
Petri Latvala _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for Support to assemble CB kernel for gen7 (rev3)
In reply to Akeem G Abodunrin== Series Details ==
== Series Details ==
Series: Support to assemble CB kernel for gen7 (rev3)
URL : https://patchwork.freedesktop.org/series/73684/
State : success
== Summary ==
CI Bug Log - changes from IGT_5458 -> IGTPW_4212
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/index.html
Known issues
------------
Here are the changes found in IGTPW_4212 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_mmap_gtt@basic:
- fi-tgl-y: [PASS][1] -> [DMESG-WARN][2] ([CI#94] / [i915#402]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-tgl-y/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-tgl-y/igt@[email protected]
* igt@i915_selftest@live_gem_contexts:
- fi-hsw-peppy: [PASS][3] -> [DMESG-FAIL][4] ([i915#722])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-hsw-peppy/igt@i915_selftest@live_gem_contexts.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-hsw-peppy/igt@i915_selftest@live_gem_contexts.html
- fi-cml-s: [PASS][5] -> [DMESG-FAIL][6] ([i915#877])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-cml-s/igt@i915_selftest@live_gem_contexts.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-cml-s/igt@i915_selftest@live_gem_contexts.html
* igt@i915_selftest@live_sanitycheck:
- fi-icl-u3: [PASS][7] -> [DMESG-WARN][8] ([i915#585])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-icl-u3/igt@i915_selftest@live_sanitycheck.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-icl-u3/igt@i915_selftest@live_sanitycheck.html
* igt@kms_chamelium@dp-edid-read:
- fi-cml-u2: [PASS][9] -> [FAIL][10] ([i915#217] / [i915#976])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-cml-u2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-cml-u2/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][11] -> [FAIL][12] ([fdo#111096] / [i915#323])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-kbl-7500u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-kbl-7500u/igt@[email protected]
#### Possible fixes ####
* igt@gem_close_race@basic-threads:
- fi-byt-n2820: [INCOMPLETE][13] ([i915#45]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-byt-n2820/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-byt-n2820/igt@[email protected]
- fi-hsw-4770: [TIMEOUT][15] ([fdo#112271] / [i915#1084]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-hsw-4770/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-hsw-4770/igt@[email protected]
* igt@gem_exec_suspend@basic-s4-devices:
- fi-tgl-y: [FAIL][17] ([CI#94]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-tgl-y/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-tgl-y/igt@[email protected]
* igt@i915_selftest@live_gem_contexts:
- fi-cfl-guc: [DMESG-FAIL][19] ([i915#623]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-cfl-guc/igt@i915_selftest@live_gem_contexts.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-cfl-guc/igt@i915_selftest@live_gem_contexts.html
* igt@i915_selftest@live_gtt:
- fi-kbl-7500u: [TIMEOUT][21] ([fdo#112271]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-kbl-7500u/igt@i915_selftest@live_gtt.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-kbl-7500u/igt@i915_selftest@live_gtt.html
- fi-skl-6600u: [TIMEOUT][23] ([fdo#111732] / [fdo#112271]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-skl-6600u/igt@i915_selftest@live_gtt.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-skl-6600u/igt@i915_selftest@live_gtt.html
* igt@kms_addfb_basic@addfb25-y-tiled:
- fi-tgl-y: [DMESG-WARN][25] ([CI#94] / [i915#402]) -> [PASS][26] +1 similar issue
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-tgl-y/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-tgl-y/igt@[email protected]
#### Warnings ####
* igt@amdgpu/amd_prime@amd-to-i915:
- fi-icl-u3: [SKIP][27] ([fdo#109315] / [i915#585]) -> [SKIP][28] ([fdo#109315])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/fi-icl-u3/igt@amdgpu/[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/fi-icl-u3/igt@amdgpu/[email protected]
[CI#94]: https://gitlab.freedesktop.org/gfx-ci/i915-infra/issues/94
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#111732]: https://bugs.freedesktop.org/show_bug.cgi?id=111732
[fdo#112271]: https://bugs.freedesktop.org/show_bug.cgi?id=112271
[i915#1084]: https://gitlab.freedesktop.org/drm/intel/issues/1084
[i915#217]: https://gitlab.freedesktop.org/drm/intel/issues/217
[i915#323]: https://gitlab.freedesktop.org/drm/intel/issues/323
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402
[i915#45]: https://gitlab.freedesktop.org/drm/intel/issues/45
[i915#585]: https://gitlab.freedesktop.org/drm/intel/issues/585
[i915#623]: https://gitlab.freedesktop.org/drm/intel/issues/623
[i915#722]: https://gitlab.freedesktop.org/drm/intel/issues/722
[i915#877]: https://gitlab.freedesktop.org/drm/intel/issues/877
[i915#976]: https://gitlab.freedesktop.org/drm/intel/issues/976
Participating hosts (53 -> 44)
------------------------------
Missing (9): fi-ilk-m540 fi-hsw-4200u fi-skl-6770hq fi-bdw-gvtdvm fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5458 -> IGTPW_4212
CI-20190529: 20190529
CI_DRM_7982: f02659605b48dcabb562bbb96db2996b334e57fd @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4212: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/index.html
IGT_5458: 5f7e4ae6a91ed2c104593b8abd5b71a6cc96fc10 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for Support to assemble CB kernel for gen7 (rev3)
In reply to Akeem G Abodunrin== Series Details ==
== Series Details ==
Series: Support to assemble CB kernel for gen7 (rev3)
URL : https://patchwork.freedesktop.org/series/73684/
State : failure
== Summary ==
CI Bug Log - changes from IGT_5458_full -> IGTPW_4212_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_4212_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_4212_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_4212_full:
### IGT changes ###
#### Possible regressions ####
* igt@perf@invalid-remove-userspace-config:
- shard-iclb: [PASS][1] -> [SKIP][2] +4 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb1/igt@[email protected]
#### Warnings ####
* igt@perf@gen12-mi-rpc:
- shard-tglb: [TIMEOUT][3] ([fdo#112271] / [i915#1085]) -> [SKIP][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-tglb6/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-tglb6/igt@[email protected]
* igt@perf@unprivileged-single-ctx-counters:
- shard-iclb: [SKIP][5] ([fdo#109289]) -> [SKIP][6] +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb2/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@kms_hdr@bpc-switch-suspend}:
- shard-iclb: [PASS][7] -> [INCOMPLETE][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb4/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb3/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_4212_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_busy@busy-vcs1:
- shard-iclb: [PASS][9] -> [SKIP][10] ([fdo#112080]) +10 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb4/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb6/igt@[email protected]
* igt@gem_ctx_isolation@rcs0-s3:
- shard-kbl: [PASS][11] -> [DMESG-WARN][12] ([i915#180]) +1 similar issue
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-kbl2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-kbl1/igt@[email protected]
- shard-apl: [PASS][13] -> [DMESG-WARN][14] ([i915#180]) +2 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-apl6/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-apl4/igt@[email protected]
* igt@gem_ctx_shared@exec-single-timeline-bsd:
- shard-iclb: [PASS][15] -> [SKIP][16] ([fdo#110841])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb6/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb1/igt@[email protected]
* igt@gem_exec_schedule@reorder-wide-bsd:
- shard-iclb: [PASS][17] -> [SKIP][18] ([fdo#112146]) +7 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb8/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb2/igt@[email protected]
* igt@gem_ppgtt@flink-and-close-vma-leak:
- shard-apl: [PASS][19] -> [FAIL][20] ([i915#644])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-apl2/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-apl3/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- shard-glk: [PASS][21] -> [DMESG-WARN][22] ([i915#716])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-glk8/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-glk3/igt@[email protected]
* igt@i915_pm_dc@dc5-dpms:
- shard-iclb: [PASS][23] -> [FAIL][24] ([i915#447])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb8/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb3/igt@[email protected]
* igt@i915_pm_rpm@system-suspend-execbuf:
- shard-kbl: [PASS][25] -> [DMESG-WARN][26] ([i915#56])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-kbl2/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-kbl3/igt@[email protected]
* igt@i915_selftest@live_gt_lrc:
- shard-tglb: [PASS][27] -> [INCOMPLETE][28] ([i915#1233])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-tglb3/igt@i915_selftest@live_gt_lrc.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-tglb3/igt@i915_selftest@live_gt_lrc.html
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-apl: [PASS][29] -> [INCOMPLETE][30] ([fdo#103927])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-apl3/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-apl3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-blt:
- shard-tglb: [PASS][31] -> [SKIP][32] ([i915#668]) +6 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-tglb3/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-blt.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-tglb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-blt.html
* igt@kms_psr@psr2_primary_blt:
- shard-iclb: [PASS][33] -> [SKIP][34] ([fdo#109441])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb2/igt@kms_psr@psr2_primary_blt.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb3/igt@kms_psr@psr2_primary_blt.html
* igt@perf@invalid-oa-metric-set-id:
- shard-tglb: [PASS][35] -> [SKIP][36] ([fdo#112172]) +4 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-tglb7/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-tglb1/igt@[email protected]
* igt@prime_vgem@fence-wait-bsd2:
- shard-iclb: [PASS][37] -> [SKIP][38] ([fdo#109276]) +15 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb2/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb7/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_schedule@fifo-bsd1:
- shard-iclb: [SKIP][39] ([fdo#109276]) -> [PASS][40] +14 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb7/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb1/igt@[email protected]
* {igt@gem_exec_schedule@implicit-both-bsd}:
- shard-iclb: [SKIP][41] ([i915#677]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb1/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb5/igt@[email protected]
* {igt@gem_exec_schedule@implicit-both-bsd2}:
- shard-iclb: [SKIP][43] ([fdo#109276] / [i915#677]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb8/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb4/igt@[email protected]
* igt@gem_exec_schedule@preemptive-hang-bsd:
- shard-iclb: [SKIP][45] ([fdo#112146]) -> [PASS][46] +2 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb2/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb5/igt@[email protected]
* igt@gem_ppgtt@flink-and-close-vma-leak:
- shard-kbl: [FAIL][47] ([i915#644]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-kbl3/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-kbl6/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][49] ([i915#454]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb6/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb1/igt@[email protected]
* igt@i915_pm_rps@waitboost:
- shard-iclb: [FAIL][51] ([i915#413]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb8/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb3/igt@[email protected]
* igt@i915_suspend@debugfs-reader:
- shard-kbl: [DMESG-WARN][53] ([i915#180]) -> [PASS][54] +3 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-kbl1/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-kbl6/igt@[email protected]
* igt@kms_color@pipe-a-ctm-0-25:
- shard-tglb: [FAIL][55] ([i915#1149] / [i915#315]) -> [PASS][56]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-tglb3/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-tglb7/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-glk: [FAIL][57] ([i915#79]) -> [PASS][58] +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-glk2/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-glk9/igt@[email protected]
* igt@kms_flip@flip-vs-rmfb:
- shard-apl: [DMESG-WARN][59] ([i915#1297]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-apl2/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-apl4/igt@[email protected]
- shard-kbl: [DMESG-WARN][61] ([i915#1297]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-kbl7/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-kbl6/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-render:
- shard-tglb: [SKIP][63] ([i915#668]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-tglb1/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-render.html
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-tglb2/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-render.html
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-glk: [FAIL][65] ([i915#899]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-glk6/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-glk8/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [SKIP][67] ([fdo#109441]) -> [PASS][68] +2 similar issues
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb4/igt@kms_psr@psr2_sprite_plane_move.html
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-apl: [DMESG-WARN][69] ([i915#180]) -> [PASS][70] +2 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-apl6/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-apl6/igt@[email protected]
* igt@perf@missing-sample-flags:
- shard-iclb: [SKIP][71] -> [PASS][72] +4 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb4/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb3/igt@[email protected]
* igt@perf@non-sampling-read-error:
- shard-tglb: [SKIP][73] ([fdo#112172]) -> [PASS][74] +3 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-tglb7/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-tglb2/igt@[email protected]
* igt@perf_pmu@init-busy-vcs1:
- shard-iclb: [SKIP][75] ([fdo#112080]) -> [PASS][76] +10 similar issues
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb7/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb4/igt@[email protected]
* igt@sw_sync@sync_multi_producer_single_consumer:
- shard-iclb: [TIMEOUT][77] ([fdo#112271]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb1/igt@sw_sync@sync_multi_producer_single_consumer.html
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb6/igt@sw_sync@sync_multi_producer_single_consumer.html
#### Warnings ####
* igt@gem_ctx_isolation@vcs1-nonpriv-switch:
- shard-iclb: [SKIP][79] ([fdo#112080]) -> [FAIL][80] ([IGT#28])
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-iclb8/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-iclb4/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy-gup:
- shard-snb: [DMESG-WARN][81] ([fdo#111870] / [i915#478]) -> [DMESG-WARN][82] ([fdo#110789] / [fdo#111870] / [i915#478])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-snb1/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-snb2/igt@[email protected]
* igt@perf@gen8-unprivileged-single-ctx-counters:
- shard-tglb: [SKIP][83] ([fdo#112172]) -> [SKIP][84] ([fdo#109289])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-tglb7/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-tglb8/igt@[email protected]
* igt@perf@unprivileged-single-ctx-counters:
- shard-tglb: [SKIP][85] ([fdo#109289]) -> [SKIP][86] ([fdo#112172])
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5458/shard-tglb6/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/shard-tglb6/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#28]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/28
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110789]: https://bugs.freedesktop.org/show_bug.cgi?id=110789
[fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841
[fdo#111870]: https://bugs.freedesktop.org/show_bug.cgi?id=111870
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[fdo#112146]: https://bugs.freedesktop.org/show_bug.cgi?id=112146
[fdo#112172]: https://bugs.freedesktop.org/show_bug.cgi?id=112172
[fdo#112271]: https://bugs.freedesktop.org/show_bug.cgi?id=112271
[i915#1085]: https://gitlab.freedesktop.org/drm/intel/issues/1085
[i915#1149]: https://gitlab.freedesktop.org/drm/intel/issues/1149
[i915#1233]: https://gitlab.freedesktop.org/drm/intel/issues/1233
[i915#1297]: https://gitlab.freedesktop.org/drm/intel/issues/1297
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#413]: https://gitlab.freedesktop.org/drm/intel/issues/413
[i915#447]: https://gitlab.freedesktop.org/drm/intel/issues/447
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#478]: https://gitlab.freedesktop.org/drm/intel/issues/478
[i915#56]: https://gitlab.freedesktop.org/drm/intel/issues/56
[i915#644]: https://gitlab.freedesktop.org/drm/intel/issues/644
[i915#668]: https://gitlab.freedesktop.org/drm/intel/issues/668
[i915#677]: https://gitlab.freedesktop.org/drm/intel/issues/677
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#899]: https://gitlab.freedesktop.org/drm/intel/issues/899
Participating hosts (8 -> 8)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5458 -> IGTPW_4212
CI-20190529: 20190529
CI_DRM_7982: f02659605b48dcabb562bbb96db2996b334e57fd @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4212: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/index.html
IGT_5458: 5f7e4ae6a91ed2c104593b8abd5b71a6cc96fc10 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4212/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev