From nobody Thu Feb 16 11:55:41 2023 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 4PHYL60h3qz3q5WL; Thu, 16 Feb 2023 11:55:42 +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 4PHYL56nxRz47nl; Thu, 16 Feb 2023 11:55:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548541; 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=UdzMG+GcTdENbxI+E80VsK78rpOywtYtdj5Vh/MYs40=; b=YlzMkZYX5fX/hUsy7fnjRV4aOI9eROfLQ3En5eNcEl5GF/3OODofGk117QaLWhVVt7zdOC 7ICy94l/uP5tweqjxuHdw1ZbrRG8vtZ3G019Wfc2vMBBSnIZqmlS60kj+jH8+TDvP4h5D8 TkdAmmaJpxpkqaUHP8ZAHPcXSA/wuKIU0/vAyC+fFmoZRSAlsXBQc2T5jZR31QrI5t9bM0 Zfwr3VM/696dTO3IoVqaLJWtDpAby4ddQA3fTg7OGlfBELI4Wz2ec2HX0GBPHyMl1dNmt5 AUK3RX/ezaG3vCAxROTwhKCsZPCF8Zp78g5LCag9diN9GT+7Pf4kYi+8kyiMhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548542; 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=UdzMG+GcTdENbxI+E80VsK78rpOywtYtdj5Vh/MYs40=; b=HXFfrTVrasRugQgkvvJLuc1iL31bK64rAUS3r4+ySM4CXkQYN7dq6sBOmyUwp+N0Y9M4jJ BDpp162mUAiBysoNv8Dn/4baBwfli+isgk7rnh9A8X4LuqywVYzvtDG+0VTd7EMQBsZBuD TYxNeaovFG5VJw2kl6H1APip2agPf/867NYjNBAsM2fJi9IHQ6IsxAGH7ts73yuIhGnCuD 77G7YgLNpugmEQVhOXCUL6iZMrylXMqJyQ8iJpnPPsgm03eIEQ2V1z6otIOpYNMn+oFiXb AzRGjR9Km9kxtWl4ovbhrX/Vet66gKCPR60M5RvabKdmgutPaPvRhlCKu5IigQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676548542; a=rsa-sha256; cv=none; b=bs3ze/oS9dagehF+0au7PuCJCJwCBr6T5S5ryZZmOiXiqW5yHx3ZtbZ95JxzCI8q9Ir9Sj 80W+/Ogcg854v33JjRJqB0ORT7myXLcj9OgFIFFvBh8EVID7hDt1f0pSApfAcYuaIpIcN4 1mSgUqapSLOioUZEON4UMDGzgFAMpqPCm6dmz2dMjlMtyxi5IbD84JfDfwgWWs6HmJtSTN lN1tHIh2/7DROhY2VhqwkaaQviK/6hB4zKKvgw4o9MMfBET01AjsHL2rYJAmALVuYPil/U fp+D/mT7+FDgaR4Mo1daBX3qruk7l3ZDA2fq00t0s9jYbBYOCJI+HyOZJQiq3g== 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 4PHYL55tGXz137W; Thu, 16 Feb 2023 11:55:41 +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 31GBtfOA054937; Thu, 16 Feb 2023 11:55:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GBtfBF054936; Thu, 16 Feb 2023 11:55:41 GMT (envelope-from git) Date: Thu, 16 Feb 2023 11:55:41 GMT Message-Id: <202302161155.31GBtfBF054936@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: 78c7537d5636 - stable/13 - linuxkpi: Define `synchronize_hardirq()` 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 78c7537d56362d7db2fe2ec9f27faf331e88a20b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N 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 AuthorDate: 2023-01-11 00:27:40 +0000 Commit: Jean-Sébastien Pédron 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_ */