Commit graph

572259 commits

Author SHA1 Message Date
Linux Build Service Account
65acb683c4 Merge "defconfig: arm64: msm: Disable uid statistics" 2016-07-13 15:45:13 -07:00
Linux Build Service Account
ee3eae95ff Merge "clk: msm: clock-gpu-cobalt: Support running the gfx3d_isense clock at XO" 2016-07-13 15:45:13 -07:00
Linux Build Service Account
ccfaef0d78 Merge "msm: ipa: print resource bandwidth in ipa rm" 2016-07-13 15:45:12 -07:00
Linux Build Service Account
fe65bd3832 Merge "msm: vidc: Fix an issue with high bitrate playback" 2016-07-13 15:45:11 -07:00
Linux Build Service Account
5e9b45c7ed Merge "msm: mdss: hdmi: parse High Dynamic Range (HDR) metadata" 2016-07-13 15:45:10 -07:00
Linux Build Service Account
7fe77ef84d Merge "leds: qpnp-flash-v2: Separate switch node disable sequence" 2016-07-13 15:45:08 -07:00
Linux Build Service Account
8ba1928ffc Merge "ARM: dts: msm: Add switch nodes to pmicobalt" 2016-07-13 15:45:08 -07:00
Linux Build Service Account
348d50ac21 Merge "leds: qpnp-flash-v2: Add support for multiple switch nodes" 2016-07-13 15:45:07 -07:00
Linux Build Service Account
11e4a7a8da Merge "defconfig: msmcortex: don't set default CMA region size" 2016-07-13 15:45:06 -07:00
Linux Build Service Account
f259f4445d Merge "clk: msm: clock-mmss-cobalt: Add display port pixel clocks" 2016-07-13 15:45:05 -07:00
Linux Build Service Account
10619a898d Merge "msm: kgsl: Fix the access to invalid pool" 2016-07-13 15:45:04 -07:00
Linux Build Service Account
e29c82a01c Merge "ARM: dts: msm: Attach device memory to lpass iommu on msmcobalt" 2016-07-13 15:45:03 -07:00
Linux Build Service Account
48e2ef49ba Merge "nl80211: Move ACL parsing later to avoid a possible memory leak" 2016-07-13 15:45:02 -07:00
Linux Build Service Account
33212b2155 Merge "clk: msm: clock: Call the correct init sequence during fabia PLL handoff" 2016-07-13 15:45:00 -07:00
Linux Build Service Account
43237e2edc Merge "regmap: initialize dump count to 1" 2016-07-13 15:44:59 -07:00
Linux Build Service Account
d940b64528 Merge "Revert "msm: vidc: Handle encoder input in true dynamic mode"" 2016-07-13 15:44:58 -07:00
Linux Build Service Account
cdf04650af Merge "usb: gadget: f_gsi: Set speed descriptor pointers to NULL after free" 2016-07-13 15:44:57 -07:00
Linux Build Service Account
3872c04222 Merge "defconfig: msmcortex: Enable CONFIG_INET_LRO" 2016-07-13 15:44:56 -07:00
Linux Build Service Account
7becceae23 Merge "net lro: extend LRO to use hardware assists" 2016-07-13 15:44:56 -07:00
Linux Build Service Account
153ff5473d Merge "wil6210: abort P2P search when stopping P2P device" 2016-07-13 15:44:55 -07:00
Linux Build Service Account
497384f02d Merge "sched: break the forever prev_cpu selection preference" 2016-07-13 15:44:54 -07:00
Linux Build Service Account
afc9724015 Merge "msm: camera: isp: Fix RDI stream streamoff issue" 2016-07-13 15:44:52 -07:00
Linux Build Service Account
8013c761da Merge "cnss: Refactor CNSS Platform Driver for better code maintenance" 2016-07-13 15:44:51 -07:00
Linux Build Service Account
a4e4aba7e4 Merge "msm: vidc: pm qos stability fixes for video driver" 2016-07-13 15:44:50 -07:00
Nicholas Troast
e4ef9471ff qcom-charger: qpnp-smb2: enable some irqs as a wakeup source
Parallel charging requires the device to wake up when entering taper
charging state in order to reduce the parallel charger's FCC. Enable
the chg-state-change irq as a wakeup source.

Parallel charging requires the device to wake up when the USB ICL
changes in order to enable or disable. Enable the usbin-icl-change
irq as a wakeup source.

When a change is detected on the Type-C CC pins the device should wake
up to handle the change. Enable the type-c-change irq as a wakeup
source.

When VBUS is detected the device should wake up to adjust the state of
DP/DM to allow for proper APSD. Enable the usbin-plugin irq as a wakeup
source.

When APSD finishes the device should wake up to notify the USB, and PD
drivers. Enable the usbin-src-change irq as a wakeup source.

CRs-Fixed: 1030478
Change-Id: I7cdc08d973b5ea711c877f7f2eabbe0fdbbf6fa0
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-07-13 15:37:15 -07:00
Oleg Perelet
0eabd97c5c msm: kgsl: Disable GPU software clockgating on A540
GPMU & CRC perform more effective idle clock control
than software clock gating.

CRs-Fixed: 973565
Change-Id: Ifd45878a65b7da4167d2caa30b3acffd427ad72e
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-07-13 13:51:00 -07:00
Oleg Perelet
5684da2651 ARM: dts: msmcobalt: Add control for GPU software clockgating
Add boolean qcom,no-nap entry to GPU dtsi file to control
software clockgating.

CRs-Fixed: 973565
Change-Id: Icf27aa1c09d911eaa242cd753803389e56a05844
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-07-13 13:49:01 -07:00
Yuanyuan Liu
037f52dea4 icnss: Setup hypervisor permissions for MSA0
Setup hypervisor permissions for MSA0. Only WLAN
hardware has access to MSA0 memory.

CRs-Fixed: 1014777
Change-Id: Ica695e355a82ab9ca1998d656475f94fa2a37904
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-07-13 12:12:43 -07:00
Arun Menon
9c926ce7aa msm: vidc: Fix buffer overflow issue in driver
This change fixes a buffer overflow issue during
venus version write to a local buffer.

CRs-Fixed: 944588

Change-Id: Id97f89debbd8d160a8ef624ae0c1be16c47d3270
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
2016-07-13 12:08:14 -07:00
Hemant Kumar
fa28b0304b usb: dwc3: Fix bug in ep disable operation
__dwc3_gadget_ep_disable API doing memset 0 with size
set to DWC3_TRB_NUM. Number of TRBs allocated for gsi
endpoints are less than DWC3_TRB_NUM. This results in
to memory corruption. Fix this bug by introducing
num_trbs member in dwc3_ep structure to save number of
trbs allocated in a dma pool upon dma pool creation.
Ep disable operation will use num_trbs of a dwc3_ep to
perform memset 0.

Change-Id: I94b5865ca22b4e1fde0d2cd8dcb218906327a916
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-07-13 12:05:40 -07:00
Abhijeet Dharmapurikar
b5538f417b spmi-pmic-arb: change mode callback/ops for v3
The v3 arbiter removes the security checks and moves them to SMMU
drivers outside the scope of this driver. So reset the mode call
back for v3 similar to v1.

Change-Id: I043178382cd90515063d09f526bd3e94f8ed5fc3
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-07-13 10:41:19 -07:00
Oleg Perelet
fb1c6ee3ac msm: kgsl: Disable GPU isense clock below nominal power level
By disabling isense clock below nominal level we'll remove
vote for CX rail and save power.

CRs-Fixed: 973565
Change-Id: If4a13b3eca117fc2ff9c32ca3a24eb8b8e70b4fe
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-07-13 10:04:55 -07:00
Dhoat Harpal
df159d60d8 soc: qcom: glink_smd_xprt: Fix smd close ack for legacy channel
smd_data_ch_close sets local_legacy to false even when close_ack is
not called, this even doesn't allow process_reopen_event to call
close_ack.

smd_data_ch_close set local_legacy to false only when it sends
close_ack, otherwise it will be set to false by process_reopen_event
on sending close_ack.

CRs-Fixed: 1020947
Change-Id: I1353f3a8e625803e6317bc543b7125ce52daa49c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-13 03:45:00 -07:00
Dhoat Harpal
898efa1fa2 soc: qcom: glink_smd_xprt: Fix ssr sync during intent request
Synchronization is absent between SSR and intent request, which
result in dead lock scenerio.

ssr_sync rcu lock is used to synchronize intent request and SSR.

CRs-Fixed: 1025593
Change-Id: I1ac06aace8d79ad92d2b48cfb51e1394ef68906c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-13 03:39:02 -07:00
Taniya Das
382c672526 clk: msm: Add MSM clock config for MSM clock controller
Support MSM clock controller config to allow MSM devices to use the clock
controller.

Change-Id: Iae2cf922e8a69979ea353bf7353304f9be7405ce
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-07-12 22:39:17 -07:00
Abhijit Kulkarni
f49f768582 msm: mdss: fix QSEED3 bypass mode and lut cfg issues
This change enables the QSEED3 bypass mode in driver, until now if
scaling was not required driver was falling back to default configuration.
This change checks if scaling is not required on VIG pipes, driver only
programs the pixel extension and configures the bypass mode in QSEED3.
This change also corrects the LUT configurations for separable and
circular filters.

Change-Id: I17c8c3e422fd62feaada978ac2be48f891417db0
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
CRs-Fixed: 1036019, 1039433
2016-07-12 18:11:38 -07:00
Osvaldo Banuelos
8f29cd5e70 ARM: dts: msm: support full Gold cluster frequency plan for msmcobalt
Support cluster frequency scaling up to 2092.8 MHz for the Gold
cluster of the msmcobalt chip. Add the necessary OSM LUT and
expose these frequencies to the CPUfreq device.

CRs-Fixed: 1040128
Change-Id: Ib96cc4bcb47d034d9a314de8c1973f2d55106518
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-12 18:09:34 -07:00
Harry Yang
a81e7206ec qcom-charger: smb-lib: fix battery health status
Battery health shows 'good' in the ranges of both cold and
overheat temperatures. This change fixes a bug in its
get_prop function.

CRs-Fixed: 1040848
Change-Id: If6e6f60170cfb4769456de4c4428831a29489da2
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-07-12 17:55:10 -07:00
Ping Li
570f2550be msm: mdss: Fix AD backlight configuration
When AD backlight attenuation feature is not enabled, the backlight
send to panel doesn't need to go through the backlight linearization
and inverse linearization.

Also set ad_bl_level to the current panel backlight level when AD
is enabled the first time and reset the ad_bl_level to 0 when AD
is disabled.

Change-Id: If96eccd817ecee6eae5fcc56fda29197b8b9f50d
Signed-off-by: Ping Li <pingli@codeaurora.org>
2016-07-12 15:59:44 -07:00
Aravind Venkateswaran
0730f45df2 ARM: dts: msm: enable qcom,no-smr-check for mmss smmu for msmcobalt
The continuous splash screen use case requires that we don't touch the
MMSS SMR registers during probe. Enable the option for skipping the
check for msmcobalt.

CRs-Fixed: 1037857
Change-Id: I1d522796d1dc0c73f7fe068c0964a9b5d1a09285
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-07-12 15:49:39 -07:00
Aravind Venkateswaran
8c2cc950a2 ARM: dts: msm: add proxy vote for BIMC SMMU GDSC for msmcobalt
When continuous splash screen feature is enabled, the display needs to
be kept alive during the kernel boot up. For video mode panels, frame
data needs to be continuously fetched from the framebuffer memory which
requires BIMC SMMU GDSC to remain on.  Add proxy vote for this GDSC to
prevent it from being turned off until the display driver hand off can
be executed.

CRs-Fixed: 1037857
Change-Id: Idef763153cdce4e59684da872520eb0cb0b1434d
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-07-12 15:49:35 -07:00
Aravind Venkateswaran
4937604179 clk: msm: mdss: fix calculation of VCO rate during handoff
When continuous splash screen feature is enabled, the DSI PLL
is configured in the bootloader and left on when the kernel boots
up. When the PLL clocks are handed off, the VCO rate needs to be
computed back from the registers. Fix bugs in the current
implementation for calculating the VCO rate.

CRs-Fixed: 1037857
Change-Id: I8905b91f26a66d26959fb109480f0390851cbdb4
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-07-12 15:49:29 -07:00
Mayank Rana
5e840b3bc9 usb: gadget: f_gsi: Increase USB GSI OUT TRBs from 7 to 31 for ECM
USB bus suspend with remote wakeup allowed case:
1. SUSPEND interrupt received from controller on USB bus suspend
2. gsi_suspend() blocks ringing of doorbell by USB controller to IPA GSI
and schedule usb_ipa_w work with event EVNT_SUSPEND
3. ipa_work_handler() work handler makes sure that USB GSI interface is
into IDLE state and calls ipa_usb_xdci_suspend() to put IPA GSI related
channel into suspend state and allow turning of IPA's clock
5. ipa_work_handler() decrements PM usage count, allow USB to go into LPM
6. USB controller driver turns off USB clocks and put into LPM

USB bus resume with remote wakeup allowed case:
1. WAKEUP interrupt received from controller on USB bus resume
2. USB controller driver turns on USB clocks
3. gsi_resume() increments PM usage count and schedule usb_ipa_w work with
event EVENT_RESUME
4. ipa_work_handler() work handler calls ipa_usb_xdci_resume() to resume
IPA GSI related channel and turning on IPA's clock
5. ipa_work_handler() unblocks ringing of doorbell by USB controller to
IPA GSI

In above USB bus resume case using specific host with ECM functionality,
host is able to send PING or data packets equal to prepared number of TRBs
(currently 7) on USB EP OUT successfully before above resume step 5 then
GSI ignores rang doorbell as WRITE pointer updating last consumed TRB is
already gone through full cycle. This results into data stall. Hence to fix
this issue increase number of TRBs used with USB OUT endpoint from 7 to 31
for USB ECM function with GSI accelerated path. This helps to have always
pending TRBs with USB controller and ringing of doorbell is not missed by
GSI once above resume step 5 is completed.

Also ECM doesn't support aggregation. Hence fix out aggregation size param.

CRs-Fixed: 1023149
Change-Id: Ife0f265b65fda92a99f5170154da6cb4c6b113b7
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-07-12 15:32:10 -07:00
Hemant Kumar
70cd4b34f9 defconfig: msmcortex: Enable USB audio QMI service driver
This allows APPS USB XHCI driver to offload the USB audio
ISOC data transfer to remote processor. USB audio QMI driver
starts a QMI service to communicate with remote processor to
exchange audio stream related information.

Change-Id: Ib771c685b3245878413cd78d20451a0dcfdfda63
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-07-12 14:48:10 -07:00
Oleg Perelet
138ec16eb6 msm: kgsl: Remove ISENSE control code
Remove ISENSE control code from kernel,
GPMU Firmware is doing that now.

Change-Id: I34471bb36248bc47b4b5c4b7f4bc54d6bab6ec28
CRs-Fixed: 973565
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-07-12 14:45:57 -07:00
Oleg Perelet
bfbf777fb4 ARM: dts: msmcobalt: Enable GPU Turbo on A540
Enable GPU Turbo power level on msmcobalt platform.

CRs-Fixed: 973565
Change-Id: Idce662d8e2fa7b1479372a11f0791cc454847d24
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-07-12 14:37:05 -07:00
Bryse Flowers
50528f6171 defconfig: arm64: msm: Disable uid statistics
Disable deprecated UID_STATS configuration in
preparation for removing the option from KConfig.

Change-Id: I496093bbc2125afbac58e83e38113af90858f1e7
CRs-Fixed: 1035969
Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
2016-07-12 13:51:56 -07:00
Yuanyuan Liu
e45a0a68cf icnss: Add support for suspend/resume
Add suspend/resume support in ICNSS driver.

CRs-Fixed: 1040309
Change-Id: I2776af4b633832ea8a930275481593f4b9d3bce3
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-07-12 13:50:53 -07:00
Osvaldo Banuelos
0910ca7c8f ARM: dts: msm: update VDD_APC1 CPR margin adjustments for msmcobalt
Update the open-loop and closed-loop voltage margin adjustments
for the VDD_APC1 rail in agreement with hardware characterization.
For open-loop, add 8 mV margin for LowSVS and 52 mV margin for
Turbo fused corners. For closed-loop, add 50 mV margin for
the Turbo fused corner.

CRs-Fixed: 1039620
Change-Id: Ib4ee0e9432bb6f2916416e2826d5590e98f9d426
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-12 13:44:45 -07:00
Ben Romberger
08ebb66927 ASoC: msm: qdsp6v2: Add get for App Type mixer control
Implement get function for App Type mixer control in
pcm and compress driver. Returns app type, ACDB ID,
and sample rate in use for FE ID.

Change-Id: I4972de893a638f2482c37796dd1718628526351d
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-07-12 12:53:59 -07:00