From nobody Wed Sep 07 15:10:16 2022 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 4MN5KN6N0gz4bP9w; Wed, 7 Sep 2022 15:10:16 +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 4MN5KN4x2qz3YW9; Wed, 7 Sep 2022 15:10:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563416; 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=U2Ln2GxKMUXCiruyrtgDmdtaBFQVpDnVtxF/Arn/Xv8=; b=GvXlqjKAPxiYrkg2cHfDuD3hJbfCudPkZ7NawAp1+N63RnK9016OlPR/tBFNMh8AlRBnGT 8UlvusTL9dJgiCb6+x5X82RMKgbBb6NqsKaXR1kKFt9D/+m0Jfp+wL81FqhNboBxCCs+17 X6WxFq0Tta5Tuk2C/yftCVVt6dlPmRghcMHvzj5NSa85wE2d2eNb88d5820vsvGyYJy5tD Y5b7g+VVs2Mt+kraT6QXgi+KMTj008psmIWq9GqAV0FDNzNgJTSWG6p40Un7XFE0oIZ5qk w5dh+ZBiESmhZddsZdY1xGc81U2EuxBKtxMTYiTmbNdbdh7O6R9GHrc0p8oOSA== 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 4MN5KN439szYxH; Wed, 7 Sep 2022 15:10:16 +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 287FAGQr023361; Wed, 7 Sep 2022 15:10:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 287FAGca023355; Wed, 7 Sep 2022 15:10:16 GMT (envelope-from git) Date: Wed, 7 Sep 2022 15:10:16 GMT Message-Id: <202209071510.287FAGca023355@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: 7c6c07fcef33 - stable/13 - linuxkpi: Add smp_mb__before/after_atomic 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 7c6c07fcef33423201dcd80be3557769c05304fc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563416; 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=U2Ln2GxKMUXCiruyrtgDmdtaBFQVpDnVtxF/Arn/Xv8=; b=fKhYJOhJgZUzC4DXNpkOeDZ0A3MhQ+9UReTldZ9DZylHvKnGkzeMhG8UwhopxrDDExngqq 6fW1I4y9utugVznAJpzyECDvuHUNceSWnGVbeI4emmT+HflxdmnURGls6lgNOoE1RubyXq yjeWbh2V+YN3Z5PErpOOl4r4yhJj0AdV6GkBK+CDvlze4bSD8VL9PVKiK8vWsD6cFeBQuI RtPiN60W+BxB7ZfQf+VSDNPX58V6R9tF4Q/TOhZKfiqIDgDqGO3ZFopgfHmAOv2pYX/A/c Gfn7dmILTnQMalIIR8OtYbD7sMZaURFsXgIxvNNv6/BmHi9JNeitlOrAS1yudQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662563416; a=rsa-sha256; cv=none; b=uscuuXM4+QXR+77pVN/+kyYtSho+wmhm0FNYteYrvplPkhrX+meX0BR3jC6bIZkTrWe9JA mn9X4v/l3NQil/M/C14un2mO82njG7oBDWnZLgsR67H238Q239RGB0Zu0BgnMe51xmSN69 lyh7c2x4ZmrMYUTwvqJh34MruULBEksZc4WF+O8LLDPfSTLPQJEqI/wusLvhTCQdzi76iq O5r3Sfga2heLSlM0+jVXg0X6XuAWdXiySWOirI+KYWgvW+iTwzW0O9+RdsU76UNPTU4I6e ybgIEeesD8HdsidelqGiICRcFUj6o7O6JPar9Nu1W1YxWgAn8safv6we8sadcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=7c6c07fcef33423201dcd80be3557769c05304fc commit 7c6c07fcef33423201dcd80be3557769c05304fc Author: Emmanuel Vadot AuthorDate: 2022-08-02 08:08:33 +0000 Commit: Emmanuel Vadot CommitDate: 2022-09-07 15:09:04 +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 (cherry picked from commit eca2f0f3806647f165162e6db35d1af9aba410fa) --- 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_ */