From nobody Thu Feb 16 11:56:15 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 4PHYLn4vDxz3q5lq; Thu, 16 Feb 2023 11:56:17 +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 4PHYLn1dxhz49pr; Thu, 16 Feb 2023 11:56:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548577; 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=kI2c1FjaRIDzF052D0wJVTlbPYRGm/+ZvNriP3Ke1iU=; b=PBsflafrYNewmsWhiRr925fEMVI3zZa/6ZfX55RlTortiDAX0f1FwU2ejhxiugV3OnVvQG 57B/GvDBP4FXVDXGq0JN+VpzMrEoaJ+0aPD1RZ7ZUwVMKCW7Z7yk3XHhKZtekZ7UD10iCD o1R48KTX43SNB7Ov+W/q/NPl52KHccDoug432xNMuNds8DXBYfBmHwJ8sYdFdVHKIUiFbI 06iZGe3ORS67Yv7T52Mz4rtFYBuacuLZzsomMZyzBXm8plbDtfFvDoF+Des9li3sNiZGD7 TCO+1CTjyGWw/7QqZgt8Hip8rH0MuQpQ6C1Y0Sk7+vnijD6RRg/Cl/A+mPcbfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548577; 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=kI2c1FjaRIDzF052D0wJVTlbPYRGm/+ZvNriP3Ke1iU=; b=qepNjbethzTWpaNX5mESDXiKHrgUNeTy3UBNXz4/mtOqCtt6WbVov48iGQsqj/jylicZ0F ycUAWwrxHJaXnzCZLKb8b1YCIdtDhxX3R5h2yKFi3UqKidS1GdU4JmPPopPDBdL2NXZ6ut erb/29JF3CqIbxd3qdzBzRWXNryIC+Z0B6r9yxK547WvQG/z/b0Mu5xYEz5RpMQi2KYnAl kxqGei3JsHzk5+HpgTpTWbv5TFwxnTmEeTONUCUKINuzFHkbABxCLE2NKLdhR/15Bm/6VE +0L+GK5avPGuAfRkwOhz3AP0mlWRpZQQakDpBRX42Mu6bZuxNK7O3KvQWbqJew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676548577; a=rsa-sha256; cv=none; b=Nr8hdO6HI4idA6kaXwspLvWGEAFBusVoXn4KluHO0tDr9kDPz9tc2c3744s0FaokTnyRN/ N6yopYNEpIs2TLpnadzyEuDAcrGe99Mhq2kblKjwGRU/JQAlRYv9L2CtZdv48OyttH6Ffb 7eaa9A0boOn8XGXsSfNXEcry9uxqanBQKIKxRx1IBuv5GCiU6LPX8z9OpucWs/6AUPmWcy omaDLRqwMYVIMfxAYkkdnGBQw/KwMfzmhElynNiSPSjuqLh1jAAGtk7meq7RJ7a5z68uCU U5abZ9gKssgqi0kBa25BBjgM2MeaxQXcqD7TQ5dLlxmOVwnQOY1BDg+U8wSUaQ== 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 4PHYLm040fz12W7; Thu, 16 Feb 2023 11:56: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 31GBuFQ3055864; Thu, 16 Feb 2023 11:56:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GBuFfv055863; Thu, 16 Feb 2023 11:56:15 GMT (envelope-from git) Date: Thu, 16 Feb 2023 11:56:15 GMT Message-Id: <202302161156.31GBuFfv055863@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: 3037900f4198 - stable/13 - linuxkpi: Add `io_mapping_map_local_wc()` and `io_mapping_unmap_local()` 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 3037900f419825bc2193269f554ae80d2c5211c9 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=3037900f419825bc2193269f554ae80d2c5211c9 commit 3037900f419825bc2193269f554ae80d2c5211c9 Author: Jean-Sébastien Pédron AuthorDate: 2023-01-20 17:53:49 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-02-16 11:55:17 +0000 linuxkpi: Add `io_mapping_map_local_wc()` and `io_mapping_unmap_local()` `io_mapping_map_local_wc()` is synonymous to `io_mapping_map_atomic_wc()`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38156 (cherry picked from commit 29d0c85c86347cd3eafe3c8974c693abf8d9ca51) --- sys/compat/linuxkpi/common/include/linux/io-mapping.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/io-mapping.h b/sys/compat/linuxkpi/common/include/linux/io-mapping.h index e874c5bcadc7..b8f075491d1d 100644 --- a/sys/compat/linuxkpi/common/include/linux/io-mapping.h +++ b/sys/compat/linuxkpi/common/include/linux/io-mapping.h @@ -93,6 +93,18 @@ io_mapping_unmap_atomic(void *vaddr) { } +static inline void * +io_mapping_map_local_wc(struct io_mapping *mapping, unsigned long offset) +{ + + return (io_mapping_map_atomic_wc(mapping, offset)); +} + +static inline void +io_mapping_unmap_local(void *vaddr __unused) +{ +} + static inline void * io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset, unsigned long size)