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

raised ZYNQMP_DMA_NUM_DESCS from 32 to 10000 and replace spin_lock_bh with spin_lock_irqsave #1

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

Conversation

RufUsul
Copy link
Owner

@RufUsul RufUsul commented Feb 16, 2021

  1. raise ZYNQMP_DMA_NUM_DESCS from 32 to 10000 to enhance the max dma transfers from ~64KB to ~20MB
    Why 10000? Because it is enough for a dma copy of a 2448x2048 ARGB image with 4KB pages!

  2. replace spin_lock_bh with spin_lock_irqsave:
    All device_prep_dma_* functions and device_issue_pending can be called
    from an interrupt context. As this includes hard IRQs, we must use
    spin_lock_irqsave() instead of spin_lock_bh() to access chan->lock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant