Commit graph

591632 commits

Author SHA1 Message Date
Linux Build Service Account
8267ab99bd Merge "firmware: qcom: tz_log: update interrupt info offset" 2017-07-04 18:14:08 -07:00
Linux Build Service Account
27d09a21d1 Merge "msm-camera: sensor: Fixing kernel crash during i2c read" 2017-07-04 10:05:32 -07:00
Linux Build Service Account
ae03bcca0a Merge "lpm-levels: Enter shallowest state if predicted sleep length is less" 2017-07-04 10:05:31 -07:00
Linux Build Service Account
eacfb14b93 Merge "ASoC: msm-cpe: Resolve memory out of bound access" 2017-07-04 10:05:30 -07:00
Linux Build Service Account
a6e752c97f Merge "ARM: dts: msm: Add support for MPM wakeup capability for audio interrupt for SDM660/630" 2017-07-04 10:05:29 -07:00
Linux Build Service Account
1c7cda658f Merge "msm: ispif: fix crash during dumping io register" 2017-07-04 10:05:28 -07:00
Linux Build Service Account
a9194dae5a Merge "cnss_utils: Add support of cnss_utils for WLAN" 2017-07-04 10:05:27 -07:00
Linux Build Service Account
8012ae66a7 Merge "drm/msm/sde: remove extra entries from interrupt table" 2017-07-04 10:05:22 -07:00
Linux Build Service Account
b14c620eb1 Merge "ASoC: sdm660_cdc: Prevent MICBIAS1 enable during headset record" 2017-07-04 01:21:03 -07:00
Linux Build Service Account
48b492e8e1 Merge "ASoC: wcd-mbhc: Disconnect ANC from RX chain during plug removal" 2017-07-04 01:21:02 -07:00
Linux Build Service Account
8775c10a30 Merge "ASoC: msm: qdsp6v2: add size check to fix out of bounds issue" 2017-07-04 01:21:01 -07:00
Linux Build Service Account
8661bf1cf3 Merge "ASoC: wcd9335: Add counter to maintain count of functions voting for max bw" 2017-07-04 01:21:00 -07:00
Linux Build Service Account
9081293223 Merge "genirq: honour default IRQ affinity setting during migration" 2017-07-04 01:20:58 -07:00
Linux Build Service Account
22d1c0de3b Merge "msm: ipa: prevent string buffer overflows" 2017-07-04 01:20:57 -07:00
Linux Build Service Account
5f7c3c00d4 Merge "msm: ipa: fix IPA MHI unit tests" 2017-07-04 01:20:55 -07:00
Linux Build Service Account
a8e21e678d Merge "drm/msm: Add a parameter query for the number of ringbuffers" 2017-07-04 01:20:54 -07:00
Linux Build Service Account
4a528fd7b8 Merge "drm/msm: Add kernel side submit profiling and tracing" 2017-07-04 01:20:53 -07:00
Linux Build Service Account
01f0e05f48 Merge "msm: camera: add protection in the cci write function" 2017-07-04 01:20:52 -07:00
Linux Build Service Account
4d8e12a8e6 Merge "msm: camera: isp: Handle array out of bound access" 2017-07-04 01:20:51 -07:00
Linux Build Service Account
caad37816b Merge "msm: mdss: fix the pixel clock calculation for fb modes" 2017-07-04 01:20:50 -07:00
Haibin Liu
95824e6e54 msm: ispif: fix crash during dumping io register
Check whether ispif->base is null before dumping.

CRs-Fixed: 2046207
Change-Id: Ib026632252b43bb4d607ba00188c4c4143c1725e
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
2017-07-03 23:59:28 -07:00
Srinivas Rao L
e7072f8ed2 lpm-levels: Enter shallowest state if predicted sleep length is less
If lpm_cpuidle_predict returns the prediction value less than the
minimum residency of shallowest mode, then this case was considered
as not predicted. This allows core to enter into deeper states.
Instead in this case, use the minimum residency of
the shallowest state as the predicted sleep length.

Change-Id: Ib5bd1779e305262aef018f82f57d30ec22162b5b
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
Signed-off-by: Naresh Malladi <namall@codeaurora.org>
2017-07-04 11:20:28 +05:30
Tanvi Aggarwal
1e498718d2 msm-camera: sensor: Fixing kernel crash during i2c read
When userspace uses ioctl(), kernel should get the data from
userpsace through copy_from_user() or get_user() and send it
back to userpsace though copy_to_user() or put_user().
In this case, kernel is not using put_user or copy_to_user
which is leading to a crash during I2C read when it tries to
access memory.

CRs-Fixed: 2058381
Change-Id: Ie5596b62cb589ee048e54f37c7e6beda0d62cad5
Signed-off-by: Tanvi Aggarwal <tanvia@codeaurora.org>
2017-07-03 22:05:47 -07:00
Skylar Chang
f0a066a778 msm: ipa: fix IPA MHI unit tests
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-03 17:23:14 -07:00
Skylar Chang
754752faec msm: ipa: fix mhi suspend logic
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-03 17:22:09 -07:00
Linux Build Service Account
de207d8feb Merge "defconfig: arm64: msm: Enable virtual platform" 2017-07-03 15:52:33 -07:00
Linux Build Service Account
ead5fd4f66 Merge "cpuidle: lpm-levels: Check for negative sleep times" 2017-07-03 15:52:32 -07:00
Linux Build Service Account
f9b5ebb0c8 Merge "mm: add vfree_atomic()" 2017-07-03 15:52:29 -07:00
Linux Build Service Account
d4d87115fd Merge "mm: refactor __purge_vmap_area_lazy()" 2017-07-03 15:52:28 -07:00
Linux Build Service Account
3aa63aa4e4 Merge "defconfig: Enable TSPP, MPQ and MPQ_DEMUX for apq8098" 2017-07-03 15:52:27 -07:00
Atul Raut
2bb686dccd defconfig: arm64: msm: Enable virtual platform
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-03 13:15:39 -07:00
Jordan Crouse
9d7874731a drm/msm: Add a parameter query for the number of ringbuffers
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-03 13:40:27 -06:00
Jordan Crouse
48db6e4716 drm/msm: Change the profiling structure
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-03 13:40:27 -06:00
Jordan Crouse
130cbfae08 drm/msm: Add kernel side submit profiling and tracing
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-03 13:40:26 -06:00
Linux Build Service Account
a25d728775 Merge "ARM: dts: msm: Add l2pc-cpu-mask to avoid L2PC on masked CPUs for msm8998" 2017-07-03 07:58:21 -07:00
Linux Build Service Account
bb52d80acc Merge "mmc: core: Remove unused variable" 2017-07-03 07:58:03 -07:00
Linux Build Service Account
2357b8b580 Merge "power: qcom: smb-lib: handle dynamic Rp change" 2017-07-03 07:58:02 -07:00
Linux Build Service Account
e3b04f4163 Merge "ARM: dts: msm: Add remote debugger device configuration for sdm660" 2017-07-03 07:58:01 -07:00
Linux Build Service Account
fe57f5f904 Merge "osq_lock: fix osq_lock queue corruption" 2017-07-03 07:58:00 -07:00
Linux Build Service Account
1b28f2e8fb Merge "msm: sde: Cache capture fence descriptor" 2017-07-03 07:57:59 -07:00
Linux Build Service Account
31b7a46caa Merge "msm: mdss: unmap buffers before starting Secure Display session" 2017-07-03 07:57:59 -07:00
Linux Build Service Account
99033c40bb Merge "msm: sde: fix unaligned access problem" 2017-07-03 07:57:58 -07:00
Linux Build Service Account
81d10d5081 Merge "fbdev: msm: Add check for ioctl calls" 2017-07-03 07:57:57 -07:00
Linux Build Service Account
74b5a0f867 Merge "Merge branch 'android-4.4@77ddb50' (v4.4.74) into 'msm-4.4'" 2017-07-03 07:57:56 -07:00
Linux Build Service Account
5fde2fc9b6 Merge "ARM: dts: msm: Disable IPA in APQ 8098" 2017-07-03 07:57:55 -07:00
Linux Build Service Account
30ae1652c5 Merge "ipv4: Drop packets if checksum is invalidated" 2017-07-03 07:57:55 -07:00
Linux Build Service Account
6944c59d4b Merge "usb: bam: Remove inactivity_timer sysfs attribute" 2017-07-03 07:57:54 -07:00
Linux Build Service Account
56b42b0237 Merge "msm: actuator: Add protection condition for move focus" 2017-07-03 07:57:53 -07:00
Linux Build Service Account
1eb22ad1f5 Merge "USB: f_audio_source: Remove pm_qos request under non atomic context" 2017-07-03 07:57:52 -07:00
Linux Build Service Account
2d1616b97e Merge "msm: camera: isp: Avoid reading stale ping pong status" 2017-07-03 07:57:52 -07:00