Commit graph

884,412 commits

Author SHA1 Message Date
Isaac J. Manjarres
e0237ca515 arm64: defconfig: Enable CONFIG_PSI_FTRACE on Lahaina
Enable PSI ftrace logging to collect ftrace information about
PSI events.

Change-Id: Ia4d786f5cbc242991fd0e0ecdb63d16714bffeb8
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2020-06-19 09:41:58 -07:00
qctecmdr
b982c53bc3 Merge "usb: dwc3: trace: print enqueue/dequeue pointers too" 2020-06-18 18:45:15 -07:00
qctecmdr
b0380a354f Merge "power: supply: qti_battery_charger: support wireless firmware update" 2020-06-18 18:45:15 -07:00
qctecmdr
0a28c83f4e Merge "defconfig: Add support for compiling sdxlemur target" 2020-06-18 18:45:15 -07:00
qctecmdr
2f2ac06609 Merge "USB: f_accessory: Set manufacturer and model string to default value" 2020-06-18 18:45:14 -07:00
qctecmdr
eaba670acb Merge "mmc: sdhci-msm: Ensure SD card power isn't ON when card removed" 2020-06-18 18:45:14 -07:00
qctecmdr
4bc6723b0c Merge "net: qrtr: haven: Read peer name from device tree" 2020-06-18 15:30:54 -07:00
qctecmdr
4f34190efb Merge "driver: pinctrl: Add reserved GPIOs for Shima" 2020-06-18 10:42:14 -07:00
qctecmdr
bac8eddf4a Merge "defconfig: arm64: Enable SDPM clock monitor for Lahaina" 2020-06-18 10:42:14 -07:00
qctecmdr
0a1e159645 Merge "defconfig: lahaina: Enable LIMIT_MOVABLE_ZONE_ALLOC" 2020-06-18 10:42:14 -07:00
qctecmdr
a91e5519be Merge "usb: dwc3: gadget: Remove unnecessary checks" 2020-06-18 10:42:13 -07:00
qctecmdr
b84282aee9 Merge "mm: process_reclaim: consider compound pages" 2020-06-18 07:41:45 -07:00
qctecmdr
9d579d774a Merge "pinctrl: qcom: Update configuration for Shima" 2020-06-18 07:41:44 -07:00
Mukesh Ojha
5a08ead3da driver: pinctrl: Add reserved GPIOs for Shima
Certain GPIOs are reserved for secure world and cannot be accessed by HLOS.
Supply "reserved_gpios" to msm_pinctrl to mark these pins as invalid.

Change-Id: Ic8f45181b2210a6295bba1bdec45d24e607bede9
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-06-18 05:10:51 -07:00
qctecmdr
6447752153 Merge "ANDROID: scsi: ufs: Handle clocks when lrbp fails" 2020-06-18 04:30:10 -07:00
qctecmdr
8e37ccbf8f Merge "soc: qcom: crypto-qti-hwkm: Return negative errors" 2020-06-18 04:30:10 -07:00
qctecmdr
b94374d1be Merge "scsi: ufshcd-crypto-qti.c: do not resume for key reprogram" 2020-06-18 04:30:10 -07:00
qctecmdr
caa193790c Merge "aarch64: ABI: Update snapshot with newer libabigail version" 2020-06-18 04:30:09 -07:00
qctecmdr
983251f46b Merge "drivers: qcom: rpmh: caching batch requests should flag the cache dirty" 2020-06-18 04:30:09 -07:00
qctecmdr
e039aac6bb Merge "msm: kgsl: Add support for gpu busy multiplier" 2020-06-18 04:30:09 -07:00
qctecmdr
317ee8f0c6 Merge "arm64: defconfig: Add support for KPROBE for lahaina/shima/holi debug" 2020-06-18 04:30:08 -07:00
Mukesh Ojha
39b9853678 pinctrl: qcom: Update configuration for Shima
Update pinctrl configuration for Shima, to match the
latest released configuration.

Change-Id: I1537735755e1a0384a9c48dca6184a85b49b2237
Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
2020-06-18 01:35:39 -07:00
Manu Gautam
5be8f883fc mhi: core: add mhi_device_get_sync_atomic() to wait until M0
There is a possibility of client driver's dev_wake request
as part mhi_device_get() racing with M1 state transition
event processing. This can result in a scenario where client
finds MHI state as M0 after mhi_device_get() returns only to
be changed later as M1 event processing is still pending on
different CPU core.
It causes M0 -> M2 -> M0 state transition after mhi_device_get()
has already returned. This isn't expected by client and currently
treats that as fatal error. Also, as per MHI spec host must allow
M1 -> M2 transition for device and it shouldn't abort that.

However, clients can ignore that transition as device is expected
to immediately move from M2 to M0 without entering deep sleep
state. Hence, it must be safe to access their MMIO.
To simplify this logic, introduce mhi_device_get_sync_atomic()
function that can be used by clients to achieve the same and once
it returns success they don't need to have any explicit MHI state
checks.

Change-Id: I0b4a1ad723a0444ee2402bf171fc5ffc46afcdce
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2020-06-17 23:24:02 -07:00
qctecmdr
590814e336 Merge "scripts: headers_install: Turn CONFIG_* leak checker to report error" 2020-06-17 16:48:21 -07:00
qctecmdr
60c5922a88 Merge "defconfig: Add UAPI_HEADER_TEST for Lahaina GKI" 2020-06-17 16:48:21 -07:00
Lina Iyer
ac290b4993 drivers: qcom: rpmh: caching batch requests should flag the cache dirty
The sleep/wake state batch requests are saved in a linked list and
flushed along with other sleep/wake request when entering system low
power modes. Caches are flushed only if the state flag is marked dirty.

A race situation could cause the batch sleep/wake requests to not be
flushed. Here is how this could happen -

- Interconnect driver (ICC) invalidates the sleep/wake requests
	- RSC driver clears the TCSes (BCM, VRM, ARC sleep votes cleared)

- ICC sends an active state response-required request
	- RSC driver sends the AMC request
	- RPMH waits on the response, calls wait_for_completion

- Scheduler schedules idle thread
	- cpuidle enters cluster idle state
		- RPMH flushes cache and marks cache clean
		 (no BCM votes in TCS)

- RSC driver receives IRQ response
	- RPMH calls complete()

- ICC worker thread resumes execution
	- ICC driver calls RPMH driver with updated sleep and wake votes
		- RPMH caches the request, *cache is NOT marked dirty*

- Scheduler schedules idle thread
	- cpuidle enters cluster idle state
		- Cache is clean and nothing to flush
	- CPU enters idle
		=>ICC sleep/wake votes are not sent

Fix this by dirtying the cache state even when caching batch requests.

Change-Id: I7613e665d181f8abb27915d622442e7b981f9fcc
Signed-off-by: Lina Iyer <ilina@codeaurora.org>
2020-06-17 15:24:50 -06:00
qctecmdr
5df03724c4 Merge "scsi: ufs: Dump PA_VS_STATUS_REG1 in eh" 2020-06-17 08:24:01 -07:00
qctecmdr
f50a6e676b Merge "msm: adsprpc: Fix array index underflow problem" 2020-06-17 08:24:00 -07:00
qctecmdr
8e2fab80f7 Merge "soc: qcom: spcom: remove excessive debug prints" 2020-06-17 08:24:00 -07:00
qctecmdr
354981abde Merge "sched/walt: Fix negative count of sched_asym_cpucapacity static key" 2020-06-17 08:24:00 -07:00
qctecmdr
be77d9f54e Merge "tmc-etr: Correct condition for SW USB mode when setup sysfs buf" 2020-06-17 02:00:28 -07:00
qctecmdr
58bcf322e6 Merge "soc: qcom: mem-buf: Treat zero-sized sg-lists as invalid inputs" 2020-06-17 02:00:28 -07:00
qctecmdr
9374a3bfd2 Merge "mm: introduce CONFIG_SPECULATIVE_PAGE_FAULT" 2020-06-17 02:00:28 -07:00
qctecmdr
2791c02ab1 Merge "cpufreq: qcom: Add code to support module removal" 2020-06-17 02:00:27 -07:00
qctecmdr
c28e3da0c2 Merge "scsi: ufs: Fixes line-reset and adapt sequence" 2020-06-17 02:00:27 -07:00
qctecmdr
284f983de3 Merge "ANDROID: net: bpf: permit redirect from ingress L3 to egress L2 devices at near max mtu" 2020-06-17 02:00:27 -07:00
qctecmdr
28e2243144 Merge "drver:soc:llcc_perfmon: qdss clk node control" 2020-06-17 02:00:27 -07:00
qctecmdr
2273336b1f Merge "UPSTREAM: mmc: sdhci-msm: Add CQHCI support for sdhci-msm" 2020-06-17 02:00:26 -07:00
Mohammed Nayeem Ur Rahman
5c50e1787c msm: adsprpc: Fix array index underflow problem
Add check to restrict index underflow.This is to avoid
that it does not access invalid index.

Change-Id: Ib971033c5820ca4dab38ace3b106c7b1b42529e4
Acked-by: Gururaj Chalger <gchalger@qti.qualcomm.com>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2020-06-17 10:54:05 +05:30
Chris Lew
026bc864e7 net: qrtr: haven: Read peer name from device tree
Add support for the primary vm to read the vm peer name from device
tree. This information is needed to share memory to the peer vm.

Change-Id: Ied71d254975e08dcf6c1c51f49687aceced141a9
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-06-16 21:55:24 -07:00
Chris Lew
394a2675b8 net: qrtr: haven: Store haven label
Store the haven label so it can be used for other haven resources such
as attaching the label to memparcels that the qrtr haven driver
creates.

Change-Id: I78c8bea71666c35db393191131389867d39f7566
Signed-off-by: Chris Lew <clew@codeaurora.org>
2020-06-16 21:54:44 -07:00
Can Guo
20235bca1c scsi: ufs: Dump PA_VS_STATUS_REG1 in eh
Dump PA_VS_STATUS_REG1 when full reset is needed in eh, which is helpful
for error debugging.

Change-Id: Iad3c2fc09c88598428762b5da09e13b46493fc7d
Signed-off-by: Can Guo <cang@codeaurora.org>
2020-06-17 12:50:07 +08:00
Liam Mark
dcad6c355c defconfig: lahaina: Enable LIMIT_MOVABLE_ZONE_ALLOC
Enable support to limit the allocations which can be made from the
Movable zone in order to help reduce the likelihood of a page in the
movable zone being pinned because that would prevent memory from
being offlined.

Change-Id: I6503c9c23ad4b54838992a72f0cf79f3f545d703
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-06-16 20:17:37 -07:00
Liam Mark
999f2ea7d8 pagemap.h: Allow readahead Movable allocations from CMA region
There are a lot of readahead Movable allocations.

These allocations don't appear to get 'pinned' so allow them to be
satisfied from the CMA region in order to better utilize CMA memory.

Change-Id: I87387a748e67a6963b9a526b729e6e273c1cc519
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-06-16 20:17:35 -07:00
Liam Mark
8b04672471 mm: direct previous __GFP_CMA allocations to offlinable memory
Ensure we continue to direct __GFP_CMA allocations to offlinable memory now
that __GFP_OFFLINABLE has been introduced.

Change-Id: Ibdd71e45f4e47110f3ec4d308d26ffae58beb300
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-06-16 20:17:34 -07:00
Liam Mark
0bbd80928b mm: Allow only __GFP_OFFLINABLE allocations from Movable zone
Ensure that only allocations which include __GFP_OFFLINABLE can be
satisfied from zone Movable. This restriction helps reduces the
likelihood of a page in the movable zone being pinned which would prevent
memory from being offlined.

In the past we allowed all __GFP_CMA allocations to be satisfied from
Movable zone but now add support to differentiate between __GFP_CMA
allocations and __GFP_OFFLINABLE allocations so that we can target certain
allocations at CMA regions and certain allocations at the Movable zone.

Change-Id: If2a9381b6d677f825ad53af9cd64f206d41da211
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2020-06-16 20:17:22 -07:00
Subbaraman Narayanamurthy
25cd18e120 power: supply: qti_battery_charger: support wireless firmware update
Add support for wireless charger firmware update in battery charger
driver through "wireless_fw_update" and "wireless_fw_force_update"
properties under "/sys/class/qcom-battery". Support firmware update
for wireless charger (IDT9412) for which firmware is split into
multiple chunks (128 bytes each) and sent over PMIC Glink. Charger
firmware running on the remote subsystem does the FW update by
communicating with IDT9412.

Wireless charger firmware name should be specified via a device tree
property "qcom,wireless-fw-name".

To update wireless firmware, user has to push the FW binary to a
firmware partition (e.g. /vendor/firmware) and then do one of the
following.

Normal update for which FW version check is made:

 # echo 1 > /sys/class/qcom-battery/wireless_fw_update

Forced update for which FW version check is skipped:

 # echo 1 > /sys/class/qcom-battery/wireless_fw_force_update

To read back FW version:

 # cat /sys/class/qcom-battery/wireless_fw_version

Change-Id: Id565e7d5a73041d6e0340edc66eb8b1615396435
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2020-06-16 15:43:22 -07:00
Ram Chandrasekar
ea6921b403 defconfig: arm64: Enable SDPM clock monitor for Lahaina
Enable SDPM clock monitor driver for lahaina to monitor clocks and write
the clock rate in SDPm CSR register.

Change-Id: Ia643c5b412362518c9c6c08d47e5af17ff859f69
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-06-16 15:41:58 -07:00
Ram Chandrasekar
8e1279723b defconfig: arm64: Enable Policy Engine sensor for Lahaina
Enable Policy Engine sensor driver for lahaina to get the CX/MX
mitigation recommendation as sensor.

Change-Id: I481552649909c32d229186a62e8b9240ca2ec88b
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-06-16 15:41:22 -07:00
Ram Chandrasekar
0dd972a4f3 drivers: thermal: sdpm: Add SDPM clock notifier driver
Add SDPM clock notifier driver, which will register for clock rate
change notification and write the clock rate into SDPM CSR register. The
SDPM hardware will monitor the frequency changes and recommend
mitigation using policy engine.

Change-Id: I56b2941b3c3e47bdb49bf805a2fc9acd4356470f
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2020-06-16 15:41:17 -07:00