• Sai Praneeth Prakhya's avatar
    iommu/vt-d: Introduce macros useful for dumping DMAR table · cdd3a249
    Sai Praneeth Prakhya authored
    A scalable mode DMAR table walk would involve looking at bits in each stage
    of walk, like,
    1. Is PASID enabled in the context entry?
    2. What's the size of PASID directory?
    3. Is the PASID directory entry present?
    4. Is the PASID table entry present?
    5. Number of PASID table entries?
    
    Hence, add these macros that will later be used during this walk.
    Apart from adding new macros, move existing macros (like
    pasid_pde_is_present(), get_pasid_table_from_pde() and pasid_supported())
    to appropriate header files so that they could be reused.
    
    Cc: Joerg Roedel <joro@8bytes.org>
    Cc: Ashok Raj <ashok.raj@intel.com>
    Cc: Lu Baolu <baolu.lu@linux.intel.com>
    Cc: Sohil Mehta <sohil.mehta@intel.com>
    Cc: David Woodhouse <dwmw2@infradead.org>
    Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
    Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Reviewed-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
    Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
    Signed-off-by: default avatarSai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>
    Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
    cdd3a249
intel-pasid.h 2.93 KB