From: Karolina Stolarek <karolina.stolarek@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 01/12] lib/xe_query: Use vramN when returning string region name
Date: Wed, 5 Jul 2023 13:34:28 +0200 [thread overview]
Message-ID: <8375813f-4f7d-5a5c-602f-8906420b21ba@intel.com> (raw)
In-Reply-To: <c3e7b1ab-14a3-400b-0b79-96b4adf4e5bc@intel.com>
On 5.07.2023 12:58, Karolina Stolarek wrote:
> Hi Zbigniew,
>
> On 4.07.2023 11:00, Zbigniew Kempczyński wrote:
>> For tests which are mixing regions (like xe_ccs) name is confusing.
>> As an example might be example "subtest-name-vram-1-vram-1". It's
>> more readable when it will be renamed to "subtest-name-vram1-vram1".
>
> Sounds good, but I wonder how it maps to the convention used in other
> tests. In gem_ccs, iirc, we had "smem" and "lmemN". Could we reuse it here?
Ah, OK, now I see these names are derived from drm_xe_memory_class.
Ignore my comment then:
Reviewed-by: Karolina Stolarek <karolina.stolarek@intel.com>
>
> All the best,
> Karolina
>
>>
>> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
>> ---
>> lib/xe/xe_query.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/lib/xe/xe_query.c b/lib/xe/xe_query.c
>> index 48fb5afba7..830b7e401d 100644
>> --- a/lib/xe/xe_query.c
>> +++ b/lib/xe/xe_query.c
>> @@ -445,7 +445,7 @@ struct drm_xe_query_mem_region *xe_mem_region(int
>> fd, uint64_t region)
>> * xe_region_name:
>> * @region: region mask
>> *
>> - * Returns region string like "system" or "vram-n" where n=0...62.
>> + * Returns region string like "system" or "vramN" where N=0...62.
>> */
>> const char *xe_region_name(uint64_t region)
>> {
>> @@ -457,7 +457,7 @@ const char *xe_region_name(uint64_t region)
>> vrams = calloc(64, sizeof(char *));
>> for (int i = 0; i < 64; i++) {
>> if (i != 0)
>> - asprintf(&vrams[i], "vram-%d", i - 1);
>> + asprintf(&vrams[i], "vram%d", i - 1);
>> else
>> asprintf(&vrams[i], "system");
>> igt_assert(vrams[i]);
next prev parent reply other threads:[~2023-07-05 11:34 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-04 9:00 [igt-dev] [PATCH i-g-t 00/12] Extend intel_blt to work on Xe Zbigniew Kempczyński
2023-07-04 9:00 ` [igt-dev] [PATCH i-g-t 01/12] lib/xe_query: Use vramN when returning string region name Zbigniew Kempczyński
2023-07-05 10:58 ` Karolina Stolarek
2023-07-05 11:34 ` Karolina Stolarek [this message]
2023-07-04 9:00 ` [igt-dev] [PATCH i-g-t 02/12] lib/xe_query: Add xe_region_class() helper Zbigniew Kempczyński
2023-07-05 11:48 ` Karolina Stolarek
2023-07-04 9:00 ` [igt-dev] [PATCH i-g-t 03/12] lib/drmtest: Add get_intel_driver() helper Zbigniew Kempczyński
2023-07-05 12:09 ` Karolina Stolarek
2023-07-04 9:00 ` [igt-dev] [PATCH i-g-t 04/12] lib/xe_util: Return dynamic subtest name for Xe Zbigniew Kempczyński
2023-07-05 12:54 ` Karolina Stolarek
2023-07-06 5:17 ` Zbigniew Kempczyński
2023-07-06 7:42 ` Karolina Stolarek
2023-07-04 9:00 ` [igt-dev] [PATCH i-g-t 05/12] lib/xe_util: Add vm bind/unbind helper " Zbigniew Kempczyński
2023-07-05 15:12 ` Karolina Stolarek
2023-07-06 5:34 ` Zbigniew Kempczyński
2023-07-06 10:16 ` Karolina Stolarek
2023-07-04 9:00 ` [igt-dev] [PATCH i-g-t 06/12] lib/intel_allocator: Add field to distinct underlying driver Zbigniew Kempczyński
2023-07-04 9:00 ` [igt-dev] [PATCH i-g-t 07/12] lib/intel_allocator: Add intel_allocator_bind() Zbigniew Kempczyński
2023-07-04 9:01 ` [igt-dev] [PATCH i-g-t 08/12] lib/intel_ctx: Add xe context information Zbigniew Kempczyński
2023-07-04 9:01 ` [igt-dev] [PATCH i-g-t 09/12] lib/intel_blt: Introduce blt_copy_init() helper to cache driver Zbigniew Kempczyński
2023-07-04 9:01 ` [igt-dev] [PATCH i-g-t 10/12] lib/intel_blt: Extend blitter library to support xe driver Zbigniew Kempczyński
2023-07-04 9:01 ` [igt-dev] [PATCH i-g-t 11/12] tests/xe_ccs: Check if flatccs is working with block-copy for Xe Zbigniew Kempczyński
2023-07-04 9:01 ` [igt-dev] [PATCH i-g-t 12/12] tests/xe_exercise_blt: Check blitter library fast-copy " Zbigniew Kempczyński
2023-07-04 10:02 ` [igt-dev] ✗ Fi.CI.BAT: failure for Extend intel_blt to work on Xe Patchwork
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=8375813f-4f7d-5a5c-602f-8906420b21ba@intel.com \
--to=karolina.stolarek@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