Commit graph

589927 commits

Author SHA1 Message Date
Saranya Chidura
24bba179ae defconfig: msm: remove dcc config for perf on sdm660
remove the DCC_CONFIG option in perf defconfig for SDM660
target.

Change-Id: Id1b019a5eb1c6a71d4b5e6e854e642411714a900
Signed-off-by: Saranya Chidura <schidura@codeaurora.org>
2017-05-12 15:26:51 +05:30
Ritesh Harjani
45eadbbce3 mmc: mmc: Fix mmc_partial_init for HS400 mode
In case of emmc5.0 cards where HS400 mode and CMD5(awake) partial
init is enabled -> mmc_partial_init is broken and gives below errors.
Fix this by adding calibration logic in case of HS400 mode.

NOTE: In HS400 mode tuning is only performed once during bootup (in
HS200 mode).
Post to that it is always DLL calibration which is performed (in
system/runtime resume).
So even for below issue since timing is already changed using
cached_ios, then do the calibration using ->execute_tuning.

<dmesg errors w/o patch>
root@msm8996:/ # [   76.011036] mmc0: mmc_runtime_suspend:
[   77.315903] mmc0: mmc_runtime_resume:
[   77.367866] mmc0: mmc_partial_init: starting partial init
[   77.376225] mmc0: mmc_test_awake_ext_csd: mmc_get_ext_csd failed
(-110)
[   77.382190] mmc0: mmc_partial_init: done partial init (-110)
[   77.387536] mmc0: _mmc_resume: awake failed (-110), fallback to full
init
[   77.394405] mmc0: mmc_init_card:
[   77.402762] mmc0: mmc_init_card: mmc_send_op_cond() fails -110
[   77.407573] mmc0: MMC card re-init failed rc = -110 (retries = 3)
[   77.507261] mmc0: _mmc_resume: awake failed (-110), fallback to full
init
[   77.513293] mmc0: mmc_init_card:

<dmesg with patch>
[   74.002624] mmc0: mmc_runtime_resume:
[   74.056089] mmc0: mmc_partial_init: starting partial init
[   74.067143] mmc0: mmc_partial_init: done partial init (0)

Change-Id: I0e55efb7863b75bd584843c3fc920c845996eb5c
Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
2017-05-12 02:08:27 -07:00
Ajay Agarwal
2ecf8c9fd2 sound: usb: Add default branches for BADD 3.0 devices
For a BADD 3.0 device, the Data Endpoint wMaxPacketSize
of an Alt Setting must be one of the values mentioned in
the specifications. Similarly, the unit IDs of the source
units of any entity is prescribed by the specs. Add
support for checking the error(default) branches in the
relevant switch cases and accordingly handle them.

Change-Id: Ib88eee21df012089d41c4e78a161ddc6767e1bd4
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-05-12 12:33:15 +05:30
Tharun Kumar Merugu
94e69df401 msm: ADSPRPC: verify and initialize some variables
Verify cid variable before accessing it and
initialize invoket variable before bailing out.

Change-Id: Idec133bf8ba1a000b83f92bb567f0b75bbdab340
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
2017-05-11 23:40:29 -07:00
Manoj Prabhu B
b57f957da3 memshare: Update the free memory count after allocation
The patch updates the client's free memory
count variable after the successful allocation.

CRs-Fixed: 2046258
Change-Id: Ibae317596557e23d2b2278daf433bd293a8bd0be
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-05-12 10:42:41 +05:30
Santosh Mardi
28aab0311c PM/devfreq: bw_hwmon: add mutex lock in polling interval case
Protect polling interval update event in the governor
with mutex lock.
This will avoid parallel execution of update interval event
on different cores, resulting in memory poison overwritten.

CRs-Fixed: 2035633
Change-Id: Ib919d9774317bc01e3cf581c169c5d18555f484f
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
2017-05-12 10:22:31 +05:30
Taniya Das
1098fcc4b9 clk: Move vdd voting before set rate and parent
There could be clocks where the clock operations of set_rate_and_parent
would be defined to take care of setting rate and updating parent.
Move the vdd voting logic to ensure the vdd levels are voted prior to
updating rate and parent.

Change-Id: I57f903f95f290627d676afd567a6e6d21decf4a3
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-05-12 10:13:32 +05:30
Can Guo
6a4c4fcfe2 scsi: ufs: Initialize cmd_id and check lrbp->cmd NULL
In commit d70b0a18f6 ("scsi: ufs: add command
logging infrastructure"), cmd_id is not initialized
and lrbp->cmd is explicitly dereferenced without
checking NULL. Fix them by initializing cmd_id with
an initial value 0 and checking NULL for lrbp->cmd.

Change-Id: I6f66066adc8d53e3615df50ac49dd313f6d7ea8e
Signed-off-by: Can Guo <cang@codeaurora.org>
2017-05-12 08:20:54 +08:00
Amar Singhal
cb704257ac msm: wlan: Update regulatory database
Update regulatory database for countries KR, KP and NA.

CRs-Fixed: 2046148
Change-Id: Ic040c209be10af63006bb53c19efab97c0587cb5
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
2017-05-11 15:00:33 -07:00
Zhen Kong
c5d33082ab qseecom: add bus scaling support for GP operations
When a GP application is loaded and the crypto engine is accessed,
a NOC error will happen if CE clock is not enabled. Thus, add bus
scaling support for GP operations.

Change-Id: I59d63be9e08b2c135edc6ec224ec1a355434e1ec
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2017-05-11 14:54:54 -07:00
Linux Build Service Account
ae4d972f07 Merge "Merge branch 'android-4.4@9796ea8' into branch 'msm-4.4'" 2017-05-11 11:48:48 -07:00
Linux Build Service Account
24638027f1 Merge "drm/msm: add extern C guard for the UAPI header" 2017-05-11 11:48:47 -07:00
Linux Build Service Account
8691dbd00f Merge "input: misc: fix error path for hbtp touch driver" 2017-05-11 11:48:46 -07:00
Linux Build Service Account
9ad03b1fbd Merge "ARM: dts: msm: Add SMB1381 device node for QRD SDM660" 2017-05-11 11:48:45 -07:00
Linux Build Service Account
166f9cc74b Merge "diag: Validate proper mdlog session for a PD" 2017-05-11 11:48:44 -07:00
Linux Build Service Account
aa86283c28 Merge "ota_crypto: Add NULL pointer check for new_req variable" 2017-05-11 11:48:43 -07:00
Linux Build Service Account
8de2594b01 Merge "USB: f_qdss: Fix crash issue during connect_work" 2017-05-11 11:48:41 -07:00
Linux Build Service Account
e6f467a16d Merge "soc: qcom: qpnp-haptic: add support for auto mode" 2017-05-11 11:48:40 -07:00
Linux Build Service Account
4f71440325 Merge "scsi: ufs: ufs-qcom-ice: Initialize local variable in ice_cfg_start()" 2017-05-11 11:48:39 -07:00
Linux Build Service Account
b044376188 Merge "mmc: core: Replacing sprintf() with snprintf()" 2017-05-11 11:48:38 -07:00
Linux Build Service Account
c454ad4e3e Merge "sound: usb: Fix format desc usage for BADD 3.0 devices" 2017-05-11 11:48:37 -07:00
Linux Build Service Account
a55a52a8a2 Merge "drm/msm: Allocate secure buffer objects" 2017-05-11 11:48:34 -07:00
Hemant Kumar
cbec952d17 usb: gadget: f_cdev: Increase number of driver instances to 3
This allows to instantiate two dial up network interfaces and
one NMEA interface.

Change-Id: I59f5d93a5e9360628d8004508162dcdb42f6520d
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-05-11 11:12:50 -07:00
Shiraz Hashim
504b0bb784 dma-mapping: Always remap on dma buffer free
DMA clients may opt to clear cpu virtual address mapping
on alloc. On free when dma buffer is given back to cpu,
ensure that it is always remapped in cpu address space.

Change-Id: I67f9616d9bee8cf07cbe81468ebf174d2599f4c5
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
2017-05-11 10:45:31 -07:00
Linux Build Service Account
c4a48b7ed2 Merge "mmc: host: sdhci-msm-ice: Initialize local variable in ice_cmdq_cfg()" 2017-05-11 06:48:13 -07:00
Linux Build Service Account
33a48f3f45 Merge "ath10k: cancel the event work in wlan snoc driver module remove" 2017-05-11 06:48:12 -07:00
Linux Build Service Account
f87cdfa943 Merge "qseecom: Initialize the hlos_ce_hw_instance array" 2017-05-11 06:48:11 -07:00
Linux Build Service Account
d2c35f47e8 Merge "btfm: Fix coding error with uninitialized variables" 2017-05-11 06:48:09 -07:00
Linux Build Service Account
9a95bce25c Merge "input: stm: Fix NULL dereference in laser driver" 2017-05-11 06:48:08 -07:00
Linux Build Service Account
590cfee905 Merge "msm: camera: Fixing NULL dereference in sensor code" 2017-05-11 06:48:06 -07:00
Linux Build Service Account
9fa70208d4 Merge "ARM: dts: msm: Add support for camss throttle clock on SDM660" 2017-05-11 06:48:05 -07:00
Linux Build Service Account
3757478deb Merge "msm: isp: Fix pdaf buffer drop" 2017-05-11 06:48:04 -07:00
Linux Build Service Account
5633ac9b6c Merge "msm: camera: Do not pass kptr in copy_from_user" 2017-05-11 06:48:03 -07:00
Linux Build Service Account
6ce7c8ebb5 Merge "msm: isp: Fix isp recovery mechanism" 2017-05-11 06:48:02 -07:00
Linux Build Service Account
a81797adfc Merge "msm: isp: Correct UB size for RDI" 2017-05-11 06:48:01 -07:00
Linux Build Service Account
3c272a1622 Merge "msm: camera: isp: Vote for bandwidth to avoid race condition" 2017-05-11 06:48:00 -07:00
Linux Build Service Account
1e059e00bf Merge "ARM: dts: msm: Add iris support on msm8998 and sdm660" 2017-05-11 06:47:58 -07:00
Linux Build Service Account
d598874f03 Merge "drivers: nfc: make nq-nci probe as async probe" 2017-05-11 06:47:55 -07:00
Linux Build Service Account
a71b4b38b9 Merge "ASoC: wsa881x-analog: make probe as async probes" 2017-05-11 06:47:54 -07:00
Linux Build Service Account
0690e9e093 Merge "ASoC: wsa881x-analog: fix overwrite of client->dev->driver_data" 2017-05-11 06:47:52 -07:00
Linux Build Service Account
67f2c6d9c8 Merge "mmc: sdhci-msm: make probe as async probe" 2017-05-11 06:47:50 -07:00
Deepak Kumar
281fcb5e18 msm: kgsl: Offload mementry destroy work to separate thread
Any memory free ioctl doesn't need to be blocked till the
corresponding mementry is destroyed. This change defers
the mementry put to unblock all memory free ioctls immediately.
This is done to reduce the time spent by user applications in
waiting for memory to be freed.

Change-Id: Iaa37ac5dbdedc3d02c41886c2bdf7f3d016176ac
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-05-11 17:48:44 +05:30
Shantanu Jain
c7ac4db6b5 input: misc: fix error path for hbtp touch driver
Fix error path for hbtp touch driver where error
variable is not given proper error code while bailing
out from the function.

Change-Id: I56e2654ecffb021a60dd07ea5b5afe45a70a1c85
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2017-05-11 03:52:50 -07:00
Taniya Das
00275fcbb5 ARM: dts: msm: Update the virtual corner for SDM630
The virtual corner mapping for 2.15GHz for speed-bin-1 was incorrectly
mapped. Update the mapping to reflect the correct corner.

Change-Id: I73b11f7a3a4346fc0118a51032148fad75db40eb
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-05-11 16:00:29 +05:30
Lingutla Chandrasekhar
a9c4ce1b7f qcom: common_log: make dump registration as async
In common log buf registration, finding log_buf symbols
takes more time and it stalls kernel booting.

So make log buf and other subsystem registration as async
task to optimize boot time.

Change-Id: I2c771195cc07c57a6e03a169b1d12fefb5560e17
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
2017-05-11 15:55:16 +05:30
Manoj Prabhu B
3333335b97 diag: Validate proper mdlog session for a PD
The patch updates the mdlog session to be checked
based on the active user PD logging session.

CRs-Fixed: 2045080
Change-Id: Ieac3301545970aac91efa5a6f66c44530ff251f3
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2017-05-11 12:32:14 +05:30
Brahmaji K
0ef4f1a1b8 ota_crypto: Add NULL pointer check for new_req variable
Add NULL pointer check before accessing the new_req
variable.

Change-Id: I8460115ccb16a2c43c45394275e9519ed3c6b045
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
2017-05-11 12:22:43 +05:30
Linux Build Service Account
3a360dc173 Merge "drm/msm/sde: avoid adding plane states in crtc atomic check" 2017-05-10 23:04:06 -07:00
Linux Build Service Account
e1fb82e224 Merge "defconfig: msmcortex: Disable CONFIG_FORCE_ALLOC_FROM_DMA_ZONE" 2017-05-10 23:04:05 -07:00
Linux Build Service Account
97f9e94154 Merge "icnss_utils: replace mutex lock by spinlock" 2017-05-10 23:04:04 -07:00