Commit Graph

6 Commits

Author SHA1 Message Date
Komal Bajaj
c0ceed81bc soc: qcom: Add check to handle out of bound access
Adding check in msm_minidump_add_region() to handle scenarios for
out of bound access while adding region in minidump table in SMEM.

Change-Id: Ic20663dbd2fa8ae96899930a7f7ba79dc204ff5e
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
2021-06-14 14:19:49 +05:30
Lingutla Chandrasekhar
facd0a72d9 Minidump: Add update region support for minidump regions
Add support to update client's entry physical/virtual addresses,
which is useful for DLKM, dynamic address changing clients.

Currently, msm_minidump_add_region() returns 0 on success, instead
of that, return 'region number' of the entry in the minidump table.

So clients who wants to update their address in future, needs to
book keep their entry in minidump table.

Change-Id: I03abbbd87bf6d2e11cf637525412d352772821cf
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
[neeraju@codeaurora: Add mdt_remove_lock to serialize with removal]
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-07-02 09:58:12 +05:30
Neeraj Upadhyay
dcc87ac4ac Makefile: Remove -fno-builtin cflag
Remove -fno-builtin cflag, to fix performance regression,
observed with this flag enabled. Also, fix the compilation
errors observed after removing the flag.

Change-Id: I515a4d043639109298008f95a25d8ed70417bdd8
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2020-04-15 11:42:57 -07:00
Lingutla Chandrasekhar
06312743e5 soc: qcom: Add entry removal support for Minidump
Some DLKM drivers can register its region with minidump
table. If the driver want to unload, then it should remove
the registered region in the minidump table.
So add the support to remove requested region.

Change-Id: If0f395516b45e9d7124a49763078f6dac4f50cda
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2019-10-07 14:30:35 -07:00
Rishabh Bhatnagar
e9a05bb4d3 spdx: Modify spdx tag from GPL-2.0 to GPL-2.0-only
Modify spdx tag for all CAF authored files for Kona.

Change-Id: I9308c7189412b1e428a7f67ded0dc076b0e38254
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2018-12-10 11:09:45 -08:00
Rishabh Bhatnagar
2f9a328164 soc: qcom: Add snapshot of minidump driver
This is a snapshot of minidump driver as of msm-4.14 commit
<d53d3a92c7a8065>. (Merge "cnss2: Add module parameter to
support different BDF types").

Change-Id: If6b899276538fe80d75855453263ffa21f30180f
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2018-09-07 12:06:12 -07:00