From nobody Thu Oct 24 10:36:36 2024 X-Original-To: dev-commits-src-main@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 4XZ2QX6Cf9z5bK8d; Thu, 24 Oct 2024 10:36:36 +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 4XZ2QX5ZkMz4pl3; Thu, 24 Oct 2024 10:36:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729766196; 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=np8P4xvLgrOoorYwwEp88z9ZdKcr99aM7+mt5r1Jzyo=; b=ZIr3nuFkMYSvnZc640LTE7PIoEoBNDNNMm5uCQbv56cHx4vA9sSsnFyRDjQZ1Hzd32U9A+ QoZNfbV+nzsHyzagP2j8pFEewIgGK3f45h+zTbGYVW35I1mYCzeIjFV0lNjiXgKyeMFcts 7nAYYvEby6lkJemieUCl3FnOCYbARgFoBfwnAET2vuIzNC6azNcF3AL2bQztCgD0ihoY6l aUGO1KUpiacNZMqFZBCH3FH9zcv1l+N8vJg8Mvu6iYnG7P8QI2PdSllUWFhPlJH+Jdslx2 r93dUkBdYcCS4N10B3wmf+9NxsQtgSw5qfM03DnLbryBtYdxOltfjRPRHfysWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729766196; 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=np8P4xvLgrOoorYwwEp88z9ZdKcr99aM7+mt5r1Jzyo=; b=lZhCEeUi621FCXFC7tu7OCoeIq6h7wi6nVHsJF3LtNghlCIxAzHWla5X3FO1pF+qKxd2ok B5tN2NsWsds+YCB1JNAxRu2oMso7Hucxzc5jiU4Uhm7qvxpgKAhUzJJA1YU6Fqg5LSZsAu sPCrtpMCAuGrtrFAEq78ukrmvoZcgQ7P8BpPiT1su+32vQbYwhmFfOayHIV0p4ccKZx0DS rXQXXAFVOhOWnTk3GtfOLQEpjSpB2P1qox7OqbHyZZuV+fzdlVJLuXnfX0GANDtjS7AZjz Yi4e0Ofy8brTeeq3Wwcl7JFr0lyVRFxgIxSDbxCI8NbeCm4hvDCBOQ0IYrvJKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729766196; a=rsa-sha256; cv=none; b=pRoV3qpsbNSrzxIq76vZkspYIc5RagJu4q3OoqCNg1S+sX8zU8lPj3/1YCG91GkOF6lbjk EAbkG2HX+zli5ljhryVMHGvVbOUAGGISAcYMIWFE4EOYfdkKm4ru2sW9+ZicNrhdTT8P1K d9FBu83/PmhhDb/vlPq8o4dklmb2E0dZroB+x+ZASX+xy6PUnEGVW+OwB/CKisSDiA/lHa Zc70XEkFg/glC79WwWnDvKGxgU4Wqo2bax1KdxLKToCuVinDU8NX2sTxD6L9TLRaA5luY/ pHSPv3mjjLG+nrEDCKvyzzleFxRxJElhJALX00mA7F29BnfVWcyRmA1eCBWP+w== 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 4XZ2QX59SNzfGV; Thu, 24 Oct 2024 10:36:36 +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 49OAaair059001; Thu, 24 Oct 2024 10:36:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49OAaaRx058998; Thu, 24 Oct 2024 10:36:36 GMT (envelope-from git) Date: Thu, 24 Oct 2024 10:36:36 GMT Message-Id: <202410241036.49OAaaRx058998@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: 3b03e1bb8615 - main - intrng: Store the IPI priority List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 3b03e1bb86157cc235563fc6e86c33b6bd9baea8 Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=3b03e1bb86157cc235563fc6e86c33b6bd9baea8 commit 3b03e1bb86157cc235563fc6e86c33b6bd9baea8 Author: Andrew Turner AuthorDate: 2024-10-23 16:57:53 +0000 Commit: Andrew Turner CommitDate: 2024-10-24 10:20:48 +0000 intrng: Store the IPI priority When registering an interrupt controller we take a priority to compare. We never store the priority so any later calls may act incorrectly. Store the priority so later calls act as expected. Reviewed by: jrtc27 Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D47235 --- sys/kern/subr_intr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_intr.c b/sys/kern/subr_intr.c index b8c085367dd6..e88018e58729 100644 --- a/sys/kern/subr_intr.c +++ b/sys/kern/subr_intr.c @@ -1854,8 +1854,10 @@ intr_ipi_pic_register(device_t dev, u_int priority) return (EBUSY); } - if (intr_ipi_dev == NULL || priority > intr_ipi_dev_priority) + if (intr_ipi_dev == NULL || priority > intr_ipi_dev_priority) { + intr_ipi_dev_priority = priority; intr_ipi_dev = dev; + } return (0); }