Commit Graph

1127881 Commits

Author SHA1 Message Date
Vamsi Krishna Lanka
352835c849 build.config: Remove the generation of system_dlkm twice
This commits avoids the generation of system_dlkm image in msm-kernel
as it is already being generated in common kernel.

Change-Id: I98a612ec611947f373e8facc29e407d74b832ca8
Signed-off-by: Vamsi Krishna Lanka <quic_vamslank@quicinc.com>
2022-10-17 15:17:41 -07:00
Vamsi Krishna Lanka
3b138f9259 build.config.msm.common: Add support to generate system_dlkm.img
Add support to create system_dlkm.img. When BUILD_SYSTEM_DLKM=1,
gki modules are included in the super.img.

Change-Id: I47dfe90890ae045e7c0c47319401258e3cc35f5c
Signed-off-by: Vamsi Krishna Lanka <quic_vamslank@quicinc.com>
2022-10-17 15:16:39 -07:00
Vamsi Krishna Lanka
29752454e1 build.config.msm.pineapple: Enable system_dlkm partition
Enable system_dlkm.img generation and add modules list
and blocklist related to system_dlkm.

Change-Id: Ie6ceab1e8ecd2f5052121f5cb3471eca80116841
Signed-off-by: Vamsi Krishna Lanka <quic_vamslank@quicinc.com>
2022-10-17 15:16:36 -07:00
qctecmdr
6e308e1672 Merge "clk: qcom: clk-alpha-pll: Fix pll enable outout" 2022-10-14 13:36:41 -07:00
qctecmdr
5f267fb6b6 Merge "defconfig: pineapple-gki: Enable QCOM_SPSS and dependency" 2022-10-14 13:36:41 -07:00
qctecmdr
b87cea8461 Merge "slimbus: stream: add support to control port disconnect" 2022-10-14 13:36:41 -07:00
qctecmdr
e7af56b81b Merge "coresight: etm4x: Fetch device name in sysfs from device tree" 2022-10-14 13:36:40 -07:00
qctecmdr
748a67a29b Merge "soc: qcom: qcom_stats: Add API to get ddr freq information" 2022-10-14 13:36:39 -07:00
qctecmdr
fbff32ecf4 Merge "drivers: qcom: Add sys_pm_vx driver snapshot" 2022-10-14 13:36:38 -07:00
qctecmdr
915d25aab7 Merge "coresight: add support for device names" 2022-10-14 13:36:37 -07:00
qctecmdr
0a12785bd7 Merge "mem-buf: Exit mem_buf_lend_internal if the mem-buf not probed" 2022-10-14 13:36:37 -07:00
qctecmdr
6e89d3034b Merge "swiotlb: fix data abort on pineapple tuivm and oemvm" 2022-10-14 04:55:21 -07:00
qctecmdr
509c8ede30 Merge "bus: mhi: host: Move MHI_MAX_MTU to external header file" 2022-10-14 04:55:21 -07:00
qctecmdr
8680c038ee Merge "net: qrtr: ns: Add pr_fmt to ns" 2022-10-14 04:55:20 -07:00
qctecmdr
a097b57e48 Merge "build.config: kalama: Change Boot header version to 4" 2022-10-14 04:55:18 -07:00
Anvesh Salveru
ce345ff94d slimbus: stream: add support to control port disconnect
There is a requirement where slimbus slave don't expect ports
to be disconnected during stream unprepare for sample rates
other than 44.1/88.2k, which is causing mute issues.

Added new slim_stream_unprepare_disconnect_port API to support
disconnect port request from clients without freeing port memory
allocated during stream prepare.

Change-Id: Idb00a1fdf15d864cb6ee82f67c0db4777434b296
Signed-off-by: Anvesh Salveru <quic_asalveru@quicinc.com>
2022-10-12 20:47:39 -07:00
Chris Goldsworthy
f484c0e648 mem-buf: Exit mem_buf_lend_internal if the mem-buf not probed
Exit with an error from mem_buf_lend_internal() if the driver hasn't
probed.

Change-Id: Ide42166c2f850197f989a228f9139d401411a914
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-10-11 20:31:32 -07:00
Chris Lew
453bbe3dbd rpmsg: glink: Add name functionality back
IPC logging and IRQ naming depend on the name variable in the glink
data structure. Add device tree name reading code that was removed
by upstream.

Change-Id: Id1c521d94b8a3c9557273d8f8b072e7e87a1b759
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-10-11 17:55:32 -07:00
Chris Lew
f540ee360d net: qrtr: ns: Add pr_fmt to ns
Add pr_fmt to the ns file for easier error log matching.

Change-Id: I711735ee60c1fd9fde25850b8e625bb44c04f4c4
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-10-11 13:03:32 -07:00
Chris Lew
d94badbdaa net: qrtr: ns: Ignore ENODEV failures in ns
Ignore the ENODEV failures returned by kernel_sendmsg(). These errors
mean either the local port has closed or the remote has gone down.
Neither of these scenarios are fatal and will eventually be handled
through packets that are later queued on the control port.

Also improve the logging messages to print the error code returned by
kernel_sendmsg().

Change-Id: Ibcebd1f44a3fbc87febaa84b11e05675663da5a0
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-10-11 13:03:27 -07:00
Chris Lew
16c6929261 net: qrtr: ns: Increase socket recvbuf
Increase the socket recvbuf for the ns so control packets are not
dropped in heavy traffic situations. This change will not
actually set the recvbuf to INT_MAX but to the system defined rmem_max
for sockets.

Change-Id: I860cc1052080cc6e683b44bef1dd9f8fc1899f31
Signed-off-by: Jay Jayanna <jayanna@codeaurora.org>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-10-11 13:03:22 -07:00
Chris Lew
a729cfdb0b net: qrtr: ns: create kthread worker to process ns work
If worker is not processing packets on control port fast enough,
socket buffer may get full and result in drop of control packets.

Creating dedicated worker thread to process control packets.

CRs-Fixed: 2763561
Change-Id: I4585015cef2a507a9ba13014cd93f40e60f8a25a
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-10-11 13:02:59 -07:00
Guru Das Srinagesh
456ebaf014 defconfig: pineapple-gki: Enable QCOM_SPSS and dependency
Enable QCOM_SPSS and its dependency, CONFIG_RPMSG_QCOM_SMD.

Change-Id: I4f1446d82a6cd1f7dd43c46519634d70390a4005
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-10-10 16:54:06 -07:00
Guru Das Srinagesh
fb861b58bd remoteproc: qcom_spss: Add support for pineapple SoC
Add compatible for pineapple SoC.

Change-Id: I3192184b87fc65af79896033e1ee6333fa8c8b81
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-10-10 16:54:05 -07:00
Guru Das Srinagesh
eff864428c remoteproc: Add snapshot of QCOM_SPSS driver
Add snapshot of the QCOM_SPSS driver from msm-5.15 commit 23fe038a2ea4
("Kconfig: Add support for kona chipset").

Change-Id: I7c419a62b14e21d45b3e8bcc2785570012a7c09a
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-10-10 16:54:03 -07:00
Vivek Aknurwar
0c91be080b clk: qcom: clk-alpha-pll: Fix pll enable outout
Fix pll enable output incase of when pll is not configured from boot.

Change-Id: I076ae750bad956c37d0a790b07fb9892f3149a0c
Signed-off-by: Vivek Aknurwar <quic_viveka@quicinc.com>
2022-10-10 15:18:38 -07:00
Gokul krishna Krishnakumar
8a22567035 build.config: pineapple: Add flag to enable init_boot build
By enabling this flag init_boot.img will be generated if
the header version is 4.

Change-Id: I8a01d10cee8142ef900376d7e3d29f1b49e80d00
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
2022-10-10 09:59:16 -07:00
Gokul krishna Krishnakumar
80e28b0645 build.config: pineapple: Change Boot header version to 4
Adding Bootconfig to kernel command line to support
the version change.

Change-Id: I24b667e494e5bbf14397f16d9ef7219634f3f17b
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
2022-10-10 09:58:14 -07:00
Tao Zhang
91ab668fcf coresight: etm4x: Fetch device name in sysfs from device tree
If coresight-name exists in etm/ete nodes, use coresight-name value
as device name.

Change-Id: I1297241d8ddc2b29f8745ed33ed5b2089f6b0bcb
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-10-09 19:55:10 -07:00
Peng Yang
8432b403d4 swiotlb: fix data abort on pineapple tuivm and oemvm
Before call swiotlb_init_io_tlb_mem, should allocate memory
for areas firstly.

Change-Id: Ib121040817cbae4a44f06ae62fe4b0e0fa27c796
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
2022-10-09 03:08:32 -07:00
qctecmdr
3a0a1539ac Merge "net: qrtr: ns: Return 0 if server port is not present" 2022-10-07 18:54:45 -07:00
qctecmdr
b718e28e48 Merge "abi_gki_aarch64_qcom: Add symbols for UBWC-P heap" 2022-10-07 16:59:25 -07:00
qctecmdr
ec8933f385 Merge "net: qrtr: Do not take sock lock on blocking recv" 2022-10-07 16:59:23 -07:00
qctecmdr
4db6d200e2 Merge "net: qrtr: Improve qrtr_node_assign" 2022-10-06 21:44:36 -07:00
Hemant Kumar
93258369b2 bus: mhi: host: Move MHI_MAX_MTU to external header file
Currently this macro is defined in internal MHI header as
a TRE length mask. Moving it to external header allows MHI
client drivers to set this upper bound for the transmit
buffer size.

Change-Id: I24c7bce37cb8f103c1436201d825bec4a36eb122
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
2022-10-06 17:24:23 -07:00
Bhaumik Bhatt
6ff1554291 bus: mhi: core: Enable bandwidth scaling usage
Enable bandwidth scaling usage for MHI core driver.

Change-Id: I31492bd87162c0347f9f8f8acc1a0316a84af572
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
2022-10-06 17:22:32 -07:00
Bhaumik Bhatt
85269c6e88 bus: mhi: core: Add support to pre allocate image buffers
This allows controller to keep the memory allocated for bhi
vector table for rddm and fbc images. Memory remains allocated
after controller powers down and is freed when the controller
unregisters with MHI. Add a controller flag to make the
decision for memory allocation.

Change-Id: I974e44d3b927da1003e232455067c50fdf6fb42b
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
2022-10-06 17:02:07 -07:00
qctecmdr
b9ac1f606d Merge "ubwcp: Add buffer configuration function declarations" 2022-10-06 08:55:13 -07:00
Gokul krishna Krishnakumar
788e7a0f11 build.config: kalama: Change Boot header version to 4
Adding Bootconfig to kernel command line to support
the version change.

Change-Id: I61564df16f2b6b9b13aea20a4ed6efb00fe4990b
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
2022-10-06 07:57:18 -07:00
Gokul krishna Krishnakumar
9e014d030b build.config: kalama: Add flag to enable init_boot build
By enabling this flag init_boot.img will be generated if
the header version is 4.

Change-Id: If0a15f4e68bcc48e19a50e041a565b7b57ce458b
Signed-off-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
2022-10-06 07:57:08 -07:00
Mao Jinlong
1efe267018 coresight: add support for device names
Add support to read device names from device tree entries.
This allows using same names for CoreSight devices across different
targets.

Change-Id: I58d39c9e313a513ee1728b0437419661e33767b9
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-10-06 07:44:12 -07:00
qctecmdr
17a880d7fb Merge "sched/walt: Define sched_trace_rd_span" 2022-10-05 19:54:58 -07:00
qctecmdr
d8ed52e3d2 Merge "defconfig: Enable dcvs related configs for pineapple" 2022-10-05 19:54:57 -07:00
qctecmdr
93443fbfaa Merge "bus: mhi: ctrl: Fix number of arguments in API mhi_prepare_for_tranfer" 2022-10-05 19:54:54 -07:00
qctecmdr
4e73525132 Merge "sched/walt: Expand rq_relock()" 2022-10-05 17:39:39 -07:00
Hemant Kumar
975ca1a62c bus: mhi: host: Add helper API to ring event ring doorbells
SW event ring elements are added and doorbells are rung during
ready state transition from host. HW event ring elements are
added and doorbells are rung in mission mode transition. All
event ring doorbells are rung in M0 state change transition.
Move this common code to a helper API mhi_setup_event_rings().
Pass a boolean for adding event ring elements. When this flag
is false, only ring doorbells for all event rings and do not
populate the event rings.

Change-Id: Ib201007179c2cb772decb2456d3510602ea63fd6
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
2022-10-05 16:37:13 -07:00
Hemant Kumar
955a4b15ab bus: mhi: host: Add support for event ring processing priorities
Default processing priority for an event ring is set to schedule
a regular priority tasklet. In order to distinguish going forward
and provide support for scheduling a high priority tasklet or any
further requirements that may come up, introduce support for
different event ring priorities.

Change-Id: I53325bc141269832444ba28a4941c050ceebe394
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
2022-10-05 16:31:26 -07:00
Bhaumik Bhatt
c5dd45c17a bus: mhi: host: Add fallback image support
In case firmware request fails to find firmware at the default
location, re-try once with a fallback location. This is done by
adding fallback firmware image location in controller structure
and firmware request is sent again using fallback location.
Send a status call back to controller when re-try is done to
notify them as some features may not be available.

Change-Id: I6c832c121e7bfaf798c06d0341541a2677653fd0
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
2022-10-05 15:51:19 -07:00
Bhaumik Bhatt
d3dd2a1713 bus: mhi: host: Prevent warnings on clearing channel context twice
Do not allow clearing the channel context twice from
mhi_driver_remove(), if already done before disable transition is
initiated. This prevents kernel warnings such as "trying to free
invalid coherent area" from occurring.

Change-Id: I85dec0557a287c9207b56d2b2243d53b6a40ff1c
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
2022-10-05 11:40:37 -07:00
Sai Harshini Nimmala
c388a7b37f sched/walt: Define sched_trace_rd_span
sched_trace_rd_span is removed upstream. Restore the function locally.

Change-Id: I066be161e1da49b11de10f034e8f46a4c1510391
Signed-off-by: Sai Harshini Nimmala <quic_snimmala@quicinc.com>
2022-10-04 09:45:27 -07:00