diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2024-09-24 15:32:20 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-09-24 15:32:20 +0800 |
commit | 34e3c4500cdc06094b37a41b622598098308ba8f (patch) | |
tree | 8e4f982087039a3a5d0d1ddde08c008c531bd98d /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
parent | d0bb0b600081bc7c246b97b2901abbb6c357ff7b (diff) |
LoongArch: Rework CPU feature probe from CPUCFG/IOCSR
Probe ISA level, TLB, IOCSR information from CPUCFG to improve kernel
resilience to different core implementations.
BTW, IOCSR register definition appears to be a platform-specific spec
instead of an architecture spec, even for the Loongson CPUs there is no
guarantee that IOCSR will always present.
Thus it's dangerous to perform IOCSR probing without checking CPU type
and instruction availability.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions