From nobody Thu Jan 20 10:36:46 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 85A311975421; Thu, 20 Jan 2022 10:36:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jff7y2h1Fz4kPf; Thu, 20 Jan 2022 10:36:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642675006; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7Y1qnScCXV4woTPCM7vnxxN3f8M80NN5AUMil4zTtIw=; b=Vju5Hol12QlNIDIp6fqpBV0RMN2+jpxLAmDmadnzHg8iaet3+g1ep1sFZwLwzNdHLgEGq1 8IAFb6ekTS6G6Jv1xE159QgWFev9upEgdTX5bO2INGgwGVq+QbsaFhjVcjLJDbzdYeYp61 OejL72pYIDewGT2VA4MeipC4tEBICPFBKJp8Ds0p9R6Vg17Ds+O5sQYkl1kb/U/6jPEiFh iGQPgcnX+D96lvpdCFfJJ5CYYLw9F30pz76xKyD90yl7zM14uVnJSiCLHI8BRcheUN5pPn iLxkpCzbL4tg60GjXGNZLJpEzrGcCDP/Mcq2hI3nrDOa8B/5mdnpkDJxLca0vw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 352CC26C86; Thu, 20 Jan 2022 10:36:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20KAakjq031929; Thu, 20 Jan 2022 10:36:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20KAak4x031928; Thu, 20 Jan 2022 10:36:46 GMT (envelope-from git) Date: Thu, 20 Jan 2022 10:36:46 GMT Message-Id: <202201201036.20KAak4x031928@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michal Meloun Subject: git: d6529c0d12a2 - stable/13 - pci_dw_mv: Don't enable unhandled interrupts. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mmel X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d6529c0d12a2a6e398273d5bea9a5d3552fc245e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642675006; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7Y1qnScCXV4woTPCM7vnxxN3f8M80NN5AUMil4zTtIw=; b=G/VeOwsWYP8dstXuUjqXkvVQCCV2f5T49NbSKsAXe+SjyDoxnnRdtaK2e4paoS69O9GAfg WNx3KMacSi3aTxgahEp56aVmq2tmvYuWQiuO9meM7WVXy1CHXdOgryNmkzfC+XUVJ4meeJ WuwY24RPBPnKynInYksv+siLy+kTEHOKxbOmuBNLYELlxgn/XpJJNCPYUtd+FOD77EzcUm Vc/pHbAR6aQof4+HtBNwx25G8A4oxcp2eTr0x4dytiuT/Xy1QKhoywj6VLAG4ligcodhdg JkxhnLFPUZGgpdXHGQpq3oUzjRHl6FlCR4nkuV3F8KJthK51CC2SsjRVfLdUJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642675006; a=rsa-sha256; cv=none; b=PYzMg18yIdjGJz/WiP+5MlzTYwwKkbMWaMX2tLSIk0+5y1S+tDnk5igVsWfyFC8Xeg2mAP LdDwN+d+vXlIpalNJcKBcfHlQcwt/c9XjPq10HAK1OLA2RlLVptPnwbWvsJCTWkTqAXwcB DmbYmi4sxZElo+CWcPavQkngK5OIjqpTOuLK95nrK26L6+nE9Ax8pWhGuFHZ+JkspUkKzx w6HiFx0xfrjIWzIs/XAg8pPu7CP8qOoi95IFbiBfZ1OnkWjtukYcYIpVNbqU7EDDvVz/1p Sj+93TnkOkjhSck3b6DjsYAU19JRJuzchlpE5oQBsN6T5LqdCwjCphNt5WzNKA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mmel: URL: https://cgit.FreeBSD.org/src/commit/?id=d6529c0d12a2a6e398273d5bea9a5d3552fc245e commit d6529c0d12a2a6e398273d5bea9a5d3552fc245e Author: Michal Meloun AuthorDate: 2021-01-27 11:45:32 +0000 Commit: Michal Meloun 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);