[PATCH i-g-t] lib/amdgpu: add GC 11.5.1 to GC 11.5.0 family

vitaly prosyak vprosyak at amd.com
Tue Feb 20 02:07:14 UTC 2024


The change looks good to me.

Reviewed-by: Vitaly Prosyak<vitaly.prosyak at amd.com>

On 2024-02-18 00:19, Jesse Zhang wrote:
> add GC11.5.1 to match the amdgpu kernel.
>
> Cc: Vitaly Prosyak <vitaly.prosyak 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    | 1 +
>  lib/amdgpu/amdgpu_asic_addr.h | 4 +++-
>  3 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/lib/amdgpu/amd_family.h b/lib/amdgpu/amd_family.h
> index 847fb0375..bce2c6c2e 100644
> --- a/lib/amdgpu/amd_family.h
> +++ b/lib/amdgpu/amd_family.h
> @@ -105,6 +105,7 @@ enum radeon_family {
>  	CHIP_GFX1103_R1,
>  	CHIP_GFX1103_R2,
>  	CHIP_GFX1150,
> +	CHIP_GFX1151,
>  	CHIP_LAST,
>  };
>  
> diff --git a/lib/amdgpu/amd_ip_blocks.c b/lib/amdgpu/amd_ip_blocks.c
> index 79ce7b5a8..2ee94105c 100644
> --- a/lib/amdgpu/amd_ip_blocks.c
> +++ b/lib/amdgpu/amd_ip_blocks.c
> @@ -693,6 +693,7 @@ int setup_amdgpu_ip_blocks(uint32_t major, uint32_t minor, struct amdgpu_gpu_inf
>  		break;
>  	case FAMILY_GFX1150:
>  		identify_chip(GFX1150);
> +		identify_chip(GFX1151);
>  		break;
>  	}
>  	if (!info->name) {
> diff --git a/lib/amdgpu/amdgpu_asic_addr.h b/lib/amdgpu/amdgpu_asic_addr.h
> index 0130ae2f0..cbe02871e 100644
> --- a/lib/amdgpu/amdgpu_asic_addr.h
> +++ b/lib/amdgpu/amdgpu_asic_addr.h
> @@ -106,7 +106,8 @@
>  #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_GFX1150_RANGE     0x01, 0xc0 //# 01 <= x < c0
> +#define AMDGPU_GFX1151_RANGE     0xc1, 0xFF //# c1 <= x < 255
>  
>  #define AMDGPU_EXPAND_FIX(x) x
>  #define AMDGPU_RANGE_HELPER(val, min, max) ((val >= min) && (val < max))
> @@ -171,5 +172,6 @@
>  #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)
> +#define ASICREV_IS_GFX1151(r)          ASICREV_IS(r, GFX1151)
>  
>  #endif // _AMDGPU_ASIC_ADDR_H


More information about the igt-dev mailing list