• Lu Baolu's avatar
    iommu/vt-d: Add trace events for cache tag interface · 446a68c5
    Lu Baolu authored
    Add trace events for cache tag assign/unassign/flush operations and trace
    the events in the interfaces. These trace events will improve debugging
    capabilities by providing detailed information about cache tag activity.
    A sample of the traced messages looks like below [messages have been
    stripped and wrapped to make the line short].
    
     cache_tag_assign: dmar9/0000:00:01.0 type iotlb did 1 pasid 9 ref 1
     cache_tag_assign: dmar9/0000:00:01.0 type devtlb did 1 pasid 9 ref 1
     cache_tag_flush_all: dmar6/0000:8a:00.0 type iotlb did 7 pasid 0 ref 1
     cache_tag_flush_range: dmar1 0000:00:1b.0[0] type iotlb did 9
            [0xeab00000-0xeab1afff] addr 0xeab00000 pages 0x20 mask 0x5
     cache_tag_flush_range: dmar1 0000:00:1b.0[0] type iotlb did 9
            [0xeab20000-0xeab31fff] addr 0xeab20000 pages 0x20 mask 0x5
     cache_tag_flush_range: dmar1 0000:00:1b.0[0] type iotlb did 9
            [0xeaa40000-0xeaa51fff] addr 0xeaa40000 pages 0x20 mask 0x5
     cache_tag_flush_range: dmar1 0000:00:1b.0[0] type iotlb did 9
            [0x98de0000-0x98de4fff] addr 0x98de0000 pages 0x8 mask 0x3
     cache_tag_flush_range: dmar1 0000:00:1b.0[0] type iotlb did 9
            [0xe9828000-0xe9828fff] addr 0xe9828000 pages 0x1 mask 0x0
     cache_tag_unassign: dmar9/0000:00:01.0 type iotlb did 1 pasid 9 ref 1
     cache_tag_unassign: dmar9/0000:00:01.0 type devtlb did 1 pasid 9 ref 1
    Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
    Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
    Link: https://lore.kernel.org/r/20240416080656.60968-4-baolu.lu@linux.intel.comSigned-off-by: default avatarJoerg Roedel <jroedel@suse.de>
    446a68c5
cache.c 12 KB