Commit graph

575689 commits

Author SHA1 Message Date
Viresh Kumar
a7dffd7ffb timer: create timer_quiesce_cpu() to isolate CPU from timers
To isolate CPUs (isolate from timers) from sysfs using cpusets, we need some
support from the timer core. i.e. A routine timer_quiesce_cpu() which would
migrates away all the unpinned timers, but shouldn't touch the pinned ones.

This patch creates this routine.

Change-Id: I8624e0659b86b7b8fa425a3fafdb0784fe005124
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
[forward port to 3.18]
Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
[ohaugan@codeaurora.org: Port to 4.4. Fixes for compilation error]
Git-commit: 313910b70ea0c73f8789d9189c11e1f339080646
Git-repo: git://git.linaro.org/people/mike.holmes/santosh.shukla/lng-isol.git
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-09-20 17:47:11 -07:00
Olav Haugan
6cc98f03ad timer: Ensure timers are not running before migrating
This is needed to support migration of timers during cpu isolation. A
timer might be running on the CPU that we want to isolate so we are
unable to migrate the timers at this point. We are adding a spin-loop to
wait for the timer to finish before migrating the timers.

Change-Id: I24d6e91b6dff468c640c2fe3a37a7f31b6f0c79a
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-09-20 17:47:11 -07:00
Vidyakumar Athota
2647e06e44 ASoC: wcd9335: add handset speaker gain mixer control
In msmcobalt platform, speaker path is used for handset mode also.
Add the mixer control to change gain in handset mode.

Change-Id: I88b6c0748e6683b2f11b751840ab26e3ed397b70
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-20 15:28:53 -07:00
Puja Gupta
238f87868d soc: qcom: Listen to SUBSYS_AFTER_SHUTDOWN notification
When the subsytem goes down through SSR path, listen for
SUBSYS_AFTER_SHUTDOWN and then send out ROOT_PD down notification to
service notifier clients. ROOT_PD down is supposed to indicate that
service is already down.

Change-Id: I916e37bd79a6645bdc186a78a65051ce1c4dd475
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-09-20 15:12:27 -07:00
Trilok Soni
0d51ff8b45 arm64: process: Reduce the no. of bytes of data around registers
As a part of __show_regs we print the 512 bytes of data around
key registers like SP, PC and LR. This data is not always useful
and can cause issue while we have more cores in the system and need
to print them per core during the stack traces triggered through
WARN(..) like APIs. It can also cause latency issues due to heavy
printing on the serial console.

Reduce the logging to 128 bytes (nbytes * 2) around these registers
from 512 bytes.

Change-Id: Ie19fececd9d2bc6cd3328a6c63c956bcc9eed9a6
Signed-off-by: Trilok Soni <tsoni@codeaurora.org>
2016-09-20 14:55:35 -07:00
Nikhilesh Reddy
6ec3ca7f43 fuse: Grab the fc->lock for inode updates in passthrough
The function fsstack_copy_inode_size uses the inode->i_lock to
serialize the inode updates. This lock is not used in the FUSE
filesystem and thus it is not enough to just grab this lock
before updating a FUSE inode.

Grab the fc->lock for inode updates in passthrough to ensure
that there are no races between inode size updates in 32 bit
architectures with SMP.

Change-Id: I83cb2380b6ca56768c06e70ef1bf9ea3976b514a
Signed-off-by: Nikhilesh Reddy <reddyn@codeaurora.org>
2016-09-20 13:52:51 -07:00
Ingrid Gallardo
82b0957a9d msm: mdss: expand vbif debug bus for msmcobalt
This change increases the test points
for vbif debug bus in msmcobalt target.

Change-Id: I07f0ef2ee8d37336047a37aa93c8b4f26d07cd72
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-09-20 12:54:27 -07:00
Yuanyuan Liu
2d44f9a775 icnss: Provide ICNSS support of reading SOC serial number
Provide support of reading SOC serial number. This will be used
for auto-generate WLAN MAC address.

CRs-Fixed: 1069005
Change-Id: Ie2072768b2fab3bcbdc70798897ca66614ee8a06
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-20 12:18:34 -07:00
Benjamin Chan
f1f813d214 msm: mdss: Correct error handling in MDSS driver
Fix variable initialization and NULL pointer referencing under error
condition handling in the MDSS driver.

CRs-Fixed: 1067141
Change-Id: Idd971601d5358104831784d645d84b1f9d2b631c
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-09-20 10:52:08 -07:00
Linux Build Service Account
9e2d528dc4 Merge "msm: camera: Add support for reset controller framework" 2016-09-20 10:20:44 -07:00
Linux Build Service Account
bfbc8a0dda Merge "soc: qcom: spss_utils: fix test_fuse_state_show()" 2016-09-20 10:20:44 -07:00
Linux Build Service Account
2b9c9ce4df Merge "msm: msm_bus: introduce bus topology for msmfalcon" 2016-09-20 10:20:42 -07:00
Linux Build Service Account
329685a0d5 Merge "msm: mdss: make hdcp 1.x data part of fb panel" 2016-09-20 10:20:40 -07:00
Linux Build Service Account
e687086cb2 Merge "ARM: dts: reduce on/off time for nt35597 dsc panels" 2016-09-20 10:20:39 -07:00
Linux Build Service Account
ca064b6d44 Merge "msm: mdss: dsi: Configure pll to work only in full rate mode" 2016-09-20 10:20:38 -07:00
Linux Build Service Account
53aba1677d Merge "ARM: dts: msm: add sharp 120 Hz panel support for msmcobalt" 2016-09-20 10:20:37 -07:00
Linux Build Service Account
b2b4bbae8b Merge "clk: msm: mdss: change DP clock rate in order of KHz" 2016-09-20 10:20:36 -07:00
Linux Build Service Account
fb2d62f3eb Merge "msm: mdss: program HDMI/DP core select during interface setup" 2016-09-20 10:20:34 -07:00
Jack Pham
2d50ef2cf3 usb: pd: Avoid potential NULL ptr dereferences
Check that a valid pointer was passed in addition to non-zero
length to avoid dereferencing NULL pointers in functions
where data is copied from policy engine to the PD PHY.

Issues were identified with static analysis tool.

Change-Id: Ib42aad9e0d838eda4653e0bab9f074b3031983dd
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-09-20 09:18:25 -07:00
Udaya Mallavarapu
5832401c7a ARM: dts: msm: add TSPP support for msmcobalt
Add TSPP device tree node to support TSPP on msmcobalt,
together with the required pinctrl definitions.

CRs-Fixed: 1057562
Change-Id: Id4bf6b6221a18231d7f8e6e592402d826d98e3da
Signed-off-by: Udaya Mallavarapu <udaym@codeaurora.org>
2016-09-20 21:29:27 +05:30
Udaya Mallavarapu
027c21bf59 Migrate mpq demux driver from kernel 3.18 to 4.4
This change migrates all the relevant files consisting of the mpq
demux driver and its plugins, including the addition of TSPPv1 HW
driver.

The snapshot is taken as of msm-3.18,
'commit e12c33f73fb0 ("Merge defconfig: Enabling confg INET_DIAG_DESTROY")'

In addition, introduce a few code changes to reduce checkpatch
warnings, typos and other style issues.

CRs-Fixed: 1057562
Change-Id: I76c9a9e44755a4a77e6cffb1dc07f5b28c8b34b8
Signed-off-by: Udaya Mallavarapu <udaym@codeaurora.org>
2016-09-20 21:29:27 +05:30
Udaya Mallavarapu
492d9de580 Migrate demux driver from kernel 3.18 to 4.4
This change migrates all the relevant files and updates made
to the dvb/demux framework, required for mpq demux driver.

The snapshot is taken as of msm-3.18,
'commit e12c33f73fb0 ("Merge defconfig: Enabling confg INET_DIAG_DESTROY")'

In addition, introduce a few code changes to reduce checkpatch
warnings, typos and other style issues.

CRs-Fixed: 1057562
Change-Id: Ia50bd897f6bf4c0ea7adc27d53a657090a09e229
Signed-off-by: Udaya Mallavarapu <udaym@codeaurora.org>
2016-09-20 21:29:27 +05:30
Benjamin Chan
1db5844b62 msm: sde: Add pre/post power event handler in SDE rotator
For pre power off event, we want to check for rotator IDLE status and
generate a timeout event logging if the rotator is still in BUSY state.

For post power on event, rotator is reset to default HW state. It is
necessary to synchronize the SW timestamp with the HW register location.

CRs-Fixed: 1066270
Change-Id: I1041141b8dc80db0baec7ffe71a5c2a7b41e2cbb
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-09-20 07:04:23 -07:00
Shantanu Jain
ccd9ea31e2 input: touchscreen: Add fw_name sysfs entry in Goodix driver
Add fw_name sysfs entry in Goodix driver. This entry allows
user to read and write firmware name from sysfs.

Change-Id: I69585d757f1a6dc40834a99ee67c872bf6f3ea13
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-20 04:25:22 -07:00
Shantanu Jain
a1ffdaeafe input: touchscreen: Remove improper debug code
Remove unnecessary, redundant and improper debug code
and replace them with standard debug calls in Goodix
driver files.

Change-Id: I763598585cee9705d6def8b7fe61d3206788912b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-20 12:37:32 +05:30
Linux Build Service Account
4b91c1a0f7 Merge "ASoC: wcd9335: reduce speaker teardown latency" 2016-09-19 23:28:23 -07:00
Linux Build Service Account
383cee12e4 Merge "phy: qcom-ufs: remove warnings for optional clocks" 2016-09-19 23:28:22 -07:00
Linux Build Service Account
55ef1608c4 Merge "Revert "usb: dwc3: gadget: start requests as soon as they come"" 2016-09-19 23:28:17 -07:00
Linux Build Service Account
f71d743cf0 Merge "Revert "usb: dwc3: gadget: use update transfer command"" 2016-09-19 23:28:16 -07:00
Linux Build Service Account
52915db68d Merge "msm: ipa: add support for new QMI IDL" 2016-09-19 23:28:16 -07:00
Linux Build Service Account
beb17e9e9b Merge "msm: pcie: initialize var in GPIO init function" 2016-09-19 23:28:15 -07:00
Linux Build Service Account
afc144d22c Merge "defconfig: msmcortex: Remove panic on SBE" 2016-09-19 23:28:14 -07:00
Linux Build Service Account
48b6dc8c1e Merge "edac: cortex: Remove WARN_ON messages" 2016-09-19 23:28:13 -07:00
Linux Build Service Account
99a1044389 Merge "msm: mdss: avoid shutting down PHY PMIC regulators" 2016-09-19 23:28:12 -07:00
Linux Build Service Account
6fa5e24922 Merge "msm: mdss: wait for kickoff before executing mode switch changes" 2016-09-19 23:28:11 -07:00
Linux Build Service Account
9518539939 Merge "defconfig: arm64: msmcortex: enable MSM_TZ_LOG for msmcobalt" 2016-09-19 23:28:10 -07:00
Linux Build Service Account
8753bbcdc4 Merge "soc: qcom: ipc_router_glink_xprt: Add larger size receive intents" 2016-09-19 23:28:09 -07:00
Linux Build Service Account
c2b563ce7d Merge "soc: qcom: pil: Correct notification path in subsys_stop" 2016-09-19 23:28:08 -07:00
Linux Build Service Account
3c52ac5339 Merge "power: fg-memif: Clear retry_once flag in IMA read" 2016-09-19 23:28:07 -07:00
Linux Build Service Account
5edc2df030 Merge "qseecom: Change whitelist_support flag to false if TZ failed to check" 2016-09-19 23:28:07 -07:00
Linux Build Service Account
79f28e9426 Merge "icnss: Provide client_id in ind_register request" 2016-09-19 23:28:06 -07:00
Linux Build Service Account
9969c77475 Merge "iommu: msm: use list_for_each_entry_safe for deletion" 2016-09-19 23:28:04 -07:00
Linux Build Service Account
64a9ffd418 Merge "Revert "defconfig: msm: enable common log for msmcobalt"" 2016-09-19 23:28:04 -07:00
Linux Build Service Account
620685750e Merge "ARM: dts: msm: enable scan dump for msmcobalt" 2016-09-19 23:28:02 -07:00
Linux Build Service Account
824e3e5ceb Merge "crypto: msm: qce50: DMA-API buffers limitations" 2016-09-19 23:28:02 -07:00
Linux Build Service Account
4886f3b04b Merge "soc: qcom: Add subsys state with service notifier notification" 2016-09-19 23:28:01 -07:00
Linux Build Service Account
e61009aff8 Merge "soc: qcom: pil: Change clock disabling sequence" 2016-09-19 23:28:00 -07:00
Linux Build Service Account
d4ba07ec09 Merge "regulator: cpr3-regulator: fix potential aging uninitialized variable usage" 2016-09-19 23:27:59 -07:00
Linux Build Service Account
6d49a1e9db Merge "net: fix infoleak in rtnetlink" 2016-09-19 23:27:59 -07:00
Linux Build Service Account
b7d007f82e Merge "FROMLIST: security,perf: Allow further restriction of perf_event_open" 2016-09-19 23:27:58 -07:00