Skip to content

How to handle heterogeneous core configs? #8

Description

@docularxu

I noticed that you check cpu0 and use cpu0 as a representation of all other cores in the system.

I have this question, what if the cores' configurations are different? At least in the linux kernel, it treats the each core/hart as they could have a different config (extension list).

Refer to linux kernel arch/riscv/kernel/cpufeature.c
struct riscv_isainfo hart_isa[NR_CPUS];

For VLEN, I agree with you, currently mainline linux kernel doesn't support heterogeneous vector length. Although it may exist in the vendor's downstream tree, such as in a K3 (8 cores 256, 8 cores 1024). Do you have any plan to handle that?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions