Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3336047rwa; Tue, 23 Aug 2022 03:05:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR77ZqszK5sBFX8ziPpImafdPxkZKBx6zK7kAad5RYxUXSGu5DzhKEaXpEi8Quq77xFSo4IZ X-Received: by 2002:a05:6402:44c:b0:445:f2f1:4add with SMTP id p12-20020a056402044c00b00445f2f14addmr3040207edw.257.1661249132921; Tue, 23 Aug 2022 03:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661249132; cv=none; d=google.com; s=arc-20160816; b=Mu2vwl8jd5cWRPLIF1aSrUuzHxkvwQJt04QJwgJ58CRf7gfVMfzT+nO6I9u+Aksg95 PNo07or9i4AeYjFBLQvU+hm3x1rtx/DB5Y0/403jXnlelDJkDRc/QdsfHPizkzAFcQSO 2gLYQ7iECHXKQrelConNZlUN++J4YGntliZ+tOyerqsMP0MR+5Es3ut72VNZnhq+I6Ev i13CSTWv13cFBHgKSKM0E/iwkqBYacw/vRwE5CNblrqCyhUpTiArUUweaYtBVtcbhh/f /R5MS1X9qlW4ahWKUTVGXwKHqyafU04Kk9JrEcbMQhmnLE2ON2S0NcM9eBRU5m+bLQZw EL4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QxvSVGaVouuIWR6zJFGEdbQFEVLwgWQ8XnGinEvD3oE=; b=o/hz6KxsxxWwfucRhOYqHDD16eMgCTqB4DWTzduOSRrNbhdFXwsM7t3iWakXJXUcVj dlmm7ntKxgqHSsgyU93q44qLMO9tcW04d1U2dTdO/0a4/vecHW2uIOYOB1s7DGYpxaBZ dNrExijFAoP1oR4s9eLEfF9EB5mLGrGrWxRvQ7Q33CuyodeZ5YaeI0+6TzlfINsxVaWV ECbqL5RqTyeX6Jd96742YXIkjgRYoUAUkwMU1QtmaFjTmbDZHhiBkdM6/0uQ9OpiPy2H wLBPiHNMEgEnk1yhGWMWY7hnF0R8/CbdZBOKbFTEQtFw9R0msmMhlHIFsYUaT+4GTqb/ QiVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JU1AgNEt; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq4-20020a1709073f0400b00726b8d2fbc6si12519464ejc.504.2022.08.23.03.05.06; Tue, 23 Aug 2022 03:05:32 -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=@linuxfoundation.org header.s=korg header.b=JU1AgNEt; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242953AbiHWJ5c (ORCPT + 99 others); Tue, 23 Aug 2022 05:57:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243052AbiHWJwY (ORCPT ); Tue, 23 Aug 2022 05:52:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C34C49F751; Tue, 23 Aug 2022 01:46:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8544FB81C65; Tue, 23 Aug 2022 08:45:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED888C433C1; Tue, 23 Aug 2022 08:45:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244311; bh=cx2ysTK87stMeHPikefVBj+1WkzeP9H1M67m6Mj+Bvg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JU1AgNEtkmpLXWAxeVBa7shcEYET+OysNQ76CZPBM9mZkemWPti5q0pCUvlQyYaI1 BX3jMdChVhBZncM9gB5U9zjuRNU4aCNSnDI+n22bbpHFJcPkNH76aQJdmzxm6X5SN8 wUZIFbQrvOKiLsSFTw72ezWro/CeLQ5PFpk9xTz0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stanislaw Kardach , Subbaraya Sundeep , Sunil Goutham , Jakub Kicinski Subject: [PATCH 5.15 071/244] octeontx2-af: Apply tx nibble fixup always Date: Tue, 23 Aug 2022 10:23:50 +0200 Message-Id: <20220823080101.437283560@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080059.091088642@linuxfoundation.org> References: <20220823080059.091088642@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Stanislaw Kardach commit dd1d1a8a6b29b6b472fd0d449b29eb806c411dd2 upstream. NPC_PARSE_NIBBLE for TX interface has to be equal to the RX one for some silicon revisions. Mistakenly this fixup was only applied to the default MKEX profile while it should also be applied to any loaded profile. Fixes: 1c1935c9945d ("octeontx2-af: Add NIX1 interfaces to NPC") Signed-off-by: Stanislaw Kardach Signed-off-by: Subbaraya Sundeep Signed-off-by: Sunil Goutham Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c @@ -1915,6 +1915,7 @@ static void rvu_npc_hw_init(struct rvu * static void rvu_npc_setup_interfaces(struct rvu *rvu, int blkaddr) { + struct npc_mcam_kex *mkex = rvu->kpu.mkex; struct npc_mcam *mcam = &rvu->hw->mcam; struct rvu_hwinfo *hw = rvu->hw; u64 nibble_ena, rx_kex, tx_kex; @@ -1927,15 +1928,15 @@ static void rvu_npc_setup_interfaces(str mcam->counters.max--; mcam->rx_miss_act_cntr = mcam->counters.max; - rx_kex = npc_mkex_default.keyx_cfg[NIX_INTF_RX]; - tx_kex = npc_mkex_default.keyx_cfg[NIX_INTF_TX]; + rx_kex = mkex->keyx_cfg[NIX_INTF_RX]; + tx_kex = mkex->keyx_cfg[NIX_INTF_TX]; nibble_ena = FIELD_GET(NPC_PARSE_NIBBLE, rx_kex); nibble_ena = rvu_npc_get_tx_nibble_cfg(rvu, nibble_ena); if (nibble_ena) { tx_kex &= ~NPC_PARSE_NIBBLE; tx_kex |= FIELD_PREP(NPC_PARSE_NIBBLE, nibble_ena); - npc_mkex_default.keyx_cfg[NIX_INTF_TX] = tx_kex; + mkex->keyx_cfg[NIX_INTF_TX] = tx_kex; } /* Configure RX interfaces */