[PATCH 3/4] drm/amdgpu: Use ARCTURUS in RAS EEPROM.

Deucher, Alexander Alexander.Deucher at amd.com
Mon Oct 21 13:23:53 UTC 2019


> -----Original Message-----
> From: Andrey Grodzovsky <andrey.grodzovsky at amd.com>
> Sent: Friday, October 18, 2019 4:49 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Chen, Guchun <Guchun.Chen at amd.com>; Zhou1, Tao
> <Tao.Zhou1 at amd.com>; Deucher, Alexander
> <Alexander.Deucher at amd.com>; noreply-confluence at amd.com; Quan,
> Evan <Evan.Quan at amd.com>; Grodzovsky, Andrey
> <Andrey.Grodzovsky at amd.com>
> Subject: [PATCH 3/4] drm/amdgpu: Use ARCTURUS in RAS EEPROM.
> 

Please add a patch description.  With that fixed:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
> index 20af0a1..7de16c0 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
> @@ -216,6 +216,10 @@ int amdgpu_ras_eeprom_init(struct
> amdgpu_ras_eeprom_control *control)
>  		ret = smu_v11_0_i2c_eeprom_control_init(&control-
> >eeprom_accessor);
>  		break;
> 
> +	case CHIP_ARCTURUS:
> +		ret = smu_i2c_eeprom_init(&adev->smu, &control-
> >eeprom_accessor);
> +		break;
> +
>  	default:
>  		return 0;
>  	}
> @@ -260,6 +264,9 @@ void amdgpu_ras_eeprom_fini(struct
> amdgpu_ras_eeprom_control *control)
>  	case CHIP_VEGA20:
>  		smu_v11_0_i2c_eeprom_control_fini(&control-
> >eeprom_accessor);
>  		break;
> +	case CHIP_ARCTURUS:
> +		smu_i2c_eeprom_fini(&adev->smu, &control-
> >eeprom_accessor);
> +		break;
> 
>  	default:
>  		return;
> @@ -364,7 +371,7 @@ int amdgpu_ras_eeprom_process_recods(struct
> amdgpu_ras_eeprom_control *control,
>  	struct eeprom_table_record *record;
>  	struct amdgpu_device *adev = to_amdgpu_device(control);
> 
> -	if (adev->asic_type != CHIP_VEGA20)
> +	if (adev->asic_type != CHIP_VEGA20 && adev->asic_type !=
> CHIP_ARCTURUS)
>  		return 0;
> 
>  	buffs = kcalloc(num, EEPROM_ADDRESS_SIZE +
> EEPROM_TABLE_RECORD_SIZE,
> --
> 2.7.4



More information about the amd-gfx mailing list