Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1795822rwd; Tue, 13 Jun 2023 14:30:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4D8EuxUdHnHynm/qTlAOYqWjeUXO+Pz0lxL8DsozwWezSwawm3DHM69rofB7oKWIXokimF X-Received: by 2002:adf:fc4a:0:b0:30f:d24b:8121 with SMTP id e10-20020adffc4a000000b0030fd24b8121mr1045680wrs.52.1686691802370; Tue, 13 Jun 2023 14:30:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686691802; cv=pass; d=google.com; s=arc-20160816; b=PIF6D2MQinG+XVBM3Dhhtov0x+A75omwt5hl8sO9poaW8XtfXt5eDRA1npg83M+241 5HhX1TGgzyTmAM4Ou1310BRN66WTjvtbC3umyJAP1R/D+7GIyHZPHc0VCY2d+Gkvb8/7 UdEWtM8eXzf6uKSv7TugXWEIl0vCyMRH9UaKDsEH0vHnNfGZH2EbTnkqb6xefxeBNnMj HZYjDmPtMl2BLC1hI2oJjw3KjeJ3Jb3pzoXhH5wqpHGF+LJx5k93J1nz8gktHxIN5TPg +hJBU3mlsJ/wc+PTzIB6tDgF5JMO8m+8pvAyRVSUWsiU60k7yBUSbxNKFS2iefeD0MUM KJeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mNrSoA9RNanVJ842F7+wKKUHtKKldQV+kaGjsFPdlIw=; b=j1mdOi4jklUNf2Hr9aG+0xz9iUnDvH2cxb+gMVNYXdrvaNexwvOSCL5Mlz3iINPgk6 CrpAZpcOXBrjyPeEn17xBlN3BTnVjFt1GqF9DvNG9wFNWWfksk5rFTqMOSHyrLNGVgMU QfGXGGLccq3z+7Btx4Mn/PXhFfTXkC1ao0/l9f7DOWinpgf5tBKuuACI5qUx5QcaFTpr ncYEPDpq4sVnXpvD9wRJeWfhTZcG1cEwSd5ejpJCjCQuOc1tf/bUpo17s6XHDtqNZJCJ EwkPTcfPeoboM7r9a7Dx9m8ffRLYguXNt+22GWdA5ZD2H/WKYy84ToraQU4x9A7oyBJR c92g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arinc9.com header.s=zmail header.b=ANWo1ieZ; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.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 m9-20020a50ef09000000b00515dbc44869si5647375eds.134.2023.06.13.14.29.36; Tue, 13 Jun 2023 14:30:02 -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=@arinc9.com header.s=zmail header.b=ANWo1ieZ; arc=pass (i=1 spf=pass spfdomain=arinc9.com dkim=pass dkdomain=arinc9.com dmarc=pass fromdomain=arinc9.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 S238685AbjFMVFP (ORCPT + 99 others); Tue, 13 Jun 2023 17:05:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236659AbjFMVFN (ORCPT ); Tue, 13 Jun 2023 17:05:13 -0400 Received: from sender3-op-o19.zoho.com (sender3-op-o19.zoho.com [136.143.184.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A02219A7; Tue, 13 Jun 2023 14:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686690262; cv=none; d=zohomail.com; s=zohoarc; b=h5XT1YKtblE2EbdkfNwDxnv6JsYamFwH2kFnrl/YUs5MFcMAOG3UfjSKcPSJsH4DFrpjFm/+qUTBYfXINdnvbK0ESC6JbhjNateuAUeAYzsmmxXypLV46d+oqWEl89Oo4kaDJiWwQIzKZshxuwfyRSEMSrouJodEvJSHVDp5a+A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686690262; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=mNrSoA9RNanVJ842F7+wKKUHtKKldQV+kaGjsFPdlIw=; b=ktzgPAYxOg3Yocw5UfX11w1BH/qcey9+pTuIdgQNvqMRQbtaxj0j/fgIJtn9lUtFWRIIkCNrSt07xTnsxE+ualoKOM5+VkxlRIy9HHCx7A8m14rcEaGm0Ra3p9GDU6SY3jcKe1nKPz7Ud8h4WYue8pYe6vJnCKxgGcKqSUB5JN0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1686690262; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=mNrSoA9RNanVJ842F7+wKKUHtKKldQV+kaGjsFPdlIw=; b=ANWo1ieZAPI87KHbnBruHf4fRzOgNTl0e9FL0mtBMttmA+JEZI/9nEah39HzcmfJ 9HF+LTHMZNM1hgcqOz/FzfHCYLHiZYifgZzRiO7hXmR8hDOgqVUa+GLYWUc7LA84w8a oahMOKD2Mc92TbRWXwBgoCAsQkqik1dlXCqcGhBQ= Received: from [192.168.1.248] (178-147-169-233.haap.dm.cosmote.net [178.147.169.233]) by mx.zohomail.com with SMTPS id 1686690259958616.2203158377357; Tue, 13 Jun 2023 14:04:19 -0700 (PDT) Message-ID: Date: Wed, 14 Jun 2023 00:04:10 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH net v2 2/7] net: dsa: mt7530: fix trapping frames with multiple CPU ports on MT7530 Content-Language: en-US To: Vladimir Oltean 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 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> <20230613205915.rmpuqq7ahmd7taeq@skbuf> From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230613205915.rmpuqq7ahmd7taeq@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,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 On 13.06.2023 23:59, Vladimir Oltean wrote: > 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? Because I don't see the latter patch as a fix. It treats the symptom, not the cause. Anyway, I'm fine with taking this patch from this series and put it on my series for net-next instead. Arınç