From: vitaly prosyak <vprosyak@amd.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
igt-dev@lists.freedesktop.org, vitaly.prosyak@amd.com,
Alex Deucher <alexander.deucher@amd.com>,
Jesse Zhang <Jesse.Zhang@amd.com>,
Luben Tuikov <luben.tuikov@amd.com>,
Christian Koenig <christian.koenig@amd.com>
Subject: Re: [igt-dev] [PATCH] lib/amdgpu: fix typo in function compare_pattern
Date: Thu, 21 Sep 2023 15:56:45 -0400 [thread overview]
Message-ID: <01e6063e-c61b-1a01-c7a0-6feb6006aeaa@amd.com> (raw)
In-Reply-To: <20230908171809.vrylau75am6iqxn5@kamilkon-desk.igk.intel.com>
Hi Kamil,
Sorry, I did not see your email because I reconfigured into new directories of my Thunderbird.
This patch was merged as is. I would be more careful next time to validate responses.
Thanks, Vitaly
On 2023-09-08 13:18, Kamil Konieczny wrote:
> Hi Vitaly,
>
> some nit about description:
> [PATCH] lib/amdgpu: fix typo in function
> ----------------------- ^
> looks rather like fixing a bug
>
> On 2023-09-07 at 22:50:38 -0400, vitaly.prosyak@amd.com wrote:
>> 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.
> -- ^^^^^^^^^^^^^^
> And this is unrelated to your desription and unexpected change
> in other test, imho should be separate patch.
>
> Regards,
> Kamil
>
>> 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>
>> ---
>> 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,
>> --
>> 2.25.1
>>
prev parent reply other threads:[~2023-09-21 19:56 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 ` [igt-dev] [PATCH] " Christian König
2023-09-08 9:53 ` [igt-dev] ✗ Fi.CI.IGT: failure for " Patchwork
2023-09-08 17:18 ` [igt-dev] [PATCH] " Kamil Konieczny
2023-09-21 19:56 ` vitaly prosyak [this message]
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=01e6063e-c61b-1a01-c7a0-6feb6006aeaa@amd.com \
--to=vprosyak@amd.com \
--cc=Jesse.Zhang@amd.com \
--cc=alexander.deucher@amd.com \
--cc=christian.koenig@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.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