Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2023 11:55:41 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 78c7537d5636 - stable/13 - linuxkpi: Define `synchronize_hardirq()`
Message-ID:  <202302161155.31GBtfBF054936@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dumbbell (ports committer):

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

commit 78c7537d56362d7db2fe2ec9f27faf331e88a20b
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-01-11 00:27:40 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2023-02-16 11:55:11 +0000

    linuxkpi: Define `synchronize_hardirq()`
    
    It currently does the same as `synchronize_irq()`.
    
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:  https://reviews.freebsd.org/D38079
    
    (cherry picked from commit a609ed795943673074b71aeafafabe46d08f1a6d)
---
 sys/compat/linuxkpi/common/include/linux/hardirq.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/hardirq.h b/sys/compat/linuxkpi/common/include/linux/hardirq.h
index 07f00f076860..9e7baec1b213 100644
--- a/sys/compat/linuxkpi/common/include/linux/hardirq.h
+++ b/sys/compat/linuxkpi/common/include/linux/hardirq.h
@@ -40,4 +40,14 @@
 
 #define	synchronize_irq(irq)	_intr_drain((irq))
 
+/*
+ * FIXME: In the i915 driver's `intel_engine_cs.c` file,
+ * `synchronize_hardirq()` was replaced by `synchronize_rcu()` with the
+ * following comment:
+ *   "Is it enough to wait that all cpu have context-switched?"
+ *
+ * See commit f6d50b7af554e21c380486d6f41c8537b265c777 in drm-kmod.
+ */
+#define	synchronize_hardirq(irq) _intr_drain((irq))
+
 #endif	/* _LINUXKPI_LINUX_HARDIRQ_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302161155.31GBtfBF054936>