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:26:22 +0000 (16:26 -0400)
commitbe448a4dd48f4b23274103fb58379f4e1f317de8
tree638810f15398c5492a4aa9d83ba6cea4eb716c4c
parenta4f478bc8863a4fdd69a4bc8309ee60c635a004d
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