Adding gpgpu_fill and media_fill on TGL
cover Adding gpgpu_fill and media_fill on TGL
Patches add media_fill and gpgpu_fill functions on TGL.
v2: Switched to IS_GEN12 macro.
Katarzyna Dec (3):
lib/gpgpu_fill/tgl: Implement gpgpu_fillfunc for TGL lib/media_fill/tgl: Implement media_fillfunc for TGL
HAX: run gpgpu_fill and media_fill in BAT
lib/gpgpu_fill.c | 22 ++++++++++++++++ lib/gpgpu_fill.h | 7 ++++++ lib/i915/shaders/README | 2 ++ lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm | 12 +++++++++ lib/i915/shaders/media/gen12_media_kernel.asm | 13 ++++++++++ lib/intel_batchbuffer.c | 6 ++++- lib/media_fill.c | 25 +++++++++++++++++++ lib/media_fill.h | 7 ++++++ tests/intel-ci/fast-feedback.testlist | 3 ++- 9 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm create mode 100644 lib/i915/shaders/media/gen12_media_kernel.asm
Signature · 6 lines
2.20.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 1/3 lib/gpgpu_fill/tgl: Implement gpgpu_fillfunc for TGL
Adding gen12_gpgpu_fillfunc to have gpgpu_fill running on TGL. Gpgpu shader was generated using IGA (Intel Graphics Assembler) based on Gen11 binary adding necessary SWSB dependencies and changes in SEND instruction.
Shader source code and array containing its assembled version have same names now to avoid ambiguity.
v2: Switched to using IS_GEN12
--- lib/gpgpu_fill.c | 22 +++++++++++++++++++ lib/gpgpu_fill.h | 7 ++++++ lib/i915/shaders/README | 2 ++ lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm | 12 ++++++++++ lib/intel_batchbuffer.c | 2 ++ 5 files changed, 45 insertions(+) create mode 100644 lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm
lib/gpgpu_fill.c +22 -0
@@ -87,6 +87,19 @@ static const uint32_t gen11_gpgpu_kernel[][4] = { { 0x07800031, 0x20000a40, 0x06000e00, 0x82000010 }, }; +static const uint32_t gen12_gpgpu_kernel[][4 ] = { + {0x00020061 ,0x01050000 ,0x00000104 ,0x00000000 }, + {0x00000069 ,0x02058220 ,0x02000024 ,0x00000004 }, + {0x00000061 ,0x02250220 ,0x000000c4 ,0x00000000 }, + {0x00030061 ,0x04050220 ,0x00460005 ,0x00000000 }, + {0x00010261 ,0x04050220 ,0x00220205 ,0x00000000 }, + {0x00000061 ,0x04454220 ,0x00000000 ,0x0000000f }, + {0x00040661 ,0x05050220 ,0x00000104 ,0x00000000 }, + {0x00049031 ,0x00000000 ,0xc0000414 ,0x02a00000 }, + {0x00030061 ,0x70050220 ,0x00460005 ,0x00000000 }, + {0x00040131 ,0x00000004 ,0x7020700c ,0x10000000 }, +}; +/* * This sets up the gpgpu pipeline, *
@@ -282,3 +295,12 @@ void gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch,__gen9_gpgpu_fillfunc (batch, dst, x, y, width, height, color, gen11_gpgpu_kernel,sizeof (gen11_gpgpu_kernel)); } +void gen12_gpgpu_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color) +{ +__gen9_gpgpu_fillfunc (batch, dst, x, y, width, height, color, + gen12_gpgpu_kernel,sizeof (gen12_gpgpu_kernel)); +}
lib/gpgpu_fill.h +7 -0
@@ -57,4 +57,11 @@ gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, unsigned int width, unsigned int height, uint8_t color); +void +gen12_gpgpu_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color); +#endif /* GPGPU_FILL_H */
lib/i915/shaders/README +2 -0
@@ -23,3 +23,5 @@ Commands used to generate the shader on gen8 $> m4 media_fill.gxa > media_fill.gxm $> intel-gen4asm -g 8 -o <output> media_fill.gxm +Gen11+ shader is generated using IGA (Intel Graphics Assembler). +Binary can no longer be generated using intel-gen4asm.
lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm new file +12 -0
@@ -0,0 +1,12 @@ +L0: + mov (4|M0) r1.0<1>:ub r1.0<0;1,0>:ub + shl (1|M0) r2.0<1>:ud r0.1<0;1,0>:ud 0x4:ud + mov (1|M0) r2.1<1>:ud r0.6<0;1,0>:ud + mov (8|M0) r4.0<1>:ud r0.0<8;8,1>:ud + mov (2|M0) r4.0<1>:ud r2.0<2;2,1>:ud {@2} + mov (1|M0) r4.2<1>:ud 0xF:ud + mov (16|M0) r5.0<1>:ud r1.0<0;1,0>:ud {@6} + send.dc1 (16|M0) null r4 null 0x0 0x40A8000 {@1, $0} // wr:2h+0, rd:0, Media Block Write msc:0, to #0 + mov (8|M0) r112.0<1>:ud r0.0<8;8,1>:ud + send.ts (16|M0) null r112 null 0x10000000 0x2000010 {EOT, @1} // wr:1+0, rd:0, fc: 0x10 +L160:
lib/intel_batchbuffer.c +2 -0
@@ -901,6 +901,8 @@ igt_fillfunc_t igt_get_gpgpu_fillfunc(int devid) fill = gen9_gpgpu_fillfunc; else if (IS_GEN11(devid)) fill = gen11_gpgpu_fillfunc; + else if (IS_GEN12(devid)) + fill = gen12_gpgpu_fillfunc;return fill; }
Signature · 6 lines
2.20.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 2/3 lib/media_fill/tgl: Implement media_fillfunc for TGL
In reply to Katarzyna DecAdding gen12_media_fillfunc to have media_fill running on TGL. Media shader was generated using IGA (Intel Graphics Assembler) based on binary found in lib/media_fill_gen9.c to match the changes in TGL HW. Main change was made in SEND instructions and adding SWSB dependencies.
v2: Switched to GEN_12.
--- lib/i915/shaders/media/gen12_media_kernel.asm | 13 ++++++++++ lib/intel_batchbuffer.c | 4 ++- lib/media_fill.c | 25 +++++++++++++++++++ lib/media_fill.h | 7 ++++++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 lib/i915/shaders/media/gen12_media_kernel.asm
lib/i915/shaders/media/gen12_media_kernel.asm new file +13 -0
@@ -0,0 +1,13 @@ +L0: + mov (4|M0) r1.0<1>:ub r1.0<0;1,0>:ub + mov (8|M0) r4.0<1>:ud r0.0<8;8,1>:ud + mov (8|M0) r4.0<1>:ud r2.0<2;2,1>:ud + mov (1|M0) r4.2<1>:ud 0xF000F:ud + mov (16|M0) r5.0<1>:ud r1.0<0;1,0>:ud {@4} + mov (16|M0) r7.0<1>:ud r1.0<0;1,0>:ud {@5} + mov (16|M0) r9.0<1>:ud r1.0<0;1,0>:ud {@6} + mov (16|M0) r11.0<1>:ud r1.0<0;1,0>:ud {@7} + send.dc1 (16|M0) null r4 null 0x10000000 0x120A8000 {@1, $0} // wr:9h+0, rd:0, Media Block Write msc:0, to #0 + mov (8|M0) r112.0<1>:ud r0.0<8;8,1>:ud + send.ts (16|M0) null r112 null 0x10000000 0x2000010 {EOT, @1} // wr:1+0, rd:0, fc: 0x10 +L176:
lib/intel_batchbuffer.c +3 -1
@@ -861,7 +861,9 @@ igt_fillfunc_t igt_get_media_fillfunc(int devid) {igt_fillfunc_t fill =NULL ; -if (IS_GEN9 (devid) ||IS_GEN10 (devid) ||IS_GEN11 (devid)) +if (IS_GEN12 (devid)) + fill = gen12_media_fillfunc; +else if (IS_GEN9 (devid) ||IS_GEN10 (devid) ||IS_GEN11 (devid)) fill = gen9_media_fillfunc;else if (IS_GEN8 (devid)) fill = gen8_media_fillfunc;
lib/media_fill.c +25 -0
@@ -101,6 +101,20 @@ static const uint32_t gen11_media_vme_kernel[][4] = { { 0x00000000, 0x00000000, 0x00000000, 0x00000000 }, }; +static const uint32_t gen12_media_kernel[][4 ] = { + {0x00020061 ,0x01050000 ,0x00000104 ,0x00000000 }, + {0x00030061 ,0x04050220 ,0x00460005 ,0x00000000 }, + {0x00030061 ,0x04050220 ,0x00220205 ,0x00000000 }, + {0x00000061 ,0x04454220 ,0x00000000 ,0x000f000f }, + {0x00040461 ,0x05050220 ,0x00000104 ,0x00000000 }, + {0x00040561 ,0x07050220 ,0x00000104 ,0x00000000 }, + {0x00040661 ,0x09050220 ,0x00000104 ,0x00000000 }, + {0x00040761 ,0x0b050220 ,0x00000104 ,0x00000000 }, + {0x00049031 ,0x00000000 ,0xc000044c ,0x12a00000 }, + {0x00030061 ,0x70050220 ,0x00460005 ,0x00000000 }, + {0x00040131 ,0x00000004 ,0x7020700c ,0x10000000 }, +}; +/* * This sets up the media pipeline, *
@@ -355,3 +369,14 @@ gen11_media_vme_func(struct intel_batchbuffer *batch, gen11_media_vme_kernel, sizeof(gen11_media_vme_kernel)); } + +void +gen12_media_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color) +{ +__gen9_media_fillfunc (batch, dst, x, y, width, height, color, + gen12_media_kernel,sizeof (gen12_media_kernel)); +}
lib/media_fill.h +7 -0
@@ -55,4 +55,11 @@ gen11_media_vme_func(struct intel_batchbuffer *batch, unsigned int width, unsigned int height, const struct igt_buf *dst); +void +gen12_media_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color); +#endif /* RENDE_MEDIA_FILL_H */
Signature · 6 lines
2.20.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 3/3 HAX: run gpgpu_fill and media_fill in BAT
In reply to Katarzyna Dec--- tests/intel-ci/fast-feedback.testlist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tests/intel-ci/fast-feedback.testlist +2 -1
@@ -1,5 +1,6 @@ # Keep alphabetically sorted by default - +igt@gem_media_fill +igt@gem_gpgpu_fill igt@core_auth@basic-auth igt@debugfs_test@read_all_entries igt@gem_basic@bad-close
Signature · 6 lines
2.20.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for Adding gpgpu_fill and media_fill on TGL
In reply to Katarzyna Dec== Series Details ==
== Series Details ==
Series: Adding gpgpu_fill and media_fill on TGL
URL : https://patchwork.freedesktop.org/series/66804/
State : success
== Summary ==
CI Bug Log - changes from IGT_5187 -> IGTPW_3468
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/66804/revisions/1/mbox/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_3468:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@gem_tiled_fence_blits@basic:
- {fi-tgl-u}: NOTRUN -> [SKIP][1] +2 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/fi-tgl-u/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_3468 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_basic@create-fd-close:
- fi-icl-u3: [PASS][2] -> [DMESG-WARN][3] ([fdo#107724])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/fi-icl-u3/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/fi-icl-u3/igt@[email protected]
* igt@gem_ctx_create@basic-files:
- fi-icl-u3: [PASS][4] -> [INCOMPLETE][5] ([fdo#107713] / [fdo#109100])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/fi-icl-u3/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@debugfs_test@read_all_entries:
- {fi-tgl-u2}: [DMESG-WARN][6] ([fdo#111600]) -> [PASS][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/fi-tgl-u2/igt@debugfs_test@read_all_entries.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/fi-tgl-u2/igt@debugfs_test@read_all_entries.html
* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: [INCOMPLETE][8] ([fdo#107718]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/fi-blb-e6850/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/fi-blb-e6850/igt@[email protected]
#### Warnings ####
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][10] ([fdo#111407]) -> [FAIL][11] ([fdo#111096])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/fi-kbl-7500u/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/fi-kbl-7500u/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[fdo#111600]: https://bugs.freedesktop.org/show_bug.cgi?id=111600
Participating hosts (55 -> 47)
------------------------------
Missing (8): fi-ilk-m540 fi-hsw-4200u fi-bsw-n3050 fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5187 -> IGTPW_3468
CI-20190529: 20190529
CI_DRM_6906: 72e400c2b824ab108907631fcf896d3d2020e7d5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3468: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/
IGT_5187: 587f5a93cba14d7f76d0ba8e4a675b2c979584cf @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for Adding gpgpu_fill and media_fill on TGL
In reply to Katarzyna Dec== Series Details ==
== Series Details ==
Series: Adding gpgpu_fill and media_fill on TGL
URL : https://patchwork.freedesktop.org/series/66804/
State : success
== Summary ==
CI Bug Log - changes from IGT_5187_full -> IGTPW_3468_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/66804/revisions/1/mbox/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_3468_full:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@kms_dp_tiled_display@basic-test-pattern}:
- shard-iclb: [SKIP][1] ([fdo#111716]) -> [SKIP][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb5/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb8/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_3468_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_shared@exec-single-timeline-bsd:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#110841])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb6/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb2/igt@[email protected]
* igt@gem_exec_schedule@preempt-other-bsd1:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#109276]) +14 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb5/igt@[email protected]
* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [PASS][7] -> [SKIP][8] ([fdo#111325]) +3 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb1/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-pwrite:
- shard-iclb: [PASS][9] -> [FAIL][10] ([fdo#103167]) +6 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb1/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb8/igt@[email protected]
* igt@kms_vblank@pipe-c-ts-continuation-suspend:
- shard-apl: [PASS][11] -> [DMESG-WARN][12] ([fdo#108566]) +5 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-apl4/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-apl8/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_schedule@deep-bsd:
- shard-iclb: [SKIP][13] ([fdo#111325]) -> [PASS][14] +6 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb1/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb3/igt@[email protected]
* igt@gem_exec_schedule@reorder-wide-bsd1:
- shard-iclb: [SKIP][15] ([fdo#109276]) -> [PASS][16] +18 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb7/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb2/igt@[email protected]
* igt@i915_suspend@forcewake:
- shard-apl: [DMESG-WARN][17] ([fdo#108566]) -> [PASS][18] +4 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-apl3/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-apl2/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-128x128-onscreen:
- shard-kbl: [FAIL][19] ([fdo#103232]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-kbl1/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-kbl7/igt@[email protected]
- shard-apl: [FAIL][21] ([fdo#103232]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-apl1/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-apl3/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-b-64x64-left-edge:
- shard-iclb: [INCOMPLETE][23] ([fdo#107713]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb4/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite:
- shard-iclb: [FAIL][25] ([fdo#103167]) -> [PASS][26] +4 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb5/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
* igt@kms_psr@psr2_cursor_blt:
- shard-iclb: [SKIP][27] ([fdo#109441]) -> [PASS][28] +1 similar issue
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb6/igt@kms_psr@psr2_cursor_blt.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb2/igt@kms_psr@psr2_cursor_blt.html
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [INCOMPLETE][29] ([fdo#103665]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-kbl6/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-kbl3/igt@[email protected]
#### Warnings ####
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [SKIP][31] ([fdo#109349]) -> [DMESG-WARN][32] ([fdo#107724])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5187/shard-iclb7/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/shard-iclb2/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111716]: https://bugs.freedesktop.org/show_bug.cgi?id=111716
Participating hosts (7 -> 6)
------------------------------
Missing (1): shard-skl
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5187 -> IGTPW_3468
CI-20190529: 20190529
CI_DRM_6906: 72e400c2b824ab108907631fcf896d3d2020e7d5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3468: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/
IGT_5187: 587f5a93cba14d7f76d0ba8e4a675b2c979584cf @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3468/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 1/3] lib/gpgpu_fill/tgl: Implement gpgpu_fillfunc for TGL
In reply to Katarzyna DecI ran the kernel checkpatch on the patch and found a couple of minor issues. Perhaps it is a good idea to run checkpatch even on non-kernel patches in the future and fix up whatever can be fixed up.
Quoted 51 lines · Katarzyna Dec
Adding
gen12_gpgpu_fillfuncto havegpgpu_fillrunning on TGL. Gpgpu shader was generated using IGA (Intel Graphics Assembler) based on Gen11 binary adding necessary SWSB dependencies and changes in SEND instruction.Shader source code and array containing its assembled version have same names now to avoid ambiguity.
v2: Switched to using
IS_GEN12Cc Daniele Ceraolo Spurio <[email protected]>Cc Antonio Argenziano <[email protected]>Signed-off-by Katarzyna Dec <[email protected]>Signed-off-by Lukasz Kalamarz <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- lib/gpgpu_fill.c | 22 +++++++++++++++++++ lib/gpgpu_fill.h | 7 ++++++ lib/i915/shaders/README | 2 ++ lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm | 12 ++++++++++ lib/intel_batchbuffer.c | 2 ++ 5 files changed, 45 insertions(+) create mode 100644 lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asmlib/gpgpu_fill.c +13
-0@@ -87,6 +87,19 @@ static const uint32_t gen11_gpgpu_kernel[][4] = { { 0x07800031, 0x20000a40, 0x06000e00, 0x82000010 }, }; +static const uint32_t gen12_gpgpu_kernel[][4 ] = { + {0x00020061 ,0x01050000 ,0x00000104 ,0x00000000 }, + {0x00000069 ,0x02058220 ,0x02000024 ,0x00000004 }, + {0x00000061 ,0x02250220 ,0x000000c4 ,0x00000000 }, + {0x00030061 ,0x04050220 ,0x00460005 ,0x00000000 }, + {0x00010261 ,0x04050220 ,0x00220205 ,0x00000000 }, + {0x00000061 ,0x04454220 ,0x00000000 ,0x0000000f }, + {0x00040661 ,0x05050220 ,0x00000104 ,0x00000000 }, + {0x00049031 ,0x00000000 ,0xc0000414 ,0x02a00000 }, + {0x00030061 ,0x70050220 ,0x00460005 ,0x00000000 }, + {0x00040131 ,0x00000004 ,0x7020700c ,0x10000000 }, +}; +/* * This sets up the gpgpu pipeline, *
lib/gpgpu_fill.c void gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, · line 297
Quoted 3 lines
lib/gpgpu_fill.c +0
-0@@ -282,3 +295,12 @@ void gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch,__gen9_gpgpu_fillfunc (batch, dst, x, y, width, height, color, gen11_gpgpu_kernel,sizeof (gen11_gpgpu_kernel)); }
CHECK: Please use a blank line after function/struct/union/enum declarations
Quoted 15 lines
lib/gpgpu_fill.c +9
-0+void gen12_gpgpu_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color) +{ +__gen9_gpgpu_fillfunc (batch, dst, x, y, width, height, color, + gen12_gpgpu_kernel,sizeof (gen12_gpgpu_kernel)); +}lib/gpgpu_fill.h +0
-0
lib/gpgpu_fill.h gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, · line 65
Quoted 9 lines
lib/gpgpu_fill.h +6
-0@@ -57,4 +57,11 @@ gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, unsigned int width, unsigned int height, uint8_t color); +void +gen12_gpgpu_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color);
CHECK: Alignment should match open parenthesis
Quoted 46 lines
lib/gpgpu_fill.h +1
-0+#endif /* GPGPU_FILL_H */ lib/i915/shaders/README +2
-0@@ -23,3 +23,5 @@ Commands used to generate the shader on gen8 $> m4 media_fill.gxa > media_fill.gxm $> intel-gen4asm -g 8 -o <output> media_fill.gxm +Gen11+ shader is generated using IGA (Intel Graphics Assembler). +Binary can no longer be generated using intel-gen4asm.lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm new file +12
-0@@ -0,0 +1,12 @@ +L0: + mov (4|M0) r1.0<1>:ub r1.0<0;1,0>:ub + shl (1|M0) r2.0<1>:ud r0.1<0;1,0>:ud 0x4:ud + mov (1|M0) r2.1<1>:ud r0.6<0;1,0>:ud + mov (8|M0) r4.0<1>:ud r0.0<8;8,1>:ud + mov (2|M0) r4.0<1>:ud r2.0<2;2,1>:ud {@2} + mov (1|M0) r4.2<1>:ud 0xF:ud + mov (16|M0) r5.0<1>:ud r1.0<0;1,0>:ud {@6} + send.dc1 (16|M0) null r4 null 0x0 0x40A8000 {@1, $0} // wr:2h+0, rd:0, Media Block Write msc:0, to #0 + mov (8|M0) r112.0<1>:ud r0.0<8;8,1>:ud + send.ts (16|M0) null r112 null 0x10000000 0x2000010 {EOT, @1} // wr:1+0, rd:0, fc: 0x10 +L160:lib/intel_batchbuffer.c +2
-1@@ -901,6 +901,8 @@ igt_fillfunc_t igt_get_gpgpu_fillfunc(int devid) fill = gen9_gpgpu_fillfunc; else if (IS_GEN11(devid)) fill = gen11_gpgpu_fillfunc; + else if (IS_GEN12(devid)) + fill = gen12_gpgpu_fillfunc;return fill; } --2.20.1
Quoted 4 lines
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 2/3] lib/media_fill/tgl: Implement media_fillfunc for TGL
In reply to Katarzyna DecOnce again, please fix up one checkpatch CHECK below.
Quoted 102 lines · Katarzyna Dec
Adding
gen12_media_fillfuncto havemedia_fillrunning on TGL. Media shader was generated using IGA (Intel Graphics Assembler) based on binary found inlib/media_fill_gen9.cto match the changes in TGL HW. Main change was made in SEND instructions and adding SWSB dependencies.v2: Switched to
GEN_12.Cc Antonio Argenziano <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Signed-off-by Katarzyna Dec <[email protected]>Signed-off-by Lukasz Kalamarz <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- lib/i915/shaders/media/gen12_media_kernel.asm | 13 ++++++++++ lib/intel_batchbuffer.c | 4 ++- lib/media_fill.c | 25 +++++++++++++++++++ lib/media_fill.h | 7 ++++++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 lib/i915/shaders/media/gen12_media_kernel.asmlib/i915/shaders/media/gen12_media_kernel.asm new file +13
-0@@ -0,0 +1,13 @@ +L0: + mov (4|M0) r1.0<1>:ub r1.0<0;1,0>:ub + mov (8|M0) r4.0<1>:ud r0.0<8;8,1>:ud + mov (8|M0) r4.0<1>:ud r2.0<2;2,1>:ud + mov (1|M0) r4.2<1>:ud 0xF000F:ud + mov (16|M0) r5.0<1>:ud r1.0<0;1,0>:ud {@4} + mov (16|M0) r7.0<1>:ud r1.0<0;1,0>:ud {@5} + mov (16|M0) r9.0<1>:ud r1.0<0;1,0>:ud {@6} + mov (16|M0) r11.0<1>:ud r1.0<0;1,0>:ud {@7} + send.dc1 (16|M0) null r4 null 0x10000000 0x120A8000 {@1, $0} // wr:9h+0, rd:0, Media Block Write msc:0, to #0 + mov (8|M0) r112.0<1>:ud r0.0<8;8,1>:ud + send.ts (16|M0) null r112 null 0x10000000 0x2000010 {EOT, @1} // wr:1+0, rd:0, fc: 0x10 +L176:lib/intel_batchbuffer.c +3
-1@@ -861,7 +861,9 @@ igt_fillfunc_t igt_get_media_fillfunc(int devid) {igt_fillfunc_t fill =NULL ; -if (IS_GEN9 (devid) ||IS_GEN10 (devid) ||IS_GEN11 (devid)) +if (IS_GEN12 (devid)) + fill = gen12_media_fillfunc; +else if (IS_GEN9 (devid) ||IS_GEN10 (devid) ||IS_GEN11 (devid)) fill = gen9_media_fillfunc;else if (IS_GEN8 (devid)) fill = gen8_media_fillfunc;lib/media_fill.c +25
-0@@ -101,6 +101,20 @@ static const uint32_t gen11_media_vme_kernel[][4] = { { 0x00000000, 0x00000000, 0x00000000, 0x00000000 }, }; +static const uint32_t gen12_media_kernel[][4 ] = { + {0x00020061 ,0x01050000 ,0x00000104 ,0x00000000 }, + {0x00030061 ,0x04050220 ,0x00460005 ,0x00000000 }, + {0x00030061 ,0x04050220 ,0x00220205 ,0x00000000 }, + {0x00000061 ,0x04454220 ,0x00000000 ,0x000f000f }, + {0x00040461 ,0x05050220 ,0x00000104 ,0x00000000 }, + {0x00040561 ,0x07050220 ,0x00000104 ,0x00000000 }, + {0x00040661 ,0x09050220 ,0x00000104 ,0x00000000 }, + {0x00040761 ,0x0b050220 ,0x00000104 ,0x00000000 }, + {0x00049031 ,0x00000000 ,0xc000044c ,0x12a00000 }, + {0x00030061 ,0x70050220 ,0x00460005 ,0x00000000 }, + {0x00040131 ,0x00000004 ,0x7020700c ,0x10000000 }, +}; +/* * This sets up the media pipeline, * @@ -355,3 +369,14 @@ gen11_media_vme_func(struct intel_batchbuffer *batch, gen11_media_vme_kernel, sizeof(gen11_media_vme_kernel)); } + +void +gen12_media_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color) +{ +__gen9_media_fillfunc (batch, dst, x, y, width, height, color, + gen12_media_kernel,sizeof (gen12_media_kernel)); +}lib/media_fill.h +0
-0
lib/media_fill.h gen11_media_vme_func(struct intel_batchbuffer *batch, · line 64
Quoted 10 lines
lib/media_fill.h +7
-0@@ -55,4 +55,11 @@ gen11_media_vme_func(struct intel_batchbuffer *batch, unsigned int width, unsigned int height, const struct igt_buf *dst); +void +gen12_media_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color); +
CHECK: Alignment should match open parenthesis
Quoted 8 lines
lib/media_fill.h +0
-1#endif /* RENDE_MEDIA_FILL_H */ --2.20.1
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 1/3] lib/gpgpu_fill/tgl: Implement gpgpu_fillfunc for TGL
In reply to Ashutosh DixitQuoted 3 lines · Ashutosh Dixit
I ran the kernel checkpatch on the patch and found a couple of minor issues. Perhaps it is a good idea to run checkpatch even on non-kernel patches in the future and fix up whatever can be fixed up.
I am using checkpatch on daily basis and I didn't found any issues. I run it again and only '--strct' option shows hints (not warnings). I can change that, but in my opinion it is not needed.
Let me know what you think.
Kasia
Quoted 132 lines · Katarzyna Dec
Quoted 51 lines
Adding
gen12_gpgpu_fillfuncto havegpgpu_fillrunning on TGL. Gpgpu shader was generated using IGA (Intel Graphics Assembler) based on Gen11 binary adding necessary SWSB dependencies and changes in SEND instruction.Shader source code and array containing its assembled version have same names now to avoid ambiguity.
v2: Switched to using
IS_GEN12Cc Daniele Ceraolo Spurio <[email protected]>Cc Antonio Argenziano <[email protected]>Signed-off-by Katarzyna Dec <[email protected]>Signed-off-by Lukasz Kalamarz <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- lib/gpgpu_fill.c | 22 +++++++++++++++++++ lib/gpgpu_fill.h | 7 ++++++ lib/i915/shaders/README | 2 ++ lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm | 12 ++++++++++ lib/intel_batchbuffer.c | 2 ++ 5 files changed, 45 insertions(+) create mode 100644 lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asmlib/gpgpu_fill.c +13
-0@@ -87,6 +87,19 @@ static const uint32_t gen11_gpgpu_kernel[][4] = { { 0x07800031, 0x20000a40, 0x06000e00, 0x82000010 }, }; +static const uint32_t gen12_gpgpu_kernel[][4 ] = { + {0x00020061 ,0x01050000 ,0x00000104 ,0x00000000 }, + {0x00000069 ,0x02058220 ,0x02000024 ,0x00000004 }, + {0x00000061 ,0x02250220 ,0x000000c4 ,0x00000000 }, + {0x00030061 ,0x04050220 ,0x00460005 ,0x00000000 }, + {0x00010261 ,0x04050220 ,0x00220205 ,0x00000000 }, + {0x00000061 ,0x04454220 ,0x00000000 ,0x0000000f }, + {0x00040661 ,0x05050220 ,0x00000104 ,0x00000000 }, + {0x00049031 ,0x00000000 ,0xc0000414 ,0x02a00000 }, + {0x00030061 ,0x70050220 ,0x00460005 ,0x00000000 }, + {0x00040131 ,0x00000004 ,0x7020700c ,0x10000000 }, +}; +/* * This sets up the gpgpu pipeline, * lib/gpgpu_fill.c void gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, · line 297
Quoted 3 lines
lib/gpgpu_fill.c +0
-0@@ -282,3 +295,12 @@ void gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch,__gen9_gpgpu_fillfunc (batch, dst, x, y, width, height, color, gen11_gpgpu_kernel,sizeof (gen11_gpgpu_kernel)); }CHECK: Please use a blank line after function/struct/union/enum declarations
Quoted 15 lines
lib/gpgpu_fill.c +9
-0+void gen12_gpgpu_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color) +{ +__gen9_gpgpu_fillfunc (batch, dst, x, y, width, height, color, + gen12_gpgpu_kernel,sizeof (gen12_gpgpu_kernel)); +}lib/gpgpu_fill.h +0
-0lib/gpgpu_fill.h gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, · line 65
Quoted 9 lines
lib/gpgpu_fill.h +6
-0@@ -57,4 +57,11 @@ gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, unsigned int width, unsigned int height, uint8_t color); +void +gen12_gpgpu_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color);CHECK: Alignment should match open parenthesis
Quoted 46 lines
lib/gpgpu_fill.h +1
-0+#endif /* GPGPU_FILL_H */ lib/i915/shaders/README +2
-0@@ -23,3 +23,5 @@ Commands used to generate the shader on gen8 $> m4 media_fill.gxa > media_fill.gxm $> intel-gen4asm -g 8 -o <output> media_fill.gxm +Gen11+ shader is generated using IGA (Intel Graphics Assembler). +Binary can no longer be generated using intel-gen4asm.lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm new file +12
-0@@ -0,0 +1,12 @@ +L0: + mov (4|M0) r1.0<1>:ub r1.0<0;1,0>:ub + shl (1|M0) r2.0<1>:ud r0.1<0;1,0>:ud 0x4:ud + mov (1|M0) r2.1<1>:ud r0.6<0;1,0>:ud + mov (8|M0) r4.0<1>:ud r0.0<8;8,1>:ud + mov (2|M0) r4.0<1>:ud r2.0<2;2,1>:ud {@2} + mov (1|M0) r4.2<1>:ud 0xF:ud + mov (16|M0) r5.0<1>:ud r1.0<0;1,0>:ud {@6} + send.dc1 (16|M0) null r4 null 0x0 0x40A8000 {@1, $0} // wr:2h+0, rd:0, Media Block Write msc:0, to #0 + mov (8|M0) r112.0<1>:ud r0.0<8;8,1>:ud + send.ts (16|M0) null r112 null 0x10000000 0x2000010 {EOT, @1} // wr:1+0, rd:0, fc: 0x10 +L160:lib/intel_batchbuffer.c +2
-1@@ -901,6 +901,8 @@ igt_fillfunc_t igt_get_gpgpu_fillfunc(int devid) fill = gen9_gpgpu_fillfunc; else if (IS_GEN11(devid)) fill = gen11_gpgpu_fillfunc; + else if (IS_GEN12(devid)) + fill = gen12_gpgpu_fillfunc;return fill; } --2.20.1
Quoted 4 lines
Quoted 4 lines
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 12 lines · Katarzyna Dec
Patches add
media_fillandgpgpu_fillfunctions on TGL.v2: Switched to
IS_GEN12macro.Cc Daniele Ceraolo Spurio <[email protected]>Cc Antonio Argenziano <[email protected]>Cc Katarzyna Dec <[email protected]>Cc Lukasz Kalamarz <[email protected]>Cc Zbigniew Kempczyński <[email protected]>Cc Lucas De Marchi <[email protected]>
Quoted 4 lines
Katarzyna Dec (3):
lib/gpgpu_fill/tgl: Implementgpgpu_fillfuncfor TGLlib/media_fill/tgl: Implementmedia_fillfuncfor TGL
HAX: rungpgpu_fillandmedia_fillin BAT
I have recommended a couple of checkpatch fixes on the individual patches. Please fix those up.
With that, for the series:
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 1/3] lib/gpgpu_fill/tgl: Implement gpgpu_fillfunc for TGL
In reply to Katarzyna DecQuoted 10 lines · Katarzyna Dec
Quoted 3 lines · Ashutosh Dixit
I ran the kernel checkpatch on the patch and found a couple of minor issues. Perhaps it is a good idea to run checkpatch even on non-kernel patches in the future and fix up whatever can be fixed up.
I am using checkpatch on daily basis and I didn't found any issues. I run it again and only '--strct' option shows hints (not warnings). I can change that, but in my opinion it is not needed.
Let me know what you think.
Well checkpatch --strict has found small issues which I have mentioned in the two patches under the affected lines. IMO they should be fixed up. Thanks!
--
Ashutosh
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 3/3] HAX: run gpgpu_fill and media_fill in BAT
In reply to Katarzyna DecThere are no other commits with HAX in the commit message. If this patch is going to be pushed it will need a Signed-off-by.
Quoted 20 lines · Katarzyna Dec
--- tests/intel-ci/fast-feedback.testlist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/intel-ci/fast-feedback.testlist +2
-2@@ -1,5 +1,6 @@ # Keep alphabetically sorted by default - +igt@gem_media_fill +igt@gem_gpgpu_fill igt@core_auth@basic-auth igt@debugfs_test@read_all_entries igt@gem_basic@bad-close --2.20.1
Quoted 4 lines
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 3/3] HAX: run gpgpu_fill and media_fill in BAT
Quoted 2 lines · Ashutosh Dixit
There are no other commits with HAX in the commit message. If this patch is going to be pushed it will need a Signed-off-by.
This patch is only for adding tests that are not on fast feedback and are changed by this series (media_fill and gpgpu_fill) to be run by patchwork. This patch is not going to be merged.
You can try this too if you will send some series to igt-dev.
Kasia :)
Quoted 22 lines · Katarzyna Dec
Quoted 20 lines
--- tests/intel-ci/fast-feedback.testlist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)tests/intel-ci/fast-feedback.testlist +2
-2@@ -1,5 +1,6 @@ # Keep alphabetically sorted by default - +igt@gem_media_fill +igt@gem_gpgpu_fill igt@core_auth@basic-auth igt@debugfs_test@read_all_entries igt@gem_basic@bad-close --2.20.1
Quoted 4 lines
Quoted 4 lines
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 2/3] lib/media_fill/tgl: Implement media_fillfunc for TGL
In reply to Ashutosh DixitQuoted 108 lines · Ashutosh Dixit
Once again, please fix up one checkpatch CHECK below.
Quoted 105 lines · Katarzyna Dec
Adding
gen12_media_fillfuncto havemedia_fillrunning on TGL. Media shader was generated using IGA (Intel Graphics Assembler) based on binary found inlib/media_fill_gen9.cto match the changes in TGL HW. Main change was made in SEND instructions and adding SWSB dependencies.v2: Switched to
GEN_12.Cc Antonio Argenziano <[email protected]>Cc Daniele Ceraolo Spurio <[email protected]>Signed-off-by Katarzyna Dec <[email protected]>Signed-off-by Lukasz Kalamarz <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- lib/i915/shaders/media/gen12_media_kernel.asm | 13 ++++++++++ lib/intel_batchbuffer.c | 4 ++- lib/media_fill.c | 25 +++++++++++++++++++ lib/media_fill.h | 7 ++++++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 lib/i915/shaders/media/gen12_media_kernel.asmlib/i915/shaders/media/gen12_media_kernel.asm new file +13
-0@@ -0,0 +1,13 @@ +L0: + mov (4|M0) r1.0<1>:ub r1.0<0;1,0>:ub + mov (8|M0) r4.0<1>:ud r0.0<8;8,1>:ud + mov (8|M0) r4.0<1>:ud r2.0<2;2,1>:ud + mov (1|M0) r4.2<1>:ud 0xF000F:ud + mov (16|M0) r5.0<1>:ud r1.0<0;1,0>:ud {@4} + mov (16|M0) r7.0<1>:ud r1.0<0;1,0>:ud {@5} + mov (16|M0) r9.0<1>:ud r1.0<0;1,0>:ud {@6} + mov (16|M0) r11.0<1>:ud r1.0<0;1,0>:ud {@7} + send.dc1 (16|M0) null r4 null 0x10000000 0x120A8000 {@1, $0} // wr:9h+0, rd:0, Media Block Write msc:0, to #0 + mov (8|M0) r112.0<1>:ud r0.0<8;8,1>:ud + send.ts (16|M0) null r112 null 0x10000000 0x2000010 {EOT, @1} // wr:1+0, rd:0, fc: 0x10 +L176:lib/intel_batchbuffer.c +3
-1@@ -861,7 +861,9 @@ igt_fillfunc_t igt_get_media_fillfunc(int devid) {igt_fillfunc_t fill =NULL ; -if (IS_GEN9 (devid) ||IS_GEN10 (devid) ||IS_GEN11 (devid)) +if (IS_GEN12 (devid)) + fill = gen12_media_fillfunc; +else if (IS_GEN9 (devid) ||IS_GEN10 (devid) ||IS_GEN11 (devid)) fill = gen9_media_fillfunc;else if (IS_GEN8 (devid)) fill = gen8_media_fillfunc;lib/media_fill.c +25
-0@@ -101,6 +101,20 @@ static const uint32_t gen11_media_vme_kernel[][4] = { { 0x00000000, 0x00000000, 0x00000000, 0x00000000 }, }; +static const uint32_t gen12_media_kernel[][4 ] = { + {0x00020061 ,0x01050000 ,0x00000104 ,0x00000000 }, + {0x00030061 ,0x04050220 ,0x00460005 ,0x00000000 }, + {0x00030061 ,0x04050220 ,0x00220205 ,0x00000000 }, + {0x00000061 ,0x04454220 ,0x00000000 ,0x000f000f }, + {0x00040461 ,0x05050220 ,0x00000104 ,0x00000000 }, + {0x00040561 ,0x07050220 ,0x00000104 ,0x00000000 }, + {0x00040661 ,0x09050220 ,0x00000104 ,0x00000000 }, + {0x00040761 ,0x0b050220 ,0x00000104 ,0x00000000 }, + {0x00049031 ,0x00000000 ,0xc000044c ,0x12a00000 }, + {0x00030061 ,0x70050220 ,0x00460005 ,0x00000000 }, + {0x00040131 ,0x00000004 ,0x7020700c ,0x10000000 }, +}; +/* * This sets up the media pipeline, * @@ -355,3 +369,14 @@ gen11_media_vme_func(struct intel_batchbuffer *batch, gen11_media_vme_kernel, sizeof(gen11_media_vme_kernel)); } + +void +gen12_media_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color) +{ +__gen9_media_fillfunc (batch, dst, x, y, width, height, color, + gen12_media_kernel,sizeof (gen12_media_kernel)); +}lib/media_fill.h +0
-0@@ -55,4 +55,11 @@ gen11_media_vme_func(struct intel_batchbuffer *batch, unsigned int width, unsigned int height, const struct igt_buf *dst);
Quoted 9 lines
lib/media_fill.h gen11_media_vme_func(struct intel_batchbuffer *batch, · line 64
Quoted 7 lines
lib/media_fill.h +7
-0+void +gen12_media_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color); +CHECK: Alignment should match open parenthesis
Ok, I will fix that.
Kasia
Quoted 9 lines
Quoted 9 lines
lib/media_fill.h +0
-1#endif /* RENDE_MEDIA_FILL_H */ --2.20.1
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 1/3] lib/gpgpu_fill/tgl: Implement gpgpu_fillfunc for TGL
In reply to Ashutosh DixitQuoted 3 lines · Ashutosh Dixit
I ran the kernel checkpatch on the patch and found a couple of minor issues. Perhaps it is a good idea to run checkpatch even on non-kernel patches in the future and fix up whatever can be fixed up.
I always run checkpatch before sending series or during review, but - there are constraints with its output. Please keep in mind that this is a script to check kernel code standards, not userspace.
Quoted 50 lines · Katarzyna Dec
Quoted 48 lines
Adding
gen12_gpgpu_fillfuncto havegpgpu_fillrunning on TGL. Gpgpu shader was generated using IGA (Intel Graphics Assembler) based on Gen11 binary adding necessary SWSB dependencies and changes in SEND instruction.Shader source code and array containing its assembled version have same names now to avoid ambiguity.
v2: Switched to using
IS_GEN12Cc Daniele Ceraolo Spurio <[email protected]>Cc Antonio Argenziano <[email protected]>Signed-off-by Katarzyna Dec <[email protected]>Signed-off-by Lukasz Kalamarz <[email protected]>Signed-off-by Zbigniew Kempczyński <[email protected]>Signed-off-by Lucas De Marchi <[email protected]>--- lib/gpgpu_fill.c | 22 +++++++++++++++++++ lib/gpgpu_fill.h | 7 ++++++ lib/i915/shaders/README | 2 ++ lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm | 12 ++++++++++ lib/intel_batchbuffer.c | 2 ++ 5 files changed, 45 insertions(+) create mode 100644 lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asmlib/gpgpu_fill.c +13
-0@@ -87,6 +87,19 @@ static const uint32_t gen11_gpgpu_kernel[][4] = { { 0x07800031, 0x20000a40, 0x06000e00, 0x82000010 }, }; +static const uint32_t gen12_gpgpu_kernel[][4 ] = { + {0x00020061 ,0x01050000 ,0x00000104 ,0x00000000 }, + {0x00000069 ,0x02058220 ,0x02000024 ,0x00000004 }, + {0x00000061 ,0x02250220 ,0x000000c4 ,0x00000000 }, + {0x00030061 ,0x04050220 ,0x00460005 ,0x00000000 }, + {0x00010261 ,0x04050220 ,0x00220205 ,0x00000000 }, + {0x00000061 ,0x04454220 ,0x00000000 ,0x0000000f }, + {0x00040661 ,0x05050220 ,0x00000104 ,0x00000000 }, + {0x00049031 ,0x00000000 ,0xc0000414 ,0x02a00000 }, + {0x00030061 ,0x70050220 ,0x00460005 ,0x00000000 }, + {0x00040131 ,0x00000004 ,0x7020700c ,0x10000000 }, +}; +/*
Quoted 9 lines
lib/gpgpu_fill.c void gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, · line 297
Quoted 6 lines
lib/gpgpu_fill.c +0
-0* This sets up the gpgpu pipeline, * @@ -282,3 +295,12 @@ void gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch,__gen9_gpgpu_fillfunc (batch, dst, x, y, width, height, color, gen11_gpgpu_kernel,sizeof (gen11_gpgpu_kernel)); }CHECK: Please use a blank line after function/struct/union/enum declarations
I can change that.
Quoted 18 lines
Quoted 18 lines
lib/gpgpu_fill.c +9
-0+void gen12_gpgpu_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color) +{ +__gen9_gpgpu_fillfunc (batch, dst, x, y, width, height, color, + gen12_gpgpu_kernel,sizeof (gen12_gpgpu_kernel)); +}lib/gpgpu_fill.h +0
-0@@ -57,4 +57,11 @@ gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, unsigned int width, unsigned int height, uint8_t color);
Quoted 9 lines
lib/gpgpu_fill.h gen11_gpgpu_fillfunc(struct intel_batchbuffer *batch, · line 65
Quoted 6 lines
lib/gpgpu_fill.h +6
-0+void +gen12_gpgpu_fillfunc (struct intel_batchbuffer *batch, +const struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color);CHECK: Alignment should match open parenthesis
I can change that.
Thanks,
Kasia
Quoted 46 lines
Quoted 46 lines
lib/gpgpu_fill.h +1
-0+#endif /* GPGPU_FILL_H */ lib/i915/shaders/README +2
-0@@ -23,3 +23,5 @@ Commands used to generate the shader on gen8 $> m4 media_fill.gxa > media_fill.gxm $> intel-gen4asm -g 8 -o <output> media_fill.gxm +Gen11+ shader is generated using IGA (Intel Graphics Assembler). +Binary can no longer be generated using intel-gen4asm.lib/i915/shaders/gpgpu/gen12_gpgpu_kernel.asm new file +12
-0@@ -0,0 +1,12 @@ +L0: + mov (4|M0) r1.0<1>:ub r1.0<0;1,0>:ub + shl (1|M0) r2.0<1>:ud r0.1<0;1,0>:ud 0x4:ud + mov (1|M0) r2.1<1>:ud r0.6<0;1,0>:ud + mov (8|M0) r4.0<1>:ud r0.0<8;8,1>:ud + mov (2|M0) r4.0<1>:ud r2.0<2;2,1>:ud {@2} + mov (1|M0) r4.2<1>:ud 0xF:ud + mov (16|M0) r5.0<1>:ud r1.0<0;1,0>:ud {@6} + send.dc1 (16|M0) null r4 null 0x0 0x40A8000 {@1, $0} // wr:2h+0, rd:0, Media Block Write msc:0, to #0 + mov (8|M0) r112.0<1>:ud r0.0<8;8,1>:ud + send.ts (16|M0) null r112 null 0x10000000 0x2000010 {EOT, @1} // wr:1+0, rd:0, fc: 0x10 +L160:lib/intel_batchbuffer.c +2
-1@@ -901,6 +901,8 @@ igt_fillfunc_t igt_get_gpgpu_fillfunc(int devid) fill = gen9_gpgpu_fillfunc; else if (IS_GEN11(devid)) fill = gen11_gpgpu_fillfunc; + else if (IS_GEN12(devid)) + fill = gen12_gpgpu_fillfunc;return fill; } --2.20.1
Quoted 4 lines
Quoted 4 lines
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t 3/3] HAX: run gpgpu_fill and media_fill in BAT
In reply to Katarzyna DecQuoted 3 lines · Katarzyna Dec
Quoted 2 lines · Ashutosh Dixit
There are no other commits with HAX in the commit message. If this patch is going to be pushed it will need a Signed-off-by.
https://intel-gfx-ci.01.org/#forcing-tests-in-bat-and-changing-configuration
this is now documented.
Quoted 7 lines
This patch is only for adding tests that are not on fast feedback and are changed by this series (
media_fillandgpgpu_fill) to be run by patchwork. This patch is not going to be merged.You can try this too if you will send some series to igt-dev.
Kasia :)
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev