Commit Graph

1115890 Commits

Author SHA1 Message Date
Patrick Daly
63bddcd463 mem-buf-msgq: Reduce buffer free complexity
Reuse the same buffer for each message in mem_buf_msgq_recv_fn()
instead of allocating a new one for each message, and freeing it
in a dozen different locations depending on what type of message it
is.

If a consumer of the message needs to defer its work to a workqueue,
it must allocate a new copy of the message.

Change-Id: Ia5583bc7dc9937211f25624f7a679d34fe8fb521
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-09-25 11:45:20 -07:00
Patrick Daly
0f6efbf911 mem-buf: Add infrastructure for requesting specific IPA address
gh_rm_mem_accept allows a VM to request memory to be mapped to a specific
IPA address. Modify function parameters to allow for future use of this
feature.

Change-Id: I6ad586886563e769549e4966369da48c27ca0a5c
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-09-25 11:45:19 -07:00
Patrick Daly
5a01357c0f mem-buf: Update message format to include trans_type
Allow a guest VM to choose whether the memory it requests is obtained
via the lend, share or donate hypervisor call.

Change-Id: I7e1f25ea0f9b0ec99d4a7afd79f206f9a2b67d85
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-09-25 11:45:19 -07:00
Patrick Daly
010e2b03f3 mem-buf: Remove logic for detecting donate support
Support to donate memory is always present on compatible hypervisor
builds.

Change-Id: Ic7a4c03716277e379014bb31e58358cffb85409c
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-09-25 11:45:18 -07:00
Patrick Daly
a0663e611c mem-buf: Rename gh_rm_trans_type to trans_type
Rename variables to increase readability.

Change-Id: Iec504384e31b76e06c0f30686bb1b332ac85cce5
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
2022-09-25 11:45:17 -07:00
Chris Goldsworthy
c4036c4aa7 defconfig: pineapple: Enable configs for mem-buf CPU use cases
Enable CONFIG_QCOM_MEM_BUF_MSGQ, CONFIG_QCOM_MEM_BUF_GH and
CONFIG_QCOM_MEM_BUF_DEV_GH to allow mem-buf CPU use cases to be
exercised.

Change-Id: I15bbb098c1ba28924f73b203718203f4dbd6c2bd
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-09-25 11:45:17 -07:00
Chris Goldsworthy
5c3224adf4 mem-buf: Allow selective usage of *memory_subsection functions
add_memory_subsection() and remove_memory_subsection() are only needed
on the TVM and OEM VMs. These are downstream functions as well. Thus,
selectively allow them to be enabled so that we only compile them on
downstream kernels.

Change-Id: I8416cd8eb8db74cf8a3cfbc8e3d7ea2fff112353
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-09-25 11:45:11 -07:00
qctecmdr
6d0045aaf5 Merge "sched/walt: fix busy time accounting for tasks moving between groups" 2022-09-20 21:50:30 -07:00
qctecmdr
de01039390 Merge "cpufreq: qcom-hw: clear thermal pressure when thermal condition exits" 2022-09-20 20:16:16 -07:00
qctecmdr
2c82740419 Merge "defconfig: pineapple-gki: Enable PDR notif. timeouts" 2022-09-20 20:16:15 -07:00
qctecmdr
5de0993608 Merge "soc: qcom: Minidump support for VMs" 2022-09-20 18:20:18 -07:00
qctecmdr
59eb204df3 Merge "soc: qcom: pdr: Add logging after indack is sent" 2022-09-20 18:20:18 -07:00
Abhijeet Dharmapurikar
8c2844c025 sched/walt: fix busy time accounting for tasks moving between groups
Currently the code subtracts busy time when a task is being migrated.
IOW migrate_busy_time_subtraction is called in set_task_cpu hook.

And the code adds busy time in an after-migration enqueue IOW
enqueue_after_migration is seen set in enqueue hook.

Both the above operations happen under the prev_cpu and next cpu rq
lock respt.

Now a task could exit or enter group after the migration and before
the enqueue i.e. transfer_busy_time could be called when
enqueue_after_migration is set. This could lead to -ve load bugs as
we have  only subtracted the load and not added it.

To address this, complete the addition step in
transfer_busy_time() itself,  prior to moving the busy time,
if a task is found to be migrating.

Change-Id: Ifa7a2b017763392431dfa5407ec9dbde76d90019
Signed-off-by: Abhijeet Dharmapurikar <quic_adharmap@quicinc.com>
2022-09-20 12:19:53 -07:00
qctecmdr
2c7855a1a8 Merge "ARM: config: msm: Enabling config for GENI based serial drivers" 2022-09-20 05:45:43 -07:00
qctecmdr
6356615785 Merge "soc: qcom: smem: Add inline function when SMEM is not enabled" 2022-09-20 02:26:33 -07:00
Anil Veshala Veshala
9dc6a7af57 ARM: config: msm: Enabling config for GENI based serial drivers
Enable compilation for GENI based peripheral protocols like i2c, i3c,
spi, uart, gsi.

Change-Id: Ic3ac6596ba912135f56f3583442cd92714978269
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2022-09-19 22:57:52 -07:00
qctecmdr
067e89239a Merge "usb: phy: Turn on PHY clks with phy_init() when EUD is enabled" 2022-09-19 17:42:35 -07:00
Guru Das Srinagesh
9ed772b85c defconfig: pineapple-gki: Enable PDR notif. timeouts
Enable kernel panic upon timeout expiry of PDR notification and set
timeout to 9 seconds.

Change-Id: Ifb7a8e35265194b4c37215db471619c402da5a2a
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-19 16:11:01 -07:00
Mukesh Ojha
33ad78c141 soc: qcom: pdr: Add PDR notification timeout handler
This is a debug feature where a kernel panic is triggered when
pdr notification to the APPS client is taking too long. This scenario
can happen if the one of notifier gets stuck and due to which subsystem
did not get ack back from APPS in time and trigger timeout panic.
So, trigger a kernel panic in APPS if PDR notifications is taking
too long.

Change-Id: Ic58c421723a71ba87ba0306617eafc2ed39b6ee2
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
[quic_gurus@quicinc.com: Dropped kalama_GKI.config change]
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-09-19 16:08:54 -07:00
Gokul krishna Krishnakumar
e4dd10a51a soc: qcom: pdr: Add logging after indack is sent
This change adds logging after the indack is sent. This helps in debugging
the communication between APSS and Q6.

Change-Id: I0c4a89480e684dff4eb91e95fe4071f6b90824f9
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
2022-09-19 15:56:33 -07:00
qctecmdr
6a5734f701 Merge "coresight: Add trace noc support" 2022-09-19 13:27:16 -07:00
qctecmdr
e59f6b2192 Merge "iio: adc: qcom-spmi-adc5-gen3: Increase HS_READY poll wait time to 15 ms" 2022-09-19 11:39:44 -07:00
qctecmdr
eda9d87efa Merge "defconfig: pineapple-consolidate: enable CONFIG_QTI_PMIC_GLINK_CLIENT_DEBUG" 2022-09-19 11:39:44 -07:00
qctecmdr
e0bc90b427 Merge "ANDROID: abi_gki_aarch64_qcom: Update symbol list" 2022-09-19 09:00:31 -07:00
Mao Jinlong
10de05b8fe coresight: Add trace noc support
This driver provides the support to program the hardware of
Trace Noc component when enable the source which is connected to
Trace Noc.  Trace NoC is a interconnect that is used
to collect trace from various subsystems and transport it
QDSS trace sink.

Change-Id: I70ebda4142be066bc15d8809d7ffe3bdbee10fb9
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-09-18 23:04:40 -07:00
qctecmdr
a5b6faf118 Merge "bus: mhi: host: Add snapshot of MHI bus misc driver" 2022-09-18 20:39:10 -07:00
qctecmdr
30ea05d7e3 Merge "defconfig: pineapple-gki: enable qti-fixed-regulator driver" 2022-09-16 22:04:56 -07:00
David Collins
bf9c8bd72f defconfig: pineapple-gki: enable qti-fixed-regulator driver
Enable the qti-fixed-regulator driver so that proxy consumer
voting and debug features may be used for fixed regulator
devices.

Change-Id: Ia7946a3d82f12b22463e5446a9540e27970c7679
Signed-off-by: David Collins <quic_collinsd@quicinc.com>
2022-09-16 17:39:18 -07:00
Vivek Aknurwar
5c773b992d cpufreq: qcom-hw: clear thermal pressure when thermal condition exits
clear thermal pressure when thermal polling is stopped as throttle
frequency is greater than what scheduler or cpu are set to.

This change prevents throttle loop exiting with stale, non-zero
thermal pressure resulted from race condition of requested frequency
change after throttle_freq condition check in throttle loop.

Change-Id: If9c40e20350c5d33b3ad7a58cfe213eeb5dda74b
Signed-off-by: Vivek Aknurwar <quic_viveka@quicinc.com>
2022-09-16 13:36:30 -07:00
Subbaraman Narayanamurthy
be9c6d09a2 defconfig: pineapple-consolidate: enable CONFIG_QTI_PMIC_GLINK_CLIENT_DEBUG
Enable CONFIG_QTI_PMIC_GLINK_CLIENT_DEBUG in pineapple-consolidate
defconfig so that debug features can be enabled in altmode-glink,
qti_battery_debug and qti_battery_charger drivers.

Change-Id: I2d0ef18d061237a256c008aa971096879141a5fa
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
2022-09-16 13:17:11 -07:00
Subbaraman Narayanamurthy
a4f4568bfb defconfig: pineapple: enable PMIC_GLINK driver and its clients
Enable PMIC Glink driver and its clients for pineapple to support
battery charging, Type-C, altmode and the drivers that help with
debugging them.

Change-Id: Ib386a198d9de3e441e2fce650beca44a5bdfd6e3
Signed-off-by: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>
2022-09-16 13:15:00 -07:00
Cong Zhang
accaa1e653 soc: qcom: Minidump support for VMs
Add minidump support for VMs. RM call is used to manage regions of VMs.

Change-Id: I85a21223e13f2a8477919858aebaca8b11b5faeb
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-09-15 23:02:36 -07:00
Cong Zhang
75dda42eb8 soc: qcom: smem: Add inline function when SMEM is not enabled
Add inline function to fix compile issue when smem is called but not
enabled.

Change-Id: If31fc795fb5f42a1f221780d3d98e362766cca59
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-09-15 23:02:23 -07:00
Cong Zhang
fa538cea6d soc: qcom: Dynamically allocate minidump table
Dynamically allocate minidump table when driver probe to decrease memory
usage.

Change-Id: I6575cedef615184ff5131acc5bd82c6419a81cbd
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-09-15 22:58:46 -07:00
qctecmdr
f5b4182b5b Merge "serial: msm_geni_serial: Add snapshot of serial UART driver" 2022-09-15 20:23:25 -07:00
qctecmdr
d0cc8e457b Merge "spi: spi-msm-geni: Add SPI GENI driver snapshot for pineapple" 2022-09-15 20:23:24 -07:00
qctecmdr
474d61ff87 Merge "bus: mhi: devices: Add snapshot of MHI devices driver" 2022-09-15 20:23:24 -07:00
qctecmdr
23281288c6 Merge "bus: mhi: controllers: Add snapshot of MHI controller driver" 2022-09-15 20:23:24 -07:00
qctecmdr
d40ff4f7b0 Merge "i2c:i2c-msm-geni: Add I2C GENI driver snapshot for pineapple" 2022-09-15 19:02:02 -07:00
qctecmdr
1f0605da88 Merge "i3c: i3c-master-qcom-geni: Add I3C GENI driver snapshot" 2022-09-15 19:01:58 -07:00
qctecmdr
048f6d5b62 Merge "defconfig: pineapple-gki: Enable QCOM_RAMDUMP" 2022-09-15 17:38:22 -07:00
qctecmdr
fa073dcc43 Merge "soc: qcom: Add snapshot of ramdump driver" 2022-09-15 16:17:01 -07:00
qctecmdr
2bd9e0a08f Merge "soc: qcom: socinfo: correct partid conditional check" 2022-09-15 14:55:18 -07:00
qctecmdr
633ded3358 Merge "gunyah: gh_rm_drv: Add RM interface for minidump support" 2022-09-15 13:28:34 -07:00
qctecmdr
82fe4ec23e Merge "coresight-tmc: Add usb support to coresight tmc etr" 2022-09-15 13:28:33 -07:00
qctecmdr
57624c29c3 Merge "input: qcom-hv-haptics: update configuration for PATx_MEM mode" 2022-09-15 07:27:55 -07:00
qctecmdr
e9121ba6f6 Merge "input: qcom-hv-haptics: Toggle EN_CTL for PM5100 v1.0" 2022-09-15 06:04:33 -07:00
qctecmdr
1b01aeed5c Merge "input: qcom-hv-haptics: move predefined effect preload logging" 2022-09-15 04:34:28 -07:00
Anil Veshala Veshala
06641312bd i3c: i3c-master-qcom-geni: Add I3C GENI driver snapshot
This is a snapshot of I3C GENI driver and associated file as of msm-5.15
'commit 9b48a7431cacec7 ("i3c: i3c-master-msm-geni: Fix DAA process
from GENI I3C master")'.

Change-Id: I5cead40609c9489bf60c23e49349171c25579fe6
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2022-09-14 23:25:35 -07:00
Anil Veshala Veshala
a81b274890 serial: msm_geni_serial: Add snapshot of serial UART driver
This snapshot is taken as of msm-5.15 'commit 8faf434d5fa0
("serial: msm_geni_serial: Update logs in vote_clock_on &
vote_clock_off")'.

Change-Id: I69d602419e6e0cd2c1be349a141f7116134569f8
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2022-09-14 23:22:30 -07:00