drm/amdgpu: set vm size and block size by individual gmc by default (v3)
authorJunwei Zhang <Jerry.Zhang@amd.com>
Wed, 5 Apr 2017 05:54:56 +0000 (13:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Apr 2017 19:15:43 +0000 (15:15 -0400)
commitbab4fee703ae5bfccb9ba2d1d92294f9db0887c7
tree44fb61c13f9b8b86c7c325467cf9b41bc6578ab1
parente190ed1ea7458e446230de4113cc5d53b8dc4ec8
drm/amdgpu: set vm size and block size by individual gmc by default (v3)

By default, the value is set by individual gmc.
if a specific value is input, it overrides the global value for all

v2: create helper funcs
v3: update gmc9 APU's num_level athough it may be updated in the future.

Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c