I have an AMD 5800U based system. When I boot OpenWrt, I am seeing the module needed for for hw accel not loading:
# dmesg | grep -i ccp
[ 4.098273] ccp 0000:04:00.2: enabling device (0000 -> 0002)
[ 4.104660] ccp 0000:04:00.2: ccp: unable to access the device: you might be running a broken BIOS.
[ 7.588811] ccp_crypto: Cannot load: there are no available CCPs
[ 9.742383] ccp_crypto: Cannot load: there are no available CCPs
[ 10.120408] kmodloader: - ccp-crypto - 0
Yet if I boot the same hardware into Arch Linux running the same kernel version, the module loads fine:
# dmesg | grep -i ccp
[ 4.505785] ccp 0000:05:00.2: enabling device (0000 -> 0002)
[ 4.519217] ccp 0000:05:00.2: ccp: unable to access the device: you might be running a broken BIOS.
[ 4.529376] ccp 0000:05:00.2: tee enabled
[ 4.529382] ccp 0000:05:00.2: psp enabled
I did find this thread but found nothing in there I could use. Any advice is appreciated.
I also found this blog post suggesting that libopenssl-devcrypto needed to be on the system but enalbing it did not change the error for me.
I do not believe this is relevant at least in my case because if I boot to Arch Linux running the identical kernel version as OpenWrt, the module is loaded without error.
I don't think you can compare the two kernels that easy. OpenWrt applies different patches and therein may be the reason why the Arch kernel can work with the ccp module.
The current kernel Arch LTS seems to be 6.1.39 and you can the config file in their git. But it looks like they pull the official kernel and apply only one additional patch for that version.
You would have to check where you're kernel is coming from and what patches are applied. Assuming there are no ccp related patches, the difference would have to be in the ccp code itself (drivers/crypto/ccp). Or may create an issue on github for it.