From nobody Mon Aug 08 14:04:25 2022 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 4M1dHG0HxQz4Y4MH; Mon, 8 Aug 2022 14:04:26 +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 4M1dHF6d2wz3vql; Mon, 8 Aug 2022 14:04:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659967465; 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=kHMHW8crZ0lo77O7XrPZbEd0LGdzyRbj5FMVCBBJtdw=; b=AnHzfurex3rZA69AYe/gUYJY8CsfGoGzhf6kLo4QIc/0qkAVwzxLgsVLYvk8kkUpU+xIWM zD1ABuftS3ujYtg7GI9u+17//RavS7DVqKuvwpPk3L1rPu6fioXx58QlSPs7+y13IiS5hz 7xra1m0QwGXtX8yPU5BvQa6DnUmrgsx3glJQejxVNh6ePw+vf0GCVeiT/Mqc6ljlLCl2aq VT4ISq1pzXWRacq6H+yncNHz9hIvH4I28fc3889MEzUu7dN03nc5LXhqHLmVxvCDH1KXoV Bg8XSuZugq3xHeG0FJ+h2bOi/8KnRYOOW8VVwqPhrMgp07sXQQqcYvvsPyeqZg== 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 4M1dHF5kGbztcM; Mon, 8 Aug 2022 14:04:25 +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 278E4P59088989; Mon, 8 Aug 2022 14:04:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 278E4PdO088988; Mon, 8 Aug 2022 14:04:25 GMT (envelope-from git) Date: Mon, 8 Aug 2022 14:04:25 GMT Message-Id: <202208081404.278E4PdO088988@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: eca2f0f38066 - main - linuxkpi: Add smp_mb__before/after_atomic 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eca2f0f3806647f165162e6db35d1af9aba410fa Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659967465; 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=kHMHW8crZ0lo77O7XrPZbEd0LGdzyRbj5FMVCBBJtdw=; b=SoegVMGDC/K5cqIB+kaI4XvQUuIO+ZndE7N8/Ttyxeq4XQqL2m5f+ez2kt39Yfp8y2Vt5t T2MBAKAxwWwAY4PdcShyNY8uknrZQuGNtFvo/eMGwaxSijxIGTIiIHjRRudCKHNpKhwdje A+nLI+3Wsi5EkItmrup0qQyCKRngO8C7A7df5Acse9dy1W5K/Rru/KbZjNjHWhXmEVTfNC hYMEJoWBuu7cW0f3+hWqjs46Gjvp9okXNPKo4Z1FXioCrc3vkODpPyoThmAigJjMXEQn3D Bse/1mdBIKrYN9zSAycKF9/RSrdUHKBvFW63y5jJCg2qnUsf/aTFdH+KVvfA5A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659967465; a=rsa-sha256; cv=none; b=GgggGwwuhCvEQx5EagPFelir6g0eFZppCyds7onQ0C5KnRXqiFc1Yp6Cr56wYHzzljOCkK RsUyfBcKCCxjXLeCq+RE43gS+hZimfYVSu2Sd7tXQwjyd3r9KTx7kJxzHvHMeC4HVprFH0 g4s1my3HIQL27b6HugytUffew7zzbi8o4X1t3FbXhHmN7R5rbZeXHy02x9xE/hNCouWyEx DFU+PcYlPXHSH6GCRUUbJNr8qcOPIzWsGHX7KF5I7bpnGPGy7zHPpTwIvLRT/mzAmXZild fYLsp0IPT3zdXP3mIeB3fccPX50nBTt7+IsSETEs1fB3YV957inkOzqNhJvjGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=eca2f0f3806647f165162e6db35d1af9aba410fa commit eca2f0f3806647f165162e6db35d1af9aba410fa Author: Emmanuel Vadot AuthorDate: 2022-08-02 08:08:33 +0000 Commit: Emmanuel Vadot CommitDate: 2022-08-08 13:22:35 +0000 linuxkpi: Add smp_mb__before/after_atomic Reviewed by: hselasky Obtained from: drm-kmod Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D36020 --- sys/compat/linuxkpi/common/include/asm/barrier.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/asm/barrier.h b/sys/compat/linuxkpi/common/include/asm/barrier.h index 12b4736e1939..ab59ff19dee0 100644 --- a/sys/compat/linuxkpi/common/include/asm/barrier.h +++ b/sys/compat/linuxkpi/common/include/asm/barrier.h @@ -55,4 +55,7 @@ #define smp_store_mb(x, v) do { WRITE_ONCE(x, v); smp_mb(); } while (0) #endif +#define smp_mb__before_atomic() barrier() +#define smp_mb__after_atomic() barrier() + #endif /* _LINUXKPI_ASM_BARRIER_H_ */