net: dsa: mv88e6xxx: Decode ATU problem interrupt
When there is a problem with the ATU, an interrupt can be generated. Trap this interrupt and decode the registers to determine what the problem was, then log the error. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
@@ -31,7 +31,7 @@
|
||||
#define MV88E6XXX_G1_STS_IRQ_STATS 6
|
||||
#define MV88E6XXX_G1_STS_IRQ_VTU_PROBLEM 5
|
||||
#define MV88E6XXX_G1_STS_IRQ_VTU_DONE 4
|
||||
#define MV88E6XXX_G1_STS_IRQ_ATU_PROBLEM 3
|
||||
#define MV88E6XXX_G1_STS_IRQ_ATU_PROB 3
|
||||
#define MV88E6XXX_G1_STS_IRQ_ATU_DONE 2
|
||||
#define MV88E6XXX_G1_STS_IRQ_TCAM_DONE 1
|
||||
#define MV88E6XXX_G1_STS_IRQ_EEPROM_DONE 0
|
||||
@@ -122,6 +122,10 @@
|
||||
#define MV88E6XXX_G1_ATU_OP_FLUSH_MOVE_ALL_DB 0x5000
|
||||
#define MV88E6XXX_G1_ATU_OP_FLUSH_MOVE_NON_STATIC_DB 0x6000
|
||||
#define MV88E6XXX_G1_ATU_OP_GET_CLR_VIOLATION 0x7000
|
||||
#define MV88E6XXX_G1_ATU_OP_AGE_OUT_VIOLATION BIT(7)
|
||||
#define MV88E6XXX_G1_ATU_OP_MEMBER_VIOLATION BIT(6)
|
||||
#define MV88E6XXX_G1_ATU_OP_MISS_VIOLTATION BIT(5)
|
||||
#define MV88E6XXX_G1_ATU_OP_FULL_VIOLATION BIT(4)
|
||||
|
||||
/* Offset 0x0C: ATU Data Register */
|
||||
#define MV88E6XXX_G1_ATU_DATA 0x0c
|
||||
@@ -255,6 +259,8 @@ int mv88e6xxx_g1_atu_loadpurge(struct mv88e6xxx_chip *chip, u16 fid,
|
||||
int mv88e6xxx_g1_atu_flush(struct mv88e6xxx_chip *chip, u16 fid, bool all);
|
||||
int mv88e6xxx_g1_atu_remove(struct mv88e6xxx_chip *chip, u16 fid, int port,
|
||||
bool all);
|
||||
int mv88e6xxx_g1_atu_prob_irq_setup(struct mv88e6xxx_chip *chip);
|
||||
void mv88e6xxx_g1_atu_prob_irq_free(struct mv88e6xxx_chip *chip);
|
||||
|
||||
int mv88e6185_g1_vtu_getnext(struct mv88e6xxx_chip *chip,
|
||||
struct mv88e6xxx_vtu_entry *entry);
|
||||
|
在新工单中引用
屏蔽一个用户