Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp210447rdb; Tue, 31 Oct 2023 05:38:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHceL1s7knJf2Ct3fkKWAH4SwvWeNN7ZUTl9cym5GSeZ16eRzRXWaLXxdM9A77LTFvtelS6 X-Received: by 2002:a17:90a:9484:b0:280:4799:a841 with SMTP id s4-20020a17090a948400b002804799a841mr6000609pjo.38.1698755929875; Tue, 31 Oct 2023 05:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698755929; cv=none; d=google.com; s=arc-20160816; b=BJH7HM5SLtAf7ivZBpaQjpOGwry5nvbFaW0dntnix0xq+nkbZPRAu2Q5FFUR8fo23I XucTPnVFYeKQRNsUJPOKHW3uRy5AeHtoX/AARdsk+UfA0hmj6LhghRZVjKZrXdNzQvHj HD89T09q5Qy+3ixWduDNm+tGwph1+KHDGlshhPp0OZAm81ZsV8TsrgwmxBpzCM+/MnPK yjgVaW4PPeuT1DyPFeEwSx87s+sYuikjwG6mlvgJTFjNtm2YK16+ZrGi11l7+92egnRl 9TEeNGD+1iOWEJR2wTH9xCIJh45v3Ua7HFpQKYS9k4DMWfy7OMpAt0qBzqxBd/Wp6FXD DNhA== 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:dkim-signature; bh=KyXQpc8AXiGy6JfaWDKN47mA7BYnKlEsLUhMJAG3kDo=; fh=+kmKBb8MubTrYpHWRRyYzczcgm1tcT40xRagfASwXZg=; b=WSaX8Rp21Xx5rmUgYiV69CQNo7KpkCaMSVNz0w0pDnbAtLb1a9rr5ZbeUwICD8jOW1 cRibVWCF/jsRZB9qIT72I8e3ZZOusC+qiVifrtzJMgW1pI2DceYXBKMRctoLAQBvj2TL IFJMVGzx9OwwJN2w1LkUzRnj6ymKtnVJkuYu6RorXgCo4SMJpLJMXYlyReCG017ctwJy JGfHGPPeFApiLOjBqVT1CFf0V0ozG2BWtlwVtdAM3KeqU8BKWTVasVzw+l7LHCULadKO J9w+koQwk2u6L/YKlcEYUp/1E+iHmzBcfSiVBWDWi7FMsK2x9UaGwn1lPzYGNIbZAr58 daEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=U9skVJ4L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id np16-20020a17090b4c5000b002805dcadebasi945822pjb.115.2023.10.31.05.38.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 05:38:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=U9skVJ4L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6B6F38021DA7; Tue, 31 Oct 2023 05:38:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344269AbjJaMik (ORCPT + 99 others); Tue, 31 Oct 2023 08:38:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344246AbjJaMij (ORCPT ); Tue, 31 Oct 2023 08:38:39 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF3AD97; Tue, 31 Oct 2023 05:38:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=KyXQpc8AXiGy6JfaWDKN47mA7BYnKlEsLUhMJAG3kDo=; b=U9skVJ4Leh3/l/gNvkw6v+TGQM n+ETP0A806oMc+WbhIxsTd6PbAFDNFCD8ZTWxKyOLqC96jGY92PDJpBcz7TzvYFF/v/CBJSm3XJn3 c7o+Bs0SsPqB2hHqrlAPAgX+RQnZS3YzIi9HEID4GhoCrBVC4nF18Iqe0YPxPXar4lgI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qxo0t-000c0c-MQ; Tue, 31 Oct 2023 13:38:31 +0100 Date: Tue, 31 Oct 2023 13:38:31 +0100 From: Andrew Lunn To: Mirsad Todorovac Cc: Heiner Kallweit , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, nic_swsd@realtek.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Marco Elver Subject: Re: [PATCH v3 1/1] r8169: Coalesce RTL8411b PHY power-down recovery programming instructions to reduce spinlock stalls Message-ID: <7fa02dd1-c894-4980-8439-4dc1e22d3634@lunn.ch> References: <20231028110459.2644926-1-mirsad.todorovac@alu.unizg.hr> <376db5ae-1bb0-4682-b132-b9852be3c7aa@gmail.com> <23428695-fcff-495b-ac43-07639b4f5d08@alu.unizg.hr> <30e15e9a-d82e-4d24-be37-1b9d1534c082@gmail.com> <9f99c3a4-2752-464b-b37d-58a4f8041804@alu.unizg.hr> <11f59506-406a-463b-94c1-fe20246a102f@alu.unizg.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11f59506-406a-463b-94c1-fe20246a102f@alu.unizg.hr> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 31 Oct 2023 05:38:47 -0700 (PDT) On Tue, Oct 31, 2023 at 04:35:19AM +0100, Mirsad Todorovac wrote: > On 10/31/23 02:21, Andrew Lunn wrote: > > > I will not contradict, but the cummulative amount of memory barriers on each MMIO read/write > > > in each single one of the drivers could amount to some degrading of overall performance and > > > latency in a multicore system. > > > > For optimisations, we like to see benchmark results which show some > > improvements. Do you have any numbers? > > Hi, Andrew, > > Thank you for your interest in RTL NIC driver optimisations. > > My knowledge about the timing costs of synchronisation is mostly theoretical. The kernel tends to be very practical. Maybe try to turn the theoretical knowledge into practice. Write a benchmark test, or see if any of the existing RT Linux tests show there is a real problem here, and your changes fix it. Andrew