Simplify working on tiled surfaces over GenX
Subsystems (2)
v7 cover Simplify working on tiled surfaces over GenX
Different GenX support different tiling formats and HW capabilities to copy linear surface on CPU from/to tiled one on GPU. Developing tests which have to be aware of all tiling HW details is a little bit cumbersome. Following patches extend IGT:
1. intel_bufops - core tiling surface code which is independent on libdrm,
2. rendercopy_bufmgr - glue between libdrm and intel_bufops, necessary due to current render_copy code is heavily coupled with libdrm.
As CI doesn't have Gen2 I couldn't add and test software tiling code on that generation. For that single case hardware tiling is enforced and switch to software fallback is not possible.
For generations which supports hardware tiling bufops does idempotency test which should reveal is surface equal regardless using hardware or software copying method.
v6:
- rename igt_buf_ccs_width/height to igt_buf_intel_ccs_width/height pointing ccs field in igt_buf is vendor dependent.
- fixing code compilation dependency and order.
v7:
- fixing support CCS data for vebox copy
- adding support for copying CCS data to/from linear
Zbigniew Kempczyński (5):
lib/intel_bufops: Introduce buffer operations lib/intel_batchbuffer: Add CCS width/height functions for Intel
igt_buf
lib/rendercopy_bufmgr: Add rendercopy buffer manager i915/gem_render_copy.c: Simplify code by switch to rendercopy bufmgr
HAX: run gem_render_copy tests in BAT
.../igt-gpu-tools/igt-gpu-tools-docs.xml | 1 + lib/Makefile.sources | 4 + lib/intel_batchbuffer.c | 47 + lib/intel_batchbuffer.h | 2 + lib/intel_bufops.c | 1168 +++++++++++++++++ lib/intel_bufops.h | 84 ++ lib/meson.build | 2 + lib/rendercopy_bufmgr.c | 175 +++ lib/rendercopy_bufmgr.h | 28 + tests/i915/gem_render_copy.c | 423 ++---- tests/intel-ci/fast-feedback.testlist | 38 + 11 files changed, 1666 insertions(+), 306 deletions(-) create mode 100644 lib/intel_bufops.c create mode 100644 lib/intel_bufops.h create mode 100644 lib/rendercopy_bufmgr.c create mode 100644 lib/rendercopy_bufmgr.h
Signature · 6 lines
2.23.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v7 1/5 lib/intel_bufops: Introduce buffer operations
Different GENs supports different tile surfaces. Older GENs have HW fences to allow X / Y surface tiling / detiling. Newer GENs have to tile / detile such surface in software.
To make test developer life easier this code adds buffer operations (short buf_ops) to use appropriate functions allowing copying linear buffer to BO and from BO to linear buffer regardless GPU generation and tiling/swizzling within BO. For GENs having fences support preference is to use them if they are available (X / Y tiling is probed on buf_ops initialization).
Note: on Gen2 code supports only HW tiling at the moment.
--- .../igt-gpu-tools/igt-gpu-tools-docs.xml | 1 + lib/Makefile.sources | 2 + lib/intel_bufops.c | 1168 +++++++++++++++++ lib/intel_bufops.h | 84 ++ lib/meson.build | 1 + 5 files changed, 1256 insertions(+) create mode 100644 lib/intel_bufops.c create mode 100644 lib/intel_bufops.h
docs/reference/igt-gpu-tools/igt-gpu-tools-docs.xml +1 -0
@@ -42,6 +42,7 @@ <xi:include href="xml/igt_vgem.xml"/> <xi:include href="xml/igt_x86.xml"/> <xi:include href="xml/intel_batchbuffer.xml"/> + <xi:include href="xml/intel_bufops.xml"/> <xi:include href="xml/intel_chipset.xml"/> <xi:include href="xml/intel_io.xml"/> <xi:include href="xml/ioctl_wrappers.xml"/>
lib/Makefile.sources +2 -0
@@ -67,6 +67,8 @@ lib_source_list = \ intel_aub.h \ intel_batchbuffer.c \ intel_batchbuffer.h \ + intel_bufops.c \ + intel_bufops.h \ intel_chipset.c \ intel_chipset.h \ intel_device_info.c \
lib/intel_bufops.c new file +1168 -0
1,168 lines not on this page · raw message
lib/intel_bufops.h new file +84 -0
84 lines not on this page · raw message
lib/meson.build +1 -0
@@ -27,6 +27,7 @@ lib_sources = [ 'igt_x86.c', 'instdone.c', 'intel_batchbuffer.c', + 'intel_bufops.c', 'intel_chipset.c', 'intel_device_info.c', 'intel_os.c',
Signature · 6 lines
2.23.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v7 2/5 lib/intel_batchbuffer: Add CCS width/height functions for Intel igt_buf
In reply to Zbigniew Kempczyńskiigt_buf has some fields which can be interpreted differently across vendors (ccs structure). Patch adds functions which are aware of meaning of this field.
--- lib/intel_batchbuffer.c | 47 +++++++++++++++++++++++++++++++++++++++++ lib/intel_batchbuffer.h | 2 ++ 2 files changed, 49 insertions(+)
lib/intel_batchbuffer.c +47 -0
@@ -43,6 +43,7 @@#include "ioctl_wrappers.h" #include "media_spin.h" #include "gpgpu_fill.h" +#include "igt_aux.h" #include <i915_drm.h>
@@ -529,6 +530,52 @@ unsigned igt_buf_height(const struct igt_buf *buf)return buf->surface[0 ].size/buf->surface[0 ].stride; } +/** +* igt_buf_intel_ccs_width: +* @buf: the Intel i-g-t buffer object +* @gen: device generation +* +* Computes the width of ccs buffer when considered as Intel surface data. +* +* Returns: +* The width of the ccs buffer data. +*/ +unsigned int igt_buf_intel_ccs_width (int gen,const struct igt_buf *buf) +{ +/* +* GEN12+: The CCS unit size is 64 bytes mapping 4 main surface +* tiles. Thus the width of the CCS unit is 4*32=128 pixels on the +* main surface. +*/ +if (gen >=12 ) +return DIV_ROUND_UP (igt_buf_width (buf),128 ) *64 ; + +return DIV_ROUND_UP (igt_buf_width (buf),1024 ) *128 ; +} + +/** +* igt_buf_intel_ccs_height: +* @buf: the i-g-t buffer object +* @gen: device generation +* +* Computes the height of ccs buffer when considered as Intel surface data. +* +* Returns: +* The height of the ccs buffer data. +*/ +unsigned int igt_buf_intel_ccs_height (int gen,const struct igt_buf *buf) +{ +/* +* GEN12+: The CCS unit size is 64 bytes mapping 4 main surface +* tiles. Thus the height of the CCS unit is 32 pixel rows on the main +* surface. +*/ +if (gen >=12 ) +return DIV_ROUND_UP (igt_buf_height (buf),32 ); + +return DIV_ROUND_UP (igt_buf_height (buf),512 ) *32 ; +} +/* * pitches are in bytes if the surfaces are linear, number of dwords * otherwise
lib/intel_batchbuffer.h +2 -0
@@ -262,6 +262,8 @@ static inline bool igt_buf_compressed(const struct igt_buf *buf)unsigned igt_buf_width (const struct igt_buf *buf);unsigned igt_buf_height (const struct igt_buf *buf); +unsigned int igt_buf_intel_ccs_width (int gen,const struct igt_buf *buf); +unsigned int igt_buf_intel_ccs_height (int gen,const struct igt_buf *buf); void igt_blitter_fast_copy(struct intel_batchbuffer *batch, const struct igt_buf *src, unsigned src_delta,
Signature · 6 lines
2.23.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v7 3/5 lib/rendercopy_bufmgr: Add rendercopy buffer manager
In reply to Zbigniew KempczyńskiThis is middle layer between render copy tests and buffer operations (buf_ops). Render copy tests uses libdrm so adding wrapper to independent buf_ops was necessary.
--- lib/Makefile.sources | 2 + lib/meson.build | 1 + lib/rendercopy_bufmgr.c | 175 ++++++++++++++++++++++++++++++++++++++++ lib/rendercopy_bufmgr.h | 28 +++++++ 4 files changed, 206 insertions(+) create mode 100644 lib/rendercopy_bufmgr.c create mode 100644 lib/rendercopy_bufmgr.h
lib/Makefile.sources +2 -0
@@ -95,6 +95,8 @@ lib_source_list = \ gen7_render.h \ gen8_render.h \ gen9_render.h \ + rendercopy_bufmgr.c \ + rendercopy_bufmgr.h \ rendercopy_gen4.c \ rendercopy_gen6.c \ rendercopy_gen7.c \
lib/meson.build +1 -0
@@ -39,6 +39,7 @@ lib_sources = [ 'gpu_cmds.c', 'rendercopy_i915.c', 'rendercopy_i830.c', + 'rendercopy_bufmgr.c', 'rendercopy_gen4.c', 'rendercopy_gen6.c', 'rendercopy_gen7.c',
lib/rendercopy_bufmgr.c new file +175 -0
175 lines not on this page · raw message
lib/rendercopy_bufmgr.h new file +28 -0
@@ -0,0 +1,28 @@ +#ifndef __RENDERCOPY_BUFMGR_H__ +#define __RENDERCOPY_BUFMGR_H__ + +#include <stdint.h> +#include "intel_bufops.h" +#include "intel_batchbuffer.h" + +struct rendercopy_bufmgr ; + +struct rendercopy_bufmgr *rendercopy_bufmgr_create (int fd, +drm_intel_bufmgr *bufmgr); +void rendercopy_bufmgr_destroy (struct rendercopy_bufmgr *bmgr); + +bool rendercopy_bufmgr_set_software_tiling (struct rendercopy_bufmgr *bmgr, +uint32_t tiling, +bool use_software_tiling); + +void igt_buf_to_linear (struct rendercopy_bufmgr *bmgr,struct igt_buf *buf, +uint32_t *linear); + +void linear_to_igt_buf (struct rendercopy_bufmgr *bmgr,struct igt_buf *buf, +uint32_t *linear); + +void igt_buf_init (struct rendercopy_bufmgr *bmgr,struct igt_buf *buf, +int width,int height,int bpp, +uint32_t tiling,uint32_t compression); + +#endif
Signature · 6 lines
2.23.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v7 4/5 i915/gem_render_copy.c: Simplify code by switch to rendercopy bufmgr
In reply to Zbigniew KempczyńskiSwitch to rendercopy bufmgr to simplify working with tiled surfaces.
--- tests/i915/gem_render_copy.c | 423 ++++++++++------------------------- 1 file changed, 117 insertions(+), 306 deletions(-)
tests/i915/gem_render_copy.c +117 -306
@@ -47,6 +47,7 @@#include <drm.h> #include "intel_bufmgr.h" +#include "rendercopy_bufmgr.h" IGT_TEST_DESCRIPTION ("Basic test for the render_copy() function." );
@@ -60,9 +61,11 @@ typedef struct {struct intel_batchbuffer *batch;igt_render_copyfunc_t render_copy;igt_vebox_copyfunc_t vebox_copy; +struct rendercopy_bufmgr *bmgr; } data_t;static int opt_dump_png = false;static int check_all_pixels = false; +static bool dump_compressed_src_buf = false;static const char *make_filename (const char *filename) {
@@ -73,131 +76,13 @@ static const char *make_filename(const char *filename)return buf; } -static void *yf_ptr (void *ptr, -unsigned int x,unsigned int y, -unsigned int stride,unsigned int cpp) +static void *alloc_aligned (uint64_t size) { -const int tile_size =4 *1024 ; -const int tile_width =128 ; -int row_size = (stride / tile_width) * tile_size; +void *p; - x *= cpp;/* convert to Byte offset */ +igt_assert_eq (posix_memalign (&p,16 , size),0 ); - -/* -* Within a 4k Yf tile, the byte swizzling pattern is -* msb......lsb -* xyxyxyyyxxxx -* The tiles themselves are laid out in row major order. -*/ -return ptr + - ((x &0xf ) *1 ) +/* 4x1 pixels(32bpp) = 16B */ - ((y &0x3 ) *16 ) +/* 4x4 pixels = 64B */ - (((y &0x4 ) >>2 ) *64 ) +/* 1x2 64B blocks */ - (((x &0x10 ) >>4 ) *128 ) +/* 2x2 64B blocks = 256B block */ - (((y &0x8 ) >>3 ) *256 ) +/* 2x1 256B blocks */ - (((x &0x20 ) >>5 ) *512 ) +/* 2x2 256B blocks */ - (((y &0x10 ) >>4 ) *1024 ) +/* 4x2 256 blocks */ - (((x &0x40 ) >>6 ) *2048 ) +/* 4x4 256B blocks = 4k tile */ - (((x & ~0x7f ) >>7 ) * tile_size) +/* row of tiles */ - (((y & ~0x1f ) >>5 ) * row_size); -} - -static void copy_linear_to_yf (data_t *data,struct igt_buf *buf, -const uint32_t *linear) -{ -int height =igt_buf_height (buf); -int width =igt_buf_width (buf); -void *map; - -gem_set_domain (data->drm_fd, buf->bo->handle, -I915_GEM_DOMAIN_CPU ,I915_GEM_DOMAIN_CPU ); - map =gem_mmap__cpu (data->drm_fd, buf->bo->handle,0 , - buf->bo->size,PROT_READ |PROT_WRITE ); - -for (int y =0 ; y < height; y++) { -for (int x =0 ; x < width; x++) { -uint32_t *ptr =yf_ptr (map, x, y, - buf->surface[0 ].stride, - buf->bpp /8 ); - - *ptr = linear[y * width + x]; - } - } - -munmap (map, buf->bo->size); -} - -static void copy_yf_to_linear (data_t *data,struct igt_buf *buf, -uint32_t *linear) -{ -int height =igt_buf_height (buf); -int width =igt_buf_width (buf); -void *map; - -gem_set_domain (data->drm_fd, buf->bo->handle, -I915_GEM_DOMAIN_CPU ,0 ); - map =gem_mmap__cpu (data->drm_fd, buf->bo->handle,0 , - buf->bo->size,PROT_READ ); - -for (int y =0 ; y < height; y++) { -for (int x =0 ; x < width; x++) { -uint32_t *ptr =yf_ptr (map, x, y, - buf->surface[0 ].stride, - buf->bpp /8 ); - - linear[y * width + x] = *ptr; - } - } - -munmap (map, buf->bo->size); -} - -static void copy_linear_to_gtt (data_t *data,struct igt_buf *buf, -const uint32_t *linear) -{ -void *map; - -gem_set_domain (data->drm_fd, buf->bo->handle, -I915_GEM_DOMAIN_GTT ,I915_GEM_DOMAIN_GTT ); - - map =gem_mmap__gtt (data->drm_fd, buf->bo->handle, - buf->bo->size,PROT_READ |PROT_WRITE ); - -memcpy (map, linear, buf->bo->size); - -munmap (map, buf->bo->size); -} - -static void copy_gtt_to_linear (data_t *data,struct igt_buf *buf, -uint32_t *linear) -{ -void *map; - -gem_set_domain (data->drm_fd, buf->bo->handle, -I915_GEM_DOMAIN_GTT ,0 ); - - map =gem_mmap__gtt (data->drm_fd, buf->bo->handle, - buf->bo->size,PROT_READ ); - -igt_memcpy_from_wc (linear, map, buf->bo->size); - -munmap (map, buf->bo->size); -} - -static void *linear_copy (data_t *data,struct igt_buf *buf) -{ -void *linear; - -/* 16B alignment allows to potentially make use of SSE4 for copying */ -igt_assert_eq (posix_memalign (&linear,16 , buf->bo->size),0 ); - -if (buf->tiling == I915_TILING_Yf) -copy_yf_to_linear (data, buf, linear); -else -copy_gtt_to_linear (data, buf, linear); - -return linear; +return p; } static void
@@ -209,13 +94,13 @@ copy_from_linear_buf(data_t *data, struct igt_buf *src, struct igt_buf *dst)gem_set_domain (data->drm_fd, src->bo->handle,I915_GEM_DOMAIN_CPU ,0 ); - linear =gem_mmap__cpu (data->drm_fd, src->bo->handle,0 , - src->bo->size,PROT_READ ); + linear =__gem_mmap_offset__cpu (data->drm_fd, src->bo->handle,0 , + src->bo->size,PROT_READ ); +if (!linear) + linear =gem_mmap__cpu (data->drm_fd, src->bo->handle,0 , + src->bo->size,PROT_READ ); -if (dst->tiling == I915_TILING_Yf) -copy_linear_to_yf (data, dst, linear); -else -copy_linear_to_gtt (data, dst, linear); +linear_to_igt_buf (data->bmgr, dst, linear);munmap (linear, src->bo->size); }
@@ -227,7 +112,8 @@ static void scratch_buf_write_to_png(data_t *data, struct igt_buf *buf,cairo_status_t ret;void *linear; - linear =linear_copy (data, buf); + linear =alloc_aligned (buf->bo->size); +igt_buf_to_linear (data->bmgr, buf, linear); surface = cairo_image_surface_create_for_data(linear, CAIRO_FORMAT_RGB24,
@@ -241,67 +127,41 @@ static void scratch_buf_write_to_png(data_t *data, struct igt_buf *buf,free (linear); } -static int scratch_buf_aux_width (uint32_t devid,const struct igt_buf *buf) -{ -/* -* GEN12+: The AUX CCS unit size is 64 bytes mapping 4 main surface -* tiles. Thus the width of the CCS unit is 4*32=128 pixels on the -* main surface. -*/ -if (intel_gen (devid) >=12 ) -return DIV_ROUND_UP (igt_buf_width (buf),128 ) *64 ; - -return DIV_ROUND_UP (igt_buf_width (buf),1024 ) *128 ; -} - -static int scratch_buf_aux_height (uint32_t devid,const struct igt_buf *buf) -{ -/* -* GEN12+: The AUX CCS unit size is 64 bytes mapping 4 main surface -* tiles. Thus the height of the CCS unit is 32 pixel rows on the main -* surface. -*/ -if (intel_gen (devid) >=12 ) -return DIV_ROUND_UP (igt_buf_height (buf),32 ); - -return DIV_ROUND_UP (igt_buf_height (buf),512 ) *32 ; -} - -static void *linear_copy_aux (data_t *data,struct igt_buf *buf) +static void *linear_copy_ccs (data_t *data,struct igt_buf *buf) { -void *map, *linear; -int aux_size =scratch_buf_aux_width (data->devid, buf) * -scratch_buf_aux_height (data->devid, buf); - -igt_assert_eq (posix_memalign (&linear,16 , aux_size),0 ); - -gem_set_domain (data->drm_fd, buf->bo->handle, -I915_GEM_DOMAIN_GTT ,0 ); +void *ccs_data, *linear; +int gen =intel_gen (data->devid); +int ccs_size =igt_buf_intel_ccs_width (gen, buf) * +igt_buf_intel_ccs_height (gen, buf); - map =gem_mmap__gtt (data->drm_fd, buf->bo->handle, - buf->bo->size,PROT_READ ); + ccs_data =alloc_aligned (ccs_size); + linear =alloc_aligned (buf->bo->size); +memset (linear,0 , buf->bo->size); -igt_memcpy_from_wc (linear, map + buf->ccs[0 ].offset, aux_size); +igt_buf_to_linear (data->bmgr, buf, linear); +igt_memcpy_from_wc (ccs_data, linear + buf->ccs[0 ].offset, ccs_size); -munmap (map, buf->bo->size); +free (linear); -return linear; +return ccs_data; } -static void scratch_buf_aux_write_to_png (data_t *data, +static void scratch_buf_ccs_write_to_png (data_t *data,struct igt_buf *buf,const char *filename) {cairo_surface_t *surface;cairo_status_t ret;void *linear; +int gen =intel_gen (data->devid); +unsigned int ccs_width =igt_buf_intel_ccs_width (gen, buf); +unsigned int ccs_height =igt_buf_intel_ccs_height (gen, buf); - linear =linear_copy_aux (data, buf); + linear =linear_copy_ccs (data, buf); surface =cairo_image_surface_create_for_data (linear,CAIRO_FORMAT_A8 , -scratch_buf_aux_width (data->devid, buf), -scratch_buf_aux_height (data->devid, buf), + ccs_width, ccs_height, buf->ccs[0 ].stride); ret =cairo_surface_write_to_png (surface,make_filename (filename));igt_assert (ret ==CAIRO_STATUS_SUCCESS );
@@ -320,7 +180,7 @@ static void scratch_buf_draw_pattern(data_t *data, struct igt_buf *buf,cairo_t *cr;void *linear; - linear =linear_copy (data, buf); + linear =alloc_aligned (buf->bo->size); surface = cairo_image_surface_create_for_data(linear, CAIRO_FORMAT_RGB24,
@@ -361,10 +221,7 @@ static void scratch_buf_draw_pattern(data_t *data, struct igt_buf *buf,cairo_surface_destroy (surface); -if (buf->tiling == I915_TILING_Yf) -copy_linear_to_yf (data, buf, linear); -else -copy_linear_to_gtt (data, buf, linear); +linear_to_igt_buf (data->bmgr, buf, linear);free (linear); }
@@ -377,6 +234,7 @@ scratch_buf_copy(data_t *data,int width =igt_buf_width (dst);int height =igt_buf_height (dst);uint32_t *linear_dst; +uint32_t *linear_src;igt_assert_eq (igt_buf_width (dst),igt_buf_width (src));igt_assert_eq (igt_buf_height (dst),igt_buf_height (src));
@@ -389,49 +247,20 @@ scratch_buf_copy(data_t *data, h =min (h, height - sy); h =min (h, height - dy); -gem_set_domain (data->drm_fd, dst->bo->handle, -I915_GEM_DOMAIN_GTT ,I915_GEM_DOMAIN_GTT ); - linear_dst =gem_mmap__gtt (data->drm_fd, dst->bo->handle, - dst->bo->size,PROT_WRITE ); - -if (src->tiling == I915_TILING_Yf) { -void *map; - -gem_set_domain (data->drm_fd, src->bo->handle, -I915_GEM_DOMAIN_CPU ,0 ); - map =gem_mmap__cpu (data->drm_fd, src->bo->handle,0 , - src->bo->size,PROT_READ ); - -for (int y =0 ; y < h; y++) { -for (int x =0 ; x < w; x++) { -const uint32_t *ptr =yf_ptr (map, sx+x, sy+y, - src->surface[0 ].stride, - src->bpp /8 ); - - linear_dst[(dy+y) * width + dx+x] = *ptr; - } - } - -munmap (map, src->bo->size); - }else { -uint32_t *linear_src; - -gem_set_domain (data->drm_fd, src->bo->handle, -I915_GEM_DOMAIN_GTT ,0 ); - - linear_src =gem_mmap__gtt (data->drm_fd, src->bo->handle, - src->bo->size,PROT_READ ); - -for (int y =0 ; y < h; y++) { -igt_memcpy_from_wc (&linear_dst[(dy+y) * width + dx], - &linear_src[(sy+y) * width + sx], - w * (src->bpp /8 )); - } + linear_dst =alloc_aligned (dst->bo->size); + linear_src =alloc_aligned (src->bo->size); +igt_buf_to_linear (data->bmgr, src, linear_src); +igt_buf_to_linear (data->bmgr, dst, linear_dst); -munmap (linear_src, src->bo->size); +for (int y =0 ; y < h; y++) { +memcpy (&linear_dst[(dy+y) * width + dx], + &linear_src[(sy+y) * width + sx], + w * (src->bpp /8 )); } +free (linear_src); -munmap (linear_dst, dst->bo->size); +linear_to_igt_buf (data->bmgr, dst, linear_dst); +free (linear_dst); } static void scratch_buf_init(data_t *data, struct igt_buf *buf,
@@ -439,76 +268,10 @@ static void scratch_buf_init(data_t *data, struct igt_buf *buf,uint32_t req_tiling, enum i915_compression compression) { - uint32_t tiling = req_tiling; -unsigned long pitch; int bpp = 32; -memset (buf,0 ,sizeof (*buf)); - -if (compression !=I915_COMPRESSION_NONE ) { -int aux_width, aux_height; -int size; - -igt_require (intel_gen (data->devid) >=9 ); -igt_assert (tiling ==I915_TILING_Y || - tiling == I915_TILING_Yf); - -/* -* On GEN12+ we align the main surface to 4 * 4 main surface -* tiles, which is 64kB. These 16 tiles are mapped by 4 AUX -* CCS units, that is 4 * 64 bytes. These 4 CCS units are in -* turn mapped by one L1 AUX page table entry. -*/ -if (intel_gen (data->devid) >=12 ) - buf->surface[0 ].stride =ALIGN (width * (bpp /8 ),128 *4 ); -else - buf->surface[0 ].stride =ALIGN (width * (bpp /8 ),128 ); - -if (intel_gen (data->devid) >=12 ) - height =ALIGN (height,4 *32 ); - - buf->surface[0 ].size = buf->surface[0 ].stride * height; - buf->tiling = tiling; - buf->bpp = bpp; - - aux_width =scratch_buf_aux_width (data->devid, buf); - aux_height =scratch_buf_aux_height (data->devid, buf); - - buf->compression = compression; - buf->ccs[0 ].offset = buf->surface[0 ].stride *ALIGN (height,32 ); - buf->ccs[0 ].stride = aux_width; - - size = buf->ccs[0 ].offset + aux_width * aux_height; - - buf->bo =drm_intel_bo_alloc (data->bufmgr,"" , size,4096 ); - -if (tiling ==I915_TILING_Y ) { -drm_intel_bo_set_tiling (buf->bo, &tiling, - buf->surface[0 ].stride); -igt_assert_eq (tiling, req_tiling); - } - }else if (req_tiling == I915_TILING_Yf) { -int size; - - buf->surface[0 ].stride =ALIGN (width * (bpp /8 ),128 ); - buf->surface[0 ].size = buf->surface[0 ].stride * height; - buf->tiling = tiling; - buf->bpp = bpp; - - size = buf->surface[0 ].stride *ALIGN (height,32 ); - - buf->bo =drm_intel_bo_alloc (data->bufmgr,"" , size,4096 ); - }else { - buf->bo =drm_intel_bo_alloc_tiled (data->bufmgr,"" , - width, height, bpp /8 , - &tiling, &pitch,0 ); -igt_assert_eq (tiling, req_tiling); - - buf->surface[0 ].stride = pitch; - buf->tiling = tiling; - buf->surface[0 ].size = pitch * height; - buf->bpp = bpp; - } +igt_buf_init (data->bmgr, buf, width, height, bpp, req_tiling, + compression);igt_assert (igt_buf_width (buf) == width);igt_assert (igt_buf_height (buf) == height);
@@ -533,11 +296,13 @@ scratch_buf_check(data_t *data,igt_assert_eq (igt_buf_height (buf),igt_buf_height (ref));igt_assert_eq (buf->bo->size, ref->bo->size); - linear =linear_copy (data, buf); + linear =alloc_aligned (buf->bo->size); +igt_buf_to_linear (data->bmgr, buf, linear); buf_val = linear[y * width + x];free (linear); - linear =linear_copy (data, ref); + linear =alloc_aligned (ref->bo->size); +igt_buf_to_linear (data->bmgr, buf, linear); ref_val = linear[y * width + x];free (linear);
@@ -559,8 +324,10 @@ scratch_buf_check_all(data_t *data,igt_assert_eq (igt_buf_height (buf),igt_buf_height (ref));igt_assert_eq (buf->bo->size, ref->bo->size); - linear_buf =linear_copy (data, buf); - linear_ref =linear_copy (data, ref); + linear_buf =alloc_aligned (buf->bo->size); + linear_ref =alloc_aligned (ref->bo->size); +igt_buf_to_linear (data->bmgr, buf, linear_buf); +igt_buf_to_linear (data->bmgr, ref, linear_ref);for (int y =0 ; y < height; y++) {for (int x =0 ; x < width; x++) {
@@ -577,25 +344,49 @@ scratch_buf_check_all(data_t *data,free (linear_buf); } -static void scratch_buf_aux_check (data_t *data, +static void scratch_buf_ccs_check (data_t *data,struct igt_buf *buf) { -int aux_size =scratch_buf_aux_width (data->devid, buf) * -scratch_buf_aux_height (data->devid, buf); +int gen =intel_gen (data->devid); +int ccs_size =igt_buf_intel_ccs_width (gen, buf) * +igt_buf_intel_ccs_height (gen, buf);uint8_t *linear;int i; - linear =linear_copy_aux (data, buf); + linear =linear_copy_ccs (data, buf); -for (i =0 ; i < aux_size; i++) { +for (i =0 ; i < ccs_size; i++) {if (linear[i])break ; }free (linear); -igt_assert_f (i < aux_size, -"Aux surface indicates that nothing was compressed\n" ); +igt_assert_f (i < ccs_size, +"Ccs surface indicates that nothing was compressed\n" ); +} + +static void +dump_igt_buf_to_file (data_t *data,struct igt_buf *buf,const char *filename) +{ +FILE *out; +void *linear; + +gem_set_domain (data->drm_fd, buf->bo->handle, +I915_GEM_DOMAIN_CPU ,0 ); + + linear =__gem_mmap_offset__cpu (data->drm_fd, buf->bo->handle,0 , + buf->bo->size,PROT_READ ); +if (!linear) + linear =gem_mmap__cpu (data->drm_fd, buf->bo->handle,0 , + buf->bo->size,PROT_READ ); + out =fopen (filename,"wb" ); +igt_assert (out); +fwrite (linear, buf->bo->size,1 , out); +fclose (out); + +munmap (linear, buf->bo->size); + }#define SOURCE_MIXED_TILED 1
@@ -671,6 +462,7 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling, I915_COMPRESSION_NONE);scratch_buf_init (data, &dst,WIDTH ,HEIGHT , dst_tiling,I915_COMPRESSION_NONE ); +if (src_compressed)scratch_buf_init (data, &src_ccs,WIDTH ,HEIGHT , src_tiling, src_compression);
@@ -683,7 +475,8 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling,for (int i =0 ; i < num_src; i++)scratch_buf_draw_pattern (data, &src[i].buf,0 ,0 ,WIDTH ,HEIGHT , -0 ,0 ,WIDTH ,HEIGHT , true); +0 ,0 ,WIDTH ,HEIGHT , (i %2 )); +scratch_buf_draw_pattern (data, &dst,0 ,0 ,WIDTH ,HEIGHT ,0 ,0 ,WIDTH ,HEIGHT , false);
@@ -742,15 +535,29 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling, &dst, 0, 0); }else { -if (src_compression ==I915_COMPRESSION_RENDER ) +if (src_compression ==I915_COMPRESSION_RENDER ) { data->render_copy (data->batch,NULL , &src_tiled,0 ,0 ,WIDTH ,HEIGHT , &src_ccs,0 ,0 ); -else if (src_compression ==I915_COMPRESSION_MEDIA ) +if (dump_compressed_src_buf) { +dump_igt_buf_to_file (data, &src_tiled, +"render-src_tiled.bin" ); +dump_igt_buf_to_file (data, &src_ccs, +"render-src_ccs.bin" ); + } + } +else if (src_compression ==I915_COMPRESSION_MEDIA ) { data->vebox_copy (data->batch, &src_tiled,WIDTH ,HEIGHT , &src_ccs); +if (dump_compressed_src_buf) { +dump_igt_buf_to_file (data, &src_tiled, +"vebox-src_tiled.bin" ); +dump_igt_buf_to_file (data, &src_ccs, +"vebox-src_ccs.bin" ); + } + }if (dst_compression ==I915_COMPRESSION_RENDER ) { data->render_copy(data->batch, NULL,
@@ -793,14 +600,14 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling,if (src_compressed) {scratch_buf_write_to_png (data, &src_ccs,"compressed-src.png" ); -scratch_buf_aux_write_to_png (data, &src_ccs, -"compressed-src-aux.png" ); +scratch_buf_ccs_write_to_png (data, &src_ccs, +"compressed-src-ccs.png" ); }if (dst_compressed) {scratch_buf_write_to_png (data, &dst_ccs,"compressed-dst.png" ); -scratch_buf_aux_write_to_png (data, &dst_ccs, -"compressed-dst-aux.png" ); +scratch_buf_ccs_write_to_png (data, &dst_ccs, +"compressed-dst-ccs.png" ); } }
@@ -819,9 +626,9 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling, }if (src_compressed) -scratch_buf_aux_check (data, &src_ccs); +scratch_buf_ccs_check (data, &src_ccs);if (dst_compressed) -scratch_buf_aux_check (data, &dst_ccs); +scratch_buf_ccs_check (data, &dst_ccs);scratch_buf_fini (&ref);if (dst_compressed)
@@ -1054,6 +861,9 @@ igt_main_args("da", NULL, help_str, opt_handler, NULL) data.batch =intel_batchbuffer_alloc (data.bufmgr, data.devid);igt_assert (data.batch); + data.bmgr =rendercopy_bufmgr_create (data.drm_fd, data.bufmgr); +igt_assert (data.bmgr); +igt_fork_hang_detector (data.drm_fd); }
@@ -1107,5 +917,6 @@ igt_main_args("da", NULL, help_str, opt_handler, NULL)igt_stop_hang_detector ();intel_batchbuffer_free (data.batch);drm_intel_bufmgr_destroy (data.bufmgr); +rendercopy_bufmgr_destroy (data.bmgr); } }
Signature · 6 lines
2.23.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH v7 5/5 HAX: run gem_render_copy tests in BAT
In reply to Zbigniew Kempczyński--- tests/intel-ci/fast-feedback.testlist | 38 +++++++++++++++++++++++++++ 1 file changed, 38 insertions(+)
tests/intel-ci/fast-feedback.testlist +38 -0
@@ -56,6 +56,44 @@ igt@gem_mmap_gtt@basic-write-gtt-no-prefault igt@gem_mmap_gtt@basic-write-no-prefault igt@gem_mmap_gtt@basic-write-read igt@gem_mmap_gtt@basic-write-read-distinct +igt@gem_render_copy@linear +igt@gem_render_copy@x-tiled +igt@gem_render_copy@y-tiled +igt@gem_render_copy@yf-tiled +igt@gem_render_copy@mixed-tiled-to-y-tiled-ccs +igt@gem_render_copy@mixed-tiled-to-yf-tiled-ccs +igt@gem_render_copy@y-tiled-ccs-to-linear +igt@gem_render_copy@y-tiled-ccs-to-x-tiled +igt@gem_render_copy@y-tiled-ccs-to-y-tiled +igt@gem_render_copy@y-tiled-ccs-to-yf-tiled +igt@gem_render_copy@yf-tiled-ccs-to-linear +igt@gem_render_copy@yf-tiled-ccs-to-x-tiled +igt@gem_render_copy@yf-tiled-ccs-to-y-tiled +igt@gem_render_copy@yf-tiled-ccs-to-yf-tiled +igt@gem_render_copy@y-tiled-ccs-to-y-tiled-ccs +igt@gem_render_copy@yf-tiled-ccs-to-yf-tiled-ccs +igt@gem_render_copy@y-tiled-ccs-to-yf-tiled-ccs +igt@gem_render_copy@yf-tiled-ccs-to-y-tiled-ccs +igt@gem_render_copy@linear-to-vebox-yf-tiled +igt@gem_render_copy@linear-to-vebox-y-tiled +igt@gem_render_copy@x-tiled-to-vebox-yf-tiled +igt@gem_render_copy@x-tiled-to-vebox-y-tiled +igt@gem_render_copy@y-tiled-to-vebox-linear +igt@gem_render_copy@y-tiled-to-vebox-x-tiled +igt@gem_render_copy@y-tiled-to-vebox-y-tiled +igt@gem_render_copy@y-tiled-to-vebox-yf-tiled +igt@gem_render_copy@yf-tiled-to-vebox-linear +igt@gem_render_copy@yf-tiled-to-vebox-x-tiled +igt@gem_render_copy@yf-tiled-to-vebox-yf-tiled +igt@gem_render_copy@yf-tiled-to-vebox-y-tiled +igt@gem_render_copy@y-tiled-mc-ccs-to-vebox-y-tiled +igt@gem_render_copy@yf-tiled-mc-ccs-to-vebox-yf-tiled +igt@gem_render_copy@y-tiled-mc-ccs-to-vebox-yf-tiled +igt@gem_render_copy@yf-tiled-mc-ccs-to-vebox-y-tiled +igt@gem_render_copy@y-tiled-mc-ccs-to-y-tiled-ccs +igt@gem_render_copy@y-tiled-mc-ccs-to-yf-tiled-ccs +igt@gem_render_copy@y-tiled-ccs-to-y-tiled-mc-ccs +igt@gem_render_copy@y-tiled-ccs-to-yf-tiled-mc-ccs igt@gem_render_linear_blits@basic igt@gem_render_tiled_blits@basic igt@gem_ringfill@basic-default
Signature · 6 lines
2.23.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for Simplify working on tiled surfaces over GenX (rev3)
In reply to Zbigniew Kempczyński== Series Details ==
== Series Details ==
Series: Simplify working on tiled surfaces over GenX (rev3)
URL : https://patchwork.freedesktop.org/series/71740/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_7728 -> IGTPW_3917
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_3917 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_3917, 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_3917/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_3917:
### IGT changes ###
#### Possible regressions ####
* igt@gem_render_copy@linear-to-vebox-yf-tiled:
- fi-bsw-n3050: NOTRUN -> [FAIL][1] +37 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-bsw-n3050/igt@[email protected]
* igt@gem_render_copy@x-tiled-to-vebox-y-tiled:
- fi-pnv-d510: NOTRUN -> [FAIL][2] +37 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-pnv-d510/igt@[email protected]
* igt@gem_render_copy@x-tiled-to-vebox-yf-tiled:
- fi-byt-j1900: NOTRUN -> [FAIL][3] +37 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-byt-j1900/igt@[email protected]
* igt@gem_render_copy@y-tiled:
- fi-bsw-kefka: NOTRUN -> [FAIL][4] +37 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-bsw-kefka/igt@[email protected]
* igt@gem_render_copy@y-tiled-ccs-to-y-tiled:
- fi-elk-e7500: NOTRUN -> [FAIL][5] +37 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-elk-e7500/igt@[email protected]
* igt@gem_render_copy@y-tiled-ccs-to-y-tiled-mc-ccs:
- fi-blb-e6850: NOTRUN -> [FAIL][6] +37 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-blb-e6850/igt@[email protected]
* igt@gem_render_copy@y-tiled-mc-ccs-to-yf-tiled-ccs:
- fi-ilk-650: NOTRUN -> [FAIL][7] +37 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-ilk-650/igt@[email protected]
* igt@gem_render_copy@yf-tiled:
- fi-bwr-2160: NOTRUN -> [FAIL][8] +37 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-bwr-2160/igt@[email protected]
* igt@gem_render_copy@yf-tiled-ccs-to-yf-tiled:
- fi-byt-n2820: NOTRUN -> [FAIL][9] +37 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-byt-n2820/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@gem_render_copy@yf-tiled-to-vebox-yf-tiled:
- {fi-ehl-1}: NOTRUN -> [SKIP][10] +19 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-ehl-1/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_3917 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_switch@rcs0:
- fi-icl-guc: [PASS][11] -> [INCOMPLETE][12] ([i915#140])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-icl-guc/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-icl-guc/igt@[email protected]
* igt@i915_module_load@reload-with-fault-injection:
- fi-skl-6700k2: [PASS][13] -> [DMESG-WARN][14] ([i915#889])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-skl-6700k2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-skl-6700k2/igt@[email protected]
- fi-skl-lmem: [PASS][15] -> [INCOMPLETE][16] ([i915#671])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-skl-lmem/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-skl-lmem/igt@[email protected]
* igt@i915_selftest@live_blt:
- fi-hsw-4770: [PASS][17] -> [DMESG-FAIL][18] ([i915#553] / [i915#725])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-hsw-4770/igt@i915_selftest@live_blt.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-hsw-4770/igt@i915_selftest@live_blt.html
* igt@i915_selftest@live_gem_contexts:
- fi-byt-j1900: [PASS][19] -> [DMESG-FAIL][20] ([i915#722])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-byt-j1900/igt@i915_selftest@live_gem_contexts.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-byt-j1900/igt@i915_selftest@live_gem_contexts.html
* igt@i915_selftest@live_gt_lrc:
- fi-skl-6600u: [PASS][21] -> [DMESG-FAIL][22] ([i915#889]) +7 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-skl-6600u/igt@i915_selftest@live_gt_lrc.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-skl-6600u/igt@i915_selftest@live_gt_lrc.html
* igt@i915_selftest@live_late_gt_pm:
- fi-skl-6600u: [PASS][23] -> [DMESG-WARN][24] ([i915#889]) +23 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-skl-6600u/igt@i915_selftest@live_late_gt_pm.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-skl-6600u/igt@i915_selftest@live_late_gt_pm.html
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- {fi-ehl-1}: [INCOMPLETE][25] ([i915#937]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-ehl-1/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-ehl-1/igt@[email protected]
* igt@i915_selftest@live_blt:
- fi-ivb-3770: [DMESG-FAIL][27] ([i915#563]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-ivb-3770/igt@i915_selftest@live_blt.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-ivb-3770/igt@i915_selftest@live_blt.html
* igt@i915_selftest@live_reset:
- fi-cfl-guc: [DMESG-FAIL][29] ([i915#889]) -> [PASS][30] +7 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-cfl-guc/igt@i915_selftest@live_reset.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-cfl-guc/igt@i915_selftest@live_reset.html
* igt@i915_selftest@live_workarounds:
- fi-cfl-guc: [DMESG-WARN][31] ([i915#889]) -> [PASS][32] +23 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-cfl-guc/igt@i915_selftest@live_workarounds.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-cfl-guc/igt@i915_selftest@live_workarounds.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][33] ([fdo#111096] / [i915#323]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-kbl-7500u/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-kbl-7500u/igt@[email protected]
#### Warnings ####
* igt@i915_selftest@live_blt:
- fi-hsw-4770r: [DMESG-FAIL][35] ([i915#725]) -> [DMESG-FAIL][36] ([i915#563])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-hsw-4770r/igt@i915_selftest@live_blt.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-hsw-4770r/igt@i915_selftest@live_blt.html
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-icl-u2: [FAIL][37] ([i915#217]) -> [DMESG-WARN][38] ([IGT#4] / [i915#263])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7728/fi-icl-u2/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-icl-u2/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#4]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/4
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[i915#140]: https://gitlab.freedesktop.org/drm/intel/issues/140
[i915#217]: https://gitlab.freedesktop.org/drm/intel/issues/217
[i915#263]: https://gitlab.freedesktop.org/drm/intel/issues/263
[i915#323]: https://gitlab.freedesktop.org/drm/intel/issues/323
[i915#553]: https://gitlab.freedesktop.org/drm/intel/issues/553
[i915#563]: https://gitlab.freedesktop.org/drm/intel/issues/563
[i915#671]: https://gitlab.freedesktop.org/drm/intel/issues/671
[i915#722]: https://gitlab.freedesktop.org/drm/intel/issues/722
[i915#725]: https://gitlab.freedesktop.org/drm/intel/issues/725
[i915#889]: https://gitlab.freedesktop.org/drm/intel/issues/889
[i915#937]: https://gitlab.freedesktop.org/drm/intel/issues/937
Participating hosts (52 -> 45)
------------------------------
Missing (7): fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-kbl-7560u fi-byt-clapper fi-bsw-nick
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5364 -> IGTPW_3917
CI-20190529: 20190529
CI_DRM_7728: 8ece19823fb6b581f6577b8fa85a12227e38028c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3917: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/index.html
IGT_5364: b7cb6ffdb65cbd233f5ddee2f2dabf97b34fa640 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: warning for Simplify working on tiled surfaces over GenX (rev3)
In reply to Zbigniew Kempczyński== Series Details ==
== Series Details ==
Series: Simplify working on tiled surfaces over GenX (rev3)
URL : https://patchwork.freedesktop.org/series/71740/
State : warning
== Summary ==
Did not get list of undocumented tests for this run, something is wrong!
Other than that, pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/96506 for the overview.
test:ninja-test-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1338517):
[0KRunning with gitlab-runner 12.5.0 (577f813d)
[0;m[0K on fdo-gitlab-gce-runner3 81280d8f
[0;msection_start:1578925612:prepare_executor
[0K[0KUsing Docker executor with image registry.freedesktop.org/gfx-ci/igt-ci-tags/build-debian-arm64:commit-913d676259dfa9ca77d6fd151d5d3935d974f603 ...
[0;m[0KAuthenticating with credentials from job payload (GitLab Registry)
[0;m[0KPulling docker image registry.freedesktop.org/gfx-ci/igt-ci-tags/build-debian-arm64:commit-913d676259dfa9ca77d6fd151d5d3935d974f603 ...
[0;m[0KUsing docker image sha256:47a8063079b291849f7909d2b6b54f3cf13b909f8f90be38166db80fd5634b5f for registry.freedesktop.org/gfx-ci/igt-ci-tags/build-debian-arm64:commit-913d676259dfa9ca77d6fd151d5d3935d974f603 ... [0;msection_end:1578925613:prepare_executor
[0Ksection_start:1578925613:prepare_script
[0KRunning on runner-81280d8f-project-3185-concurrent-1 via fdo-gitlab-gce-runner3.c.fdo-gitlab.internal...
section_end:1578925615:prepare_script
[0Ksection_start:1578925615:get_sources
[0Ksection_end:1578925615:get_sources
[0Ksection_start:1578925615:upload_artifacts_on_failure
[0K[32;1mUploading artifacts...[0;m
build: found 1350 matching files [0;m
Uploading artifacts to coordinator... ok [0;m id[0;m=1338517 responseStatus[0;m=201 Created token[0;m=i2BuxZMa
section_end:1578925621:upload_artifacts_on_failure
[0K[31;1mERROR: Job failed (system failure): Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/5805603f0e18a03bbf520a3099cbac03113b8a1a46139a4f0c6c4aae78924385/merged: device or resource busy (executor_docker.go:740:0s) [0;m
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/96506
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v7 1/5] lib/intel_bufops: Introduce buffer operations
In reply to Zbigniew KempczyńskiQuoting Zbigniew Kempczyński (2020-01-13 09:19:04)
lib/intel_bufops.c line 232
Quoted 6 lines
lib/intel_bufops.c new file +6
-0+case I915_BIT_6_SWIZZLE_UNKNOWN : +case I915_BIT_6_SWIZZLE_9_17 : +case I915_BIT_6_SWIZZLE_9_10_17 : +default : +/* If we hit this case, we need to implement support for the +* appropriate swizzling method. */
As a side comment, this can't be done in userspace. Bit17 is not within the page and so requires knowledge of the physical address. -Chris
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] [PATCH i-g-t v7 4/5] i915/gem_render_copy.c: Simplify code by switch to rendercopy bufmgr
In reply to Zbigniew KempczyńskiQuoting Zbigniew Kempczyński (2020-01-13 09:19:07)
tests/i915/gem_render_copy.c copy_from_linear_buf(data_t *data, struct igt_buf *src, struct igt_buf *dst) · line 101
Quoted 11 lines
tests/i915/gem_render_copy.c +5
-2@@ -209,13 +94,13 @@ copy_from_linear_buf(data_t *data, struct igt_buf *src, struct igt_buf *dst)gem_set_domain (data->drm_fd, src->bo->handle,I915_GEM_DOMAIN_CPU ,0 ); - linear =gem_mmap__cpu (data->drm_fd, src->bo->handle,0 , - src->bo->size,PROT_READ ); + linear =__gem_mmap_offset__cpu (data->drm_fd, src->bo->handle,0 , + src->bo->size,PROT_READ ); +if (!linear) + linear =gem_mmap__cpu (data->drm_fd, src->bo->handle,0 , + src->bo->size,PROT_READ );
There's an argument here for gem_mmap__cache_coherent() or (gem_mmap__cpu_coherent)
We may want something like:
linear = gem_mmap__cache_coherent();
if (!linear) {
linear = gem_mmap__device_coherent();
for_each_page(linear) {
igt_memcpy_from_wc(tmp, linear + page, PAGE_SIZE);
copy_linear_to_yt(data, dst + page, tmp);
}
}For complete belt and braces.
-Chris
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Re: [igt-dev] ✗ Fi.CI.BAT: failure for Simplify working on tiled surfaces over GenX (rev3)
In reply to PatchworkQuoting Patchwork (2020-01-13 09:46:32)
Quoted 3 lines
* igt@gem_render_copy@linear-to-vebox-yf-tiled:
- fi-bsw-n3050: NOTRUN -> [FAIL][1] +37 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3917/fi-bsw-n3050/igt@[email protected]
Clfush failures, need to go back and inspect gem_set_domain or manual flushing / cache control.
-Chris
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev