commit | 46a334a98f585ef78d51d8f5736596887bdd7f54 | [log] [tgz] |
---|---|---|
author | Tom Lendacky <thomas.lendacky@amd.com> | Mon Jan 23 16:53:08 2023 -0600 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Feb 03 12:54:54 2023 +0800 |
tree | e2ad29fc38b189e5b18cde8cc2a3749bcb41397a | |
parent | 7ce515e636ec1807723c30fd3a6181b4ccac6ec6 [diff] |
crypto: ccp - Flush the SEV-ES TMR memory before giving it to firmware Perform a cache flush on the SEV-ES TMR memory after allocation to prevent any possibility of the firmware encountering an error should dirty cache lines be present. Use clflush_cache_range() to flush the SEV-ES TMR memory. Fixes: 97f9ac3db661 ("crypto: ccp - Add support for SEV-ES to the PSP driver") Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>