Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932314AbcLLVJM (ORCPT ); Mon, 12 Dec 2016 16:09:12 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35415 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752532AbcLLVJL (ORCPT ); Mon, 12 Dec 2016 16:09:11 -0500 From: Serge Semin To: jdmason@kudzu.us, dave.jiang@intel.com, Allen.Hubbe@emc.com, Xiangliang.Yu@amd.com Cc: Sergey.Semin@t-platforms.ru, linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org, Serge Semin Subject: [PATCH v2 0/9] NTB: Alter kernel API to support multi-port devices Date: Tue, 13 Dec 2016 00:08:13 +0300 Message-Id: <1481576902-21091-1-git-send-email-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.6.6 In-Reply-To: <1480439777-1080-1-git-send-email-fancer.lancer@gmail.com> References: <1480439777-1080-1-git-send-email-fancer.lancer@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1950 Lines: 45 There are devices, like IDT PCIe-switches, which have more than just two ports. Particularly one device can have up to eight ports with NTB-function activated. In order to support such devices, NTB kernel API should be altered since currently it's optimized to work with two-ports devices only. Changelog v2: - Move comments from cover letter to individual patches - Combine patches to make code buildable - Alter patchset to support Intel SKX driver - Make sure all the API uses the same midx/widx/pidx/sidx arguments notation - Move new MW API usage description into Documention - Alter Spad/Msg API checking valid function to make spad and msg interfaces optional - Alter comments in ntb.h - Split: add NTB_SPEED_GEN4 and ntb.h comments into separate patches - Put copyrights into some of the existing patches - Get rid of TOPO updates Signed-off-by: Serge Semin Serge Semin (9): NTB: Make link-state API being declared first NTB: Add indexed ports NTB API NTB: Alter link-state API to support multi-port devices NTB: Alter MW API to support multi-ports devices NTB: Alter Scratchpads API to support multi-ports devices NTB: Add Messaging NTB API NTB: Add new Memory Windows API documentation NTB: Add PCIe Gen4 link speed NTB: Add ntb.h comments Documentation/ntb.txt | 99 +++++- drivers/ntb/hw/amd/ntb_hw_amd.c | 291 ++++++++++------ drivers/ntb/hw/amd/ntb_hw_amd.h | 11 + drivers/ntb/hw/intel/ntb_hw_intel.c | 296 +++++++++++------ drivers/ntb/hw/intel/ntb_hw_intel.h | 11 + drivers/ntb/ntb.c | 15 + drivers/ntb/ntb_transport.c | 44 ++- drivers/ntb/test/ntb_perf.c | 27 +- drivers/ntb/test/ntb_pingpong.c | 14 +- drivers/ntb/test/ntb_tool.c | 93 ++++-- include/linux/ntb.h | 639 ++++++++++++++++++++++++++++++------ 11 files changed, 1173 insertions(+), 367 deletions(-) -- 2.6.6