Skip to content

fpga: altera-cvp: Add Stratix10 Support

[email protected] linux-fpga lkml 5 versions – Applied

Status from this message: Applied to for-next. If all goes well I'll send it out with next PR.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/23 patches 1 replyApplied
  2. v4 posting 1/23 patches 0 repliesSuperseded
  3. v33 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches7 repliesSuperseded
v13 patches6 repliesSuperseded

Changes in v4 from the cover letter

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.

Patches in v4 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/3fpga: altera-cvp: Discover Vendor Specific offsetdrivers/fpga/altera-cvp.c+58 -370 replies
2/3fpga: altera-cvp: Preparation for V2 parts.drivers/fpga/altera-cvp.c+43 -260 replies
3/3fpga: altera-cvp: Add Stratix10 (V2) Supportdrivers/fpga/Kconfig drivers/fpga/altera-cvp.c+176 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [RESEND PATCHv4 0/3] fpga: altera-cvp: Add Stratix10 Support

From: Thor Thayer <[email protected]>

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(-)
Signature · 1 line
2.7.4