drm/amdgpu: Add a kernel parameter for specifying the asic type

As more and more new asics start to reuse the old device IDs before
launch, there is a need to quickly override the existing asic type
corresponding to the reused device ID through a kernel parameter. With
this, engineers no longer need to rely on local hack patches,
facilitating cooperation across teams.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Yong Zhao
2019-09-16 09:54:25 -05:00
committed by Alex Deucher
parent bb42eda284
commit 4e66d7d215
4 changed files with 45 additions and 28 deletions
+27 -27
View File
@@ -27,33 +27,33 @@
*/
enum amd_asic_type {
CHIP_TAHITI = 0,
CHIP_PITCAIRN,
CHIP_VERDE,
CHIP_OLAND,
CHIP_HAINAN,
CHIP_BONAIRE,
CHIP_KAVERI,
CHIP_KABINI,
CHIP_HAWAII,
CHIP_MULLINS,
CHIP_TOPAZ,
CHIP_TONGA,
CHIP_FIJI,
CHIP_CARRIZO,
CHIP_STONEY,
CHIP_POLARIS10,
CHIP_POLARIS11,
CHIP_POLARIS12,
CHIP_VEGAM,
CHIP_VEGA10,
CHIP_VEGA12,
CHIP_VEGA20,
CHIP_RAVEN,
CHIP_ARCTURUS,
CHIP_RENOIR,
CHIP_NAVI10,
CHIP_NAVI14,
CHIP_NAVI12,
CHIP_PITCAIRN, /* 1 */
CHIP_VERDE, /* 2 */
CHIP_OLAND, /* 3 */
CHIP_HAINAN, /* 4 */
CHIP_BONAIRE, /* 5 */
CHIP_KAVERI, /* 6 */
CHIP_KABINI, /* 7 */
CHIP_HAWAII, /* 8 */
CHIP_MULLINS, /* 9 */
CHIP_TOPAZ, /* 10 */
CHIP_TONGA, /* 11 */
CHIP_FIJI, /* 12 */
CHIP_CARRIZO, /* 13 */
CHIP_STONEY, /* 14 */
CHIP_POLARIS10, /* 15 */
CHIP_POLARIS11, /* 16 */
CHIP_POLARIS12, /* 17 */
CHIP_VEGAM, /* 18 */
CHIP_VEGA10, /* 19 */
CHIP_VEGA12, /* 20 */
CHIP_VEGA20, /* 21 */
CHIP_RAVEN, /* 22 */
CHIP_ARCTURUS, /* 23 */
CHIP_RENOIR, /* 24 */
CHIP_NAVI10, /* 25 */
CHIP_NAVI14, /* 26 */
CHIP_NAVI12, /* 27 */
CHIP_LAST,
};