Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plat-versal: add support for the Versal Net variant #6738

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Commits on Mar 5, 2024

  1. plat-versal: add support for Versal Net variant

    Versal Net is a new SoC flavor based on the Versal architecture. This
    commit introduces it in versal platform code.
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    9f1cd1b View commit details
    Browse the repository at this point in the history
  2. drivers: versal: rework mbox driver

    Make it more generic and still provide a default IPI channel to the PMC
    for the other drivers.
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    0b8feb3 View commit details
    Browse the repository at this point in the history
  3. drivers: versal: use PLM for generic RNG operations

    PLM HWRNG driver cannot provide more than 32 bytes of entropy at a time.
    Split bigger requests into 32 bytes chunks.
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    e0f5515 View commit details
    Browse the repository at this point in the history
  4. drivers: versal: PKI engine driver for Versal Net

    The Versal Net variant comes with a dedicated PKI engine. This driver
    makes use of the engine for ECDSA P-256, P-384, and P-521 sign, verify
    and key generation operations.
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    5f23b2b View commit details
    Browse the repository at this point in the history
  5. drivers: versal: use HKDF to derive the HUK

    The original HUK driver generated the HUK using SHA-256. This commit
    replaces this mechanism with the more robust HKDF-SHA256.
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    5e0d4a9 View commit details
    Browse the repository at this point in the history
  6. core: pta: add Versal FPGA PTA

    Add simple PTA allowing to dynamically load data in the Versal PL.
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    caf9ea9 View commit details
    Browse the repository at this point in the history
  7. drivers: versal: update to support more recent versions of the PLM

     - update crypto API IDs
     - update calls to the KAT subsystem
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    9267cb6 View commit details
    Browse the repository at this point in the history
  8. drivers: versal: NVM driver for Versal Net

    The XilNvm API has heavily changed between Versal and Versal
    Net. This commit adds support for the Net variant.
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    10d334a View commit details
    Browse the repository at this point in the history
  9. drivers: versal: fix RSA driver

    XilSecure has been updated to pack the public exponent right after the
    modulus rather than at a fixed 512 bytes (RSA 4096 key size) offset. See
    commit below for more details:
    
    Xilinx/embeddedsw@c2dd2eb
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    c668e58 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. fixup! drivers: versal: NVM driver for Versal Net

    Split NVM code into two seperate drivers, one for Versal, one for Versal
    Net, since both variants have very different NVM PLM code.
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    d477ff3 View commit details
    Browse the repository at this point in the history
  2. fixup! plat-versal: add support for Versal Net variant

     - Do not enable RPMB configs on Versal
     - Do not modify Versal IPI ID
     - Do not enable FPGA PTA on Versal
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    9dd3ef9 View commit details
    Browse the repository at this point in the history
  3. fixup! core: pta: add Versal FPGA PTA

     - s!invokeCommandEntryPoint!invoke_command!
     - Return TEE_ERROR_NOT_SUPPORTED rather than BAD_PARAMS in case an
       invalid command ID is used
     - Re-order includes as requested
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    1dd1efa View commit details
    Browse the repository at this point in the history
  4. fixup! drivers: versal: rework mbox driver

     - Add timeout in case the remote processor is unresponsive
     - versal_mbox_free explicitely sets the pointer to NULL
    
    Signed-off-by: Jeremie Corbier <jeremie.corbier@provenrun.com>
    jcorbier committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    6d01a34 View commit details
    Browse the repository at this point in the history