Commit graph

569205 commits

Author SHA1 Message Date
Deepak Katragadda
5dda28c7bd clk: msm: clock-gpu-cobalt: Use the xo_ao source for GPUCC
The root clock for all GPUCC clocks, gpucc_cxo_clk is currently
being sourced off the cxo_clk_src clock. This will not allow XO
shutdown to happen. Use the cxo_clk_src_ao instead.

CRs-Fixed: 983874
Change-Id: I7f8dd9ea28114d3d06fec3397064356b4deb6e7e
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-03-25 16:02:50 -07:00
Carter Cooper
3ad47c7df0 msm: kgsl: Streamline ringbuffer initialization
Move device specific features to the device rather than trying
to do them in the common initialization code.

Change-Id: I812db29a2eae90ca532755c265aaa2e52db972d7
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
2016-03-25 16:02:49 -07:00
Ajay Singh Parmar
8e9072d633 msm: mdss: hdmi: hdcp: load keys separately before authentication
Retrieve and load the HDCP keys before starting authentication so
that HDCP internal state machine can be initialized completely on
cable connection to avoid possible authentication failures.

Change-Id: I873fb02589bb6c19938743d44dc56ed1cfff7260
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-03-25 16:02:49 -07:00
Phani Kumar Uppalapati
aea583fcef ARM: dts: msm: Add codec reset gpio device node for msm8996
Add codec reset gpio device tree node for msm8996 target
specifying active and sleep pinctrl states.

CRs-Fixed: 968161
Change-Id: I040e8f54c6c86ab66d7fc824d5aab006f8d5f08f
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-03-25 16:02:48 -07:00
Sushmita Susheelendra
82dd02436d msm: kgsl: Disable guardpage for A5x and suppress pagefaults
Disable the guardpage workaround for A5x and instead
selectively suppress pagefaults. Suppress read pagefaults
that are likely caused due to UCHE overfetches. For this,
the fault address must be within the first 64 bytes of a
page and the fault page must be preceded by a valid allocation.

CRs-Fixed: 975293
Change-Id: I6a0995af3ab4129c6923726043c5f34c747641f9
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
2016-03-25 16:02:48 -07:00
Ravinder Konka
1d7b749427 msm: ipa: use timeout mechanism for holb monitoring command
When we use polling mechanism for holb monitoring command
Uc will still try to send a interrupt to notify the response.
This can result in a sync mismatch between AP and Uc and will
result in a panic. Make changes to use timeout mechanism
for holb monitoring command as well.

Change-Id: I8c74cfedff30f90dceec7f89b153018c307afa0a
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Ravinder Konka <rkonka@codeaurora.org>
2016-03-25 16:02:47 -07:00
Gidon Studinski
019f25d9e8 msm: ipa: fix multiple issues
Fix multiple Static Analysis issues.

CRs-Fixed: 964748
Change-Id: I5a47d03a5b134235ec0cb6e87d83c30193481016
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
2016-03-25 16:02:47 -07:00
Yeleswarapu Nagaradhesh
1797f0368c ASoC: wcd_cpe_core: initialize return variable
The return variable is initialized if there is an error and is
left uninitialized otherwise. There is a possibility of returning
garbage.

CRs-Fixed: 980968
Change-Id: I2a21ef7934472ae2fd59d6277df4b3e9b401b489
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-03-25 16:02:46 -07:00
Kaushal Kumar
f9b5c372bb Revert "of/platform: Move platform devices under /sys/devices/platform"
This reverts commit 43c0767e17 ("of/platform: Move platform
devices under /sys/devices/platform"). Userspace code that
expects to find devices under a fixed /sys/devices/... path are
affected by moving platform devices under /sys/devices/platform.

Change-Id: I6a108c46c1b2e3985797bb86a3ed84a29ab286a8
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
2016-03-25 16:02:46 -07:00
Sivan Reinstein
b2d171c18b msm: ipa: protect qmi context using mutex
This change adds logic to prevent invalid access of qmi ctx
during SSR clean up using mutex.

Change-Id: I689deaf093909a951a9e5847241ee3938fea240b
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Acked-by: David Arinzon <darinzon@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
Signed-off-by: Ravinder Konka <rkonka@codeaurora.org>
2016-03-25 16:02:45 -07:00
Yeleswarapu Nagaradhesh
b43518d9f5 ASoC: wcd: update handling of invalid cases
initialize return variable and add default case inside the
switch statement.

CRs-Fixed: 980968
Change-Id: If1fe566a8f88f1384826670220b8352310a3f996
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-03-25 16:02:45 -07:00
Ashay Jaiswal
3ad71a8681 power: smb135x-charger: report icl status in parallel mode
Report the input current limited status via the power supply in
parallel mode in order to better optimize for HVDCP usecases.

Change-Id: Ibd3865828ccbfa44b36839f5d11e7a60b7ada77d
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-03-25 16:02:44 -07:00
Tirupathi Reddy
0dc93b15a8 regulator: cpr4: Add miscellaneous fuse based voltage adjustments
Apply voltage adjustments for required voltage corners based on
different values of selected miscellaneous fuse bits. Apply the
adjustments to both open-loop voltages and closed-loop target
quotients.

CRs-Fixed: 982984
Change-Id: Ic45949afc8445d35c245434a7f51e4859a5978ad
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2016-03-25 16:02:44 -07:00
Sravanthi Kollukuduru
7f3712ee81 msm: mdss: Swap the LP1 and LP2 flags
The LP1 and LP2 flags must be swapped to be in accordance
with the old HAL mapping used by MDP3 driver.

Change-Id: Id4b0b41d102f9aef2836901b2bea5e961ec0962b
Signed-off-by: Sravanthi Kollukuduru <skolluku@codeaurora.org>
2016-03-25 16:02:43 -07:00
Laxminath Kasam
3369208e89 ASoC: Initialize val to avoid access garbage value
In DAPM, when booting up widgets connect variable
is sometimes initialized with value 1 even though
expected to be 0. This is due to val not initialized
locally in API dapm_set_mixer_path_status and can
result in using garbage value.

CRs-Fixed: 982805
Change-Id: I172558f64c19750c461befda3aa16ca6480ab507
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-03-25 16:02:42 -07:00
Deepak Katragadda
8de5713e78 clk: msm: clock: Source the RBCPR clock from active-only XO resource
Use the cxo_clk_src_ao resource to source the HMSS CPR RCG. In
addition, remove it's vote on the CX rail since CX is guaranteed
to be at least SVS2 as long as even one CPU is online.

CRs-Fixed: 983870
Change-Id: I5a4d37310e56235a590e8a93dc8a33d6c3e46e4d
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-03-25 16:02:42 -07:00
Jack Pham
228f6d6f8b ARM: dts: msm: Add USB VBUS configuration for MSM8996 CDP_AU
USB 5V VBUS can be switched independently for the two USB
instances on the CDP_AU board. Add the PM8994 GPIO/MPP
configurations and expose them as usb_vbus_vreg,
usb_otg_switch and usb2_otg_switch regulators that can be
controlled by the USB controller device instances.

Also fix up the &usb3 node. Due to commit c51ea2bbbce87
("ARM: dts: msm: Add GIC ITS extensions for 8996") changing
the size of address-cells for the &intc node, the interrupt-map
property needs to be updated to the new format. Also update
the correct IRQ numbers and add the missing ss_phy_irq to
sync up with the msm8996 SOC DT definition. Finally, remove
the unused vdda supply entries as well.

CRs-fixed: 971957
Change-Id: Id53f0a54e16b194bc12e57fac3e52efc43ebdc6c
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-03-25 16:02:41 -07:00
Deepak Katragadda
dc20a2e38b clk: msm: clock-mmss-cobalt: Add support for some display clocks
The mmss_mdss_byte0/1_intf_clk clocks are needed by the display
driver. Add support to program them in the clock driver.

CRs-Fixed: 981902
Change-Id: I17b1ecaec9c98261faa49c6f088c4802a716ecf7
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-03-25 16:02:41 -07:00
Runmin Wang
be330463b1 ARM: dts: msm: Disable watchdog on MSMCOBALT Virtio
Turn off watchdog on Virtio on MSMCOBALT.

CRs-Fixed: 983131
Change-Id: I2684d52b95cb446013d2620de252b6abe3e1e5bd
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-03-25 16:02:40 -07:00
Prakash Kamliya
4689a97525 msm: kgsl: Change the active context tracker
The active context tracker that we bolted on the side of the
dispatcher was designed mainly to see if there was 1 OR more than 1
active context, not much more than that.  Since it is apparent that
we'll need to track up to 4 contexts and possibly more later the
algorithm needs to change.

The new algorithm puts all active contexts on a linked list  - every
time a context is used it is popped from the list and put on the
tip with an updated time. To count the number of active contexts
walk the list until you get a context with an active time older than
you are looking for.  You also can do other magic on the context,
like see if it matches up with a given command queue.

Change-Id: Ic0dedbad6be9fd1925121ee54e0000c42b089f44
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Prakash Kamliya <pkamliya@codeaurora.org>
2016-03-25 16:02:40 -07:00
Vijayavardhan Vennapusa
117c9a3b27 USB: dwc3-msm: Enable power event irq in case of host bus suspend
Currently MPM pin for DP line state change is not mapped to irq.
Only MPM for DM line state chagne is mapped to hs_phy irq. But this
results in delayed device detection in VDDmin when HS/FS devices
are connected in host mode. Hence enable power event irq during
host bus suspend so that MPM pin for DP line state can be also
mapped for early detection of HS/FS devices during VDDmin.

CRs-Fixed: 972212
Change-Id: I71d7c3c374a23b51a0489cf44410d76d5734d009
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-03-25 16:02:39 -07:00
Ingrid Gallardo
88e3bbd091 msm: mdss: fix to update the configuration for display related GPIOs
After commit dbe80b7cc96a1f3f23246552fbd2352f334fa857 ("ARM: dts: msm:
remove gpio output settings in dsi pinctrl") driver is no longer
defining in the pinctrl the gpios as output high configuration;
so driver now has to explicitly configure gpio output direction.
This change add the settings in the driver to configure the gpio
as output pin, fixing panel issues when booting-up with
continuous splash disabled.

Change-Id: I1ac3c5dd07cff4a30cce9de3c340f071dd84d49a
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-03-25 16:02:39 -07:00
Devdutt Patnaik
d5d9af1ba9 usb: f_gsi: Add support for DPL suspend/resume
Fixes EP configuration for DPL resume sequence.
Sets correct interrupter number for DPL composition
and also checks for NULL on notify EP in the
resume path.

CRs-Fixed: 983160
Change-Id: I7e9bf0aa839e63d8cfe801d3b81dd5f48a315575
Signed-off-by: Devdutt Patnaik <dpatnaik@codeaurora.org>
2016-03-25 16:02:38 -07:00
Shashank Mittal
e39b9e71e0 ARM: dts: msm: add CTI devices for msmcobalt
Add CTI devices for msmcobalt target. These devices can be used to
send cross triggers between different components

Change-Id: Ia5902c62b699c5f373f567dd18cbe38f10a275a3
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-03-25 16:02:38 -07:00
Shashank Mittal
3a727d709c coresight: add CTI driver support in upstream implementation
Add CTI driver in upstream implementation of Coresight driver.

This change copies drivers/coresight/coresight-cti.c (commit :
c155168578a793cafa0c41132554ac5af94926f1) to driver/hwtracing/coresight
directory.

Change-Id: I4b4b23755c36254d94bd6698b46f15da19c30712
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-03-25 16:02:37 -07:00
Shashank Mittal
7d151e606e coresight: set invalid default cpu id
Current code sets default CPU id as of CPU0. This causes a failure in
case where device tree declares a CoreSight node that is associated with
a CPU that's not available on that target. This causes complete failure of
the system.

Set default CPU id to -1 to avoid this problem.

Change-Id: I77e5f734666a5f806013d685e89902ce5983cf49
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-03-25 16:02:37 -07:00
Oleg Perelet
019f188ab5 msm: kgsl: Change GPU RAC hardware clockgating
On A5xx disable LRZ clockgating, by setting 0x0
for bits 18:16 of RBBM_CLOCK_CNTL2_RAC.

CRs-Fixed: 964234
Change-Id: Icf858e3431e1c7f9943762067a74b1ce2af7ca6f
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-03-25 16:02:36 -07:00
Padmanabhan Komanduru
26b57cf172 clk: msm: mdss: update the frame rate count supported for DFPS
Update the number of frame rates supported for dynamic refresh
feature from 10 to 20. This is needed to support all the fps
values requested by display HAL between minimum fps and maxiumum
fps based on the requirement.

Change-Id: Ib7487ad17261ac8c4d6929787899161061e71078
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2016-03-25 16:02:36 -07:00
Prasad Sodagudi
efea890321 genirq: call cancel_work_sync from irq_set_affinity_notifier
When ever notification of IRQ affinity changes, call
cancel_work_sync from irq_set_affinity_notifier to cancel
all pending works to avoid work list corruption.

Change-Id: I1f093bcc43be8c6696bad29250e4926cbc6c4029
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2016-03-25 16:02:35 -07:00
Mao Li
954d864622 input: synaptics_dsx_2.6: update driver to enable touch S332U
Synaptics reference driver V2.6 is being cleaned up to enable touch
controller S332U. Add Kconfig and Makefile changes to enable Synaptics dsx
V2.6 driver's compilation.

CRs-Fixed: 943896
Change-Id: I7e79e9ee321b7a7c90d27f065281dc73cee65391
Signed-off-by: Mao Li <maol@codeaurora.org>
2016-03-25 16:02:35 -07:00
Phani Kumar Uppalapati
07ceb38173 ASoC: wcd-mbhc: Avoid fake headset report during headphone remove
When headphone is removed while 3 second polling is still in progress,
mbhc hs comparator result will be read as "0" and this causes reporting
a fake headset insert event to user-space followed by headphone removal.
Avoid sending this fake headset insert event to user-space by checking
for the microphone clamp bit from codec mbhc hardware.

CRs-fixed: 941089
Change-Id: I96d96dca92a6c99bbb25ab70a2706e730c28818b
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-03-25 16:02:34 -07:00
Phani Kumar Uppalapati
4aaf0c05a5 drivers: mfd: Return EPROBE_DEFER during codec failure
In case of any codec access failure, return -EPROBE_DEFER
so that slimbus driver can probe the codec again
to toggle codec reset and retry codec access.

CRs-fixed: 969497
Change-Id: I570e7357a6d7810c495f56bbb626b8e823892837
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-03-25 16:02:34 -07:00
Roberto Granados Dorado
92881d2ede ASoC: msm: qdsp6v2: Add missing routing for MI2S interfaces
This change adds some routing missing plus few other fixes needed
when MI2S interfaces are used.

CRs-fixed: 909961
Change-Id: Ic1e234c955a6162d67fd97ac7647ec810ede204c
Signed-off-by: Roberto Granados Dorado <robertog@codeaurora.org>
2016-03-25 16:02:33 -07:00
Harry Yang
fe96617b87 power: qpnp-smbcharger: return UNKNOWN in case of no charger present
POWER_SUPPLY_TYPE_USB_DCP type is returned in read_usb_type() if no
charger is connected, which might cause APSD to unnecessarily rerun.
To fix it, POWER_SUPPLY_TYPE_UNKNOWN should be returned instead.

A bug is also fixed by returning right after IDEV_STS register
read error in this function .

CRs-fixed: 963745
Change-Id: Ia399e05fe8d0ad13c2f1f272c6737e8798177174
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-03-25 16:02:32 -07:00
Manaf Meethalavalappu Pallikunhi
c35b73cf03 msm: lmh_lite: Pass proper size for dma memory free API call
Use proper size for dma memory free call API while saving lmh sensors
list in lmh hardware driver otherwise it leads to memory leak or
unexpected crash if scm_call error path is executed.

CRs-Fixed: 982320
Change-Id: I31ac79585c8899b44ece745676d9af79fe8bca78
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2016-03-25 16:02:32 -07:00
AnilKumar Chimata
9a11e43908 qseecom: Remove the dead code from driver
For kernel clients, some of the flags are maintained which is not required
as those are specific to userspace clients. So remove the code which is
not required.

Change-Id: If7fb51cc17e9a8c0f3c2632e9c42d84489bda4f6
Signed-off-by: Mallikarjuna Reddy Amireddy <mamire@codeaurora.org>
2016-03-25 16:02:31 -07:00
David Collins
73c7ed27c7 ARM: dts: msm: raise APCC CPR floor to 625 mV for CPR Rev < 6 on msm8996v3
A small fraction of MSM8996v3 parts with CPR revision 0 to 5 may
not operate properly at very low VDD_APCC voltages.  Therefore
increase the VDD_APCC CPR floor voltage for these parts to 625 mV
in order to guarantee stable operation.

Also change the maximum CPR floor to ceiling voltage range from
80 mV to 50 mV for all MinSVS and LowSVS corners in order to
ensure stable operation.

Change-Id: I71c32aac8ef7d54dfcf48098aaf5d5909762df15
CRs-Fixed: 981898
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-03-25 16:02:31 -07:00
Devesh Jhunjhunwala
a6d5966010 msm: qpnp-misc: add support to configure PWM source
Add the qcom,pwm-sel and qcom,enable-gp-driver properties to
the MISC device driver to enable configuring the PWM source.
Currently this will be supported only for pmdcalifornium.

CRs-Fixed: 972331
Change-Id: I320edac22b20d748a531a41eaff06162092cfd3d
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-03-25 16:02:30 -07:00
Jonathan Wicks
bdc703239b msm: kgsl: Add documentation to the new cmdbatch profiling flag
Add documentation for KGSL_CMDBATCH_PROFILING_KTIME to make it
clear that KGSL_CMDBATCH_PROFILING must also be set.

CRs-Fixed: 977455
Change-Id: I44f9dbc006450fbe226b642ee66b8d49dd1108cc
Signed-off-by: Jonathan Wicks <jwicks@codeaurora.org>
2016-03-25 16:02:30 -07:00
Padmanabhan Komanduru
ce96391696 clk: msm: mdss: update the programming of DYNAMIC_REFRESH_PLL_UPPER_ADDR2
As part of dynamic refresh sequence, we program PLL_UPPER_ADDR2 register to
0x003FFE00 instead of 0x001FFE00. This causes a register write to
DSIPHY_PLL_KVCO_COUNT1 to 0x1 during the dynamic refresh operation whereas
the register write is supposed to happen for DSIPHY_CMN_PLL_CNTRL register.
Update the write value to DYNAMIC_REFRESH_PLL_UPPER_ADDR2 to take care
of this.

Change-Id: I991920d5a45e79670a4a033c8a83bef6c7f3136b
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2016-03-25 16:02:29 -07:00
Srinu Gorle
dcb0035091 msm: vidc: Remove read-only flags for profile and level clusters
Due to chipset max capabilities considered in buffer population,
secure scenarios are failing due to limited CMA size.
Remove read-only flags for profile and level clusters to allow
omx component set.

CRs-Fixed: 973470
Change-Id: I28c8318bd356ebb01258c1ec946215a838f81827
Signed-off-by: Srinu Gorle <sgorle@codeaurora.org>
2016-03-25 16:02:29 -07:00
Sandeep Panda
8e955dcd62 msm: mdss: add support to read hpd state from sysfs node
This change adds support to read HPD state from sysfs node,
which will be helpful in automated test cases where multiple
HPD operations are performed on HDMI TV.

Change-Id: I39d19447c01d11a54a8e54c661b2dd177310c205
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2016-03-25 16:02:28 -07:00
Veera Sundaram Sankaran
94c6261fe7 msm: mdss: fix simulator panel SW-TE parameters
In simulator panel SW-TE approach, we rely on the sync config
height, init, start_pos and read ptr TE parameters. Set start_pos,
init and read ptr with respect to panel yres, as it is done in
the default settings when it is used with an actual panel.
Setting these parameters with respect to 0 causes fps drops.

Change-Id: I9acf4d1558767e7789a5e37dc2444f947d11eb21
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-03-25 16:02:28 -07:00
Nikhilesh Reddy
29a9db20f4 ARM: dts: msm: Add rmts shared memory node for msmcobalt
Add rmts shared memory node for msmcobalt to support EFS
on the modem.

CRs-Fixed: 980874

Change-Id: Ic869dd739f7efd880d574bcc1f730d9d04d9c456
Signed-off-by: Nikhilesh Reddy <reddyn@codeaurora.org>
2016-03-25 16:02:27 -07:00
Manoj Prabhu B
dd5635cc18 diag: Fix possible null pointer dereference
This patch checks for Null Pointer dereference before destroying the
diag mempools.

CRs-Fixed: 980428
Change-Id: I0e8fc8aa82ad26263bd9d47cbdd22de212efe489
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-03-25 16:02:27 -07:00
Derek Chen
087239d3de ARM: dts: msm: add sec_mi2s node and gpio for msm8996
Add sec_mi2s device node and gpio information for msm8996.
Configure sec_mi2s gpio through sec_mi2s device probing for
automotive Agave platform.

CRs-fixed: 973481
Change-Id: I4793ba8bdd922fa712652c89f7ac7d88e996fef3
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2016-03-25 16:02:26 -07:00
Benet Clark
bf5d9035d2 msm: mdss: Fix PA memory color read sequence for foliage HOLD values
The memory color values for the left and right hold of foliage were
incorrectly returning the values for sky. This change fixes the foliage
hold values that will be returned during read.

CRs-Fixed: 968059
Change-Id: Ib5c2ae9b8fbe8817d730104ace88f20f04b59d17
Signed-off-by: Benet Clark <benetc@codeaurora.org>
2016-03-25 16:02:26 -07:00
Ingrid Gallardo
5d939cb0f1 msm: mdss: add sysfs to generate the misr crc during interrupts
This change add a sysfs node to enable the misr crc generation
in batch mode. Once this is enabled, driver will collect the
crc numbers during each of the interfaces interrupt,
vsync interrupt for video mode panels and ping pong done
for cmd mode panels.

To enable/disable the crc generation, respectively:
echo 1 > /sys/class/graphics/fb0/msm_misr_en
echo 0 > /sys/class/graphics/fb0/msm_misr_en
To collect the last crc generated:
cat /sys/class/graphics/fb0/msm_misr_en
To enable the ftrace to collect the crc for all frames:
echo 1 > <debugfs>/tracing/events/mdss/mdp_misr_crc/enable

CRs-Fixed: 964076
Change-Id: I47fb47b772aef097bc9af3b58a6c79565bcdc872
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-03-25 16:02:25 -07:00
Ingrid Gallardo
0bcdf73733 msm: mdss: fix misr offsets for 8996 cmd mode
Set the correct offsets of the MISR for command mode
interfaces in 8996.

CRs-Fixed: 964076
Change-Id: I90c7fa1ff144ae547cc0537421211a73051f1036
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-03-25 16:02:25 -07:00
Chris Lew
029eebcb5e diag: Close MD session when switching to USB Mode
Cannot switch from  memory device logging to USB Mode after
the first switch because the first MD state is stored.
This fix resets the MD state by closing the session when
switching to USB Mode from MD mode.

Change-Id: I9addf0c7d8f1c058485349e196c1dcaa54b92f3a
CRs-Fixed: 972027
Signed-off-by: Chris Lew <clew@codeaurora.org>
2016-03-25 16:02:24 -07:00