drm/amdgpu/mes: enable mes on navi10 and later asic
authorJack Xiao <Jack.Xiao@amd.com>
Fri, 25 Jan 2019 06:56:01 +0000 (14:56 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jun 2019 23:58:22 +0000 (18:58 -0500)
When amdgpu_mes is enabled and asic family is navi10 and
later asic, enable mes per device.

Acked-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 107a1950a7112e5abc2395ff7d683c1dadbc83b0..a70d0a44bdd2c96bc98a1a46d7c24487cb98da7b 100644 (file)
@@ -2578,6 +2578,9 @@ int amdgpu_device_init(struct amdgpu_device *adev,
        if (amdgpu_mcbp)
                DRM_INFO("MCBP is enabled\n");
 
+       if (amdgpu_mes && adev->asic_type >= CHIP_NAVI10)
+               adev->enable_mes = true;
+
        if (amdgpu_discovery) {
                r = amdgpu_discovery_init(adev);
                if (r) {