Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2981636ybt; Mon, 29 Jun 2020 12:04:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVVUPD8znH86Kvt6qHqp0tFy7YSvYcZqVea8ystlj7nOvXxlvKTXSuPTqWkEFm7DSlxHVO X-Received: by 2002:aa7:d142:: with SMTP id r2mr12467112edo.211.1593457444514; Mon, 29 Jun 2020 12:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593457444; cv=none; d=google.com; s=arc-20160816; b=Oz+VltW19xf7vmJx6fO9xxuW9Y8ejh+4xNPIQ9xudGPp114EV/KLwxsdxyqCztJP1n h6HmKLiOZGS3mwIY+frFKbdqB14RWvwD6+th02TzTLfc//HClmnkFWqUTGMbm2aXi/n5 YfNVA+TDPJjTU5BW30fnqB3YKN3DgdY5qqVPqk1fFICxfghpWrfB/LS2d4rSNBQY1MiX lH2zrFRQbrqo6ZLqtMDDMljPgtt2NFK/1Y2a0CBEXqaSfLt3AkHNK35Sdi0qiHBwyRqF 5hp7TkMOOtkRrU/e64Tg3VleWYlosP76rILgGMKflU/283c6pg0iFrJLDURl8d9GyB8T ZZXg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=yeN5wIjUiTKr97Qw0V3fMHiK9o/1vi/YMLNofBVuBuU=; b=B9pZhZWmNuxCxbc49q2TPeZq/SxjQHkiCo5blTQBQUihhAlV0ukSdgTwCg3nN2KSgX 8Nz3MYYKx5Ehvu0FVIZBpMzGGgdYTAs0XcBEWyVrK8nm52JNxAw7UZ+cJfz9vyrO5zo+ slbIdkyUsQLF5bXZVeyqST47+2aEP7o8nm7chPyX5ua3J79VGbwjog/JZD1/2/MuJt6+ tZdOsOHGsUTkaLeLb+gEI+SOEGs/xkNjrHAO2pbAmKc6Yt6lZPK2FgpP3wl8Js92sBjB 8mb0zwhgpDB5PbliiFuPgSuTcdUrRq0VI48OkhQKnUV8D9W5MKFM4K0U7q4wTX7QKJ01 l3nQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rl28si292638ejb.353.2020.06.29.12.03.40; Mon, 29 Jun 2020 12:04:04 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730602AbgF2TDg (ORCPT + 99 others); Mon, 29 Jun 2020 15:03:36 -0400 Received: from mga12.intel.com ([192.55.52.136]:9632 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730590AbgF2TDb (ORCPT ); Mon, 29 Jun 2020 15:03:31 -0400 IronPort-SDR: LwE34Gs+AV+xokjb3JndDrLgxWFdQYFDnQfGmEkhIUuDm+zdREct9rAW8Pew3uqAO3uU/20UGf dW/vm24w2Ufw== X-IronPort-AV: E=McAfee;i="6000,8403,9666"; a="125593307" X-IronPort-AV: E=Sophos;i="5.75,294,1589266800"; d="scan'208";a="125593307" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2020 06:39:04 -0700 IronPort-SDR: GOBMqQlGojLcDdG+5mlKFZRG9gJ8QV2ZkbkGgaSD2pc2JsK2FTpzVwlf29Xfp9W1iEJ4QONxVB TPoq3jVsldWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,294,1589266800"; d="scan'208";a="313048269" Received: from unknown (HELO btopel-mobl.ger.intel.com) ([10.252.54.90]) by fmsmga002.fm.intel.com with ESMTP; 29 Jun 2020 06:39:02 -0700 Subject: Re: add an API to check if a streamming mapping needs sync calls To: Christoph Hellwig Cc: Magnus Karlsson , Jonathan Lemon , iommu@lists.linux-foundation.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200629130359.2690853-1-hch@lst.de> From: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= Message-ID: Date: Mon, 29 Jun 2020 15:39:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200629130359.2690853-1-hch@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-29 15:03, Christoph Hellwig wrote: > 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. > Thanks a lot for working on, and fixing this, Christoph! I took the series for a spin, and there are (obviously) no performance regressions. Would the patches go through the net/bpf trees or somewhere else? For the series: Tested-by: Björn Töpel Acked-by: Björn Töpel Björn > > 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(-) >