Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2981920ybt; Mon, 29 Jun 2020 12:04:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwziqYtuvu+xRA2Zy0witBBrim/1TCd2d8d5x4w4MNAzXGzx9x0usz40nOxZuMbBtP3IPTB X-Received: by 2002:a05:6402:b23:: with SMTP id bo3mr19482076edb.331.1593457465039; Mon, 29 Jun 2020 12:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593457465; cv=none; d=google.com; s=arc-20160816; b=NyugXM/suQEPdtLfM0yDIP5XeoWKlh9x64v2AcT0yZliWqEJTbmkc+i0NSDxgd4aB7 YZs/UVmqTxJ19AYcF7YdtVlIV6OrlTs0OpdBtmcsWoP1Fy/S1kJaF1bgJ8GE7uIY9KMh XcqTmX1ENSkWVHxuDIxPQjbzzDQbQ2Socll4KtX884pJxW5q6Ant27tpWtPKF3el85CK N25Ojeofk353QUwhw7O0V0oJHEaBLFRqW1fJdi2GccrHtOGApA4WjJLCBzweRuk3x7RM dlRK32wHsNXqCWK5pN/h8ZcQFwrveRuK4UHK+h0qTRNbSFq4kLB9F75DNF0LXUa86Ah6 wavg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hCeEFPJauELL9pZELwR8NI9hO7+eRck24vlEYcHykOI=; b=am9Tm/Cr3j7UHkNe9SkqLRbuErPGyIrIhMys2sZ6tz3RXHb20Owa2n9c4QRZ5S/m2W Vohk/ga9rrcz2W3GVvqqMdu0rQlRfbRRRxCYaYB6jheVGxlN4Qet5XMPOlIenerMLdPi PVyy6qLibfcqrYo1w3K1srx+FkEJZZ4LmbJVZWE0+8pRIDUlBws31yPRPPyi92Cc6BHa EJyl101wIUGPaTAV1Thm4T/6YjyA6D2iH7bB5X1826cjsC5FE39THN8OrGdouxbiwIe0 +OUwrDEbJqiFHMG1TwEq9u7CrNKSwC59RnPwm9PI8xcuSZ0dw0VyQAzaetLGUg5Pm5Gh KNsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=jWJmLvGH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si210125edr.36.2020.06.29.12.04.01; Mon, 29 Jun 2020 12:04:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=jWJmLvGH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730388AbgF2TCu (ORCPT + 99 others); Mon, 29 Jun 2020 15:02:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730509AbgF2TCm (ORCPT ); Mon, 29 Jun 2020 15:02:42 -0400 Received: from casper.infradead.org (unknown [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88C2FC02A552; Mon, 29 Jun 2020 06:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=hCeEFPJauELL9pZELwR8NI9hO7+eRck24vlEYcHykOI=; b=jWJmLvGHLCXZqD+9nHGBpk8RJJ tZEw3mH374vZSArhHhnpGf3fzMx6xn+4T+ORiEdT5+4lPhWyDdnz3JjTZh9/3Wtck2vqFScH/9G/J u4LVSP/cj9xTJk4Ckay1YCcJrlSpYpCPwix/DUpDcxoNbuscvo6HKYUYw09OpXMQGOUG1UPKk5h1R I3eShOTEfFGU9Ja0KzA7j41GBHdpp5HO/DOzw6cKjpixzfNV8H9j71Gb6OnIfIM/OBDTmJC5gUL61 YFnCpxS9+nbGCj3YwQd7bAh3L87CfMsmO+LuaXEzqneInL6n6Nzaas0SsF/W9iCpEmQP30CE7l3I7 yMgYzDrw==; Received: from [2001:4bb8:184:76e3:c71:f334:376b:cf5f] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jptS5-0004Wr-LR; Mon, 29 Jun 2020 13:04:02 +0000 From: Christoph Hellwig To: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= Cc: Magnus Karlsson , Jonathan Lemon , iommu@lists.linux-foundation.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: add an API to check if a streamming mapping needs sync calls Date: Mon, 29 Jun 2020 15:03:55 +0200 Message-Id: <20200629130359.2690853-1-hch@lst.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this series lifts the somewhat hacky checks in the XSK code if a DMA streaming mapping needs dma_sync_single_for_{device,cpu} calls to the DMA API. Diffstat: Documentation/core-api/dma-api.rst | 8 +++++ include/linux/dma-direct.h | 1 include/linux/dma-mapping.h | 5 +++ include/net/xsk_buff_pool.h | 6 ++-- kernel/dma/direct.c | 6 ++++ kernel/dma/mapping.c | 10 ++++++ net/xdp/xsk_buff_pool.c | 54 ++----------------------------------- 7 files changed, 37 insertions(+), 53 deletions(-)