From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 946E443B0C; Tue, 13 Feb 2024 17:17:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1D05F40A4B; Tue, 13 Feb 2024 17:17:25 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2059.outbound.protection.outlook.com [40.107.101.59]) by mails.dpdk.org (Postfix) with ESMTP id 21A17402D8 for ; Tue, 13 Feb 2024 17:17:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BWVLt4uFvFJW7BCnLq6CnS3UN9MAZ0pKtNNR9dz19DdL8Q/Ed+zTfXUEti8I42OnnGkao1u3YKaEoo2Zxjk4JTCzibWtW/vDUBLI6jAUi6S0200vpE/Jt90In0Ub+rZ5wkp9yOY+dRsjB3C6Md/Yq5pPRwe9cXkAXvyVy3opv208CU8xEy4orCPx5/r6BlY3WR6VlEEWmSV9IvuQ+RLGBgRYoASviXke7SQgNfk70AJodakYD2px1WnRczGPNkdnf9DTcatWTwXJ4fEPKVDoFv1Wa9F1pNdcdDhKcIucf6lAlai2DjsXd7FhwA5FVEtMT49+KrNLuIaXVxwdjKlRng== 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=g2ISBWO8e7gOG1HNxQbyy8KEp152DMFCfcY/RlV9cTU=; b=cyez53qjwe5i1R5GrgbLFqg+Vwi9e64RIZKxhJlV6a9vHvLJmEkYRKKBesm5elITiHGAbMzuamjq37mhYZzzN2yyoHMYqdxOcYn8+LkEzLEVl2tWYFsFc5VekRlYQEsfypjrwuIWLSRdiGPUcGkyp97NZgrIVnDPPVPSQpXU/0GMqYaroa5ZSdH86RfdwWh7R8a/IfIJ8eLl5ggAfJwEkBq3HaUwSDMkAZT7Vg4Jf9jl0x9oz29I9dnW0OZSHXfpm36BU2knkuDmRYhTFrOKs04bOPgihBDHuHgWbjyk6zd8uhqsFihgqBb9s60ESJ8riiKC9ScKrcTgtFioEIWdBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=g2ISBWO8e7gOG1HNxQbyy8KEp152DMFCfcY/RlV9cTU=; b=YDwWpEZKNFZ7si54Z7fbwytUuxD9xQfBNsBEb4k5ON6xMIvmc1X+OGW698FcJJjVCtwZkybAfKWm5j2RvmICFDnXjF3e85HKU/ygKN7HEzc9w8pVn4z9Rp3NzFIHCm9iF6kg9TUbKfjkf5j+dfBhpL1Dvu6HSRAh2kj69BgG2UWNpZWgWS+DUuPhTMEoIemn0VZ4Cztrxt0n5LjPCUMhFOHyrmo/gmcC0LrjBjF9dR3Aonk2GEoyEGwLJCNinIV2Le1tPFznFo4lp/8c8LIRZo6eK0gepuF6PlxNHSHoXuEV9a1sSAqkuzEiej8EpdPmZlLxiKlXvPI4CHjFSCqhNQ== Received: from IA1PR12MB8311.namprd12.prod.outlook.com (2603:10b6:208:3fa::12) by CY8PR12MB7514.namprd12.prod.outlook.com (2603:10b6:930:92::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.21; Tue, 13 Feb 2024 16:17:20 +0000 Received: from IA1PR12MB8311.namprd12.prod.outlook.com ([fe80::b013:88f8:c1df:9ce1]) by IA1PR12MB8311.namprd12.prod.outlook.com ([fe80::b013:88f8:c1df:9ce1%7]) with mapi id 15.20.7292.022; Tue, 13 Feb 2024 16:17:20 +0000 From: Dariusz Sosnowski To: Wathsala Vithanage , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Slava Ovsiienko , Ori Kam , Suanming Mou , Matan Azrad CC: "dev@dpdk.org" , "nd@arm.com" , Honnappa Nagarahalli Subject: RE: [PATCH] net/mlx5: enable PCI related counters Thread-Topic: [PATCH] net/mlx5: enable PCI related counters Thread-Index: AQHaW5hwFmfBSDEVBE2sHS1aOTL5BrEIeAew Date: Tue, 13 Feb 2024 16:17:20 +0000 Message-ID: References: <20240209204142.1148790-1-wathsala.vithanage@arm.com> In-Reply-To: <20240209204142.1148790-1-wathsala.vithanage@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: IA1PR12MB8311:EE_|CY8PR12MB7514:EE_ x-ms-office365-filtering-correlation-id: 690623ab-496c-48e2-1048-08dc2caf4150 x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: byhJwrhtSi/WEVTrSYcsEnMYEL0U+ieUkXiCp64k6ze87sWTSpLdhVJFH6IyvrqGJgmXvW7PUHOgzw26zaFiKGYqE7bWIvUW89rNs2bgKpVgIJ83oHvdDW2sJ0SQC1xt1sAI8pM0y+vNDrKslC3fkwcdlZ5fOUvGiwx0OtKva4uQYEtb9yTJ+6jEUObxbqsRoiVLtx2MkX8MA4az9Ppo2N7rFhEkVUey7KZft8BvBOMjMjKOpLlC7fhyYDHJ7kpNVxvMibqb9pSWAz12ZQl4TL7bunAAUfxye1o54q4ItolFqVaMxKtGVdJ7qhSruOJuafn8oAJZ3EiBXyzlxZMl3mFbmC9+/7YSNEApxu4qlb+WUYhTHFEq/aH80Yj8JgtAB/rlF2zGPJjGa0m/5h0JrHyt2D3sGXd85JIe+hyBROVSUU75LI4XQuTBzWnobklcR9UbnB5vAhXaHEV9IiTstU6LukPxL+PH8sUSzVYP9WSBEcg7Bhf5v91L4JTOo8MIMXwcoikq78iNk9nNFHq6ixPJBpEClIFnmgxZTQCp4PjN05lWQBPbmpECNndaTAhgrIUWf6mBIi5fZoyuWYvodcxiAbyHfYttQJMYBNrZdPFliDrbpgRkWtSu0lSh+Y16 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:IA1PR12MB8311.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(366004)(396003)(136003)(376002)(346002)(230273577357003)(230922051799003)(186009)(451199024)(1800799012)(64100799003)(9686003)(55016003)(478600001)(41300700001)(8936002)(8676002)(2906002)(4326008)(52536014)(5660300002)(110136005)(55236004)(66946007)(6506007)(7696005)(64756008)(6636002)(53546011)(316002)(54906003)(76116006)(71200400001)(66446008)(66476007)(66556008)(38070700009)(86362001)(83380400001)(26005)(38100700002)(122000001)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nk6eZA/JkDxEW7eVMX7MiYoRG0kNfFtQ3ydUBXU0CnDRFN+X1JXLQmHBhrDI?= =?us-ascii?Q?PmaifJkREUMTdoJLwQRVJYrVQ4GFKN+drDxt3/u1gDS/2D/q7TqZyhF54Ute?= =?us-ascii?Q?/M5uO3huZf9nNJJnW+FispgLUHn0MQ7+EU3jXP0t/mfGvrLx7nudmGUcBRSz?= =?us-ascii?Q?uGlB5g0nrVwAwmzMl+YMxFVjrznTPDfDF8gXZZx/eD3GOXJdb7JcrZmMeoGt?= =?us-ascii?Q?qn2qIAES92Qw1VEVKP8ow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-ascii?Q?rHJPgord/xLzoKLncpbPoz2V1MCjBXP7HA1RFVYvYP2lncvQS7GSOo/7tgX6?= =?us-ascii?Q?EIATgCmUEZ5NwR5A2Sb/atACYUDB0axXBX1kwPepfVIvYIIDPB165zLLxXWm?= =?us-ascii?Q?V1nlwqLSDa422N0sxekJ9XHa8099j003OinoNPNPIwBhBIsYB7PjCDJPzrEE?= =?us-ascii?Q?+l59ndsCZvCadZvD2xfsgBlU9dc9g0okGq97doVlpCuA+ZPWt6mCw7WGmCUx?= =?us-ascii?Q?tpx2kPK7E1F9DLfqiQbrS4k5b3rUMv7cw0w6NX9SQWrvj+nmEWs/pX7Lfk2+?= =?us-ascii?Q?bipI9nNsZfyakXm/wCOy1FqgEfNA8TAPzkI15QqZMtAqhQVXXcHdRV+V08Z3?= =?us-ascii?Q?BlkNp+CxZpi5A7ZPfZcgmA5WADGu3GE5ayAnlOElvKaRu6L5g98+0UysaO/G?= =?us-ascii?Q?cFBK4Eh/l2gWs4eoJLfC7eu3i28Q8iUjq7MGqCI3?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB8311.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 690623ab-496c-48e2-1048-08dc2caf4150 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2024 16:17:20.5993 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tRyk4HSDm1vVqohWNXrzE3gLHS+SiMQuVzOSzDxHaL5df57jrDUdv8TrQmptShSI4rVYy/KRZ6J8Bh/8Z+5TTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7514 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Wathsala Vithanage > Sent: Friday, February 9, 2024 21:42 > To: NBU-Contact-Thomas Monjalon (EXTERNAL) ; > Dariusz Sosnowski ; Slava Ovsiienko > ; Ori Kam ; Suanming Mou > ; Matan Azrad > Cc: dev@dpdk.org; nd@arm.com; Wathsala Vithanage > ; Honnappa Nagarahalli > > Subject: [PATCH] net/mlx5: enable PCI related counters >=20 > Versions of Mellanox NICs starting from CX5 have device counters related = to > PCI. These counters are helpful in debugging IO bottlenecks. For instance= , the > outbound_pci_stalled_rd and outbound_pci_stalled_wr counters can help > with identifying NIC stalls due to insufficient PCI credits, which otherw= ise > would have required a PCI analyzer or a sophisticated PCI root port with = a > PMU. > Currently none of these are available in the MLX5 PMD even though ethtool= is > capable of reading some of them. > Since PMD uses the same ioctl used by ethtool (SIOCETHTOOL) and reads via > the kernel driver it is possible to add support with ease. > There is one more PCI related counter and a device counter that aren't > implemented in the Linux driver at the moment. These two are named > outbound_pci_buffer_overflow and dev_out_of_buffer respectively. As per > Nvidia's documentation these two counters can tell the number of packets > dropped due to pci buffer overflow and the number of times the device > owned queue had not enough buffers allocated. >=20 > Signed-off-by: Wathsala Vithanage > Reviewed-by: Honnappa Nagarahalli Acked-by: Dariusz Sosnowski Best regards, Dariusz Sosnowski