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

build(deps): bump docker/setup-buildx-action from 2 to 3 #161

Closed

Commits on Aug 25, 2023

  1. boards/riscv/mpfs/icicle/configs/standalone: Add a standalone target

    - boots from eNVM
    - uses lim memory for RAM
    - has console on uart 0
    - has procfs enabled
    - has most of nsh commands enabled
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    c6ad5be View commit details
    Browse the repository at this point in the history
  2. Fix the check workflow for tiiuae repo

    - Change git repository urls to point to our tiiuae repos for nuttx & nuttx apps
    - Remove most of the the build steps, leave just arm-12 and riscv;
    	arm-12 has a build for stm32f7, and riscv for mpfs
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    ffd0ae5 View commit details
    Browse the repository at this point in the history
  3. arch/risc-v/src/opensbi/Make.defs: Switch opensbi to the nuttx/size o…

    …ptimized version in tiiuae repo
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    477df1a View commit details
    Browse the repository at this point in the history
  4. [REVERTME] arch/risc-v/src/mpfs/mpfs_ethernet.c: Hack the ethernet dr…

    …iver to re-initialize on rx timeout
    
    If the interface is UP, and no packets are received in 30s, re-initialize the interface by calling the
    already implemented mpfs_txtimeout_expiry.
    
    This is a temporary workaround for a bug where IF might be UP and working but packets can only
    be transmitted. Receive side just doesn't work at all.
    
    The original bug can be re-produced easily by disconnecting and reconnecting the ethernet cable while
    the IF is up.
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    c9f3f90 View commit details
    Browse the repository at this point in the history
  5. [HACK] Set SD-card speed to 50MHz

    SD-card clock speed is just forced to 50MHz. Note that to be correct, one should first set the SD-card
    into high-speed mode, but currently NuttX doesn't support this.
    
    With our cards, just setting the interface to 50MHz seems to work fine, and it removes the issue with
    25MHZ clock causing disturbance on GPS bands. Typically cards which support high-speed mode just work with
    50MHz interface clock.
    
    This patch should be reverted when the NuttX supports high-speed mode, and we can properly set it.
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    902c21a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c03e56b View commit details
    Browse the repository at this point in the history
  7. Fix standalone defconfig for CI

    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    f10e650 View commit details
    Browse the repository at this point in the history
  8. arch/risc-v/src/mpfs/mpfs_clockconfig.c: Flag out code only used in b…

    …ootloader
    
    This removes the need to have all the DDR/clock configuration related
    "LIBERODEFS" flags defined, when not building a standalone/coldboot
    configuration
    
    All of this code is unused when not building with CONFIG_MPFS_BOOTLOADER
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    adfe82a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    dd3fe0b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b4414cb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    75cbc77 View commit details
    Browse the repository at this point in the history
  12. mpfs/emmcsd: [HACK] Set 8-bit data width and DDR HS mode for eMMC

    This is not the correct way to do this, but it gives a nice perf. boost
    pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    a4e0296 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    5158a1a View commit details
    Browse the repository at this point in the history
  14. Fix build.yml

    Disable macOS builds for now.
    jpaali authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    51991d6 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    95b4d63 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    526ae42 View commit details
    Browse the repository at this point in the history
  17. drivers/net/rpmsgdrv.c: Support only TRANSFER commands

    All other commands are disabled in send_recv().
    
    Signed-off-by: Jani Paalijarvi <[email protected]>
    jpaali authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    3ce90e5 View commit details
    Browse the repository at this point in the history
  18. arch/risc-v/src/mpfs/mpfs_ihc.c: Increase RPMSG buffer size

    Signed-off-by: Jani Paalijarvi <[email protected]>
    jpaali authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    5da097c View commit details
    Browse the repository at this point in the history
  19. mpfs_ihc: Make Vring addresses configurable

    jpaali authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    8c5745b View commit details
    Browse the repository at this point in the history
  20. arch/risc-v/src/mpfs/mpfs_fpga_canfd.c: Fix CONFIG_DEBUG_CAN_INFO ifd…

    …ef and forward declare devif_loopback
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    fcb4f6f View commit details
    Browse the repository at this point in the history
  21. boards/risc-v/mpfs/icicle/configs/canfd/defconfig: Normalize

    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    e66ee29 View commit details
    Browse the repository at this point in the history
  22. remove devif_loopback in canfd driver since it is now devif_poll func…

    … that takes care of the need for loopback
    haitomatic authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    d5b4484 View commit details
    Browse the repository at this point in the history
  23. arch/risc-v/src/mpfs/mpfs_ihc.c: Minor fixes

    Remove unnecessary VQID shifting (16 -> 0).
    Give an error if RPTUN init fails.
    jpaali authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    a9855a5 View commit details
    Browse the repository at this point in the history
  24. Remove MPFS_IHC_LINUX_ON_HART4 from default configurations

    Enable LINUX_ON_HART4 in rpmsg-ch2 defconfig of ICICLE board.
    Remove LINUX_ON_HART4 config from rpmsg-ch1 defconfig of ICICLE board.
    jpaali authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    9200709 View commit details
    Browse the repository at this point in the history
  25. arch/arm/src/stm32f7/stm32_ethernet.c: Fix "unused variable" warning

    Fix build warning when CONFIG_STM32F7_AUTONEG is not set
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    da7fcae View commit details
    Browse the repository at this point in the history
  26. arch/risc-v/src/mpfs/mpfs_userspace.c: Map MTIME into userspace reser…

    …ved IO area in protected build
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    62d55b7 View commit details
    Browse the repository at this point in the history
  27. boards/risc-v/mpfs/icicle: Add USRIO area for userspace IO mappings

    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    26f28ec View commit details
    Browse the repository at this point in the history
  28. Add mpfs crypto driver into nuttx build

    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    765313f View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    7661ca1 View commit details
    Browse the repository at this point in the history
  30. mpfs/mpfs_mm_init: Add the MTIME user mapping for kernel mode as well

    Just a temporary patch, need to implement some kind of scalable solution
    for this. It might be a good idea to map something else for the user
    to avoid using ecall to enter the kernel for simple reads ?
    
    Also, increase the L3 table size
    pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    a8c0f1e View commit details
    Browse the repository at this point in the history
  31. arch/risc-v/src/mpfs/Kconfig: Don't source crypto/Kconfig

    There is no make step executed for this directory before the Kconfigure,
    so all Kconfig's just need to be in-tree
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    669e6e2 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    9c96ac4 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    1fa7923 View commit details
    Browse the repository at this point in the history
  34. arch/riscv/src/mpfs/mpfs_ethernet.c: discard err rxframe in int work

    Workaround to avoid deadlock situation: The RX shall not try to wait for complete
    frame in case there is RX errors detected.
    
    In case mpfs_receive is called, it keeps waiting for complete frame and
    also keeps the net_lock locked. In the mean while, the TX may run out of free
    descriptors, but can not get net_lock mutex lock to be able to release used
    descriptors. If there are no free TX descs it disables RX interrupts because
    it may require to send response to the received frame.
    So, TX side keeps RX interrupts disabled due to lack of free descriptors and
    RX blocks TX to release those descs by stubbornly waiting for complete frame.
    jnippula authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    ccfeb55 View commit details
    Browse the repository at this point in the history
  35. arch/risc-v/src/mpfs/crypto.defs: Update to include mpfs_systemservice.c

    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    080730a View commit details
    Browse the repository at this point in the history
  36. arch/risc-v/src/mpfs: Generate an unique locally administrated MAC ad…

    …dress
    
    Add a function to read PolarFire's serial number from system controller, and use the first five digits as device's mac address
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    17c79ab View commit details
    Browse the repository at this point in the history
  37. emmc interrupt blackout issue fix

    sendfifo() function need enable BWR_IE before checking if BWE is enabled
    to avoid BWE to be activated between the BWE check and BWR interrupt
    enabling, which causes the interrupt to be missed and Data Timeout error.
    jnippula authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    f7c0a2d View commit details
    Browse the repository at this point in the history
  38. mpfs/mpfs_userspace: Increase user space size to 8MB

    The user i/o area goes over 4MB, so need more page tables
    pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    9e10f64 View commit details
    Browse the repository at this point in the history
  39. test: bootloader: apply ihc flow control

    If Linux kernel sends data, block all incoming msgs from the remote
    end until an ack arrives, which completes the linux send data command.
    
    If other than ack arrives, the logic in the Linux is no longer maintained,
    causing the virtio marked broken.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    dd0851b View commit details
    Browse the repository at this point in the history
  40. risc-v/mpfs: apply ihc software flow control

    Utilize the sw flow control. Also detect situations where
    both ack and msg present is set. In that case, consider
    both flags.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    0855101 View commit details
    Browse the repository at this point in the history
  41. risc-v/mpfs: ihc: use work queue instead of thread

    The thread conflicts with a HPWORK originated network operation,
    taking the net_lock() recursive mutex, resulting in a deadlock.
    
    Recursive mutexes are OK within the same task (HPWORK), so apply
    the thread work into a work instead, which would potentially
    resolve the very random conflict.
    
    This increases the data throughput also a bit (10 - 20%).
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    69a3ed7 View commit details
    Browse the repository at this point in the history
  42. canfd: fix hw filter

    haitomatic authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    9049acb View commit details
    Browse the repository at this point in the history
  43. risc-v/mpfs: serial: add fpga uarts

    Add FPGA serial support, including console capabilities.
    FPGA has UARTs from 0-7, so all UARTs starting from 5
    depend on FPGA.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    4b40846 View commit details
    Browse the repository at this point in the history
  44. Add CONFIG_MPFS_SPI flag to define using SOC hard-ip SPI block

    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    e278e43 View commit details
    Browse the repository at this point in the history
  45. arch/risc-v/src/mpfs: Remove CONFIG_MPFS_COREPWMx_PWMCLK configs

    These are always the same as FPGA peripheral clock, so use that directly
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    a4c60b8 View commit details
    Browse the repository at this point in the history
  46. risc-v/mpfs: serial: fix uart closing

    Don't turn off FIC3 clk which would terminate all other
    peripherals depending on it.
    
    Also add a few missing undefs.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    64351a1 View commit details
    Browse the repository at this point in the history
  47. Change MPFS_FPGA_UARTx_BASE addresses to 4k aligned as per new FPGA i…

    …mage
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    6afcf21 View commit details
    Browse the repository at this point in the history
  48. [REVERTME] arch/risc-v/src/mpfs/mpfs_corespi.c: Hack around a bug in …

    …nuttx nxsem_tickwait_uninterruptible bug
    
    The nxsem_tickwait_uninterruptible seems to timeout randomly one tick too soon. Add one tick to timeout to make sure it is long enough.
    
    This can be reverted when the actual bug is fixed.
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    f5b0d4b View commit details
    Browse the repository at this point in the history
  49. Add support for 2xCAN

    haitomatic authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    e67f54a View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    b9fa478 View commit details
    Browse the repository at this point in the history
  51. canfd : use board peripheral clock

    haitomatic authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    f83649c View commit details
    Browse the repository at this point in the history
  52. canfd : normalize defconfig

    haitomatic authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    71c4864 View commit details
    Browse the repository at this point in the history
  53. arch/risc-v/src/mpfs/mpfs_timerisr.c: Partially revert common mtime d…

    …river change
    
    Revert:
    commit 1975878
    Author: Huang Qi <[email protected]>
    Date:   Mon Apr 11 18:42:24 2022 +0800
    
        arch/risc-v: Apply common mtime driver to mtime based chps
    
        Signed-off-by: Huang Qi <[email protected]>
    
    As this breaks the systick
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    6429084 View commit details
    Browse the repository at this point in the history
  54. arch/risc-v/src/mpfs: Make mpfs_hart_index2id table modifiable by boo…

    …tloader
    
    This is actually the same table as entrypoints, so just use the same data, which
    can be set before booting any of the harts
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    f34ce01 View commit details
    Browse the repository at this point in the history
  55. Revert "[REVERTME] arch/risc-v/src/mpfs/mpfs_corespi.c: Hack around a…

    … bug in nuttx nxsem_tickwait_uninterruptible bug"
    
    This reverts commit c9a794c.
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    b400e7a View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    d9c7276 View commit details
    Browse the repository at this point in the history
  57. arch/risc-v/src/mpfs/mpfs_opensbi.c: Fix conflicting datatypes define…

    …d by NuttX vs. opensbi
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    c312a3b View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    c688040 View commit details
    Browse the repository at this point in the history
  59. arch/risc-v/src/mpfs/mpfs_dsn: Correct serial number reading routine

    - Fix retry counter handling and increase the maximum number of retries.
    - Add some parenthesis for clarity.
    - Change return type to signed int, as it may return -ETIMEDOUT
    - Correct comment for returned value
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    226dbd9 View commit details
    Browse the repository at this point in the history
  60. risc-v/mpfs: clean up ihc for rpmsg

    This cleans the unnecessary flow control that's no longer
    needed.  Probably the support for simultaneous MP and ACK
    changed the environment.
    
    Also reorganize the mpfs_opensbi_*.S so that the trap
    handler is easily relocated in the tlinker .ld file without
    the need to relocate the utils.S.  This makes it easier to
    follow the jump into other segment, eg. zerodevice.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    96cc3b4 View commit details
    Browse the repository at this point in the history
  61. mpfs_opensbi_utils.S: relocate OpenSBI into l2zerodevice

    This loads the OpenSBI from eNVM into the zerodevice.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    a5d1e67 View commit details
    Browse the repository at this point in the history
  62. opensbi: update to contain shrinked version

    Update to have 2k smaller version of OpenSBI.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    b1c7173 View commit details
    Browse the repository at this point in the history
  63. Revert "opensbi: update to contain shrinked version"

    This reverts commit 95e02b0.
    jnippula authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    ef92a6c View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    a505113 View commit details
    Browse the repository at this point in the history
  65. risc-v/mpfs: ihc: don't wait for a remote ack

    RPMSG is associated with the use of HPWORK / LPWORK queues.
    After sending a message to the remote end (Linux), it waits
    for an ack before proceeding.
    
    Unfortunately this may take sometimes more than 0x3000 CLINT
    MTIME cycles. Ack waiting is also unnecessary: nothing is done
    with that information. Even worse, the net_lock() is also held
    during the blocked time so it blocks other network stacks that
    are unrelated to this.
    
    The logic is still maintained with the message present (MP) flag.
    No new message will be sent until that is cleared by the romote.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    6f2db08 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    dd9fee0 View commit details
    Browse the repository at this point in the history
  67. risc-v/mpfs: clear L2 before use

    SiFive document: "ECC Error Handling Guide" states:
    
    "Any SRAM block or cache memory containing ECC functionality needs to be
    initialized prior to use. ECC will correct defective bits based on memory
    contents, so if memory is not first initialized to a known state, then ECC
    will not operate as expected. It is recommended to use a DMA, if available,
    to write the entire SRAM or cache to zeros prior to enabling ECC reporting.
    If no DMA is present, use store instructions issued from the processor."
    
    Clean the cache at this early stage so no ECC errors will be flooding later.
    
    Signed-off-by: Eero Nurkkala <[email protected]>
    eenurkka authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    ec68b3d View commit details
    Browse the repository at this point in the history
  68. arch/risc-v/src/mpfs/mpfs_ddr.c: Correct the DDR training dq/dqs stat…

    …us check
    
    It was checking a wrong register for dq/dqs window size.
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    1fc7d2b View commit details
    Browse the repository at this point in the history
  69. arch/risc-v/src/mpfs/mpfs_ddr.c: Don't auto-determine the write latency

    It doesn't make sense to try to auto-determine write latency, it may pass with too low value.
    
    Keep the existing implementation if the write latency has been set to minimum
    value, otherwise just set it.
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    c524902 View commit details
    Browse the repository at this point in the history
  70. arch/risc-v/src/mpfs/mpfs_ddr.c: Correct memory test timeouts

    Especially the write calibration must bail out if the memory test timeouts,
    otherwise the device will get stuck in running the memory test in sequence,
    and it will always timeout.
    
    Negative error value was also not properly returned from mpfs_mtc_test.
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    1f9b2ba View commit details
    Browse the repository at this point in the history
  71. arch/risc-v/src/mpfs/mpfs_ddr.c: Make sure that DDRC is in reset when…

    … starting the training
    
    Also move the DDRC clock enablement and reset to mpfs_init_ddr. This doesn't
    change the functionality, but is the cleaner place for it.
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    2602afd View commit details
    Browse the repository at this point in the history
  72. arch/risc-v/src/mpfs/mpfs_ddr.c: Add a simple prng for memory trainin…

    …g code
    
    Implement the previously empty mpfs_ddr_rand with adapted "seiran128" code
    from https://github.com/andanteyk/prng-seiran
    
    This implements a non-secure prng, which is minimal in size. The DDR training
    doesn't need cryptographically secure prng, and linking in the NuttX crypto
    would increase the code size significantly for bootloaders.
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine authored and pussuw committed Aug 25, 2023
    Configuration menu
    Copy the full SHA
    ee58b2e View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Revert "drivers/mmcsd: fix style issues"

    This reverts commit 8254b37.
    pussuw committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    66eec9d View commit details
    Browse the repository at this point in the history
  2. Revert "Add eMMC driver support"

    This reverts commit 50a8ec6.
    pussuw committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    9d3b9fa View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2023

  1. arch/risc-v/src/mpfs: Sync some of the libero config macros with HSS …

    …reference code
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    Co-authored-by: Eero Nurkkala <[email protected]>
    jlaitine and eenurkka committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    c356bfb View commit details
    Browse the repository at this point in the history
  2. arch/risc-v/src/mpfs/mpfs_ddr.c: Re-write write calibration

    Clean up the code and remove un-used global variables & structs
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    3ce090e View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2023

  1. arch/risc-v/src/mpfs: Set USB DMA upper addr offset

    Use a configuration register to set the upper address lines [37:32] for USB DMA engine.
    
    Signed-off-by: Jani Paalijarvi <[email protected]>
    jpaali committed Sep 4, 2023
    Configuration menu
    Copy the full SHA
    2563e16 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. drivers/timers/pcf85263.c: Fix compilation

    Add the missing semicolons
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    25d9216 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2023

  1. drivers/net: Add a management driver for ksz9477 ethernet switch

    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    19be1d8 View commit details
    Browse the repository at this point in the history
  2. arch/risc-v/src/mpfs: Add ksz9477 initialization

    This adds initialization of the ksz9477 switch when used instead of
    a PHY, directly connected to SGMII
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    537e3ff View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2023

  1. arch/risc-v/src/mpfs/mpfs_i2c.c: Clean up using priv->status and STOP…

    … interrupts
    
    - There are occasional extra STOPs being sent due to an IP bug when using an
      FPGA based I2C. Add a flag "inflight" to mask out extra STOP interrupts when
      using the FPGA based implementation
    - There are no MPFS_I2C_ST_STOP_SENT irq's "initally". It is just already
      either success or still in progress
    
    Signed-off-by: Jukka Laitinen <[email protected]>
    jlaitine committed Sep 12, 2023
    Configuration menu
    Copy the full SHA
    3472e29 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2023

  1. riscv/riscv_pmp.c: Improve NAPOT area validity checks

    Check that the base address and region size are properly aligned with
    relation to each other.
    
    With NAPOT encoding the area base and size are not arbitrary, as when
    the size increases the amount of bits available for encoding the base
    address decreases.
    pussuw committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    393f37e View commit details
    Browse the repository at this point in the history
  2. mpfs/mpfs_i2c.c: Replace 1 second timeout with Time-on-Air based timeout

    Calculate how long an I2C transation will take in microseconds, and use
    this as the timeout for mpfs_i2c_sem_waitdone.
    
    The reason for doing this is not to keep an i2c bus reserved for the full
    1 second timeout, if e.g. a sensor is not on the bus / is faulty and
    non-responsive. Reading the other sensors will be blocked for a relatively
    long time (1 second) in this case. This fixes such behavior.
    pussuw committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    3b6acfa View commit details
    Browse the repository at this point in the history
  3. libs/libc: Fix a fatal bug in fread

    Fix a bug the destination buffer is not updated.
    It is caused by the following commit.
    commit 5d8d5bf
    SPRESENSE authored and pussuw committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    cd343a7 View commit details
    Browse the repository at this point in the history
  4. stdio/lib_libfread: Fix buffer overflow issue

    If the gulp size in the stdio buffer the remaining user buffer size it will:
    - Corrupt memory in dest (user memory) and
    - Keep corrupting KERNEL memory via the stdio character buffer until the
      whole system crashes, as the 'remaining' count underflows
    
    This patch fixes this behavior.
    pussuw committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    364a80a View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. build(deps): bump docker/setup-buildx-action from 2 to 3

    Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3.
    - [Release notes](https://github.com/docker/setup-buildx-action/releases)
    - [Commits](docker/setup-buildx-action@v2...v3)
    
    ---
    updated-dependencies:
    - dependency-name: docker/setup-buildx-action
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored Sep 18, 2023
    Configuration menu
    Copy the full SHA
    63023ae View commit details
    Browse the repository at this point in the history