Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1636081rdf; Sun, 5 Nov 2023 07:40:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFK24z3Um9Y//6ejUzI7rihxIMjGfDXMOl6PeCK9SH//dRK6tX6OePY2c5RpzFCQXpNbCvA X-Received: by 2002:a17:902:ab5a:b0:1ca:3c63:d5d3 with SMTP id ij26-20020a170902ab5a00b001ca3c63d5d3mr27985099plb.2.1699198808397; Sun, 05 Nov 2023 07:40:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699198808; cv=none; d=google.com; s=arc-20160816; b=nKyd8e/P8n+259W2e8475ucjn5rF4bHvOjJ102EbGCsuZUVeVX4zcQO6+xsLncFNKg OTXSOnJehRqTpTycMYtPBlCEuYeLbEtMrBPdrYouQv3juMXKjU/Ls6/6c14HU+8O1BOL ZkoJfj1iM4CN4vZsGCtO2MK683QVe2E9k79omOvqahKbM0xw3EVSoP0rgYZLS0tVlXJf Of6XfXUPjKnXBDyjLMjswlRvwzIRzABIjGTBfeNbrobp3+u06JpvaFGUGNRvxHzu4PZi LQ2gSRECRmCRHxL9WG6tquvGqXm4r4u3BFYfqVsGCzhxwdp4FfxjJHsH+8a5fgHZf3A2 /D6w== 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=eqfTkuz+klDPkuPgYNloOteJWBEwKWLuB1ZigC0ZFsI=; fh=eL3zGRKccEbsKDwAe0MZTtRsGOp5djSEUUuakMZhz5c=; b=HnTIhvzIv8AshwI2CIg2qCBFAHU0jZVGt8qjxghKzZWukUk/V55vYyjttGfAb2e1oR J0LqPSpuF5X8+x7JWMfdAwIpPF1xORXTBeqVwF5BmDTbWfeXJdwR+Ezyf3f58E2GSHaX gLy/i2iD6WEcuXs18ocRUgmZnvNvPKk1p15xFQdDhYqTI40KB81+hUGhDiVncWvFpHYZ /9msx1VNhzZT4KtX9IEQwV+fkFBCZQd2v4xqYtCXKb/FoApovwh/oJyu3ElclQFxyP4j R3y8GppV3Bi4eLsxxLLfxOEQDr9atdZhPr8g8v5KIvAN7mKMO+SvBtDnYSH8WrV430ri HZ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=gt9R+XQh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id w9-20020a170902c78900b001bdf6eb05f2si5749332pla.227.2023.11.05.07.40.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 07:40:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=gt9R+XQh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 62B6A80ADF2F; Sun, 5 Nov 2023 07:40:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229481AbjKEPdq (ORCPT + 99 others); Sun, 5 Nov 2023 10:33:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjKEPdq (ORCPT ); Sun, 5 Nov 2023 10:33:46 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1449A7; Sun, 5 Nov 2023 07:33:42 -0800 (PST) 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=eqfTkuz+klDPkuPgYNloOteJWBEwKWLuB1ZigC0ZFsI=; b=gt9R+XQhR7uywY8dT2NEYMPSXt X2m51KK66ty4Srb+fouQpQWOarfSL+oZyZ3/3wqNN+OEHQCAi83xulUQc4OhM6YzaY6C6tHacJGmr o3UUq1EuMVC6ND2T7YAiFw5+lU5cYMpr8d/yeDALgArbVn/GBAGzRSzwHv8wegnl3+3s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qzf7x-000wCa-Rc; Sun, 05 Nov 2023 16:33:29 +0100 Date: Sun, 5 Nov 2023 16:33:29 +0100 From: Andrew Lunn To: Mirsad Todorovac Cc: Heiner Kallweit , linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, nic_swsd@realtek.com Subject: Re: [PATCH net-next v6 0/5] Coalesce mac ocp write/modify calls to reduce spinlock contention Message-ID: <344fc5c2-4447-4481-843f-9d7720e55a77@lunn.ch> References: <20231104221514.45821-1-mirsad.todorovac@alu.unizg.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sun, 05 Nov 2023 07:40:07 -0800 (PST) > > > With about 130 of these sequential calls to r8168_mac_ocp_write() this looks like > > > a lock storm that will stall all of the cores and CPUs on the same memory controller > > > for certain time I/O takes to finish. Please provide benchmark data to show this is a real issue, and the patch fixes it. > Additionally, I would like to "inline" many functions, as I think that call/return > sequences with stack frame generation /destruction are more expensive than inlining the > small one liners. Please provide benchmarks to show the compiler is getting this wrong, and inline really is needed. Until there are benchmarks: NACK. Andrew