Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1801851rwd; Tue, 13 Jun 2023 14:35:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4op+tv+TYArhazhoSFn9grzAILyL49pi3I9oepL9zV46BzxzyNXoag5j/g5l3s++LuAvnp X-Received: by 2002:a17:907:1c26:b0:94a:8291:a1e3 with SMTP id nc38-20020a1709071c2600b0094a8291a1e3mr13154358ejc.74.1686692155747; Tue, 13 Jun 2023 14:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686692155; cv=none; d=google.com; s=arc-20160816; b=frm/ApQMswvKgZ/WYKb5QpeIz1gJBOuRAYfkfgucRj5aJuTHasBM3EiTJwbNxkzqzW lVq2wIP/apSez+KHAludXASstZ8tZ6iYH3wS7X0ZP1jQj4xfuOAzJbC+4zTPdIiaAvLP QhXZXwzXfCtFyKJg39yiLpPRM1vYqvVGM2gGJUpsFWxVqP3/vcvdpIj1ksURkjQObZTp 1Pgc2R2RgGhSO3L6lQxGaAesZDtUTVCEnpbaHSwNcx7VqUdP69xsf7vwGJM7rnKYlDyo vh5d4P8awnYMvNHPGBlaCEARKoTgsnqePNdPqcRK6i1keBkkCISVnFIuf/2seSc3KlAi WirQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FnCC76S/R/td93VtAHcKLzfGTNnlN+6UbWPXpb6p1xM=; b=c4AUKqHeRSgfTdT1yuw3/5zEnyYNAuyIjECI/xKC1SanmUz23Z01FcgkeemYBMuJay 7XQyghuZo+46/laYvI31DMu4blPWIqxvs+in0DkimL8Wz60GmGTKKSevG45iqfxLy3Ie sgeI246zf8BKH7EgsL2jTQa+czRYAadrFiAuWBuiMtw5aG+3pK6TDvHZYsAKyUv6XmS5 zsS0r+foLkQwxfYxDEkCF4+9TWxJU31DiVTRvOoxggJWmzUDjse18HcGtsWP6EyMS+Dr x7bKXHtsmlN8/eg830PF6cHs5XgaoRh/6MdzTstupuT+XKYiDAy+5gXV+Nfx8jrSBmxL XLAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=egNnBfbV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a170906278300b0096f6faaaa93si7123945ejc.223.2023.06.13.14.35.08; Tue, 13 Jun 2023 14:35:55 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=egNnBfbV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234591AbjFMU7Y (ORCPT + 99 others); Tue, 13 Jun 2023 16:59:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjFMU7V (ORCPT ); Tue, 13 Jun 2023 16:59:21 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DCCC1713; Tue, 13 Jun 2023 13:59:20 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-97881a996a0so2436166b.0; Tue, 13 Jun 2023 13:59:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686689959; x=1689281959; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=FnCC76S/R/td93VtAHcKLzfGTNnlN+6UbWPXpb6p1xM=; b=egNnBfbVJb6ap+gKmUpxLnNKAP1aI4oSDbxk59NgNwt+BzliMV4/nSS/IpZq4LZo6M TbNRtvO4m6XYRQMVbcRP76aBQy4/D3kjbnH7+mlPYzei94kdJ6KHIbMRv9SRP+w05yg0 nJVdAoqExTs6Q8xdmzcLXfLlpJOW1ti2CPfYWkqwnvvRpGoYv8bPFUecfNVS0NAqCr7X ZOHLe7E5nTkTs8L9lpdFK7OwjrIZDsrlU6O1km3lJ3KTOfq0CYKLUShS5s7BOMoJOuQo i+OtyUz7HpWzd3qIBOByE8Xl3tjS5wN4HzSJbNFDo78XW9DdP6+Uzv9v38fjY0kpJ/cA kOQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686689959; x=1689281959; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FnCC76S/R/td93VtAHcKLzfGTNnlN+6UbWPXpb6p1xM=; b=iRqPRyHXfFlrm2hZcYVzDaaSP5elyvFFXyy+2DxCszH5Ypq9O8pXGLZjUIB3Qyu0FL 4UA+CRGmFSTjffTAVvodqPkWNCd17RHZjUt+f0m3ZnV5BpWjUauReAuo9EIDsSCmCKcQ 6fnWnCUVM2vOQn46pRwA4nHl3/55ANs41gvwDIPnxQjQ1va6PRK5Cbz6hVO2Il31c4db BFq/ElM164IfxpuhJ+L7t0CP3Kltgiz4+MGUhOXRE5nf4Cy2F/XM5WdIyU+IDIlHtWVM UyA85XhUhaMwSkoMl+Obt1Y0tT3ND7ZCPxX5OiwB3nPPhsFwJ4/SUujEJi0W1mOMIJge y+hA== X-Gm-Message-State: AC+VfDy7FPJFZYgP4rRBzlbu891gkgxHQtv+RfwfRJPwYpSRI78sxSH9 GK3VcNobtL5STnCHw/SfmR4= X-Received: by 2002:a17:907:1c26:b0:94a:8291:a1e3 with SMTP id nc38-20020a1709071c2600b0094a8291a1e3mr13103976ejc.74.1686689958752; Tue, 13 Jun 2023 13:59:18 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id mh2-20020a170906eb8200b0097073f1ed84sm7142079ejb.4.2023.06.13.13.59.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 13:59:18 -0700 (PDT) Date: Tue, 13 Jun 2023 23:59:15 +0300 From: Vladimir Oltean To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: Daniel Golle , Landen Chao , DENG Qingfang , Sean Wang , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , Russell King , Frank Wunderlich , Bartel Eerdekens , mithat.guner@xeront.com, erkin.bozoglu@xeront.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net v2 2/7] net: dsa: mt7530: fix trapping frames with multiple CPU ports on MT7530 Message-ID: <20230613205915.rmpuqq7ahmd7taeq@skbuf> References: <20230611081547.26747-2-arinc.unal@arinc9.com> <20230613150815.67uoz3cvvwgmhdp2@skbuf> <20230613171858.ybhtlwxqwp7gyrfs@skbuf> <20230613172402.grdpgago6in4jogq@skbuf> <20230613173908.iuofbuvkanwyr7as@skbuf> <20230613201850.5g4u3wf2kllmlk27@skbuf> <4a2fb3ac-ccad-f56e-4951-e5a5cb80dd1b@arinc9.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4a2fb3ac-ccad-f56e-4951-e5a5cb80dd1b@arinc9.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, Jun 13, 2023 at 11:35:08PM +0300, Arınç ÜNAL wrote: > On 13.06.2023 23:18, Vladimir Oltean wrote: > > On Tue, Jun 13, 2023 at 08:58:33PM +0300, Arınç ÜNAL wrote: > > > On 13.06.2023 20:39, Vladimir Oltean wrote: > > > > Got it. Then this is really not a problem, and the commit message frames > > > > it incorrectly. > > > > > > Actually this patch fixes the issue it describes. At the state of this > > > patch, when multiple CPU ports are defined, port 5 is the active CPU port, > > > CPU_PORT bits are set to port 6. > > > > > > Once "the patch that prefers port 6, I could easily find the exact name but > > > your mail snipping makes it hard" is applied, this issue becomes redundant. > > > > Ok. Well, you don't get bonus points for fixing a problem in 2 different > > ways, once is enough :) > > This is not the case here though. > > This patch fixes an issue that can be stumbled upon in two ways. This is for > when multiple CPU ports are defined on the devicetree. > > As I explained to Russell, the first is the CPU_PORT field not matching the > active CPU port. > > The second is when port 5 becomes the only active CPU port. This can only > happen with the changing the DSA conduit support. > > The "prefer port 6" patch only prevents the first way from happening. The > latter still can happen. But this feature doesn't exist yet. Hence why I > think we should apply this series as-is (after some patch log changes) and > backport it without this patch on kernels older than 5.18. > > Arınç I was following you until the last phrase. Why should we apply this series as-is [ to net.git ], if this patch fixes a problem (the *only* problem in lack of .port_change_master() support, aka for stable kernels) that is already masked by a different patch targeted to net.git?