From: Francois Dugast <francois.dugast@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: <igt-dev@lists.freedesktop.org>
Subject: Re: [PATCH i-g-t 05/15] lib/intel_cmds_info: rename M to TYPE in blt_memop_type
Date: Thu, 22 May 2025 13:31:48 +0200 [thread overview]
Message-ID: <aC8LJCLBG_5PWqPx@fdugast-desk> (raw)
In-Reply-To: <upchwjdu4kp23jq5lx63z7pyaigzum4hi3r6dzemhnr4phzirw@xr2qlcqc37ld>
On Mon, May 19, 2025 at 01:17:58PM +0200, Zbigniew Kempczyński wrote:
> On Mon, May 19, 2025 at 10:03:59AM +0200, Francois Dugast wrote:
> > On Tue, May 13, 2025 at 08:58:00PM +0200, Zbigniew Kempczyński wrote:
> > > Documentation separates type and mode in mem-copy so rename prefix
> > > to avoid ambiguity.
> >
> > Which documentation?
>
> BSpec command description.
Bspec 53418, thanks for the reference. Could be useful in one of the commit
messages, probably patch 9.
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Francois
>
> --
> Zbigniew
>
> >
> > >
> > > Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> > > Cc: Francois Dugast <francois.dugast@intel.com>
> > > ---
> > > lib/intel_blt.c | 2 +-
> > > lib/intel_cmds_info.c | 8 ++++----
> > > lib/intel_cmds_info.h | 4 ++--
> > > tests/intel/xe_copy_basic.c | 6 +++---
> > > tests/intel/xe_render_copy.c | 4 ++--
> > > tests/intel/xe_spin_batch.c | 4 ++--
> > > 6 files changed, 14 insertions(+), 14 deletions(-)
> > >
> > > diff --git a/lib/intel_blt.c b/lib/intel_blt.c
> > > index 7010d3ff7d..33efbf1038 100644
> > > --- a/lib/intel_blt.c
> > > +++ b/lib/intel_blt.c
> > > @@ -1827,7 +1827,7 @@ static void emit_blt_mem_copy(int fd, uint64_t ahnd, const struct blt_mem_data *
> > > 0, mem->dst.pat_index);
> > >
> > > batch = bo_map(fd, mem->bb.handle, mem->bb.size, mem->driver);
> > > - optype = mem->src.type == M_MATRIX ? 1 << 17 : 0;
> > > + optype = mem->src.type == TYPE_MATRIX ? 1 << 17 : 0;
> > >
> > > i = 0;
> > > batch[i++] = MEM_COPY_CMD | optype;
> > > diff --git a/lib/intel_cmds_info.c b/lib/intel_cmds_info.c
> > > index d581edb6eb..3bd5eab653 100644
> > > --- a/lib/intel_cmds_info.c
> > > +++ b/lib/intel_cmds_info.c
> > > @@ -74,13 +74,13 @@ static const struct blt_cmd_info
> > >
> > > static const struct blt_cmd_info
> > > pvc_mem_copy = BLT_INFO(MEM_COPY,
> > > - BIT(M_LINEAR) |
> > > - BIT(M_MATRIX));
> > > + BIT(TYPE_LINEAR) |
> > > + BIT(TYPE_MATRIX));
> > >
> > > static const struct blt_cmd_info
> > > pvc_mem_set = BLT_INFO(MEM_SET,
> > > - BIT(M_LINEAR) |
> > > - BIT(M_MATRIX));
> > > + BIT(TYPE_LINEAR) |
> > > + BIT(TYPE_MATRIX));
> > >
> > > static const struct blt_cmd_info
> > > pre_gen6_xy_color_blt = BLT_INFO(XY_COLOR_BLT, TILE_L_X);
> > > diff --git a/lib/intel_cmds_info.h b/lib/intel_cmds_info.h
> > > index 7960e0412e..66f63d7e72 100644
> > > --- a/lib/intel_cmds_info.h
> > > +++ b/lib/intel_cmds_info.h
> > > @@ -20,8 +20,8 @@ enum blt_tiling_type {
> > > };
> > >
> > > enum blt_memop_type {
> > > - M_LINEAR,
> > > - M_MATRIX,
> > > + TYPE_LINEAR,
> > > + TYPE_MATRIX,
> > > };
> > >
> > > enum blt_cmd_type {
> > > diff --git a/tests/intel/xe_copy_basic.c b/tests/intel/xe_copy_basic.c
> > > index d4300b85c0..a9e9bd2359 100644
> > > --- a/tests/intel/xe_copy_basic.c
> > > +++ b/tests/intel/xe_copy_basic.c
> > > @@ -58,10 +58,10 @@ mem_copy(int fd, uint32_t src_handle, uint32_t dst_handle, const intel_ctx_t *ct
> > >
> > > blt_mem_init(fd, &mem);
> > > blt_set_mem_object(&mem.src, src_handle, size, width, width, height,
> > > - region, src_mocs, DEFAULT_PAT_INDEX, M_LINEAR,
> > > + region, src_mocs, DEFAULT_PAT_INDEX, TYPE_LINEAR,
> > > COMPRESSION_DISABLED);
> > > blt_set_mem_object(&mem.dst, dst_handle, size, width, width, height,
> > > - region, dst_mocs, DEFAULT_PAT_INDEX, M_LINEAR,
> > > + region, dst_mocs, DEFAULT_PAT_INDEX, TYPE_LINEAR,
> > > COMPRESSION_DISABLED);
> > > mem.src.ptr = xe_bo_map(fd, src_handle, size);
> > > mem.dst.ptr = xe_bo_map(fd, dst_handle, size);
> > > @@ -109,7 +109,7 @@ mem_set(int fd, uint32_t dst_handle, const intel_ctx_t *ctx, uint32_t size,
> > > bb = xe_bo_create(fd, 0, bb_size, region, 0);
> > > blt_mem_init(fd, &mem);
> > > blt_set_mem_object(&mem.dst, dst_handle, size, width, width, height, region,
> > > - dst_mocs, DEFAULT_PAT_INDEX, M_LINEAR, COMPRESSION_DISABLED);
> > > + dst_mocs, DEFAULT_PAT_INDEX, TYPE_LINEAR, COMPRESSION_DISABLED);
> > > mem.dst.ptr = xe_bo_map(fd, dst_handle, size);
> > > blt_set_batch(&mem.bb, bb, bb_size, region);
> > > blt_mem_set(fd, ctx, NULL, ahnd, &mem, fill_data);
> > > diff --git a/tests/intel/xe_render_copy.c b/tests/intel/xe_render_copy.c
> > > index 9f16537c1e..f0a90e320c 100644
> > > --- a/tests/intel/xe_render_copy.c
> > > +++ b/tests/intel/xe_render_copy.c
> > > @@ -470,10 +470,10 @@ static void mem_copy_busy(int fd, struct drm_xe_engine_class_instance *hwe, uint
> > > dst_handle = xe_bo_create(fd, 0, copy_size, region, 0);
> > > blt_set_mem_object(mem_copy.src, src_handle, copy_size, width, width, height, region,
> > > intel_get_uc_mocs_index(fd), DEFAULT_PAT_INDEX,
> > > - M_LINEAR, COMPRESSION_DISABLED);
> > > + TYPE_LINEAR, COMPRESSION_DISABLED);
> > > blt_set_mem_object(mem_copy.dst, dst_handle, copy_size, width, width, height, region,
> > > intel_get_uc_mocs_index(fd), DEFAULT_PAT_INDEX,
> > > - M_LINEAR, COMPRESSION_DISABLED);
> > > + TYPE_LINEAR, COMPRESSION_DISABLED);
> > > mem_copy.src->ptr = xe_bo_map(fd, src_handle, copy_size);
> > > mem_copy.dst->ptr = xe_bo_map(fd, dst_handle, copy_size);
> > > mem_copy.src_offset = get_offset_pat_index(ahnd, mem_copy.src->handle,
> > > diff --git a/tests/intel/xe_spin_batch.c b/tests/intel/xe_spin_batch.c
> > > index 4fff34a092..06c5f9d3f9 100644
> > > --- a/tests/intel/xe_spin_batch.c
> > > +++ b/tests/intel/xe_spin_batch.c
> > > @@ -351,10 +351,10 @@ static void xe_spin_mem_copy_region(int fd, struct drm_xe_engine_class_instance
> > > dst_handle = xe_bo_create(fd, 0, copy_size, region, 0);
> > > blt_set_mem_object(mem_copy.src, src_handle, copy_size, width, width, height, region,
> > > intel_get_uc_mocs_index(fd), DEFAULT_PAT_INDEX,
> > > - M_LINEAR, COMPRESSION_DISABLED);
> > > + TYPE_LINEAR, COMPRESSION_DISABLED);
> > > blt_set_mem_object(mem_copy.dst, dst_handle, copy_size, width, width, height, region,
> > > intel_get_uc_mocs_index(fd), DEFAULT_PAT_INDEX,
> > > - M_LINEAR, COMPRESSION_DISABLED);
> > > + TYPE_LINEAR, COMPRESSION_DISABLED);
> > > mem_copy.src->ptr = xe_bo_map(fd, src_handle, copy_size);
> > > mem_copy.dst->ptr = xe_bo_map(fd, dst_handle, copy_size);
> > > mem_copy.src_offset = get_offset_pat_index(ahnd, mem_copy.src->handle,
> > > --
> > > 2.43.0
> > >
next prev parent reply other threads:[~2025-05-22 11:32 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 18:57 [PATCH i-g-t 00/15] Improve mem-copy/mem-set lib and tests Zbigniew Kempczyński
2025-05-13 18:57 ` [PATCH i-g-t 01/15] lib/xe_spin: limit width/pitch for mem-copy Zbigniew Kempczyński
2025-05-19 7:56 ` Francois Dugast
2025-05-13 18:57 ` [PATCH i-g-t 02/15] tests/xe_render_copy: change width and pitch to be in valid range Zbigniew Kempczyński
2025-05-19 7:56 ` Francois Dugast
2025-05-13 18:57 ` [PATCH i-g-t 03/15] tests/xe_spin_batch: " Zbigniew Kempczyński
2025-05-19 7:57 ` Francois Dugast
2025-05-13 18:57 ` [PATCH i-g-t 04/15] tests/xe_copy_basic: use non-zero pitch Zbigniew Kempczyński
2025-05-19 7:57 ` Francois Dugast
2025-05-13 18:58 ` [PATCH i-g-t 05/15] lib/intel_cmds_info: rename M to TYPE in blt_memop_type Zbigniew Kempczyński
2025-05-19 8:03 ` Francois Dugast
2025-05-19 11:17 ` Zbigniew Kempczyński
2025-05-22 11:31 ` Francois Dugast [this message]
2025-05-13 18:58 ` [PATCH i-g-t 06/15] lib/intel_blt: separate mem-copy and mem-set Zbigniew Kempczyński
2025-05-19 8:35 ` Francois Dugast
2025-05-13 18:58 ` [PATCH i-g-t 07/15] lib/intel_cmds_info: add blt_memop_mode (byte/page) Zbigniew Kempczyński
2025-05-19 8:54 ` Francois Dugast
2025-05-13 18:58 ` [PATCH i-g-t 08/15] lib/intel_blt: add emit batchbuffer end Zbigniew Kempczyński
2025-05-19 8:55 ` Francois Dugast
2025-05-13 18:58 ` [PATCH i-g-t 09/15] lib/intel_blt: use struct instead of inline coding Zbigniew Kempczyński
2025-05-22 11:50 ` Francois Dugast
2025-05-22 11:52 ` Francois Dugast
2025-05-13 18:58 ` [PATCH i-g-t 10/15] tests/xe_copy_basic: replace size to rect which keeps objects geometry Zbigniew Kempczyński
2025-05-22 12:05 ` Francois Dugast
2025-05-22 14:15 ` Zbigniew Kempczyński
2025-05-13 18:58 ` [PATCH i-g-t 11/15] tests/xe_copy_basic: add testcase with large buffer size Zbigniew Kempczyński
2025-05-13 18:58 ` [PATCH i-g-t 12/15] tests/xe_copy_basic: add subtest to verify mem-copy in pages Zbigniew Kempczyński
2025-05-13 18:58 ` [PATCH i-g-t 13/15] lib/intel_blt: add support for matrix mem-copy Zbigniew Kempczyński
2025-05-13 18:58 ` [PATCH i-g-t 14/15] tests/xe_copy_basic: add mem-copy matrix subtests Zbigniew Kempczyński
2025-05-13 18:58 ` [PATCH i-g-t 15/15] lib/intel_blt: add mem-copy debug facility Zbigniew Kempczyński
2025-05-13 20:26 ` ✓ Xe.CI.BAT: success for Improve mem-copy/mem-set lib and tests Patchwork
2025-05-13 20:44 ` ✓ i915.CI.BAT: " Patchwork
2025-05-13 22:01 ` ✗ Xe.CI.Full: failure " Patchwork
2025-05-14 5:04 ` Zbigniew Kempczyński
2025-05-13 23:12 ` ✗ i915.CI.Full: " Patchwork
2025-05-14 5:05 ` Zbigniew Kempczyński
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aC8LJCLBG_5PWqPx@fdugast-desk \
--to=francois.dugast@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=zbigniew.kempczynski@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox