OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agoMerge "msm: sde: release LK's pool when LK exits"
Linux Build Service Account [Mon, 31 Jul 2017 16:52:16 +0000 (09:52 -0700)]
Merge "msm: sde: release LK's pool when LK exits"

6 years agoMerge "Revert "ARM: dts: msm: Enable ACD functionality for sdm630 CPU rails""
Linux Build Service Account [Mon, 31 Jul 2017 02:58:04 +0000 (19:58 -0700)]
Merge "Revert "ARM: dts: msm: Enable ACD functionality for sdm630 CPU rails""

6 years agoMerge "power: qpnp-fg-gen3: Use msoc for recharge-soc comparison"
Linux Build Service Account [Mon, 31 Jul 2017 02:58:03 +0000 (19:58 -0700)]
Merge "power: qpnp-fg-gen3: Use msoc for recharge-soc comparison"

6 years agoRevert "ARM: dts: msm: Enable ACD functionality for sdm630 CPU rails"
Tirupathi Reddy [Sat, 29 Jul 2017 09:33:05 +0000 (15:03 +0530)]
Revert "ARM: dts: msm: Enable ACD functionality for sdm630 CPU rails"

This reverts commit a4ca7944f48010708a71ce1fea44d37b53e659e2.
There have been stability failures (SPM ack timeouts) due to
ACD. Reverting this patch until the issue is resolved.

CRs-Fixed: 2084607
Change-Id: I407e4ecc5bd7af738c0d0599d1fa57007e959495
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
6 years agopower: qpnp-fg-gen3: Use msoc for recharge-soc comparison
Anirudh Ghayal [Wed, 12 Jul 2017 04:42:24 +0000 (10:12 +0530)]
power: qpnp-fg-gen3: Use msoc for recharge-soc comparison

The recharge SOC is based off the monotonic SOC (msoc). Hence, use
the msoc to determine if the hold-soc-while-full logic needs
to be applied.

CRs-Fixed: 2080211
Change-Id: I52b02adc4d97cbed42b0c8034a5a48dba1e343d3
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
6 years agoMerge "msm: wlan: Fix regulatory rule of JO"
Linux Build Service Account [Sun, 30 Jul 2017 04:19:28 +0000 (21:19 -0700)]
Merge "msm: wlan: Fix regulatory rule of JO"

6 years agoMerge "msm: camera: Instead of read_lock use read_lock_irqsave."
Linux Build Service Account [Sat, 29 Jul 2017 08:12:48 +0000 (01:12 -0700)]
Merge "msm: camera: Instead of read_lock use read_lock_irqsave."

6 years agoMerge "msm: mdss: fix the use after free problem in rotator ioctl"
Linux Build Service Account [Fri, 28 Jul 2017 23:49:02 +0000 (16:49 -0700)]
Merge "msm: mdss: fix the use after free problem in rotator ioctl"

6 years agoMerge "ASoC: msm8998: Update DAI IDs for DSP HW Transcode loopback"
Linux Build Service Account [Fri, 28 Jul 2017 23:49:00 +0000 (16:49 -0700)]
Merge "ASoC: msm8998: Update DAI IDs for DSP HW Transcode loopback"

6 years agoMerge "msm: mdss: dp: avoid aux transactions if dp cable is disconnected"
Linux Build Service Account [Fri, 28 Jul 2017 23:48:59 +0000 (16:48 -0700)]
Merge "msm: mdss: dp: avoid aux transactions if dp cable is disconnected"

6 years agoMerge "ARM: dts: msm: add memory region info for early splash feature on msm8996"
Linux Build Service Account [Fri, 28 Jul 2017 23:48:58 +0000 (16:48 -0700)]
Merge "ARM: dts: msm: add memory region info for early splash feature on msm8996"

6 years agoMerge "msm: sde: add early display handoff feature"
Linux Build Service Account [Fri, 28 Jul 2017 23:48:57 +0000 (16:48 -0700)]
Merge "msm: sde: add early display handoff feature"

6 years agoMerge "drm/msm/sde: disable vblank ref power on crtc disable"
Linux Build Service Account [Fri, 28 Jul 2017 23:48:54 +0000 (16:48 -0700)]
Merge "drm/msm/sde: disable vblank ref power on crtc disable"

6 years agoMerge "drm/msm/sde: output black frame during resume operation"
Linux Build Service Account [Fri, 28 Jul 2017 23:48:51 +0000 (16:48 -0700)]
Merge "drm/msm/sde: output black frame during resume operation"

6 years agoMerge "msm: mdss: do not update polarity for DSI interface"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:46 +0000 (08:21 -0700)]
Merge "msm: mdss: do not update polarity for DSI interface"

6 years agoMerge "rwsem: fix missed wakeup due to reordering of load"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:45 +0000 (08:21 -0700)]
Merge "rwsem: fix missed wakeup due to reordering of load"

6 years agoMerge "msm: mdss: Fix race condition during mdp dump"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:44 +0000 (08:21 -0700)]
Merge "msm: mdss: Fix race condition during mdp dump"

6 years agoMerge "msm: mdss: Remove check to cap requested mdp clock"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:43 +0000 (08:21 -0700)]
Merge "msm: mdss: Remove check to cap requested mdp clock"

6 years agoMerge "msm: kgsl: Fix the syncpoint_fence trace"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:42 +0000 (08:21 -0700)]
Merge "msm: kgsl: Fix the syncpoint_fence trace"

6 years agoMerge "msm: ADSPRPC: Handle SMD event signal"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:41 +0000 (08:21 -0700)]
Merge "msm: ADSPRPC: Handle SMD event signal"

6 years agomsm: wlan: Fix regulatory rule of JO
Rajeev Kumar Sirasanagandla [Fri, 28 Jul 2017 13:11:24 +0000 (18:41 +0530)]
msm: wlan: Fix regulatory rule of JO

Parentheses in 60 gHz band channels related regultory rule is
misplaced, due to which unable to change country code to JO.

To fix this, remove unwanted parentheses.

CRs-Fixed: 2084234
Change-Id: I655990f66929237cd4461462306eab9e66a08663
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
6 years agomsm: camera: Instead of read_lock use read_lock_irqsave.
Trishansh Bhardwaj [Thu, 13 Jul 2017 11:40:39 +0000 (17:10 +0530)]
msm: camera: Instead of read_lock use read_lock_irqsave.

Prevent deadlock between tasklet and delete_stream by stopping
irq during delete_stream.

Change-Id: Ibcc9fd44403d24112b01150a7d1f3c6e705ea99a
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
6 years agoMerge "mhi: uci: Fix a bug related to split transfer packets"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:22 +0000 (00:21 -0700)]
Merge "mhi: uci: Fix a bug related to split transfer packets"

6 years agoMerge "diag: Flush control workqueue immediately on channel close"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:12 +0000 (00:21 -0700)]
Merge "diag: Flush control workqueue immediately on channel close"

6 years agoMerge "diag: Free the read workqueue structure to avoid memory leak"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:12 +0000 (00:21 -0700)]
Merge "diag: Free the read workqueue structure to avoid memory leak"

6 years agoMerge "ARM: dts: msm: Make allocation for diag as guaranteed on sdm630"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:11 +0000 (00:21 -0700)]
Merge "ARM: dts: msm: Make allocation for diag as guaranteed on sdm630"

6 years agoMerge "power: smb-lib: Update the FLOAT detection logic"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:10 +0000 (00:21 -0700)]
Merge "power: smb-lib: Update the FLOAT detection logic"

6 years agoMerge "ath10k: Fix dst CE ring configuration for CE5"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:09 +0000 (00:21 -0700)]
Merge "ath10k: Fix dst CE ring configuration for CE5"

6 years agoMerge "msm: ipa3: add offline charging support"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:08 +0000 (00:21 -0700)]
Merge "msm: ipa3: add offline charging support"

6 years agoMerge "msm: sde: fix kernel booting failure in sde driver"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:07 +0000 (00:21 -0700)]
Merge "msm: sde: fix kernel booting failure in sde driver"

6 years agoMerge "msm: sensor: Fix for variable being de-referenced without proper check"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:06 +0000 (00:21 -0700)]
Merge "msm: sensor: Fix for variable being de-referenced without proper check"

6 years agoMerge "msm: camera: Add support for TOF sensor on msm8998 QVR"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:06 +0000 (00:21 -0700)]
Merge "msm: camera: Add support for TOF sensor on msm8998 QVR"

6 years agoMerge "ath10k: fix memory leak in rx ring buffer allocation"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:05 +0000 (00:21 -0700)]
Merge "ath10k: fix memory leak in rx ring buffer allocation"

6 years agoASoC: msm8998: Update DAI IDs for DSP HW Transcode loopback
Siddartha Shaik [Wed, 19 Jul 2017 13:52:47 +0000 (19:22 +0530)]
ASoC: msm8998: Update DAI IDs for DSP HW Transcode loopback

Replace Multimedia14 and Multimedia18 with Multimedia26
and Multimedia27 respectively for transcode loopback

CRs-Fixed: 2077700
Change-Id: I40e6666882859a5699e86856a0b8769eb295f748
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
6 years agoASoC: msm: Add new FE Dais for DSP HW transcode loopback
Siddartha Shaik [Wed, 19 Jul 2017 10:10:12 +0000 (15:40 +0530)]
ASoC: msm: Add new FE Dais for DSP HW transcode loopback

Add new frontend DAIs MultiMedia26 and MultiMedia27
for DSP HW transcode loopback.

CRs-Fixed: 2077700
Change-Id: Iedbd7da5e83a556749d9dc03cf39b0f942d634fa
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
6 years agomhi: uci: Fix a bug related to split transfer packets
Sujeev Dias [Fri, 30 Jun 2017 04:16:30 +0000 (21:16 -0700)]
mhi: uci: Fix a bug related to split transfer packets

When transfer buffer is larger than available space, uci driver will
split the transfer into multiple transactions. Driver incorrectly
calculated the transfer length and caused infinite transfer.
Simplify uci write method to avoid such bugs.

CRs-Fixed: 2083693
Change-Id: Ic7169cefda6a4637511ecfa3ce5ddde6f3d55f8c
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
6 years agoMerge "msm: ispif: fix the OOB read issue"
Linux Build Service Account [Thu, 27 Jul 2017 13:47:06 +0000 (06:47 -0700)]
Merge "msm: ispif: fix the OOB read issue"

6 years agoMerge "wcnss: fix the potential buffer flow issue in firmware setup"
Linux Build Service Account [Thu, 27 Jul 2017 13:47:05 +0000 (06:47 -0700)]
Merge "wcnss: fix the potential buffer flow issue in firmware setup"

6 years agorwsem: fix missed wakeup due to reordering of load
Prateek Sood [Wed, 5 Jul 2017 17:54:16 +0000 (23:24 +0530)]
rwsem: fix missed wakeup due to reordering of load

If a spinner is present, there is a chance that the load of
rwsem_has_spinner() in rwsem_wake() can be reordered with
respect to decrement of rwsem count in __up_write() leading
to wakeup being missed.

 spinning writer                  up_write caller
 ---------------                  -----------------------
 [S] osq_unlock()                 [L] osq
  spin_lock(wait_lock)
  sem->count=0xFFFFFFFF00000001
            +0xFFFFFFFF00000000
  count=sem->count
  MB
                                   sem->count=0xFFFFFFFE00000001
                                             -0xFFFFFFFF00000001
                                   RMB
                                   spin_trylock(wait_lock)
                                   return
 rwsem_try_write_lock(count)
 spin_unlock(wait_lock)
 schedule()

Reordering of atomic_long_sub_return_release() in __up_write()
and rwsem_has_spinner() in rwsem_wake() can cause missing of
wakeup in up_write() context. In spinning writer, sem->count
and local variable count is 0XFFFFFFFE00000001. It would result
in rwsem_try_write_lock() failing to acquire rwsem and spinning
writer going to sleep in rwsem_down_write_failed().

The smp_rmb() will make sure that the spinner state is
consulted after sem->count is updated in up_write context.

Change-Id: I96de9a65adedb35d1ee2c6c36dc7759c9b8f5d4d
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
6 years agodiag: Free the read workqueue structure to avoid memory leak
Manoj Prabhu B [Thu, 27 Jul 2017 09:57:23 +0000 (15:27 +0530)]
diag: Free the read workqueue structure to avoid memory leak

The patch frees the read workqueue structure after
scheduled workqueue processes the glink buffers and notifies
glink to avoid possible memory leak.

CRs-Fixed: 2083447
Change-Id: I4e562f9d1cbf02d8306e0a127835af85dfa5db23
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
6 years agodiag: Flush control workqueue immediately on channel close
Mohit Aggarwal [Mon, 24 Jul 2017 08:33:56 +0000 (14:03 +0530)]
diag: Flush control workqueue immediately on channel close

Currently, flushing of control workqueue is happening
under protection which is causing a deadlock. The patch
fixes the issue by flushing the control workqueue on
immediate closure of channel.

CRs-Fixed: 2081948
Change-Id: I6a7b1ee7cbabf2974700e28fc62c6d8fa3d464ed
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
6 years agoARM: dts: msm: Make allocation for diag as guaranteed on sdm630
Mohit Aggarwal [Wed, 31 May 2017 11:00:03 +0000 (16:30 +0530)]
ARM: dts: msm: Make allocation for diag as guaranteed on sdm630

Currently, memshare allocates 5MB memory to diag client on
receiving requests from modem. With the patch diag client
will be considered guaranteed on sdm630 to avoid memory
allocation failure on modem SSRs. Also being guaranteed
client allocated memory will never be freed.

CRs-Fixed: 2054448
Change-Id: I7b0780d064a27e8ebca9d31747ce1f9c18d84fdb
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
6 years agoMerge "cnss2: Print string for firmware mode"
Linux Build Service Account [Thu, 27 Jul 2017 02:22:55 +0000 (19:22 -0700)]
Merge "cnss2: Print string for firmware mode"

6 years agoMerge "icnss: Set crash state for PDR"
Linux Build Service Account [Thu, 27 Jul 2017 02:22:54 +0000 (19:22 -0700)]
Merge "icnss: Set crash state for PDR"

6 years agoMerge "hotplug cpu: ratelimit logs for thermal veto"
Linux Build Service Account [Thu, 27 Jul 2017 02:22:53 +0000 (19:22 -0700)]
Merge "hotplug cpu: ratelimit logs for thermal veto"

6 years agoMerge "msm: ipa3: disable clock gating for MISC"
Linux Build Service Account [Thu, 27 Jul 2017 02:22:45 +0000 (19:22 -0700)]
Merge "msm: ipa3: disable clock gating for MISC"

6 years agomsm: ipa3: add offline charging support
Skylar Chang [Thu, 6 Jul 2017 21:31:57 +0000 (14:31 -0700)]
msm: ipa3: add offline charging support

In offline charging mode, modem is not loaded so the proxy
IPA clock vote added by IPA driver on behalf of modem is
never released and this prolongs the charge time. Move the
proxy vote to IPA3_POST_INIT before rmnet_ipa driver init
completes.

Change-Id: I271c8e6916d0c3068f720ae81b67f0fc5c198b6f
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
6 years agocnss2: Print string for firmware mode
Yue Ma [Fri, 21 Jul 2017 00:31:48 +0000 (17:31 -0700)]
cnss2: Print string for firmware mode

This can clearly show the firmware mode sent through QMI message
in the logs to help debugging.

Signed-off-by: Yue Ma <yuem@codeaurora.org>
CRs-fixed: 2059087
Change-Id: I0b11808f00229ed557141226bc2510673a7a1ede

6 years agopower: smb-lib: Update the FLOAT detection logic
Anirudh Ghayal [Wed, 26 Jul 2017 14:56:20 +0000 (20:26 +0530)]
power: smb-lib: Update the FLOAT detection logic

An SDP may get detected as a FLOAT charger by PMIC APSD.
To handle this case do the following steps when a FLOAT
charger is detected -

1. Limit the ICL to 100mA and start USB enumeration
2. If enumeration succeeds, USB notifies a valid
   ICL and the charger updates ICL and charger-type to SDP.
3. If enumeration fails, USB notifies -ETIMEDOUT and
   charger applies ICL based on the Rp value.

CRs-Fixed: 2081457
Change-Id: I2747a42ed9f9531e83c53d781a8ae9baa9aa74d0
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
6 years agoMerge "ARM: dts: msm: enable DP functionality for SDA660 HDK platform"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:59 +0000 (08:44 -0700)]
Merge "ARM: dts: msm: enable DP functionality for SDA660 HDK platform"

6 years agoMerge "msm: camera: Make use of mutex lock to avoid race condition"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:56 +0000 (08:44 -0700)]
Merge "msm: camera: Make use of mutex lock to avoid race condition"

6 years agoMerge "msm: ais: sensor: validating the flash initialization parameters"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:55 +0000 (08:44 -0700)]
Merge "msm: ais: sensor: validating the flash initialization parameters"

6 years agoMerge "icnss: Consolidate logging message"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:54 +0000 (08:44 -0700)]
Merge "icnss: Consolidate logging message"

6 years agoMerge "drm/msm: Turn off hardware clock gating before reading A5XX registers"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:51 +0000 (08:44 -0700)]
Merge "drm/msm: Turn off hardware clock gating before reading A5XX registers"

6 years agoMerge "ARM: dts: msm: Add qseecom device node on msm8996 lfv platform"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:50 +0000 (08:44 -0700)]
Merge "ARM: dts: msm: Add qseecom device node on msm8996 lfv platform"

6 years agoMerge "misc: qseecom: Support qseecom deferred probing"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:49 +0000 (08:44 -0700)]
Merge "misc: qseecom: Support qseecom deferred probing"

6 years agoMerge "scsi: ufs: Serialise ufs clock gating and ungating"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:42 +0000 (08:44 -0700)]
Merge "scsi: ufs: Serialise ufs clock gating and ungating"

6 years agomsm: mdss: do not update polarity for DSI interface
zhaoyuan [Wed, 17 May 2017 10:00:12 +0000 (18:00 +0800)]
msm: mdss: do not update polarity for DSI interface

Polarity should be updated based on HDMI resolution
for HDMI display. However, DSI interface does not need
to update polarity.

CRs-Fixed: 2046790
Change-Id: I4a30fcd7ebec70224accd2178c14bd37d2059f4e
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
6 years agoARM: dts: msm: enable DP functionality for SDA660 HDK platform
zhaoyuan [Wed, 21 Jun 2017 02:58:32 +0000 (10:58 +0800)]
ARM: dts: msm: enable DP functionality for SDA660 HDK platform

SDA660 HDK platform has DP hardware blocks, so enable it in the
device tree.

CRs-Fixed: 2064346
Change-Id: Ieb524e37ed2f4cdd5776759b00ec182378ff6ff5
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
6 years agohotplug cpu: ratelimit logs for thermal veto
Prateek Sood [Thu, 11 May 2017 11:32:29 +0000 (17:02 +0530)]
hotplug cpu: ratelimit logs for thermal veto

Thermal notifier callback is not allowing CPU
to come online. Rate limit logs to avoid watchdog
non-secure bite as it is a valid rejection due to
high temperature of SOC.

Change-Id: If3f8df7370e6ffd18b50e7451431d6a26023359d
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
6 years agomsm: camera: Make use of mutex lock to avoid race condition
annamraj [Wed, 19 Jul 2017 11:22:55 +0000 (16:52 +0530)]
msm: camera: Make use of mutex lock to avoid race condition

Make use of mutex lock to access IOCTL so that two threads
can avoid race condition.

Change-Id: I00db78a42c86eef8a157b5b3547e4ca0006b0853
Signed-off-by: annamraj <annamraj@codeaurora.org>
6 years agoath10k: fix memory leak in rx ring buffer allocation
Rakesh Pillai [Tue, 25 Jul 2017 09:34:17 +0000 (15:04 +0530)]
ath10k: fix memory leak in rx ring buffer allocation

The rx ring buffers are added to a hash table if firmare
support full rx reorder. If the full rx reorder support
flag is not set before allocating the rx ring buffers,
none of the buffers are added to the hash table. When we
unload the module, this hash table is checked for freeing
the allocated rx ring buffers. Since none of the rx ring buffers
were added to the hash table, this memory is leaked.

Set the rx full reorder support flag before we allocate
the rx ring buffer to avoid the memory leak.

CRs-Fixed: 2081334
Change-Id: I6b7cbe05b914cf9aedd8e1ad54ccc4738f8b01e8
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
6 years agoMerge "spcom: ignore CONNECTED notification while closing the channel"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:50 +0000 (15:29 -0700)]
Merge "spcom: ignore CONNECTED notification while closing the channel"

6 years agoMerge "msm: vidc: retain clock rate across power suspend/resume"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:49 +0000 (15:29 -0700)]
Merge "msm: vidc: retain clock rate across power suspend/resume"

6 years agoMerge "ARM: dts: msm: Add intermediate voting for DDR in memlat for sdm630"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:48 +0000 (15:29 -0700)]
Merge "ARM: dts: msm: Add intermediate voting for DDR in memlat for sdm630"

6 years agoMerge "msm: sensor: Fix to validate the settings size in flash"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:47 +0000 (15:29 -0700)]
Merge "msm: sensor: Fix to validate the settings size in flash"

6 years agoMerge "msm: camera: Prevent kernel info leak."
Linux Build Service Account [Tue, 25 Jul 2017 22:29:46 +0000 (15:29 -0700)]
Merge "msm: camera: Prevent kernel info leak."

6 years agoMerge "ARM: dts: msm: Add pinctrl bindings for msm8998"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:45 +0000 (15:29 -0700)]
Merge "ARM: dts: msm: Add pinctrl bindings for msm8998"

6 years agoMerge "msm: kgsl: Update total time at right place for accurate GPU busy"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:45 +0000 (15:29 -0700)]
Merge "msm: kgsl: Update total time at right place for accurate GPU busy"

6 years agoMerge "cnss2: Do not deinit MHI right after powerup failure"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:44 +0000 (15:29 -0700)]
Merge "cnss2: Do not deinit MHI right after powerup failure"

6 years agoMerge "usb: gadget: Disable USB2 LPM Support"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:35 +0000 (15:29 -0700)]
Merge "usb: gadget: Disable USB2 LPM Support"

6 years agoMerge "clk: msm: Fix pll out div programming"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:34 +0000 (15:29 -0700)]
Merge "clk: msm: Fix pll out div programming"

6 years agoicnss: Set crash state for PDR
Sameer Thalappil [Tue, 25 Jul 2017 20:24:48 +0000 (13:24 -0700)]
icnss: Set crash state for PDR

For PDR, the crashed state should be set to invoke driver's
PDR/SSR routine rather than the remove routine.

CRs-Fixed: 2082279
Change-Id: I5f5d51c530c563d93eeaf183ee10ac558f5d5a1a
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>
6 years agoARM: dts: msm: Add intermediate voting for DDR in memlat for sdm630
Prasanth Kamuju [Mon, 10 Apr 2017 07:16:48 +0000 (12:46 +0530)]
ARM: dts: msm: Add intermediate voting for DDR in memlat for sdm630

The current vote mapping is not sufficient for the most of the
gaming usecases on sdm630. Added intermediate voting in the
current mapping.

CRs-Fixed: 2033301
Change-Id: Ie376a3ce46ccfd31a067dfa93967bb211e9df97a
Signed-off-by: Prasanth Kamuju <pkamuju@codeaurora.org>
6 years agoath10k: Fix dst CE ring configuration for CE5
Govind Singh [Tue, 25 Jul 2017 10:08:00 +0000 (15:38 +0530)]
ath10k: Fix dst CE ring configuration for CE5

CE5 ring is not used in current configuration for
WCN3990 chipset. Set the entries to zero to avoid
unnecessary allocation during driver load.

CRs-Fixed: 2082022
Change-Id: I992f0fb3b5c2bc6d6fd067bb23e67b23a12ffdb7
Signed-off-by: Govind Singh <govinds@codeaurora.org>
6 years agomsm: sensor: Fix for variable being de-referenced without proper check
Rahul Sharma [Tue, 18 Jul 2017 12:14:02 +0000 (17:44 +0530)]
msm: sensor: Fix for variable being de-referenced without proper check

Pointer from userspace is de-referenced before the command is checked.
This might cause a crash if the command being sent is not a valid command.
Hence changing the de-reference such that the pointer is accessed after
checking if a valid command is sent from the userspace.

Change-Id: Iba2e2da5b5adfa0323f8b7d56445af14acd58f84
CR fixed: 2053970
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
6 years agomsm: ispif: fix the OOB read issue
Srikanth Uyyala [Tue, 25 Jul 2017 09:37:27 +0000 (15:07 +0530)]
msm: ispif: fix the OOB read issue

array 'entries' indexed without any conditional check
fix this by checking index against array size.

Change-Id: Ie41890ca26d4a780d13e65ee78b7a4f51f6183ea
Signed-off-by: Srikanth Uyyala <suyyala@codeaurora.org>
6 years agoARM: dts: msm: Add qseecom device node on msm8996 lfv platform
Amit Blay [Tue, 25 Jul 2017 09:15:36 +0000 (12:15 +0300)]
ARM: dts: msm: Add qseecom device node on msm8996 lfv platform

Add qseecom device node in guest VM configuration.
This commit adds the device node for the qseecom driver,
and also the reserved memory region for the QSEECOM ION heap.

Change-Id: Ibdf80d080208b5ab8530a1c40ecbccc7298ae89b
Signed-off-by: Amit Blay <ablay@codeaurora.org>
6 years agomsm: ais: sensor: validating the flash initialization parameters
Rahul Sharma [Wed, 19 Jul 2017 05:22:17 +0000 (10:52 +0530)]
msm: ais: sensor: validating the flash initialization parameters

Copying the flash initialization parameters from userspace memory to
kernel memory and in turn checking for the validity of the flash
initialization parameters pointer sent from userspace

Change-Id: I9ecd0a5d320a68ef23fb8dd0d4eaab7f7da5f729
CR fixed: 2059812
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
6 years agomisc: qseecom: Support qseecom deferred probing
Amit Blay [Tue, 25 Jul 2017 07:38:33 +0000 (10:38 +0300)]
misc: qseecom: Support qseecom deferred probing

During qseecom driver probing, the ION driver is invoked.
This commit supports the case where the ION driver still hasn't
probed. In that case, the qseecom probing will be deferred, and
retried at a later stage.

Change-Id: Ic780e8fa1d48a9f5b8b98773c034b280475f5fd0
Signed-off-by: Amit Blay <ablay@codeaurora.org>
6 years agoMerge "msm: mdss: sink mode needs to be read from EDID"
Linux Build Service Account [Tue, 25 Jul 2017 07:36:02 +0000 (00:36 -0700)]
Merge "msm: mdss: sink mode needs to be read from EDID"

6 years agoMerge "msm: mdss: hdcp2p2: fix check for sink support for HDCP 2.x"
Linux Build Service Account [Tue, 25 Jul 2017 07:36:01 +0000 (00:36 -0700)]
Merge "msm: mdss: hdcp2p2: fix check for sink support for HDCP 2.x"

6 years agoMerge "msm: mdss: dp: do not program audio registers when DP core is off"
Linux Build Service Account [Tue, 25 Jul 2017 07:36:00 +0000 (00:36 -0700)]
Merge "msm: mdss: dp: do not program audio registers when DP core is off"

6 years agoMerge "Revert "msm: sde: rotator: Enable traffic shaper for 4k@60fps layer""
Linux Build Service Account [Tue, 25 Jul 2017 07:35:57 +0000 (00:35 -0700)]
Merge "Revert "msm: sde: rotator: Enable traffic shaper for 4k@60fps layer""

6 years agoMerge "wil6210: send uevent when creating sysfs files"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:56 +0000 (00:35 -0700)]
Merge "wil6210: send uevent when creating sysfs files"

6 years agoMerge "esoc: Fix irq unbalance wake disable warning"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:55 +0000 (00:35 -0700)]
Merge "esoc: Fix irq unbalance wake disable warning"

6 years agoMerge "ASoC: msm: mixer control queue handling in sink stream"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:47 +0000 (00:35 -0700)]
Merge "ASoC: msm: mixer control queue handling in sink stream"

6 years agoMerge "ASoC: msm: Add FE dai for MultiMedia21 for ASM Loopback"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:46 +0000 (00:35 -0700)]
Merge "ASoC: msm: Add FE dai for MultiMedia21 for ASM Loopback"

6 years agoMerge "ASoC: msm: qdsp6v2: Add MultiMedia21 capture and routing"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:45 +0000 (00:35 -0700)]
Merge "ASoC: msm: qdsp6v2: Add MultiMedia21 capture and routing"

6 years agoMerge "USB: policy_engine: Enable VBUS after VCONN before PE_SRC_Startup"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:44 +0000 (00:35 -0700)]
Merge "USB: policy_engine: Enable VBUS after VCONN before PE_SRC_Startup"

6 years agoMerge "soc: qcom: watchdog_v2: update last_pet variable during resume"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:43 +0000 (00:35 -0700)]
Merge "soc: qcom: watchdog_v2: update last_pet variable during resume"

6 years agoMerge "usb: dwc3: gadget: don't send extra ZLP"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:42 +0000 (00:35 -0700)]
Merge "usb: dwc3: gadget: don't send extra ZLP"

6 years agoMerge "usb: dwc3: gadget: handle request->zero"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:41 +0000 (00:35 -0700)]
Merge "usb: dwc3: gadget: handle request->zero"

6 years agoMerge "msm: ais: cpp changes to validate ioctl input"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:39 +0000 (00:35 -0700)]
Merge "msm: ais: cpp changes to validate ioctl input"

6 years agoMerge "power: smb138x-charger: set buck freq to 700kHz in slave mode"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:38 +0000 (00:35 -0700)]
Merge "power: smb138x-charger: set buck freq to 700kHz in slave mode"

6 years agoMerge "vfs: Add support to debug umount failures"
Linux Build Service Account [Tue, 25 Jul 2017 07:35:37 +0000 (00:35 -0700)]
Merge "vfs: Add support to debug umount failures"

6 years agomsm: sensor: Fix to validate the settings size in flash
Rahul Sharma [Tue, 18 Jul 2017 11:56:03 +0000 (17:26 +0530)]
msm: sensor: Fix to validate the settings size in flash

The size of the settings, copied from userspace, is directly checked
in msm_cci_data_queue with CCI_I2C_MAX_WRITE. This might cause
out of bound access in function msm_cci_data_queue as the max size is
MAX_I2C_REG_SET. Hence adding check on the size in flash driver itself.

Change-Id: Iaf8b62815282386af58d1b111876cc80411385a0
CR fixed: 2062894
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
6 years agomsm: sde: release LK's pool when LK exits
Guchun Chen [Tue, 13 Jun 2017 10:00:23 +0000 (18:00 +0800)]
msm: sde: release LK's pool when LK exits

LK's pool is reserved for running on its code stack. So once
LK exits, the memory region it stays on should be released
and reused by system.

Change-Id: Iec5af69573eb633de48c931a052bd596f5ed3bda
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
6 years agoARM: dts: msm: add memory region info for early splash feature
Guchun Chen [Fri, 28 Apr 2017 03:02:54 +0000 (11:02 +0800)]
ARM: dts: msm: add memory region info for early splash feature
on msm8996

These two memory regions are for the memory nodes which early
animation/static display will visit. Both are needed to be
processed in kernel handoff sequence.

Change-Id: I36a9b3dcc6b905af4bb8383cfbd1555e8e9bd417
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
6 years agomsm: sde: add early display handoff feature
Guchun Chen [Thu, 20 Apr 2017 11:32:09 +0000 (19:32 +0800)]
msm: sde: add early display handoff feature

When enabling animation/static splash in LK, drm/kms driver needs
to involve handoff code to support smooth transition. In display
driver's probe, it will do following items:
1. Check the status in LK for early splash.
2. Add data bus bandwidth voting in function sde_splash_init.
2. Handle SMMU mapping issue to avoid SMMU fault problem.
3. Bypass hardware reset to avoid glitch.

And after user's space is up, when first commit's vblank comes,
it will call functions to:
1. Tell LK to stop static/animation display and to exit.
2. Set early_domain_map_attr to 1 to enable stage 1 translation in
   iommu driver.
3. Check the property of commit.If it's for HDMI, release HDMI
resource. If for DSI, release DSI resource.
4. Recycle the memory to be available to system.
5. Withdraw the bus bandwidth voting.

Change-Id: If425f044e2c40301eed57375a33a26ec1970abd5
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>