From nobody Thu Feb 23 19:34:22 2023 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 4PN3B71nNnz3sfFc; Thu, 23 Feb 2023 19:34:23 +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 4PN3B71CYrz44m0; Thu, 23 Feb 2023 19:34:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677180863; 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=h+F0v/cWLUX/itfAu3OJMqOVjr+8o46NTzOCuVG8418=; b=piow+Y3HAz7avPt7n11954VFdRqrFl0O9zQW+rpWugjfp++ZHikQ2h1sYqTTBOjXJgERwS N3Ma/yC28C1im2jUUY/r4NyP/5akYx96pUeGR7FHUsNLX6pamYp6oWfC5pdFVQTTJH/JKw 6gn/GcsMJaz0gFeFK9lzaXd2VY/mozNA2BPUYOAh/4i0bbF0SEI3onrLFDx7bYhKId5EPs P0zjpomZlloPfBf7mxy7xisGIEQx6k5eD2F8w4ZjjML6irtQZLhdmyA+Pjbe/esv45YTKW LIUxsXVchvMhf/Wqt3lofBjCbCLBv5baSxH22uRbCW2EgGYYu5324Coi08Ttwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677180863; 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=h+F0v/cWLUX/itfAu3OJMqOVjr+8o46NTzOCuVG8418=; b=SkRhwIEhfp1+f9Ff/kJ7zKJtX9ZlwnXzYAQlAjVPNdTAJLtdp/rQHPvQ1ZNZulsb3RfIz0 NFCCeKScdMvjyiwq13gIBKtBg/VNL6zEFNQr1BLI0MjNJOpBtYPsrl89jyOBMqqoGKc4zk GrXk1cxDBEcT/EAMcU07LYMMVx/+Q4dZp5NKnv07NeASLoUcntcXvHs9nMzHdyfl+geXte 8VINY22dx9PoeMcw+6BcHnIueA81nc7ZCYB3kQyh7XV8sq0pr5yjMlWW4+e6PX+7ZB26Nm pd9IjW/zunRysGZlaKU8+6w2ejVcoqAi6Q82oK+wnMV8L7jjvhcUGov3SQm6lg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677180863; a=rsa-sha256; cv=none; b=Fw4CHxohaaE76Pm7+TBbugtmuwELf664DwUhSMkncSFLXT9+I/yDMCxu7cShBNWEm9JIu9 Ek1xB2B/1TQ7Fi+MzDP63ISQvv5sQTCDOvaA6kJVwIM3drAuVo2O/YBI2UxR9eFLMmL7a5 jtCyVwTuRs5G4IVbkMkLOkCkQYMiMdLu0Vn6gyxH3FOCU0JuA9eK5qRxHw8JPQaVi5wBrm TGYjAYKql0AYe0acHq+b/XF/iEPxAQgrR3b4BkCuyU7Pw1X+0H0sDkjq+UFhdrk/kcsv0w dxEoVoghT+TgBeh6rKwFBmNOsjr8JWNbgTDM2RDMJhv5csdi+/EmRB4dTMfn5g== 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 4PN3B70J0RzvLY; Thu, 23 Feb 2023 19:34:23 +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 31NJYMRq020117; Thu, 23 Feb 2023 19:34:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31NJYMXv020116; Thu, 23 Feb 2023 19:34:22 GMT (envelope-from git) Date: Thu, 23 Feb 2023 19:34:22 GMT Message-Id: <202302231934.31NJYMXv020116@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: da2538a136f4 - releng/13.2 - LinuxKPI: interrupt.h: add disable_irq_nosync(), irq_set_status_flags() 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: da2538a136f4ca1f103ef7f9f7485a339e0ae833 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch releng/13.2 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=da2538a136f4ca1f103ef7f9f7485a339e0ae833 commit da2538a136f4ca1f103ef7f9f7485a339e0ae833 Author: Bjoern A. Zeeb AuthorDate: 2023-01-28 16:11:59 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-02-23 19:31:29 +0000 LinuxKPI: interrupt.h: add disable_irq_nosync(), irq_set_status_flags() Add a dummy irq_set_status_flags() along with #defines passed by the driver. Add disable_irq_nosync() as another wrapper to lkpi_disable_irq(). Those are used by wireless drivers. Sponsored by: The FreeBSD Foundation Approved by: re (cperciva) Differential Revision: https://reviews.freebsd.org/D38241 (cherry picked from commit bc81a2b788f5644ece58defa30880b69c9894981) (cherry picked from commit 75727a02155af29167a6d460de5ce6a9d52e26d8) --- .../linuxkpi/common/include/linux/interrupt.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/interrupt.h b/sys/compat/linuxkpi/common/include/linux/interrupt.h index 57d7ac58ec5e..cb2b1bef4667 100644 --- a/sys/compat/linuxkpi/common/include/linux/interrupt.h +++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h @@ -43,6 +43,9 @@ typedef irqreturn_t (*irq_handler_t)(int, void *); #define IRQF_SHARED RF_SHAREABLE +#define IRQF_NOBALANCING 0 + +#define IRQ_DISABLE_UNLAZY 0 struct irq_ent; @@ -105,6 +108,12 @@ disable_irq(unsigned int irq) lkpi_disable_irq(irq); } +static inline void +disable_irq_nosync(unsigned int irq) +{ + lkpi_disable_irq(irq); +} + static inline int bind_irq_to_cpu(unsigned int irq, int cpu_id) { @@ -136,6 +145,18 @@ irq_set_affinity_hint(int vector, cpumask_t *mask) return (-error); } +static inline struct msi_desc * +irq_get_msi_desc(unsigned int irq) +{ + + return (lkpi_pci_msi_desc_alloc(irq)); +} + +static inline void +irq_set_status_flags(unsigned int irq __unused, unsigned long flags __unused) +{ +} + /* * LinuxKPI tasklet support */