Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: vitaly.prosyak@amd.com, igt-dev@lists.freedesktop.org
Cc: Alex Deucher <alexander.deucher@amd.com>,
	Jesse Zhang <jesse.zhang@amd.com>,
	Luben Tuikov <luben.tuikov@amd.com>
Subject: Re: [igt-dev] [PATCH] lib/amdgpu: fix typo in function compare_pattern
Date: Fri, 8 Sep 2023 10:37:54 +0200	[thread overview]
Message-ID: <fa0e2830-c3ea-2815-6f3f-ea88ec86a51e@amd.com> (raw)
In-Reply-To: <20230908025038.217934-1-vitaly.prosyak@amd.com>

Am 08.09.23 um 04:50 schrieb vitaly.prosyak@amd.com:
> From: Jesse Zhang <jesse.zhang@amd.com>
>
>   In function compare_pattern check the destination buffer (bo2_cpu),
>   instead of source buffer(bo_cpu).
>   Add validation of the return value in the eviction test.
>
> 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>

Reviewed-by: Christian König <christian.koenig@amd.com>

> ---
>   lib/amdgpu/amd_ip_blocks.c | 2 +-
>   tests/amdgpu/amd_basic.c   | 1 +
>   2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/amdgpu/amd_ip_blocks.c b/lib/amdgpu/amd_ip_blocks.c
> index be9ff38c6..7f8d4a4cd 100644
> --- a/lib/amdgpu/amd_ip_blocks.c
> +++ b/lib/amdgpu/amd_ip_blocks.c
> @@ -296,7 +296,7 @@ x_compare_pattern(const struct amdgpu_ip_funcs *func,
>   	int num_compare = ring_context->write_length/div;
>   
>   	while (i < num_compare) {
> -		if (ring_context->bo_cpu[i++] != func->pattern) {
> +		if (ring_context->bo2_cpu[i++] != func->pattern) {
>   			ret = -1;
>   			break;
>   		}
> diff --git a/tests/amdgpu/amd_basic.c b/tests/amdgpu/amd_basic.c
> index dfe11995f..e7a42a335 100644
> --- a/tests/amdgpu/amd_basic.c
> +++ b/tests/amdgpu/amd_basic.c
> @@ -411,6 +411,7 @@ amdgpu_bo_eviction_test(amdgpu_device_handle device_handle)
>   			amdgpu_test_exec_cs_helper(device_handle, ip_block->type, ring_context);
>   			/* fulfill PM4: test DMA copy linear */
>   			r = ip_block->funcs->compare_pattern(ip_block->funcs, ring_context, sdma_write_length);
> +			igt_assert_eq(r, 0);
>   			amdgpu_bo_unmap_and_free(ring_context->bo, ring_context->va_handle, ring_context->bo_mc,
>   						 ring_context->write_length);
>   			amdgpu_bo_unmap_and_free(ring_context->bo2, ring_context->va_handle2, ring_context->bo_mc2,

  parent reply	other threads:[~2023-09-08  8:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-08  2:50 [igt-dev] [PATCH] lib/amdgpu: fix typo in function compare_pattern vitaly.prosyak
2023-09-08  5:17 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-09-08  5:42 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-09-08  8:37 ` Christian König [this message]
2023-09-08  9:53 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-09-08 17:18 ` [igt-dev] [PATCH] " Kamil Konieczny
2023-09-21 19:56   ` vitaly prosyak

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=fa0e2830-c3ea-2815-6f3f-ea88ec86a51e@amd.com \
    --to=christian.koenig@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jesse.zhang@amd.com \
    --cc=luben.tuikov@amd.com \
    --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