[PATCH umr] Switch GRBM index when reading wave data directly.

Nicolai Hähnle nhaehnle at gmail.com
Thu Nov 9 10:23:52 UTC 2017


Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 08.11.2017 19:39, Tom St Denis wrote:
> Signed-off-by: Tom St Denis <tom.stdenis at amd.com>
> ---
>   src/lib/wave_status.c | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/src/lib/wave_status.c b/src/lib/wave_status.c
> index fe2add779fdd..7f0130bb9347 100644
> --- a/src/lib/wave_status.c
> +++ b/src/lib/wave_status.c
> @@ -116,7 +116,9 @@ static int umr_get_wave_status_vi(struct umr_asic *asic, unsigned se, unsigned s
>   		read(asic->fd.wave, &buf, 32*4);
>   	} else {
>   		int n = 0;
> +		umr_grbm_select_index(asic, se, sh, cu);
>   		read_wave_status_via_mmio(asic, simd, wave, &buf[0], &n);
> +		umr_grbm_select_index(asic, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF);
>   	}
>   
>   	if (buf[0] != 0) {
> @@ -218,7 +220,9 @@ static int umr_get_wave_status_ai(struct umr_asic *asic, unsigned se, unsigned s
>   		read(asic->fd.wave, &buf, 32*4);
>   	} else {
>   		int n = 0;
> +		umr_grbm_select_index(asic, se, sh, cu);
>   		read_wave_status_via_mmio(asic, simd, wave, &buf[0], &n);
> +		umr_grbm_select_index(asic, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF);
>   	}
>   
>   	if (buf[0] != 1) {
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the amd-gfx mailing list