git: ce5a4083de2d - main - pci_dw_mv: Don't enable unhandled interrupts.

Michal Meloun mmel at FreeBSD.org
Mon Mar 1 13:03:53 UTC 2021


The branch main has been updated by mmel:

URL: https://cgit.FreeBSD.org/src/commit/?id=ce5a4083de2d79bc44d209c9e355a09ede47346c

commit ce5a4083de2d79bc44d209c9e355a09ede47346c
Author:     Michal Meloun <mmel at FreeBSD.org>
AuthorDate: 2021-01-27 11:45:32 +0000
Commit:     Michal Meloun <mmel at FreeBSD.org>
CommitDate: 2021-03-01 13:03:34 +0000

    pci_dw_mv: Don't enable unhandled interrupts.
    
    Mainly link errors interrupts should only be activated on fully linked port,
    otherwise noise on lanes can cause livelock. But we don't have error
    counters yet, so leave these interrupts disabled.
---
 sys/dev/pci/pci_dw_mv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/pci/pci_dw_mv.c b/sys/dev/pci/pci_dw_mv.c
index 5d39228dd182..43f45ddef54e 100644
--- a/sys/dev/pci/pci_dw_mv.c
+++ b/sys/dev/pci/pci_dw_mv.c
@@ -166,8 +166,8 @@ pci_mv_init(struct pci_mv_softc *sc)
 
 	/* Enable local interrupts */
 	pci_dw_dbi_wr4(sc->dev, DW_MSI_INTR0_MASK, 0xFFFFFFFF);
-	pci_dw_dbi_wr4(sc->dev, MV_INT_MASK1, 0xFFFFFFFF);
-	pci_dw_dbi_wr4(sc->dev, MV_INT_MASK2, 0xFFFFFFFD);
+	pci_dw_dbi_wr4(sc->dev, MV_INT_MASK1, 0x0001FE00);
+	pci_dw_dbi_wr4(sc->dev, MV_INT_MASK2, 0x00000000);
 	pci_dw_dbi_wr4(sc->dev, MV_INT_CAUSE1, 0xFFFFFFFF);
 	pci_dw_dbi_wr4(sc->dev, MV_INT_CAUSE2, 0xFFFFFFFF);
 


More information about the dev-commits-src-main mailing list