Commit graph

593380 commits

Author SHA1 Message Date
Ramesh V
03828cfb7d msm: camera: isp: Fix frame skip pattern
when HAL request to skip zsl frames, isp need to
configure and skip all snapshot frames.

Change-Id: Ib091b9c707e8df7df671d8a942fc94bbb92de0b3
Signed-off-by: Ramesh V <ramev@codeaurora.org>
2017-08-28 02:17:21 -07:00
Ray Zhang
60caee1725 drm/msm/sde: add connector support for power modes
This change enables a new LP property to specify panel specific
low power modes. This is needed to differentiate between normal
panel "on" and "on but low power" scenarios, something that
is not available through the standard DRM DPMS property.

The sde connector calculates a consolidated "power mode" setting
between the DPMS and LP properties and provides a callback to
the underlying display driver(s) whenever one of them is updated.

CRs-Fixed: 2071893
Change-Id: If5c80ac9eefbf1f119bcae5513ae18c7be6f618d
Signed-off-by: Clarence Ip <cip@codeaurora.org>
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-08-28 16:11:28 +08:00
Charan Teja Reddy
4285c6ba49 ARM: dts: msm: add coresight support on sdm/a 636
Remove device tree entries related to turing from coresight on sdm/a 636
target.

Change-Id: I22200dbb670d85d70a54caa61c110fd399b70211
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-08-28 12:30:13 +05:30
Ray Zhang
ca3d41d1fe drm/msm/sde: toggle vblank using enable state in display thread
Add enabled flag to the CRTC to be able to track the enabled or
disabled status in the display thread instead of the atomic
state. The atomic state is swapped prior to the display thread
dispatch. This is before the display thread executes the enable
or disable operation, so the state is not properly reflected for
a running VSYNC work item.
Also, simplify the CRTC VBLANK function structure to use a
single common function call to update the CRTC's VBLANK
registration with the encoder to avoid extra refs and unrefs.

CRs-Fixed: 2071893
Change-Id: I9b473becec15427b03b5ebf0333e10e4911dfd9b
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-08-27 23:53:27 -07:00
Satish Kodishala
f87ed5644d Enable multi-channel bit for SCO Tx with water mark level 1
Enabling multi-channel bit for SCO Tx is required to fix
random 0s getting inserted. Set water mark level 1 for
SCO Tx only.

CRs-Fixed: 2094921
Change-Id: Ic26ef47478ed2ae8edb05aeaec182bb170c4f32d
Signed-off-by: Satish Kodishala <skodisha@codeaurora.org>
2017-08-27 23:42:27 -07:00
Vatsal Bucha
7a068e6f02 ASoC: wsa881x: Fix wsa881x speaker damage
wsa881x speaker damage has been reported due to DC at
wsa output. Add a register setting which will reset
the soundwire when there are any
DC or synchronization issues.

CRs-Fixed: 2086505
Change-Id: I929d2eb7d096005e5089f3bfabded6901d81439e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-08-27 23:41:04 -07:00
Lloyd Atkinson
04639dcc26 drm/msm: add kconfig for enabling event log
Add Kconfig entry for enabling the SDE event logm which enables
event logging by default on boot.

Change-Id: I8d6efac588b9f8c818d6385b8399660a8a47c6de
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:35:17 -07:00
Lloyd Atkinson
3d062c91d6 drm/msm/sde: move sde irq printing out of drm_debug area
Move the debug print in the sde core irq out of the general
DRM DEBUG log area and into pr_debug directly to avoid flooding
the DRM general logs.

CRs-Fixed: 2005394
Change-Id: Ib9456bb49ed1d8c045f353b4a41f43575fc3fd03
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:35:09 -07:00
Lloyd Atkinson
1239127b2a drm/msm/sde: check for missed frame done after waiting
Fix disable callflow in sde encoder so that the physical
encoder has a chance to wait for the frame done first, before
the virtual encoder declares an error for a missed frame done
event in the encoder disable case.

Change-Id: Ifc6cad708ad98324eef31435e709ad763059abbf
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:35:01 -07:00
Lloyd Atkinson
773d72223e drm/msm/sde: wait for ctl reset before kickoff in video mode
Need to check for and wait for the unlikely event of a hardware
initiated CTL reset in video mode. Need to wait for the reset to
complete before initiating the next kickoff. If CTL reset fails
to complete, initiate a panic.

CRs-Fixed: 2005394
Change-Id: I27dfaf602a9c2ba2faacabe723a9593a39ed891e
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:34:54 -07:00
Lloyd Atkinson
9e1ae13071 drm/msm/sde: check in video encoder irq if ctl was flushed
Add logic in the SDE video encoder vblank irq handler to verify
that the hardware actually flushed before decrementing the
pending flush counter. This prevents incorrectly signaling that
the buffer was flipped.

Change-Id: Idd723f80a8a7f5f596654a784c3a76abe75c4f19
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:34:46 -07:00
Lloyd Atkinson
e26d5afdae drm/msm/sde: add rectangle utility functions to sde
Add rectangle intersection and other utility functions to the
sde kms utilities.

Change-Id: I10a1f60480df10a93541990b3efa347264c6432f
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:34:39 -07:00
Lloyd Atkinson
a5ee95f1fb drm/msm/sde: enforce pipe priority restrictions
Need to consider hardware pipe priority when validating an
atomic commit. Hardware requires certain source pipes to be
left-most compared to other source pipes when in source split
configurations.

CRs-Fixed: 2005394
Change-Id: I4a19fbe9f78db8e557720ef7973034fdbd2f8a58
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:34:22 -07:00
Lloyd Atkinson
9deb0a5c01 drm/msm/sde: fix register debug range printing
Add checks to sde debug facility to reject poorly formed
register block ranges. Add names for dsc and vbif register
blocks. Register the vbif hw block under the vbif base register.
Fix the names of the printed register blocks to be 0 based as
expected. Fix the DSC register length initialization. Sort
register ranges before printing. Register mdp top block
address before dumping the sde debug bus.

Change-Id: I0179d59543de52537937abcc7d556f79569e9c55
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:34:14 -07:00
Lloyd Atkinson
53b888583f drm/msm: fix issue dumping sde registers
Check register length before printing to avoid extraneous error
print. Change va_args checks to avoid incorrect failure to parse
all dump areas print.

Change-Id: Icd057ed7aabb17d1211432a512ff80828f80f2c3
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:34:00 -07:00
Lloyd Atkinson
7a426f07b9 drm/msm/sde: add sde debug bus dump support
Add support for dumping the sde and vbif debug buses. Can be
triggered via sysfs, or via the SDE_DBG_DUMP macros by providing
"dbg_bus" or "vbif_dbg_bus" strings in the dump area list.

Change-Id: I8b3261a7bdc0161e77729ed0d05bf90cf9214298
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:33:49 -07:00
Lloyd Atkinson
718805ee73 drm/msm: add register dumping facility to sde debug
Need the capability to dump the content of sde registers during
panic and other scenarios. Add debugfs facility for triggering
register dumping. Add registration of sde and vbif as base
hardware blocks. Add the blocks within the sde as named register
dumping ranges.

CRs-Fixed: 2005394
Change-Id: I410c4e5270447d4d3a8364287fa61748ead5410f
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:32:48 -07:00
Lloyd Atkinson
1c28ca1e8b drm/msm/sde: populate block names and lengths in catalog
Need to read register block length from the DTSI and populate
into the catalog to support register debug dumping. Also add a
name string to each of the blocks for debug purposes.

CRs-Fixed: 2005394
Change-Id: Ia2299a51d649942b9335bc023d098d9c4882f1de
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:31:51 -07:00
Abhinav Kumar
4bc07bbb40 ARM: dts: msm: add sde block lengths on msm8998
Specify the lengths of the register blocks for the sde hardware
on msm8998, needed to support register dumping.

Change-Id: I7f798b8a98cc3a8f919e994e1203d2d7c76687d0
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-08-26 00:31:39 -07:00
Linux Build Service Account
8aedd70842 Merge "ARM: dts: msm: Add support for msm8996 CV2X boards" 2017-08-26 00:12:27 -07:00
Linux Build Service Account
83bf53784e Merge "msm: ipa: protect q6_proxy_clk_vote" 2017-08-26 00:12:26 -07:00
Linux Build Service Account
ccfef7e701 Merge "softirq: defer softirq processing to ksoftirqd if CPU is busy with RT" 2017-08-25 15:30:51 -07:00
Linux Build Service Account
cac55e7f09 Merge "qpnp-qnovo: fix ptrain done handler" 2017-08-25 15:30:49 -07:00
Linux Build Service Account
62fddf01a4 Merge "qpnp-qnovo: disable qnovo for dcin" 2017-08-25 15:30:48 -07:00
Linux Build Service Account
ea8714b1ba Merge "qpnp-qnovo: disable while shutting down" 2017-08-25 15:30:47 -07:00
Linux Build Service Account
b0a54937a9 Merge "qpnp-qnovo: check ptrain_en in restart work" 2017-08-25 15:30:47 -07:00
Skylar Chang
4387acb96b msm: ipa: protect q6_proxy_clk_vote
Add a mutex to protect q6_proxy_clk_vote.
The proxy vote/unvote may be called from different contexts
which can result in a a race condition.

Change-Id: I402090be5ff35897ed61499a13bf52eb60a1f5cf
CRs-Fixed: 2094724
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-08-25 11:05:10 -07:00
Linux Build Service Account
90553de392 Merge "input: misc: speed up suspend and resume for QTC800S panel" 2017-08-25 08:04:50 -07:00
Zhiqiang Tu
4d690088c1 ARM: dts: msm: Disable dynamic ramdump for cnss on virtual platform
On virtual platform, cnss doesn't support dynamic dump.

Change-Id: I1734ed62be7753875efe85ed18beaf382af50654
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-08-25 15:26:59 +08:00
Linux Build Service Account
812c879d35 Merge "msm: ais: ois: add conditional check for ioctl" 2017-08-24 23:39:58 -07:00
Rahul Sharma
37b709374a msm: ais: ois: add conditional check for ioctl
Add conditional check when sending VIDIOC_MSM_OIS_CFG.

Change-Id: Ie12b13b2157f6ad42d8b1ee46bef166e8a47cb85
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-08-24 18:49:56 -07:00
Linux Build Service Account
99956cfb73 Merge "msm: ADSPRPC: Use msm_ion_do_cache_op to flush userspace buffers" 2017-08-24 14:01:18 -07:00
Linux Build Service Account
3fe16bcfc8 Merge "Revert "ARM: dts: msm: Add fastrpc vmid flag for sdm660"" 2017-08-24 14:01:17 -07:00
Linux Build Service Account
6067c8c6a4 Merge "msm: camera: Synchronize camera open/close calls." 2017-08-24 14:01:16 -07:00
Gustavo Solaira
f2dfd94620 ARM: dts: msm: Add support for msm8996 CV2X boards
Add support for the msm8996 CV2X board that uses an mdm9650
module as endpoint for CV2X radio functionality. The msm8996
is responsible for running the CV2X application stack and
providing external debug and control access to the system.

Change-Id: I575f565580e8f81f15a9017a97aa064e7f2c6088
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2017-08-24 11:09:00 -07:00
Abhijeet Dharmapurikar
7ade27b017 qpnp-qnovo: fix ptrain done handler
Currently the handler skips calling the update function
but uses the final result from the votable not_ok_to_qnovo_votable.
Fix it by calling the update function so it gets a chance to vote on
not_ok_to_qnovo_votable.

Moreover do not return early from ptrain_done handler without setting
QNI_PT_VOTER's vote on pt_dis_votable. This is a self clearing bit and
unless QNI_PT_VOTER's bit is removed, the next restart may not trickle
down to hw.

Change-Id: I0a860287b638d20b6a4aa05c7bb25e9b81a980d2
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-08-24 09:54:49 -07:00
Abhijeet Dharmapurikar
ca0bfff287 qpnp-qnovo: disable qnovo for dcin
Usually, DC path is connected to a wireless charger. It is advisable
to disable qnovo when charging wirelessly.
Disable qnovo for dc path unless a property in device tree is set to
specifically enable qnovo for dc path.

Change-Id: I4ca475f30ca0a564f533b4ed8bcd55cfb5da291f
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-08-24 09:54:49 -07:00
Abhijeet Dharmapurikar
47235a7155 qpnp-qnovo: initialize chg_ready votable
If a charger was already present at bootup, we may not delay the start
of qnovo by 15 seconds.

Fix it by setting the chg_ready votable to false during init.

Change-Id: Icf185763576f65028cf2ef0d1c0bbcf6570460ba
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-08-24 09:54:48 -07:00
Abhijeet Dharmapurikar
9a2676a949 qpnp-qnovo: disable while shutting down
While shutting down set the not_ok_to_qnovo votable to true, so that
we skip measuring ESR if a pulse train done interrupt triggers right
during the shutdown.

Change-Id: If3a0a8e9b1d60920cbbedc16af91c05caec8dcb2
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-08-24 09:54:47 -07:00
Abhijeet Dharmapurikar
5c1894c01d qpnp-qnovo: check ptrain_en in restart work
Sometimes we observe that the ptrain_en bit is reset back to 0 while
in restart work.

Set it again if so.

Change-Id: I15d46f96a8b751f0386677e3b6876eec8bba9a1f
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-08-24 09:54:45 -07:00
Linux Build Service Account
9a718be2f4 Merge "ARM: dts: msm: update memlat and mincpu node for sdm636" 2017-08-24 06:14:35 -07:00
Linux Build Service Account
f22d1a9af3 Merge "usb: phy: qusb: Allow support for fused tune2 value correction" 2017-08-24 06:14:34 -07:00
Linux Build Service Account
502c187254 Merge "msm: ais: Fix crash when ioctl VIDIOC_MSM_SENSOR_INIT_CFG is called" 2017-08-24 06:14:33 -07:00
Linux Build Service Account
d7e5337d56 Merge "msm: camera: Fix null pointer exception in regulator disable" 2017-08-24 06:14:32 -07:00
Linux Build Service Account
d4a8f9c9ca Merge "spcom: return POLLERR when poll() has error" 2017-08-24 06:14:31 -07:00
Linux Build Service Account
bbc14406b1 Merge "ASoC: msm: qdsp6v2: Implement downmix control support for compr driver" 2017-08-24 06:13:58 -07:00
Linux Build Service Account
aefbc13ede Merge "msm: camera: Fix race condition in msm_sd_register." 2017-08-24 06:13:57 -07:00
Linux Build Service Account
ec1199f077 Merge "power: qcom-step-chg: Fix the error return path" 2017-08-24 06:13:56 -07:00
Linux Build Service Account
9626826f5b Merge "dwc3-msm: Add delay between consecutive register reads in while loop" 2017-08-24 06:13:55 -07:00
Hareesh Gundu
5033797b0e ARM: dts: msm: Add GPU maximum frequency 370Mhz support for SDM636
SDM636 inherits all SDM660 GPU properties, but it will support
GPU max frequency 370Mhz and DDR max frequency 1353Mhz.

Change-Id: I35c4e90a264109d9b490eeac762e79440bd46800
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2017-08-24 16:58:41 +05:30