OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
8 years agoclk: msm: clock: Allow removing clock voltage votes during sleep
Deepak Katragadda [Wed, 29 Jun 2016 18:14:55 +0000 (11:14 -0700)]
clk: msm: clock: Allow removing clock voltage votes during sleep

Vote on the active-only CX voltage rail resource on behalf of
the hmss_ahb_clk. This way, when APPS attempts to go to sleep
and the clock is disabled, the corresponding voltage vote is
removed as well.

CRs-Fixed: 1042533
Change-Id: I6e20f4c00ec4555ecbae2adbb33287aed268639e
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
8 years agoMerge "USB: gadget: serial: Fix debugfs crash"
Linux Build Service Account [Fri, 15 Jul 2016 15:15:21 +0000 (08:15 -0700)]
Merge "USB: gadget: serial: Fix debugfs crash"

8 years agoMerge "msm: ADSPRPC: Handle fastrpc glink channel open on timeout"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:37 +0000 (03:44 -0700)]
Merge "msm: ADSPRPC: Handle fastrpc glink channel open on timeout"

8 years agoMerge "msm: kgsl: Disable GPU software clockgating on A540"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:34 +0000 (03:44 -0700)]
Merge "msm: kgsl: Disable GPU software clockgating on A540"

8 years agoMerge "ARM: dts: msmcobalt: Add control for GPU software clockgating"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:33 +0000 (03:44 -0700)]
Merge "ARM: dts: msmcobalt: Add control for GPU software clockgating"

8 years agoMerge "scsi: ufshcd: Fix race between clk scaling and ungate work"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:32 +0000 (03:44 -0700)]
Merge "scsi: ufshcd: Fix race between clk scaling and ungate work"

8 years agoMerge "ARM: dts: msm: add 2k truly panel for msmcobalt"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:31 +0000 (03:44 -0700)]
Merge "ARM: dts: msm: add 2k truly panel for msmcobalt"

8 years agoMerge "qcom-charger: show correct battery status while charging via wireless"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:30 +0000 (03:44 -0700)]
Merge "qcom-charger: show correct battery status while charging via wireless"

8 years agoMerge "msm: ipa3: don't check offset_entry when using DDR address"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:29 +0000 (03:44 -0700)]
Merge "msm: ipa3: don't check offset_entry when using DDR address"

8 years agoMerge "msm: kgsl: Disable GPU isense clock below nominal power level"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:28 +0000 (03:44 -0700)]
Merge "msm: kgsl: Disable GPU isense clock below nominal power level"

8 years agoMerge "Merge remote-tracking branch 'origin/tmp-917a9a9133a6' into lsk"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:28 +0000 (03:44 -0700)]
Merge "Merge remote-tracking branch 'origin/tmp-917a9a9133a6' into lsk"

8 years agoMerge "ARM: dts: msm: disable L1 and L1ss for PCIe on msmcobalt"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:27 +0000 (03:44 -0700)]
Merge "ARM: dts: msm: disable L1 and L1ss for PCIe on msmcobalt"

8 years agoMerge "qcom-charger: qpnp-smb2: enable some irqs as a wakeup source"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:26 +0000 (03:44 -0700)]
Merge "qcom-charger: qpnp-smb2: enable some irqs as a wakeup source"

8 years agoMerge "usb: dwc3: Fix bug in ep disable operation"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:25 +0000 (03:44 -0700)]
Merge "usb: dwc3: Fix bug in ep disable operation"

8 years agoMerge "icnss: Setup hypervisor permissions for MSA0"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:25 +0000 (03:44 -0700)]
Merge "icnss: Setup hypervisor permissions for MSA0"

8 years agoMerge "msm: vidc: Fix buffer overflow issue in driver"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:24 +0000 (03:44 -0700)]
Merge "msm: vidc: Fix buffer overflow issue in driver"

8 years agoMerge "spmi-pmic-arb: change mode callback/ops for v3"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:23 +0000 (03:44 -0700)]
Merge "spmi-pmic-arb: change mode callback/ops for v3"

8 years agoMerge "msm: kgsl: Remove ISENSE control code"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:23 +0000 (03:44 -0700)]
Merge "msm: kgsl: Remove ISENSE control code"

8 years agoMerge "ARM: dts: msmcobalt: Enable GPU Turbo on A540"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:22 +0000 (03:44 -0700)]
Merge "ARM: dts: msmcobalt: Enable GPU Turbo on A540"

8 years agoMerge "msm: ipa: exit when hdr proc ctx table is full"
Linux Build Service Account [Fri, 15 Jul 2016 10:44:19 +0000 (03:44 -0700)]
Merge "msm: ipa: exit when hdr proc ctx table is full"

8 years agoUSB: gadget: serial: Fix debugfs crash
Arumuga Durai A [Thu, 5 May 2016 07:23:29 +0000 (12:53 +0530)]
USB: gadget: serial: Fix debugfs crash

Serial function driver creates debugfs files even though ports
are not allocated. Fetching/reading those files without allocation
of ports leads to crash. Check port allocation before creating
the files.

Change-Id: I85b050a261cca6f961d5d9058efb8b7facf242ce
Signed-off-by: Arumuga Durai A <cadurai@codeaurora.org>
8 years agomsm: ADSPRPC: Handle fastrpc glink channel open on timeout
Sathish Ambley [Tue, 12 Jul 2016 18:42:21 +0000 (11:42 -0700)]
msm: ADSPRPC: Handle fastrpc glink channel open on timeout

Added channel state and checks to avoid glink channel opening twice
during timeout of previous call. Clean up and added more checks.

Change-Id: Ibf5343a86d3aeaf67acfbae381f103428c98ea73
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
8 years agoscsi: ufshcd: Fix race between clk scaling and ungate work
Venkat Gopalakrishnan [Thu, 14 Jul 2016 18:34:56 +0000 (11:34 -0700)]
scsi: ufshcd: Fix race between clk scaling and ungate work

The ungate work turns on the clock before it exits hibern8,
if the link was put in hibern8 during clock gating work.
There occurs a race condition when clock scaling work calls
ufshcd_hold() to make sure low power states cannot be entered,
but that returns by checking only whether the clocks are on.
This causes the clock scaling work to issue UIC commands when
the link is in hibern8 causing failures. Make sure we exit
hibern8 state before returning from ufshcd_hold().

Callstacks for race condition:

ufshcd_scale_gear+0x120/0x138
ufshcd_devfreq_scale+0x98/0x154
ufshcd_devfreq_target+0x14c/0x250
update_devfreq+0xc4/0x10c
devfreq_monitor+0x34/0x90
process_one_work+0x24c/0x430
worker_thread+0x2e0/0x408
kthread+0x100/0x108
ret_from_fork+0x10/0x40

ufshcd_uic_hibern8_exit+0x128/0x1f0
ufshcd_ungate_work+0xec/0x148
process_one_work+0x24c/0x430
worker_thread+0x2e0/0x408
kthread+0x100/0x108
ret_from_fork+0x10/0x40

CRs-Fixed: 1036530
Change-Id: I7f430abfb2a545ac97dee488a696a89cd18214f1
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
8 years agomsm: ipa3: don't check offset_entry when using DDR address
Amir Levy [Thu, 14 Jul 2016 06:29:20 +0000 (09:29 +0300)]
msm: ipa3: don't check offset_entry when using DDR address

Checking offset_entry is not necessary when using DDR addresses.
Check offset_entry only when using header tables.

CRs-fixed: 1041515
Change-Id: I4b3e44bda6ee05932a7de66e1e7cea300936f982
Signed-off-by: Amir Levy <alevy@codeaurora.org>
8 years agoARM: dts: msm: disable L1 and L1ss for PCIe on msmcobalt
Tony Truong [Wed, 13 Jul 2016 23:08:28 +0000 (16:08 -0700)]
ARM: dts: msm: disable L1 and L1ss for PCIe on msmcobalt

While NOC timeout feature is enabled, L1 and L1 substate
low power mode should be disabled. Thus, disable L1 and L1ss
for PCIe on msmcobalt.

Change-Id: If77f1850396d3e78cdcb774cdb6de148a2b4d14e
Signed-off-by: Tony Truong <truong@codeaurora.org>
8 years agoARM: dts: msm: add 2k truly panel for msmcobalt
Ingrid Gallardo [Thu, 30 Jun 2016 21:49:32 +0000 (14:49 -0700)]
ARM: dts: msm: add 2k truly panel for msmcobalt

Add required settings for command mode and video
mode 2k truly panel and include those settings in
msmcobalt for CDP and MTP.

Change-Id: I419af32ee73bd486258692eba3f699e6b987c288
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
8 years agoqcom-charger: show correct battery status while charging via wireless
Harry Yang [Tue, 28 Jun 2016 00:58:51 +0000 (17:58 -0700)]
qcom-charger: show correct battery status while charging via wireless

POWER_SUPPLY_STATUS shows 'Discharging' when DCIN is the only charging
input, because current input online report is solely based on USB.
DCIN is included to fix the issue.

CRs-Fixed: 1034899
Change-Id: I58b8ca712a7900caf37bf79f5281fb3b6dab80f2
Signed-off-by: Harry Yang <harryy@codeaurora.org>
8 years agoMerge "ASoC: wcd9335: Update decimator filter cutoff frequency"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:38 +0000 (15:45 -0700)]
Merge "ASoC: wcd9335: Update decimator filter cutoff frequency"

8 years agoMerge "ASoC: msmcobalt: add channel configuration for proxy port"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:37 +0000 (15:45 -0700)]
Merge "ASoC: msmcobalt: add channel configuration for proxy port"

8 years agoMerge "ASoC: msm: qdsp6v2: Add get for App Type mixer control"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:36 +0000 (15:45 -0700)]
Merge "ASoC: msm: qdsp6v2: Add get for App Type mixer control"

8 years agoMerge "soc: qcom: glink_smd_xprt: Fix smd close ack for legacy channel"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:35 +0000 (15:45 -0700)]
Merge "soc: qcom: glink_smd_xprt: Fix smd close ack for legacy channel"

8 years agoMerge "soc: qcom: glink_smd_xprt: Fix ssr sync during intent request"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:34 +0000 (15:45 -0700)]
Merge "soc: qcom: glink_smd_xprt: Fix ssr sync during intent request"

8 years agoMerge "ASoC: wcd-mbhc: enable micbias for special headset"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:33 +0000 (15:45 -0700)]
Merge "ASoC: wcd-mbhc: enable micbias for special headset"

8 years agoMerge "ASoC: wcd9330: Update driver for 12.288MHz clock support"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:32 +0000 (15:45 -0700)]
Merge "ASoC: wcd9330: Update driver for 12.288MHz clock support"

8 years agoMerge "ASoC: wcd-mbhc: fix plug removal detection from extension cable"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:32 +0000 (15:45 -0700)]
Merge "ASoC: wcd-mbhc: fix plug removal detection from extension cable"

8 years agoMerge "ASoC: msm8996: add support for packed 24 bit"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:31 +0000 (15:45 -0700)]
Merge "ASoC: msm8996: add support for packed 24 bit"

8 years agoMerge "ARM: dts: msm: set rcu_expedited for msm chisets"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:30 +0000 (15:45 -0700)]
Merge "ARM: dts: msm: set rcu_expedited for msm chisets"

8 years agoMerge "ARM: dts: msm: support full Gold cluster frequency plan for msmcobalt"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:29 +0000 (15:45 -0700)]
Merge "ARM: dts: msm: support full Gold cluster frequency plan for msmcobalt"

8 years agoMerge "ARM: dts: msm: Enabling ESD detection support for msmcobalt"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:27 +0000 (15:45 -0700)]
Merge "ARM: dts: msm: Enabling ESD detection support for msmcobalt"

8 years agoMerge "ARM: dts: msm: update VDD_GFX CPR voltage adjustments for msmcobalt"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:26 +0000 (15:45 -0700)]
Merge "ARM: dts: msm: update VDD_GFX CPR voltage adjustments for msmcobalt"

8 years agoMerge "msm: mdss: fix QSEED3 bypass mode and lut cfg issues"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:25 +0000 (15:45 -0700)]
Merge "msm: mdss: fix QSEED3 bypass mode and lut cfg issues"

8 years agoMerge "qcom-charger: smb-lib: fix battery health status"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:24 +0000 (15:45 -0700)]
Merge "qcom-charger: smb-lib: fix battery health status"

8 years agoMerge "ARM: dts: msm: update VDD_APC1 CPR margin adjustments for msmcobalt"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:23 +0000 (15:45 -0700)]
Merge "ARM: dts: msm: update VDD_APC1 CPR margin adjustments for msmcobalt"

8 years agoMerge "ARM: dts: msm: enable qcom,no-smr-check for mmss smmu for msmcobalt"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:21 +0000 (15:45 -0700)]
Merge "ARM: dts: msm: enable qcom,no-smr-check for mmss smmu for msmcobalt"

8 years agoMerge "icnss: Add support for suspend/resume"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:20 +0000 (15:45 -0700)]
Merge "icnss: Add support for suspend/resume"

8 years agoMerge "msm: mdss: Fix AD backlight configuration"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:19 +0000 (15:45 -0700)]
Merge "msm: mdss: Fix AD backlight configuration"

8 years agoMerge "defconfig: msmcortex: Enable USB audio QMI service driver"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:18 +0000 (15:45 -0700)]
Merge "defconfig: msmcortex: Enable USB audio QMI service driver"

8 years agoMerge "usb: gadget: f_gsi: Increase USB GSI OUT TRBs from 7 to 31 for ECM"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:17 +0000 (15:45 -0700)]
Merge "usb: gadget: f_gsi: Increase USB GSI OUT TRBs from 7 to 31 for ECM"

8 years agoMerge "usb: dwc3: Change dwc3 irq to oneshot threaded irq"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:16 +0000 (15:45 -0700)]
Merge "usb: dwc3: Change dwc3 irq to oneshot threaded irq"

8 years agoMerge "msm: ipa3: support 64bitmask with SMMU attached"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:16 +0000 (15:45 -0700)]
Merge "msm: ipa3: support 64bitmask with SMMU attached"

8 years agoMerge "ASoC: wcd9335: Remove pop on bring-up of noise cancelling headset"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:15 +0000 (15:45 -0700)]
Merge "ASoC: wcd9335: Remove pop on bring-up of noise cancelling headset"

8 years agoMerge "defconfig: arm64: msm: Disable uid statistics"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:14 +0000 (15:45 -0700)]
Merge "defconfig: arm64: msm: Disable uid statistics"

8 years agoMerge "clk: msm: clock-gpu-cobalt: Support running the gfx3d_isense clock at XO"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:13 +0000 (15:45 -0700)]
Merge "clk: msm: clock-gpu-cobalt: Support running the gfx3d_isense clock at XO"

8 years agoMerge "msm: ipa: print resource bandwidth in ipa rm"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:12 +0000 (15:45 -0700)]
Merge "msm: ipa: print resource bandwidth in ipa rm"

8 years agoMerge "msm: vidc: Fix an issue with high bitrate playback"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:11 +0000 (15:45 -0700)]
Merge "msm: vidc: Fix an issue with high bitrate playback"

8 years agoMerge "msm: mdss: hdmi: parse High Dynamic Range (HDR) metadata"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:10 +0000 (15:45 -0700)]
Merge "msm: mdss: hdmi: parse High Dynamic Range (HDR) metadata"

8 years agoMerge "leds: qpnp-flash-v2: Separate switch node disable sequence"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:09 +0000 (15:45 -0700)]
Merge "leds: qpnp-flash-v2: Separate switch node disable sequence"

8 years agoMerge "ARM: dts: msm: Add switch nodes to pmicobalt"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:08 +0000 (15:45 -0700)]
Merge "ARM: dts: msm: Add switch nodes to pmicobalt"

8 years agoMerge "leds: qpnp-flash-v2: Add support for multiple switch nodes"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:07 +0000 (15:45 -0700)]
Merge "leds: qpnp-flash-v2: Add support for multiple switch nodes"

8 years agoMerge "defconfig: msmcortex: don't set default CMA region size"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:07 +0000 (15:45 -0700)]
Merge "defconfig: msmcortex: don't set default CMA region size"

8 years agoMerge "clk: msm: clock-mmss-cobalt: Add display port pixel clocks"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:05 +0000 (15:45 -0700)]
Merge "clk: msm: clock-mmss-cobalt: Add display port pixel clocks"

8 years agoMerge "msm: kgsl: Fix the access to invalid pool"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:04 +0000 (15:45 -0700)]
Merge "msm: kgsl: Fix the access to invalid pool"

8 years agoMerge "ARM: dts: msm: Attach device memory to lpass iommu on msmcobalt"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:03 +0000 (15:45 -0700)]
Merge "ARM: dts: msm: Attach device memory to lpass iommu on msmcobalt"

8 years agoMerge "nl80211: Move ACL parsing later to avoid a possible memory leak"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:03 +0000 (15:45 -0700)]
Merge "nl80211: Move ACL parsing later to avoid a possible memory leak"

8 years agoMerge "clk: msm: clock: Call the correct init sequence during fabia PLL handoff"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:00 +0000 (15:45 -0700)]
Merge "clk: msm: clock: Call the correct init sequence during fabia PLL handoff"

8 years agoMerge "regmap: initialize dump count to 1"
Linux Build Service Account [Wed, 13 Jul 2016 22:45:00 +0000 (15:45 -0700)]
Merge "regmap: initialize dump count to 1"

8 years agoMerge "Revert "msm: vidc: Handle encoder input in true dynamic mode""
Linux Build Service Account [Wed, 13 Jul 2016 22:44:59 +0000 (15:44 -0700)]
Merge "Revert "msm: vidc: Handle encoder input in true dynamic mode""

8 years agoMerge "usb: gadget: f_gsi: Set speed descriptor pointers to NULL after free"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:58 +0000 (15:44 -0700)]
Merge "usb: gadget: f_gsi: Set speed descriptor pointers to NULL after free"

8 years agoMerge "defconfig: msmcortex: Enable CONFIG_INET_LRO"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:57 +0000 (15:44 -0700)]
Merge "defconfig: msmcortex: Enable CONFIG_INET_LRO"

8 years agoMerge "net lro: extend LRO to use hardware assists"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:56 +0000 (15:44 -0700)]
Merge "net lro: extend LRO to use hardware assists"

8 years agoMerge "wil6210: abort P2P search when stopping P2P device"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:55 +0000 (15:44 -0700)]
Merge "wil6210: abort P2P search when stopping P2P device"

8 years agoMerge "sched: break the forever prev_cpu selection preference"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:54 +0000 (15:44 -0700)]
Merge "sched: break the forever prev_cpu selection preference"

8 years agoMerge "msm: camera: isp: Fix RDI stream streamoff issue"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:52 +0000 (15:44 -0700)]
Merge "msm: camera: isp: Fix RDI stream streamoff issue"

8 years agoMerge "cnss: Refactor CNSS Platform Driver for better code maintenance"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:51 +0000 (15:44 -0700)]
Merge "cnss: Refactor CNSS Platform Driver for better code maintenance"

8 years agoMerge "msm: vidc: pm qos stability fixes for video driver"
Linux Build Service Account [Wed, 13 Jul 2016 22:44:50 +0000 (15:44 -0700)]
Merge "msm: vidc: pm qos stability fixes for video driver"

8 years agoqcom-charger: qpnp-smb2: enable some irqs as a wakeup source
Nicholas Troast [Thu, 16 Jun 2016 19:28:39 +0000 (12:28 -0700)]
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>
8 years agomsm: kgsl: Disable GPU software clockgating on A540
Oleg Perelet [Wed, 29 Jun 2016 20:52:29 +0000 (13:52 -0700)]
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>
8 years agoARM: dts: msmcobalt: Add control for GPU software clockgating
Oleg Perelet [Tue, 12 Jul 2016 23:07:14 +0000 (16:07 -0700)]
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>
8 years agoicnss: Setup hypervisor permissions for MSA0
Yuanyuan Liu [Tue, 10 May 2016 23:50:38 +0000 (16:50 -0700)]
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>
8 years agomsm: vidc: Fix buffer overflow issue in driver
Arun Menon [Wed, 27 Jan 2016 21:01:58 +0000 (13:01 -0800)]
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>
8 years agousb: dwc3: Fix bug in ep disable operation
Hemant Kumar [Wed, 13 Jul 2016 19:05:40 +0000 (12:05 -0700)]
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>
8 years agospmi-pmic-arb: change mode callback/ops for v3
Abhijeet Dharmapurikar [Wed, 6 Jul 2016 00:54:47 +0000 (17:54 -0700)]
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>
8 years agomsm: kgsl: Disable GPU isense clock below nominal power level
Oleg Perelet [Thu, 7 Jul 2016 16:41:20 +0000 (09:41 -0700)]
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>
8 years agosoc: qcom: glink_smd_xprt: Fix smd close ack for legacy channel
Dhoat Harpal [Wed, 25 May 2016 15:51:47 +0000 (21:21 +0530)]
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>
8 years agosoc: qcom: glink_smd_xprt: Fix ssr sync during intent request
Dhoat Harpal [Tue, 7 Jun 2016 14:12:34 +0000 (19:42 +0530)]
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>
8 years agomsm: mdss: fix QSEED3 bypass mode and lut cfg issues
Abhijit Kulkarni [Mon, 11 Jul 2016 18:51:20 +0000 (11:51 -0700)]
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: 10360191039433

8 years agoARM: dts: msm: support full Gold cluster frequency plan for msmcobalt
Osvaldo Banuelos [Tue, 17 May 2016 21:04:51 +0000 (14:04 -0700)]
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>
8 years agoqcom-charger: smb-lib: fix battery health status
Harry Yang [Tue, 12 Jul 2016 23:51:47 +0000 (16:51 -0700)]
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>
8 years agomsm: mdss: Fix AD backlight configuration
Ping Li [Fri, 8 Jul 2016 21:42:11 +0000 (14:42 -0700)]
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>
8 years agoARM: dts: msm: enable qcom,no-smr-check for mmss smmu for msmcobalt
Aravind Venkateswaran [Wed, 22 Jun 2016 19:17:56 +0000 (12:17 -0700)]
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>
8 years agoARM: dts: msm: add proxy vote for BIMC SMMU GDSC for msmcobalt
Aravind Venkateswaran [Tue, 28 Jun 2016 18:50:08 +0000 (11:50 -0700)]
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>
8 years agoclk: msm: mdss: fix calculation of VCO rate during handoff
Aravind Venkateswaran [Tue, 28 Jun 2016 19:00:11 +0000 (12:00 -0700)]
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>
8 years agousb: gadget: f_gsi: Increase USB GSI OUT TRBs from 7 to 31 for ECM
Mayank Rana [Thu, 9 Jun 2016 01:08:48 +0000 (18:08 -0700)]
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>
8 years agodefconfig: msmcortex: Enable USB audio QMI service driver
Hemant Kumar [Thu, 7 Jul 2016 21:16:41 +0000 (14:16 -0700)]
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>
8 years agomsm: kgsl: Remove ISENSE control code
Oleg Perelet [Mon, 11 Jul 2016 21:49:13 +0000 (14:49 -0700)]
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>
8 years agoARM: dts: msmcobalt: Enable GPU Turbo on A540
Oleg Perelet [Wed, 6 Jul 2016 16:28:03 +0000 (09:28 -0700)]
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>
8 years agodefconfig: arm64: msm: Disable uid statistics
Bryse Flowers [Tue, 5 Jul 2016 21:49:15 +0000 (14:49 -0700)]
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>
8 years agoicnss: Add support for suspend/resume
Yuanyuan Liu [Fri, 8 Jul 2016 23:50:22 +0000 (16:50 -0700)]
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>
8 years agoARM: dts: msm: update VDD_APC1 CPR margin adjustments for msmcobalt
Osvaldo Banuelos [Fri, 8 Jul 2016 22:45:27 +0000 (15:45 -0700)]
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>
8 years agoASoC: msm: qdsp6v2: Add get for App Type mixer control
Ben Romberger [Thu, 3 Mar 2016 01:26:11 +0000 (17:26 -0800)]
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>