Re: [PATCH V8 02/44] Documentation/protection-keys: Clean up documentation for User Space pkeys

Dave Hansen
2022-02-01T23:54:24Z

On 2/1/22 15:49, Ira Weiny wrote:
>> Protection Keys for Userspace (PKU) can be found on:
>> * Intel server CPUs, Skylake and later
>> * Intel client CPUs, Tiger Lake (11th Gen Core) and later
>> * Future AMD CPUs
>>
>> It would be great if the AMD folks can elaborate on that a bit, but I
>> understand it might not be possible if the CPUs aren't out yet.
> Updated.
>
> But I'm leery about putting in any information about AMD CPU's. Who could I
> ask directly?

I forgot who from AMD was chiming in on pkeys. So, I did:

git log --author=amd.com arch/x86/

and searched for 'keys'. I came up with this pretty quickly:

> commit 38f3e775e9c242f5430a9c08c11be7577f63a41c
> Author: Babu Moger <babu.moger@amd.com>
> Date: Thu May 28 11:08:23 2020 -0500
>
> x86/Kconfig: Update config and kernel doc for MPK feature on AMD
>
> AMD's next generation of EPYC processors support the MPK (Memory
> Protection Keys) feature. Update the dependency and documentation.
>
> Signed-off-by: Babu Moger <babu.moger@amd.com>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
> Link: https://lkml.kernel.org/r/159068199556.26992.17733929401377275140.stgit@naples-babu.amd.com
You also don't have to go out and find this information for your
documentation. Just say "future" and then poke the AMD folks.