Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp539143ybt; Fri, 10 Jul 2020 06:27:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKxRxD/sCN+eyLFrF2s7QPOr5PvmeDWrWHGVBFo0FhAayqoQdXOReRARx+5+DmTAc6LJsF X-Received: by 2002:a17:906:7c3:: with SMTP id m3mr59160298ejc.30.1594387671815; Fri, 10 Jul 2020 06:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594387671; cv=none; d=google.com; s=arc-20160816; b=0ptZ5DAaquEmAIOUPynlCbMi3w7GVqgfEFFTYfAZIet+8v4fgdTOcGgmRr/ftNc7iE AuMc6BeIH4UInyx5/uePvMFg5EbsiDhux2VoSKL3UGM1Opk51tUh0TKiIVZXolrtnXAs UxM78R01JfXDgppcM1NWHRUwcIPhzoHQ3jLURqRI01jnaGPbxhyF/HMGy5bGQkmhwTzP pMo5VeNCSAZN+nNbTy+FTsl4pmHWl7GPCipy4C9zamYOtxgEjnE7DSl9UalU/1loTJnl otXfp5io3yf2mRa/na7ED4fnmTUCTE3Gk7q0FH847saHwM1J1FCtsRE5WRQNi6rCHJJx eEnw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=8A/1vpEmoSOyHkkH6nhIq0DHvbGeWI2fZCwGb0gKD0U=; b=TNUMJNtX/6qx2fc4Ta5QMygILuyyd7r64CwIE1yPmgEQ1w/Bdn6exlyvWBc6m2sWZD ZteRCrIi28C6p1ENv4PBM1eVOiumTgTo5WqlcZNSEMJUM+VGswmd/wYlwROMx6FE+MRw 9/ROlC5K3/PPnBUaXM06e9KSLzISSNFObnfTYG3op+bJmAUxqp0gRR/h5Yjsp30Uz3W3 hzQFepVJdgftsExKX1Up7MXj4bAJy0u40MZytF/sE7oLCqYme0wLlw/vROMZxCGqsb30 hIuzkTmX7taD7381EHs2svAzX8yFbF+fnaM3d+iTnS33LR6wZKs1yCuMosn5HYDyrHBc Mmyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ZTvIS/3V"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w4si3698791ejj.300.2020.07.10.06.27.28; Fri, 10 Jul 2020 06:27:51 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ZTvIS/3V"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726965AbgGJN1O (ORCPT + 99 others); Fri, 10 Jul 2020 09:27:14 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:21381 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726774AbgGJN1N (ORCPT ); Fri, 10 Jul 2020 09:27:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594387632; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8A/1vpEmoSOyHkkH6nhIq0DHvbGeWI2fZCwGb0gKD0U=; b=ZTvIS/3VgfJzVLdZ1stwoHBYKFNEg5QV99BbNE1BSIougrfBUdecwRkF56iqjdNVtwObVI +rlBsqpjHeCrA40FCxLACT/dmZBWEMD7T7NqCUreOl16K2eZ7PjKU9HrW4F5Wl5W3bHjSS b2kCnU8gO2MYr5qOqBNiZYfejnP/sY4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-354-iB5ik_0TPn-3lfedhmvmhg-1; Fri, 10 Jul 2020 09:27:10 -0400 X-MC-Unique: iB5ik_0TPn-3lfedhmvmhg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 447AB1092; Fri, 10 Jul 2020 13:27:08 +0000 (UTC) Received: from carbon (unknown [10.40.208.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id ACAD478A4B; Fri, 10 Jul 2020 13:27:00 +0000 (UTC) Date: Fri, 10 Jul 2020 15:26:58 +0200 From: Jesper Dangaard Brouer To: Christoph Hellwig Cc: iommu@lists.linux-foundation.org, Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org, Lu Baolu , Greg Kroah-Hartman , Joerg Roedel , Robin Murphy , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Daniel Borkmann , linux-kernel@vger.kernel.org, brouer@redhat.com Subject: Re: generic DMA bypass flag v4 Message-ID: <20200710152658.31a9391a@carbon> In-Reply-To: <20200708152449.316476-1-hch@lst.de> References: <20200708152449.316476-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 Jul 2020 17:24:44 +0200 Christoph Hellwig wrote: > Note that as-is this breaks the XSK buffer pool, which unfortunately > poked directly into DMA internals. A fix for that is already queued > up in the netdev tree. >=20 > Jesper and XDP gang: this should not regress any performance as > the dma-direct calls are now inlined into the out of line DMA mapping > calls. But if you can verify the performance numbers that would be > greatly appreciated. =46rom a superficial review of the patches, they look okay to me. I don't have time to run a performance benchmark (before I go on vacation). I hoped Bj=C3=B6rn could test/benchmark this(?), given (as mentioned) this also affect XSK / AF_XDP performance. --=20 Best regards, Jesper Dangaard Brouer MSc.CS, Principal Kernel Engineer at Red Hat LinkedIn: http://www.linkedin.com/in/brouer