OSDN Git Service
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>
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"
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"
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"
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"
Linux Build Service Account [Wed, 30 Nov 2016 13:40:55 +0000 (05:40 -0800)]
Merge "ARM: dts: msm: Camera configuration for msmfalcon interposer"
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"
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"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:50 +0000 (16:18 -0800)]
Merge "msm: isp: Add support to multipass offline ISP"
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"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:48 +0000 (16:18 -0800)]
Merge "msm: camera: isp: Change declaration for VFE clock"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:47 +0000 (16:18 -0800)]
Merge "msm: kgsl: Update ringbuffer timer when preemption completes"
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"
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"
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"
Linux Build Service Account [Wed, 30 Nov 2016 00:18:43 +0000 (16:18 -0800)]
Merge "msm: cpp: Fix for buffer overflow in cpp."
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>
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>
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>
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>
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>
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"
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"
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"
Linux Build Service Account [Tue, 29 Nov 2016 15:44:05 +0000 (07:44 -0800)]
Merge "clk: fix critical clock locking"
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"
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"
Linux Build Service Account [Tue, 29 Nov 2016 07:58:04 +0000 (23:58 -0800)]
Merge "net: add SOCK_RCU_FREE socket flag"
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"
Linux Build Service Account [Tue, 29 Nov 2016 07:58:02 +0000 (23:58 -0800)]
Merge "msm: mdss: dp: Fix PD compliance issues"
Linux Build Service Account [Tue, 29 Nov 2016 07:58:01 +0000 (23:58 -0800)]
Merge "msm: mdss: hdcp_1x: add cp_irq support"
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"
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"
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"
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"
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"
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"
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"
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"
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"
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"
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()"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:43 +0000 (23:57 -0800)]
Merge "msm: camera: ispif: Ratelimit message"
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"
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"
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"
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"
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"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:31 +0000 (23:57 -0800)]
Merge "wil6210: support FTM/AOA while unassociated"
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"
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"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:28 +0000 (23:57 -0800)]
Merge "diag: Fix possible access to freed variable"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:26 +0000 (23:57 -0800)]
Merge "arm64: avoid segfault on el0 cache maintenance"
Linux Build Service Account [Tue, 29 Nov 2016 07:57:25 +0000 (23:57 -0800)]
Merge "msm: mdss: Fix potential deferencing of null pointer"
Linux Build Service Account [Tue, 29 Nov 2016 07:56:44 +0000 (23:56 -0800)]
Merge "msm: mdss: hdmi: fix potential null deference errors"
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>
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>
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>
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>
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>
Linux Build Service Account [Mon, 28 Nov 2016 22:56:48 +0000 (14:56 -0800)]
Merge "qseecom: fix incomplete error handling for several functions"
Linux Build Service Account [Mon, 28 Nov 2016 22:56:47 +0000 (14:56 -0800)]
Merge "Revert "scsi: ufs: disable ah8 during suspend and enable it on resume""
Linux Build Service Account [Mon, 28 Nov 2016 22:56:45 +0000 (14:56 -0800)]
Merge "usb: pd: pdphy: Update Tx Trim setting"
Linux Build Service Account [Mon, 28 Nov 2016 22:56:44 +0000 (14:56 -0800)]
Merge "USB: dwc3-msm: clear in_restart flag always in restart work"
Linux Build Service Account [Mon, 28 Nov 2016 22:56:43 +0000 (14:56 -0800)]
Merge "USB: dwc3-msm: Fix issue related to error recovery for ERRATIC ERROR"
Linux Build Service Account [Mon, 28 Nov 2016 22:56:42 +0000 (14:56 -0800)]
Merge "msm: mdss: Fix disabling destination scalar using 4K panel"
Linux Build Service Account [Mon, 28 Nov 2016 22:56:41 +0000 (14:56 -0800)]
Merge "msm: mdss: fix some potential issues in HDMI driver"
Linux Build Service Account [Mon, 28 Nov 2016 22:56:40 +0000 (14:56 -0800)]
Merge "msm: mdss: add support to change HDMI PLL PPM"
Linux Build Service Account [Mon, 28 Nov 2016 22:56:38 +0000 (14:56 -0800)]
Merge "ARM: dts: msm: add UFS_RESET pin ctrl data for msm8998"
Linux Build Service Account [Mon, 28 Nov 2016 22:56:37 +0000 (14:56 -0800)]
Merge "pinctrl: qcom: add UFS_RESET pin data for msm8998"
Linux Build Service Account [Mon, 28 Nov 2016 22:56:35 +0000 (14:56 -0800)]
Merge "smb-lib: fix vbus-error handler"
Linux Build Service Account [Mon, 28 Nov 2016 22:56:34 +0000 (14:56 -0800)]
Merge "msm: mdss: add atraces to track switch cmd delays"
Osvaldo Banuelos [Tue, 15 Nov 2016 18:35:01 +0000 (10:35 -0800)]
ARM: dts: msm: Modify ACD_EXTINT_CFG value for msm8998 v2
Modify ACD_EXTINT_CFG so that ACD calibrates every time OSM toggles
full freq signal. This is recommended by hardware guidelines to
prevent ACD from mitigating when CPU clock frequency is boosted.
CRs-Fixed:
1088429
Change-Id: I07856ea8b332dbf12654fdd0b5d5518355f1c350
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Osvaldo Banuelos [Thu, 10 Nov 2016 02:26:44 +0000 (18:26 -0800)]
ARM: dts: msm: add mem-acc thresholds for msm8998 v2
Add mem-acc threshold and crossover voltage properties to the
VDD_APC0/1 CPR devices and a matching mem-acc crossover voltage
to the OSM device. Update the APM threshold voltage
to 800 mV for both clusters.
CRs-Fixed:
1088429
Change-Id: I747fd7665401803998b2824ace6dedbc5797b17f
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
David Collins [Wed, 9 Nov 2016 02:38:34 +0000 (18:38 -0800)]
clk: msm: clock-osm: add support for MEM ACC threshold voltage
Add support for configuring the highest memory accelerator
(MEM ACC) threshold voltage. This threshold voltage is used at
runtime to determine which CPRh virtual corner to program into
the OSM sequencer registers in place of the fixed MEM ACC
configuration specified in the OSM LUT.
CRs-Fixed:
1088429
Change-Id: Ida29eaca139c1ddd6439d11a8bd51526366f2a34
Signed-off-by: David Collins <collinsd@codeaurora.org>
David Collins [Wed, 9 Nov 2016 01:05:09 +0000 (17:05 -0800)]
regulator: cprh-regulator: add support for MEM ACC threshold voltage
Add support for configuring the memory accelerator (MEM ACC)
threshold voltage and the MEM ACC crossover voltage.
The threshold voltage is used to restrict the floor to ceiling
voltage range of all corners so that they cannot cross the
the MEM ACC threshold voltage due to CPR operation. The
crossover voltage is set when switching the MEM ACC
configuration.
If specified, the APM and MEM ACC crossover voltages are added
to the array of corners after all true corners. If both are
specified, then the APM crossover corner is added before the MEM
ACC crossover corner (i.e. last corner = MEM ACC crossover and
second to last corner = APM crossover).
CRs-Fixed:
1088429
Change-Id: I2b9b746071579ba9d4bcdcfb6cb755ca08a73182
Signed-off-by: David Collins <collinsd@codeaurora.org>
Eric Dumazet [Sat, 26 Nov 2016 05:47:40 +0000 (22:47 -0700)]
Crash due to mutex genl_lock called from RCU context
Grabbing the mutex should not be done from netlink_sock_destruct() but
from netlink_release()
CRs-Fixed:
1094434
Change-Id: I69ae0d8589a0878b9758619893848afc272179c5
Signed-off-by: Eric Dumazet <edumazet@google.com>
Patch-mainline: linux-netdev @ 11/26/16, 04:54
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Shubhraprakash Das [Tue, 15 Nov 2016 03:39:54 +0000 (19:39 -0800)]
msm: camera: ispif: Ratelimit message
Ratelimit the overflow message to prevent WD bark.
Change-Id: Icb098d6f3bf7ff309a315b05c571df8c870f27a2
CRs-Fixed:
1086892
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
Eric Dumazet [Fri, 1 Apr 2016 15:52:12 +0000 (08:52 -0700)]
net: add SOCK_RCU_FREE socket flag
We want a generic way to insert an RCU grace period before socket
freeing for cases where RCU_SLAB_DESTROY_BY_RCU is adding too
much overhead.
SLAB_DESTROY_BY_RCU strict rules force us to take a reference
on the socket sk_refcnt, and it is a performance problem for UDP
encapsulation, or TCP synflood behavior, as many CPUs might
attempt the atomic operations on a shared sk_refcnt
UDP sockets and TCP listeners can set SOCK_RCU_FREE so that their
lookup can use traditional RCU rules, without refcount changes.
They can set the flag only once hashed and visible by other cpus.
CRs-Fixed:
1094434
Change-Id: Ib4967b801cc5b48c8ac4793b7a03fbfafba2234a
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Tom Herbert <tom@herbertland.com>
Tested-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit:
a4298e4522d687a79af8f8fbb7eca68399ab2d81
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[subashab@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Osvaldo Banuelos [Tue, 1 Nov 2016 16:41:59 +0000 (09:41 -0700)]
ARM: dts: msm: support perf cluster speed bins 2 and 3 for msm8998 v2
Add support for addtional performance cluster speed bins. Speed bin
fuse 2 and 3 devices can run with a quad core CPU fmax of 2.361 GHz and
single core CPU fmax of 2.457 GHz.
CRs-Fixed:
1086294
Change-Id: I08c3b8bc7e4d40c80be588f05b9439b339f46afc
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Osvaldo Banuelos [Mon, 14 Nov 2016 21:27:34 +0000 (13:27 -0800)]
ARM: dts: msm: add support for VDD_APC CPR speed bins 2/3 for msm8998v2
Update the VDD_APC0 and VDD_APC1 CPR devices to support two additional
speed bins. This allows CPR operation on bin 2 and 3 parts which have
different performance cluster frequency configurations compared to bin
0 and 1.
CRs-Fixed:
1086294
Change-Id: Id0854f1094ee3e4d4b1961f98a77003f7bcca1da
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Osvaldo Banuelos [Sat, 29 Oct 2016 03:12:30 +0000 (20:12 -0700)]
clk: msm: osm: refactor logic to handle multiple boost frequencies
The OSM LUT may have duplicate frequencies between one
and four core count compatible frequencies. If the selected
frequency exists for both single and quad core, select the quad
core frequency by default. Also, expose only 4-core frequencies
and the absolute maximum frequency to clock consumers.
CRs-Fixed:
1086294
Change-Id: I2424bfdfd381241d307862113451082a9727a903
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
David Collins [Wed, 9 Nov 2016 00:06:56 +0000 (16:06 -0800)]
clk: msm: clock-osm: correct OSM sequencer register virtual corner writes
The values written into OSM sequencer registers #55 to #58
correspond to indexes into the CPRh virtual corner table not
indexes into the OSM table. Correct this.
Change-Id: I02baca9a410f08c82c34fe82925c0ead22111e5b
CRs-Fixed:
1086294
Signed-off-by: David Collins <collinsd@codeaurora.org>
Osvaldo Banuelos [Sat, 5 Nov 2016 00:52:43 +0000 (17:52 -0700)]
ARM: dts: msm: update L2 SAW configuration for msm8998 v2
The maximum VDD_APC1 voltage has been increased to 1.136 V
for msm8998 v2. Update the AVS limits of L2 SAW and the
CPR aging reference voltage to reflect this.
CRs-Fixed:
1086294
Change-Id: I863bee32e1e66d9656fc70748628b25606b59e47
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Osvaldo Banuelos [Fri, 4 Nov 2016 19:01:36 +0000 (12:01 -0700)]
regulator: cprh-kbss-regulator: increase supported fuse combo count
Support a total of 32 fuse combos to cater to MSM8998
parts blown with speed-bins 2 and 3.
CRs-Fixed:
1086294
Change-Id: Id03a418f66c9cbb51c2be6904f682d15e82f78c8
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Osvaldo Banuelos [Mon, 7 Nov 2016 18:12:41 +0000 (10:12 -0800)]
ARM: dts: msm: Update VDD_APC CPR voltages for msm8998 v2
Update the VDD_APC0/1 max floor to ceiling range as well
as the open-loop and closed-loop Nominal fuse corner
adjustments to match the latest hardware characterization.
CRs-Fixed:
1086294
Change-Id: I920175ab16d5a3fc5cd3f117bba3fd1d37db3c5d
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Osvaldo Banuelos [Fri, 9 Sep 2016 20:42:02 +0000 (13:42 -0700)]
ARM: dts: msm: Enable ACD on msm8998 v2
Add the necessary configuration to the OSM clock device in
msm8998 v2 to initialize ACD.
Change-Id: Ibdb861a50ad654be34e14e2bcc012fdf5063acaf
CRs-Fixed:
1053383
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
Zhen Kong [Mon, 7 Nov 2016 23:39:43 +0000 (15:39 -0800)]
qseecom: fix incomplete error handling for several functions
Perform a complete or adequate check of return codes for several
functions, including __qseecom_enable_clk, ion_do_cache_op and
ion_sg_table(), used by qseecom.
Change-Id: Ib1682bdc6d3034a22586af62a3d8986c54d369d5
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Subbaraman Narayanamurthy [Tue, 15 Nov 2016 04:15:08 +0000 (20:15 -0800)]
ARM: dts: msm: add demo battery profile to msm8998 MTP
Add the demo battery profile to support 6A charging with pmi8998
on msm8998 MTP.
Change-Id: Id76ebe4a2591664d44d8003730f70defcb2899bc
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Subbaraman Narayanamurthy [Tue, 15 Nov 2016 04:13:02 +0000 (20:13 -0800)]
ARM: dts: msm: add a demo battery profile for pmi8998 FG
Clone the ascent battery profile to create a demo battery
profile to support 6A charging with pmi8998.
Change-Id: I57d33cadbe26d5298ef7149a004d14102d62f365
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Subbaraman Narayanamurthy [Thu, 17 Nov 2016 21:58:06 +0000 (13:58 -0800)]
qpnp-fg-gen3: Add support to configure auto recharge voltage
Auto recharge happens when the charging is complete and the
battery SOC or voltage had dropped below certain threshold.
Along with having an option to configure recharge SOC threshold,
a way to configure recharge voltage threshold is required. Add
it. By default, charger is configured to resume charging only
based on the signal from FG based on battery voltage.
Change-Id: I0cd6ca6679c19bbdf4ad980a22d9976396028316
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Olav Haugan [Mon, 28 Nov 2016 03:17:28 +0000 (19:17 -0800)]
sched/core: Do not free task while holding rq lock
Clearing the hmp request can cause a task to be freed. When a task is
freed the free call might wake up a kworker which will cause a
spinlock lockup (rq lock). Fix this by avoiding calling put_task_struct
when holding the rq lock.
In addition move call to clear_hmp_request out of stopper thread context
since it is not necessary to do this on the cpu being isolated.
Change-Id: Ie577db4701a88849560df385869ff7cf73695a05
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Pavankumar Kondeti [Mon, 28 Nov 2016 15:25:58 +0000 (20:55 +0530)]
sched: Disable interrupts while holding related_thread_group_lock
There is a potential deadlock condition if interrupts are enabled
while holding the related_thread_group_lock. Prevent this.
---------------- --------------------
CPU 0 CPU 1
--------------- --------------------
check_for_migration() cgroup_file_write(p)
check_for_freq_change() cgroup_attach_task(p)
send_notification() schedtune_attach(p)
read_lock(&related_thread_group_lock) sched_set_group_id(p)
raw_spin_lock_irqsave(
&p->pi_lock, flags)
write_lock_irqsave(
&related_thread_group_lock)
waiting on CPU#0
raw_spin_lock_irqsave(&rq->lock, flags)
raw_spin_unlock_irqrestore(&rq->lock, flags)
--> interrupt()
----> ttwu(p)
-------> waiting for p's pi_lock on CPU#1
Change-Id: I6f0f8f742d6e1b3ff735dcbeabd54ef101329cdf
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Taniya Das [Mon, 28 Nov 2016 07:56:48 +0000 (13:26 +0530)]
clk: msm: Add clock_debug_print_enabled for common clock
Allow clients of common clock framework to be able to use the
clock_debug_print_enable API.
Change-Id: Ia8e69dca8c0b84e4daf8ff1f4fb902d11435db76
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Taniya Das [Mon, 21 Nov 2016 08:56:31 +0000 (14:26 +0530)]
ARM: dts: msm: update clock regulator nodes for msm8998 interposer
The clock nodes require the regulator nodes to be updated for interposer,
so add the same. Also update the gfx rail regulator phandle.
Change-Id: I08580f4eb04660cd1d123065976ba9bfec61b7d8
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Venkatesh Yadav Abbarapu [Thu, 3 Nov 2016 09:40:12 +0000 (15:10 +0530)]
defconfig: msm: Add the perf config for msmfalcon target
Add the new perf configuration for msmfalcon and msmtriton.
Update the msmfalcon_defconfig also.
Change-Id: I8c3be2d0235395a338b758e4dc27a4b243bff62d
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
Wei Ding [Mon, 28 Nov 2016 01:31:57 +0000 (09:31 +0800)]
ARM: dts: msm: Add property to support multiple sensor
Add property to support multiple sensor which are same slave address
and used in the one platform.
Change-Id: Id6e648ecffd07de1fdafb6fc6187dc14e3e6e36e
Signed-off-by: Wei Ding <weiding@codeaurora.org>
Maxime Ripard [Fri, 13 May 2016 08:00:31 +0000 (10:00 +0200)]
clk: fix critical clock locking
The critical clock handling in __clk_core_init isn't taking the enable lock
before calling clk_core_enable, which in turns triggers the warning in the
lockdep_assert_held call in that function when lockep is enabled.
Add the calls to clk_enable_lock/unlock to make sure it doesn't happen.
Fixes:
32b9b1096186 ("clk: Allow clocks to be marked as CRITICAL")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
(cherry picked from commit
ef56b79b66faeeb0dc14213d3cc9e0534a960dee)
Git-commit:
ef56b79b66faeeb0dc14213d3cc9e0534a960dee
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: Ifefcbe4741ddd046755ecc24c3f2d619566c2823
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Lee Jones [Thu, 11 Feb 2016 21:19:11 +0000 (13:19 -0800)]
clk: Provide OF helper to mark clocks as CRITICAL
This call matches clocks which have been marked as critical in DT
and sets the appropriate flag. These flags can then be used to
mark the clock core flags appropriately prior to registration.
Legacy bindings requiring this feature must add the clock-critical
property to their binding descriptions, as it is not a part of
common-clock binding.
Cc: devicetree@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/
1455225554-13267-4-git-send-email-mturquette@baylibre.com
(cherry picked from commit
d56f8994b6fb928f59481fabc25bcd1c2f9bd06d)
[tdas@codeaurora.org: resolve trivial conflict]
Git-commit:
d56f8994b6fb928f59481fabc25bcd1c2f9bd06d
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: I2bf824bd2446ca87baabd31c166119d6c5c90643
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Lee Jones [Thu, 11 Feb 2016 21:19:10 +0000 (13:19 -0800)]
clk: WARN_ON about to disable a critical clock
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/
1455225554-13267-3-git-send-email-mturquette@baylibre.com
(cherry picked from commit
2e20fbf592621b2c2aeddd82e0fa3dad053cce03)
Git-commit:
2e20fbf592621b2c2aeddd82e0fa3dad053cce03
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: I88418dd25f356402219d7ff36ce791370c69114a
Signed-off-by: Taniya Das <tdas@codeaurora.org>