drm/amdgpu/gfx9: simplify and fix GRBM index selection
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 14 Jul 2017 11:00:04 +0000 (13:00 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2017 20:38:15 +0000 (16:38 -0400)
commit4d48708c5e8cfe6010259e2b22a8cf7714a51b66
tree0efd39f2a2ba07aca8b4554ffa3962e89027dd46
parentb7ae412c6f7050b917d8b0bf2dadb212d740d8a5
drm/amdgpu/gfx9: simplify and fix GRBM index selection

Copy the approach taken by gfx8, which simplifies the code, and set the
instance index properly. The latter is required for debugging, e.g. for
reading wave status by UMR.

Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c