From: "Jahagirdar, Akshata" <akshata.jahagirdar@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: <igt-dev@lists.freedesktop.org>, <matthew.auld@intel.com>
Subject: Re: [PATCH i-g-t v2 2/2] tests/xe_ccs: Update compression in config based on platform
Date: Thu, 28 Mar 2024 22:18:07 -0700 [thread overview]
Message-ID: <07a3ac74-53a5-4f84-b4a2-b449b7da3802@intel.com> (raw)
In-Reply-To: <20240329050515.q4tqnnxj45onvsgd@zkempczy-mobl2>
On 3/28/2024 10:05 PM, Zbigniew Kempczyński wrote:
> On Fri, Mar 29, 2024 at 09:30:13AM -0700, Akshata Jahagirdar wrote:
>> In Xe2+ platforms, we need to run this test regardless of the status of
>> flat-ccs. The entore flow of the test should work even in case of flat-ccs
>> disabled, Everything should "just work".
>> Check if the platform supports compression and has flat ccs enabled, before
>> the execution if this test, and if it doesn't, then update to compression
>> disabled and proceed with the test.
>>
>> Signed-off-by: Akshata Jahagirdar <akshata.jahagirdar@intel.com>
>> ---
>> tests/intel/xe_ccs.c | 26 ++++++++++++++++++++++++--
>> 1 file changed, 24 insertions(+), 2 deletions(-)
>>
>> diff --git a/tests/intel/xe_ccs.c b/tests/intel/xe_ccs.c
>> index ad2eeb259..9f427e730 100644
>> --- a/tests/intel/xe_ccs.c
>> +++ b/tests/intel/xe_ccs.c
>> @@ -116,7 +116,6 @@ static void surf_copy(int xe,
>> uint16_t cpu_caching = __xe_default_cpu_caching(xe, sysmem, 0);
>> int result;
>>
>> - igt_assert(mid->compression);
>> if (AT_LEAST_GEN(intel_get_drm_devid(xe), 20) && mid->compression) {
>> comp_pat_index = intel_get_pat_idx_uc_comp(xe);
>> cpu_caching = DRM_XE_GEM_CPU_CACHING_WC;
>> @@ -193,7 +192,8 @@ static void surf_copy(int xe,
>> intel_ctx_xe_sync(ctx, true);
>> WRITE_PNG(xe, run_id, "corrupted", &blt.dst, dst->x2, dst->y2, bpp);
>> result = memcmp(src->ptr, dst->ptr, src->size);
>> - igt_assert(result != 0);
>> + if(mid->compression)
>> + igt_assert(result != 0);
> I'm working on a patch which extract ccs data from the surface and
> verifies it is containing non-zero data in case of compression enabled.
> I'm going to send it today, so along with your 1/2 patch we'll fix
> flat-ccs issue when it is disabled in BIOS.
>
> --
> Zbigniew
I see. That would be great. I will send the revised 1/2 patch soon.
-- Akshata
>>
>> /* retrieve back ccs */
>> memcpy(ccsmap, ccscopy, ccssize);
>> @@ -747,6 +747,9 @@ igt_main_args("bf:pst:W:H:", NULL, help_str, opt_handler, NULL)
>> igt_subtest_with_dynamic("block-copy-compressed") {
>> struct test_config config = { .compression = true };
>>
>> + if(AT_LEAST_GEN(xe, 20) && !blt_platform_supports_compression(xe))
>> + config.compression = false;
>> +
>> block_copy_test(xe, &config, set, BLOCK_COPY);
>> }
>>
>> @@ -756,6 +759,10 @@ igt_main_args("bf:pst:W:H:", NULL, help_str, opt_handler, NULL)
>> .width_increment = 15,
>> .width_steps = 512 };
>>
>> + if(AT_LEAST_GEN(xe, 20) && !blt_platform_supports_compression(xe))
>> + config.compression = false;
>> +
>> + igt_info("p1: config.compression:%d\n",config.compression);
>> block_copy_test(xe, &config, set, BLOCK_COPY);
>> }
>>
>> @@ -763,6 +770,9 @@ igt_main_args("bf:pst:W:H:", NULL, help_str, opt_handler, NULL)
>> igt_subtest_with_dynamic("block-multicopy-compressed") {
>> struct test_config config = { .compression = true };
>>
>> + if(AT_LEAST_GEN(xe, 20) && !blt_platform_supports_compression(xe))
>> + config.compression = false;
>> +
>> block_copy_test(xe, &config, set, BLOCK_MULTICOPY);
>> }
>>
>> @@ -771,6 +781,9 @@ igt_main_args("bf:pst:W:H:", NULL, help_str, opt_handler, NULL)
>> struct test_config config = { .compression = true,
>> .inplace = true };
>>
>> + if(AT_LEAST_GEN(xe, 20) && !blt_platform_supports_compression(xe))
>> + config.compression = false;
>> +
>> block_copy_test(xe, &config, set, BLOCK_MULTICOPY);
>> }
>>
>> @@ -779,6 +792,9 @@ igt_main_args("bf:pst:W:H:", NULL, help_str, opt_handler, NULL)
>> struct test_config config = { .compression = true,
>> .surfcopy = true };
>>
>> + if(AT_LEAST_GEN(xe, 20) && !blt_platform_supports_compression(xe))
>> + config.compression = false;
>> +
>> block_copy_test(xe, &config, set, BLOCK_COPY);
>> }
>>
>> @@ -789,6 +805,9 @@ igt_main_args("bf:pst:W:H:", NULL, help_str, opt_handler, NULL)
>> .surfcopy = true,
>> .new_ctx = true };
>>
>> + if(AT_LEAST_GEN(xe, 20) && !blt_platform_supports_compression(xe))
>> + config.compression = false;
>> +
>> block_copy_test(xe, &config, set, BLOCK_COPY);
>> }
>>
>> @@ -798,6 +817,9 @@ igt_main_args("bf:pst:W:H:", NULL, help_str, opt_handler, NULL)
>> .surfcopy = true,
>> .suspend_resume = true };
>>
>> + if(AT_LEAST_GEN(xe, 20) && !blt_platform_supports_compression(xe))
>> + config.compression = false;
>> +
>> block_copy_test(xe, &config, set, BLOCK_COPY);
>> }
>>
>> --
>> 2.34.1
>>
next prev parent reply other threads:[~2024-03-29 5:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-29 16:30 [PATCH i-g-t v2 0/2] Update compression in config based on platform Akshata Jahagirdar
2024-03-29 5:33 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-03-29 5:35 ` ✓ CI.xeBAT: " Patchwork
2024-03-29 5:36 ` ✗ CI.xeBAT: failure " Patchwork
2024-03-29 16:30 ` [PATCH i-g-t v2 1/2] lib/intel_blt: Add helper function to ensure platform supports compression Akshata Jahagirdar
2024-03-29 5:01 ` Zbigniew Kempczyński
2024-03-29 5:15 ` Jahagirdar, Akshata
2024-03-29 16:30 ` [PATCH i-g-t v2 2/2] tests/xe_ccs: Update compression in config based on platform Akshata Jahagirdar
2024-03-29 5:05 ` Zbigniew Kempczyński
2024-03-29 5:18 ` Jahagirdar, Akshata [this message]
2024-03-30 4:14 ` ✗ Fi.CI.IGT: failure for " 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=07a3ac74-53a5-4f84-b4a2-b449b7da3802@intel.com \
--to=akshata.jahagirdar@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=matthew.auld@intel.com \
--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