• Lucas De Marchi's avatar
    drm/xe/rtp: Split action and entry flags · 944a5e99
    Lucas De Marchi authored
    Entry flags is meant for the whole entry, including the rule
    evaluation. Action flags are for flags applied to the register or
    action being taken. Since there's only one action per entry, the
    distinction was not important and a u8 was spared. However more and more
    workarounds are needing multiple actions. This prepares for multiple
    action support.
    
    Right now there are these action flags:
    
     - XE_RTP_ACTION_FLAG_MASKED_REG: register in the action is a masked
       register
     - XE_RTP_ACTION_FLAG_ENGINE_BASE: the engine base should be added to
       the register in order to form the real address
    
    And this entry flag:
    
     - XE_RTP_ENTRY_FLAG_FOREACH_ENGINE: the rules should be evaluated for
       each engine on the gt. It also automatically implies
       XE_RTP_ACTION_FLAG_ENGINE_BASE.
    
    Since there are likely not that many rules, reduce n_rules to u8 so the
    overall entry size doesn't increase more than needed.
    Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
    Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
    Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
    944a5e99
xe_reg_whitelist.c 2.2 KB