[PATCH 1/2] Revert "drm/amdgpu: Add unique_id for Arcturus"
Kent Russell
kent.russell at amd.com
Thu May 7 18:54:02 UTC 2020
This reverts commit b3abbca4eca6091e0e657baf9a5402e204e97d4c.
SMU does not support this on Arcturus right now
Signed-off-by: Kent Russell <kent.russell at amd.com>
Change-Id: Ia5f29f91a64005f68dbb9499b43789fe473cd00c
---
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
index f55f9b371bf2..e98d92ec1eac 100644
--- a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
+++ b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
@@ -293,7 +293,6 @@ static int arcturus_get_workload_type(struct smu_context *smu, enum PP_SMC_POWER
static int arcturus_tables_init(struct smu_context *smu, struct smu_table *tables)
{
struct smu_table_context *smu_table = &smu->smu_table;
- uint32_t top32, bottom32;
SMU_TABLE_INIT(tables, SMU_TABLE_PPTABLE, sizeof(PPTable_t),
PAGE_SIZE, AMDGPU_GEM_DOMAIN_VRAM);
@@ -316,15 +315,6 @@ static int arcturus_tables_init(struct smu_context *smu, struct smu_table *table
return -ENOMEM;
smu_table->metrics_time = 0;
- if (smu->adev->asic_type == CHIP_ARCTURUS) {
- /* Get the SN to turn into a Unique ID */
- smu_send_smc_msg(smu, SMU_MSG_ReadSerialNumTop32,
- &top32);
- smu_send_smc_msg(smu, SMU_MSG_ReadSerialNumBottom32,
- &bottom32);
-
- smu->adev->unique_id = ((uint64_t)bottom32 << 32) | top32;
- }
return 0;
}
--
2.17.1
More information about the amd-gfx
mailing list