• Dmitry Kravkov's avatar
    bnx2x: Don't pretend during register dump · 4293b9f5
    Dmitry Kravkov authored
    As part of a register dump, the interface pretends to have the identity
    of other interfaces of the same physical device in order to perform
    HW configuration for them - specifically, it needs to prevent attentions
    from generating on those functions as the register dump accesses registers
    in common blocks which whose reading might generate an attention.
    
    However, such pretension is unsafe - unlike other flows in which the driver
    uses pretend, during register dump there is no guarantee no other HW access
    will take place (by other flows). If such access will take place, the HW will
    be accessed by the wrong interface, and leave both functions in an incorrect
    state.
    
    This patch removes all pretensions from the register dump flow. Instead, it
    changes initial configuration of attentions such that no fatal attention will
    be generated for other functions as a result of the register dump
    (notice however, a debug print claiming an attention from other functions IS
    possible during the register dump)
    Signed-off-by: default avatarDmitry Kravkov <dmitry@broadcom.com>
    Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
    Signed-off-by: default avatarAriel Elior <ariele@broadcom.com>
    Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4293b9f5
bnx2x_ethtool.c 94.9 KB