Age | Commit message (Collapse) | Author |
|
The "Trying to unmap vaddr" message doesn't appear to be an actual
error, so don't log it at that level.
Bug: 284220550
Change-Id: Iac6af686fbc478369faf90bb3ac15f1c6dde7f9b
Signed-off-by: Daniel Price <danielprice@google.com>
|
|
This updates our sources to CodeLinaro release
AU_LINUX_ANDROID_LW.UM.2.1.R1.11.00.00.200.040 (LW.UM.2.1.r1-04000-SW5100.0),
which corresponds to ChipCode LW 2.0 r00078.3a.
Bug: 280095980
Change-Id: If590b7f07a00b43ddf2c655afc514b72edad976e
Signed-off-by: Daniel Price <danielprice@google.com>
|
|
Bug: 280120653
Change-Id: I2acc06eda8eea8783400d86dc9f1bf775737a7a3
Signed-off-by: Ben Fennema <fennema@google.com>
|
|
sec-kernel.lnx.13.1.r9-rel
|
|
1) As per new design change to support 32bit targets, Qcedev driver
will work on buffer allocated using kmalloc instead of user buffer,
so using "memcpy" instead of "get_user" and "put_user".
2) Replaced "copy_from_user" and "copy_to_user" API with
"memmove" in case of 32bit target, as buffer allocated with kmalloc
is not compatible with these API.
Tests:
Validated all qcedev test in 32bit target and 64bit target
1)./qcedev_test -n (Nominal)
2)./qcedev_test -a (Adversarial)
3)./qcedev_test -r (Repeatabilty)
4)./qcedev_test -s (Stress)
5)./qcedev_test -p (Performance)
Change-Id: Ia9f9e55afcaca944cd376e4c1eb204da8d1d23cc
Signed-off-by: Shivangi Kesharwani <quic_skesharw@quicinc.com>
|
|
As INIT_WORK during suspend resume path is only
supported with bus scaling support hence use
the same check for flush_work and delete timer
Change-Id: I466d3f9fb7cfadf9db52703956ae83d3fd7409d8
Signed-off-by: Shivangi Kesharwani <quic_skesharw@quicinc.com>
|
|
Point to kernel/private/msm-google:OWNERS_pixelwatchbsp
Bug: 247160135
Change-Id: Id945e540026886182ac757324ed55c5e3389e5eb
Signed-off-by: Andrew Evans <andrewevans@google.com>
|
|
sec-kernel.lnx.13.1.r9-rel
Change-Id: I29c909a00b0f403862ad0f7d02eb1cbd639032e9
|
|
This updates our sources to CodeLinaro release
AU_LINUX_ANDROID_LW.UM.2.1.R1.11.00.00.200.031 (LW.UM.2.1.r1-03100-SW5100.0),
which corresponds to ChipCode LW 2.0 r00062.1a.
Bug: 276757489
Change-Id: Ie404e8a395fd1fc596b1d6d64dd19293e78aee32
Signed-off-by: Daniel Price <danielprice@google.com>
|
|
with 32 bit target." into sec-kernel.lnx.13.1.r9-rel
|
|
1) Replaced "get_user" and "put_user" API with
"memcpy" in case of 32bit target, as buffer allocated with kmalloc
is not compatible with these API.
2) Replaced "copy_from_user" and "copy_to_user" API with
"memmove" in case of 32bit target, as buffer allocated with kmalloc
is not compatible with these API.
Tests:
Validated all qcedev test in 32bit target and 64bit target
1)./qcedev_test -n (Nominal)
2)./qcedev_test -a (Adversarial)
3)./qcedev_test -r (Repeatabilty)
4)./qcedev_test -s (Stress)
5)./qcedev_test -p (Performance)
Change-Id: Ie2ac33f95afbb63652dfed0d1b37417a32dae02b
Signed-off-by: Shivangi Kesharwani <quic_skesharw@quicinc.com>
|
|
bit target.
1) Add qseecom_32bit_impl driver, replaced API "compat_alloc_user_space"
with "kmalloc" as it got deprecated in kernel.5.15.
2) Replaced "copy_from_user" and "copy_to_user" API with
"memmove" in case of 32bit target, as buffer allocated with kmalloc
is not compatible with these API.
Test:
Validated all qseecom sample app commands on below target configurations
1) Target where all applications are 32bit
2) Target where all applications are 64bit
3) Target which have both 32bit and 64bit application
Change-Id: Id66f05bc82a06a3c92eee23521065e3a3b25b8cc
Signed-off-by: Shivangi Kesharwani <quic_skesharw@quicinc.com>
|
|
bit target.
1) Add qseecom_32bit_impl driver, replaced API "compat_alloc_user_space"
with "kmalloc" as it got deprecated in kernel.5.15.
2) Replaced "copy_from_user" and "copy_to_user" API with
"memmove" in case of 32bit target, as buffer allocated with kmalloc
is not compatible with these API.
Test:
Validated all qseecom sample app commands on below target configurations
1) Target where all applications are 32bit
2) Target where all applications are 64bit
3) Target which have both 32bit and 64bit application
Change-Id: Id66f05bc82a06a3c92eee23521065e3a3b25b8cc
Signed-off-by: Shivangi Kesharwani <quic_skesharw@quicinc.com>
|
|
Change-Id: Id870ab4a173078a694c0d16f84670767a81d2ebd
|
|
Only modify qseecom.bw_scale_down_timer and qseecom.timer_running when
qseecom.support_bus_scaling is true, since it is only initially setup in
qseecom_init_bus when it is true.
Bug: 271711990
Change-Id: I8fb3c8b6e5ca1a97b5beed22b8da4966a66667c0
Signed-off-by: Ben Fennema <fennema@google.com>
|
|
As INIT_WORK during suspend resume path is
only supported with bus scaling support
hence use the same check for flush_work.
Change-Id: I5172d574a2bc33a1cdba1fead7e6c4208648448c
Signed-off-by: Monika Singh <monising@codeaurora.org>
|
|
Disable creation of hyp_general, hyp_log and rm_log directories if hypervisor is disabled.
Change-Id: I5a7b73dd9dbda9c438d99b1e644a201367eb124f
|
|
|
|
queue
call release tz object in sync manner
only in case of EBUSY add
object in to post process list, so that we can retry
and process it later in a seprate kthread.
Change-Id: I2158b3faa5c41d2f10ed532c50c9c6b113961c57
|
|
This change makes changes to smcinvoke driver to handle suspend and resume
scenarios. If the accept thread gets interrupted, do not set the server state
as defunct if the thread is in freezing state, i.e. if the thread is going in
suspend. In such cases, increase timeout of that server so that invoke thread
waits indefinitely for response from userspace until the system resumes back.
Also in case the accept thread has invalid cbtxn, start waitingfor new requests
instead of going to userspace and then coming back.
Change-Id: Id92aa9f46e38e075f658fc4f6f842296c8721ba4
|
|
Add API qseecom_create_key_in_slot that is only for FDE.
And enable kernel call to qseecom module.
Change-Id: I219c30457da0f23b59e1f3405962cd390735ee3b
Signed-off-by: jianshu <quic_jianshu@quicinc.com>
|
|
Change adci methods call on rootEnv from clientEnv as per
QTEE implementation.
Change-Id: Ib1ca4312844f6f3dedbfb639e5b83f71d97ecc68
|
|
with 32 bit target."
This reverts commit b5f2395e174c0780793d625794f682b2e1fe6c7a.
Change-Id: I17f4c4b61eed46b5ed759eeabb6fabf44e588a4f
Signed-off-by: Shivangi Kesharwani <quic_skesharw@quicinc.com>
|
|
Change-Id: Ib1e2054bfe7f0eb0ecc7b8b343a8a173df02dfeb
Signed-off-by: Pawan Rai <quic_pawarai@quicinc.com>
|
|
This updates our sources to CodeLinaro release
AU_LINUX_ANDROID_LW.UM.2.1.R1.11.00.00.200.024 (LW.UM.2.1.r1-02400-SW5100.0),
which corresponds to ChipCode LW 2.0 r00040.3.
Bug: 268128919
Change-Id: I33b534cb3081b6ba9d560ca380ea5306a65e8126
Signed-off-by: Andrei Ciubotariu <aciubotariu@google.com>
|
|
compile compat_qcedev.c when CONFIG_COMPAT is enabled
Tests: Build compilation successful
Change-Id: I4e286d56ea2fd4f27eb6fdc3ad9ca6add407f088
Signed-off-by: Pranav Lavhate <quic_plavhate@quicinc.com>
|
|
sec-kernel.lnx.13.1.r9-rel
Change-Id: I8ff4752aab38ed594dabb1539bbe250653d0ce7a
|
|
Move uapi header files to include/uapi
Bug: 263990905
Change-Id: Iab6db2d95ab52348042e245fd71bdd1f4dd4358b
Signed-off-by: Ben Fennema <fennema@google.com>
|
|
|
|
Adapted the latest IClientEnv adci and other
interface methods from QTEE.
Change-Id: I05730e56d656977fbc53a2d3dedb04426474be1c
|
|
Currently the default make target causes the mm modules to be
compiled, which is all that is needed. However, the target is
written such that it will cause the kernel's makefile to be invoked
with the "all" target, which unnecessarily recompiles the devicetree.
Fix this by ensuring that the default rule only compiles the kernel
modules.
Bug: 264944277
Change-Id: I631481b585e8d1f9c864fcba99ae0a066e1e68ad
Signed-off-by: Ben Fennema <fennema@google.com>
|
|
req_done is usually scheduled on success scenarios as
it needs to wakeup the sleep thread. However, in the
scenario where sleep has timed out, there is nothing to
wake up, and req_done can be called sequentially instead
of scheduling it (which might cause use after free).
Change-Id: I296076fcb43d91d16b00f08819dca45bd9049198
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
|
|
Currently, timer and pause error is determined by checking
the symptom bits (TIMER_EXPIRED and PAUSE_DET). This causes
a contention when both of these are set, but a pause error
occurs, as timer expiry is prioritized.
Instead, check the actual error bits (TIMER_ERROR and
PAUSE_ERROR) which is a more accurate representation of
the decrypt error.
Change-Id: Ie7c67554256c19c52ae719c09e7ceb0a57eff109
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
|
|
|
|
|
|
1. Adding qrng in first stage module saved ~900ms in boringssl
test for Divar chipset on kernel-5.15
2. Adding qseecom in first stage module saved ~800ms in qseecom
daemon start during bootup for Divar chipset on kernel-5.15
Change-Id: Ideda4f13165a0043b12936b7507e297190a4d04e
|
|
Handle crypto errors and timeouts better leaving room
for lesser sync issues (especially during timeouts).
Also, support the crypto status changes in the v5.8
CE engine.
Also resolved merge conflicts.
Tests: compilation and qcedev tests passed.
Change-Id: I78f0c6596c235f702c19b21f076c018cad423658
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
Signed-off-by: Pranav Lavhate <quic_plavhate@quicinc.com>
|
|
Change consists creation of ADCI thread at SMCInvoke
driver initialization
Change consists creation of ADCI thread at SMCInvoke driver initialization
Following scenario have been tested for this change
(1) ADCI thread creation and QTEE invocation during driver initialization
(2) Backward Compatibility - IF ADCI feature is not supported (OBJECT_ERROR_INVALID)
then exit the ADCI thread gracefully after cleaning up all the resources
(3) Leak Test: All the resources held by ADCI thread should be released if ADCI feature
is not supported by QTEE
(i) adci task_struct state and exit state:
state = TASK_RUNNING , exit_state = 0 (While ADCI thread execution)
state = TASK_DEAD , exit_state = EXIT_DEAD (During ADCI thread termination)
(ii) adci task_struct = NULL (fetched based on adci thread_id) which make sure
task_struct has been deallocated
(4) SMCInvoke related Test: All the internal(suuported),memobj and cbo testing has been performed.
Change-Id: I2916ce260fae293b88fbc8b9d24baccdee1ea89f
Signed-off-by: Pawan Rai <quic_pawarai@quicinc.com>
|
|
Return value of function is int32_t and storing return value in
uint32_t will lead to integer underflow issue. Change variable
from uint32_t to int32_t to handle negative integer values.
Change-Id: I6d8525e9ee4a138c96933674f5f828e19794258b
Signed-off-by: Disha Galve <quic_dgalve@quicinc.com>
|
|
bit target.
1) Add qseecom_32bit_impl driver, replaced API "compat_alloc_user_space"
with "kmalloc" as it got deprecated in kernel.5.15.
2) Replaced "copy_from_user" and "copy_to_user" API with
"memmove" in case of 32bit target, as buffer allocated with kmalloc
is not compatible with these API.
Change-Id: Ia2170ffd8997804df3ac4f3db9bd07c419663b7d
Signed-off-by: Shivangi Kesharwani <quic_skesharw@quicinc.com>
|
|
|
|
Enable qseecom kernel module for lemans board.
Change-Id: Iebb0e9cd657ef92c18c4e5cb974ab0f5844e4efa
Signed-off-by: jianshu <quic_jianshu@quicinc.com>
|
|
during smcinvoke callback response handling.
Add Cache flush before invalidating out_buf during cb
response handling in smcinvoke driver.
Change-Id: I68b70c078675f1841690c93048cbba3589a388f3
|
|
Use the legacy command for sending any data
to trusted application if the app name
is slateapp. As trusted application is not
expecting sglistinfo in case of slate app load
command.
Test:
1) Loaded Slateapp ->Reboot->Run Slateapp load command.
echo start > /sys/class/remoteproc/remoteproc0/state
2) Check Slateapp status
cat /sys/class/remoteproc/remoteproc0/state --> running
3) Validated HLOS and Qseelogs
Change-Id: Iecbe75c45b253ef87de3306b89b50c39008550fe
Signed-off-by: Shivangi Kesharwani <quic_skesharw@quicinc.com>
|
|
Change-Id: Ied92d1cb0a057f6f9b69786bc6b8b87aff78c487
|
|
Add support for qcom,commonlib-loaded-by-hostvm
to use commonlib loaded by host VM.
Change-Id: I3a9f08bb53dde7545f518247ae885411ae8eef64
Signed-off-by: venkata sateesh <quic_vencher@quicinc.com>
Signed-off-by: Nishant Raj <quic_nishraj@quicinc.com>
|
|
Change-Id: Ia4d16a90d181bf3eb791daa88142aeb6e9242025
|
|
1) Add compat qseecom driver, replaced API "compat_alloc_user_space"
with "kmalloc" as it got deprecated in kernel.5.15.
2) Replaced "copy_from_user" and "copy_to_user" API with
"memcpy" as buffer allocated with kmalloc is not compatible with these API.
Change-Id: Ia2170ffd8997804df3ac4f3db9bd07c419663b7d
Signed-off-by: Shivangi Kesharwani <quic_skesharw@quicinc.com>
|
|
Removed name from log message
Test:Compiled and boot up tested.
Change-Id: Ia5c21710a63bb2e461259cf07951c579c3c95bee
Signed-off-by: Indranil Pradhan <quic_ipradhan@quicinc.com>
|
|
Change-Id: I93d4baa2850978540806fc2cbf31e6f096294afb
|