Bug 655

Summary: Support linux running on systems with both Libre-SOC and non-Libre-SOC cpus, or cpus with different feature sets
Product: Libre-SOC's first SoC Reporter: Jacob Lifshay <programmerjake>
Component: Source CodeAssignee: Luke Kenneth Casson Leighton <lkcl>
Status: CONFIRMED ---    
Severity: enhancement CC: libre-soc-bugs
Priority: ---    
Version: unspecified   
Hardware: Other   
OS: Linux   
NLnet milestone: --- total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for this task, excluding subtasks' budget: 0 parent task for budget allocation:
child tasks for budget allocation: The table of payments (in EUR) for this task; TOML format:

Description Jacob Lifshay 2021-07-02 16:16:20 BST
Look at how Linux is handling a similar thing for Arm64 where just some of the cpus support 32-bit:

https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.14-ARM64

https://lore.kernel.org/patchwork/patch/1436130/

Find callers of system_32bit_el0_cpumask in the kernel and use that as inspiration to do something similar
Comment 1 Luke Kenneth Casson Leighton 2021-07-02 16:22:01 BST
this would tie in closely with EABI features, yes it's good to see
this going into other ISAs, first, it sets a precedent that can be
followed.