* [PATCH] Documentation/protection-keys: Mark as available on AMD
@ 2025-11-19 14:01 Daniel Tang
2025-11-19 21:50 ` Borislav Petkov
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Tang @ 2025-11-19 14:01 UTC (permalink / raw)
To: linux-doc
Cc: x86, linux-kernel, Ira Weiny, Dave Hansen, Babu Moger,
Borislav Petkov
According to https://www.phoronix.com/news/AMD-PRM-PCID-PKEY .
Tested on a 5900X via the program in pkeys(7) and
`grep ospke /proc/cpuinfo`.
---
Documentation/core-api/protection-keys.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/core-api/protection-keys.rst b/Documentation/core-api/protection-keys.rst
index 7eb7c6023e09..59e7c178af4b 100644
--- a/Documentation/core-api/protection-keys.rst
+++ b/Documentation/core-api/protection-keys.rst
@@ -11,7 +11,7 @@ application changes protection domains.
Pkeys Userspace (PKU) is a feature which can be found on:
* Intel server CPUs, Skylake and later
* Intel client CPUs, Tiger Lake (11th Gen Core) and later
- * Future AMD CPUs
+ * AMD Zen 3 and later
* arm64 CPUs implementing the Permission Overlay Extension (FEAT_S1POE)
x86_64
--
2.51.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] Documentation/protection-keys: Mark as available on AMD
2025-11-19 14:01 [PATCH] Documentation/protection-keys: Mark as available on AMD Daniel Tang
@ 2025-11-19 21:50 ` Borislav Petkov
2025-11-20 0:47 ` [PATCH v2] " Daniel Tang
2025-11-20 1:08 ` [PATCH] " Daniel Tang
0 siblings, 2 replies; 4+ messages in thread
From: Borislav Petkov @ 2025-11-19 21:50 UTC (permalink / raw)
To: Daniel Tang
Cc: linux-doc, x86, linux-kernel, Ira Weiny, Dave Hansen, Babu Moger,
Borislav Petkov
On Wed, Nov 19, 2025 at 09:01:30AM -0500, Daniel Tang wrote:
> According to https://www.phoronix.com/news/AMD-PRM-PCID-PKEY .
Please don't quote some webpage but dig out the processor programming
references and find the OSPKE bit:
https://www.amd.com/en/search/documentation/hub.html#sortCriteria=%40amd_release_date%20descending&f-amd_document_type=Programmer%20References
Hint: document numbers 55898 for Zen3 and 56176 for Zen2 and you can compare
which one adds the bit, and then say which document that is.
No need to add the link to it - people can then find the document by
themselves because those vendor URLs are not stable either. :-\
> Tested on a 5900X via the program in pkeys(7) and
> `grep ospke /proc/cpuinfo`.
<-- You need to add your Signed-off-by: here.
You can check out:
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
> ---
> Documentation/core-api/protection-keys.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/core-api/protection-keys.rst b/Documentation/core-api/protection-keys.rst
> index 7eb7c6023e09..59e7c178af4b 100644
> --- a/Documentation/core-api/protection-keys.rst
> +++ b/Documentation/core-api/protection-keys.rst
> @@ -11,7 +11,7 @@ application changes protection domains.
> Pkeys Userspace (PKU) is a feature which can be found on:
> * Intel server CPUs, Skylake and later
> * Intel client CPUs, Tiger Lake (11th Gen Core) and later
> - * Future AMD CPUs
> + * AMD Zen 3 and later
> * arm64 CPUs implementing the Permission Overlay Extension (FEAT_S1POE)
>
> x86_64
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH v2] Documentation/protection-keys: Mark as available on AMD
2025-11-19 21:50 ` Borislav Petkov
@ 2025-11-20 0:47 ` Daniel Tang
2025-11-20 1:08 ` [PATCH] " Daniel Tang
1 sibling, 0 replies; 4+ messages in thread
From: Daniel Tang @ 2025-11-20 0:47 UTC (permalink / raw)
To: Borislav Petkov
Cc: linux-doc, x86, linux-kernel, Ira Weiny, Dave Hansen, Babu Moger
This is shown on page 78 of AMD document 55898 "Preliminary Processor
Programming Reference (PPR) for AMD Family 19h Model 01h, Revision B1
Processors Volume 1 of 2" for Zen 3.
I tested this on my 5900X via the program in pkeys(7) and
`grep ospke /proc/cpuinfo`.
Signed-off-by: Daniel Tang <danielzgtg.opensource@gmail.com>
---
Documentation/core-api/protection-keys.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/core-api/protection-keys.rst b/Documentation/core-api/protection-keys.rst
index 7eb7c6023e09..59e7c178af4b 100644
--- a/Documentation/core-api/protection-keys.rst
+++ b/Documentation/core-api/protection-keys.rst
@@ -11,7 +11,7 @@ application changes protection domains.
Pkeys Userspace (PKU) is a feature which can be found on:
* Intel server CPUs, Skylake and later
* Intel client CPUs, Tiger Lake (11th Gen Core) and later
- * Future AMD CPUs
+ * AMD Zen 3 and later
* arm64 CPUs implementing the Permission Overlay Extension (FEAT_S1POE)
x86_64
--
2.51.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] Documentation/protection-keys: Mark as available on AMD
2025-11-19 21:50 ` Borislav Petkov
2025-11-20 0:47 ` [PATCH v2] " Daniel Tang
@ 2025-11-20 1:08 ` Daniel Tang
1 sibling, 0 replies; 4+ messages in thread
From: Daniel Tang @ 2025-11-20 1:08 UTC (permalink / raw)
To: Borislav Petkov
Cc: linux-doc, x86, linux-kernel, Ira Weiny, Dave Hansen, Babu Moger
On Wednesday, 19 November 2025, 16:50:38 EST Borislav Petkov <bp@alien8.de> wrote:
> 55898 for Zen3
Added mention.
> 56176 for Zen2
I was unable to locate that document. AMD's website had redirects, and
linkrot affected wikichip.org and github.com/amd/amd_energy. I'll just
leave it out.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-11-20 1:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-19 14:01 [PATCH] Documentation/protection-keys: Mark as available on AMD Daniel Tang
2025-11-19 21:50 ` Borislav Petkov
2025-11-20 0:47 ` [PATCH v2] " Daniel Tang
2025-11-20 1:08 ` [PATCH] " Daniel Tang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).