• Krishna Konda's avatar
    msm: 9615: storage: vote against IDLE power collapse · 39f5b2c7
    Krishna Konda authored
    
    
    During the SDCC DMA transfer, if DMA transfer time is
    long enough to do IDLE power collapse then system may
    go into IDLE power collapse and once SDCC DMA transfer
    is completed, system wakes up from Idle Power Collapse
    due to SDCC DMA interrupt. But delay for waking up
    from Idle Power collapse could be as large as 5 ms which
    really degrades the overall read & write throughputs
    for SD/eMMC/SDIO cards.
    
    For example, following are the performance numbers with
    eMMC card on MSM8960 platform with and without Idle Power
    Collapse.
    
    Idle Power collapse enabled:
    LMDD Read throughput = ~14 MB/s
    LMDD Write throughput = ~6 MB/s
    
    Idle Power Collapse disabled:
    LMDD Read throughput = ~25 MB/s
    LMDD Write throughput = ~8 MB/s
    
    So this change votes against the Idle power collapse by registering
    with PM QOS about it's acceptable DMA latency when SDCC transfer is
    active. This latency value is one more than the latency of SWFI
    which means system can go into SWFI but not in any of the other
    low power modes (including Idle power collapse).
    
    Change-Id: I2c8de5e9b4204468f9166aea7bcdee5b70ed62b1
    Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
    Signed-off-by: default avatarKrishna Konda <kkonda@codeaurora.org>
    39f5b2c7
board-9615-storage.c 6.09 KB