Commit graph

890,886 commits

Author SHA1 Message Date
Prasad Sodagudi
062642e76e ANDROID: lkdtm/usercopy: Use __va_function to find proper vm_mmap address
With CFI enabled compiler replacing the reference to vm_mmap
passed to copy_to_user with a pointer to the CFI jump table
in the module itself. So use the __va_function API for
finding the proper address of vm_mmap.

Bug: 166220312
Suggested-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: Id5bd96cc9bfa1aa99f34bd4785792e0a4eeae5b1
Git-commit: 33752ec915fb9dcccfe3afe4c4df4e032a0d823f
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2020-09-16 06:52:45 -07:00
Sami Tolvanen
2c0cdded94 ANDROID: mm: add generic __va_function and __pa_function
We use non-canonical CFI jump tables with CONFIG_CFI_CLANG, which
means the compiler replaces function address references with the
address of the function's CFI jump table entry. This results in
__pa_symbol(function), for example, returning the physical address
of the jump table entry, which can lead to address space confusion
since the jump table itself points to a virtual address.

This change adds generic definitions for __pa/va_function, which
architectures that support CFI can override.

Bug: 166220312
Change-Id: If4a162de7854547d8437bf59be03eb6d16220832
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Git-commit: d509371db88a829fa13fbb066423b20fc4698845
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2020-09-16 06:51:23 -07:00
qctecmdr
653a9c02c2 Merge "msm: kgsl: Move the GMU kernel IOMMU device to the GMU platform device" 2020-09-15 18:31:50 -07:00
qctecmdr
56886dbc1a Merge "defconfig: lahaina-gki: enable qti-fixed-regulator driver" 2020-09-15 18:31:49 -07:00
David Collins
579e911c7a defconfig: lahaina-gki: enable qti-fixed-regulator driver
Enable the qti-fixed-regulator driver so that proxy consumer
voting may be used for fixed regulator devices.

Change-Id: Ibdbe3129de0a11f71d2c0adbae12659e6332f5fd
Signed-off-by: David Collins <collinsd@codeaurora.org>
2020-09-15 12:06:36 -07:00
David Collins
1797727401 regulator: add QTI fixed voltage regulator driver
Add a new QTI fixed voltage regulator driver that is derived from
the fixed voltage regulator driver.  Use this to provide support
for proxy consumer voting and debug features required on Qualcomm
Technologies, Inc. boards.  Implement this driver as a wrapper
around fixed.c with #ifdef directives so that future updates to
fixed.c are applied automatically to qti-fixed-regulator.c.

Change-Id: If4cf664b3f6a8214256a4b2de753f7ff27aa864e
Signed-off-by: David Collins <collinsd@codeaurora.org>
2020-09-15 12:06:35 -07:00
qctecmdr
31f07c0ce9 Merge "sched/fair: Improve the scheduler" 2020-09-15 08:24:19 -07:00
qctecmdr
05d1e38b39 Merge "msm: cvp: For DSP sessions, enhance CVP persist buffer release process" 2020-09-15 08:24:19 -07:00
qctecmdr
d54c36e840 Merge "msm: kgsl: Pass chipid in correct format to gmufw for A660 variant" 2020-09-15 08:24:18 -07:00
qctecmdr
2592f57116 Merge "cnss2: Avoid null pointer dereference of cnss_platform_cap" 2020-09-15 08:24:18 -07:00
qctecmdr
b8a0ce3faf Merge "Minidump: Dump only accessible pages data" 2020-09-15 08:24:17 -07:00
Odelu Kukatla
730027b90a interconnect: qcom: Update the number of DDR channels for Holi
DDR interface is (2x16), so update the number of channels to "2"
and bus width to "4".

Change-Id: I2e6c8f3ebe8cce38412dbcb5fe9032353d28b597
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2020-09-15 02:35:54 -07:00
Neeraj Upadhyay
b6e6912193 Minidump: Dump only accessible pages data
Check for accessible pages, before capturing the
page context, while dumping pointer data, for
CPU registers.

Change-Id: If7f38f0e3cb12e5c0ad85f8ed3140ce098108f62
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-09-15 12:01:01 +05:30
qctecmdr
550a843c8f Merge "rpmsg: glink: Add error message in case of callback failure" 2020-09-14 23:12:55 -07:00
qctecmdr
3b25a61cba Merge "rpmsg: glink: check channel state before serving intent" 2020-09-14 23:12:55 -07:00
qctecmdr
237a2bb4ec Merge "msm: kgsl: Enable HWCG after a6xx register configurations" 2020-09-14 23:12:54 -07:00
qctecmdr
bcaa466fc5 Merge "Merge android11-5.4.61+ (a564726) into msm-5.4" 2020-09-14 23:12:54 -07:00
qctecmdr
3b1ff0a366 Merge "soc: qcom: guestvm_loader: fix vm start print message" 2020-09-14 23:12:53 -07:00
qctecmdr
b85f85965e Merge "dma-buf: Cache the dma-buf inode number" 2020-09-14 23:12:53 -07:00
qctecmdr
158801d1ab Merge "defconfig: lahaina: Enable USB_BAM and USB_F_QDSS for GKI" 2020-09-14 20:12:26 -07:00
qctecmdr
f0921de704 Merge "mm: page_alloc: avoid fatal sig check for GFP_NOFS" 2020-09-14 20:12:26 -07:00
qctecmdr
c8c83a1c2b Merge "cnss2: Allow cold boot calibration skip for debug" 2020-09-14 20:12:25 -07:00
qctecmdr
19866d43dc Merge "arm64: defconfig: Enable misc config for debugging for Holi" 2020-09-14 20:12:25 -07:00
qctecmdr
3a7521fc46 Merge "soc: qcom: eud: Do not fail the EUD probe for secure device" 2020-09-14 20:12:25 -07:00
qctecmdr
65d212e2e0 Merge "clk: qcom: lahaina: Add runtime_pm support" 2020-09-14 17:26:15 -07:00
qctecmdr
26ef6f324c Merge "clk: qcom: clk-rpmh: Add div_clk1 for Lahaina" 2020-09-14 17:26:15 -07:00
Jordan Crouse
3b82217a24 msm: kgsl: Move the GMU kernel IOMMU device to the GMU platform device
In order to make devlink happy we need to bind an IOMMU device on the
primary GMU platform device.  Since we don't need GMU user yet the
decision is easy.  Move GMU kernel to the platform device instead
of a child.

Change-Id: Ic0dedbad082c57b2aeb6a35573ead8535f3b8ab9
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
2020-09-14 16:03:14 -06:00
Hareesh Gundu
c86af5a851 msm: kgsl: Enable HWCG after a6xx register configurations
For A6xx GPU enable hardware clock gating after register
configuration to avoid register access issue due to hardware
internal clock gating.

Change-Id: If55632ccf9171a7093bb1e925e4fcdb88066417c
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2020-09-14 10:09:54 -07:00
qctecmdr
7b54b39b21 Merge "soc: qcom: pil: track secure pages used by pil" 2020-09-14 06:19:36 -07:00
qctecmdr
c93faef925 Merge "serial: msm_geni_serial: Register normal suspend instead of suspend_noirq" 2020-09-14 06:19:36 -07:00
qctecmdr
6bebf92411 Merge "msm: kgsl: Add gcc_bimc_gpu_axi clock to smmu clock voteable list" 2020-09-14 06:19:35 -07:00
qctecmdr
9948a5bf34 Merge "defconfig: enable memlat hw log driver" 2020-09-14 06:19:35 -07:00
qctecmdr
522ef8875f Merge "clk: qcom: smd-rpm: Add panic notifier in HOLI" 2020-09-14 00:22:43 -07:00
qctecmdr
49212527fb Merge "mm/Kconfig: Default Enable LIMIT_MOVABLE_ZONE_ALLOC" 2020-09-14 00:22:43 -07:00
qctecmdr
35433c760e Merge "msm: kgsl: Skip state change in idle check, if requested state is NONE" 2020-09-14 00:22:42 -07:00
qctecmdr
1f716a06c5 Merge "msm-perf: Added node for perf notification" 2020-09-14 00:22:42 -07:00
Akash Asthana
47de94afaf serial: msm_geni_serial: Register normal suspend instead of suspend_noirq
While executing suspend_noirq callbacks non-wakeup interrupts are
disabled, wake-up interrupts are enabled but their handling is
deferred till the completion of suspend_noirq stage.

UART console vote/unvote the resources in suspend_noirq/resume_noirq
stages. There is no issue wrt managing clk and pinctrl resources at
noirq stage however ICC BW voting can't be done at noirq stage.

ICC requests are converted to ack based requested for RPM driver, the
ack here is nothing but interrupt from IPCC driver and it can't be
processed at noirq stage, hence flow is indefinitely stuck in UART
suspend_noirq callback.

Change-Id: Ie279580795d3c85db4dc42766b0b2d9a8adb3f00
Signed-off-by: Akash Asthana <akashast@codeaurora.org>
2020-09-14 12:39:01 +05:30
Sarannya S
873d5d2a58 rpmsg: glink: Add error message in case of callback failure
Sometimes due to late initialization glink callback may not be
initialized and incoming will be dropped.

Print error message if receive callback is not ready.

Change-Id: I3eae1717d4e1c14b319e288078d122762fd476e7
Signed-off-by: Sarannya S <sarannya@codeaurora.org>
2020-09-13 23:11:36 -07:00
Vinayak Menon
665cc127aa mm: page_alloc: avoid fatal sig check for GFP_NOFS
Some of the fs allocations like those for journalling
are critical and can cause a fatal error if allocation
fails. Avoid bailing out early in those cases, even if
a fatal signal is pending on the caller task.

Change-Id: Ib2803d763313b196123a4c1e2c66227b5d6e6e14
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
2020-09-13 22:43:37 -07:00
Deepak Kumar Singh
4831a6abdd rpmsg: glink: check channel state before serving intent
Receive callback can be registered even before rpmsg driver probe is
complete. Assuming callback register as channel ready and allowing
remote host to send data is incorrect. In such case for any rx packet
callback may return prematurely thereby dropping the rx packet.

Adding a flag to store channel state when it is ready. Check this flag
before allocating rx intent and allowing data communication to proceed.
It will ensure that client driver is able to receive data correctly,
without any rx packet getting dropped.

CRs-Fixed: 2747216
Change-Id: Ib153cfe5689f31d7417622bf6177e9535fda628a
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2020-09-14 10:58:44 +05:30
qctecmdr
4637ca5f0b Merge "msm: kgsl: Enable IFPC for A660 GPU variant" 2020-09-13 21:34:20 -07:00
qctecmdr
a6f1022c82 Merge "input: qcom-hv-haptics: read CAL_TLRA_CL_STS from SDAM after boot up" 2020-09-13 21:34:19 -07:00
qctecmdr
0f27a47479 Merge "power: step-chg-jeita: Add support to tune hysteresis for jeita-fcc-step" 2020-09-13 21:34:19 -07:00
qctecmdr
135494c096 Merge "power: battery: Fix typo for cp_slave channel name" 2020-09-13 21:34:18 -07:00
qctecmdr
abf363fab0 Merge "clk: qcom: gdsc-regulator: Update support to skip GDSC disable" 2020-09-13 21:34:18 -07:00
qctecmdr
f2de41e350 Merge "msm; kgsl: Correct secure pagetable pointer check" 2020-09-13 21:34:17 -07:00
qctecmdr
6688d82520 Merge "defconfig: lahaina-qgki: Enable CONFIG_PSTORE_PMSG" 2020-09-13 21:34:17 -07:00
richagar
5190e75017 msm-perf: Added node for perf notification
Added support for notifying hints from userspace

Change-Id: I3af1951614e4cd20826a595c6fca23b18c5a749b
Signed-off-by: richagar <richagar@codeaurora.org>
2020-09-13 21:23:41 -07:00
qctecmdr
98a140af35 Merge "sched/fair: Improve the scheduler" 2020-09-13 18:52:20 -07:00
Huang Yiwei
5213f0e7b7 defconfig: lahaina-qgki: Enable CONFIG_PSTORE_PMSG
Enable CONFIG_PSTORE_PMSG to collect user-space log.

Change-Id: I2c1a5482e7fe1bb28a953c777ecb7459b8958b9b
Signed-off-by: Huang Yiwei <hyiwei@codeaurora.org>
2020-09-14 09:36:36 +08:00