From nobody Sat Jan 22 19:36:35 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 9E3D8196BCCB; Sat, 22 Jan 2022 19:36:40 +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 4Jh61y480wz3gyM; Sat, 22 Jan 2022 19:36:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642880200; 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=6gglLOPLrMzgJO31Xaz1ZM7ZY35gM/GNF2Sc4l1dK4c=; b=VbKjeDMJ0BDy+oV2X0NjFbGouOzkmu5PXx/hHeDqzYBSGn2zr3XqCB61Uah+EiVX4Tz31k fnYWoR1fKf11UT78xyicDx/47mJSLGD8nkZRJOHQgbzTDDGy9rOV4cy9YjgJ/aiwdNzeBJ tZ67cbQw+sHvucOePGdQVWUhHry9eZKcZlkj7XJsCu3f9h3PWjzEYg1NqHXusmlx2go+8M JpcU3CnASxwZL3SamsogBwOQTbGRrZP7Rd5QJs08ubtD/wDjI6qFyY7WANp20vyEzRYQNK MecZMsS0prsn619lUOX6kwBAQdYJ4m+iwjrDX59h07CU0O16inCZ3XfviL7doA== 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 45C991508B; Sat, 22 Jan 2022 19:36:35 +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 20MJaZPM000321; Sat, 22 Jan 2022 19:36:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20MJaZBk000320; Sat, 22 Jan 2022 19:36:35 GMT (envelope-from git) Date: Sat, 22 Jan 2022 19:36:35 GMT Message-Id: <202201221936.20MJaZBk000320@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 272f8b9c280b - stable/13 - LinuxKPI: Add readx_poll_timeout wrapper 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: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 272f8b9c280b1e3d554cf62091ed113e1a932eb3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642880199; 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=6gglLOPLrMzgJO31Xaz1ZM7ZY35gM/GNF2Sc4l1dK4c=; b=RQgDEMAkOq3wQdUSy7D5Sj2+ibv3ozEJz4nAqrp3S7b7G0EbGNPbkWGLgl2urz6dJVv1Zx Sbl2cB8Z1Lj4CtmDxF+ySdXNeQ6FbxRqRz0HNfTGRtkHiEmWu/N0dn+kfIxxYt1MRnJ+eP TTQO+fUxBUNL+/HDhfsucjrn1QvRlWQKsl8q8H7pLUSI2sOMbv6kO8Z0vnTKycs/A8VSwB hn6idgSpA2p3pUPlmAuXL/l/Yn6mB0C3tVnprCYCTCT33GmN/V5hAHOuzV/qw0v+GOTkpx poCJvGriEkUVLSUklBNu6+nVEiVi34sjYr1NmEf2hFiBWnO2Hp6YXFibE0Vg4w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642880199; a=rsa-sha256; cv=none; b=gmRhEHKKpWEarDYAXSpuaw2XCcvNpIsjKi2QikrKy4OV6YNOHnWX5UJIEwO2tBM+VPqGQV zeFohjU3z6eVfJZCiRe++dr9Yqqj6f22djujqF5tCeQgS+kgW+akxAJV+YhchTxJ+evflQ PvbhOAw5ly3caL+Wd3dNEgPtd88orTBoZ2omck4WkgE2IfNDTiEwyBPGiFdRNcVLTwxLv8 VFs1f/S2TFdajJd80Xi+dB/q/5B554gX1lBllo5M2h8iuvMFtjMPhTqUCibxPGEy79XWNo j8I46A8ToEQS2oGTpKCZl3Bb8enJvJBa3TlPQvZzsmxGmCzikZeX3n/GQcwOOg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=272f8b9c280b1e3d554cf62091ed113e1a932eb3 commit 272f8b9c280b1e3d554cf62091ed113e1a932eb3 Author: Vladimir Kondratyev AuthorDate: 2021-12-06 20:32:51 +0000 Commit: Vladimir Kondratyev CommitDate: 2022-01-22 19:34:37 +0000 LinuxKPI: Add readx_poll_timeout wrapper Required by drm-kmod 5.7 MFC after: 1 week Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D33307 (cherry picked from commit 2e194c20c10ee7484d5b11361e1e8f59eb93efc1) --- sys/compat/linuxkpi/common/include/linux/iopoll.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/iopoll.h b/sys/compat/linuxkpi/common/include/linux/iopoll.h index ea876042eab6..e6a3dbc23a01 100644 --- a/sys/compat/linuxkpi/common/include/linux/iopoll.h +++ b/sys/compat/linuxkpi/common/include/linux/iopoll.h @@ -61,6 +61,9 @@ (_cond) ? 0 : (-ETIMEDOUT); \ }) +#define readx_poll_timeout(_pollfp, _addr, _var, _cond, _us, _to) \ + read_poll_timeout(_pollfp, _var, _cond, _us, _to, false, _addr) + #define read_poll_timeout_atomic(_pollfp, _var, _cond, _us, _to, _early_sleep, ...) \ ({ \ struct timeval __now, __end; \