[PATCH umr] Skip sq_cmd halt waves on SI ASICs

Deucher, Alexander Alexander.Deucher at amd.com
Mon Aug 28 15:36:56 UTC 2017


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Tom St Denis
> Sent: Monday, August 28, 2017 8:37 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: StDenis, Tom
> Subject: [PATCH umr] Skip sq_cmd halt waves on SI ASICs
> 
> Signed-off-by: Tom St Denis <tom.stdenis at amd.com>

Acked-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/lib/sq_cmd_halt_waves.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/lib/sq_cmd_halt_waves.c b/src/lib/sq_cmd_halt_waves.c
> index 93e98d5a6035..8973138af90c 100644
> --- a/src/lib/sq_cmd_halt_waves.c
> +++ b/src/lib/sq_cmd_halt_waves.c
> @@ -30,6 +30,10 @@ int umr_sq_cmd_halt_waves(struct umr_asic *asic,
> enum umr_sq_cmd_halt_resume mod
>  	uint32_t value;
>  	uint64_t addr;
> 
> +	// SQ_CMD is not present on SI
> +	if (asic->family == FAMILY_SI)
> +		return 0;
> +
>  	reg = umr_find_reg_data(asic, "mmSQ_CMD");
>  	if (!reg) {
>  		fprintf(stderr, "[BUG]: Cannot find SQ_CMD register in
> umr_sq_cmd_halt_waves()\n");
> --
> 2.12.0
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list