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

Prep for DriverKit #23

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Prep for DriverKit #23

wants to merge 5 commits into from

Commits on Sep 6, 2024

  1. nvme/util: make nvme_set_errno_from_cqe static inline

    Move nvme_set_errno_from_cqe to header such that rq_test does not need
    to link with nvme/util.c.
    
    Signed-off-by: Klaus Jensen <[email protected]>
    birkelund committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    d4c1f92 View commit details
    Browse the repository at this point in the history
  2. iommu: add dmabuf helper

    Add iommu/dmabuf.h which helps allocating and mapping DMA buffers.
    
    Signed-off-by: Klaus Jensen <[email protected]>
    birkelund committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    6476e80 View commit details
    Browse the repository at this point in the history
  3. nvme: use iommu_dmabuf api

    Replace all pgmap/iommu_map_vaddr pairs with iommu_get/put_dmabuf.
    
    Signed-off-by: Klaus Jensen <[email protected]>
    birkelund committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    9866a6d View commit details
    Browse the repository at this point in the history
  4. nvme/core: abstract mmio

    The mmio helpers assume that we can read and write to a specific
    address. The proposed DriverKit backend cannot do that and must call
    specific functions on a base address and an offset.
    
    In the core, prepare for DriverKit to provide its own implementation of
    doing that.
    
    This is a simplified version of commit "mmio: convert calls of 'addr +
    offset' to 'base-addr, offset'" to limit the change to the nvme core.
    
    Signed-off-by: Mads Ynddal <[email protected]>
    [k.jensen: limit the change to nvme/core for now]
    Signed-off-by: Klaus Jensen <[email protected]>
    Baekalfen authored and birkelund committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    b0e1209 View commit details
    Browse the repository at this point in the history
  5. support/mem: add driverkit operations

    Within DriverKit we cannot use malloc/free but have to use the DriverKit
    specific IOMallocZero and IOFree.
    
    Signed-off-by: Mads Ynddal <[email protected]>
    [k.jensen: allowed more generic functions to be retained]
    Signed-off-by: Klaus Jensen <[email protected]>
    Baekalfen authored and birkelund committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    4068cfe View commit details
    Browse the repository at this point in the history