Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3843006rdg; Wed, 18 Oct 2023 07:37:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJPq/dc46UDhB5FHS/3HyGMgpsK8agbsOl2H1q2/cj4mAreYKosTkSBoIkGKaU9Aj4AvjI X-Received: by 2002:a05:6870:1d0e:b0:1e9:a741:44f3 with SMTP id pa14-20020a0568701d0e00b001e9a74144f3mr6035014oab.14.1697639840776; Wed, 18 Oct 2023 07:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697639840; cv=none; d=google.com; s=arc-20160816; b=etGADBHx4zwIp7Dmxztb0ngFU9/lxz3QYsOr5Nb4RbV6ojZvNQFlHFcFSKoc4BtfLY PA8Amx8+JHVv8QprE6t/V/wcIm5opMKEx3BaMIi3gWByMC02fV8gunlLQ7lJYNTfDksp Vh/VkaaBlN02SnhcjoUJD3gu1CNle7pBrbMa8N1Cg/dXU/jJNuSsky2KRzvarrWAnaFK SqJ1rx0Gy4f8FqhRyjvQFASu2yyc4R0ywqVCJyJqUqvsV8jdVJFZv9IbVTOA5TTg+1VQ V8lvqNnmCw+bHXSm6xQKBIq5iuKpMf3a3bsCMGvOo7U0y3v7qdIvPZoUN6UZLpUe/n+Y aLLg== ARC-Message-Signature: i=1; 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=ECB/V74fiNhXNNHP1fR3P6TDHR1qoK55G/ZoAJHPOL4=; fh=0j3eKbMYOO+MCPgNCePPVft00dk425kYTwcNtG6U330=; b=yv1DvONBdiBpXy21u9zFnKCWMKhsgbOhxcHwUpNVqfp0AU5B8OIIOK83+IOGzK4xeZ p6pPWggJ96nvtmPv11lLaEi9EzILlxfKRlQrGYhLpqNue82n5JP2Wj1zX1yGxUy+Le3A dYrHAnKChrqPvwNbmDl7WkP7XSF3ozrrf55hrz/dv1TI43MP2s6dzi/T0gwZ0idMF2C7 ESjKkjHnmwbGZCb4ofG7X+tMvKRSY+q03PRzqfMmR4XRnRYM0zQ4k4YcDGHTJgydK3EG StXL7G15d4ttrqDqy/AfFFtmWHhvZAlfLo5b/ZcXI36/YVf2S07GQXA4/y3w4N96dTi2 N0Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=zL42P2ZK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id h26-20020a63385a000000b0057de1fae0ccsi2318215pgn.67.2023.10.18.07.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 07:37:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=zL42P2ZK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 3A86C81DAAF8; Wed, 18 Oct 2023 07:37:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235288AbjJROhM (ORCPT + 99 others); Wed, 18 Oct 2023 10:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345558AbjJROhC (ORCPT ); Wed, 18 Oct 2023 10:37:02 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E65E211C; Wed, 18 Oct 2023 07:35:45 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39IEZXD0061599; Wed, 18 Oct 2023 09:35:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697639733; bh=ECB/V74fiNhXNNHP1fR3P6TDHR1qoK55G/ZoAJHPOL4=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=zL42P2ZKsACaRKdwpl1RTqSRAJDgzwjp35HJWNKq7Mdc+UxrjqsBemSVJfjqZ6Qu+ tmlbuKMLvDmLNu0hZ7dlS7YUpwH0R8xWIMRgRTPMH4Y55pxQkm0sDlcHEZ/5Yw1EQ3 LKFaw4dRva3cQqGZOl9q4oBMijdcz44YIvBzQFhM= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39IEZXLU109134 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Oct 2023 09:35:33 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 18 Oct 2023 09:35:33 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 18 Oct 2023 09:35:33 -0500 Received: from [10.249.135.225] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39IEZSMM005472; Wed, 18 Oct 2023 09:35:29 -0500 Message-ID: <80240b87-4257-9ff4-e24c-5b9211f2dc2b@ti.com> Date: Wed, 18 Oct 2023 20:05:28 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [EXTERNAL] Re: [PATCH net v2] net: ti: icssg-prueth: Fix r30 CMDs bitmasks Content-Language: en-US To: Andrew Lunn CC: MD Danish Anwar , Jacob Keller , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , , , , Vignesh Raghavendra , , Roger Quadros References: <20231016161525.1695795-1-danishanwar@ti.com> <11109e7d-139b-4c8c-beaa-e1e89e355b1b@lunn.ch> From: "Anwar, Md Danish" In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Wed, 18 Oct 2023 07:37:18 -0700 (PDT) On 10/17/2023 12:09 AM, Andrew Lunn wrote: >>> How many different versions of REL.PRU-ICSS-ETHERNET-SWITCH have been >>> released? They don't appear to be part of linux-firmware.git :-( >>> >> >> The firmwares are currently not posted to linux-firmware.git. They are >> maintained internally as of now. Different version of firmware is >> released for every SDK release (3-4 times a year) > > Clearly, mainline works differently. Ideally you do want to get the > firmware in linux-firmware.git. The kernel and firmware are then more > likely to by upgraded at the same time. However, you should not assume Definitely, we are having discussions on this and soon we'll start pushing the ICSSG firmware to linux-firmware.git. Till then, we will maintain firmware internally only. > so. Maybe in mainline you can then support the last 4 firmware > versions, and issue an error if a version older than that is found. > > However, until the firmware is easily available via linux-firmware, > you probably should be backwards compatible for a longer period. > I understand that. I had discussion with the firmware team and this is actually not breaking backwards compatibility. The commands EMAC_PORT_DISABLE and EMAC_PORT_FORWARDING are actually wrong in the driver. Firmware is using below bitmasks since the beginning and they were wrong in the driver. This patch actually fixes this. {{0xffff0004, 0xffff0100, 0xffff0004, EMAC_NONE}},/* EMAC_PORT_DISABLE */ {{0xffbb0000, 0xfcff0000, 0xdcfb0000, EMAC_NONE}},/* EMAC_PORT_FORWARD */ I tested this patch with older firmware (Version REL.PRU-ICSS-ETHERNET-SWITCH_02.02.12.04) as well as newer firmware (Version REL.PRU-ICSS-ETHERNET-SWITCH_02.02.12.05). With this patch both EMAC_PORT_DISABLE and EMAC_PORT_FORWARD commands are working with both older and newer firmwares. Apologies for wrong commit message. I will send next version with proper commit message mentioning that this patch is backwards compatible > Andrew -- Thanks and Regards, Md Danish Anwar