Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6268826ybx; Mon, 11 Nov 2019 06:37:19 -0800 (PST) X-Google-Smtp-Source: APXvYqx4Mphum8w/yDNu3dy9QbYyEtRmHf6thBTIxha7lLZ4g4KPY4tGIs2HxiLVL2daHxJK2ui4 X-Received: by 2002:a17:906:ecad:: with SMTP id qh13mr23533475ejb.25.1573483038891; Mon, 11 Nov 2019 06:37:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573483038; cv=none; d=google.com; s=arc-20160816; b=GCDxLTaa54htn8DqoqT5+pAAUJoxIxorPVPQ4ZfZfbgK49hw87uf7hQU1H322qKqjx f6NL2OO7iG1R5TrNaLP6X8FQjGg9kXx+arPhd0CxlV9LZJY/t4xI42jaSF2S5WftPJqm AFnJU20UZTt/GrlsRQ9COHSanyJQkJH9yVrM71FkItxCJF5Xjlac0gTZC6c/l4Iyi5th dNWrX2GJWAa1JpvT9E8jv8agmDgUStlO21R0vLxMIT6B4/xSD1+pukWxL7/E0xtfnQYy Fmcf7Eg+uqk9tWeOAdDjKPcwMbVRocyOFuIKF+dAugZGipS6ImUMOvf8cwry48EVQvI/ LlZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=MBoLf3oUmME4qCtpITaH/s9+I/20j/mohdzbLQuEi7k=; b=NMpneQiIpIx0WVf/w5g+ljSVsIi3q018tDnN45tjAqL1ys1y979MVpEwJXwe1oJ4wg 0rXm0GA5eHcoLGBENdSTDanym7PwowGfA5cG2EniWj5G+Kk1UKDI0uAL2cW4nvtF8S6g XIbgT7mg8Mrm0YMNNmr5JbrPpNeakiIvSvcnTS3YVpwLkX5yr13+LuPfrL7MLbVkQdBG 9h53wPicEXK0xtsau5dFNLoRkF7NJrESz0uwiJPMt2n+641K29tLFH87ebD6ikkmF3v+ JsoSnEYlqBmbKkA+B1+0A0ZCtTKHDEuotH7UAoDhC5NtHYclqEIngdbSp2MWk/ASSPJR 4JRw== ARC-Authentication-Results: i=1; mx.google.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=fail (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 y38si11721039edb.87.2019.11.11.06.36.54; Mon, 11 Nov 2019 06:37:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726988AbfKKOf0 (ORCPT + 99 others); Mon, 11 Nov 2019 09:35:26 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:48811 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726889AbfKKOfY (ORCPT ); Mon, 11 Nov 2019 09:35:24 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from sramani@mellanox.com) with ESMTPS (AES256-SHA encrypted); 11 Nov 2019 16:35:17 +0200 Received: from farm-0002.mtbu.labs.mlnx (farm-0002.mtbu.labs.mlnx [10.15.2.32]) by mtbu-labmailer.labs.mlnx (8.14.4/8.14.4) with ESMTP id xABEZFh7019158; Mon, 11 Nov 2019 09:35:15 -0500 Received: (from sramani@localhost) by farm-0002.mtbu.labs.mlnx (8.14.7/8.13.8/Submit) id xABEZAKl019808; Mon, 11 Nov 2019 09:35:10 -0500 From: Shravan Kumar Ramani To: Andy Shevchenko , Darren Hart , Vadim Pasternak Cc: lsun@mellanox.com, Shravan Kumar Ramani , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] platform/mellanox: Add Mellanox TRIO driver Date: Mon, 11 Nov 2019 09:34:38 -0500 Message-Id: X-Mailer: git-send-email 2.1.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds support for Mellanox BlueField TRIO PCIe host controller. The driver supports multiple TRIO instances and provides a sysfs interface to allow the user to read/set the L3 cache profile for transactions going through the TRIO. It also provides an interrupt handler for the TRIO blocks. Shravan Kumar Ramani (1): platform/mellanox: Add Mellanox TRIO driver 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 -- 2.1.2