================ RELEASE 2.0.0 (6.18.62) ================

November 2026:

 * The Frontgrade Gaisler Linux Driver Package now uses kernel version
   v6.18 as its base.
 * Fix build issues on 6.15 and onwards by using ccflags-y for the include
   path.
 * Provide LDFLAGS when linking user applications
 * Fix a few issues in the bindings documentation
 * The ioctl ABI of grspw_user, grspw_router and grspfi changed, and is
   fixed from 2.0.0 on. Applications must be rebuilt against the 2.0.0
   headers:
   - The user space headers moved to kernel/drivers/grlib/include/uapi
     and are included as <linux/grlib/...> (a distribution may install
     them in /usr/include/linux/grlib). They are
     self-contained and carry the Linux-syscall-note, so applications
     are not covered by the GPL. The kernel headers stop a user space
     build with #error.
   - All three drivers use the ioctl magic 'J', with a number range each
     (0x00-0x3f grspw_user, 0x40-0x5f grspw_router, 0x80-0xbf grspfi).
     A command sent to the wrong device fails with ENOTTY.
   - Every struct has a fixed layout with fixed-size types and reserved
     fields, the same on 32- and 64-bit, and never changes size. Structs
     and constants are renamed with a driver prefix, e.g. grspw_hwsup,
     GRSPW_TXPKT_*, grspwr_config, GRSPWR_FLG_*, grspfi_hwcap,
     grspfi_upkt and grspfi_bc_msg. HWSUP, HWINFO and GET_CAPABILITIES
     report api_version and features.
   - Packet entries carry a 64-bit user_data in place of pkt_id, and
     64-bit pool offsets.
   - Nonzero reserved fields and unknown flags or values give EINVAL.
     PREPARE and SEND queue as many entries as there are free packets or
     descriptors (a short count is not an error) and check those before
     queuing any. RECV and RECLAIM keep the packets in the driver when the
     copy to user space faults. A range outside the pool gives EINVAL
     instead of EPERM.
   - Waits time out with ETIMEDOUT instead of ETIME and can be
     interrupted by a signal (EINTR); timeout 0 waits forever.
   - grspfi: RX_PREPARE, RX_RECEIVE, TX_SEND and TX_RECLAIM move a batch
     of packets (struct grspfi_pkts) and return count 0 instead of
     EAGAIN; RX_WAIT, TX_WAIT and BCRX_WAIT take struct grspfi_wait with
     a timeout and a packet count. TIME_SET and TIME_GET take a __u32.
   - grspw_user leaves alone the DMA channels another kernel driver has
     open. HWSUP reports the usable channels in chan_avail_mask,
     enabling another driver's channel gives EBUSY, and CONFIG_SET
     leaves its node address alone. START when started gives EBUSY.
   - grspw_router: WE_SET takes 0 or 1 only; CFG_SET and PORT reject
     unknown flags.
   - grspfi serves 32-bit user space on 64-bit kernels (compat_ioctl).
 * Replaced maplib with dma-buf CMA dma-heaps. User space allocates
   buffers from /dev/dma_heap and passes a dmabuf fd + offset instead
   of a virtual address. The kernel needs CONFIG_DMA_CMA and
   CONFIG_DMABUF_HEAPS_CMA.
 * grspw: a core can be used by several kernel drivers at once, with
   per-channel address filtering and an interrupt-context DMA event
   callback. grspw_dma_opened() returns the DMA channels that are open.
   A driver that takes one channel opens it when it binds, and
   grspw_user leaves that channel alone.
 * grspw: converted the DMA channel RX/TX locks from semaphores to
   spinlocks, so they can be used from non-sleeping context.
 * grspw: the DMA channel spinlocks and wait completions are initialised
   once at probe. This fixes a race when a channel is reopened or
   restarted while the interrupt work runs.
 * grspw: a full write barrier orders the buffer address of a descriptor
   before its enable bit. The weaker dma_wmb() does not order stores to
   write-combining memory, which the descriptor table can be in.
 * grspw_router: struct grspwr_config.timer_reload[] has 32 entries
   indexed by port number, including port 0.
 * grspfi: the VC devices stay until the device is removed, and can only
   be used while the control device is open. Closing a VC disables it.
 * grspfi: received packets report all RX descriptor flags. The core
   checks the RMAP CRC of every packet, so DC/HC are also set for
   non-RMAP packets; only TR and EP are transfer errors.
 * grspfi: the registers are accessed in the CPU's endianness, as needed
   on LEON. Before, they were byte swapped on big-endian CPUs.
 * grspw_user: packets are prepared, received, sent and reclaimed with the
   new ioctls GRSPW_IOCTL_RX_PREPARE, RX_RECV, TX_SEND and TX_RECLAIM
   instead of read() and write(), which could fail with EFAULT on LEON.
 * grspfi_user: checks every packet and exits non-zero on failure, with
   options for more tests (see grspfi_user --help).
 * grspw_user test: -w waits for packets with RX_WAIT and TX_WAIT instead
   of polling. The packets collected in the end are checked as they
   arrive, so the initiator no longer runs out of buffers.
 * spwrtr: a new tool that shows and configures the SpaceWire router from
   the command line or from files. base.cfg sets what
   spwrouter_custom_config sets. load checks the whole file before
   changing anything.
 * Bug fixes in grspw, grspw_user, grspw_router, grspfi, grspfi_user
   and the out-of-tree build. Updated the documentation.

================ RELEASE 1.4.0 (5.10.258) =======================

June 2026:

 * Add GRSPFI kernel drivers and user application
   - grspfi_drv  - a kernel module for low level grspfi access
   - grspfi      - a character device providing a userspace API
   - grspfi_user - a user space test program

================ RELEASE 1.3.0 (5.10.237) =======================

June 2025:

 * Automatically create /dev devices and handle assignment
   of major numbers dynamically from the drivers.
 * Fix rounding issue in the GRSPW DMA SpaceWire packet
   demonstration software (grspw_user/test.c)
 * Fix endianess issue when reading device tree bindings

================ RELEASE 1.2.1 (5.10.216) ================

June 2024:

 * Updated to Linux 5.10.216 kernel
 * Added clk gate handling to GRSPW and GRSPW Router.

================ RELEASE 1.2.0 (5.10.98) ================

April 2022:

 * Updated to Linux 5.10.43 kernel
 * Added support for NOEL-V 32- and 64-bit systems
   - Added support little-endian
   - limitation: 32-bit address space required
 * after changes, dropped support for older kernels

================ RELEASE 1.1.1 (3.10.58) ================

2016-04-07  Daniel Hellstrom <daniel@gaisler.com>
  Synchronized functionality from the RTEMS/VxWorks GRSPW packet
  drivers to the Linux GRSPW kernel library accoring to the below
  commit messages:

commit c996da0ff00532b48aff0e0f41d7b5884ddbbd69
Date:   Thu Apr 7 15:36:01 2016 +0200

    doc, grspw_pkt: synced documentation with RTEMS/VxWorks and new functionality 7Apr2016

commit 3f267fbd8284c4dc2f86138993d288599a5d5725
Date:   Thu Apr 7 09:21:00 2016 +0200

    leon, grspw_pkt: removed unused semaphore

commit c3a7d949e58863e3974fe22ca878157f59dbf96c
Date:   Thu Apr 7 09:14:08 2016 +0200

    leon, grspw_pkt: split DMA sem into RX and TX sem
    
    By introducing a spearate RX and TX DMA channel semaphore RX
    operations and TX operations does not block each other. Stopping
    a DMA channel needs now to take both RX and TX semaphores to
    block out both RX and TX tasks.

commit b220b425cbc17db952da4a7c1f3c227763e4a5f7
Date:   Wed Apr 6 16:51:58 2016 +0200

    leon, grspw_pkt: add user-space STATUS register clearing

commit 18aa031fd33056cb8dc4f60de877c0a5053eafd0
Date:   Wed Apr 6 16:08:51 2016 +0200

    leon, grspw_pkt: synced dma_stop/locked with RTEMS
    
    No change on the user interface.

commit 6b88110de4d87babab110dd22d1a823ad4f189a4
Date:   Wed Apr 6 15:54:10 2016 +0200

    leon, grspw_pkt: fixed DMA work task counter stats

commit 7f1d8f9461ec468f2849575b3b33bc9bda71f87d
Date:   Tue Mar 29 14:59:59 2016 +0200

    leon, grspw_pkt: support for reading tx/rx DMA queue
    
     * Add support for reading the GRSPW TX/RX descriptor counters
       directly.
     * Add semaphore lock to counters to avoid couters being out
       of sync
     * This makes it possible for the user in polling mode to check
       the amount of work before entering RX/TX descriptor table
       processing.

commit d744140792dfa584ae0f0b08e46d9e72f7a10a2f
Date:   Wed Mar 23 10:45:26 2016 +0100

    leon, grspw_pkt: fixed device/dma closing
    
    The user is now responsible to stop and close the DMA channels
    before closing the device. To prevent complicated situations and
    blocking the caller of grspw_close and grspw_dma_close a return
    code was added to indicate to the user that the DMA may not have
    been stopped or that blocked tasks are still active within the
    driver for the specified device.

commit c34ca781c3fab75776729d33c60f59634fdf5ec3
Date:   Wed Mar 23 09:57:10 2016 +0100

    leon, grspw_pkt: coding style fixups

commit b145f0f1a79f8e67d6db80e8e79aa36aaf292269
Date:   Wed Apr 6 14:40:29 2016 +0200

    leon, grspw_pkt: fixed and improved RX/TX wait

commit a2c74a441dd9e4fc0f18cd012eafe71fbce7a362
Date:   Wed Apr 6 14:13:20 2016 +0200

    leon, grspw_pkt: fixed error return path in dma_open

commit 78bb824f922f73fef2c5adc4de1d26e84751c93c
Date:   Tue Mar 22 15:51:13 2016 +0100

    leon, grspw_pkt: Manual handling of link status events
    
    Added functionality for manual handling of link status events,
    configurable via grspw_link_ctrl.
    
    Added statistics counter for disconnect error.

commit 800effe871cdf0c126a587b805ee13631cd7f74c
Date:   Tue Mar 22 15:37:36 2016 +0100

    leon, grspw_pkt: added link_ctrl options
    
    Improved the link error handling options. Its now possible to
    disable the link on individual link errors/warnings instead of
    always on all or none.
    
    Changed name of LINKOPTS_IRQ to LINKOPTS_EIRQ to match RTEMS
    and VxWorks SpW driver.

commit f27c8843c856557aad761967629307525a80f51d
Date:   Tue Mar 22 13:59:56 2016 +0100

    leon, grspw_pkt: added grspw_link_status_clr() to API

commit a44ad6a01566fd0bb086b55f4bed68f88548ec68
Date:   Tue Mar 22 11:42:10 2016 +0100

    leon, grspw_pkt: code style clean-ups

commit cfe519843c568c6ac333ce2c2f3c75663728c15f
Date:   Fri Apr 1 14:26:27 2016 +0200

    GRSPW: added of_def->resource==NULL extra check
    
    This shuold never happen unless only the AHB master is found.

================ RELEASE 1.1.0 (3.10.58) ================

2016-03-04  Daniel Hellstrom <daniel@gaisler.com>
  Rebased drivers against Linux 3.10.58 release.
  Synchronized functionality from the RTEMS/VxWorks GRSPW packet
  drivers to the Linux GRSPW kernel library.
  Added API documentation for the Linux GRSPW kernel library.

================ RELEASE 1.0.0 (2.6.36-rc3) ================

2010-10-20  Daniel Hellstrom <daniel@gaisler.com>
  Created the GRLIB Driver package, drivers included:
     GRSPW2 Kernel library
     GRSPW2 User space packet driver
     MAPLIB Device Memory Management to User space
     GRSPW-ROUTER SpaceWire Router APB Interface

     GRSPW and GRSPW-ROUTER Examples
