Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp485612pxb; Mon, 8 Nov 2021 17:09:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJylDQ0DbpNlXjF1Cb/W2XA+JpoPfo970cjKS0+KCzJx3c9vRQUP60m8rbJbFIy7TU3h8XMw X-Received: by 2002:a17:907:2d21:: with SMTP id gs33mr4416251ejc.549.1636420155991; Mon, 08 Nov 2021 17:09:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636420155; cv=none; d=google.com; s=arc-20160816; b=qu4c5vGkSMNAJTMX6biRB1dOGYATTYbfadUSUUYFosrJXmW2U8dPsleJQqdjdCM+S9 fIJH2NH1fU7fEl8Qt7hXpjLhEt4DnMnalGZCdJeJEPPAPEerROw4hS7OQu3CwCKo7RS1 Gh5JcSwe3hTW0CBXUQZiA3QaFzelQRjqaIlaVpR7bZcOkOOmNBgfmr4ld2vhxdgfLGRJ 9fKUyYsI2jSQwvbu6waSDtSUZn/5m4xaTQVZxQcI3nULghXSgjAfmRPhD3JwfYd3uRWt tHnh28AlgndFEIcj9rxtDhFKTw0fb19GNe5UZBSDB/uymb6L961OH12bMLOacbPGRwuE nudg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zVnAxwCTKjC3AUkCPijiuTypRE/MJddmMMQInhWEYjg=; b=qxfbrH8/1xo87yCppuAPEOsuxgDMM0zalgxPO+/+7YFZdeU6eqSOTv5cbPJWrbEPDP dNYZSYOb+M9kaVH2u7qdfgU9JhDGX2VQ5V/EAXcQMZFilsZtyitLrmb3WJIGGh3kZQMq YN4qBwgxjVRcDpCi3fiih07js8ng5J/PYTHP/lQsfKnItdAzo9pVo+u+2lpJLuij5yH2 tGYk7XyFpYte7ioIvpxHPztOWLCBGg9/ciN4SuT+RFrSs6Sti9pvcxs+TCLC+1EOp+gL r0VwO149v9p8eDXQG54ESjWukCWvEff0NRKuzIM/qA2CtO2d9qYUtGOWw6Fl1woFllNN 0zaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20210112.gappssmtp.com header.s=20210112 header.b=1BbGuwFm; 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 b5si29501566ejb.4.2021.11.08.17.08.48; Mon, 08 Nov 2021 17:09:15 -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; dkim=pass header.i=@sartura-hr.20210112.gappssmtp.com header.s=20210112 header.b=1BbGuwFm; 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 S241011AbhKHXzZ (ORCPT + 99 others); Mon, 8 Nov 2021 18:55:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238960AbhKHXzY (ORCPT ); Mon, 8 Nov 2021 18:55:24 -0500 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55ADEC061570 for ; Mon, 8 Nov 2021 15:52:33 -0800 (PST) Received: by mail-il1-x12d.google.com with SMTP id i12so18789556ila.12 for ; Mon, 08 Nov 2021 15:52:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zVnAxwCTKjC3AUkCPijiuTypRE/MJddmMMQInhWEYjg=; b=1BbGuwFmIJ6ilYIYJQ3CKsTFLJsPmDHclczUpQ4FmG3zG4epF7hOnFi1x49u54eOb4 vOBRrcemz3u6edv7mCXotXBhO5mCYFh9bEGVgt9ajeGv5vSzGuneBWy1XSZ7LPe4VdI0 1sKS8fGXkzSOinH1vB//SRs1joVwKVSMDLr8gX/1brfJGssTgtZAVyt6b9bu/h3qtRHZ 32Zg06KNzHAicEAiFxHsgtPlY/nlNyON8LKXiqryVPqLR7sOXNqrzrxRn9W0vnvl5ntN XzBjkQfznPTMeaH2LvvDs5xidW3NqeZFcd7luJHbCou+xsARRrcMHa9XMzdrc58B30xW pA/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zVnAxwCTKjC3AUkCPijiuTypRE/MJddmMMQInhWEYjg=; b=QKG/AsF1b1aL69WvBpyd/gacUwyPGVYF6lOmPbJ1Y19PyR3DYLr+QoYFHNyav3HZBI YhzSx0uTcEiV9fxSTiphKks/LUwvgbxMePS2dY18Mn1zeVmfIcDkqT9HJWgPoZLSosdT kThp6GGdfBi5qlOimCYwLSf9H5vVUGP08RWo+ehElyuhW3dtsIF1G3LW7jJy8EkNB5mw QCzXZ96grOE/zZOzY6LplaxWjS/zxU3GKij1U3YgGZ/vlzcn1b+JoNZoIvQLmIeRYp/0 jj4XXiSXFAYmqWhWob2PBe9swpc5DDGJHLrFlVQdhh4d5BkDrclRXCNezIuHPQnaa2Fj IzjA== X-Gm-Message-State: AOAM5325Ls2tPhv9om0Zy4dIpDRqGcrifpU6ZNT5Pbg4kfzq8/zugizp z8F93hTYROLoJUr0qCdZZMiDvgBJtTwv2/ryRiloAA== X-Received: by 2002:a05:6e02:190f:: with SMTP id w15mr2171155ilu.56.1636415552824; Mon, 08 Nov 2021 15:52:32 -0800 (PST) MIME-Version: 1.0 References: <20211104124927.364683-1-robert.marko@sartura.hr> <20211108202058.th7vjq4sjca3encz@skbuf> <20211108211811.qukts37eufgfj4sc@skbuf> <20211108214613.5fdhm4zg43xn5edm@skbuf> <20211108215926.hnrmqdyxbkt7lbhl@skbuf> <20211108233816.tnov6gufaagdrhlv@skbuf> In-Reply-To: <20211108233816.tnov6gufaagdrhlv@skbuf> From: Robert Marko Date: Tue, 9 Nov 2021 00:52:21 +0100 Message-ID: Subject: Re: [net-next] net: dsa: qca8k: only change the MIB_EN bit in MODULE_EN register To: Vladimir Oltean Cc: Andrew Lunn , vivien.didelot@gmail.com, Florian Fainelli , David Miller , kuba@kernel.org, netdev@vger.kernel.org, Linux Kernel Mailing List , Gabor Juhos , John Crispin Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 9, 2021 at 12:38 AM Vladimir Oltean wrote: > > On Mon, Nov 08, 2021 at 11:13:30PM +0100, Robert Marko wrote: > > > The driver keeps state. If the switch just resets by itself, what do you > > > think will continue to work fine afterwards? The code path needs testing. > > > I am not convinced that a desynchronized software state is any better > > > than a lockup. > > > > It's really unpredictable, as QCA doesn't specify what does the software reset > > actually does, as I doubt that they are completely resetting the > > switch to HW defaults. > > But since I was not able to trigger the QM error and the resulting > > reset, it's hard to tell. > > Phylink would probably see the ports going down and trigger the MAC > > configuration again, > > this should at least allow using the ports and forwarding to CPU again. > > However, it may also reset the forwarding config to basically flooding > > all ports which is the default > > which is not great. > > > > But I do agree that it may not be a lot better than a lockup. > > I'm not sure what you expect going forward. You haven't proven an issue > with the actual code structure, or an improvement brought by your change. > Allowing the hardware to autonomously reconfigure itself, even if > partially, is out of the question (of course, that's if and only if I > understand correctly the info that you've presented). After this discussion, I think that John clears the bits intentionally, I still don't think its really the best practice to do so in the MIB enablement without documenting it. However, since this doesn't seem to be hurting anyone I will drop it and rather focus on IPQ4019 support which is slowly shaping into something upstreamable. Regards, Robert -- Robert Marko Staff Embedded Linux Engineer Sartura Ltd. Lendavska ulica 16a 10000 Zagreb, Croatia Email: robert.marko@sartura.hr Web: www.sartura.hr