OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
7 years agomsm: thermal: Notify LMH DCVSh driver after freq mitigation request
Ram Chandrasekar [Wed, 23 Nov 2016 21:39:13 +0000 (14:39 -0700)]
msm: thermal: Notify LMH DCVSh driver after freq mitigation request

LMH DCVSh hardware doesn't generate a debug interrupt, when HLOS
CPU frequency cap is the only throttling value coming to the hardware
aggregator logic. The LMH DCVSh requires atleast one of the hardware
algorithm to throttle to generate a debug interrupt. So there will be
a case where, LMH DCVS driver won't notify scheduler about the
throttling frequency if HLOS is the only reason for throttling.

LMH DCVSh driver now exposes a new API, to trigger the frequency polling
loop. KTM is updated to use this API to trigger the LMH DCVSh polling,
whenever there is a new software frequency cap. This will ensure that
the LMH DCVSh will notify the scheduler even if software is the only
throttling reason.

Change-Id: I92b1bd9a5efc9810eea721b088dff1bd6eef3838
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agomsm: lmh_dcvsh: Support new API to notify scheduler
Ram Chandrasekar [Wed, 23 Nov 2016 21:21:47 +0000 (14:21 -0700)]
msm: lmh_dcvsh: Support new API to notify scheduler

HLOS can place a mitigation frequency via the LMH DCVSh hardware using
the software cap register and this request doesn't trigger a debug
interrupt. Thus, this frequency mitigation change will not result in
scheduler being notified by LMH DCVSh driver.

Introduce a new API in LMH DCVSh driver, that can be used by other
drivers to trigger the scheduler notification. This API and the
interrupt handler follows the same code path to poll and notify the
scheduler.

Change-Id: Iefcdb57ff598ecb1bafc535958684f75b1f6e645
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agothermal-core: Use rcu for accessing sensor list
Ram Chandrasekar [Thu, 15 Oct 2015 21:36:35 +0000 (15:36 -0600)]
thermal-core: Use rcu for accessing sensor list

Sensor temperature read function traverses the
sensor list every time without using any lock. If the
list is undergoing mutation when it is traversed, it may
result in memory violation. For example, the new element
could have added to the list before updating the
next pointer due to out of order execution. This could result
in either NULL pointer dereference or unassigned memory access
violation. Using a lock every time when temperature
is read may mutually exclude it from list mutation, but it impacts
the performance. Sensor addition is an infrequent operation
when compared to sensor temperature read. So adding a lock
to protect against this infrequent operation will add overhead
and deter performance. Use of list_for_each_entry_safe() function
for traversing, won't help. Because this function can help
only if the traversal loop removes the current element, that
is pointed by this iteration.

Use RCU when traversing and updating the list to avoid locks.
RCU ensures list traversal safe addition or deletion happens
and doesn't block the frequent read operation. Replace the
list_for_each_entry_safe() function with rcu safe list
traversal function list_for_each_entry_rcu(), wherever it is
applicable.

Change-Id: I4c05fefa6906ecad408dfd4407b60bc051366f8c
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
7 years agoMerge "msm: mdss: hdcp_1x: remove obsolete code"
Linux Build Service Account [Fri, 2 Dec 2016 07:47:41 +0000 (23:47 -0800)]
Merge "msm: mdss: hdcp_1x: remove obsolete code"

7 years agoMerge "uapi/media: add additional ubwc compressed formats"
Linux Build Service Account [Fri, 2 Dec 2016 07:47:40 +0000 (23:47 -0800)]
Merge "uapi/media: add additional ubwc compressed formats"

7 years agoMerge "mm: Inform KASAN when allocating pages during isolation"
Linux Build Service Account [Fri, 2 Dec 2016 07:47:39 +0000 (23:47 -0800)]
Merge "mm: Inform KASAN when allocating pages during isolation"

7 years agoMerge "net: rmnet_data: Handle leaked packets when adding MAP fields in TX"
Linux Build Service Account [Fri, 2 Dec 2016 07:47:38 +0000 (23:47 -0800)]
Merge "net: rmnet_data: Handle leaked packets when adding MAP fields in TX"

7 years agoMerge "sched: pre-allocate colocation groups"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:41 +0000 (16:39 -0800)]
Merge "sched: pre-allocate colocation groups"

7 years agoMerge "msm: mdss: restore pipe src/dst rect after multiple PU ROI update"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:40 +0000 (16:39 -0800)]
Merge "msm: mdss: restore pipe src/dst rect after multiple PU ROI update"

7 years agoMerge "ASoc: msm: qdsp6v2: Add TX app type support in compress driver"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:38 +0000 (16:39 -0800)]
Merge "ASoc: msm: qdsp6v2: Add TX app type support in compress driver"

7 years agoMerge "msm: camera: fix bound check of offset to avoid overread overwrite"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:37 +0000 (16:39 -0800)]
Merge "msm: camera: fix bound check of offset to avoid overread overwrite"

7 years agoMerge "msm: camera: Print kernel pointer using correct specifier"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:36 +0000 (16:39 -0800)]
Merge "msm: camera: Print kernel pointer using correct specifier"

7 years agoMerge "msm: camera: jpegdma: Check for compat config"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:35 +0000 (16:39 -0800)]
Merge "msm: camera: jpegdma: Check for compat config"

7 years agoMerge "msm: camera2: cpp: Added secure buffer [un]mapping"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:34 +0000 (16:39 -0800)]
Merge "msm: camera2: cpp: Added secure buffer [un]mapping"

7 years agoMerge "msm: mdss: dp: set crypto clock rate"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:32 +0000 (16:39 -0800)]
Merge "msm: mdss: dp: set crypto clock rate"

7 years agoMerge "msm: mdss: hdcp_1x: update hdcp state on link integrity failures"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:31 +0000 (16:39 -0800)]
Merge "msm: mdss: hdcp_1x: update hdcp state on link integrity failures"

7 years agoMerge "msm: mdss: dp: hdcp 2.2: add support for interrupt handling"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:31 +0000 (16:39 -0800)]
Merge "msm: mdss: dp: hdcp 2.2: add support for interrupt handling"

7 years agoMerge "msm: mdss: avoid scheduling pp work during continuous updates"
Linux Build Service Account [Fri, 2 Dec 2016 00:39:29 +0000 (16:39 -0800)]
Merge "msm: mdss: avoid scheduling pp work during continuous updates"

7 years agouapi/media: add additional ubwc compressed formats
abeykun [Fri, 11 Nov 2016 15:36:54 +0000 (10:36 -0500)]
uapi/media: add additional ubwc compressed formats

Patch adds RGB565, RGBA 10-bit and P010 10-bit ubwc
compressed formats support to media API planes calculation.
Also fix in align macro when alignment is not a power of 2.

CRs-Fixed: 1096408
Change-Id: I4afcf7d5b22395eeda2e77131bd45592abaeb561
Signed-off-by: abeykun <abeykun@codeaurora.org>
Signed-off-by: Umesh Pandey <umeshp@codeaurora.org>
7 years agomsm: mdss: hdcp_1x: remove obsolete code
Ajay Singh Parmar [Sat, 19 Nov 2016 07:10:25 +0000 (23:10 -0800)]
msm: mdss: hdcp_1x: remove obsolete code

Remove HLOS and TZ communication mechanism which is
using SCM APIs. New hardware supports programming in
HLOS itself. Also, communication is now handled by
qseecom APIs. This makes SCM code obsolete and redundant.
Remove any such code which is not being used in current
hardware.

Change-Id: I9b120b88f92be517d1734697625038b28b32feb1
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
7 years agosched: pre-allocate colocation groups
Joonwoo Park [Mon, 28 Nov 2016 21:41:18 +0000 (13:41 -0800)]
sched: pre-allocate colocation groups

At present, sched_set_group_id() dynamically allocates structure for
colocation group to assign the given task to the group.  However
this can cause deadlock as memory allocator can wakeup a task which
also tries to acquire related_thread_group_lock.

Avoid such deadlock by pre-allocating colocation structures.  This
limits maximum colocation groups to static number but it's fine as it's
never expected to be a lot.

Change-Id: Ifc32ab4ead63c382ae390358ed86f7cc5b6eb2dc
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
7 years agomsm: mdss: restore pipe src/dst rect after multiple PU ROI update
Veera Sundaram Sankaran [Wed, 30 Nov 2016 22:27:19 +0000 (14:27 -0800)]
msm: mdss: restore pipe src/dst rect after multiple PU ROI update

During multiple partial update, each pipe is checked against
the two ROIs and the pipe's src and dst rect are cropped and
adjusted with respect to first_roi or second_roi, based on its
position. If the pipe is used with the same configs in the next
kickoff, restore the pipe's actual src/dst before continuing with
the kickoff.

Change-Id: I1db579626d96302e07fef1a755fb39944d3eaca8
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
7 years agoASoc: msm: qdsp6v2: Add TX app type support in compress driver
Satish Babu Patakokila [Wed, 3 Aug 2016 15:54:53 +0000 (21:24 +0530)]
ASoc: msm: qdsp6v2: Add TX app type support in compress driver

Add TX app type support in compress driver to support different
post processing modules per COPP in the TX path

CRs-fixed: 1072067
Change-Id: I8e84577b5aff5e932632c4612a88808615d764ae
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
7 years agoASoc: msm: qdsp6v2: Add timestamp support for compress capture
Satish Babu Patakokila [Wed, 3 Aug 2016 15:17:59 +0000 (20:47 +0530)]
ASoc: msm: qdsp6v2: Add timestamp support for compress capture

Add timestamp support for compress driver.
Modify ASM driver to read the buffer from predefined offset.

CRs-fixed: 1072067
Change-Id: I1c46befc223285495b3c0650e6c3eaae81f58771
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
7 years agoMerge "msm: hdcp: add response timeout and new messages for sink"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:50 +0000 (09:23 -0800)]
Merge "msm: hdcp: add response timeout and new messages for sink"

7 years agoMerge "Input: synaptics: check input, prevent sysfs races"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:49 +0000 (09:23 -0800)]
Merge "Input: synaptics: check input, prevent sysfs races"

7 years agoMerge "mmc: core: check if CQE is already disabled before halt/unhalt"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:47 +0000 (09:23 -0800)]
Merge "mmc: core: check if CQE is already disabled before halt/unhalt"

7 years agoMerge "msm: mdss: add support to set mdp clock rate before enable"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:46 +0000 (09:23 -0800)]
Merge "msm: mdss: add support to set mdp clock rate before enable"

7 years agoMerge "msm ipa3: fix blocking faulty IOCTLs"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:45 +0000 (09:23 -0800)]
Merge "msm ipa3: fix blocking faulty IOCTLs"

7 years agoMerge "mmc: block: send CMD13 when a response error detected in CQ mode"
Linux Build Service Account [Thu, 1 Dec 2016 17:23:45 +0000 (09:23 -0800)]
Merge "mmc: block: send CMD13 when a response error detected in CQ mode"

7 years agommc: core: check if CQE is already disabled before halt/unhalt
Sahitya Tummala [Tue, 26 Apr 2016 09:30:04 +0000 (15:00 +0530)]
mmc: core: check if CQE is already disabled before halt/unhalt

Upon any CQ error, the driver tries to halt the CQE first and
if it fails to halt, then CQE is disabled. The error handling
work function mmc_blk_cmdq_err() also tries to HALT the CQE
at couple of places and takes some action based on the HALT
success/error status. But since CQE is disabled, we should not
treat any errors of CQE halt/unhalt as critical and in fact,
we should not even attempt to halt/unhalt.

Change-Id: I6bef9f2c033f78ad0959954acc5d7627e8a92139
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
7 years agommc: cmdq_hci: enable legacy interrupts when CQ is disabled upon error
Sahitya Tummala [Tue, 26 Apr 2016 09:31:04 +0000 (15:01 +0530)]
mmc: cmdq_hci: enable legacy interrupts when CQ is disabled upon error

The legacy interrupts are enabled as part of CQE halt. But there could
be few cases, where halt fails. In those cases, CQE is disabled without
enabling legacy interrupts. Without this we cannot send any commands
like status CMD13 in legacy mode as part of error handling work.

Change-Id: I944ab4060e779c7f41a945532e6a65c30797d40f
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
7 years agommc: sdhci: Handle legacy commands sent in CQ error cases properly
Sahitya Tummala [Tue, 26 Apr 2016 11:01:03 +0000 (16:31 +0530)]
mmc: sdhci: Handle legacy commands sent in CQ error cases properly

There could be cases where CQE halt might fail and in which
case, CQE gets disabled as part of error handling.
In this case, !mmc_host_halt() will be true and the commands
sent in legacy mode are getting software request timeout errors
as they are getting handled as cmdq irq.
Hence, add !mmc_host_cq_disable() check as well in addition to
!mmc_host_halt() in sdhci_irq() before considering it as a
cmdq irq.

Change-Id: Ic529aae53fdecd6b9ecbb17ba13147964dce55dc
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
7 years agomsm: hdcp: add response timeout and new messages for sink
Ajay Singh Parmar [Tue, 29 Nov 2016 23:35:54 +0000 (15:35 -0800)]
msm: hdcp: add response timeout and new messages for sink

As per hdcp 2.2 specifications, send the stream type message
to sink at a specified address in case sink is a receiver.

Update the messages to be sent to sink with the message received
from TZ and tear down the session in case it time's out.

Also, enable encryption after stream management message
exchange for hdcp repeaters to avoid unnecessary link failures.

Change-Id: Ib77756c942abfbdd6e1522a3238d5d8499496fc9
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
7 years agoInput: synaptics: check input, prevent sysfs races
Andrew Chant [Thu, 15 Sep 2016 23:19:50 +0000 (16:19 -0700)]
Input: synaptics: check input, prevent sysfs races

concurrent sysfs calls on the fw updater can cause
ugly race conditions.  Return EBUSY on concurrent sysfs calls.

For sysfs calls which generate deferred work, prevent
the deferred work from running concurrently with other
sysfs calls.

Also check that ext_data_source is appropriately sized
and allocated, based on a patch by
Gengjia Chen (chengjia4574@gmail.com).

Signed-off-by: Andrew Chant <achant@google.com>
Change-Id:I5bbe4992f3fd2d23db288296eaeb61f5831098e9
Bug: 30799828
Bug: 31252388
Git-repo: https://android.googlesource.com/kernel/msm.git
Git-commit: 287ce2ccfefe68067c1f9f5175b6664bf7397fe6
Signed-off-by: Srinivasa Rao Kuppala <srkupp@codeaurora.org>
7 years agoMerge "ARM: dts: msm: Add qseecom device node for msmfalcon"
Linux Build Service Account [Thu, 1 Dec 2016 00:28:03 +0000 (16:28 -0800)]
Merge "ARM: dts: msm: Add qseecom device node for msmfalcon"

7 years agomsm: mdss: dp: set crypto clock rate
Ajay Singh Parmar [Tue, 29 Nov 2016 22:57:43 +0000 (14:57 -0800)]
msm: mdss: dp: set crypto clock rate

Crypto clock is needed for HDCP 1.x/2.x encryption. If not set,
it may result in link integrity failure as source and sink may
go out of synchronization. Set the crypto clock rate as per
hardware recommendations.

Change-Id: I768b3390fbe4728be285424d0ce27981e1a5d6cb
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
7 years agomsm: mdss: dp: hdcp 2.2: add support for interrupt handling
Ajay Singh Parmar [Tue, 29 Nov 2016 23:23:53 +0000 (15:23 -0800)]
msm: mdss: dp: hdcp 2.2: add support for interrupt handling

Enable the interrupts required by hdcp 2.2 to update the hdcp 2.2
state machine as per hardware status.

Change-Id: Ib551b1fe8641203b66a31e745d5091641b4d0ae2
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
7 years agomsm ipa3: fix blocking faulty IOCTLs
Amir Levy [Mon, 28 Nov 2016 10:12:01 +0000 (12:12 +0200)]
msm ipa3: fix blocking faulty IOCTLs

This change prevents blocking IOCTLs with wrong command
number or wrong magic Number. IOCTL handler should first
check that the command is valid and only then wait for
IPA driver initializations to finish.

CRs-Fixed: 1094653
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Change-Id: I578dc96da96f7c10be51eac1f8b3c190e45dcfcf

7 years agoMerge "msm: mdss: Fix null pointer reference during debug init"
Linux Build Service Account [Wed, 30 Nov 2016 13:41:00 +0000 (05:41 -0800)]
Merge "msm: mdss: Fix null pointer reference during debug init"

7 years agoMerge "msm: mdss: Add HFP_CALC_CLK way to switch frame rate"
Linux Build Service Account [Wed, 30 Nov 2016 13:40:59 +0000 (05:40 -0800)]
Merge "msm: mdss: Add HFP_CALC_CLK way to switch frame rate"

7 years agoMerge "msm: mdss: change error return value for lineptr sysfs entries"
Linux Build Service Account [Wed, 30 Nov 2016 13:40:58 +0000 (05:40 -0800)]
Merge "msm: mdss: change error return value for lineptr sysfs entries"

7 years agoMerge "msm: crypto: set CLR_CNTXT bit for crypto operations"
Linux Build Service Account [Wed, 30 Nov 2016 13:40:57 +0000 (05:40 -0800)]
Merge "msm: crypto: set CLR_CNTXT bit for crypto operations"

7 years agoMerge "ARM: dts: msm: Camera configuration for msmfalcon interposer"
Linux Build Service Account [Wed, 30 Nov 2016 13:40:55 +0000 (05:40 -0800)]
Merge "ARM: dts: msm: Camera configuration for msmfalcon interposer"

7 years agoMerge "ARM: dts: msm: Add property to support multiple sensor"
Linux Build Service Account [Wed, 30 Nov 2016 13:40:54 +0000 (05:40 -0800)]
Merge "ARM: dts: msm: Add property to support multiple sensor"

7 years agoMerge "ARM: dts: msm: Add actuator and flash src for msm8998 qrd skuk board"
Linux Build Service Account [Wed, 30 Nov 2016 13:40:54 +0000 (05:40 -0800)]
Merge "ARM: dts: msm: Add actuator and flash src for msm8998 qrd skuk board"

7 years agoMerge "msm: isp: Add support to multipass offline ISP"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:50 +0000 (16:18 -0800)]
Merge "msm: isp: Add support to multipass offline ISP"

7 years agoMerge "msm: camera: sensor: Validate i2c_frq_mode in msm_cci_get_clk_rates"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:49 +0000 (16:18 -0800)]
Merge "msm: camera: sensor: Validate i2c_frq_mode in msm_cci_get_clk_rates"

7 years agoMerge "msm: camera: isp: Change declaration for VFE clock"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:48 +0000 (16:18 -0800)]
Merge "msm: camera: isp: Change declaration for VFE clock"

7 years agoMerge "msm: kgsl: Update ringbuffer timer when preemption completes"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:47 +0000 (16:18 -0800)]
Merge "msm: kgsl: Update ringbuffer timer when preemption completes"

7 years agoMerge "ARM: dts: msm: Add msm-core device for msmfalcon"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:46 +0000 (16:18 -0800)]
Merge "ARM: dts: msm: Add msm-core device for msmfalcon"

7 years agoMerge "ARM: dts: msm: add demo battery profile to msm8998 MTP"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:45 +0000 (16:18 -0800)]
Merge "ARM: dts: msm: add demo battery profile to msm8998 MTP"

7 years agoMerge "ARM: dts: msm: add a demo battery profile for pmi8998 FG"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:44 +0000 (16:18 -0800)]
Merge "ARM: dts: msm: add a demo battery profile for pmi8998 FG"

7 years agoMerge "msm: cpp: Fix for buffer overflow in cpp."
Linux Build Service Account [Wed, 30 Nov 2016 00:18:43 +0000 (16:18 -0800)]
Merge "msm: cpp: Fix for buffer overflow in cpp."

7 years agomsm: mdss: hdcp_1x: update hdcp state on link integrity failures
Ajay Singh Parmar [Tue, 29 Nov 2016 23:45:14 +0000 (15:45 -0800)]
msm: mdss: hdcp_1x: update hdcp state on link integrity failures

In case of link integrity failures reported by sink, tear down
the hdcp session. Complete any thread waiting for a response
from sink as part of hdcp protocol to avoid unnecessary delays
in starting new hdcp session.

Change-Id: I0afc56e0177ceccf76b717a483584f7ad5055fe1
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
7 years agomsm: mdss: Fix null pointer reference during debug init
Jayant Shekhar [Tue, 12 Jul 2016 06:01:59 +0000 (11:31 +0530)]
msm: mdss: Fix null pointer reference during debug init

Some targets doesn't seem to have vbif_nrt_phys in dtsi
file but we still register the debug node for vbif_nrt_reg
and off without checking whether it exists or not. Ensure
this is checked to avoid null pointer reference.

Change-Id: Icce8823f80e586bc4827d8db18dceb2fb866c2f9
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
7 years agomsm: mdss: Add HFP_CALC_CLK way to switch frame rate
feifanz [Fri, 17 Jun 2016 02:54:03 +0000 (10:54 +0800)]
msm: mdss: Add HFP_CALC_CLK way to switch frame rate

Add support to switch non-standard framerate.To achieve this,
first map the fps to standard fps and then tune pixel clock
based non-standard framerate. Panel porches might need update
before pixel clock tuning based on standard framerate mapping.

CRs-fixed: 1032036
Change-Id: I49995875338cd2a3b57e88753cfda1bfa97910dd
Signed-off-by: feifanz <feifanz@codeaurora.org>
Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org>
7 years agomsm: mdss: Access DSI registers before turning off clock
Sandeep Panda [Tue, 17 May 2016 10:02:40 +0000 (15:32 +0530)]
msm: mdss: Access DSI registers before turning off clock

BTA complete interrupt comes and turns off the clocks. In another
thread we read the panel status and DSI ack returns error. In the
error condition we are trying to read some DSI registers even
when the clocks are turned off.

Change-Id: Ica77c16f3cf4b69f46c9003bb299c6413e199468
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
7 years agomsm: mdss: change error return value for lineptr sysfs entries
Krishna Chaitanya Devarakonda [Thu, 30 Jun 2016 14:01:12 +0000 (19:31 +0530)]
msm: mdss: change error return value for lineptr sysfs entries

Changing the error return value for lineptr sysfs entries, when
the sysfs operation is not allowed. Returning EAGAIN might make
the verification tests to continuously query the sysfs nodes, or
block it. Returning EPERM will fail the query, which is expected.

Change-Id: I43500c07a318da9e2624a1631134228ad45e1cc7
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
7 years agomsm: kgsl: Update ringbuffer timer when preemption completes
Harshdeep Dhatt [Tue, 22 Nov 2016 23:14:44 +0000 (16:14 -0700)]
msm: kgsl: Update ringbuffer timer when preemption completes

Ringbuffer timer should always be reset whenever we finish
preempting to that ringbuffer. Currently, there is a case where
wptr in the hardware and the kgsl are identical and thus
the timer isn't reset. Reset the timer regardless if they are
identical or not.
There is one special case when we shouldn't reset the timer.
This happens when we try to figure out next ringbuffer to preempt
but the next ringbuffer is the same one as current. In that case,
if nothing new got submitted to this ringbuffer, then don't reset
the timer.

Change-Id: I6b5aea46f1769021b39ba6e135bef780719a92e7
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
7 years agoMerge "Crash due to mutex genl_lock called from RCU context"
Linux Build Service Account [Tue, 29 Nov 2016 15:44:09 +0000 (07:44 -0800)]
Merge "Crash due to mutex genl_lock called from RCU context"

7 years agoMerge "qpnp-fg-gen3: Add support to configure auto recharge voltage"
Linux Build Service Account [Tue, 29 Nov 2016 15:44:08 +0000 (07:44 -0800)]
Merge "qpnp-fg-gen3: Add support to configure auto recharge voltage"

7 years agoMerge "sched: Disable interrupts while holding related_thread_group_lock"
Linux Build Service Account [Tue, 29 Nov 2016 15:44:07 +0000 (07:44 -0800)]
Merge "sched: Disable interrupts while holding related_thread_group_lock"

7 years agoMerge "clk: fix critical clock locking"
Linux Build Service Account [Tue, 29 Nov 2016 15:44:05 +0000 (07:44 -0800)]
Merge "clk: fix critical clock locking"

7 years agoMerge "clk: Provide OF helper to mark clocks as CRITICAL"
Linux Build Service Account [Tue, 29 Nov 2016 15:44:05 +0000 (07:44 -0800)]
Merge "clk: Provide OF helper to mark clocks as CRITICAL"

7 years agoMerge "usb: gadget: Notify QTI upon cable connect for DPL"
Linux Build Service Account [Tue, 29 Nov 2016 15:44:00 +0000 (07:44 -0800)]
Merge "usb: gadget: Notify QTI upon cable connect for DPL"

7 years agoARM: dts: msm: Add qseecom device node for msmfalcon
Brahmaji K [Tue, 4 Oct 2016 09:07:06 +0000 (14:37 +0530)]
ARM: dts: msm: Add qseecom device node for msmfalcon

Add qseecom device node with all the necessary parameters,
to enable qseecom driver on msmfalcon.

Change-Id: Ib29962ebc7427391d7c0e355fa46156d2a8d15e5
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
7 years agoMerge "net: add SOCK_RCU_FREE socket flag"
Linux Build Service Account [Tue, 29 Nov 2016 07:58:04 +0000 (23:58 -0800)]
Merge "net: add SOCK_RCU_FREE socket flag"

7 years agoMerge "ARM: dts: msm: Remove msm_bus bandwidth vote for msm8998"
Linux Build Service Account [Tue, 29 Nov 2016 07:58:03 +0000 (23:58 -0800)]
Merge "ARM: dts: msm: Remove msm_bus bandwidth vote for msm8998"

7 years agoMerge "msm: mdss: dp: Fix PD compliance issues"
Linux Build Service Account [Tue, 29 Nov 2016 07:58:02 +0000 (23:58 -0800)]
Merge "msm: mdss: dp: Fix PD compliance issues"

7 years agoMerge "msm: mdss: hdcp_1x: add cp_irq support"
Linux Build Service Account [Tue, 29 Nov 2016 07:58:01 +0000 (23:58 -0800)]
Merge "msm: mdss: hdcp_1x: add cp_irq support"

7 years agoMerge "msm: sde: Force setting SDE rotator clock even rate is the same"
Linux Build Service Account [Tue, 29 Nov 2016 07:58:00 +0000 (23:58 -0800)]
Merge "msm: sde: Force setting SDE rotator clock even rate is the same"

7 years agoMerge "msm: mdss: Remove backlight min level checks during backlight scaling"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:59 +0000 (23:57 -0800)]
Merge "msm: mdss: Remove backlight min level checks during backlight scaling"

7 years agoMerge "diag: Set in_busy only after initialization of read buffers"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:57 +0000 (23:57 -0800)]
Merge "diag: Set in_busy only after initialization of read buffers"

7 years agoMerge "sched/core: Do not free task while holding rq lock"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:56 +0000 (23:57 -0800)]
Merge "sched/core: Do not free task while holding rq lock"

7 years agoMerge "ARM: dts: msm: remove msm8998-mtp reference for msm8998 QRD device"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:56 +0000 (23:57 -0800)]
Merge "ARM: dts: msm: remove msm8998-mtp reference for msm8998 QRD device"

7 years agoMerge "clk: WARN_ON about to disable a critical clock"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:54 +0000 (23:57 -0800)]
Merge "clk: WARN_ON about to disable a critical clock"

7 years agoMerge "mdss: display-port: fix MSA settings for 5.4 Ghz link rate"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:53 +0000 (23:57 -0800)]
Merge "mdss: display-port: fix MSA settings for 5.4 Ghz link rate"

7 years agoMerge "ARM: dts: msm: Add bluetooth node for WCN3990 in msm8998 QRD SKUK"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:47 +0000 (23:57 -0800)]
Merge "ARM: dts: msm: Add bluetooth node for WCN3990 in msm8998 QRD SKUK"

7 years agoMerge "ARM: dts: msm: Add bluetooth node for WCN3990 in msm8998 QRD VR1"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:47 +0000 (23:57 -0800)]
Merge "ARM: dts: msm: Add bluetooth node for WCN3990 in msm8998 QRD VR1"

7 years agoMerge "clk: msm: Add clock_debug_print_enabled for common clock"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:45 +0000 (23:57 -0800)]
Merge "clk: msm: Add clock_debug_print_enabled for common clock"

7 years agoMerge "adreno_tz: Fix divide by zero problem in gpu_load_show()"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:44 +0000 (23:57 -0800)]
Merge "adreno_tz: Fix divide by zero problem in gpu_load_show()"

7 years agoMerge "msm: camera: ispif: Ratelimit message"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:43 +0000 (23:57 -0800)]
Merge "msm: camera: ispif: Ratelimit message"

7 years agoMerge "ARM: dts: msm: Modify ACD_EXTINT_CFG value for msm8998 v2"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:36 +0000 (23:57 -0800)]
Merge "ARM: dts: msm: Modify ACD_EXTINT_CFG value for msm8998 v2"

7 years agoMerge "msm: mdss: fix intf_num in irq enable/disable for CWB"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:35 +0000 (23:57 -0800)]
Merge "msm: mdss: fix intf_num in irq enable/disable for CWB"

7 years agoMerge "defconfig: msm: Add the perf config for msmfalcon target"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:33 +0000 (23:57 -0800)]
Merge "defconfig: msm: Add the perf config for msmfalcon target"

7 years agoMerge "ARM: dts: msm: update clock regulator nodes for msm8998 interposer"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:33 +0000 (23:57 -0800)]
Merge "ARM: dts: msm: update clock regulator nodes for msm8998 interposer"

7 years agoMerge "qos: Register irq notify after adding the qos request"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:32 +0000 (23:57 -0800)]
Merge "qos: Register irq notify after adding the qos request"

7 years agoMerge "wil6210: support FTM/AOA while unassociated"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:31 +0000 (23:57 -0800)]
Merge "wil6210: support FTM/AOA while unassociated"

7 years agoMerge "ARM: dts: msm: Add VADC_HC and BTM channels for QVR8998"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:30 +0000 (23:57 -0800)]
Merge "ARM: dts: msm: Add VADC_HC and BTM channels for QVR8998"

7 years agoMerge "ARM: dts: msm: Add VADC_HC and BTM channels for QRD8998 SKUK"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:29 +0000 (23:57 -0800)]
Merge "ARM: dts: msm: Add VADC_HC and BTM channels for QRD8998 SKUK"

7 years agoMerge "diag: Fix possible access to freed variable"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:28 +0000 (23:57 -0800)]
Merge "diag: Fix possible access to freed variable"

7 years agoMerge "arm64: avoid segfault on el0 cache maintenance"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:26 +0000 (23:57 -0800)]
Merge "arm64: avoid segfault on el0 cache maintenance"

7 years agoMerge "msm: mdss: Fix potential deferencing of null pointer"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:25 +0000 (23:57 -0800)]
Merge "msm: mdss: Fix potential deferencing of null pointer"

7 years agoMerge "msm: mdss: hdmi: fix potential null deference errors"
Linux Build Service Account [Tue, 29 Nov 2016 07:56:44 +0000 (23:56 -0800)]
Merge "msm: mdss: hdmi: fix potential null deference errors"

7 years agoARM: dts: msm: Camera configuration for msmfalcon interposer
Shankar Ravi [Wed, 2 Nov 2016 12:19:42 +0000 (17:49 +0530)]
ARM: dts: msm: Camera configuration for msmfalcon interposer

1. Voltage regulator changes for rear camera
   and eeprom.
2. Gpio changes for rear camera and eeprom.

Change-Id: Ie59a748d016211d5ddbab2593ec310a313690f9e
Signed-off-by: Shankar Ravi <rshankar@codeaurora.org>
7 years agodiag: Set in_busy only after initialization of read buffers
Mohit Aggarwal [Thu, 24 Nov 2016 08:18:12 +0000 (13:48 +0530)]
diag: Set in_busy only after initialization of read buffers

Currently, there is a possibility that read buffers are
not initialized but diag ends up marking buffers busy and
stops reading from peripheral, which leads to port loss.
Also reset the in_busy variable for the buffer that reads
the data from smd channel when diag smd state is closed.

CRs-Fixed: 1093989
Change-Id: I1990d0ded5a212c9185c149ac297a3630d64bc59
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
7 years agoARM: dts: msm: Add actuator and flash src for msm8998 qrd skuk board
Pengfei Liu [Mon, 28 Nov 2016 02:50:56 +0000 (10:50 +0800)]
ARM: dts: msm: Add actuator and flash src for msm8998 qrd skuk board

Add actuator src and flash src of camera0 node for
support focus and flash function on msm8998 qrd skuk board.

Change-Id: I92ed864aedfdd38c8670e08fb35a6545e8abb142
Signed-off-by: Pengfei Liu <pengfeiliu@codeaurora.org>
7 years agoARM: dts: msm: Remove msm_bus bandwidth vote for msm8998
Yuanyuan Liu [Mon, 28 Nov 2016 23:17:46 +0000 (15:17 -0800)]
ARM: dts: msm: Remove msm_bus bandwidth vote for msm8998

Remove msm_bus bandwidth vote from DT for msm8998
as WLAN FW will take care of it.

CRs-Fixed: 1094917
Change-Id: Ied5dcb9e3283dc2ec7f5fd6f03465b070f989d8b
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
7 years agoARM: dts: msm: remove msm8998-mtp reference for msm8998 QRD device
Runmin Wang [Mon, 28 Nov 2016 23:19:21 +0000 (15:19 -0800)]
ARM: dts: msm: remove msm8998-mtp reference for msm8998 QRD device

Remove redundant inclusion of mtp dtsi in msm8998-qrd.dtsi file.

CRs-Fixed: 1094871
Change-Id: Ibc9e99fd69cbd30e449d0fec728d71a1fa7f162c
Signed-off-by: Runmin Wang <runminw@codeaurora.org>