diff options
| author | Chang S. Bae <[email protected]> | 2020-05-28 20:13:56 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2020-06-18 13:47:04 +0000 |
| commit | eaad981291ee36efee15a5e515d4598ae94ace07 (patch) | |
| tree | 0e3621526e6d949461a6a25f0f704cac93a2c31d /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | x86/entry/64: Switch CR3 before SWAPGS in paranoid entry (diff) | |
| download | kernel-eaad981291ee36efee15a5e515d4598ae94ace07.tar.gz kernel-eaad981291ee36efee15a5e515d4598ae94ace07.zip | |
x86/entry/64: Introduce the FIND_PERCPU_BASE macro
GSBASE is used to find per-CPU data in the kernel. But when GSBASE is
unknown, the per-CPU base can be found from the per_cpu_offset table with a
CPU NR. The CPU NR is extracted from the limit field of the CPUNODE entry
in GDT, or by the RDPID instruction. This is a prerequisite for using
FSGSBASE in the low level entry code.
Also, add the GAS-compatible RDPID macro as binutils 2.23 do not support
it. Support is added in version 2.27.
[ tglx: Massaged changelog ]
Suggested-by: H. Peter Anvin <[email protected]>
Signed-off-by: Chang S. Bae <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions
