OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agommc: core: Select HS mode in device first and then in the host
Sayali Lokhande [Wed, 5 Jul 2017 05:51:28 +0000 (11:21 +0530)]
mmc: core: Select HS mode in device first and then in the host

While switching from hs400 to hs200 mode, high speed mode
timing should be selected in the device before changing the
clock frequency in the host. But current implementation,
(mmc_hs400_to_hs200) first updates the frequency in the host
and then updates mode in the device. This is a spec violation.
Hence update the sequence to comply with the spec.

Change-Id: I0694edac9dd005ec68add9cc38bbe6fa4245ed48
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
7 years agoMerge "icnss: Use fixed memory region for WLAN MSA0 memory"
Linux Build Service Account [Sat, 8 Jul 2017 00:45:54 +0000 (17:45 -0700)]
Merge "icnss: Use fixed memory region for WLAN MSA0 memory"

7 years agoMerge "msm: mdss: information leak during buffer copy from userspace"
Linux Build Service Account [Sat, 8 Jul 2017 00:45:53 +0000 (17:45 -0700)]
Merge "msm: mdss: information leak during buffer copy from userspace"

7 years agoMerge "msm: mdss: Increase fbmem buf ref count before use"
Linux Build Service Account [Sat, 8 Jul 2017 00:45:52 +0000 (17:45 -0700)]
Merge "msm: mdss: Increase fbmem buf ref count before use"

7 years agoMerge "mdss: dp: avoid notifying DP connect during AUX timeout cases"
Linux Build Service Account [Sat, 8 Jul 2017 00:45:51 +0000 (17:45 -0700)]
Merge "mdss: dp: avoid notifying DP connect during AUX timeout cases"

7 years agoMerge "msm: mdss: Put smmu interface errors under pr_err"
Linux Build Service Account [Sat, 8 Jul 2017 00:45:50 +0000 (17:45 -0700)]
Merge "msm: mdss: Put smmu interface errors under pr_err"

7 years agoMerge "ARM: dts: msm: Support for adv7533 1024x600P panel resolution on msm8996"
Linux Build Service Account [Sat, 8 Jul 2017 00:45:49 +0000 (17:45 -0700)]
Merge "ARM: dts: msm: Support for adv7533 1024x600P panel resolution on msm8996"

7 years agoMerge "msm: mdss: Fix possible integer overflow"
Linux Build Service Account [Sat, 8 Jul 2017 00:45:49 +0000 (17:45 -0700)]
Merge "msm: mdss: Fix possible integer overflow"

7 years agoMerge "soc: qcom: ipc_router_mhi_xprt: Do not defer MHI open and close work"
Linux Build Service Account [Sat, 8 Jul 2017 00:45:47 +0000 (17:45 -0700)]
Merge "soc: qcom: ipc_router_mhi_xprt: Do not defer MHI open and close work"

7 years agoMerge "Revert "ARM: dts: msm: align removed_region with SDM630 memmap""
Linux Build Service Account [Fri, 7 Jul 2017 15:32:00 +0000 (08:32 -0700)]
Merge "Revert "ARM: dts: msm: align removed_region with SDM630 memmap""

7 years agoMerge "icnss: Show rejuvenation info in ICNSS stats report"
Linux Build Service Account [Fri, 7 Jul 2017 15:31:59 +0000 (08:31 -0700)]
Merge "icnss: Show rejuvenation info in ICNSS stats report"

7 years agoMerge "pwm: pwm-qpnp: Ignore changing period setting if it's not requested"
Linux Build Service Account [Fri, 7 Jul 2017 15:31:58 +0000 (08:31 -0700)]
Merge "pwm: pwm-qpnp: Ignore changing period setting if it's not requested"

7 years agoMerge "msm: sensor: Fix to validate the settings size in flash"
Linux Build Service Account [Fri, 7 Jul 2017 15:31:57 +0000 (08:31 -0700)]
Merge "msm: sensor: Fix to validate the settings size in flash"

7 years agoMerge "msm: camera: Unlock rwlock before returning."
Linux Build Service Account [Fri, 7 Jul 2017 15:31:56 +0000 (08:31 -0700)]
Merge "msm: camera: Unlock rwlock before returning."

7 years agoMerge "diag: Add proper checks to fix possible out-of-bound issue"
Linux Build Service Account [Fri, 7 Jul 2017 15:31:56 +0000 (08:31 -0700)]
Merge "diag: Add proper checks to fix possible out-of-bound issue"

7 years agoicnss: Use fixed memory region for WLAN MSA0 memory
Hardik Kantilal Patel [Fri, 5 May 2017 11:27:48 +0000 (16:57 +0530)]
icnss: Use fixed memory region for WLAN MSA0 memory

During first time boot up WLAN Platform driver allocate
1 MB MSA0 Memory region. This region may be adjacent to
other regions that also requires access control, due to
that TZ will merge the two sections into one single resource
group. During this Q6 will lose access to memory region causing
a NOC Error. To avoid use fixed memory region for WLAN MSA0
memory.

CRs-Fixed: 2066025
Change-Id: Ie878e010954524bbe48a29d6ad6f2f53848ab25e
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
7 years agomsm: sensor: Fix to validate the settings size in flash
Samyukta Mogily [Tue, 4 Jul 2017 10:52:07 +0000 (16:22 +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: Ifac358be9f4b4ff60d14c20e02886c2d044e7f52
Signed-off-by: Samyukta Mogily <smogily@codeaurora.org>
7 years agomsm: camera: Unlock rwlock before returning.
Trishansh Bhardwaj [Tue, 4 Jul 2017 08:43:15 +0000 (14:13 +0530)]
msm: camera: Unlock rwlock before returning.

put_buf and buf_done are not unlocking rwlock in error case.

Change-Id: Ie10afa15f332cf7bd38be69ea8b99b163b125e66
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
7 years agopwm: pwm-qpnp: Ignore changing period setting if it's not requested
Fenglin Wu [Mon, 3 Jul 2017 04:44:59 +0000 (12:44 +0800)]
pwm: pwm-qpnp: Ignore changing period setting if it's not requested

It's not necessary to reprogram PWM period setting if only
changing PWM duty cycle.

Change-Id: I366e17a5e2f18c09ab0850d00ec08a35e0f1cb9f
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
7 years agoMerge "regulator: core: fix a possible race in disable_work handling"
Linux Build Service Account [Fri, 7 Jul 2017 06:41:23 +0000 (23:41 -0700)]
Merge "regulator: core: fix a possible race in disable_work handling"

7 years agoMerge "genirq: Don't allow user space to set IRQ affinity to isolated CPUs"
Linux Build Service Account [Fri, 7 Jul 2017 06:41:22 +0000 (23:41 -0700)]
Merge "genirq: Don't allow user space to set IRQ affinity to isolated CPUs"

7 years agoMerge "cnss_utils: Zero out cnss_utils priv structure during initalization"
Linux Build Service Account [Fri, 7 Jul 2017 06:41:21 +0000 (23:41 -0700)]
Merge "cnss_utils: Zero out cnss_utils priv structure during initalization"

7 years agoMerge "spcom: avoid race condition when handling commands"
Linux Build Service Account [Fri, 7 Jul 2017 06:41:20 +0000 (23:41 -0700)]
Merge "spcom: avoid race condition when handling commands"

7 years agoMerge "ARM: dts: msm: Set FDE key size to 256bit for sdm660_64"
Linux Build Service Account [Fri, 7 Jul 2017 06:41:20 +0000 (23:41 -0700)]
Merge "ARM: dts: msm: Set FDE key size to 256bit for sdm660_64"

7 years agoMerge "msm: ADSPRPC: Avoid multiple hypervisor assign calls for a buffer"
Linux Build Service Account [Fri, 7 Jul 2017 06:41:19 +0000 (23:41 -0700)]
Merge "msm: ADSPRPC: Avoid multiple hypervisor assign calls for a buffer"

7 years agoMerge "iio: rradc: Update thermistor scaling"
Linux Build Service Account [Fri, 7 Jul 2017 06:41:18 +0000 (23:41 -0700)]
Merge "iio: rradc: Update thermistor scaling"

7 years agoMerge "mmc: core: Use PF_MEMALLOC flag for clock scaling context"
Linux Build Service Account [Fri, 7 Jul 2017 06:41:17 +0000 (23:41 -0700)]
Merge "mmc: core: Use PF_MEMALLOC flag for clock scaling context"

7 years agoMerge "msm: kgsl: Fix a dead loop issue while changing gpu frequency"
Linux Build Service Account [Fri, 7 Jul 2017 06:41:16 +0000 (23:41 -0700)]
Merge "msm: kgsl: Fix a dead loop issue while changing gpu frequency"

7 years agoMerge "msm: kgsl: Make sure regulators are ON before GPU clocks are forced on"
Linux Build Service Account [Fri, 7 Jul 2017 06:41:15 +0000 (23:41 -0700)]
Merge "msm: kgsl: Make sure regulators are ON before GPU clocks are forced on"

7 years agoRevert "ARM: dts: msm: align removed_region with SDM630 memmap"
Charan Teja Reddy [Wed, 5 Jul 2017 09:21:03 +0000 (14:51 +0530)]
Revert "ARM: dts: msm: align removed_region with SDM630 memmap"

Update the carveout regions properly.
This reverts commit 0e6e2ace8cfe255b399e48c000c80052a29803ef.

Change-Id: Ie93a718c4804d57975d1a2b531328e2fbe889b1f
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
7 years agoicnss: Show rejuvenation info in ICNSS stats report
Yuanyuan Liu [Sat, 17 Dec 2016 00:36:08 +0000 (16:36 -0800)]
icnss: Show rejuvenation info in ICNSS stats report

This is a debug enhance feature. It shows rejuvenation
info in ICNSS stats report, which makes it easier to
track the reason for every rejuvenation.

CRs-Fixed: 2072253
Change-Id: I6d133b4b182943ed745d7587bd1ec23858c29750
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
7 years agoregulator: core: fix a possible race in disable_work handling
Tirupathi Reddy [Fri, 30 Jun 2017 04:18:45 +0000 (09:48 +0530)]
regulator: core: fix a possible race in disable_work handling

A race condition between queueing and processing the disable_work
instances results in having a work instance in the queue and the
deferred_disables variable of regulator device structure having a
value '0'. If no new regulator_disable_deferred() call later from
clients, the deferred_disables variable value remains '0' and hits
BUG() in regulator_disable_work() when the queued instance scheduled
for processing the work.

The race occurs as below:

Core-0      Core-1
.....        /* deferred_disables = 2 */   .....
.....        /* disable_work is queued */  .....
.....      .....
regulator_disable_deferred:  regulator_disable_work:
   mutex_lock(&rdev->mutex);      .....
   rdev->deferred_disables++;     mutex_lock(&rdev->mutex);
   mutex_unlock(&rdev->mutex);      .....
   queue_delayed_work(...)     count =rdev->deferred_disables;
.....     rdev->deferred_disables = 0;
.....      .....
.....     mutex_unlock(&rdev->mutex);
.....      .....
.....     return;
.....      .....
/* No new regulator_disable_deferred() calls from clients */
/* The newly queued instance is scheduled for processing */
.....      .....
regulator_disable_work:
.....
   mutex_lock(&rdev->mutex);
   BUG_ON(!rdev->deferred_disables); /* deferred_disables = 0 */

The race is fixed by removing the work instance that is queued while
processing the previous queued instance. Cancel the newly queued instance
from disable_work() handler just after reset the deferred_disables variable
to value '0'. Also move the work queueing step before mutex_unlock in
regulator_disable_deferred().

Also use mod_delayed_work() in the pace of queue_delayed_work() as
queue_delayed_work() always uses the delay requested in the first call
when multiple consumers call regulator_disable_deferred() close in time
and does not guarantee the semantics of regulator_disable_deferred().

CRs-Fixed: 2064610
Change-Id: Iacaddc5e2f5c9998c4d038bdc10c4587cbf4812e
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
7 years agocnss_utils: Zero out cnss_utils priv structure during initalization
Yuanyuan Liu [Thu, 6 Jul 2017 20:58:33 +0000 (13:58 -0700)]
cnss_utils: Zero out cnss_utils priv structure during initalization

Zero out cnss_utils priv structure during initalization to make
sure it starts cleanly.

CRs-Fixed: 2072421
Change-Id: I72caa5fb7e1df16b018165d277cd3a404b81c304
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
7 years agoMerge "crypto: Change format specifier %p to %pK"
Linux Build Service Account [Thu, 6 Jul 2017 19:32:06 +0000 (12:32 -0700)]
Merge "crypto: Change format specifier %p to %pK"

7 years agoMerge "msm: ipa: Fix the problem with nested sleeping primitives"
Linux Build Service Account [Thu, 6 Jul 2017 19:32:05 +0000 (12:32 -0700)]
Merge "msm: ipa: Fix the problem with nested sleeping primitives"

7 years agoMerge "msm: camera: isp: fixes incorrect RDI empty frame handling"
Linux Build Service Account [Thu, 6 Jul 2017 19:32:04 +0000 (12:32 -0700)]
Merge "msm: camera: isp: fixes incorrect RDI empty frame handling"

7 years agospcom: avoid race condition when handling commands
Amir Samuelov [Wed, 5 Jul 2017 10:23:29 +0000 (13:23 +0300)]
spcom: avoid race condition when handling commands

The spcom allows only one owner per channel, so only one app can open()
a channel char device at a time.
However, the channel owner process might share the channel file
descriptor (fd) with other threads, that might write() concurrently
a command to spcom, that can cause a race.
Add a mutex to "serialize" handling of the commands.

Change-Id: Ief9c6c48a862444dfff66d14d2317568cd6e81e6
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
7 years agomsm: ADSPRPC: Avoid multiple hypervisor assign calls for a buffer
Sathish Ambley [Thu, 4 May 2017 00:24:37 +0000 (17:24 -0700)]
msm: ADSPRPC: Avoid multiple hypervisor assign calls for a buffer

Access to dma shared buffer is set at device probe, avoid making
multiple hypervisor assign calls for the same buffer.

Change-Id: I91f7dd0bca109fa774af49159bdec57b8acd65b2
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
7 years agoMerge "ARM: dts: msm: add MSM external display node to msm8996"
Linux Build Service Account [Thu, 6 Jul 2017 11:39:00 +0000 (04:39 -0700)]
Merge "ARM: dts: msm: add MSM external display node to msm8996"

7 years agoMerge "drm/msm: add default value for plane enum property"
Linux Build Service Account [Thu, 6 Jul 2017 11:38:59 +0000 (04:38 -0700)]
Merge "drm/msm: add default value for plane enum property"

7 years agoMerge "ARM: dtsi: msm: reserve memory for LK's stack on msm8996"
Linux Build Service Account [Thu, 6 Jul 2017 11:38:58 +0000 (04:38 -0700)]
Merge "ARM: dtsi: msm: reserve memory for LK's stack on msm8996"

7 years agoMerge "regulator: core: remove some dead code"
Linux Build Service Account [Thu, 6 Jul 2017 11:38:57 +0000 (04:38 -0700)]
Merge "regulator: core: remove some dead code"

7 years agoARM: dts: msm: Set FDE key size to 256bit for sdm660_64
Neeraj Soni [Thu, 6 Jul 2017 11:27:57 +0000 (16:57 +0530)]
ARM: dts: msm: Set FDE key size to 256bit for sdm660_64

Set FDE encryption key size to 256bit for sdm660_64
target.

Change-Id: Ib90068dc1a4a7c1caa1a65753c1b91827b1eb798
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
7 years agoMerge "Revert "defconfig: arm64: msm: Enable virtual platform"" into msm-4.4
Linux Build Service Account [Thu, 6 Jul 2017 09:48:23 +0000 (02:48 -0700)]
Merge "Revert "defconfig: arm64: msm: Enable virtual platform"" into msm-4.4

7 years agoRevert "defconfig: arm64: msm: Enable virtual platform"
Neeraj Upadhyay [Thu, 6 Jul 2017 09:14:51 +0000 (14:44 +0530)]
Revert "defconfig: arm64: msm: Enable virtual platform"

This reverts commit 2bb686dccd3a ("defconfig: arm64: msm: Enable
virtual platform"). The configs added in this change are not in
proper state and have build failures.

Change-Id: I30922e76761a1c436b54fb07f376ad9a5f5718f8
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
7 years agoMerge "drm/msm: Add timestamp counter"
Linux Build Service Account [Thu, 6 Jul 2017 01:20:20 +0000 (18:20 -0700)]
Merge "drm/msm: Add timestamp counter"

7 years agoMerge "msm: kgsl: Add A5XX RBBM registers to pre-crash dumper list"
Linux Build Service Account [Thu, 6 Jul 2017 01:20:20 +0000 (18:20 -0700)]
Merge "msm: kgsl: Add A5XX RBBM registers to pre-crash dumper list"

7 years agoMerge "msm: kgsl: Add a NULL check for limit pointer"
Linux Build Service Account [Thu, 6 Jul 2017 01:20:19 +0000 (18:20 -0700)]
Merge "msm: kgsl: Add a NULL check for limit pointer"

7 years agoMerge "mm: add preempt points into __purge_vmap_area_lazy()"
Linux Build Service Account [Thu, 6 Jul 2017 01:20:17 +0000 (18:20 -0700)]
Merge "mm: add preempt points into __purge_vmap_area_lazy()"

7 years agoMerge "mm: turn vmap_purge_lock into a mutex"
Linux Build Service Account [Thu, 6 Jul 2017 01:20:16 +0000 (18:20 -0700)]
Merge "mm: turn vmap_purge_lock into a mutex"

7 years agoMerge "compat_qcedev: Fix accessing userspace memory in kernel space"
Linux Build Service Account [Wed, 5 Jul 2017 17:28:43 +0000 (10:28 -0700)]
Merge "compat_qcedev: Fix accessing userspace memory in kernel space"

7 years agoMerge "diag: Add protection while processing non-hdlc packets"
Linux Build Service Account [Wed, 5 Jul 2017 17:28:42 +0000 (10:28 -0700)]
Merge "diag: Add protection while processing non-hdlc packets"

7 years agoMerge "mmc: card: Ratelimit the error log in mmc_blk_cmd_recovery()"
Linux Build Service Account [Wed, 5 Jul 2017 17:28:41 +0000 (10:28 -0700)]
Merge "mmc: card: Ratelimit the error log in mmc_blk_cmd_recovery()"

7 years agoMerge "defconfig: Enable and disable few configs for msm8998"
Linux Build Service Account [Wed, 5 Jul 2017 17:28:40 +0000 (10:28 -0700)]
Merge "defconfig: Enable and disable few configs for msm8998"

7 years agomsm: kgsl: Fix a dead loop issue while changing gpu frequency
Venkateswara Rao Tadikonda [Tue, 27 Jun 2017 07:35:10 +0000 (13:05 +0530)]
msm: kgsl: Fix a dead loop issue while changing gpu frequency

There is a dead loop in kgsl_devfreq_target(), while governor request
to change GPU frequency. In governor 'userspace' mode, If the requested
frequency (set_freq) is more than the configured frequency and max_freq
is also set to more than the configured frequency, then there is a dead
loop while changing target frequency.

Dead loop occurs due to comparing signed integer with unsigned integer.
So, type casting unsigned integer to signed integer will terminate the
loop when loop variable is less than zero.

Change-Id: Ic82b7477d50d1abcd348b011f64246066887922c
Signed-off-by: Venkateswara Rao Tadikonda <vtadik@codeaurora.org>
7 years agodiag: Add proper checks to fix possible out-of-bound issue
Hardik Arya [Mon, 12 Jun 2017 05:56:05 +0000 (11:26 +0530)]
diag: Add proper checks to fix possible out-of-bound issue

Currently, there is a possibility of out-of-bound access while
processing data received from user space. The patch adds proper
checks for valid address.

CRs-Fixed: 2048536
Change-Id: I1e0fc7a9d69e69f3326429d5d9540dd3bb1a59b0
Signed-off-by: Hardik Arya <harya@codeaurora.org>
7 years agoMerge "USB: phy-msm-qusb: Enable autoresume only when device is connected"
Linux Build Service Account [Wed, 5 Jul 2017 09:57:08 +0000 (02:57 -0700)]
Merge "USB: phy-msm-qusb: Enable autoresume only when device is connected"

7 years agoMerge "mmc: host: Capture error states in Trace logs."
Linux Build Service Account [Wed, 5 Jul 2017 09:57:07 +0000 (02:57 -0700)]
Merge "mmc: host: Capture error states in Trace logs."

7 years agoMerge "msm: ADSPRPC: Initialize FastRPC invoke metadata"
Linux Build Service Account [Wed, 5 Jul 2017 09:57:06 +0000 (02:57 -0700)]
Merge "msm: ADSPRPC: Initialize FastRPC invoke metadata"

7 years agoMerge "msm: mdss: Check htotal for calculating programmable fetch"
Linux Build Service Account [Wed, 5 Jul 2017 09:57:05 +0000 (02:57 -0700)]
Merge "msm: mdss: Check htotal for calculating programmable fetch"

7 years agoMerge "drm/msm: add support for parsing YUV 420 deep color"
Linux Build Service Account [Wed, 5 Jul 2017 01:14:09 +0000 (18:14 -0700)]
Merge "drm/msm: add support for parsing YUV 420 deep color"

7 years agoMerge "firmware: qcom: tz_log: update interrupt info offset"
Linux Build Service Account [Wed, 5 Jul 2017 01:14:08 +0000 (18:14 -0700)]
Merge "firmware: qcom: tz_log: update interrupt info offset"

7 years agoMerge "msm-camera: sensor: Fixing kernel crash during i2c read"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:32 +0000 (10:05 -0700)]
Merge "msm-camera: sensor: Fixing kernel crash during i2c read"

7 years agoMerge "lpm-levels: Enter shallowest state if predicted sleep length is less"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:31 +0000 (10:05 -0700)]
Merge "lpm-levels: Enter shallowest state if predicted sleep length is less"

7 years agoMerge "ASoC: msm-cpe: Resolve memory out of bound access"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:30 +0000 (10:05 -0700)]
Merge "ASoC: msm-cpe: Resolve memory out of bound access"

7 years agoMerge "ARM: dts: msm: Add support for MPM wakeup capability for audio interrupt for...
Linux Build Service Account [Tue, 4 Jul 2017 17:05:30 +0000 (10:05 -0700)]
Merge "ARM: dts: msm: Add support for MPM wakeup capability for audio interrupt for SDM660/630"

7 years agoMerge "msm: ispif: fix crash during dumping io register"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:29 +0000 (10:05 -0700)]
Merge "msm: ispif: fix crash during dumping io register"

7 years agoMerge "cnss_utils: Add support of cnss_utils for WLAN"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:27 +0000 (10:05 -0700)]
Merge "cnss_utils: Add support of cnss_utils for WLAN"

7 years agoMerge "drm/msm/sde: remove extra entries from interrupt table"
Linux Build Service Account [Tue, 4 Jul 2017 17:05:23 +0000 (10:05 -0700)]
Merge "drm/msm/sde: remove extra entries from interrupt table"

7 years agommc: host: Capture error states in Trace logs.
Siba Prasad [Tue, 27 Jun 2017 09:43:27 +0000 (15:13 +0530)]
mmc: host: Capture error states in Trace logs.

Upon encountering any error, few important registers are being captured
in trace logs in sdhci_dumpregs(). But without capturing exact error,
it would be tough to determine from which point in driver this dumpregs
has called. So capture the error state as well in Trace logs before
calling sdhci_dumpregs(). Also capture power irq related registers in
Trace logs upon any power irq related errors.

Change-Id: Ide172cdfb88a988cd4220bed03d05b8c6c4f15cb
Signed-off-by: Siba Prasad <sibap@codeaurora.org>
7 years agomsm: mdss: Fix possible integer overflow
Sachin Bhayare [Fri, 30 Jun 2017 05:47:18 +0000 (11:17 +0530)]
msm: mdss: Fix possible integer overflow

Avoid possible integer overflow while validating mdp3 image
parameters.

Change-Id: Ifd972134a23f653cf38134510d98dec5a604d2bc
CRs-Fixed: 1107055
Signed-off-by: Sachin Bhayare <sachin.bhayare@codeaurora.org>
7 years agoARM: dts: msm: Support for adv7533 1024x600P panel resolution on msm8996
Rahul Sharma [Tue, 13 Jun 2017 10:20:30 +0000 (15:50 +0530)]
ARM: dts: msm: Support for adv7533 1024x600P panel resolution on msm8996

Add 1024x600p resolution support in adv7533 DSI-to-HDMI
bridge chip on msm8996 automotive target. This change creates
a new timing parameter for DSI panels along with parameters
like vtotal, htotal, panel-width, panel-height etc.

Change-Id: I679352bf2422a59421fbe1943e7b0b4d5deaefe3
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
7 years agodefconfig: Enable and disable few configs for msm8998
Mohammed Khajapasha [Fri, 9 Jun 2017 07:16:09 +0000 (12:46 +0530)]
defconfig: Enable and disable few configs for msm8998

This change enables and disables below list of configs to
address the VTS KernelConfig test case failures.

Enable configs:
CONFIG_USB_CONFIGFS_F_AUDIO_SRC
CONFIG_QUOTA
CONFIG_QUOTA_NETLINK_INTERFACE
CONFIG_QFMT_V2
CONFIG_SECURITY_PERF_EVENTS_RESTRICT
CONFIG_CGROUP_DEBUG

Disable configs in perf defconfig:
CONFIG_USELIB
CONFIG_INET_LRO

Change-Id: Icecc6a637b778e6594c0f8c2f26118ae1b0a231c
Signed-off-by: Mohammed Khajapasha <mkhaja@codeaurora.org>
7 years agomsm: kgsl: Add a NULL check for limit pointer
Hareesh Gundu [Tue, 4 Jul 2017 09:03:26 +0000 (14:33 +0530)]
msm: kgsl: Add a NULL check for limit pointer

KGSL power limit pointer can be error or NULL. Add a NULL
check for limit pointer to avoid NULL pointer dereference.

Change-Id: I4aacaddd1cd9b34f1befc21807eb7ab577f0a7f1
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
7 years agoMerge "ASoC: sdm660_cdc: Prevent MICBIAS1 enable during headset record"
Linux Build Service Account [Tue, 4 Jul 2017 08:21:03 +0000 (01:21 -0700)]
Merge "ASoC: sdm660_cdc: Prevent MICBIAS1 enable during headset record"

7 years agoMerge "ASoC: wcd-mbhc: Disconnect ANC from RX chain during plug removal"
Linux Build Service Account [Tue, 4 Jul 2017 08:21:02 +0000 (01:21 -0700)]
Merge "ASoC: wcd-mbhc: Disconnect ANC from RX chain during plug removal"

7 years agoMerge "ASoC: msm: qdsp6v2: add size check to fix out of bounds issue"
Linux Build Service Account [Tue, 4 Jul 2017 08:21:01 +0000 (01:21 -0700)]
Merge "ASoC: msm: qdsp6v2: add size check to fix out of bounds issue"

7 years agoMerge "ASoC: wcd9335: Add counter to maintain count of functions voting for max bw"
Linux Build Service Account [Tue, 4 Jul 2017 08:21:00 +0000 (01:21 -0700)]
Merge "ASoC: wcd9335: Add counter to maintain count of functions voting for max bw"

7 years agoMerge "genirq: honour default IRQ affinity setting during migration"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:59 +0000 (01:20 -0700)]
Merge "genirq: honour default IRQ affinity setting during migration"

7 years agoMerge "msm: ipa: prevent string buffer overflows"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:58 +0000 (01:20 -0700)]
Merge "msm: ipa: prevent string buffer overflows"

7 years agoMerge "msm: ipa: fix IPA MHI unit tests"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:56 +0000 (01:20 -0700)]
Merge "msm: ipa: fix IPA MHI unit tests"

7 years agoMerge "drm/msm: Add a parameter query for the number of ringbuffers"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:54 +0000 (01:20 -0700)]
Merge "drm/msm: Add a parameter query for the number of ringbuffers"

7 years agoMerge "drm/msm: Add kernel side submit profiling and tracing"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:54 +0000 (01:20 -0700)]
Merge "drm/msm: Add kernel side submit profiling and tracing"

7 years agoMerge "msm: camera: add protection in the cci write function"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:53 +0000 (01:20 -0700)]
Merge "msm: camera: add protection in the cci write function"

7 years agoMerge "msm: camera: isp: Handle array out of bound access"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:52 +0000 (01:20 -0700)]
Merge "msm: camera: isp: Handle array out of bound access"

7 years agoMerge "msm: mdss: fix the pixel clock calculation for fb modes"
Linux Build Service Account [Tue, 4 Jul 2017 08:20:51 +0000 (01:20 -0700)]
Merge "msm: mdss: fix the pixel clock calculation for fb modes"

7 years agommc: core: Use PF_MEMALLOC flag for clock scaling context
Veerabhadrarao Badiganti [Fri, 23 Jun 2017 13:48:45 +0000 (19:18 +0530)]
mmc: core: Use PF_MEMALLOC flag for clock scaling context

Memory allocations with GFP_KERNEL flag in clock scaling path might
trigger IO transfer. This can cause deadlock since the claim_host
lock which is needed by mmc driver to perform IO is held by clock
scaling context.

Below is the exact call sequence:

mmc_devfreq_set_target() -> mmc_clk_update_freq () ->
mmc_change_bus_speed() -> mmc_select_hs400() -> mmc_select_bus_width()
-> mmc_get_ext_csd() -> kzalloc(512, GFP_KERNEL) -> try_to_free_pages()
-> evict() -> ext4_evict_inode().

To avoid this scenario, use PF_MEMALLOC flag for clock scaling context
so that it can have access to the more reserves of memory. And since
devfreq workitem would run in different kworker threads, restore to
original flags once done with setting clock frequency.

Change-Id: If52f83f6ecae982d8ed709b08fd84545c7ecbc43
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
7 years agommc: card: Ratelimit the error log in mmc_blk_cmd_recovery()
Siba Prasad [Mon, 3 Jul 2017 13:38:19 +0000 (19:08 +0530)]
mmc: card: Ratelimit the error log in mmc_blk_cmd_recovery()

Ratelimit the error log in order to avoid flooding the logs in
case of function mmc_blk_cmd_recovery() gets called repeatedly.

Change-Id: Ic72087382fca2e188f1bbd8195a805cd751ed22e
Signed-off-by: Siba Prasad <sibap@codeaurora.org>
7 years agomsm: ispif: fix crash during dumping io register
Haibin Liu [Fri, 23 Jun 2017 08:46:05 +0000 (16:46 +0800)]
msm: ispif: fix crash during dumping io register

Check whether ispif->base is null before dumping.

CRs-Fixed: 2046207
Change-Id: Ib026632252b43bb4d607ba00188c4c4143c1725e
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
7 years agolpm-levels: Enter shallowest state if predicted sleep length is less
Srinivas Rao L [Wed, 31 May 2017 10:36:52 +0000 (16:06 +0530)]
lpm-levels: Enter shallowest state if predicted sleep length is less

If lpm_cpuidle_predict returns the prediction value less than the
minimum residency of shallowest mode, then this case was considered
as not predicted. This allows core to enter into deeper states.
Instead in this case, use the minimum residency of
the shallowest state as the predicted sleep length.

Change-Id: Ib5bd1779e305262aef018f82f57d30ec22162b5b
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
Signed-off-by: Naresh Malladi <namall@codeaurora.org>
7 years agomsm-camera: sensor: Fixing kernel crash during i2c read
Tanvi Aggarwal [Wed, 21 Jun 2017 11:41:12 +0000 (17:11 +0530)]
msm-camera: sensor: Fixing kernel crash during i2c read

When userspace uses ioctl(), kernel should get the data from
userpsace through copy_from_user() or get_user() and send it
back to userpsace though copy_to_user() or put_user().
In this case, kernel is not using put_user or copy_to_user
which is leading to a crash during I2C read when it tries to
access memory.

CRs-Fixed: 2058381
Change-Id: Ie5596b62cb589ee048e54f37c7e6beda0d62cad5
Signed-off-by: Tanvi Aggarwal <tanvia@codeaurora.org>
7 years agomsm: ipa: fix IPA MHI unit tests
Skylar Chang [Fri, 23 Jun 2017 02:59:57 +0000 (19:59 -0700)]
msm: ipa: fix IPA MHI unit tests

Connect a test producer pipe for MHI unit tests as the
default LAN_PROD pipe is not connected on MHI config.

Change-Id: I2fc1ff8758d222a738d570b5babc22ced2b43219
CRs-Fixed: 2066878
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
7 years agomsm: ipa: fix mhi suspend logic
Skylar Chang [Fri, 23 Jun 2017 02:57:57 +0000 (19:57 -0700)]
msm: ipa: fix mhi suspend logic

Add a missing return statement in IPA MHI suspend routine.

Change-Id: I1dfbcff21ba3ca72ff985e76e851caf6a9da1ae4
CRs-Fixed: 2066866
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
7 years agoMerge "defconfig: arm64: msm: Enable virtual platform"
Linux Build Service Account [Mon, 3 Jul 2017 22:52:34 +0000 (15:52 -0700)]
Merge "defconfig: arm64: msm: Enable virtual platform"

7 years agoMerge "cpuidle: lpm-levels: Check for negative sleep times"
Linux Build Service Account [Mon, 3 Jul 2017 22:52:33 +0000 (15:52 -0700)]
Merge "cpuidle: lpm-levels: Check for negative sleep times"

7 years agoMerge "mm: add vfree_atomic()"
Linux Build Service Account [Mon, 3 Jul 2017 22:52:30 +0000 (15:52 -0700)]
Merge "mm: add vfree_atomic()"

7 years agoMerge "mm: refactor __purge_vmap_area_lazy()"
Linux Build Service Account [Mon, 3 Jul 2017 22:52:29 +0000 (15:52 -0700)]
Merge "mm: refactor __purge_vmap_area_lazy()"

7 years agoMerge "defconfig: Enable TSPP, MPQ and MPQ_DEMUX for apq8098"
Linux Build Service Account [Mon, 3 Jul 2017 22:52:28 +0000 (15:52 -0700)]
Merge "defconfig: Enable TSPP, MPQ and MPQ_DEMUX for apq8098"

7 years agodefconfig: arm64: msm: Enable virtual platform
Atul Raut [Mon, 13 Feb 2017 02:25:39 +0000 (18:25 -0800)]
defconfig: arm64: msm: Enable virtual platform

Add support to build msm kernel based virtual
machine.

CRs-Fixed: 2000635
Change-Id: I76f4920a86adc8bac347c1c6c360ef55f84bc453
Signed-off-by: Atul Raut <araut@codeaurora.org>
7 years agodrm/msm: Add timestamp counter
Jordan Crouse [Wed, 28 Jun 2017 15:55:12 +0000 (09:55 -0600)]
drm/msm: Add timestamp counter

In the confusion of adding the perfcounter API the timestamp query
was broken. Convert the query over to the perfcounter API to avoid
confusion.

Change-Id: Ic0dedbad590489a643e8aa6d678bf19f732c06dd
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>