diff --git a/projects/rocr-runtime/src/queues.c b/projects/rocr-runtime/src/queues.c index 3118d2a12c..e2148a641f 100644 --- a/projects/rocr-runtime/src/queues.c +++ b/projects/rocr-runtime/src/queues.c @@ -42,11 +42,13 @@ enum asic_family_type { CHIP_HAWAII, CHIP_CARRIZO, CHIP_TONGA, - CHIP_FIJI + CHIP_FIJI, + CHIP_POLARIS10, + CHIP_POLARIS11 }; -#define IS_VI(chip) ((chip) >= CHIP_CARRIZO && (chip) <= CHIP_FIJI) -#define IS_DGPU(chip) (((chip) >= CHIP_TONGA && (chip) <= CHIP_FIJI) || \ +#define IS_VI(chip) ((chip) >= CHIP_CARRIZO && (chip) <= CHIP_POLARIS11) +#define IS_DGPU(chip) (((chip) >= CHIP_TONGA && (chip) <= CHIP_POLARIS11) || \ (chip) == CHIP_HAWAII) #define WG_CONTEXT_DATA_SIZE_PER_CU_VI 344576 @@ -83,6 +85,16 @@ struct device_info fiji_device_info = { .eop_buffer_size = TONGA_PAGE_SIZE, }; +struct device_info polaris10_device_info = { + .asic_family = CHIP_POLARIS10, + .eop_buffer_size = TONGA_PAGE_SIZE, +}; + +struct device_info polaris11_device_info = { + .asic_family = CHIP_POLARIS11, + .eop_buffer_size = TONGA_PAGE_SIZE, +}; + struct device_id { uint16_t dev_id; @@ -141,6 +153,12 @@ struct device_id supported_devices[] = { { 0x6939, &tonga_device_info }, { 0x7300, &fiji_device_info }, { 0x730f, &fiji_device_info }, + { 0x67c4, &polaris10_device_info }, + { 0x67c7, &polaris10_device_info }, + { 0x67df, &polaris10_device_info }, + { 0x67e3, &polaris11_device_info }, + { 0x67ef, &polaris11_device_info }, + { 0x67ff, &polaris11_device_info }, { 0, NULL } }; diff --git a/projects/rocr-runtime/src/topology.c b/projects/rocr-runtime/src/topology.c index 409ffdc5e8..cd8317afbd 100644 --- a/projects/rocr-runtime/src/topology.c +++ b/projects/rocr-runtime/src/topology.c @@ -137,7 +137,15 @@ static struct hsa_gfxip_table { { 0x6939, 8, 0, 2, 1, "Tonga" }, /* Fiji */ { 0x7300, 8, 0, 3, 1, "Fiji" }, - { 0x730f, 8, 0, 3, 1, "Fiji" } + { 0x730f, 8, 0, 3, 1, "Fiji" }, + /* Polaris10 */ + { 0x67C4, 8, 0, 3, 1, "Polaris10" }, + { 0x67C7, 8, 0, 3, 1, "Polaris10" }, + { 0x67DF, 8, 0, 3, 1, "Polaris10" }, + /* Polaris11 */ + { 0x67E3, 8, 0, 3, 1, "Polaris11" }, + { 0x67EF, 8, 0, 3, 1, "Polaris11" }, + { 0x67FF, 8, 0, 3, 1, "Polaris11" } }; enum cache_type {