File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
drivers/gpu/drm/amd/pm/swsmu/smu13 Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ int smu_v13_0_12_setup_driver_pptable(struct smu_context *smu)
257257 struct PPTable_t * pptable =
258258 (struct PPTable_t * )smu_table -> driver_pptable ;
259259 uint32_t table_version ;
260- int ret , i ;
260+ int ret , i , n ;
261261
262262 if (!pptable -> Init ) {
263263 ret = smu_v13_0_6_get_static_metrics_table (smu );
@@ -296,6 +296,22 @@ int smu_v13_0_12_setup_driver_pptable(struct smu_context *smu)
296296 /* use AID0 serial number by default */
297297 pptable -> PublicSerialNumber_AID =
298298 static_metrics -> PublicSerialNumber_AID [0 ];
299+
300+ amdgpu_device_set_uid (smu -> adev -> uid_info , AMDGPU_UID_TYPE_SOC ,
301+ 0 , pptable -> PublicSerialNumber_AID );
302+ n = ARRAY_SIZE (static_metrics -> PublicSerialNumber_AID );
303+ for (i = 0 ; i < n ; i ++ ) {
304+ amdgpu_device_set_uid (
305+ smu -> adev -> uid_info , AMDGPU_UID_TYPE_AID , i ,
306+ static_metrics -> PublicSerialNumber_AID [i ]);
307+ }
308+ n = ARRAY_SIZE (static_metrics -> PublicSerialNumber_XCD );
309+ for (i = 0 ; i < n ; i ++ ) {
310+ amdgpu_device_set_uid (
311+ smu -> adev -> uid_info , AMDGPU_UID_TYPE_XCD , i ,
312+ static_metrics -> PublicSerialNumber_XCD [i ]);
313+ }
314+
299315 ret = smu_v13_0_12_fru_get_product_info (smu , static_metrics );
300316 if (ret )
301317 return ret ;
You can’t perform that action at this time.
0 commit comments