Enable temperature controller (TSENS) on qcs405.
Thermal clients can read from TSENS temperature sensors,
set temperature thresholds and receive notification.
Change-Id: I1b8d5d36fbab9519bc056db8fed49cf7f8afe266
Signed-off-by: Siva Kumar Akkireddi <sivaa@codeaurora.org>
Add dl_south funnel and dl_south tpdm device node, they are new HW
introduced on sm8150 platform.
Change-Id: If8a6833c73dfd0aaee792e1bd27324dc2a607722
Signed-off-by: Mulu He <muluhe@codeaurora.org>
Add fg-alg.c and fg-alg.h which can have the common software
features and algorithms that can be used by GEN4 FG driver and QG
driver later.
Change-Id: I5423b9e75c1d5eca9cbc4d9e1e229082f6007a94
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Currently, cycle_count and cycle_count_id are used to get the
cycle counter per SOC bucket. Add a string property cycle_counts
that can return all the cycle counters at once without the client
setting cycle_count_id.
Change-Id: If3014a4f865f94dc0895c1f5f7068ce936a0b62d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Since display RSCs now have their own dedicated AMC TSC,
they no longer need to repurpose a single TSC for both
wake and AMC.
Change-Id: I6aa8c32b167d58214f4965f594857d3fbc911dd7
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Include an ALC node so that we can clear its
proxy vote at late_init.
Change-Id: I4b9605ec8d6ff5f71a6cc5d6494195b53bb38d80
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Keep a small active only vote on system critical resources
on behalf of APPS processor.
Change-Id: I636714d96928c43790765b6968f83ed41b91f370
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Currently, the TLB nodes that are used for CPUSS dumping
are named L1 TLB nodes, but they are acutally L2 TLB nodes.
Update incorrect L1 TLB node names to correct L2 TLB node
names on sm8150.
Change-Id: I26846723e88ed5a2bf5a9ca8cd655ec8ec1eab1c
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This patch is a snapshot of smcinvoke driver taken from msm-4.9
commit a8117effbe0 (Merge "ARM: dts: msm: Disable GPU memory
pools for QCS605")
Change-Id: I9e2de0c464bc23c48ae8a5a90e289048b0c274ae
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
This module allows user space clients to transfer data
between external modem and host using standard file
operations.
CRs-Fixed: 2204910
Change-Id: I46af0e99a68836e50cc4da4ad3ab85e248d4af4f
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
Fix the issue with deferencing the rdev structure for
the GDSC prior to it being populated. Replace the
qcom,vote-parent-supply-voltage property with
vdd_parent-supply and use the regulator handle that's
returned from calling regulator_get for the parent
regulator directly.
Change-Id: I9a80cbeb4fd88b718e6e7509d8868d965253ae5e
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Introduce DTS files to support APQ version of SM8150 chipset.
Change-Id: Id5af8b8973fd01fb0663f4a2fcbfdc4b2857edab
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Enable SSP suspend/resume related quirk with primary USB port
on SM8150.
Change-Id: I6a0539095f5b72ba6e325cfa4d04af0249f495ad
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
USB PHY (qmp super speed phy) is unable to consistently move between
the u3 (p3)/u0(p0) states causing controller and phy link level issues
resulting in device re-enumeration. Fix the issue by forcing qmp phy to
move to P2 state always before moving to P0 from P3 state. Forcing by
phy link state is done by enabling Ux_exit_in_Px (BIT:27) and P3ExSigP2
(BIT:10) of GUSB3PIPECTL register.
Change-Id: I1edd6c77769d3139863413eed82f2b8b98b33d42
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Add support for devicetree overlay on sdmshrike target.
Change-Id: I372d4e8d5cf2940c047c466e59bf7a918801b240
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
During addfb2 ioctl, buffer is always attached to non-secure context bank.
At commit time when the plane property tells the buffer is secure
it needs to be attached and map to the secure context bank.
This change detects the context bank type and maps the buffer accordingly.
Change-Id: Icf3697b31d5ae5d217846fbee16467af55529c86
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
Update devicetree bindings for SDE RSC to match the RSC sequencer in
SM8150.
Change-Id: Ia19bc1d53497e3e5ebd8ee99bb6c56d6150977b2
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Enable sleep stats driver to report XO and system sleep statistics from
AOSS.
Change-Id: Iee8602d5538ea13d211d24a218c6eb3702398fc4
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Thermal core allows multiple governors to monitor different thermal
zones. Each governor's mitigation request shouldn't override other
governor's request. But userspace request to mitigate a cooling device
will override any previous aggregated request from kernel thermal
governors. This will not allow any userspace governor to mitigate
along with the kernel governors.
The userspace request now will be stored and aggregated with the
rest of the requests from the kernel thermal governors.
Change-Id: Ib0d55a0ee7ad8f835a5e969b7ef268d420085acf
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Add GPU thermal config for GPU junction temperature mitigation and low
temperature voltage restriction for SM8150.
Change-Id: I90276072c5dc4c5ea11e00cd66ce25949e2b2f6b
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
The CPU cooling device registration is scheduled for later execution
during probe. Due to this, the CPU cooling devices are not created in
the same order as CPU logical numbers. This could result in unexpected
behavior for thermal-engine.
Modify the driver to acquire a lock and ensure that the cooling devices
are always registered in the same order as CPU logical numbers.
Change-Id: I67dbfa8e386480fc437425386855faf2f6ebdd5d
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Add a sample thermal zone, which mitigates the cooling devices like
modem and display backlight for SM8150. This is a sample thermal zone,
which will be disabled by default.
Change-Id: I866b4c0c0b981960f9579501597d81cf258cd55f
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
A single LMH DCVSh hardware can mitigate CPUs with different clock plan
operating in a single voltage rail.
Add support in LMH DCVSh driver to treat individual CPU to have
different clock plan. Hence all the throttling frequencies are compared
against each individual CPUs.
Change-Id: I566985a45007bf6939fa315a9471bbba4e5df7de
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
* changes:
drivers: cpuidle: lpm-levels: Ignore sleep bias for isolated cpus
cpuidle: lpm-levels: Do not predict LPM for isolated cpus
cpuidle: lpm-levels: Correctly check if its okay to do cluster LPM
drivers: cpuidle: lpm-levels: Remove unused code
In a remote processor crash scenario, there is no guarantee the remote
processor sent close requests before it went into a bad state. Remove
the reference that is normally handled by the close command in the
so channel resources can be released.
Change-Id: I02980914bfb587990c3277a945193fb89e76c504
Signed-off-by: Chris Lew <clew@codeaurora.org>
For special rpmsg devices without a primary endpoint there is nothing to
announce so don't call the backend announce create function if we didn't
create an endpoint.
Change-Id: I42adaa317e408b73061f1c3d392699bec36b193e
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Patch-mainline: linux-arm-msm @ 27/03/2018, 23:07
Signed-off-by: Chris Lew <clew@codeaurora.org>
Many ipc logging clients does a complete driver reinitialization during
shutdown or ssr process. However, these clients prefer to continue use
same logging buffer instead of creating a new buffer. So, check if a
ipc logging context already exist, if so return the same context
instead of creating a new one.
CRs-Fixed: 2214790
Change-Id: Ic0508a0dbf2afbdb1c5d7655c7a79a9bfa01f5a2
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
The QSEE IPC IRQ bridge forwards interrupts from QSEE to userspace by
writing to a char device node.
Change-Id: Ib538a19ac8d8d83cf0383bec8bfe3fa899d9a885
Signed-off-by: Chris Lew <clew@codeaurora.org>