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>
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>
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>
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>
Modify spdx tag for all CAF authored files for Kona.
Change-Id: I9308c7189412b1e428a7f67ded0dc076b0e38254
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
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>