linux-firmware: Add AMD SEV firmware

Add AMD Secure Encrypted Virtualization (SEV) firmware to allow for the
updating of the SEV firmware outside of BIOS releases. Naming convention
and directory structure follows the convention defined in the kernel
driver in drivers/crypto/ccp/psp-dev.c

SEV firmware files are to be placed in the "amd" directory and names
should follow the pattern: amd_sev_fam<FAMILY>h_model<MODEL>h.sbin

where FAMILY is the two-digit hexadecimal value of the target processor
family (e.g. 17)

where MODEL is the two-digit hexadecimal value of the target processor
model (e.g. 01) or where the least significant nibble of the two-digit
hexadecimal value can be an 'x' to indicate a range of models
(e.g. 0x for 00 to of).

The firmware provided is version 0.17 build 11 and is for AMD family
17h processors with models in the range 00h to 0fh.

Signed-off-by: John Allen <john.allen@amd.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This commit is contained in:
Allen, John 2019-02-13 18:41:48 +00:00 committed by Josh Boyer
parent 54b0a748c8
commit 9ee52be785
No known key found for this signature in database
GPG Key ID: A31B6BD72486CFD6
3 changed files with 73 additions and 0 deletions

64
LICENSE.amd-sev Normal file
View File

@ -0,0 +1,64 @@
Copyright (C) 2015-2019 Advanced Micro Devices, Inc., All rights reserved.
Permission is hereby granted by Advanced Micro Devices, Inc. ("AMD"),
free of any license fees, to any person obtaining a copy of this
microcode in binary form (the "Software") ("You"), to install,
reproduce, copy and distribute copies of the Software and to permit
persons to whom the Software is provided to do the same, subject to
the following terms and conditions. Your use of any portion of the
Software shall constitute Your acceptance of the following terms and
conditions. If You do not agree to the following terms and conditions,
do not use, retain or redistribute any portion of the Software.
If You redistribute this Software, You must reproduce the above
copyright notice and this license with the Software.
Without specific, prior, written permission from AMD, You may not
reference AMD or AMD products in the promotion of any product derived
from or incorporating this Software in any manner that implies that
AMD endorses or has certified such product derived from or
incorporating this Software.
You may not reverse engineer, decompile, or disassemble this Software
or any portion thereof.
THE SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED
WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY, NONINFRINGEMENT, TITLE, FITNESS FOR ANY PARTICULAR
PURPOSE, OR WARRANTIES ARISING FROM CONDUCT, COURSE OF DEALING, OR
USAGE OF TRADE. IN NO EVENT SHALL AMD OR ITS LICENSORS BE LIABLE FOR
ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR
LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF DATA OR
INFORMATION) ARISING OUT OF AMD'S NEGLIGENCE, GROSS NEGLIGENCE, THE
USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF AMD HAS BEEN ADVISED
OF THE POSSIBILITY OF SUCH DAMAGES. BECAUSE SOME JURISDICTIONS
PROHIBIT THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR
INCIDENTAL DAMAGES OR THE EXCLUSION OF IMPLIED WARRANTIES, THE ABOVE
LIMITATION MAY NOT APPLY TO YOU.
Without limiting the foregoing, the Software may implement third party
technologies for which You must obtain licenses from parties other
than AMD. You agree that AMD has not obtained or conveyed to You, and
that You shall be responsible for obtaining the rights to use and/or
distribute the applicable underlying intellectual property rights
related to the third party technologies. These third party
technologies are not licensed hereunder.
If You use the Software (in whole or in part), You shall adhere to all
applicable U.S., European, and other export laws, including but not
limited to the U.S. Export Administration Regulations ("EAR"), (15
C.F.R. Sections 730 through 774), and E.U. Council Regulation (EC) No
1334/2000 of 22 June 2000. Further, pursuant to Section 740.6 of the
EAR, You hereby certify that, except pursuant to a license granted by
the United States Department of Commerce Bureau of Industry and
Security or as otherwise permitted pursuant to a License Exception
under the U.S. Export Administration Regulations ("EAR"), You will not
(1) export, re-export or release to a national of a country in Country
Groups D:1, E:1 or E:2 any restricted technology, software, or source
code You receive hereunder, or (2) export to Country Groups D:1, E:1
or E:2 the direct product of such technology or software, if such
foreign produced direct product is subject to national security
controls as identified on the Commerce Control List (currently found
in Supplement 1 to Part 774 of EAR). For the most current Country
Group listings, or for additional information about the EAR or Your
obligations under those regulations, please refer to the U.S. Bureau
of Industry and Securitys website at ttp://www.bis.doc.gov/.

9
WHENCE
View File

@ -3311,6 +3311,15 @@ Licence: Redistributable. See LICENCE.go7007 for details
--------------------------------------------------------------------------
Driver: ccp - Platform Security Processor (PSP) device
File: amd/amd_sev_fam17h_model0xh.sbin
Version: 2019-02-13
License: Redistributable. See LICENSE.amd-sev for details
--------------------------------------------------------------------------
Driver: microcode_amd - AMD CPU Microcode Update Driver for Linux
File: amd-ucode/microcode_amd.bin

Binary file not shown.