Commit graph

593516 commits

Author SHA1 Message Date
Mohammed Javid
1d85aeac42 msm: ipa: Fix to use after free issue
Added code changes to avoid use after free
if header already table already freed
during ipa ioctl test.

Change-Id: I5e89c28448bd3b94714451432774457a170005bd
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2017-08-30 12:10:39 +05:30
Linux Build Service Account
e53deedd20 Merge "icnss: Fix uninitialized variable" 2017-08-29 21:19:34 -07:00
Linux Build Service Account
50bee17e34 Merge "ARM: dts: msm: Disable max20010 regulator device node for msm8996" 2017-08-29 21:19:33 -07:00
Linux Build Service Account
4a57e52544 Merge "clk: qcom: osm: Add determine_rate ops for OSM CPU clock driver" 2017-08-29 21:19:32 -07:00
Linux Build Service Account
9bb79aef61 Merge "msm: camera: isp: Fix frame skip pattern" 2017-08-29 21:19:31 -07:00
Linux Build Service Account
1469573671 Merge "Revert "drivercore: Avoid adding devices without pm_ops to dpm list"" 2017-08-29 21:19:29 -07:00
Linux Build Service Account
9217c8a15a Merge "ARM: dts: msm: add coresight support on sdm/a 636" 2017-08-29 21:19:28 -07:00
Linux Build Service Account
c042603a51 Merge "Enable multi-channel bit for SCO Tx with water mark level 1" 2017-08-29 21:19:27 -07:00
Linux Build Service Account
7272b66e32 Merge "ARM: dts: msm: Add support for speed-bin 3 for SDM660" 2017-08-29 21:19:26 -07:00
Linux Build Service Account
f22f33a3ba Merge "spcom: fix memory leak in spcom register client / register service API" 2017-08-29 21:19:25 -07:00
Linux Build Service Account
eaba247763 Merge "msm: mdss: dp: fix div by zero error" 2017-08-29 21:19:24 -07:00
Linux Build Service Account
318fe3ca8b Merge "ASoC: remove error prints and warning at bootup log" 2017-08-29 21:19:23 -07:00
Zhiqiang Tu
820069f8d5 defconfig: arm64: msm: Update perf defconfig for virtual platform
Remove some debug configurations and disable serial console for
perf build.

Change-Id: I91dea4f6569b45a9fb956a183f9d4f9ebbaee9a5
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-08-30 11:09:25 +08:00
Avaneesh Kumar Dwivedi
0c83540fdd ARM: dts: msm: Add minidump dt support for MSS subsystem on sdm660
This change adds minidump id and imem region entries. Minidump id is
used to find imem offset for subsystem which is populated with base
smem table info for subsystem. While imem region entry points to table
of content in shared mem for any subsystem.

Change-Id: I6c14fd962585039b5e7b6293a5ec872861f6600d
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2017-08-29 05:31:47 -07:00
Avaneesh Kumar Dwivedi
88707fb091 soc: qcom: Add SSR minidump provision for subsystem ramdump
Minidump is concise and bare minimum dump to enable technology
teams to debug most of subsystem issues. This change adds required
driver code changes to provide support of subsystem minidump.

Increase PIL timeout to give MBA more time for encryption
and decryption for modem segments.

Change-Id: I1d04a9306ce507bc610777bc476197f26c1e18ac
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2017-08-29 03:49:48 -07:00
Tirupathi Reddy
b5a1a5bac3 ARM: dts: msm: Disable max20010 regulator device node for msm8996
Disable max20010 regulator device node from msm8996 regulators
and conditionally enable it for 8996auto boards using max20010
as VDD_GFX supply.

CRs-Fixed: 2091156
Change-Id: I688f1dac31a7601bde5753e2544d07aabdc3cc7a
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-08-29 01:57:29 -07:00
Linux Build Service Account
0d617edc01 Merge "ARM: dts: qcom: Remove lpm performance index for sdm630" 2017-08-29 01:41:05 -07:00
Linux Build Service Account
a26a92216f Merge "drm/msm: add kconfig for enabling event log" 2017-08-29 01:40:56 -07:00
Linux Build Service Account
2ed94ee2e3 Merge "spi: spi_qsd: Prevent deadlock while runtime pm is disabled" 2017-08-29 01:40:55 -07:00
Guchun Chen
c2beb40851 msm: sde: fix deadlock issue in concurrency test
When enabling early display, disabling weston service and launching
DRM_test, system looks to hang when DRM_test wants to open drm node.
The hang is caused by mutex deadlock.
So refine the code and remove the mutex lock to fix the problem.

Change-Id: I91d0c4e4418afde38c98a6294e49491403cdfe74
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
Signed-off-by: Yujun Zhang <yujunzhang@codeaurora.org>
2017-08-28 06:35:38 -07:00
Amir Samuelov
df572ff0bc spcom: fix memory leak in spcom register client / register service API
free allocated memory in error handling of spcom_register_client()
and spcom_register_service() kernel API.

Change-Id: Ieb5787cb1a11d4b3320237fa8cdde3dc357d9084
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-08-28 06:10:40 -07:00
Gaurav Singhal
d697a47903 Revert "drivercore: Avoid adding devices without pm_ops to dpm list"
This reverts commit d36bb30811.

Not able to add device with PM core and causing suspend/resume
issue in I2C client driver.pm_ops are removed from I2C bus type
and should fall back on client driver pm_ops.

Reverting this change as we are not able to register I2C
client devices with PM core.

Change-Id: I973a03b7cd0afca2edb584539ea5c69198bfb089
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
2017-08-28 05:39:41 -07:00
Odelu Kukatla
831f1a45c5 ARM: dts: msm: Add support for speed-bin 3 for SDM660
Add speed-bin 3 to support the fmax of 1.8 GHz and 1.6 GHz
for perf and power clusters respectively.
And also update the cpufreq table for the same.

Change-Id: Ia3be3f321b53bbbb4c37f5e86e451ca86ec8cdc9
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-08-28 17:02:50 +05:30
Manaf Meethalavalappu Pallikunhi
89fb51f2a7 msm: thermal: check LMH DCVS devicetree to enable reboot/suspend mitigation
KTM suspend/reboot frequency mitigation is not required for target
which has LMH DCVS hardware support. lmh_dcvs_available flag in the
KTM is initialized only post OSM driver is up. But during KTM probe,
it checks this flag to register suspend/reboot notifier. Since
it is not initialized, it always register with these notifier and
does frequency mitigation whenever it notifies KTM.

To avoid this, check if the LMH DCVS related devicetree node is
enabled during KTM probe before enabling suspend/reboot notifier
registration. To be safe use the same check in CPU frequency policy
callback for KTM max cpu frequency request as well.

Change-Id: I337477dd296e1e681498d702ab03c164d7554186
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2017-08-28 04:14:58 -07:00
Dhoat Harpal
4b6bee8a8a soc: qcom: ipc_router_glink_xprt: Add wakeup source in RX path
In function glink_xprt_notify_rxv work item is queued without
wakelock. This allows system to go in suspend state without
scheduling this work item.

Wakelock is taken to avoid system suspend before workqueue
execution.

CRs-Fixed: 2098623
Change-Id: Ic5f74dbb4bf315f1cb6aa528367a6fb80e8a11b6
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2017-08-28 16:42:40 +05:30
Zhiqiang Tu
d90bc47280 ARM: dts: msm: Add virtual platform specific pinctrl dtsi
Add customized pinctrl dtsi for virtual platform.

Change-Id: Id31cae5f3e96c4d816cb39953e0aaed5a783bb19
Signed-off-by: Zhiqiang Tu <ztu@codeaurora.org>
2017-08-28 17:32:17 +08:00
Mukesh Kumar Savaliya
914700383f spi: spi_qsd: Prevent deadlock while runtime pm is disabled
Do not call runtime suspend forcefully while holding the mutex as runtime
suspend also tries to acquire the same mutex. Instead acquire it properly
with the condition of runtime_pm enablement status without mutex.

Change-Id: I2347820e81ded0821e6f56a415af3bed17a951b4
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
2017-08-28 14:49:07 +05:30
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