OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agoMerge "msm: sde: Disable client driven prefetch for rotator"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:35 +0000 (17:01 -0800)]
Merge "msm: sde: Disable client driven prefetch for rotator"

7 years agoMerge "qos: Add NULL checking for irq descriptor"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:34 +0000 (17:01 -0800)]
Merge "qos: Add NULL checking for irq descriptor"

7 years agoMerge "soc: qcom: fingerprint: keep QSEE handle in kernel space"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:33 +0000 (17:01 -0800)]
Merge "soc: qcom: fingerprint: keep QSEE handle in kernel space"

7 years agoMerge "defconfig: msm: new flag for mediabox specific demux changes"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:32 +0000 (17:01 -0800)]
Merge "defconfig: msm: new flag for mediabox specific demux changes"

7 years agoMerge "media: platform: msm: Add demux support for mediabox"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:31 +0000 (17:01 -0800)]
Merge "media: platform: msm: Add demux support for mediabox"

7 years agoMerge "leds: qpnp-flash: Fix possible race condition in debugfs"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:30 +0000 (17:01 -0800)]
Merge "leds: qpnp-flash: Fix possible race condition in debugfs"

7 years agoMerge "fuse: fix use after free issue in fuse_dev_do_read()"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:29 +0000 (17:01 -0800)]
Merge "fuse: fix use after free issue in fuse_dev_do_read()"

7 years agoMerge "USB: phy-msm-qusb: Fix race conditions during fast PI/PO"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:28 +0000 (17:01 -0800)]
Merge "USB: phy-msm-qusb: Fix race conditions during fast PI/PO"

7 years agoMerge "core_ctl: redo offline_delay_ms tunable implementation"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:28 +0000 (17:01 -0800)]
Merge "core_ctl: redo offline_delay_ms tunable implementation"

7 years agoMerge "sched: don't assume higher capacity means higher power in tick migration"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:25 +0000 (17:01 -0800)]
Merge "sched: don't assume higher capacity means higher power in tick migration"

7 years agoMerge "ARM: dts: msm: add support of devfreq and cpufreq on SDM630"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:25 +0000 (17:01 -0800)]
Merge "ARM: dts: msm: add support of devfreq and cpufreq on SDM630"

7 years agoMerge "USB: u_data_ipa: Fix NULL pointer dereference before starting RX/TX"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:24 +0000 (17:01 -0800)]
Merge "USB: u_data_ipa: Fix NULL pointer dereference before starting RX/TX"

7 years agoMerge "defconfig: sdm660: enable video for 32bit"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:18 +0000 (17:01 -0800)]
Merge "defconfig: sdm660: enable video for 32bit"

7 years agoMerge "msm: vidc: Enable port reconfig for thumbnail session"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:17 +0000 (17:01 -0800)]
Merge "msm: vidc: Enable port reconfig for thumbnail session"

7 years agoMerge "qseecom: add new SCM ID to register listener when smcinvoke is supported"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:16 +0000 (17:01 -0800)]
Merge "qseecom: add new SCM ID to register listener when smcinvoke is supported"

7 years agoMerge "qcom: smb-lib: expose fcc value change in batt psy"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:15 +0000 (17:01 -0800)]
Merge "qcom: smb-lib: expose fcc value change in batt psy"

7 years agoMerge "msm: ipa3: UL event based completion"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:13 +0000 (17:01 -0800)]
Merge "msm: ipa3: UL event based completion"

7 years agoMerge "iommu: dma-mapping: alloc bitmap while fragmented"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:12 +0000 (17:01 -0800)]
Merge "iommu: dma-mapping: alloc bitmap while fragmented"

7 years agoMerge "smb138x-charger: Fix max conn temp config"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:11 +0000 (17:01 -0800)]
Merge "smb138x-charger: Fix max conn temp config"

7 years agoMerge "iommu/io-pgtable-fast: alloc pgtable while fragmented"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:10 +0000 (17:01 -0800)]
Merge "iommu/io-pgtable-fast: alloc pgtable while fragmented"

7 years agoMerge "msm: mdss: Handle ping pong split configuration in splash done"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:09 +0000 (17:01 -0800)]
Merge "msm: mdss: Handle ping pong split configuration in splash done"

7 years agoMerge "msm: mdss: Add mdss capabilities for sdm630"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:08 +0000 (17:01 -0800)]
Merge "msm: mdss: Add mdss capabilities for sdm630"

7 years agoMerge "ARM: dts: msm: fix wb qos for msm8998"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:08 +0000 (17:01 -0800)]
Merge "ARM: dts: msm: fix wb qos for msm8998"

7 years agoMerge "msm: mdss: avoid overflow in mdp clock rate calculation for rotator"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:07 +0000 (17:01 -0800)]
Merge "msm: mdss: avoid overflow in mdp clock rate calculation for rotator"

7 years agoMerge "smb-lib: fix icl changed interrupt storm"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:06 +0000 (17:01 -0800)]
Merge "smb-lib: fix icl changed interrupt storm"

7 years agoMerge "msm: sde: Correct bandwidth for TP10 and P010 in SDE rotator"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:05 +0000 (17:01 -0800)]
Merge "msm: sde: Correct bandwidth for TP10 and P010 in SDE rotator"

7 years agoMerge "ARM: dts: msm: update sdm660 rotator xin id values"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:03 +0000 (17:01 -0800)]
Merge "ARM: dts: msm: update sdm660 rotator xin id values"

7 years agoMerge "msm: sde: Ensure mdp splash cleanup before initiating rotation request"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:03 +0000 (17:01 -0800)]
Merge "msm: sde: Ensure mdp splash cleanup before initiating rotation request"

7 years agoMerge "scsi: ufs: handle LINERESET error only during hibern8 enter"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:02 +0000 (17:01 -0800)]
Merge "scsi: ufs: handle LINERESET error only during hibern8 enter"

7 years agoMerge "qcom: smb-lib: enable parallel charging for SDP/CDP/OCP/FLOAT adapter"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:01 +0000 (17:01 -0800)]
Merge "qcom: smb-lib: enable parallel charging for SDP/CDP/OCP/FLOAT adapter"

7 years agoMerge "spi: spi_qsd: Set DMA mask for SPI device"
Linux Build Service Account [Thu, 16 Feb 2017 01:01:00 +0000 (17:01 -0800)]
Merge "spi: spi_qsd: Set DMA mask for SPI device"

7 years agoMerge "scsi: ufs: renable AH8 timer on reset"
Linux Build Service Account [Thu, 16 Feb 2017 01:00:59 +0000 (17:00 -0800)]
Merge "scsi: ufs: renable AH8 timer on reset"

7 years agoMerge "clk: qcom: Add support to log PLL/RCGR values in case of failure"
Linux Build Service Account [Thu, 16 Feb 2017 01:00:58 +0000 (17:00 -0800)]
Merge "clk: qcom: Add support to log PLL/RCGR values in case of failure"

7 years agoMerge "ARM: dts: msm: Move sdcc and ufs ice nodes"
Linux Build Service Account [Thu, 16 Feb 2017 01:00:57 +0000 (17:00 -0800)]
Merge "ARM: dts: msm: Move sdcc and ufs ice nodes"

7 years agoMerge "rpm-rail-stats: Add support to read RPM rail stats"
Linux Build Service Account [Thu, 16 Feb 2017 01:00:56 +0000 (17:00 -0800)]
Merge "rpm-rail-stats: Add support to read RPM rail stats"

7 years agoMerge "input: touchpanel: Add ST Touchscreen version 4.1.0 driver"
Linux Build Service Account [Thu, 16 Feb 2017 01:00:56 +0000 (17:00 -0800)]
Merge "input: touchpanel: Add ST Touchscreen version 4.1.0 driver"

7 years agoMerge "input: touchscreen: gt9xx: fix memory corruption in Goodix driver"
Linux Build Service Account [Thu, 16 Feb 2017 01:00:53 +0000 (17:00 -0800)]
Merge "input: touchscreen: gt9xx: fix memory corruption in Goodix driver"

7 years agoMerge "ARM: dts: msm: Disable home key for SDM660 QRD"
Linux Build Service Account [Thu, 16 Feb 2017 01:00:53 +0000 (17:00 -0800)]
Merge "ARM: dts: msm: Disable home key for SDM660 QRD"

7 years agoMerge "ath10k: Remove redundant code from snoc layer"
Linux Build Service Account [Thu, 16 Feb 2017 01:00:52 +0000 (17:00 -0800)]
Merge "ath10k: Remove redundant code from snoc layer"

7 years agoMerge "ARM: dts: msm: Config sdm660 CPR controllers to use default step_quot"
Linux Build Service Account [Thu, 16 Feb 2017 01:00:51 +0000 (17:00 -0800)]
Merge "ARM: dts: msm: Config sdm660 CPR controllers to use default step_quot"

7 years agoMerge "clk: qcom: Clean up the MSM8996 multimedia clock controller (MMCC) driver"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:41 +0000 (06:11 -0800)]
Merge "clk: qcom: Clean up the MSM8996 multimedia clock controller (MMCC) driver"

7 years agoMerge "ath10k: Refactor htt rx descriptor and remove last msdu check for WCN3990"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:41 +0000 (06:11 -0800)]
Merge "ath10k: Refactor htt rx descriptor and remove last msdu check for WCN3990"

7 years agoMerge "ARM: dts: msm: configure interrupt types for charger for pmi8998"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:40 +0000 (06:11 -0800)]
Merge "ARM: dts: msm: configure interrupt types for charger for pmi8998"

7 years agoMerge "ASoC: msm: qdsp6v2: Add initialization and range check in q6afe"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:39 +0000 (06:11 -0800)]
Merge "ASoC: msm: qdsp6v2: Add initialization and range check in q6afe"

7 years agoMerge "ASoC: wcd934x: Do not prevent the core entering power collapse"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:38 +0000 (06:11 -0800)]
Merge "ASoC: wcd934x: Do not prevent the core entering power collapse"

7 years agoMerge "ASoC: msm: qdsp6v2: NOIRQ dynamic perf mode control"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:38 +0000 (06:11 -0800)]
Merge "ASoC: msm: qdsp6v2: NOIRQ dynamic perf mode control"

7 years agoMerge "ASoC: msm8998: Add DoP support on QUAT TDM"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:37 +0000 (06:11 -0800)]
Merge "ASoC: msm8998: Add DoP support on QUAT TDM"

7 years agoMerge "ASoC: msm: qdsp6v2: Add TDM support for PCM compressed mode"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:36 +0000 (06:11 -0800)]
Merge "ASoC: msm: qdsp6v2: Add TDM support for PCM compressed mode"

7 years agoMerge "ASoC: msm: qdspv2: Add mixer controls for drift query"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:35 +0000 (06:11 -0800)]
Merge "ASoC: msm: qdspv2: Add mixer controls for drift query"

7 years agoMerge "ARM: dts: msm: limit the maximum PCLK supported for DP on SDM660"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:34 +0000 (06:11 -0800)]
Merge "ARM: dts: msm: limit the maximum PCLK supported for DP on SDM660"

7 years agoMerge "ARM: dts: msm: enable etr as default sink on sdm660"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:33 +0000 (06:11 -0800)]
Merge "ARM: dts: msm: enable etr as default sink on sdm660"

7 years agoMerge "ARM: dts: msm: modify dcc ram size for sdm660 and sdm630"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:33 +0000 (06:11 -0800)]
Merge "ARM: dts: msm: modify dcc ram size for sdm660 and sdm630"

7 years agoMerge "input: synaptics_dsx: reallocate buffer under lock."
Linux Build Service Account [Wed, 15 Feb 2017 14:11:28 +0000 (06:11 -0800)]
Merge "input: synaptics_dsx: reallocate buffer under lock."

7 years agoMerge "wil6210: support loading dedicated image for sparrow-plus devices"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:27 +0000 (06:11 -0800)]
Merge "wil6210: support loading dedicated image for sparrow-plus devices"

7 years agoMerge "firmware_class: Add null check in firmware_direct_write"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:26 +0000 (06:11 -0800)]
Merge "firmware_class: Add null check in firmware_direct_write"

7 years agoMerge "msm: ipa: use GFP_ATOMIC for DMA memory allocation during SSR"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:25 +0000 (06:11 -0800)]
Merge "msm: ipa: use GFP_ATOMIC for DMA memory allocation during SSR"

7 years agoMerge "leds: qpnp-flash-v2: add delay between LMH mitigation and LED strobe"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:24 +0000 (06:11 -0800)]
Merge "leds: qpnp-flash-v2: add delay between LMH mitigation and LED strobe"

7 years agoMerge "soc: qcom: pil: Clear elf memory on validation failure"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:24 +0000 (06:11 -0800)]
Merge "soc: qcom: pil: Clear elf memory on validation failure"

7 years agoMerge "defconfig: msm: enable ATH10k WCN3990 WLAN module for APQ8098"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:23 +0000 (06:11 -0800)]
Merge "defconfig: msm: enable ATH10k WCN3990 WLAN module for APQ8098"

7 years agoMerge "msm: camera: sensor: Validate destination step position"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:22 +0000 (06:11 -0800)]
Merge "msm: camera: sensor: Validate destination step position"

7 years agoMerge "msm: cpp: Check for validity of processed frame in cpp timeout"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:21 +0000 (06:11 -0800)]
Merge "msm: cpp: Check for validity of processed frame in cpp timeout"

7 years agoMerge "msm: camera: isp: Handle page fault in case of overflow"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:21 +0000 (06:11 -0800)]
Merge "msm: camera: isp: Handle page fault in case of overflow"

7 years agoMerge "drm/msm/sde: enable pixel extension and qseed3 along with VIG pipes"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:20 +0000 (06:11 -0800)]
Merge "drm/msm/sde: enable pixel extension and qseed3 along with VIG pipes"

7 years agoMerge "msm: vidc: BUG_ON before killing session on timeout"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:19 +0000 (06:11 -0800)]
Merge "msm: vidc: BUG_ON before killing session on timeout"

7 years agoMerge "msm: vidc: Check for sanity of size while mapping buffers"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:18 +0000 (06:11 -0800)]
Merge "msm: vidc: Check for sanity of size while mapping buffers"

7 years agoMerge "msm: vidc: Fix crash due to invalid instance access"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:17 +0000 (06:11 -0800)]
Merge "msm: vidc: Fix crash due to invalid instance access"

7 years agoMerge "msm: vidc: Fix issue in split mode for UBWC output"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:17 +0000 (06:11 -0800)]
Merge "msm: vidc: Fix issue in split mode for UBWC output"

7 years agoMerge "msm: vidc: Decide plane count whenever extradata is set"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:16 +0000 (06:11 -0800)]
Merge "msm: vidc: Decide plane count whenever extradata is set"

7 years agoMerge "ARM: dts: msm: Add GPU properties for SDM630"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:15 +0000 (06:11 -0800)]
Merge "ARM: dts: msm: Add GPU properties for SDM630"

7 years agoMerge "defconfig: msm: add fastmap config on sdm660"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:14 +0000 (06:11 -0800)]
Merge "defconfig: msm: add fastmap config on sdm660"

7 years agoMerge "ARM: dts: msm: Add sdhc2 for sdm630 QRD"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:12 +0000 (06:11 -0800)]
Merge "ARM: dts: msm: Add sdhc2 for sdm630 QRD"

7 years agoMerge "ARM: dts: msm: enable LRA drive correction for haptics on pmi8998 and pm660"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:11 +0000 (06:11 -0800)]
Merge "ARM: dts: msm: enable LRA drive correction for haptics on pmi8998 and pm660"

7 years agoMerge "ARM: dts: msm: Enable pil_modem for apq8998 mediabox"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:10 +0000 (06:11 -0800)]
Merge "ARM: dts: msm: Enable pil_modem for apq8998 mediabox"

7 years agoMerge "power: qpnp-fg-gen3: add support to configure batt_therm coefficients"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:09 +0000 (06:11 -0800)]
Merge "power: qpnp-fg-gen3: add support to configure batt_therm coefficients"

7 years agoMerge "icnss: Remove unused IPC logging mechanism"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:08 +0000 (06:11 -0800)]
Merge "icnss: Remove unused IPC logging mechanism"

7 years agoMerge "msm: ADSPRPC: Set the device node in the session context"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:07 +0000 (06:11 -0800)]
Merge "msm: ADSPRPC: Set the device node in the session context"

7 years agoMerge "defconfig: arm64: msm: enable CONFIG_FORCE_ALLOC_FROM_DMA_ZONE"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:07 +0000 (06:11 -0800)]
Merge "defconfig: arm64: msm: enable CONFIG_FORCE_ALLOC_FROM_DMA_ZONE"

7 years agoMerge "net: support __netdev_alloc_skb to always use GFP_DMA"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:06 +0000 (06:11 -0800)]
Merge "net: support __netdev_alloc_skb to always use GFP_DMA"

7 years agoMerge "usb: pd: Update uevent parameters during hard reset"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:05 +0000 (06:11 -0800)]
Merge "usb: pd: Update uevent parameters during hard reset"

7 years agoMerge "usb: pd: Make select_pdo_store() wait until request goes through"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:04 +0000 (06:11 -0800)]
Merge "usb: pd: Make select_pdo_store() wait until request goes through"

7 years agoMerge "ARM: dts: msm: Fix dwc3 device node property name typo on msm8998"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:04 +0000 (06:11 -0800)]
Merge "ARM: dts: msm: Fix dwc3 device node property name typo on msm8998"

7 years agoMerge "usb: dwc3: Fix LPM NYET Threshold value"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:03 +0000 (06:11 -0800)]
Merge "usb: dwc3: Fix LPM NYET Threshold value"

7 years agoMerge "ath10k: Return failure if fw ready is not arrived"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:02 +0000 (06:11 -0800)]
Merge "ath10k: Return failure if fw ready is not arrived"

7 years agoMerge "ice: Sent proper storage type for ICE configuration during reset"
Linux Build Service Account [Wed, 15 Feb 2017 14:11:01 +0000 (06:11 -0800)]
Merge "ice: Sent proper storage type for ICE configuration during reset"

7 years agodefconfig: msm: new flag for mediabox specific demux changes
Udaya Bhaskara Reddy Mallavarapu [Tue, 14 Feb 2017 09:29:33 +0000 (14:59 +0530)]
defconfig: msm: new flag for mediabox specific demux changes

For Mediabox project demux requires raise video frame events
only for MPEG-2 B frames and H264 non idr frames instead of all
frames. These changes are required for clock recovery & AV sync
for mediabox project.

CR's-Fixed: 2005724
Change-Id: I0c87d98b382c37381b9810b6de23267933e51c20
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
7 years agosoc: qcom: fingerprint: keep QSEE handle in kernel space
Abir Ghosh [Fri, 3 Feb 2017 01:13:58 +0000 (17:13 -0800)]
soc: qcom: fingerprint: keep QSEE handle in kernel space

Move the QSEE handle from user space to kernel space.
In addition, fix possible overflow, when checking that
the command and response buffers fit in the shared buffer.

CRs-Fixed: 1086530
Change-Id: I21b1866546a2825fe348a260c60e341bbe9600ea
Signed-off-by: Abir Ghosh <abirg@codeaurora.org>
7 years agofuse: fix use after free issue in fuse_dev_do_read()
Sahitya Tummala [Tue, 7 Feb 2017 04:09:00 +0000 (09:39 +0530)]
fuse: fix use after free issue in fuse_dev_do_read()

There is a potential race between fuse_dev_do_write()
and request_wait_answer() contexts as shown below:

TASK 1:
__fuse_request_send():
  |--spin_lock(&fiq->waitq.lock);
  |--queue_request();
  |--spin_unlock(&fiq->waitq.lock);
  |--request_wait_answer():
       |--if (test_bit(FR_SENT, &req->flags))
       <gets pre-empted after it is validated true>  TASK 2:
             fuse_dev_do_write():
       |--clears bit FR_SENT,
       |--request_end():
          |--sets bit FR_FINISHED
  |--spin_lock(&fiq->waitq.lock);
  |--list_del_init(&req->intr_entry);
  |--spin_unlock(&fiq->waitq.lock);
  |--fuse_put_request();
       |--queue_interrupt();
       <request gets queued to interrupts list>
            |--wake_up_locked(&fiq->waitq);
       |--wait_event_freezable();
       <as FR_FINISHED is set, it returns and then
       the caller frees this request>

Now, the next fuse_dev_do_read(), see interrupts list is not empty
and then calls fuse_read_interrupt() which tries to access the request
which is already free'd and gets the below crash:

[11432.401266] Unable to handle kernel paging request at virtual address
6b6b6b6b6b6b6b6b
...
[11432.456168] PC is at __list_del_entry+0x6c/0xc4
[11432.463573] LR is at fuse_dev_do_read+0x1ac/0x474
...
[11432.679999] __list_del_entry+0x6c/0xc4
[11432.687794] fuse_dev_do_read+0x1ac/0x474
[11432.693180] fuse_dev_read+0x6c/0x78
[11432.699082] __vfs_read+0xc0/0xe8
[11432.704459] vfs_read+0x90/0x108

As FR_FINISHED bit is set before deleting the intr_entry with input
queue lock in request completion path, do the testing of this flag and
queueing atomically with the same lock in queue_interrupt().

Change-Id: I84232771cf09a809806568144441fd356b87d46c
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
7 years agoARM: dts: msm: Config sdm660 CPR controllers to use default step_quot
Tirupathi Reddy [Thu, 9 Feb 2017 11:21:07 +0000 (16:51 +0530)]
ARM: dts: msm: Config sdm660 CPR controllers to use default step_quot

There is a chance for a CPR controller to use the run-time calibrated
step_quot of lower modes for higher modes. This can sometimes lead
to closed-loop voltage getting stuck at open-loop voltage. To avoid
this, configure APC0/1 and GFX CPR controllers in sdm660 to first use
the default step_quot and then later switch to the run-time calibrated
step_quot.

CRs-Fixed: 2003482
Change-Id: Ic355a3a533ab65d9e2b28c67b7fca7df1dd49d48
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
7 years agoleds: qpnp-flash: Fix possible race condition in debugfs
Ankit Sharma [Thu, 19 Jan 2017 14:52:14 +0000 (20:22 +0530)]
leds: qpnp-flash: Fix possible race condition in debugfs

There is a possible race condition when debugfs files are concurrently
accessed by multiple threads. Fix this.

CRs-Fixed: 11094201109326
Change-Id: I19e9107079ac8d039b12a37ae612727f824552d4
Signed-off-by: Ankit Sharma <ansharma@codeaurora.org>
7 years agoARM: dts: msm: add support of devfreq and cpufreq on SDM630
Santosh Mardi [Fri, 27 Jan 2017 11:59:08 +0000 (17:29 +0530)]
ARM: dts: msm: add support of devfreq and cpufreq on SDM630

Add support for devfreq and cpufreq nodes on SDM630 target
which are needed to scale cpu and DDR frequency.

Change-Id: Ic1051e712a3a6578eb6448538e15be9acb85dc89
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
7 years agosched: don't assume higher capacity means higher power in tick migration
Pavankumar Kondeti [Wed, 13 Apr 2016 09:43:56 +0000 (15:13 +0530)]
sched: don't assume higher capacity means higher power in tick migration

When an upmigrate ineligible task running on the maximum capacity CPU,
we check if it can be migrated to a lower capacity CPU in tick path.
Add a power cost based check there to prevent the task migration
from a power efficient CPU.

Change-Id: I291c62d7dbf169d5123faba5f5246ad44a7a40dd
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
7 years agosched: optimize cpumask operations during task placement
Pavankumar Kondeti [Thu, 9 Feb 2017 10:07:33 +0000 (15:37 +0530)]
sched: optimize cpumask operations during task placement

Compute the CPU search mask once by taking task affinity,
cpu_active_mask and cpu_isolated_mask into account and cache
it in cpu_selection_env. This prevents doing the same cpumask
operations multiple times.

Change-Id: I78f35c59e6ee9437b3a522ac7ad856c0251f81ec
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
7 years agoARM: dts: msm: Enable LPASS timestamps in TSPP driver for APQ8998
Udaya Bhaskara Reddy Mallavarapu [Mon, 13 Feb 2017 10:57:17 +0000 (16:27 +0530)]
ARM: dts: msm: Enable LPASS timestamps in TSPP driver for APQ8998

Set the TSPP configuration to enable LPASS time stamps in TSIF HW.
The TSIF adds LPASS timestamps to Transport Stream packets instead
of TSIF internal clock timestamps. This change is required for clock
recovery & AV sync for mediabox project based on LE platform.

CR's-Fixed: 2005724
Change-Id: I43f0e8c2593b12e65e603f23a6c1acb663ef439e
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
7 years agomedia: platform: msm: Add demux support for mediabox
Udaya Bhaskara Reddy Mallavarapu [Tue, 17 Jan 2017 04:50:00 +0000 (10:20 +0530)]
media: platform: msm: Add demux support for mediabox

Add audio stream buffer interface to write the Audio demux data
to audio decoder buffers. Add support in TSIF driver to append
LPASS subsystem time stamps to Transport Stream packets in TSIF HW.
This is required for AV sync & clock recovery handling
for mediabox project based on LE platform.

CR's-Fixed: 2005724
Change-Id: I39d2544e958c31ff1abdd2ad77412a87bc2a189b
Signed-off-by: Udaya Bhaskara Reddy Mallavarapu <udaym@codeaurora.org>
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
7 years agoqcom: smb-lib: expose fcc value change in batt psy
Harry Yang [Tue, 14 Feb 2017 23:56:21 +0000 (15:56 -0800)]
qcom: smb-lib: expose fcc value change in batt psy

Add CONSTANT_CHARGE_CURRENT_MAX, to set and get fcc.

CRs-Fixed: 2004173
Change-Id: I3dfed0ca7b2a477e1c106955fa112ba5206e3fa4
Signed-off-by: Harry Yang <harryy@codeaurora.org>
7 years agoqseecom: add new SCM ID to register listener when smcinvoke is supported
Zhen Kong [Tue, 14 Feb 2017 19:10:09 +0000 (11:10 -0800)]
qseecom: add new SCM ID to register listener when smcinvoke is supported

Add new SCM ID to register listener when smcinvoke is supported. Then
TZ, depending on how the listener has been registered, will either
behave in the old way (i.e. rsp[1]=QSEE_LISTENER_ID), or the new way
(rsp[1]=app_id) when smcinvoke is supported. And qseecom will first
to register listener with new SCM ID, if failed, then fallback to
use old ID.

Change-Id: Ia27055db6ec8f26705669ee913919b29461121ca
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
7 years agosmb138x-charger: Fix max conn temp config
Harry Yang [Tue, 14 Feb 2017 20:31:47 +0000 (12:31 -0800)]
smb138x-charger: Fix max conn temp config

The value of device tree property qcom,connector-temp-max-mdegc is
passed to a wrong variable. Fix it.

CRs-Fixed: 1077217
Change-Id: I705467d91dd8e5e9ea4aa0ab231e29c512608f36
Signed-off-by: Harry Yang <harryy@codeaurora.org>
7 years agosmb-lib: fix icl changed interrupt storm
Abhijeet Dharmapurikar [Mon, 13 Feb 2017 03:16:15 +0000 (19:16 -0800)]
smb-lib: fix icl changed interrupt storm

Current driver has two votables for controlling the usb current
and the usb suspend bit. This could lead to a situation where
the icl votable changes current setting while its suspended.
Changing current setting while suspended causes icl changed
interrupt storm.

Fix it by removing usb_suspend_votable and make all the suspend
voters call usb_icl_votable with 0mA to cause suspend.
Update usb_icl_votable to update current settings only when
not suspended. Moreover disable the interrupt while changing
the current settings and enable the interrupt only after the
unsuspend.

Change-Id: Iafc8ee3c934952b8131d374d0529e865424016d5
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
7 years agoscsi: ufs: handle LINERESET error only during hibern8 enter
Venkat Gopalakrishnan [Tue, 14 Feb 2017 01:57:51 +0000 (17:57 -0800)]
scsi: ufs: handle LINERESET error only during hibern8 enter

If LINERESET was detected during hibern8 exit, HW recovers
link back to original speed automatically by PA_INIT sequence,
hence remove the full reset.

Change-Id: I181adf4580c0febed817047a40c1d0621d9c9824
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
7 years agoscsi: ufs: renable AH8 timer on reset
Venkat Gopalakrishnan [Wed, 8 Feb 2017 20:16:45 +0000 (12:16 -0800)]
scsi: ufs: renable AH8 timer on reset

Auto hibern8 timer will get reset as part of ufshcd_vops_full_reset(),
so reenable the timer in ufshcd_probe_hba().

Change-Id: I8ff85a9fd02f4a6b527666654728c4146cb61f5e
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>