aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2017-05-09 12:27:35 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-05-24 18:09:19 -0400
commit2d2e5e7e530722bc5815e5c646c5d5ec7479d55c (patch)
treee9844ba29121738d97539acc65600689d9f96e88 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentfbf09b693579ca92a806e6dde83f6abb4832fc70 (diff)
drm/amdgpu: add raven gpu_info support
Add support for parsing the gpu info table on raven. This is required to get the gpu config data for raven. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Tom St Denis <tom.stdenis@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index d0a26fff53f3..8eb162509c84 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -55,6 +55,7 @@
55#include <linux/firmware.h> 55#include <linux/firmware.h>
56 56
57MODULE_FIRMWARE("amdgpu/vega10_gpu_info.bin"); 57MODULE_FIRMWARE("amdgpu/vega10_gpu_info.bin");
58MODULE_FIRMWARE("amdgpu/raven_gpu_info.bin");
58 59
59static int amdgpu_debugfs_regs_init(struct amdgpu_device *adev); 60static int amdgpu_debugfs_regs_init(struct amdgpu_device *adev);
60static void amdgpu_debugfs_regs_cleanup(struct amdgpu_device *adev); 61static void amdgpu_debugfs_regs_cleanup(struct amdgpu_device *adev);
@@ -1430,6 +1431,9 @@ static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev)
1430 case CHIP_VEGA10: 1431 case CHIP_VEGA10:
1431 chip_name = "vega10"; 1432 chip_name = "vega10";
1432 break; 1433 break;
1434 case CHIP_RAVEN:
1435 chip_name = "raven";
1436 break;
1433 } 1437 }
1434 1438
1435 snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_gpu_info.bin", chip_name); 1439 snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_gpu_info.bin", chip_name);