drm/amdgpu: add new member in amdgpu_device for vmhub counts per asic chip
authorLe Ma <le.ma@amd.com>
Fri, 31 Aug 2018 06:17:28 +0000 (14:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:01 +0000 (14:18 -0500)
commit1daa2bfa17aa5ace20bb02509cd3d2c2c0afc642
tree3a3bd16445d0b04f761b82b5a4ebf6cc3d8b3b9a
parenta2d15ed733365ba2e0e3eb55a83c7a493eaaaa2c
drm/amdgpu: add new member in amdgpu_device for vmhub counts per asic chip

It aims to replace AMDGPU_MAX_VMHUBS in for loop to initialize registers.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c