libhsakmt: Add Vega M support

While this may not be supported in the runtime, the kernel/firmware
support it

Change-Id: I7fe4536a6b3055f39e25f453060e899938645d91
Signed-off-by: Kent Russell <kent.russell@amd.com>
This commit is contained in:
Kent Russell
2019-03-21 06:05:08 -04:00
parent c7439a0039
commit 1304a92e17
4 changed files with 13 additions and 0 deletions
+1
View File
@@ -97,6 +97,7 @@ enum asic_family_type {
CHIP_POLARIS10,
CHIP_POLARIS11,
CHIP_POLARIS12,
CHIP_VEGAM,
CHIP_VEGA10,
CHIP_VEGA12,
CHIP_VEGA20,
+1
View File
@@ -1743,6 +1743,7 @@ HSAKMT_STATUS get_block_properties(uint32_t node_id,
case CHIP_POLARIS10:
case CHIP_POLARIS11:
case CHIP_POLARIS12:
case CHIP_VEGAM:
*block = polaris_blocks[block_id];
break;
case CHIP_VEGA10:
+7
View File
@@ -98,6 +98,12 @@ const struct device_info polaris12_device_info = {
.doorbell_size = DOORBELL_SIZE_GFX8,
};
const struct device_info vegam_device_info = {
.asic_family = CHIP_VEGAM,
.eop_buffer_size = TONGA_PAGE_SIZE,
.doorbell_size = DOORBELL_SIZE_GFX8,
};
const struct device_info vega10_device_info = {
.asic_family = CHIP_VEGA10,
.eop_buffer_size = 4096,
@@ -132,6 +138,7 @@ static const struct device_info *dev_lookup_table[] = {
[CHIP_POLARIS10] = &polaris10_device_info,
[CHIP_POLARIS11] = &polaris11_device_info,
[CHIP_POLARIS12] = &polaris12_device_info,
[CHIP_VEGAM] = &vegam_device_info,
[CHIP_VEGA10] = &vega10_device_info,
[CHIP_VEGA12] = &vega12_device_info,
[CHIP_VEGA20] = &vega20_device_info,
+4
View File
@@ -178,6 +178,10 @@ static struct hsa_gfxip_table {
{ 0x6995, 8, 0, 3, 1, "Polaris12", CHIP_POLARIS12 },
{ 0x6997, 8, 0, 3, 1, "Polaris12", CHIP_POLARIS12 },
{ 0x699F, 8, 0, 3, 1, "Polaris12", CHIP_POLARIS12 },
/* VegaM */
{ 0x694C, 8, 0, 3, 1, "VegaM", CHIP_VEGAM },
{ 0x694E, 8, 0, 3, 1, "VegaM", CHIP_VEGAM },
{ 0x694F, 8, 0, 3, 1, "VegaM", CHIP_VEGAM },
/* Vega10 */
{ 0x6860, 9, 0, 0, 1, "Vega10", CHIP_VEGA10 },
{ 0x6861, 9, 0, 0, 1, "Vega10", CHIP_VEGA10 },