For AMD SEV use correct command mask in ccp(4) driver.
authorbluhm <bluhm@openbsd.org>
Tue, 13 Aug 2024 20:48:00 +0000 (20:48 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 13 Aug 2024 20:48:00 +0000 (20:48 +0000)
commit5f28fd1bdf96ecaba7708fd1bc168a735b082b50
tree85133b5b21d54ebb6cdb43dd052926b9dfed4b74
parent0272cb5caf6c1add79ccc0b56bfd872c379e9fb2
For AMD SEV use correct command mask in ccp(4) driver.

According to AMD SEV API specification, the mask for command ID is
supposed to be of length 10 (Bits [25:16]), rather than length 6.
This ensures that all commands are properly processed by the PSP.

from Aaron Debebe; OK hshoexer@
sys/dev/ic/ccp.c