git: d6529c0d12a2 - stable/13 - pci_dw_mv: Don't enable unhandled interrupts.

From: Michal Meloun <mmel_at_FreeBSD.org>
Date: Thu, 20 Jan 2022 10:36:46 UTC
The branch stable/13 has been updated by mmel:

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

commit d6529c0d12a2a6e398273d5bea9a5d3552fc245e
Author:     Michal Meloun <mmel@FreeBSD.org>
AuthorDate: 2021-01-27 11:45:32 +0000
Commit:     Michal Meloun <mmel@FreeBSD.org>
CommitDate: 2022-01-20 10:35:51 +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.
    
    (cherry picked from commit ce5a4083de2d79bc44d209c9e355a09ede47346c)
---
 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);