Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3848616rwl; Mon, 10 Apr 2023 01:57:13 -0700 (PDT) X-Google-Smtp-Source: AKy350Y9AtBSM8MHCF5skj9wUqyOTGUxphuvH4491REEQeWfz6ltiSRhAxPswaU38T9F3W9oFaaq X-Received: by 2002:a17:907:3e85:b0:947:d3f0:8328 with SMTP id hs5-20020a1709073e8500b00947d3f08328mr7804390ejc.1.1681117032918; Mon, 10 Apr 2023 01:57:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681117032; cv=pass; d=google.com; s=arc-20160816; b=QSRxavLLBCPSr7zzXdagJslA3Jy3ad9nKQusntpo6ocwzf5bUE4SZh+3VyQAtJW76h Azsmu99vNG2BNwJCtC/0BODpC4v3XriYqfkescyhqfEYAaD9EUBXrk4ZSm2FuocLkDow dGRmzAmWoHg47o6d/bdRHSQNztZ5IKNIpNeGEEHdsSengaP+SxkITcpTNX885kM73qur q01hA2TbpY5OUKFqBBWa+THnF9QUU1iCG9M3NgVN5MryYX1gsRuXFLf6+CGwVzsaEC1J fZaZC8TpsB5+zCVqmw5kQ1VF1AKO30SBTZ+ZDHHe5U2fPQDnzkV+yhg+2a1D6wK6DqLR dXAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=bGGPBt0WcIv4Qsng8PIUBHnpVVwLlLgnAYGLyn4ueic=; b=DjrIX17W9BVK8vdRUNmwnDEdIXTd23BzVuN33ae36nNiz8+LCsOb4WIPPb+N+zlwfy sinC2wgtbJMlNMw0IHfW5mimrm9Lka6Y/zB1+zZcy2SmPTwFxvK0JwQVr1DDrwOYGo8N BgG8OCobhnFAoyRaafb0XMLSAZggC2Z3pJZSO0Qsh56ASEReq9bM0dcjhOHP9Y7Q2EZY PBq8LxfSSSh3yosZXWXwq2+wE7rn7oh3DuLDfnAEZ9AyZrHKBX8XVZdAUsQOdV+yqK+V WNsEx6Ev1U7MV3j1xWFEfUMnyUGm3A+mJoaJ7hj36g69l0WCJMu+RqSzDO8/L4fTUKPS yQzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b="e/w+B6Ry"; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.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; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170906088a00b00933bc889643si9122537eje.763.2023.04.10.01.56.48; Mon, 10 Apr 2023 01:57:12 -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=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b="e/w+B6Ry"; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.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; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229678AbjDJIv0 (ORCPT + 99 others); Mon, 10 Apr 2023 04:51:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbjDJIvY (ORCPT ); Mon, 10 Apr 2023 04:51:24 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1F11FD4; Mon, 10 Apr 2023 01:51:01 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 339N0QWN020708; Mon, 10 Apr 2023 01:49:44 -0700 Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2041.outbound.protection.outlook.com [104.47.51.41]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3pu5ms7aay-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Apr 2023 01:49:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IjF+l/1PoBEmamfFjMqn04W6LKEBPn4iXJwdHN1vY35ER9G2xcpYaBoFdw6McNlWzKBLP0fugmJPk7gltpLF6U0owDHAwphmDaerIQNoAm8h5+eYvkpyJPd8ko51h4bb5x3pyao4TQMzBUXnXe2HicQ+kGjNEvT3jDRfvDZ1+ls65bpBVQS+OrJ/GaYjDeSDfRdEY8DcLiQK2eeuJWDr97ciHA3D75QAWfHvXL3v8VjleMIZi+k5oHpdpRVti1KReI/Wy9DxSSxqVTtzgS0I2ryb7V9HnyEL7qN0GvK+wLaRK/BI0tOOPFXFPhgv23LbhGnY+oSqnJJhnvhPvu/OkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bGGPBt0WcIv4Qsng8PIUBHnpVVwLlLgnAYGLyn4ueic=; b=WojQQzFPWYlGumU5nADuRjXX9V68lVeJ3b/om2J8eozGhDUIifN3QpsvHM/zxBo1KntxLZl6OPmvPCSap2mxU5TgQo9xTlZZnZGjm2ebWDkUOhk+4wrPTNjW00GZiymLO1yWAumNkmL/nI0nkRvh1JYNXcPZEwesbnxmFlbSvVY9vOv29t2pUlQbGjfNeegp6gEFtWblGIHxl1zUZfEQFc1zp7wssXnyu/uNj5cKMerZ7mUXHVpLivHmlvzmgA2+bcEWrR/PbGivtrrWQWvtXoPShFVbtjUB82JwVQV1ozoGWYyWiTFA/MbJOUEHZdRQpQoftGC/R/tWtLNqaeSeBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bGGPBt0WcIv4Qsng8PIUBHnpVVwLlLgnAYGLyn4ueic=; b=e/w+B6Ry+rFcnfJWeaMdxkhjS47WR+QZ4SrYtkNBNY7H1sBAAalNg1SnLvT77faA79Awbc9VvnBSCkmP3ph3xOe/hZMkTjXdGTji2LlRE4lbUK4NM2i5VJef79zBdcVEx6OwQN4agNHieZK1nqZjtcfFzp5NT/a9M2SubJwCmMI= Received: from BY3PR18MB4707.namprd18.prod.outlook.com (2603:10b6:a03:3ca::23) by PH7PR18MB5129.namprd18.prod.outlook.com (2603:10b6:510:158::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Mon, 10 Apr 2023 08:49:41 +0000 Received: from BY3PR18MB4707.namprd18.prod.outlook.com ([fe80::e907:e8ce:db04:b353]) by BY3PR18MB4707.namprd18.prod.outlook.com ([fe80::e907:e8ce:db04:b353%4]) with mapi id 15.20.6277.031; Mon, 10 Apr 2023 08:49:41 +0000 From: Sai Krishna Gajula To: Simon Horman CC: "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Sunil Kovvuri Goutham , Geethasowjanya Akula , "richardcochran@gmail.com" , Linu Cherian , Jerin Jacob Kollanukkaran , Hariprasad Kelam , Subbaraya Sundeep Bhatta Subject: Re: [net PATCH v2 7/7] octeontx2-pf: Disable packet I/O for graceful exit Thread-Topic: [net PATCH v2 7/7] octeontx2-pf: Disable packet I/O for graceful exit Thread-Index: AQHZa4ljQlggiZqUq0KfiwOrdnujBA== Date: Mon, 10 Apr 2023 08:49:40 +0000 Message-ID: References: <20230407122344.4059-1-saikrishnag@marvell.com> <20230407122344.4059-8-saikrishnag@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcc2Fpa3Jpc2hu?= =?us-ascii?Q?YWdcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZi?= =?us-ascii?Q?ODRiYTI5ZTM1Ylxtc2dzXG1zZy1hMDFhODI1Yy1kNzdjLTExZWQtYWQxYy0x?= =?us-ascii?Q?Y2MxMGM0MGQ5ZTRcYW1lLXRlc3RcYTAxYTgyNWUtZDc3Yy0xMWVkLWFkMWMt?= =?us-ascii?Q?MWNjMTBjNDBkOWU0Ym9keS50eHQiIHN6PSIyNjcyIiB0PSIxMzMyNTU5MDE3?= =?us-ascii?Q?OTA0NjEwMTYiIGg9InhGdk9sTlA0NkFzNHIvNkJPTzZmWHU5RWpGUT0iIGlk?= =?us-ascii?Q?PSIiIGJsPSIwIiBibz0iMSIgY2k9ImNBQUFBRVJIVTFSU1JVRk5DZ1VBQUhZ?= =?us-ascii?Q?SUFB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QUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFCQUFBQUFBQUFBQUlBQUFBQUFKNEFBQUJ0QUdF?= =?us-ascii?Q?QWNnQjJBR1VBYkFCc0FGOEFkQUJsQUhJQWJRQnBBRzRBZFFCekFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBRUFBQUFBQUFBQUFnQUFBQUFBIi8+PC9tZXRhPg=3D=3D?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY3PR18MB4707:EE_|PH7PR18MB5129:EE_ x-ms-office365-filtering-correlation-id: 4bc943bb-f039-46bc-6559-08db39a08608 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4XhW9XNkmgIRMTNJ618mtGtVO1MHdVNG2ThS7/oPjzjN3jw08axTUwVZkIF7Zh2hCghpYGnPSLFLMIf+9E/rsoufjChKhrz7J8+IvjjShjzwSdHyI32bEGAZg2TpvwyX5duI11dtesTZBSpcFXz/jOqWHEvA1to7GKFLVNNYPK0Xu5bZsnVm96rY0dtI1hQ8uERAd+ZDPvFPm39hHuUYb9Vcb5aHsWU2PKftn7/BT+d7nxg6842mlwXU90AwWFJszo1+AGcQHUT6wRo2S1z83gpPs9AlMYTp/PMJIcbPodjljJxZj020qRJjp3ntH0VBSeH5TYVfU9iqA1oS+peHsacGIj2mfBRLhS2u2iUoEc6OkHbQtTSnHXOJ6Xa12QuUDjrNYGKizT6xLN6ErWCUXIHLUfsZaoMobOl4wd2xIsG4q6Eu0cGBp1i/WGuFxYRmIIQOgCCopBewnH+yKR4qGAayRv0UnURRYJe+fcmh2bcZb96dmwDPMbLuk3fRRfENCjryCxcn0Pk+YkBv1LHz5qCv3um4oT0BbIrj9pFGtqLQfObBhcLtphpfWiGIvvfcrk1kY6i/Bbr19DKkOB4RESAlCxwuBXUlllUxEpA1PfAvx51Bak5RxN/YGBmmXGeV x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY3PR18MB4707.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(396003)(366004)(39860400002)(376002)(136003)(451199021)(4326008)(66946007)(8676002)(66476007)(76116006)(38070700005)(41300700001)(66556008)(64756008)(6916009)(52536014)(66446008)(5660300002)(122000001)(54906003)(316002)(38100700002)(8936002)(478600001)(86362001)(2906002)(71200400001)(7696005)(186003)(55016003)(83380400001)(33656002)(26005)(53546011)(6506007)(9686003)(107886003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Km9ju3W6WS+qMqDK+xJUwPzmOE32fN/Wu4r2ShZBk5aduiTHmlzdbl/i61ni?= =?us-ascii?Q?uTTjghJ+12rlGI6cJ0egX6OTMHVnEn3+va2R6H1mSlpkJdYleOY1ZO7IeqIG?= =?us-ascii?Q?0PO+HYQjjdq8i9mnQknHV1Bp5hsOLiptRP//pobimGGp9x/3hsAhFmwxFmr8?= =?us-ascii?Q?/H60NhhZaQqnm0U0LaQBoYy36/yesEvGZLr38YBHE/BfiqTkLEQsWnQ8JUrP?= =?us-ascii?Q?a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eww05To4?= =?us-ascii?Q?wkGcFa1iw2lMAPOWcOHGDyBjU2F6pGrC5j4M7x7oePRKkvct6nS3QmGnvmza?= =?us-ascii?Q?6mFMcqj+axYp6+Gwq1qLXGsoxOLbpJgA0XQVD7rAqmnpVIY0+AMbmK4M7PrK?= =?us-ascii?Q?dTMY/9QGBDdKtxjoNQpULUfGiMRCMITAWV3jYWzL54CnOSvposgz7HXkx5qA?= =?us-ascii?Q?V6lqwm/LpiP89yAgr7yFuCtrtZOnbqjGwINjEXAcrUJz1CaSGUBnR74tvocx?= =?us-ascii?Q?wpmHhilDz5CLOYNR7m0VP15TAU7b5Rq1Ivu/X6RBBskD2nQdJYV/kJ0VQVpN?= =?us-ascii?Q?ORXYiXLFFGlwPmupSnpnJLWf4fX9EVqNTHFifqH8j/ivX3uRNdcqXqKSBAc1?= =?us-ascii?Q?BevZfZFgAo1q5bGEYH9/sC6JqYP9DF3Js4A35WWhE/Urpeb3Wyb5OReVtb9L?= =?us-ascii?Q?2dC22jaeRaTO165Cl1RUfC/dlPfjPM42XgMAk2jz?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY3PR18MB4707.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4bc943bb-f039-46bc-6559-08db39a08608 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Apr 2023 08:49:40.8907 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QKAZHr/hNrGaTXALPcBkCY8xmWTiB/9HZsqpwNarZqHfU5WhmPCiNyDh+LxCvsbsyjgF1MwtlA/Ai7JZ4iJIdA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR18MB5129 X-Proofpoint-ORIG-GUID: FNH1EBGvMKirr_LZd2Noj4h1md48Mgvb X-Proofpoint-GUID: FNH1EBGvMKirr_LZd2Noj4h1md48Mgvb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-10_05,2023-04-06_03,2023-02-09_01 X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Please see inline, > -----Original Message----- > From: Simon Horman > Sent: Saturday, April 8, 2023 8:00 PM > To: Sai Krishna Gajula > Cc: davem@davemloft.net; edumazet@google.com; kuba@kernel.org; > pabeni@redhat.com; netdev@vger.kernel.org; linux- > kernel@vger.kernel.org; Sunil Kovvuri Goutham ; > Geethasowjanya Akula ; richardcochran@gmail.com; > Linu Cherian ; Jerin Jacob Kollanukkaran > ; Hariprasad Kelam ; > Subbaraya Sundeep Bhatta > Subject: Re: [net PATCH v2 7/7] octeontx2-pf: Disable packet I/O for > graceful exit >=20 > On Fri, Apr 07, 2023 at 05:53:44PM +0530, Sai Krishna wrote: > > From: Subbaraya Sundeep > > > > At the stage of enabling packet I/O in otx2_open, If mailbox timeout > > occurs then interface ends up in down state where as hardware packet > > I/O is enabled. Hence disable packet I/O also before bailing out. This > > patch also free the LMTST per cpu structure on teardown, if the > > lmt_info pointer is not NULL. > > > > Fixes: 1ea0166da050 ("octeontx2-pf: Fix the device state on error") > > Signed-off-by: Subbaraya Sundeep > > Signed-off-by: Sunil Kovvuri Goutham > > Signed-off-by: Sai Krishna >=20 > ... >=20 > > @@ -709,7 +709,8 @@ static int otx2vf_probe(struct pci_dev *pdev, > > const struct pci_device_id *id) > > err_ptp_destroy: > > otx2_ptp_destroy(vf); > > err_detach_rsrc: > > - free_percpu(vf->hw.lmt_info); > > + if (vf->hw.lmt_info) > > + free_percpu(vf->hw.lmt_info); >=20 > free_percpu does nothing if it's argument is NULL. > So there is no need for the if clause added here. We will submit v3 patch as per review comments. >=20 > > if (test_bit(CN10K_LMTST, &vf->hw.cap_flag)) > > qmem_free(vf->dev, vf->dync_lmt); > > otx2_detach_resources(&vf->mbox); > > @@ -763,7 +764,8 @@ static void otx2vf_remove(struct pci_dev *pdev) > > otx2_shutdown_tc(vf); > > otx2vf_disable_mbox_intr(vf); > > otx2_detach_resources(&vf->mbox); > > - free_percpu(vf->hw.lmt_info); > > + if (vf->hw.lmt_info) > > + free_percpu(vf->hw.lmt_info); >=20 > Ditto. We will submit v3 patch as per review comments. Thanks, Sai >=20 > > if (test_bit(CN10K_LMTST, &vf->hw.cap_flag)) > > qmem_free(vf->dev, vf->dync_lmt); > > otx2vf_vfaf_mbox_destroy(vf); > > -- > > 2.25.1 > >