Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3891230rdg; Wed, 18 Oct 2023 08:50:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7tD60M783zDVjd4GkrMBsvDXXgnp7zYJCJZvt8P0ILZ0+qt4+B9Y5hxtOkVItyEw6uddq X-Received: by 2002:a05:6a21:6d93:b0:17a:e941:b0a3 with SMTP id wl19-20020a056a216d9300b0017ae941b0a3mr5467730pzb.39.1697644231993; Wed, 18 Oct 2023 08:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697644231; cv=none; d=google.com; s=arc-20160816; b=sqbTfCAGp9+WqcrmzksdyH1i6NiRP9NK45bbkVzPhq5uo8y0niggpxaB2GN4xKtsCw I4X8oPUtf/q0lnLOYMlPQCBJ57YcqaCLl3DxUaZVPnYdZMZpLsgT/kcT48/Ulj8XwMW6 9oJXV3TVcC9kmPng+syMNMwB8hCY0IuWw1tNo+7pEMjOdqK9e6ESTQ/QbjS1BRXnag3b O5Cw2WYTD28OI91v3ugfAWf7FBaGOxTuxk180aQAAbGacjF6MxCcihSJjgacmP1BiSqJ KfRXqJEvFtXEOmCTQ8BIb3fuzT4Jxo3Zj1VauCcOJADF+a452lgeIC9bfzW0qggqmXfG IfRw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CVoYMsn2ANqZvttwtB6pvnQR6OJFWEUdl/xYmJUllBQ=; fh=ngpEJIbTVnWSPnn9TrCclRHh1MCJijFiIuxqirNW0Dw=; b=BRlnhUqiSHDuiNqc313EvRuPFfh9J+eysGmyTqAeaM9KlDnUdZ1pt8Dt0XT6zbkEbX GmRuRWlXiJP4I2faYv1Rp8sIvSe6V0hIndwHMOjBTnC2BrwfdNwSsyhqDdM651lh9g6z Ar3RMjV9okTBPj0IdSylP4AyirYSkTux1ust4QSAT6in71v4lHEzRjk3eiEpca+l58ix kS0DlTWXp4Ly2XLATQ9WPNgIVUlLQzvBX7ogP6citFVRk6bM/iOk0TT4THxrfNz1SPft EPRVVK4vTI5KJueelfrURs62CPJIqms7O4jz3Xz7LiKkscP4UgFYNFTjKubgShH6UUpn xk0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Z4GeSI9u; 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 ch4-20020a056a0208c400b005ab00d84e1esi968838pgb.765.2023.10.18.08.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 08:50:31 -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=Z4GeSI9u; 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 6A27080A9E15; Wed, 18 Oct 2023 08:50:27 -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 S232129AbjJRPuT (ORCPT + 99 others); Wed, 18 Oct 2023 11:50:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231764AbjJRPuR (ORCPT ); Wed, 18 Oct 2023 11:50:17 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 016349F; Wed, 18 Oct 2023 08:50:15 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 39IFo7US091100; Wed, 18 Oct 2023 10:50:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1697644207; bh=CVoYMsn2ANqZvttwtB6pvnQR6OJFWEUdl/xYmJUllBQ=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=Z4GeSI9u4zRxqSbSe2W83Kyo7P5DdG9zRhWmmc1VgLaaXh5sMABrqDJhJHnHdy0c4 dOQKjAuH7mxhU8T1N+jisihTqT6i1hSTHmkUtYb716FHCmAbTN6H/8C02BecRi2Vv/ adnAsChYYkuryr5wjRFibNIMvKxOyvyWrtx0ADbM= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 39IFo7tY008390 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Oct 2023 10:50:07 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE110.ent.ti.com (157.170.170.21) 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 10:50:07 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE108.ent.ti.com (157.170.170.38) 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 10:50:07 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 39IFo76m002997; Wed, 18 Oct 2023 10:50:07 -0500 Date: Wed, 18 Oct 2023 10:50:07 -0500 From: Nishanth Menon To: Neha Malcom Francis CC: , , , , , "Gunasekaran, Ravi" , "Quadros, Roger" , netdev Subject: Re: [PATCH v3 3/3] soc: ti: k3-socinfo: Revamp driver to accommodate different rev structs Message-ID: <20231018155007.rpoqiptrkqatyja5@satchel> References: <20231016101608.993921-1-n-francis@ti.com> <20231016101608.993921-4-n-francis@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231016101608.993921-4-n-francis@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 08:50:27 -0700 (PDT) On 15:46-20231016, Neha Malcom Francis wrote: > k3-socinfo.c driver assumes silicon revisions for every platform are > incremental and one-to-one, corresponding to JTAG_ID's variant field: > 1.0, 2.0 etc. This assumption is wrong for SoCs such as J721E, where the > variant field to revision mapping is 1.0, 1.1. Further, there are SoCs > such as AM65x where the sub-variant version requires custom decoding of > other registers. > > Address this by using conditional handling per JTAG ID that requires an > exception with J721E as the first example. To facilitate this > conversion, use macros to identify the JTAG_ID part number and map them > to predefined string array. > > Signed-off-by: Neha Malcom Francis > Co-developed-by: Thejasvi Konduru > Signed-off-by: Thejasvi Konduru > --- > Changes since v2: > - update commit message > - move from double Signed-off-by to Co-developed-by > - make j721e_rev_string_map[] a const char > - drop k3_rev_string_map[] and continue using old > "variant++" logic for the typical cases > - appropriate error handling with no overrides distinguishing > between ENODEV and ENOMEM > Thanks to linux-next testing, looks like this created regression in networking. https://lore.kernel.org/all/20231018140009.1725-1-r-gunasekaran@ti.com/ I will drop this patch for now from my queue. I suggest the following for the eventual resolution: a) Do all the prep work in a series of atomic bisectable patches prior to introducing j721e SR change b) Please sync with Ravi and netdev maintainers as to how to introduce the changes c) also introduce changes (if required) to other SoCs as required. -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D