Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7188493rwb; Tue, 15 Nov 2022 08:45:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf6YSddn6ZtohGj4AJuF5s9Ao8ffqSdM6TAU42Rgb1H039z7pvhzl/26FbfLOiDnFok8OF5O X-Received: by 2002:a05:6402:95b:b0:459:401:c23e with SMTP id h27-20020a056402095b00b004590401c23emr16453458edz.23.1668530729385; Tue, 15 Nov 2022 08:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668530729; cv=none; d=google.com; s=arc-20160816; b=lLrf4IhqveeqhBXIhS59Y8yl8y1ajBjcQ0y8d3evA/fUzTXZ/rZ57wRl701cTzc0q2 Q8hU8UvA2D+p2IW9pcNX2oVeKklH7HVQayZo6EQGDpbg8jvfoJu+CLNOrxjuaHbbDHJ/ 4P0ed92SKLed5t4VZykj3ADDAPpZUbFOqnm36m5BwxtUqj2qdy8XV8KiwBUg/EGqCI1R 39gq620IpGv86xPmA4HlgjUNMViHGLIiPHpfEInpxbR64ggquO/Lpm9RTxyywGe4RQdO gWCLYhpJliRbfqbwYhXxc9BIpAChqwaiXW6n7UUkHHMsfkk6DX+w9sMBkA+TzZouF15p /5CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version; bh=iUBVu4VcR0L5Cjrs+w0TdgU4WAwK3y1R0DomQC1clGk=; b=JHKKZqIUQT6mpnOZqSYQyXsq3NDllkvrrrFTIqCAjPzBPHZGutbRq3SRpTQaW2kEqu CwU9abzu6sYQ46/2SId6JaxLsYfDcK3qhoNNtKDL04KZ5tHWE4o97SiDRDWZhSvOpZ6N rPv28FG/4r4jXQ1v0XG3J/iDmBhLXbddWCFqykOSiHOjGboIrlvOJEZ5IVp0Z2eYBxod CM09XWKrwaneH2i7PO8SJRJJPEfcL5FNT714nK6RTyXZvasesOFkON13Rw+veGF6nXG5 vIGhQnB9+v+38mjZBMyPVsp21cC7Y4wvXPcp20v0wMAH65wULK2HEK2Gwgnwy5H+d16I Gtdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f17-20020a50d551000000b0046453c385e4si10816743edj.365.2022.11.15.08.45.06; Tue, 15 Nov 2022 08:45:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbiKOQDH (ORCPT + 90 others); Tue, 15 Nov 2022 11:03:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbiKOQDE (ORCPT ); Tue, 15 Nov 2022 11:03:04 -0500 Received: from mailout-taastrup.gigahost.dk (mailout-taastrup.gigahost.dk [46.183.139.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A18E4D5C; Tue, 15 Nov 2022 08:03:03 -0800 (PST) Received: from mailout.gigahost.dk (mailout.gigahost.dk [89.186.169.112]) by mailout-taastrup.gigahost.dk (Postfix) with ESMTP id 17F931883A42; Tue, 15 Nov 2022 16:03:02 +0000 (UTC) Received: from smtp.gigahost.dk (smtp.gigahost.dk [89.186.169.109]) by mailout.gigahost.dk (Postfix) with ESMTP id E909C25002DE; Tue, 15 Nov 2022 16:03:01 +0000 (UTC) Received: by smtp.gigahost.dk (Postfix, from userid 1000) id C67879EC0020; Tue, 15 Nov 2022 16:03:01 +0000 (UTC) X-Screener-Id: 413d8c6ce5bf6eab4824d0abaab02863e8e3f662 MIME-Version: 1.0 Date: Tue, 15 Nov 2022 17:03:01 +0100 From: netdev@kapio-technology.com To: Vladimir Oltean Cc: Ido Schimmel , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, Andrew Lunn , Florian Fainelli , Eric Dumazet , Paolo Abeni , open list Subject: Re: [PATCH v8 net-next 0/2] mv88e6xxx: Add MAB offload support In-Reply-To: <20221115145650.gs7crhkidbq5ko6v@skbuf> References: <20221112203748.68995-1-netdev@kapio-technology.com> <5559fa646aaad7551af9243831b48408@kapio-technology.com> <20221115102833.ahwnahrqstcs2eug@skbuf> <7c02d4f14e59a6e26431c086a9bb9643@kapio-technology.com> <20221115111034.z5bggxqhdf7kbw64@skbuf> <0cd30d4517d548f35042a535fd994831@kapio-technology.com> <20221115122237.jfa5aqv6hauqid6l@skbuf> <20221115145650.gs7crhkidbq5ko6v@skbuf> User-Agent: Gigahost Webmail Message-ID: X-Sender: netdev@kapio-technology.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 On 2022-11-15 15:56, Vladimir Oltean wrote: > On Tue, Nov 15, 2022 at 02:25:13PM +0100, netdev@kapio-technology.com > wrote: >> On 2022-11-15 13:22, Vladimir Oltean wrote: >> > Do you have a timeline for when the regression was introduced? >> > Commit 35da1dfd9484 reverts cleanly, so I suppose giving it a go with >> > that reverted might be worth a shot. Otherwise, a bisect from a known >> > working version only takes a couple of hours, and shouldn't require >> > other changes to the setup. >> >> Wow! Reverting 35da1dfd9484 and the problem has disappeared. :-) > > See? That wasn't very painful, was it. Indeed it was not, when you get a good tip. Thanks alot! :-) > > Now, why doesn't that commit work for you? that's the real question. > I'm going to say there's a big assumption made there. The old code used > to poll up to 16 times with sleeps of up to 2 ms in between. > The new code polls until at least 50 ms have elapsed. > I can imagine the thought process being something like "hmm, 16*2=32ms, > let's round that up to 50 just to be sure". But the effective timeout > was not really increased. Rather said, in the old code there was never > really an effective timeout, since the polling code could have been > preempted many times, and these preemptions would not be accounted > against the msleep(2) calls. Whereas the new code really tracks > something approximating 50 ms now. > > Could you please add the reverted patch back to your git tree, and see > by how much do you need to increase the timeout for your system to get > reliable results? > Yes, so you want me to simply increase the 50ms on line 58 in smi.c... I have now tried to increase it even to 10000ms == 10s and it didn't help, so something else must be needed...