Return-Path: Return-Path: Received: from mga18.intel.com ([134.134.136.126]:31397 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729466AbfGaQkB (ORCPT ); Wed, 31 Jul 2019 12:40:01 -0400 From: thor.thayer@linux.intel.com Subject: [PATCHv4 0/3] fpga: altera-cvp: Add Stratix10 Support Date: Wed, 31 Jul 2019 11:41:58 -0500 Message-Id: <1564591321-19037-1-git-send-email-thor.thayer@linux.intel.com> Sender: linux-fpga-owner@vger.kernel.org List-Id: linux-fpga@vger.kernel.org To: mdf@kernel.org, richard.gong@linux.intel.com, agust@denx.de Cc: linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, Thor Thayer From: Thor Thayer Newer versions (V2) of Altera/Intel FPGAs CvP have different PCI Vendor Specific Capability offsets than the older (V1) Altera/FPGAs. Most of the CvP registers and their bitfields remain the same between both the older parts and the newer parts. This patchset implements changes to discover the Vendor Specific Capability offset and then add Stratix10 CvP support. V2 Changes: Remove inline designator from abstraction functions. Reverse Christmas Tree format for local variables Remove redundant mask from credit calculation Add commment for the delay(1) function in wait_for_credit() V3 Changes Return int instead of void for abstraction functions Check the return code from read in altera_cvp_chk_error() Move reset of current_credit_byte to clear_state(). Check return codes of read/writes in added functions. V4 Changes Rename delta_credit to space Simplify wait for credit do-while loop. Change from udelay() to usleep_range() Use min() to find length to send Remove NULL initialization from private structure Use #define for Version1 offsets Change current_credit_byte to u32 sent_packets. Changes to Kconfig title and description to support Stratix10. Thor Thayer (3): fpga: altera-cvp: Discover Vendor Specific offset fpga: altera-cvp: Preparation for V2 parts. fpga: altera-cvp: Add Stratix10 (V2) Support drivers/fpga/Kconfig | 6 +- drivers/fpga/altera-cvp.c | 339 ++++++++++++++++++++++++++++++++++++---------- 2 files changed, 271 insertions(+), 74 deletions(-) -- 2.7.4