mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mario Limonciello <mario.limonciello@amd.com>
To: Mattia Tadini <info@mtsistemi.it>,
	Tom Lendacky <thomas.lendacky@amd.com>,
	John Allen <john.allen@amd.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>
Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] crypto: ccp - two PSP init fixes, and the AMD BC-250
Date: Mon, 21 Sep 2026 10:10:42 -0500	[thread overview]
Message-ID: <10469a97-1e55-438b-a9cc-7a7cf650c104@amd.com> (raw)
In-Reply-To: <178984289056.12336.17662860552012704364@mtsistemi.it>



On 9/19/26 13:34, Mattia Tadini wrote:
> The AMD BC-250 is a Zen 2 APU board (Cyan Skillfish) sold as surplus mining
> hardware and now used as a small desktop by a fair number of people. It carries
> an AMD Secure Processor at PCI 1022:143e that sp_pci_table[] does not match, so
> the device has always been left unbound with its memory windows disabled.
> 
> Adding the ID turned out to need two fixes first, both of the same shape: the
> driver decides what to bring up from the hardware capability register alone,
> and then uses the psp_vdata pointers for those features without checking that
> this device has them. On this board the two disagree, because the firmware
> advertises a TEE whose ring never comes up.
> 
> Patch 1 is a NULL pointer dereference in the sysfs is_visible callback. It
> oopses during probe. It needs no new hardware to be reachable in principle:
> any device whose firmware sets the TEE capability bit while its psp_vdata
> carries no tee data hits it, which today means pspv1 and pspv2 parts. I have
> only observed it on the BC-250, so I have not added a stable tag - please add
> one if you think it deserves it.
> 
> Patch 2 stops a failed optional sub-device from taking down the rest of the
> PSP. Without it, a psp_vdata that deliberately omits TEE gets nothing at all,
> platform access included.
> 
> Patch 3 adds the board. The register layout was read off the device rather
> than assumed, and the numbers are in the commit message.
> 
> Tested on a BC-250 running 7.2.6. Before:
> 
>    01:00.2 Encryption controller: AMD Device 143e
>            Memory at fe700000 [disabled] [size=1M]
>            Memory at fe884000 [disabled] [size=8K]
>            (no driver)
> 
> After:
> 
>    ccp 0000:01:00.2: enabling device (0000 -> 0002)
>    ccp 0000:01:00.2: platform access enabled
>    ccp 0000:01:00.2: psp enabled
>    # cat /sys/bus/pci/devices/0000:01:00.2/bootloader_version
>    00.1c.01.02
> 
> with the platform mailbox answering commands. Dynamic boost control is probed
> and cleanly rejected by this firmware, and HSTI reports nothing because the
> security reporting capability bit is clear. There is no CCP crypto engine
> behind this function: the version register at 0x100 reads back all ones.
> 
> The series is against v7.2.6 and touches only drivers/crypto/ccp/.
> 
> Mattia Tadini (3):
>    crypto: ccp - fix NULL dereference in psp_firmware_is_visible()
>    crypto: ccp - do not start PSP sub-devices without their vdata
>    crypto: ccp - add support for the AMD BC-250 secure processor
> 
>   drivers/crypto/ccp/psp-dev.c |  8 ++++++--
>   drivers/crypto/ccp/sp-pci.c  | 24 +++++++++++++++++++++++-
>   2 files changed, 29 insertions(+), 3 deletions(-)
> 

Sorry; but what's the point of adding support?  You can't access the 
crypto engine, it doesn't run SEV or TEE, it doesn't support DBC, it 
doesn't report HSTI.

It seems that the capability register isn't even populated on this system.

To me it appears the patch series is a lot of "fixes" to let you 
read.... the bootloader version.  Am I missing something else?

  parent reply	other threads:[~2026-09-21 15:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-19 18:34 Mattia Tadini
2026-09-19 18:34 ` [PATCH 2/3] crypto: ccp - do not start PSP sub-devices without their vdata Mattia Tadini
2026-09-19 18:34 ` [PATCH 1/3] crypto: ccp - fix NULL dereference in psp_firmware_is_visible() Mattia Tadini
2026-09-19 20:25   ` Mattia Tadini
2026-09-19 18:34 ` [PATCH 3/3] crypto: ccp - add support for the AMD BC-250 secure processor Mattia Tadini
2026-09-21 15:10 ` Mario Limonciello [this message]
2026-09-22 10:05   ` [PATCH 0/3] crypto: ccp - two PSP init fixes, and the AMD BC-250 Mattia Tadini
2026-09-22 10:33     ` Mario Limonciello
2026-09-22 14:42       ` Tom Lendacky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10469a97-1e55-438b-a9cc-7a7cf650c104@amd.com \
    --to=mario.limonciello@amd.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=info@mtsistemi.it \
    --cc=john.allen@amd.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thomas.lendacky@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®