• Rajkumar Manoharan's avatar
    ath10k: reuse copy engine 5 (htt rx) descriptors · 128abd09
    Rajkumar Manoharan authored
    Whenever htt rx indication i.e target to host messages are received
    on rx copy engine (CE5), the message will be freed after processing
    the response. Then CE 5 will be refilled with new descriptors at
    post rx processing. This memory alloc and free operations can be avoided
    by reusing the same descriptors.
    
    During CE pipe allocation, full ring is not initialized i.e n-1 entries
    are filled up. So for CE 5 full ring should be filled up to reuse
    descriptors. Moreover CE 5 write index will be updated in single shot
    instead of incremental access. This could avoid multiple pci_write and
    ce_ring access. From experiments, It improves CPU usage by ~3% in IPQ4019
    platform.
    Signed-off-by: default avatarRajkumar Manoharan <rmanohar@qti.qualcomm.com>
    Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
    128abd09
ce.h 13.9 KB