From nobody Wed Apr 27 15:16:24 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 22BAB1AB1743; Wed, 27 Apr 2022 15:16:27 +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 4KpMlr5Wztz3knD; Wed, 27 Apr 2022 15:16:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651072586; 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=Xo6ChQQ+feriQyu1eFdV6PEM6H6sVqSKbFlsAW3tXk8=; b=C001wLE/YGvXKJSfgyuGGu+ne7bQdcpQwoo5i3YXlVc1gq4gZ+oqq3BjidmtM31SeRBwqL EKiGjl2fX2nKofSl2K51G/vaeTwI4W5oR6Kb5Sa+nTTUQeobvSLW/ZWFBSrKuydwTASXcA xFu2NeZadXWE/kG9hJejEGFf2/Wl97R1tbWBrjCFc+lVXY8MF/b0F6w8D7XbMqp1ZLOpJI 61blEb1GEmFERLFM/aw1JPA3inVX646nmIDOaBv1m/yOvbapQH6c1esmK1+S8OMTfb0Ced 5zMZtlBv08PTLCY6zzbpLVC9xQTva+Vzu7slcs2ZWVcPb/CnKb1GX4uGtHL3YA== 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 7D21C262AF; Wed, 27 Apr 2022 15:16:24 +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 23RFGOsY008104; Wed, 27 Apr 2022 15:16:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23RFGOCA008103; Wed, 27 Apr 2022 15:16:24 GMT (envelope-from git) Date: Wed, 27 Apr 2022 15:16:24 GMT Message-Id: <202204271516.23RFGOCA008103@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: 5c6eeda0489a - stable/13 - linuxkpi: Implement dma_max_mapping_size 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: 5c6eeda0489a268de6df65a935c0987c5c302c15 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651072586; 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=Xo6ChQQ+feriQyu1eFdV6PEM6H6sVqSKbFlsAW3tXk8=; b=t85ARO/1wn3HVMrGet9VT12cDaBeDIevHElpVVEcILIdSCyqzyjb5SopneunTCrNOtQb/C EbzDDRX1AoUzmP/gzaA5IelKMMV24onUlyYl1W+pQpWVkO8xq47RCbk/UHNy8BO3JAqK/0 PjIynr2MFy8UjaOBDZhiRMp3+2y8Qfr+SC7duzW6YGoUJ+qOo7FBY4OnspFltlrfLe96uR SaxpztlZ3aZosyyT1KH51Q+MXILfWyAaC/AF0XxP2qmLc/C46L9/QfxQIOapMhZm8+dfNl x9KQIgnfjVQ7HXRnc1hDLxCZBY5Z1nP7AT4HenrtXQiVO69ADcE+w6CEj6/gjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651072586; a=rsa-sha256; cv=none; b=MhTQJ+I+lf4A/VTZ3ogI05nnyjdRJvq7VPzDBxt2ekrfjn9FT8imsC5WrNRGA1ruht/GB3 rmjG9DQZn/2cZcjK8Wkh1F1Rt4gCLdxtIpS0yaB9c5YY9kKQ0XEmn8P16PvRP0HMmK5E4X 9+dU3nNe+kz4gl5DnVfoennQo9eIlfOYsJpc2ScmcqgnZKDqkpUDCfo4HsVaVT9NfdxJsQ ZYg9NkM5H4oQ4rz7AQprpbycU1Kv7kXGoAJKQ7C4FsVzo5zmJ+NhydDJgY8HQIZRQwAI7Z p3MH/bsDlq/bo3v3IUy2y6BgcSBKv2ErkM/02BstoDTi8ilRLatLKKBlhGVTwQ== 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=5c6eeda0489a268de6df65a935c0987c5c302c15 commit 5c6eeda0489a268de6df65a935c0987c5c302c15 Author: Emmanuel Vadot AuthorDate: 2022-03-29 11:01:31 +0000 Commit: Emmanuel Vadot CommitDate: 2022-04-27 16:38:06 +0000 linuxkpi: Implement dma_max_mapping_size Simply returns SCATTERLIST_MAX_SEGMENT. Needed by drm v5.10 MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG (cherry picked from commit 1acf9b27704cebfcf14cd896264be29c1d27c4c3) --- sys/compat/linuxkpi/common/include/linux/dma-mapping.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h index fcb50f4b5217..dd3bbc094dfb 100644 --- a/sys/compat/linuxkpi/common/include/linux/dma-mapping.h +++ b/sys/compat/linuxkpi/common/include/linux/dma-mapping.h @@ -313,6 +313,13 @@ _dma_unmap_single_attrs(struct device *dev, dma_addr_t dma, size_t size, linux_dma_unmap(dev, dma, size); } +static inline size_t +dma_max_mapping_size(struct device *dev) +{ + + return (SCATTERLIST_MAX_SEGMENT); +} + #define dma_map_single_attrs(dev, ptr, size, dir, attrs) \ _dma_map_single_attrs(dev, ptr, size, dir, 0)