Skip to content
  • Piotr Piórkowski's avatar
    lib/xe_mmio: Introduce Xe MMIO lib · 686a8ba9
    Piotr Piórkowski authored and Lukasz Laguna's avatar Lukasz Laguna committed
    
    
    Currently in IGT we have a library intel_mmio for simple MMIO operations
    on intel GPU devices, but it is limited only to accessing registers,
    has a lot of legacy code related to the i915 and offers no support for
    multi tile.
    Let's reuse the memory mapping from the previous library and add separate
    helpers, dedicated to Xe, for registers and GGTT access that support multi
    tile.
    
    v2:
     - add missing std ifndef/define in header lib/xe_mmio.h
    v3:
    - remove vf_id from struct xe_mmio
    - rename reg to offset in funcs params
    - change return type for xe_gt_get_tile_id
    
    Signed-off-by: default avatarPiotr Piórkowski <piotr.piorkowski@intel.com>
    Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
    Cc: Lukasz Laguna <lukasz.laguna@intel.com>
    Reviewed-by: default avatarLukasz Laguna <lukasz.laguna@intel.com>
    686a8ba9