Skip to content

Has this linux 4.5 with optee drivers tested on aarch64? #5

@sakjain92

Description

@sakjain92

I am facing issues on arm aarch64. For example the following code in core.c in optee driver:
invoke_fn(OPTEE_SMC_CALLS_UID, 0, 0, 0, 0, 0, 0, 0, &res);

As all arguments are expected to be 64 bit, OPTEE_SMC_CALLS_UID is signed extended to 64 making the higher 32 bits are all '1'.

This is causing issues with OPTEE and it is not able to recognize the SMC function id.

Has OPTEE 2.0.0 tested on a aarch64 platform or am I doing something wrong?

I guess macros such as

define ARM_SMCCC_FAST_CALL 1

define ARM_SMCCC_STD_CALL 0

needs to be replaced by

define ARM_SMCCC_FAST_CALL 1U

define ARM_SMCCC_STD_CALL 0U

in file include/linux/arm-smccc.h or change in optee function id comparision (optee os compares this function id value with unsigned value)

After the above mentioned changed, my xtests are running on aarch64 platform

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions