Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3616005pxu; Tue, 8 Dec 2020 17:25:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvjyKFru++oIzr6R3g73GcerRseFqWsLwmybRNsF+/CcoHrrPt+QgkRCN+CgGtbmB07ugC X-Received: by 2002:a17:906:cf81:: with SMTP id um1mr115721ejb.122.1607477121554; Tue, 08 Dec 2020 17:25:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607477121; cv=none; d=google.com; s=arc-20160816; b=E7aO0PCA2rVa5RgaL2UWSi+qgmXi+8yIFh1sZ9JVN41L3bF3OoBEPottnod9uwReQy QdyEv4ZmQ9UFhEKjrjG/HCCTK//3Zlkhz0o8ZKGw+wT1movizu2XIxGEpsNOhtFnYpa/ PkCVbcFEnPmKl4jGN96CjRMJxvBZGlEWZtvZ4bBC1uR2CaPawGTksZvIuIefg7YlwESw N7Tl6gFLlZHW6dLc3gZbqYOhavBXNVnmyJMFP192rRjF6boKqiHEl6N0gmDWlvhaUwb+ TwUt+8yJerDeX36hN+ipU1ckUgRaa0mftYp4AoWEcbB1VaTuRXmjKs88Y87Gfo5dp1rQ sOLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=j/A8lbl1h0Pzi8x9hGNTwCNMvSoqIFYedbo6x2t1u6c=; b=q+UroVjEaGBZ2F2RMPAtgPU11rFzlU8D8ie+oQEiXZPOu7SWeI0d7jOGymwqOlrzTz bLS7yfXm6Jah/dKt7DrmySVcx0bamcyhoXO7EhqQCuOIciEdZhHhaZZ/FIANTTMTQV2P 4gnkcly+LudvdG6Y3Sznmq8FMKaaVe/w8Nd0moFFvITp7e0YQsek/nvPF/P6fp901Nc7 HdL1uJSDt87RW9Vngai36G8QVfQZHWnqwSD/S55Mo/VXg5m7mizUWiKAiTwVIRUJhSxo 5F1oCr67dX/GCO/UE3XpzRd/AfQQf2t0B0Cdm2Ioj2GAcYq3xxV3iV4cKBwIMlUXH4/P twSA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si114445ejc.358.2020.12.08.17.24.58; Tue, 08 Dec 2020 17:25:21 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726118AbgLIBXG (ORCPT + 99 others); Tue, 8 Dec 2020 20:23:06 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:45458 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbgLIBXF (ORCPT ); Tue, 8 Dec 2020 20:23:05 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kmoBO-00Ax9n-B8; Wed, 09 Dec 2020 02:22:18 +0100 Date: Wed, 9 Dec 2020 02:22:18 +0100 From: Andrew Lunn To: Florian Fainelli Cc: Sven Van Asbroeck , Jakub Kicinski , Bryan Whitehead , Microchip Linux Driver Support , David S Miller , netdev , Linux Kernel Mailing List Subject: Re: [PATCH net v1 2/2] lan743x: boost performance: limit PCIe bandwidth requirement Message-ID: <20201209012218.GN2475764@lunn.ch> References: <20201206034408.31492-1-TheSven73@gmail.com> <20201206034408.31492-2-TheSven73@gmail.com> <20201208114314.743ee6ec@kicinski-fedora-pc1c0hjn.DHCP.thefacebook.com> <20201208225125.GA2602479@lunn.ch> <3aed88da-8e82-3bd0-6822-d30f1bd5ec9e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3aed88da-8e82-3bd0-6822-d30f1bd5ec9e@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > dma_sync_single_for_{cpu,device} is what you would need in order to make > a partial cache line invalidation. You would still need to unmap the > same address+length pair that was used for the initial mapping otherwise > the DMA-API debugging will rightfully complain. But often you don't unmap it, you call dma_sync_single_for_device and put it back into the ring. Andrew