@@ -1239,7 +1239,7 @@ static int __init add_acpi_hid_device(u8 *hid, u8 *uid, u32 *devid,
1239
1239
entry -> cmd_line = cmd_line ;
1240
1240
entry -> root_devid = (entry -> devid & (~0x7 ));
1241
1241
1242
- pr_info ("%s, add hid:%s, uid:%s, rdevid:%d \n" ,
1242
+ pr_info ("%s, add hid:%s, uid:%s, rdevid:%#x \n" ,
1243
1243
entry -> cmd_line ? "cmd" : "ivrs" ,
1244
1244
entry -> hid , entry -> uid , entry -> root_devid );
1245
1245
@@ -1331,15 +1331,14 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
1331
1331
switch (e -> type ) {
1332
1332
case IVHD_DEV_ALL :
1333
1333
1334
- DUMP_printk (" DEV_ALL\t\t\tflags : %02x\n" , e -> flags );
1334
+ DUMP_printk (" DEV_ALL\t\t\tsetting : %# 02x\n" , e -> flags );
1335
1335
1336
1336
for (dev_i = 0 ; dev_i <= pci_seg -> last_bdf ; ++ dev_i )
1337
1337
set_dev_entry_from_acpi (iommu , dev_i , e -> flags , 0 );
1338
1338
break ;
1339
1339
case IVHD_DEV_SELECT :
1340
1340
1341
- DUMP_printk (" DEV_SELECT\t\t\t devid: %04x:%02x:%02x.%x "
1342
- "flags: %02x\n" ,
1341
+ DUMP_printk (" DEV_SELECT\t\t\tdevid: %04x:%02x:%02x.%x flags: %#02x\n" ,
1343
1342
seg_id , PCI_BUS_NUM (e -> devid ),
1344
1343
PCI_SLOT (e -> devid ),
1345
1344
PCI_FUNC (e -> devid ),
@@ -1350,8 +1349,7 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
1350
1349
break ;
1351
1350
case IVHD_DEV_SELECT_RANGE_START :
1352
1351
1353
- DUMP_printk (" DEV_SELECT_RANGE_START\t "
1354
- "devid: %04x:%02x:%02x.%x flags: %02x\n" ,
1352
+ DUMP_printk (" DEV_SELECT_RANGE_START\tdevid: %04x:%02x:%02x.%x flags: %#02x\n" ,
1355
1353
seg_id , PCI_BUS_NUM (e -> devid ),
1356
1354
PCI_SLOT (e -> devid ),
1357
1355
PCI_FUNC (e -> devid ),
@@ -1364,8 +1362,7 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
1364
1362
break ;
1365
1363
case IVHD_DEV_ALIAS :
1366
1364
1367
- DUMP_printk (" DEV_ALIAS\t\t\t devid: %04x:%02x:%02x.%x "
1368
- "flags: %02x devid_to: %02x:%02x.%x\n" ,
1365
+ DUMP_printk (" DEV_ALIAS\t\t\tdevid: %04x:%02x:%02x.%x flags: %#02x devid_to: %02x:%02x.%x\n" ,
1369
1366
seg_id , PCI_BUS_NUM (e -> devid ),
1370
1367
PCI_SLOT (e -> devid ),
1371
1368
PCI_FUNC (e -> devid ),
@@ -1382,9 +1379,7 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
1382
1379
break ;
1383
1380
case IVHD_DEV_ALIAS_RANGE :
1384
1381
1385
- DUMP_printk (" DEV_ALIAS_RANGE\t\t "
1386
- "devid: %04x:%02x:%02x.%x flags: %02x "
1387
- "devid_to: %04x:%02x:%02x.%x\n" ,
1382
+ DUMP_printk (" DEV_ALIAS_RANGE\t\tdevid: %04x:%02x:%02x.%x flags: %#02x devid_to: %04x:%02x:%02x.%x\n" ,
1388
1383
seg_id , PCI_BUS_NUM (e -> devid ),
1389
1384
PCI_SLOT (e -> devid ),
1390
1385
PCI_FUNC (e -> devid ),
@@ -1401,8 +1396,7 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
1401
1396
break ;
1402
1397
case IVHD_DEV_EXT_SELECT :
1403
1398
1404
- DUMP_printk (" DEV_EXT_SELECT\t\t devid: %04x:%02x:%02x.%x "
1405
- "flags: %02x ext: %08x\n" ,
1399
+ DUMP_printk (" DEV_EXT_SELECT\t\tdevid: %04x:%02x:%02x.%x flags: %#02x ext: %08x\n" ,
1406
1400
seg_id , PCI_BUS_NUM (e -> devid ),
1407
1401
PCI_SLOT (e -> devid ),
1408
1402
PCI_FUNC (e -> devid ),
@@ -1414,8 +1408,7 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
1414
1408
break ;
1415
1409
case IVHD_DEV_EXT_SELECT_RANGE :
1416
1410
1417
- DUMP_printk (" DEV_EXT_SELECT_RANGE\t devid: "
1418
- "%04x:%02x:%02x.%x flags: %02x ext: %08x\n" ,
1411
+ DUMP_printk (" DEV_EXT_SELECT_RANGE\tdevid: %04x:%02x:%02x.%x flags: %#02x ext: %08x\n" ,
1419
1412
seg_id , PCI_BUS_NUM (e -> devid ),
1420
1413
PCI_SLOT (e -> devid ),
1421
1414
PCI_FUNC (e -> devid ),
@@ -1428,7 +1421,7 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
1428
1421
break ;
1429
1422
case IVHD_DEV_RANGE_END :
1430
1423
1431
- DUMP_printk (" DEV_RANGE_END\t\t devid : %04x:%02x:%02x.%x\n" ,
1424
+ DUMP_printk (" DEV_RANGE_END\t\tdevid : %04x:%02x:%02x.%x\n" ,
1432
1425
seg_id , PCI_BUS_NUM (e -> devid ),
1433
1426
PCI_SLOT (e -> devid ),
1434
1427
PCI_FUNC (e -> devid ));
@@ -1461,11 +1454,12 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
1461
1454
else
1462
1455
var = "UNKNOWN" ;
1463
1456
1464
- DUMP_printk (" DEV_SPECIAL(%s[%d])\t\tdevid: %04x:%02x:%02x.%x\n" ,
1457
+ DUMP_printk (" DEV_SPECIAL(%s[%d])\t\tdevid: %04x:%02x:%02x.%x, flags: %#02x \n" ,
1465
1458
var , (int )handle ,
1466
1459
seg_id , PCI_BUS_NUM (devid ),
1467
1460
PCI_SLOT (devid ),
1468
- PCI_FUNC (devid ));
1461
+ PCI_FUNC (devid ),
1462
+ e -> flags );
1469
1463
1470
1464
ret = add_special_device (type , handle , & devid , false);
1471
1465
if (ret )
@@ -1525,11 +1519,12 @@ static int __init init_iommu_from_acpi(struct amd_iommu *iommu,
1525
1519
}
1526
1520
1527
1521
devid = PCI_SEG_DEVID_TO_SBDF (seg_id , e -> devid );
1528
- DUMP_printk (" DEV_ACPI_HID(%s[%s])\t\tdevid: %04x:%02x:%02x.%x\n" ,
1522
+ DUMP_printk (" DEV_ACPI_HID(%s[%s])\t\tdevid: %04x:%02x:%02x.%x, flags: %#02x \n" ,
1529
1523
hid , uid , seg_id ,
1530
1524
PCI_BUS_NUM (devid ),
1531
1525
PCI_SLOT (devid ),
1532
- PCI_FUNC (devid ));
1526
+ PCI_FUNC (devid ),
1527
+ e -> flags );
1533
1528
1534
1529
flags = e -> flags ;
1535
1530
0 commit comments