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

ASoC: SOF: Intel: hda: Add support for persistent Code Loader DMA buffers #5182

Commits on Sep 27, 2024

  1. ASoC: SOF: Intel: hda: Add support for persistent Code Loader DMA buf…

    …fers
    
    It has been reported that the DMA memory allocation for firmware download
    can fail after extended period of uptime on systems with relatively small
    amount of RAM when the system memory becomes fragmented.
    
    The issue primarily happens  when the system is waking up from system
    suspend, swap might not be available and the MM system cannot move things
    around to allow for successful allocation.
    
    If the IMR boot is not supported then for each DSP boot we would need to
    allocate the DMA buffer for firmware transfer, which can increase the
    chances of the issue to be hit.
    
    This patch adds support for allocating the DMA buffers once at first boot
    time and keep it until the system is shut down, rebooted or the drivers
    re-loaded and makes this as the default operation.
    
    With persistent_cl_buffer module parameter the persistent Code Loader
    DMA buffer can be disabled to fall back to on demand allocation.
    
    Signed-off-by: Peter Ujfalusi <[email protected]>
    ujfalusi committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    14f4161 View commit details
    Browse the repository at this point in the history