[igt-dev] [PATCH i-g-t] lib/amdgpu: add GFX1150 chips for IGT tests
vitaly prosyak
vprosyak at amd.com
Wed Nov 29 20:00:14 UTC 2023
Hi Jesse,
The change looks good to me.
Reviewed-by: Vitaly Prosyak <vitaly.prosyak at amd.com>
On 2023-11-29 03:05, Jesse Zhang wrote:
> Add new asic id for igt.
>
> Cc: Vitaly Prosyak <vitaly.prosyak at amd.com>
> Cc: Luben Tuikov <luben.tuikov at amd.com>
> Cc: Alex Deucher <alexander.deucher at amd.com>
> Cc: Christian Koenig <christian.koenig at amd.com>
> Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
>
> Signed-off-by: Jesse Zhang <Jesse.Zhang at amd.com>
> ---
> lib/amdgpu/amd_family.h | 1 +
> lib/amdgpu/amd_ip_blocks.c | 3 +++
> lib/amdgpu/amdgpu_asic_addr.h | 4 ++++
> 3 files changed, 8 insertions(+)
>
> diff --git a/lib/amdgpu/amd_family.h b/lib/amdgpu/amd_family.h
> index 9e534208d..847fb0375 100644
> --- a/lib/amdgpu/amd_family.h
> +++ b/lib/amdgpu/amd_family.h
> @@ -104,6 +104,7 @@ enum radeon_family {
> CHIP_GFX1102,
> CHIP_GFX1103_R1,
> CHIP_GFX1103_R2,
> + CHIP_GFX1150,
> CHIP_LAST,
> };
>
> diff --git a/lib/amdgpu/amd_ip_blocks.c b/lib/amdgpu/amd_ip_blocks.c
> index 58a037ac0..1adea6987 100644
> --- a/lib/amdgpu/amd_ip_blocks.c
> +++ b/lib/amdgpu/amd_ip_blocks.c
> @@ -656,6 +656,9 @@ int setup_amdgpu_ip_blocks(uint32_t major, uint32_t minor, struct amdgpu_gpu_inf
> identify_chip(GFX1103_R1);
> identify_chip(GFX1103_R2);
> break;
> + case FAMILY_GFX1150:
> + identify_chip(GFX1150);
> + break;
> }
> if (!info->name) {
> igt_info("amdgpu: unknown (family_id, chip_external_rev): (%u, %u)\n",
> diff --git a/lib/amdgpu/amdgpu_asic_addr.h b/lib/amdgpu/amdgpu_asic_addr.h
> index 1178a920e..0130ae2f0 100644
> --- a/lib/amdgpu/amdgpu_asic_addr.h
> +++ b/lib/amdgpu/amdgpu_asic_addr.h
> @@ -29,6 +29,7 @@
> #define FAMILY_YC 0x92
> #define FAMILY_GFX1103 0x94
> #define FAMILY_GFX1036 0x95
> +#define FAMILY_GFX1150 0x96
> #define FAMILY_GFX1037 0x97
>
> // AMDGPU_FAMILY_IS(familyId, familyName)
> @@ -47,6 +48,7 @@
> #define FAMILY_IS_GFX1036(f) FAMILY_IS(f, GFX1036)
> #define FAMILY_IS_GFX1037(f) FAMILY_IS(f, GFX1037)
> #define FAMILY_IS_GFX1100(f) FAMILY_IS(f, GFX1100)
> +#define FAMILY_IS_GFX1150(f) FAMILY_IS(f, GFX1150)
>
> #define AMDGPU_UNKNOWN 0xFF
>
> @@ -104,6 +106,7 @@
> #define AMDGPU_GFX1102_RANGE 0x10, 0x20 //# 16 <= x < 32
> #define AMDGPU_GFX1103_R1_RANGE 0x01, 0x80 //# 1 <= x < 128
> #define AMDGPU_GFX1103_R2_RANGE 0x80, 0xFF //# 128 <= x < max
> +#define AMDGPU_GFX1150_RANGE 0x01, 0xFF //# 01 <= x < 255
>
> #define AMDGPU_EXPAND_FIX(x) x
> #define AMDGPU_RANGE_HELPER(val, min, max) ((val >= min) && (val < max))
> @@ -167,5 +170,6 @@
> #define ASICREV_IS_GFX1102(r) ASICREV_IS(r, GFX1102)
> #define ASICREV_IS_GFX1103_R1(r) ASICREV_IS(r, GFX1103_R1)
> #define ASICREV_IS_GFX1103_R2(r) ASICREV_IS(r, GFX1103_R2)
> +#define ASICREV_IS_GFX1150(r) ASICREV_IS(r, GFX1150)
>
> #endif // _AMDGPU_ASIC_ADDR_H
More information about the igt-dev
mailing list