• Tomer Tayar's avatar
    qed: Support management-based resource locking · 95691c9c
    Tomer Tayar authored
    Global locking can't properly be used to synchronize between different
    PFs in all scenarios, as those instances might reside in different
    logical partitions [e.g., when a PF is assigned via PDA to some VM].
    
    The management firmware provides a generic infrastructure for
    device locks. For each 'resource', it's guaranteed it could be acquired
    by at most a single PF at any given time [or by management firmware].
    
    This patch adds the necessary logic in qed for utilizing said
    infrastructure, implementing lock/unlock internal APIs.
    Signed-off-by: default avatarTomer Tayar <Tomer.Tayar@cavium.com>
    Signed-off-by: default avatarYuval Mintz <Yuval.Mintz@cavium.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    95691c9c
qed_hsi.h 387 KB