[PATCH] tests/amdgpu: enable amd_deadlock test on Renior
Huang, Trigger
Trigger.Huang at amd.com
Thu Aug 22 01:59:55 UTC 2024
[AMD Official Use Only - AMD Internal Distribution Only]
Thanks, Vitaly, will modify it.
Regards,
Trigger
From: Prosyak, Vitaly <Vitaly.Prosyak at amd.com>
Sent: Wednesday, August 21, 2024 10:48 PM
To: Huang, Trigger <Trigger.Huang at amd.com>; igt-dev at lists.freedesktop.org
Cc: Prosyak, Vitaly <Vitaly.Prosyak at amd.com>; Deucher, Alexander <Alexander.Deucher at amd.com>
Subject: Re: [PATCH] tests/amdgpu: enable amd_deadlock test on Renior
Thanks for catching this. Please add the following comment: "For example, the ioctl amdgpu_query_hw_ip_info could fail if certain IP instance types are not present in the ASIC."
Also, to avoid compiler compliance issues with zero initialization, please add memset(&hw_ip_info, 0, sizeof(hw_ip_info));
With this fixed, it is reviewed by Vitaly Prosyak vitaly.prosyak at amd.com<mailto:vitaly.prosyak at amd.com>.
Thanks, Vitaly
On 2024-08-21 07:02, Trigger.Huang at amd.com<mailto:Trigger.Huang at amd.com> wrote:
From: Trigger Huang <Trigger.Huang at amd.com><mailto:Trigger.Huang at amd.com>
When family_id is AMDGPU_FAMILY_RV, we further check if it is Renoir
by chip_external_rev.
When checking if a command ring is available on a specific AMD GPU in
is_rings_available(), delete the igt_assert_eq(). Because it is normal
that not all the rings are available on all ASIC families.
For example, there is no AMD_IP_VPE on Renior
Signed-off-by: Trigger Huang <Trigger.Huang at amd.com><mailto:Trigger.Huang at amd.com>
---
lib/amdgpu/amd_ip_blocks.c | 4 +---
tests/amdgpu/amd_deadlock.c | 4 +++-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/amdgpu/amd_ip_blocks.c b/lib/amdgpu/amd_ip_blocks.c
index 3cd9ce7d2..c880a2926 100644
--- a/lib/amdgpu/amd_ip_blocks.c
+++ b/lib/amdgpu/amd_ip_blocks.c
@@ -902,10 +902,8 @@ is_rings_available(amdgpu_device_handle device_handle, uint32_t mask,
enum amd_ip_block_type type)
{
struct drm_amdgpu_info_hw_ip hw_ip_info = {0};
- int r;
- r = amdgpu_query_hw_ip_info(device_handle, type, 0, &hw_ip_info);
- igt_assert_eq(r, 0);
+ amdgpu_query_hw_ip_info(device_handle, type, 0, &hw_ip_info);
return hw_ip_info.available_rings & mask;
}
diff --git a/tests/amdgpu/amd_deadlock.c b/tests/amdgpu/amd_deadlock.c
index 52ba08494..96da49002 100644
--- a/tests/amdgpu/amd_deadlock.c
+++ b/tests/amdgpu/amd_deadlock.c
@@ -8,6 +8,7 @@
#include "lib/amdgpu/amd_memory.h"
#include "lib/amdgpu/amd_command_submission.h"
#include "lib/amdgpu/amd_deadlock_helpers.h"
+#include "lib/amdgpu/amdgpu_asic_addr.h"
#define AMDGPU_FAMILY_SI 110 /* Hainan, Oland, Verde, Pitcairn, Tahiti */
#define AMDGPU_FAMILY_CI 120 /* Bonaire, Hawaii */
@@ -24,7 +25,8 @@ is_deadlock_tests_enable(const struct amdgpu_gpu_info *gpu_info)
if (gpu_info->family_id == AMDGPU_FAMILY_SI ||
gpu_info->family_id == AMDGPU_FAMILY_KV ||
gpu_info->family_id == AMDGPU_FAMILY_CZ ||
- gpu_info->family_id == AMDGPU_FAMILY_RV) {
+ ((gpu_info->family_id == AMDGPU_FAMILY_RV) &&
+ (!ASICREV_IS_RENOIR(gpu_info->chip_external_rev)))) {
igt_info("\n\nGPU reset is not enabled for the ASIC, deadlock test skip\n");
enable = false;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20240822/1fda41f6/attachment.htm>
More information about the igt-dev
mailing list