From: Luben Tuikov <luben.tuikov@amd.com>
To: vitaly.prosyak@amd.com, igt-dev@lists.freedesktop.org
Cc: Alex Deucher <alexander.deucher@amd.com>,
Christian Koenig <christian.koenig@amd.com>
Subject: Re: [igt-dev] [PATCH 2/3] tests/amdgpu: skip CE subtest for gfx11
Date: Wed, 13 Sep 2023 21:56:49 -0400 [thread overview]
Message-ID: <947c343e-b9e6-4d8d-aa96-e07fe73e6e12@amd.com> (raw)
In-Reply-To: <20230914011732.343775-2-vitaly.prosyak@amd.com>
On 2023-09-13 21:17, vitaly.prosyak@amd.com wrote:
> From: Jesse Zhang <jesse.zhang@amd.com>
>
> Due to CE is not available on gfx11,
> so skip CE subtest for gfx11.
>
> v2 : - code logic improvements(Vitaly)
>
> Cc: Luben Tuikov <luben.tuikov@amd.com>
> Cc: Alex Deucher <alexander.deucher@amd.com>
> Cc: Christian Koenig <christian.koenig@amd.com>
>
> Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
> Reviewed-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
> ---
> tests/amdgpu/amd_basic.c | 29 ++++++++++++++++++++---------
> 1 file changed, 20 insertions(+), 9 deletions(-)
>
> diff --git a/tests/amdgpu/amd_basic.c b/tests/amdgpu/amd_basic.c
> index e7a42a335..11e2af98e 100644
> --- a/tests/amdgpu/amd_basic.c
> +++ b/tests/amdgpu/amd_basic.c
> @@ -67,7 +67,7 @@ static void amdgpu_memory_alloc(amdgpu_device_handle device)
> * AMDGPU_HW_IP_GFX
> * @param device
> */
> -static void amdgpu_command_submission_gfx(amdgpu_device_handle device)
> +static void amdgpu_command_submission_gfx(amdgpu_device_handle device, bool ce_avails)
> {
> /* write data using the CP */
> amdgpu_command_submission_write_linear_helper(device, get_ip_block(device, AMDGPU_HW_IP_GFX), false);
> @@ -75,10 +75,15 @@ static void amdgpu_command_submission_gfx(amdgpu_device_handle device)
> amdgpu_command_submission_const_fill_helper(device, get_ip_block(device, AMDGPU_HW_IP_GFX));
> /* copy data using the CP */
> amdgpu_command_submission_copy_linear_helper(device, get_ip_block(device, AMDGPU_HW_IP_GFX));
> - /* separate IB buffers for multi-IB submission */
> - amdgpu_command_submission_gfx_separate_ibs(device);
> - /* shared IB buffer for multi-IB submission */
> - amdgpu_command_submission_gfx_shared_ib(device);
> +
> + if (ce_avails) {
> + /* separate IB buffers for multi-IB submission */
> + amdgpu_command_submission_gfx_separate_ibs(device);
> + /* shared IB buffer for multi-IB submission */
> + amdgpu_command_submission_gfx_shared_ib(device);
> + } else {
> + igt_info("separate and shared IB buffers for multi IB submisison testes are skipped due to GFX11\n");
> + }
> }
>
> /**
> @@ -624,6 +629,7 @@ igt_main
> {
> amdgpu_device_handle device;
> struct amdgpu_gpu_info gpu_info = {0};
> + struct drm_amdgpu_info_hw_ip info;
> int fd = -1;
> int r;
> bool arr_cap[AMD_IP_MAX] = {0};
> @@ -642,6 +648,8 @@ igt_main
>
> r = amdgpu_query_gpu_info(device, &gpu_info);
> igt_assert_eq(r, 0);
> + r = amdgpu_query_hw_ip_info(device, AMDGPU_HW_IP_GFX, 0, &info);
> + igt_assert_eq(r, 0);
> r = setup_amdgpu_ip_blocks(major, minor, &gpu_info, device);
> igt_assert_eq(r, 0);
> asic_rings_readness(device, 1, arr_cap);
> @@ -662,7 +670,7 @@ igt_main
> igt_subtest_with_dynamic("cs-gfx-with-IP-GFX") {
> if (arr_cap[AMD_IP_GFX]) {
> igt_dynamic_f("cs-gfx")
> - amdgpu_command_submission_gfx(device);
> + amdgpu_command_submission_gfx(device, info.hw_ip_version_major < 11);
> }
> }
>
> @@ -675,13 +683,16 @@ igt_main
> }
>
> igt_describe("Check-GFX-CS-for-multi-fence");
> - igt_subtest_with_dynamic("cs-multi-fence-with-IP-GFX") {
> - if (arr_cap[AMD_IP_GFX]) {
> + igt_subtest_with_dynamic("") {
> + if (arr_cap[AMD_IP_GFX] && info.hw_ip_version_major < 11) {
> igt_dynamic_f("cs-multi-fence")
> - amdgpu_command_submission_multi_fence(device);
> + amdgpu_command_submission_multi_fence(device);
> + } else {
> + igt_info("cs-multi-fence-with-IP-GFX testes are skipped due to GFX11 or no GFX_IP\n");
> }
> }
>
> +
> igt_describe("Check-DMA-CS-for-every-available-ring-works-for-write-const-fill-copy-operation");
Unnecessary empty line added above. Perhaps remove. With that, this patch is,
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Regards,
Luben
> igt_subtest_with_dynamic("cs-sdma-with-IP-DMA") {
> if (arr_cap[AMD_IP_DMA]) {
next prev parent reply other threads:[~2023-09-14 1:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-14 1:17 [igt-dev] [PATCH 1/3] lib/amdgpu: Fix family id failed during initialization vitaly.prosyak
2023-09-14 1:17 ` [igt-dev] [PATCH 2/3] tests/amdgpu: skip CE subtest for gfx11 vitaly.prosyak
2023-09-14 1:56 ` Luben Tuikov [this message]
2023-09-14 1:17 ` [igt-dev] [PATCH 3/3] lib/amdgpu: add shaders " vitaly.prosyak
2023-09-14 1:58 ` Luben Tuikov
2023-09-14 1:54 ` [igt-dev] [PATCH 1/3] lib/amdgpu: Fix family id failed during initialization Luben Tuikov
2023-09-14 2:02 ` [igt-dev] ✓ CI.xeBAT: success for series starting with [1/3] " Patchwork
2023-09-14 2:11 ` [igt-dev] ✗ Fi.CI.BAT: failure " Patchwork
2023-09-14 11:51 ` Kamil Konieczny
2023-09-14 12:14 ` Yedireswarapu, SaiX Nandan
2023-09-14 12:11 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-09-14 15:10 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=947c343e-b9e6-4d8d-aa96-e07fe73e6e12@amd.com \
--to=luben.tuikov@amd.com \
--cc=alexander.deucher@amd.com \
--cc=christian.koenig@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=vitaly.prosyak@amd.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