From nobody Thu Oct 24 10:36:35 2024 X-Original-To: dev-commits-src-all@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 4XZ2QW5VKtz5bKq5; Thu, 24 Oct 2024 10:36:35 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XZ2QW4f8kz4pcJ; Thu, 24 Oct 2024 10:36:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729766195; 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=aXqdKjwyFLrmR3TmqgGEijebcJJcrarygmWyWcc76SU=; b=DEynS3Nv5csIfX8bGpZTIb4ikmBovP5szX58TfMwgpLQXi3OEO9q4jVPbs5WQRl9LYWefA dbqgay0G0fY2gn1pgAc93A65XITVsZUMIMGDToGsgJr+z0rnwwObQdMMVbf9724Yvf0VDW lJKaypCN0VUisajptn48Ke9f1UqwE9x/eRrny9kJrku3T1xGNzBYOwTtnV4YYSkVg5Uz0H APZnspyQFgGQvRwyo6m7X9POEjY4NvTUjPoaDihxs5abkTuH62qyh9Vo5+/d4m3eCYWalD yHm+UNK0UE8Qzi8bVDqMsYuF8XULoUl+GTAW9e7VenMbskivqe2I6OS/jPcsIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729766195; 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=aXqdKjwyFLrmR3TmqgGEijebcJJcrarygmWyWcc76SU=; b=CueKo7/JegObAehF1NVLi8n27eWmsMGBzjn+EeHpkXLzhKZtxwW77JC7PwsNdsoiedxaNp AVtdJh8TmoKTDdWRNsj9qCxLKJCv+h2GU2aSPOCQZv8YXifbDtR6E2n3zdqejHuevYBRZB 1lqeyvPHJxjvw/PlkWO4n8cNoQcAeA/UC4R1RClnVGVuXXCktY0CCxV0EUmCr+BAUq6ByI Qtbzun3iujzlBzBHCsQ+tGPb9TSJoKObyFBYaxJn4PXZk9XS3oJAbv86M+W2kIxF1IEdkq KBMOiCz+UoCKziUt1z3tsoAiMSglQ91TpX7ZzO5ySkQ07tifRm4y032SMbp/PQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729766195; a=rsa-sha256; cv=none; b=ebuY8A19G+UjKfHkt67MnAaM3GSZoq/lCAJ2i2xmfvav16T7MyRdPKkTj8l1VJOFZYhAcQ Ia21Ppz0f7Wp0C/DwyWy/TkrnmMyi398rqQ/7ZcT+BVepqB3w5tUU0aXzLXNBKfdv1R6Lm iHMcxWGDL5KsVEZwamZ2n07ZuoOxt6dMk71d5fNXKMR9rRDBSUenfdLt9UG4zS63b5olab PwYlTdjqRHZdyspm3xDpJZiH3snOBY3hIBacwtUHtmHCtJwiqD77qu5qQGVE9a95RX0K5M iII1GKMizXxHKU9D7RMWTw2kzeK2ph+4u/exliy7zSTxpKvATy9hjvxRiphbqw== 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 4XZ2QW4CxnzfXP; Thu, 24 Oct 2024 10:36:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49OAaZGK058959; Thu, 24 Oct 2024 10:36:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49OAaZYs058956; Thu, 24 Oct 2024 10:36:35 GMT (envelope-from git) Date: Thu, 24 Oct 2024 10:36:35 GMT Message-Id: <202410241036.49OAaZYs058956@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: b2dd4970c7b5 - main - dev/gpio: Mask all pl011 interrupts List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b2dd4970c7b5c20bef35a8924cc2a5f54ea4cb30 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=b2dd4970c7b5c20bef35a8924cc2a5f54ea4cb30 commit b2dd4970c7b5c20bef35a8924cc2a5f54ea4cb30 Author: Andrew Turner AuthorDate: 2024-10-23 16:57:31 +0000 Commit: Andrew Turner CommitDate: 2024-10-24 10:20:48 +0000 dev/gpio: Mask all pl011 interrupts The firmware may have unmasked pl011 interrupts. If we don't have a device to handle one the kernel will print a spurious interrupt warning. Rather than print the warning mask all interrupts until we are ready to handle them. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D46863 --- sys/dev/gpio/pl061.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/gpio/pl061.c b/sys/dev/gpio/pl061.c index 76754fead635..cc39790322b6 100644 --- a/sys/dev/gpio/pl061.c +++ b/sys/dev/gpio/pl061.c @@ -460,6 +460,9 @@ pl061_attach(device_t dev) goto free_mem; } + /* Mask all interrupts. They will be unmasked as needed later */ + bus_write_1(sc->sc_mem_res, PL061_INTMASK, 0); + ret = bus_setup_intr(dev, sc->sc_irq_res, INTR_TYPE_MISC | INTR_MPSAFE, pl061_intr, NULL, sc, &sc->sc_irq_hdlr); if (ret) {