Commit Graph

1130268 Commits

Author SHA1 Message Date
Patrick Daly
26f77168af ANDROID: mm/memory_hotplug: Fix error path handling
Correct a resource leak if arch_add_memory() returns failure.

Bug: 243477359
Change-Id: I1dce82a18c2242d7b6fd9fb1fe3a8b2ba67853de
Fixes: 42db6c2e9 ("ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection")
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Git-commit: b337f6e1a90b01e14969c6c37705e548b53e488a
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-12-04 13:53:46 -08:00
Patrick Daly
ee7a37b87c ANDROID: mm/memory_hotplug: Don't special case memory_block_size_bytes
If add_memory_subsection() is called with a size of
memory_block_size_bytes, it calls into add_memory(), which declares
the region as system ram, and adds it to the buddy allocator. This
is inconsistent with the behavior of add_memory_subsection() for
other sizes, for which it does not add the memory to buddy and
instead reserves it for the caller's private use.

Bug: 210008865
Fixes: 417ac617ea5e ("ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection")
Change-Id: Iefb69b0b4e96af670d0e65c325a9538d14b460e3
Signed-off-by: Patrick Daly <quic_pdaly@quicinc.com>
Git-commit: 49ad57e9150a2f9d722eaef139a148be47dd256e
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-12-04 13:53:46 -08:00
Suren Baghdasaryan
a95d6b94f3 ANDROID: Fix wrong pr_err type specifier in remove_memory_subsection
Wrong pr_err type specifier causes the following warning:
error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64’ {aka ‘long long unsigned int’} [-Werror=format=]
Fix it by changing to the correct type specifyer for u64.

Fixes: 42db6c2e985b ("ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection")
Bug: 170460867
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ie00738c159436ecec78cba3818cb3542987186ca
Git-commit: f36d7e344195c0149f7d5e446cabbad7b9a1bb9d
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-12-04 13:53:46 -08:00
Suren Baghdasaryan
59cd732e73 ANDROID: Fix wrong pr_err type specifier in add_memory_subsection
Wrong pr_err type specifier causes the following warning:
error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘u64’ {aka ‘long long unsigned int’} [-Werror=format=]
Fix it by changing to the correct type specifyer for u64.

Fixes: 42db6c2e985b ("ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection")
Bug: 170460867
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I6a59462a2a698112b97806618283a7afddb811cb
Git-commit: 81a34d6495e33236a3b00e891985c328e922f451
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-12-04 13:53:46 -08:00
Patrick Daly
5552334233 ANDROID: mm/memory_hotplug: Relax remove_memory_subsection error checking
A memory section may contain a mix of memory present at bootup, and
memory added dynamically via add_memory_subsection(). Fix
remove_memory_subsection to not return an error for this situation.

Bug: 190151165
Fixes: 417ac617ea5e ("ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection")
Change-Id: I20314fe136d6e5b56a9275be7e2d130d18bd79a5
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: Sudarshan Rajagopalan <quic_sudaraja@quicinc.com>
Git-commit: 5c9cf613be14804250ff56fe5651760b3acf2c91
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-12-04 13:53:46 -08:00
Sudarshan Rajagopalan
14c55918fb ANDROID: mm/memory_hotplug: fix check for proper subsection removal
When removing memory subsections, we need to ensure that subsections are
not in use or online before we try to remove them. Previously, we used
test_pages_isolated() which works only if pages were onlined and added to
a zone before. However, we should allow subsection addition and removal
without them being added to buddy i.e. onlined. test_pages_isolated() would
not help in such cases. Instead, check for valid offlined sections before
the subsections within can be allowed to be removed.

Bug: 170460867
Fixes: 417ac617ea5e ("ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection")
Change-Id: I09b46582cd21e9e5370ebd5434209530edb89e58
Signed-off-by: Sudarshan Rajagopalan <quic_sudaraja@quicinc.com>
Git-commit: 82ab28f25a2a84851a5b2f617e54ec9ab2d349cd
Git-repo: https://android.googlesource.com/kernel/common
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-12-04 13:53:46 -08:00
Sudarshan Rajagopalan
002b9e8ee5 ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection
Memory hotplugging is allowed only for multiples of section sizes.
Section size could be huge (ex. 1GB for arm64 targets) thus limiting
to add/remove lower chunks of memory. This patch allows drivers to add
memory of subsection sizes which are then added to memblock. This does
not create a separate memblock device nodes for newly added subsections
until the whole of the memblock section is added.

Bug: 170460867
Change-Id: I15749b5320340cba4d526e7ddb26a9cd6029c690
[quic_sudaraja: remove nid argument from remove_memory_subsection]
Signed-off-by: Sudarshan Rajagopalan <quic_sudaraja@quicinc.com>
Git-commit: 42db6c2e985bd4805fd6c74a6e8749cf72e084a7
Git-repo: https://android.googlesource.com/kernel/common
[quic_cgoldswo: add MEMBLOCK_NONE flag to memblock_add_node and change
 EXPORT_SYMBOL_GPL additions to EXPORT_SYMBOL.]
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-12-04 13:53:46 -08:00
qctecmdr
4d3ff75f82 Merge "modules.list.msm.pineapple: Add vendor hooks driver" 2022-12-02 15:12:43 -08:00
qctecmdr
441740dd53 Merge "arm64: defconfig: Enable minidump for pineapple" 2022-12-02 15:12:43 -08:00
qctecmdr
48821a3163 Merge "soc: hw_fence: add ipe, vpu, and ife client ids" 2022-12-02 10:35:51 -08:00
Huang Yiwei
e85e391a17 arm64: defconfig: Enable minidump for pineapple
Enable minidump for pineapple and add it to module list.

Change-Id: I10520b8b28988ca0bdb462346f7c5f88f287bc80
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2022-12-02 21:00:51 +08:00
Huang Yiwei
ea1aa11085 soc: qcom: minidump: Switch to use debug_symbol
Switch to debug_symbol driver for the get the needed symbol
address for minidump feature.

Change-Id: I3eb16d495244dd2a45af4ff37781c62328f19938
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2022-12-02 18:38:26 +08:00
Huang Yiwei
a7d9cbfd4a defconfig: Enable debug symbol for pineapple
Enable debug symbol for pineapple to allow modules get symbol
address for debug usage and add it to vendor module list.

Change-Id: Ib31ac9d8b6ff74c863901f77571eee3387c02dbb
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2022-12-02 18:37:19 +08:00
Huang Yiwei
7c68897c3f modules.list.msm.pineapple: Add vendor hooks driver
Add vendor hooks driver to the list of vendor modules.

Change-Id: I47044ca662b6a098ab8f4df4f7d46aea2035e590
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2022-12-02 16:23:07 +08:00
Huang Yiwei
d925dd702c arm64: defconfig: Enable vendor hooks driver for pineapple
Enable vendor hooks driver for pineapple.

Change-Id: I6774016ae29be23ae78cff040fbbfbf8c13a8b5a
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2022-12-02 16:17:59 +08:00
Huang Yiwei
3a24de7bce qcom: debug-symbol: Add debug-symbol feature
Use kallsyms address provided by debug-kinfo driver, symbol address
can be searched by traversing kallsyms table. So the new debug-symbol
feature is added and can replace android_debug_symbols approach.

Change-Id: I27fb788ef3d17426bb0d40afb8bf58f2427a4649
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2022-12-02 15:53:23 +08:00
Huang Yiwei
3a266b21d3 abi_gki_aarch64_qcom: Add symbols for timer calc index hook
Add symbols for timer calc index hook.

Change-Id: Ic5cd3e745f25acb96ef9b8ed12207f20f669f07f
Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
2022-12-02 10:27:36 +08:00
Grace An
7c677af214 soc: hw_fence: add ipe, vpu, and ife client ids
Add camera, video, and IFE client IDs. Make signal-based reservation
for IFE clients.

Change-Id: I7004ddf4d1a85311c3463acebc99d4859f0459e7
Signed-off-by: Grace An <quic_gracan@quicinc.com>
2022-12-01 12:18:53 -08:00
John Moon
f7bb27227f ANDROID: Update pineapple module output list
Add new output drivers to pineapple list.

Change-Id: I0914fa503ac1933b99947c873218f879049b1bba
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-12-01 11:44:21 -08:00
qctecmdr
835f1ee0f9 Merge "arm64: defconfig: enable drm display helper compilation" 2022-11-30 21:08:58 -08:00
qctecmdr
705d77d8eb Merge "build: Add --out_dir argument to build_with_bazel.py" 2022-11-30 19:21:16 -08:00
John Moon
4c016f8d92 build: Add --out_dir argument to build_with_bazel.py
Currently, there's no way for a user to specify a custom output
directory when using build_with_bazel.py.

Add a command line argument to allow such usage (similar to the
OUT_DIR environment variable from build.sh).

Change-Id: I44f720c85409fc8ec82a9f4a96d428fab80a7547
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-11-30 17:47:02 -08:00
qctecmdr
07309e43a5 Merge "net: qrtr: Change port insertion to atomic" 2022-11-30 17:33:45 -08:00
qctecmdr
e601a621cd Merge "msm:abi_gki: Add missing symbol" 2022-11-30 17:33:44 -08:00
qctecmdr
3ad41fc11e Merge "wcd939x-usbss: update AUDIO mode for ctype GND_MIC swap" 2022-11-30 17:33:44 -08:00
qctecmdr
49057e9ddc Merge "dwc3-msm-core: Perform runtime resume with dwc3 dev instead of mdwc" 2022-11-30 17:33:44 -08:00
qctecmdr
b138e50a1a Merge "abi_gki_aarch64_qcom: Add rmnet related symbols" 2022-11-30 17:33:43 -08:00
qctecmdr
69ba5ed381 Merge "build: Fix OSError exception" 2022-11-30 17:33:43 -08:00
qctecmdr
7c3188880c Merge "build: Add logic to use default extensions if none are found" 2022-11-30 15:49:15 -08:00
Nisarg Bhavsar
ce9053a644 arm64: defconfig: enable drm display helper compilation
Enables compilation of the drm display helpers for display
driver to link against.

Change-Id: I0ef8b033cbd766e47480e3962bf89c33f239cccd
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2022-11-30 15:04:24 -08:00
Nisarg Bhavsar
76cc526c8f drivers: msm: enable drm display helper compilation
Adds wrapper Kconfig symbol to enable compilation
of the drm display helpers for the display driver
to link against.

Change-Id: I3096fc10a94768758e01e6c22c982ed29eb2aa34
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2022-11-30 14:19:05 -08:00
Nisarg Bhavsar
c1b5ed6dd5 msm: abi_gki: Add display api to export symbols list
Adding symbols in abi file.

Change-Id: Ib82a879f3e223584d3c804ded7a81028a31282d0
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2022-11-30 13:39:28 -08:00
Subash Abhinov Kasiviswanathan
c711f00085 abi_gki_aarch64_qcom: Add rmnet related symbols
Add the symbols needed to compile the rmnet modules.

CRs-Fixed: 3347777
Change-Id: I6561ff325e76c0053c1b3952435d6ff034f19b4d
Signed-off-by: Subash Abhinov Kasiviswanathan <quic_subashab@quicinc.com>
2022-11-30 13:24:56 -08:00
qctecmdr
5f06a98905 Merge "soc:qcom: Add extra byte for tailing NUL" 2022-11-30 13:10:16 -08:00
Michael Adisumarta
ad4f1d90d4 abi_gki_aarch64_qcom: Adding missing symbols
Adding new symbols to the list.

Change-Id: I6dfa017cd2ebef84a8aa2ae25a73971aa49c8e17
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-11-30 12:13:52 -08:00
Mayank Rana
15d7afdbd0 dwc3-msm-core: Perform runtime resume with dwc3 dev instead of mdwc
mdwc device (a600000.ssusb) is parent to dwc3 device (a600000.dwc3).
With stop host mode, commit b10349def39c ("usb: dwc3-msm: Handle
potential errors in dwc3_msm_resume") is resuming mdwc device instead
of dwc3 device which is updating usage count wrongly causing mdwc
device to stay as runtime active. This result into no runtime idle
schedule to put mdwc device into low power mode causing switching
from host mode to device mode failure.

Change-Id: I2f0a6ce06cef90b22bfb5b9a2e000857a5cc0281
Signed-off-by: Mayank Rana <quic_mrana@quicinc.com>
2022-11-29 16:38:33 -08:00
Sam Rainey
5a19600230 abi_gki_aarch64_qcom: Add symbol for snd soc hw params
Add snd_soc_set_runtime_hwparams to the ABI list.

Change-Id: I255861c3330f97695a2a0110aba0ab69ba34b3c4
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2022-11-29 15:57:29 -08:00
John Moon
20ed5f73a6 build: Add logic to use default extensions if none are found
Currently, the Bazel build may fail if symlinks to the Bazel
extension files are not linked to the proper locations.

To make sure the build always works (falling back on default
extensions), configure the script to create the symlinks to the
default files in case they don't exist or are broken symlinks.

Change-Id: Ie385e4ede912d0f40026ef6c78a9c2fb60ca8924
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-11-29 14:11:58 -08:00
Prasad Kumpatla
93ed8096a8 wcd939x-usbss: update AUDIO mode for ctype GND_MIC swap
update AUDIO mode to FSM when connection type is GND_MIC
Swap.

Change-Id: I7cc1b065ce18c1bd6024ece1148784b0d9f5af2b
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-11-29 03:13:01 -08:00
qctecmdr
95442d514e Merge "defconfig: pineapple_tuivm: SELinux configs" 2022-11-28 20:14:51 -08:00
Tony Truong
8fb044e2d6 net: qrtr: Change port insertion to atomic
The xa_insert function cannot be called with GFP_ATOMIC if the context
does not have preemption disabled. There was a change to make the port
insertion structure synchronize with rcu and therefore was no longer
protected with spinlocks. Using RCUs lead to a performance degredation
so spinlock synchronization was reinstated. Now that port insertion
happens within a spinlock, GFP_KERNEL cannot be used.

Change-Id: Ib09addbcaa7802bf80ddb953901e07e43c0f376e
Signed-off-by: Tony Truong <quic_truong@quicinc.com>
2022-11-28 16:25:32 -08:00
qctecmdr
b1f018dd8d Merge "ANDROID: Update pineapple module output list" 2022-11-28 14:37:33 -08:00
John Moon
1a0df71fe8 build: Fix OSError exception
When the Bazel subprocess exits unexpectedly, the wrapper script
gets an OSError exception while cleaning up the processes.

Ignore the OSError exception to make sure all subprocesses are
cleaned up properly.

Change-Id: I7c1062a900e70cfc2d90bd9695254ba80b07721b
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-11-28 13:39:02 -08:00
Dennis Cagle
0657f76455 defconfig: pineapple_tuivm: SELinux configs
Enable SELinux related defconfig options.

Change-Id: Icf4818ab3b1f004a30faa2fd9726004430db8bda
Signed-off-by: Dennis Cagle <quic_dcagle@quicinc.com>
2022-11-28 10:49:33 -08:00
John Moon
36f288e1f6 ANDROID: Update pineapple module output list
Add new output drivers to pineapple list.

Change-Id: I69bafed217b090370288aeade0383977775048e2
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-11-28 10:22:16 -08:00
qctecmdr
7c38a3fd23 Merge "usb: dwc3: msm: add orientation gpio support" 2022-11-28 02:50:38 -08:00
qctecmdr
d17cc6885c Merge "wcd939x-usbss: update AUDIO mode on AATC usecase" 2022-11-28 02:50:38 -08:00
qctecmdr
5f2a8575e0 Merge "soc: qcom: crm: Add IPC logging" 2022-11-28 02:50:38 -08:00
Prasad Kumpatla
ba335150d7 wcd939x-usbss: update AUDIO mode on AATC usecase
update AUDIO mode to FSM when AATC plug detects and restore
to MANUAL once plug-out.

Change-Id: I2b31b67ab713823d2dca07327c141c386ac3b394
Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
2022-11-27 20:58:57 -08:00
Linyu Yuan
1f40435ba0 usb: dwc3: msm: add orientation gpio support
As dwc3 msm support override orientation and super speed phy lane flag,
it is better support orientation gpio here.

Change-Id: I2460286d8538bae3f2e768eb380e11f11faf97fc
Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
2022-11-27 18:23:28 -08:00