Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp617762ybc; Tue, 12 Nov 2019 06:45:56 -0800 (PST) X-Google-Smtp-Source: APXvYqwb006amzeI/apCm3dJ6vYPzFMlAhMS74qThjkAuh39UjVlijcS6QHXWM6zU4vzDHq+Xzd8 X-Received: by 2002:a50:b4e4:: with SMTP id x33mr33312915edd.222.1573569955980; Tue, 12 Nov 2019 06:45:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573569955; cv=pass; d=google.com; s=arc-20160816; b=vpzN4F01yTRM4CD203Mp1IE25OjOUImDIR1FVvzmINSupkkDrGpgqtcNUMF8pgd4QX V22sobovGiOU3khtc7LTLJKYD2g4C7UwUxAHqzzsc61Hpb02Jbw5/ZwJ7WG7QM6QZnFq JzwzSr0TIFAQBu0FvcayJFS8Vo0/V6w4XKIAdC9ePzXciHqnewLlA1sAR1PA9ET+p/7K n0fh2/5DzFJklpgiOqY3USiWKPiDWfVuKTrQ39hgURyg3yQRPjYzun8THdQsh341NhwI /4aQJOpjMWqwa/7MZci2oxYHtl0yqCBfxRINvhFnGvMkWo15ndnl0N0ZyudMXwLveuDh cF5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender: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=qJBCRhGgD2SeQzGj6Xc8Qs8GSBb0ySVBmMtwAF7LFRA=; b=rjoBISSgIbiqWOmKzXyOSBsnQS7Okql7oBc6uo2ZF3tEd9ZHCbSWmJTnqh5tS88GYc v9vGqHQncTRRg40HqivjegzOrQwECnfRo6hMADjD5OvzPGVe6wJJPGcOgajxxW41sv0h 0E0PMQFyZEgrrJ/CRrO7ZQ2FdBB5O5T5ImaCJXKmCXS9DLE0tM3t+hU+FHR7cZR4AbAx +dMTy9e1aGAuPDdNCvi7409ILh4vNmJOOI8NyZRuFLim4GCAzYQlo3rZmX+EOfYA6+hY lB/Jjwy+z1fABix7n7O3dAfaomEjgKLxLteZYVK8kqg26HQarxSmhqaM87c4OR9H8a29 c5Eg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=Kaa+jI1r; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si58001eji.130.2019.11.12.06.45.29; Tue, 12 Nov 2019 06:45:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=Kaa+jI1r; arc=pass (i=1 spf=pass spfdomain=mellanox.com dkim=pass dkdomain=mellanox.com dmarc=pass fromdomain=mellanox.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726953AbfKLOoh (ORCPT + 99 others); Tue, 12 Nov 2019 09:44:37 -0500 Received: from mail-eopbgr20044.outbound.protection.outlook.com ([40.107.2.44]:23809 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725997AbfKLOoh (ORCPT ); Tue, 12 Nov 2019 09:44:37 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T0PPZVOSMGyZwrz/7CVGjtFQeVPfyLcSqB/85XfVNz/QFz31yTwoGFcnfHDYhOdons26MEkUsenE5UxUxVB79da9gTwbZ2WGlPUKfUuEmws9olOqIXujo/6BYxUsU4KlBB2fgaQyV/IfCIZ00qwRpxkx+SBgcPBiYUT044Vzm6VPlMUl0XKK5UkgeWvf9kB9Sr3gwL1PFWKlZUP2mV+0zqwAHBpmI9XqKwoIZE7eE9+vr6+jXI5DeRnSsZ99RO67kms1GshZal8pzNjyIzuQqh/GqxGkmvrYN1DMZTBTCLCKZm4q+kn2pYaFcwYwtKEEiDSdxeUVRQA8Thev40y3ng== 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-SenderADCheck; bh=qJBCRhGgD2SeQzGj6Xc8Qs8GSBb0ySVBmMtwAF7LFRA=; b=W137Kmd2Sww/c9s1AYk7Uh1h+GFLvHLXC+avibJXQMIEzyBzaK3TK9b4pvhuDZKMo5sesep9uuw91DeQq3oxvYhA2g/e5tDxQK6n/g/97A3y6HqxVPug5uba1vNtAKYNd2g8VkNYnjmQsEqHjifh6CDKshTh+kkraNXDymPClD3XxrGtcwCysfrHE1o0XrsdikX6zxbizFq/r0UWRuXvgTyerAZmjJKy+HSClgIpVqWJOunsFsNsRjmJje/o2UKcVc+Yq7tOl0BioATrkRIHHoq/MkzI1nUPBWoCLj/oSI+GUEfJdEp7vkcv/v8bmAfvGgm4bJFpZJ/F6u+jqbZhXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qJBCRhGgD2SeQzGj6Xc8Qs8GSBb0ySVBmMtwAF7LFRA=; b=Kaa+jI1rDLhwGTGuH9/5Zpw1DKiup/eguTpsluZ32WHL+qAdz6byMiXCT5LXqjICAkD0h/M1kUx3x1GIDgVwGP5JxgC9OSsuthoKv5QKx4Pymk5D4TAWK5F8+olUcuOGvDjBCNGwW7TH6FLRwVVCoj6sYBr1s0HujBeg/reM/0c= Received: from AM6PR05MB5224.eurprd05.prod.outlook.com (20.177.196.210) by AM6PR05MB4231.eurprd05.prod.outlook.com (52.135.161.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.24; Tue, 12 Nov 2019 14:44:32 +0000 Received: from AM6PR05MB5224.eurprd05.prod.outlook.com ([fe80::59a9:b6c3:97d8:ff0f]) by AM6PR05MB5224.eurprd05.prod.outlook.com ([fe80::59a9:b6c3:97d8:ff0f%3]) with mapi id 15.20.2451.023; Tue, 12 Nov 2019 14:44:32 +0000 From: Vadim Pasternak To: Shravan Ramani , Andy Shevchenko , Darren Hart CC: Liming Sun , Shravan Ramani , "platform-driver-x86@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v1] platform/mellanox: Add Mellanox TRIO driver Thread-Topic: [PATCH v1] platform/mellanox: Add Mellanox TRIO driver Thread-Index: AQHVmJ1B8i6N8wQYJ0iG7pe+aDUVfKeHm2Xw Date: Tue, 12 Nov 2019 14:44:32 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=vadimp@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 7d3bf689-86b2-4daa-b4e9-08d7677ed4ba x-ms-traffictypediagnostic: AM6PR05MB4231:|AM6PR05MB4231: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 021975AE46 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(346002)(136003)(366004)(39860400002)(376002)(189003)(199004)(13464003)(6116002)(476003)(6436002)(11346002)(66476007)(66556008)(66946007)(64756008)(66446008)(71190400001)(446003)(229853002)(71200400001)(55016002)(256004)(478600001)(3846002)(4326008)(52536014)(76116006)(9686003)(86362001)(8936002)(186003)(74316002)(81166006)(76176011)(7736002)(486006)(14454004)(81156014)(5660300002)(33656002)(2906002)(8676002)(54906003)(99286004)(102836004)(53546011)(6506007)(316002)(110136005)(6246003)(66066001)(26005)(305945005)(25786009)(7696005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR05MB4231;H:AM6PR05MB5224.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TOq/zN6wrK018YCYGq9OjuxUT06xk/f1ilYFzYrbjcbtDzIAQe+gs75TVzNWU0vuqaY7DenCSDFTVHDjs0Z2AFjOKQpWpW3EGBLIdiHJu3yZ01Na3Y93e4wAE0dqTUXlBO8S506Cob9um9sM8Bf34RljmfNczJTTbsgW+GIUkns48UFeG+tnpT6O00cBMLIW+6df8tdf1o2kh9XeljkdRFVaSS8CeqRlsJmz/40b/iISdHktKfS+yWjhcVyd5OC5nOM8GYMsxWCKf92iTFXnGIrs8adoKK9GPhcKym18fxRrlp6E3/3nw6dwbiA5kqGI1BClSEcbhLncIRaF2oteYsCfB1sgF1uesvaCZnvLnaYt8cneqPkoqlvkfcnpgb2yUksYe13yn8dK1JfKBPiHP8KjruyGpIQBjUm5Qh0ZJK9r6axRfwt3szQrcNgRNZgt Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d3bf689-86b2-4daa-b4e9-08d7677ed4ba X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Nov 2019 14:44:32.7071 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: CWyL6WuJOB0Alu72Hzxz3BTktiKdsgxjts3CsMqaM1N/a45J5RIUC4/J1QEUnor2sSt5Qa92qnskN68wzBztSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4231 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Shravan Kumar Ramani > Sent: Monday, November 11, 2019 4:35 PM > To: Andy Shevchenko ; Darren Hart > ; Vadim Pasternak > Cc: Liming Sun ; Shravan Ramani > ; platform-driver-x86@vger.kernel.org; linux- > kernel@vger.kernel.org > Subject: [PATCH v1] platform/mellanox: Add Mellanox TRIO driver >=20 > This patch adds support for Mellanox BlueField TRIO PCIe host controller. > The driver supports multiple TRIO instances and provides a sysfs interfac= e to > allow the user to read/set the L3 cache profile for transactions going th= rough > the TRIO. It also provides an interrupt handler for the TRIO blocks. Hi Shravan, Could you, please, explain what TRIO PCIe host controller? What is TRIO, is it some internal name or it's some standard terminology? If it's internal, please, explain for what it stands for. Same for TRIO instances. Are there some host side PCI instances? What are the purpose of them? Could you, please, also explain the system configuration? >=20 > Shravan Kumar Ramani (1): > platform/mellanox: Add Mellanox TRIO driver >=20 > MAINTAINERS | 5 + > drivers/platform/mellanox/Kconfig | 8 + > drivers/platform/mellanox/Makefile | 1 + > drivers/platform/mellanox/mlxbf-trio.c | 624 > +++++++++++++++++++++++++++++++++ > 4 files changed, 638 insertions(+) > create mode 100644 drivers/platform/mellanox/mlxbf-trio.c >=20 > -- > 2.1.2