summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-04Merge "msm: ipa: fix IPA MHI unit tests"Linux Build Service Account
2017-07-04Merge "drm/msm: Add a parameter query for the number of ringbuffers"Linux Build Service Account
2017-07-04Merge "drm/msm: Add kernel side submit profiling and tracing"Linux Build Service Account
2017-07-04Merge "msm: camera: add protection in the cci write function"Linux Build Service Account
2017-07-04Merge "msm: camera: isp: Handle array out of bound access"Linux Build Service Account
2017-07-04Merge "msm: mdss: fix the pixel clock calculation for fb modes"Linux Build Service Account
2017-07-03msm: ipa: fix IPA MHI unit testsSkylar Chang
Connect a test producer pipe for MHI unit tests as the default LAN_PROD pipe is not connected on MHI config. Change-Id: I2fc1ff8758d222a738d570b5babc22ced2b43219 CRs-Fixed: 2066878 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-07-03msm: ipa: fix mhi suspend logicSkylar Chang
Add a missing return statement in IPA MHI suspend routine. Change-Id: I1dfbcff21ba3ca72ff985e76e851caf6a9da1ae4 CRs-Fixed: 2066866 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-07-03Merge "defconfig: arm64: msm: Enable virtual platform"Linux Build Service Account
2017-07-03Merge "cpuidle: lpm-levels: Check for negative sleep times"Linux Build Service Account
2017-07-03Merge "mm: add vfree_atomic()"Linux Build Service Account
2017-07-03Merge "mm: refactor __purge_vmap_area_lazy()"Linux Build Service Account
2017-07-03Merge "defconfig: Enable TSPP, MPQ and MPQ_DEMUX for apq8098"Linux Build Service Account
2017-07-03defconfig: arm64: msm: Enable virtual platformAtul Raut
Add support to build msm kernel based virtual machine. CRs-Fixed: 2000635 Change-Id: I76f4920a86adc8bac347c1c6c360ef55f84bc453 Signed-off-by: Atul Raut <araut@codeaurora.org>
2017-07-03drm/msm: Add a parameter query for the number of ringbuffersJordan Crouse
In order to manage ringbuffer priority to its fullest userspace should know how many ringbuffers it has to work with. Add a parameter to return the number of active rings. Change-Id: Ic0dedbada6010dd5122e8409141fd23b414d73e4 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-07-03drm/msm: Change the profiling structureJordan Crouse
Remove the queued time from the profile struct and turn the submit time into a proper timespec (tv_sec + tv_nsec). This should sync up better with what userspace is used to seeing. Change-Id: Ic0dedbad0621fa248e6cffde2d1ee3f9b609e19d Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-07-03drm/msm: Add kernel side submit profiling and tracingJordan Crouse
Record the GPU always on timer value at the start and end of a submission on the ringbuffer. Since the timer runs at a constant 19.2 Mhz this is a handy way of tracking how long each submission takes. The timer values are recorded in the memptrs. Each ringbuffer is given a circular list of 128 entries to store the event ticks; this should be enough to avoid running out of room even when the ring is completely full of submissions. Add trace events for the user to track when submissions are queued, submitted to the ringbuffer and retired. The submitted trace point shows the GPU ticks and the current kernel time at submit time (as read by the CPU) and the retired trace event shows the GPU ticks at submission start/end as read by the GPU. Taken together these two events can provide a pretty close match between the current GPU time and the kernel time which is handy for tracing tools that try to match up the various kernel events with one another. Change-Id: Ic0dedbadbcf89f032890820785b9fb49a6362b01 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2017-07-03Merge "ARM: dts: msm: Add l2pc-cpu-mask to avoid L2PC on masked CPUs for ↵Linux Build Service Account
msm8998"
2017-07-03Merge "mmc: core: Remove unused variable"Linux Build Service Account
2017-07-03Merge "power: qcom: smb-lib: handle dynamic Rp change"Linux Build Service Account
2017-07-03Merge "ARM: dts: msm: Add remote debugger device configuration for sdm660"Linux Build Service Account
2017-07-03Merge "osq_lock: fix osq_lock queue corruption"Linux Build Service Account
2017-07-03Merge "msm: sde: Cache capture fence descriptor"Linux Build Service Account
2017-07-03Merge "msm: mdss: unmap buffers before starting Secure Display session"Linux Build Service Account
2017-07-03Merge "msm: sde: fix unaligned access problem"Linux Build Service Account
2017-07-03Merge "fbdev: msm: Add check for ioctl calls"Linux Build Service Account
2017-07-03Merge "Merge branch 'android-4.4@77ddb50' (v4.4.74) into 'msm-4.4'"Linux Build Service Account
2017-07-03Merge "ARM: dts: msm: Disable IPA in APQ 8098"Linux Build Service Account
2017-07-03Merge "ipv4: Drop packets if checksum is invalidated"Linux Build Service Account
2017-07-03Merge "usb: bam: Remove inactivity_timer sysfs attribute"Linux Build Service Account
2017-07-03Merge "msm: actuator: Add protection condition for move focus"Linux Build Service Account
2017-07-03Merge "USB: f_audio_source: Remove pm_qos request under non atomic context"Linux Build Service Account
2017-07-03Merge "msm: camera: isp: Avoid reading stale ping pong status"Linux Build Service Account
2017-07-03Merge "osq_lock: avoid live-lock issue for RT task"Linux Build Service Account
2017-07-03Merge "cpu-hotplug: Keep atleast 1 online and un-isolated CPU"Linux Build Service Account
2017-07-03Merge "spi: spi_qsd: serve set_cs call only for valid device status"Linux Build Service Account
2017-07-03Merge "ath10k: Populate ACS survey results"Linux Build Service Account
2017-07-03Merge "cgroup: Fix potential race between cgroup_exit and migrate path"Linux Build Service Account
2017-07-03cpuidle: lpm-levels: Check for negative sleep timesNaresh Malladi
A negative sleep time could be interpreted as a large positive sleep time when its casted to a unsigned type. This could result in CPU sleeping for a longer than expected duration resulting in missed interrupts. Change-Id: I472f355c8ba392ab46d53fceddb448f7e35c178e Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org> Signed-off-by: Maulik Shah <mkshah@codeaurora.org> Signed-off-by: Naresh Malladi <namall@codeaurora.org>
2017-07-03ARM: dts: msm: Add l2pc-cpu-mask to avoid L2PC on masked CPUs for msm8998Gaurav Sonwani
This is required to add a PM QOS request to disallow L2PC on masked CPUS. It improves queue to submit time for first set of GPU commands which results in GPU wake up. Change-Id: If7e0925ec76065158188671f1d11a0de5e9900aa Signed-off-by: Gaurav Sonwani <gsonwani@codeaurora.org>
2017-07-03mmc: core: Remove unused variableVijay Viswanath
Removed a local variable in mmc_start_req() which was used to store the error encountered while starting a new data request. If an error is encountered while starting a new request, the error information is stored in the mrq. The error information stored in the mrq is during error handling. So removing the unused variable. Change-Id: Ifeedc91433230d5156d286bd332a85fb221188ac Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
2017-07-03msm: camera: add protection in the cci write functionWei Ding
Add state check before execute CCI function. Change-Id: I1c876e4eac70316bfe322b11f807e367c020e7d0 Signed-off-by: Wei Ding <weiding@codeaurora.org>
2017-07-02osq_lock: fix osq_lock queue corruptionPrateek Sood
Fix ordering of link creation between node->prev and prev->next in osq_lock(). A case in which the status of optimistic spin queue is CPU6->CPU2 in which CPU6 has acquired the lock. At this point if CPU0 comes in to acquire osq_lock, it will update the tail count. After tail count update if CPU2 starts to unqueue itself from optimistic spin queue, it will find updated tail count with CPU0 and update CPU2 node->next to NULL in osq_wait_next(). If reordering of following stores happen then prev->next where prev being CPU2 would be updated to point to CPU0 node: node->prev = prev; WRITE_ONCE(prev->next, node); At this point if next instruction WRITE_ONCE(next->prev, prev); in CPU2 path is committed before the update of CPU0 node->prev = prev then CPU0 node->prev will point to CPU6 node. At this point if CPU0 path's node->prev = prev is committed resulting in change of CPU0 prev back to CPU2 node. CPU2 node->next is NULL currently, so if CPU0 gets into unqueue path of osq_lock it will keep spinning in infinite loop as condition prev->next == node will never be true. Change-Id: I48d847096daf3c228de90ae1cd2a6415b7bde65a Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2017-07-02Merge "msm: kgsl: Limit the frequency of logging on memory allocation failure"Linux Build Service Account
2017-07-02Merge "msm: kgsl: Directly return page size of the supported pool"Linux Build Service Account
2017-07-01power: qcom: smb-lib: handle dynamic Rp changeAshay Jaiswal
The legacy detection workaround change restricts DCP to 1.5A draw, regardless of legacy/non-legacy type. This was to prevent a legacy (non-compliant) cable, incorrectly detected as non-legacy cable from drawing more than 1.5A. The issue with legacy bit is that hardware could end up reporting non-legacy for a legacy cable (not the other way round). We want to ensure that for non-compliant legacy cable SDP/CDP current limits are honoured and that for a Rp = 10k legacy cable VBUS shouldn't go higher than 5V. This cap of 1.5A on DCP is not necessary. Moreover AICL will limit the current if needed. To realize this force the Rp based current whenever DCP or float is seen via the LEGACY_UNKNOWN_VOTER. LEGACY_UNKNOWN_VOTER is not removed unless a confirmed hvdcp or pd is seen. Change-Id: I89505e9db4f045aaf71ab0ee534de783ea4d2df3 Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org> Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-06-30msm: kgsl: Limit the frequency of logging on memory allocation failureDeepak Kumar
Excessive logging due to several successive memory allocation failure may cause a watchdog bite. Hence, this change adds ratelimit to logging on memory allocation failure. Change-Id: I8e5d78918a32c48ef7fa587f3dc63cbd1f065d5f Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-06-30msm: camera: isp: Handle array out of bound accessSriraj Hebbar
The pointer req_frm is coming from userspace, it may overflow stream_info. Adding a bound check to prevent the same. CRs-fixed: 2008683 Change-Id: I8682e09ff2ab7ba490bbbd9e20db978493c5f3e4 Signed-off-by: Senthil Kumar Rajagopal <skrajago@codeaurora.org> Signed-off-by: Andy Sun <bins@codeaurora.org>
2017-06-30osq_lock: avoid live-lock issue for RT taskPrateek Sood
Live Lock due to task spinning while unqueue of CPU osq_node from optimistic_spin_queue. Task T1 had decremented mutex count to acquire the lock on CPU0. Before setting owner it got preempted. On CPU1 task T2 acquired osq_lock and started spinning on owner of mutex with preemption disabled. CPU1 runq has one task, so need_resched will not be set. On CPU0 task T3 tried to acquire osq_lock to spin on the same mutex. At this time following scenario causes soft lockup: After preemption of task T1, RT task T3 tried to acquire the same mutex. It will start spinning on the osq_lock until the lock is available or need_resched is set. For RT task, need_resched will not be set. Task T3 will not be able to bail out of the infinite loop. Change-Id: Ifd7506047119a22e14b15459ac6b04b410ba1c84 Signed-off-by: Prateek Sood <prsood@codeaurora.org>
2017-06-30ipv4: Drop packets if checksum is invalidatedTejaswi Tanikella
Conntrack, if enabled, verifies complete checksum on all tcp packets. If a packet is corrupted, it sets ip_summed field to CHECKSUM_COMPLETE and checksum valid field to false. With these changes such packet will be dropped. Packets that are corrupted can go into userspace even when the checksum is wrong. The io_vec library pushes the data into pipe before checking the checksum. If the checksum is wrong, the copied data is not reverted. Users observe corrupted data in the application memory due to such corrupted packets. This fix is to plug one such hole. This change might be redundant on kernels after v4.9. Change-Id: Iffface598d0fa2b25fb9c20c7aa6443aab9d8aea Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org>