@@ -1363,14 +1363,8 @@ static void
1363
1363
intel_get_dram_info (struct drm_i915_private * dev_priv )
1364
1364
{
1365
1365
struct dram_info * dram_info = & dev_priv -> dram_info ;
1366
- char bandwidth_str [32 ];
1367
1366
int ret ;
1368
1367
1369
- dram_info -> valid = false;
1370
- dram_info -> ranks = 0 ;
1371
- dram_info -> bandwidth_kbps = 0 ;
1372
- dram_info -> num_channels = 0 ;
1373
-
1374
1368
/*
1375
1369
* Assume 16Gb DIMMs are present until proven otherwise.
1376
1370
* This is only used for the level 0 watermark latency
@@ -1391,12 +1385,10 @@ intel_get_dram_info(struct drm_i915_private *dev_priv)
1391
1385
if (ret )
1392
1386
return ;
1393
1387
1394
- if (dram_info -> bandwidth_kbps )
1395
- sprintf (bandwidth_str , "%d KBps" , dram_info -> bandwidth_kbps );
1396
- else
1397
- sprintf (bandwidth_str , "unknown" );
1398
- DRM_DEBUG_KMS ("DRAM bandwidth:%s, total-channels: %u\n" ,
1399
- bandwidth_str , dram_info -> num_channels );
1388
+ DRM_DEBUG_KMS ("DRAM bandwidth: %u kBps, channels: %u\n" ,
1389
+ dram_info -> bandwidth_kbps ,
1390
+ dram_info -> num_channels );
1391
+
1400
1392
DRM_DEBUG_KMS ("DRAM ranks: %u, 16Gb DIMMs: %s\n" ,
1401
1393
dram_info -> ranks , yesno (dram_info -> is_16gb_dimm ));
1402
1394
}
0 commit comments