*_fill libraries refactoring part2
Subsystems (2)
v4 cover *_fill libraries refactoring part2
When I started implementing fillfuncs for future gens, reviewers suggested to make a wrapper on gen9 functions. Future gens differ with kernel parameter only. This series is implementing such wrappers. This wrappers will be used in later gens. Implementation for gen10 does not differ from gen9.
v2, v3: fixed indentations in whole series
v4: After comments on review - I've removed gen10 patches. I added missing copyright headers to new media_fill library. I made __gen9_* functions static.
Katarzyna Dec (2):
lib/media_fill: Create common media_fill library for all gens lib/gpgpu_fill: Create generic __gen9_gpgpu_fillfunc
lib/Makefile.sources | 4 +- lib/gpgpu_fill.c | 25 ++++-- lib/media_fill.c | 237 ++++++++++++++++++++++++++++++++++++++++++++++++++ lib/media_fill.h | 48 +++++++--- lib/media_fill_gen7.c | 87 ------------------ lib/media_fill_gen8.c | 90 ------------------- lib/media_fill_gen9.c | 99 --------------------- lib/meson.build | 4 +- 8 files changed, 293 insertions(+), 301 deletions(-) create mode 100644 lib/media_fill.c delete mode 100644 lib/media_fill_gen7.c delete mode 100644 lib/media_fill_gen8.c delete mode 100644 lib/media_fill_gen9.c
Signature · 6 lines
2.14.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v4 1/2 lib/media_fill: Create common media_fill library for all gens
Let's create common media_fill library, similarly as for gpgpu_fill. This will allow to make code easier to read and maintain. Moreover we can create generic __gen9_media_fillfunc for future gens. From gen9 media fillfunctions differ only with kernel parameter.
v2: fixed indentations in files
v3: Added missing copyright headers. Made __gen9_media_fillfunc static. Removed gen9 kernel (the same as for gen8).
--- lib/Makefile.sources | 4 +- lib/media_fill.c | 237 ++++++++++++++++++++++++++++++++++++++++++++++++++ lib/media_fill.h | 48 +++++++--- lib/media_fill_gen7.c | 87 ------------------ lib/media_fill_gen8.c | 90 ------------------- lib/media_fill_gen9.c | 99 --------------------- lib/meson.build | 4 +- 7 files changed, 275 insertions(+), 294 deletions(-) create mode 100644 lib/media_fill.c delete mode 100644 lib/media_fill_gen7.c delete mode 100644 lib/media_fill_gen8.c delete mode 100644 lib/media_fill_gen9.c
lib/Makefile.sources +1 -3
@@ -56,9 +56,7 @@ lib_source_list = \ ioctl_wrappers.c \ ioctl_wrappers.h \ media_fill.h \ - media_fill_gen7.c \ - media_fill_gen8.c \ - media_fill_gen9.c \ + media_fill.c \ media_spin.h \ media_spin.c \ gpgpu_fill.h \
lib/media_fill.c new file +237 -0
237 lines not on this page · raw message
lib/media_fill.h +36 -12
62 lines not on this page · raw message
lib/media_fill_gen7.c deleted +0 -87
87 lines not on this page · raw message
lib/media_fill_gen8.c deleted +0 -90
90 lines not on this page · raw message
lib/media_fill_gen9.c deleted +0 -99
99 lines not on this page · raw message
lib/meson.build +1 -3
@@ -24,9 +24,7 @@ lib_sources = [ 'intel_os.c', 'intel_mmio.c', 'ioctl_wrappers.c', - 'media_fill_gen7.c', - 'media_fill_gen8.c', - 'media_fill_gen9.c', + 'media_fill.c', 'media_spin.c', 'gpgpu_fill.c', 'gpu_fill.c',
Signature · 6 lines
2.14.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v4 2/2 lib/gpgpu_fill: Create generic __gen9_gpgpu_fillfunc
In reply to Katarzyna DecStarting from gen9 main gpgpu_fillfunc differs only with kernel parameter. Let's prepare generic __gen9 function to avoid duplicating all _fillfunc for future gens.
v2: fixed indentations
v3: Made __gen9_gpgpu_fillfunc static
--- lib/gpgpu_fill.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-)
lib/gpgpu_fill.c +18 -7
@@ -192,12 +192,13 @@ gen8_gpgpu_fillfunc(struct intel_batchbuffer *batch,intel_batchbuffer_reset (batch); } -void -gen9_gpgpu_fillfunc (struct intel_batchbuffer *batch, -struct igt_buf *dst, -unsigned int x,unsigned int y, -unsigned int width,unsigned int height, -uint8_t color) +static void +__gen9_gpgpu_fillfunc (struct intel_batchbuffer *batch, +struct igt_buf *dst, +unsigned int x,unsigned int y, +unsigned int width,unsigned int height, +uint8_t color,const uint32_t kernel[][4 ], +size_t kernel_size) {uint32_t curbe_buffer, interface_descriptor;uint32_t batch_end;
@@ -216,7 +217,7 @@ gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch, curbe_buffer =gen7_fill_curbe_buffer_data (batch, color); interface_descriptor =gen8_fill_interface_descriptor (batch, dst, - gen9_gpgpu_kernel,sizeof (gen9_gpgpu_kernel)); + kernel, kernel_size);igt_assert (batch->ptr < &batch->buffer[4095 ]);
@@ -240,3 +241,13 @@ gen9_gpgpu_fillfunc(struct intel_batchbuffer *batch,gen7_render_flush (batch, batch_end);intel_batchbuffer_reset (batch); } + +void gen9_gpgpu_fillfunc (struct intel_batchbuffer *batch, +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, + gen9_gpgpu_kernel,sizeof (gen9_gpgpu_kernel)); +}
Signature · 6 lines
2.14.3 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for *_fill libraries refactoring part2 (rev5)
In reply to Katarzyna Dec== Series Details ==
== Series Details ==
Series: *_fill libraries refactoring part2 (rev5)
URL : https://patchwork.freedesktop.org/series/42943/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4163 -> IGTPW_1341 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/42943/revisions/5/mbox/
== Known issues ==
Here are the changes found in IGTPW_1341 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
fi-bxt-dsi: PASS -> INCOMPLETE (fdo#103927)
==== Possible fixes ====
igt@drv_module_reload@basic-reload-inject:
fi-glk-j4005: DMESG-WARN (fdo#106248) -> PASS
igt@kms_flip@basic-flip-vs-wf_vblank:
fi-hsw-4770r: FAIL (fdo#100368) -> PASS fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#103927 https://bugs.freedesktop.org/show_bug.cgi?id=103927
fdo#106248 https://bugs.freedesktop.org/show_bug.cgi?id=106248
== Participating hosts (41 -> 37) ==
Missing (4): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-skl-6700hq
== Build changes ==
* IGT: IGT_4468 -> IGTPW_1341
* Piglit: piglit_4468 -> piglit_4474
CI_DRM_4163: 8e1dab6e913be7d014eb9bc355ec65b6b56dcd56 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1341: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1341/
IGT_4468: 548a894dc904c4628522dbbc77cb179a4c965ebc @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4468: 1e60f1499e5b71b6d5a747189d7c28f57359a87f @ git://anongit.freedesktop.org/piglit
piglit_4474: 318e0b8c5cdf7aac628f85d0c4a00db8f2d6ab0d @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1341/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for *_fill libraries refactoring part2 (rev5)
In reply to Katarzyna Dec== Series Details ==
== Series Details ==
Series: *_fill libraries refactoring part2 (rev5)
URL : https://patchwork.freedesktop.org/series/42943/
State : failure
== Summary ==
= CI Bug Log - changes from IGT_4468_full -> IGTPW_1341_full =
== Summary - FAILURE ==
Serious unknown changes coming with IGTPW_1341_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_1341_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://patchwork.freedesktop.org/api/1.0/series/42943/revisions/5/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in IGTPW_1341_full:
=== IGT changes ===
==== Possible regressions ====
igt@kms_cursor_crc@cursor-256x85-random:
shard-glk: PASS -> DMESG-WARN
==== Warnings ====
igt@drv_selftest@live_execlists:
shard-glk: SKIP -> PASS +1
shard-apl: SKIP -> PASS +1
igt@gem_exec_schedule@deep-blt:
shard-kbl: SKIP -> PASS +2
igt@gem_mocs_settings@mocs-rc6-ctx-render:
shard-kbl: PASS -> SKIP== Known issues ==
Here are the changes found in IGTPW_1341_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_draw_crc@draw-method-rgb565-mmap-gtt-ytiled:
shard-glk: PASS -> FAIL (fdo#104724)
igt@kms_flip@blocking-wf_vblank:
shard-kbl: PASS -> DMESG-WARN (fdo#103558, fdo#105602) +4
igt@kms_flip@wf_vblank-ts-check-interruptible:
shard-glk: PASS -> FAIL (fdo#100368) +1
igt@kms_pipe_crc_basic@read-crc-pipe-b-frame-sequence:
shard-kbl: PASS -> DMESG-WARN (fdo#103558, fdo#105602, fdo#103313) +11
igt@kms_rotation_crc@primary-rotation-180:
shard-snb: PASS -> FAIL (fdo#103925, fdo#104724)
igt@kms_setmode@basic:
shard-glk: PASS -> FAIL (fdo#99912)
igt@syncobj_wait@single-wait-all-for-submit-submitted:
shard-kbl: PASS -> DMESG-WARN (fdo#103313)
==== Possible fixes ====
igt@drv_selftest@live_hangcheck:
shard-kbl: DMESG-FAIL (fdo#106453) -> PASS
shard-apl: DMESG-FAIL (fdo#106453) -> PASS
shard-glk: DMESG-FAIL (fdo#106453) -> PASS
igt@drv_selftest@mock_breadcrumbs:
shard-hsw: DMESG-WARN (fdo#106453) -> PASS +7
igt@drv_selftest@mock_dmabuf:
shard-glk: DMESG-WARN (fdo#106453) -> PASS +7
igt@drv_selftest@mock_evict:
shard-snb: DMESG-WARN (fdo#106453) -> PASS +7
igt@drv_selftest@mock_requests:
shard-kbl: DMESG-WARN (fdo#106453) -> PASS +7
igt@drv_selftest@mock_vma:
shard-apl: DMESG-WARN (fdo#106453) -> PASS +7
igt@drv_suspend@debugfs-reader:
shard-glk: INCOMPLETE (k.org#198133, fdo#103359) -> PASS
igt@kms_flip@flip-vs-expired-vblank-interruptible:
shard-glk: FAIL (fdo#102887) -> PASS
igt@kms_flip@plain-flip-fb-recreate-interruptible:
shard-hsw: FAIL (fdo#100368) -> PASS
igt@kms_setmode@basic:
shard-apl: FAIL (fdo#99912) -> PASS fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103313 https://bugs.freedesktop.org/show_bug.cgi?id=103313
fdo#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558
fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#106453 https://bugs.freedesktop.org/show_bug.cgi?id=106453
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133
== Participating hosts (9 -> 5) ==
Missing (4): pig-snb-2600 pig-glk-j5005 pig-skl-6600 pig-hsw-4770r
== Build changes ==
* IGT: IGT_4468 -> IGTPW_1341
* Linux: CI_DRM_4160 -> CI_DRM_4163
* Piglit: piglit_4468 -> piglit_4474
CI_DRM_4160: 6d9a2ccf9fca7c006f24b7ff6193ee356b6d3503 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4163: 8e1dab6e913be7d014eb9bc355ec65b6b56dcd56 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1341: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1341/
IGT_4468: 548a894dc904c4628522dbbc77cb179a4c965ebc @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4468: 1e60f1499e5b71b6d5a747189d7c28f57359a87f @ git://anongit.freedesktop.org/piglit
piglit_4474: 318e0b8c5cdf7aac628f85d0c4a00db8f2d6ab0d @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1341/shards.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev