{"push_id":762654981,"size":1,"distinct_size":1,"ref":"refs/heads/lp5.1","head":"b20ead93a4485bea43abc6d3b7307782c885d7ef","before":"b9559ca8231c26c4c2021295a893c2912ffc9c98","commits":[{"sha":"b20ead93a4485bea43abc6d3b7307782c885d7ef","author":{"email":"9e2f966f1a8036d20af18f68b1d4ddbb0298eb5f@motorola.com","name":"Manu Gautam mgautam@codeaurora.org"},"message":"USB: ANDROID: Implement dynamic pm_qos voting based on USB activity\n\nCurrently USB android driver maintains only two states for DMA\nlatency voting with pm_qos i.e. USB connect and disconnect/suspend.\nThis doesn't take into consideration when USB is completely IDLE\nor very minimal USB transfers are happening resulting in high\npower consumption. Even though USB is used for battery charging\nbut not allowing CPU to enter lower power states may result in high\ncharging time or even device getting hot.\nDriver now monitors USB traffic using UI interrupts count and based\non that takes decision to vote appropriate DMA latency. If interrupts\nduring a sample time are less than threshold then it allows transition\nfrom WFI to IDLE_PC and further to IDLE_PC_RPM if no interrupts are\nseen for a while.\nAll these thresholds and sample times (note below) are configurable and\nshould be defined such that we ramp up fast to WFI (up_sample_sec)\nbut slow down shift to IDLE_PC (down_sample_sec). User configurable\nparameters are:\n1. Parameters to control WFI to L2 IDLE_PC transition:\n  * down_pm_qos_sample_sec: Interrupts sampling time\n  * down_pm_qos_threshold: If interrupts during a sample are less than\n         this threshold then allow L2 IDLE_PC.\n2. Parameters to control IDLE_PC to IDLE_PC_RPM transition:\n  * idle_pc_rpm_no_int_secs: If no interrupts are seen for this much\n         time then allow L2 IDLE_PC_RPM.\n3. Parameters to control transition to WFI:\n  * up_pm_qos_sample_sec: Interrupts sampling time\n  * up_pm_qos_threshold: If interrupts during a sample are more than\n         this threshold then allow only WFI.\n\nChange-Id: I6b9683846be6936821671aef88ffa037a929d0ff\nSigned-off-by: Manu Gautam <mgautam@codeaurora.org>\nSigned-off-by: Ravi Vembu <raviv@motorola.com>\nSigned-off-by: franciscofranco <franciscofranco.1990@gmail.com>","distinct":true,"url":"https://api.github.com/repos/gchild320/shamu/commits/b20ead93a4485bea43abc6d3b7307782c885d7ef"}]}