]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto/ccp: Allow multiple streams on the same root bridge
authorAlexey Kardashevskiy <aik@amd.com>
Fri, 23 Jan 2026 05:30:57 +0000 (16:30 +1100)
committerDan Williams <dan.j.williams@intel.com>
Fri, 30 Jan 2026 22:27:53 +0000 (14:27 -0800)
commitc2012263047689e495e81c96d7d5b0586299578d
treef8131de4c3387feb0a364a7bef32c26d7da0c272
parent403dd7da22461b0c7fd18d5cd4373b9a1ec8b5f7
crypto/ccp: Allow multiple streams on the same root bridge

With SEV-TIO the low-level TSM driver is responsible for allocating a
Stream ID. The Stream ID needs to be unique within each IDE partner
port. Fix the Stream ID selection to reuse the host bridge stream
resource id which is a pool of 256 ids per host bridge on AMD platforms.
Otherwise, only one device per-host bridge can establish Selective
Stream IDE.

Fixes: 4be423572da1 ("crypto/ccp: Implement SEV-TIO PCIe IDE (phase1)")
Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://patch.msgid.link/20260123053057.1350569-3-aik@amd.com
[djbw: clarify end user impact in changelog]
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/crypto/ccp/sev-dev-tsm.c