Commit graph

578378 commits

Author SHA1 Message Date
Abhijit Kulkarni
956068cb04 msm: mdss: advertize hdr support on msm8998
This change advertizes hdr feature support to
user space driver on msm8998.

Change-Id: I6b81f64d14e472b563e2ee3ea86198be82c58920
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2016-12-01 17:33:39 -08:00
Linux Build Service Account
c2cbb11bf9 Merge "msm: hdcp: add response timeout and new messages for sink" 2016-12-01 09:23:49 -08:00
Linux Build Service Account
bfaad619ea Merge "Input: synaptics: check input, prevent sysfs races" 2016-12-01 09:23:48 -08:00
Linux Build Service Account
6b90aa18be Merge "mmc: core: check if CQE is already disabled before halt/unhalt" 2016-12-01 09:23:47 -08:00
Linux Build Service Account
e7211aacd5 Merge "msm: mdss: add support to set mdp clock rate before enable" 2016-12-01 09:23:46 -08:00
Linux Build Service Account
27d5c36477 Merge "msm ipa3: fix blocking faulty IOCTLs" 2016-12-01 09:23:45 -08:00
Linux Build Service Account
42335fc5e3 Merge "mmc: block: send CMD13 when a response error detected in CQ mode" 2016-12-01 09:23:44 -08:00
Sahitya Tummala
9b97ea99ee 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>
2016-11-30 21:49:31 -08:00
Sahitya Tummala
118ca5d727 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>
2016-11-30 21:47:22 -08:00
Sahitya Tummala
53ed8685f6 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>
2016-11-30 21:44:25 -08:00
Ajay Singh Parmar
327a852ba7 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>
2016-11-30 21:09:56 -08:00
Andrew Chant
ae39f47e9b 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>
2016-12-01 10:28:16 +05:30
Linux Build Service Account
a27b2f1789 Merge "ARM: dts: msm: Add qseecom device node for msmfalcon" 2016-11-30 16:28:03 -08:00
Amir Levy
c07808d8db 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
2016-11-30 09:57:33 -08:00
Linux Build Service Account
0380dc86d2 Merge "msm: mdss: Fix null pointer reference during debug init" 2016-11-30 05:40:59 -08:00
Linux Build Service Account
8b070723fe Merge "msm: mdss: Add HFP_CALC_CLK way to switch frame rate" 2016-11-30 05:40:58 -08:00
Linux Build Service Account
3efbc80d99 Merge "msm: mdss: change error return value for lineptr sysfs entries" 2016-11-30 05:40:57 -08:00
Linux Build Service Account
0f596458d4 Merge "msm: crypto: set CLR_CNTXT bit for crypto operations" 2016-11-30 05:40:56 -08:00
Linux Build Service Account
36cdec931f Merge "ARM: dts: msm: Camera configuration for msmfalcon interposer" 2016-11-30 05:40:55 -08:00
Linux Build Service Account
a66bf9b8c5 Merge "ARM: dts: msm: Add property to support multiple sensor" 2016-11-30 05:40:54 -08:00
Linux Build Service Account
86229379ea Merge "ARM: dts: msm: Add actuator and flash src for msm8998 qrd skuk board" 2016-11-30 05:40:53 -08:00
Linux Build Service Account
d43553d47d Merge "msm: isp: Add support to multipass offline ISP" 2016-11-29 16:18:49 -08:00
Linux Build Service Account
a8e19f38fa Merge "msm: camera: sensor: Validate i2c_frq_mode in msm_cci_get_clk_rates" 2016-11-29 16:18:48 -08:00
Linux Build Service Account
9671e3c30a Merge "msm: camera: isp: Change declaration for VFE clock" 2016-11-29 16:18:47 -08:00
Linux Build Service Account
3338d5e27b Merge "msm: kgsl: Update ringbuffer timer when preemption completes" 2016-11-29 16:18:46 -08:00
Linux Build Service Account
33fe35c72b Merge "ARM: dts: msm: Add msm-core device for msmfalcon" 2016-11-29 16:18:45 -08:00
Linux Build Service Account
a0a8e0a795 Merge "ARM: dts: msm: add demo battery profile to msm8998 MTP" 2016-11-29 16:18:44 -08:00
Linux Build Service Account
bfad4eb4f0 Merge "ARM: dts: msm: add a demo battery profile for pmi8998 FG" 2016-11-29 16:18:44 -08:00
Linux Build Service Account
852e2711b3 Merge "msm: cpp: Fix for buffer overflow in cpp." 2016-11-29 16:18:42 -08:00
Jayant Shekhar
47d0c2b4a7 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>
2016-11-29 12:37:15 -08:00
feifanz
419c2b4a7c 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>
2016-11-29 12:35:47 -08:00
Sandeep Panda
b790cce49b 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>
2016-11-29 12:35:47 -08:00
Krishna Chaitanya Devarakonda
1e4b598042 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>
2016-11-29 12:35:06 -08:00
Harshdeep Dhatt
c0d96c8a76 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>
2016-11-29 09:33:09 -07:00
Linux Build Service Account
bde539edca Merge "Crash due to mutex genl_lock called from RCU context" 2016-11-29 07:44:08 -08:00
Linux Build Service Account
1b8c9dabd1 Merge "qpnp-fg-gen3: Add support to configure auto recharge voltage" 2016-11-29 07:44:07 -08:00
Linux Build Service Account
fbfd0301be Merge "sched: Disable interrupts while holding related_thread_group_lock" 2016-11-29 07:44:06 -08:00
Linux Build Service Account
a95f91f51a Merge "clk: fix critical clock locking" 2016-11-29 07:44:05 -08:00
Linux Build Service Account
925ce43342 Merge "clk: Provide OF helper to mark clocks as CRITICAL" 2016-11-29 07:44:04 -08:00
Linux Build Service Account
66a95af435 Merge "usb: gadget: Notify QTI upon cable connect for DPL" 2016-11-29 07:44:00 -08:00
Brahmaji K
52ab253870 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>
2016-11-29 16:38:05 +05:30
Linux Build Service Account
2be8fc81c3 Merge "net: add SOCK_RCU_FREE socket flag" 2016-11-28 23:58:04 -08:00
Linux Build Service Account
e8e6638a9e Merge "ARM: dts: msm: Remove msm_bus bandwidth vote for msm8998" 2016-11-28 23:58:03 -08:00
Linux Build Service Account
9466e2c254 Merge "msm: mdss: dp: Fix PD compliance issues" 2016-11-28 23:58:02 -08:00
Linux Build Service Account
a16b037ec0 Merge "msm: mdss: hdcp_1x: add cp_irq support" 2016-11-28 23:58:00 -08:00
Linux Build Service Account
36b534d1ff Merge "msm: sde: Force setting SDE rotator clock even rate is the same" 2016-11-28 23:57:59 -08:00
Linux Build Service Account
f2f8e391d8 Merge "msm: mdss: Remove backlight min level checks during backlight scaling" 2016-11-28 23:57:58 -08:00
Linux Build Service Account
d7ab29dbb6 Merge "diag: Set in_busy only after initialization of read buffers" 2016-11-28 23:57:57 -08:00
Linux Build Service Account
46c5a88fdf Merge "sched/core: Do not free task while holding rq lock" 2016-11-28 23:57:56 -08:00
Linux Build Service Account
c62f791a9d Merge "ARM: dts: msm: remove msm8998-mtp reference for msm8998 QRD device" 2016-11-28 23:57:55 -08:00