+18
−4
Loading
Merge Pull Request from: @hanliyang Support DOWNLAOD_FIRMWARE for Hygon CSV issue: https://gitee.com/open_euler/dashboard?issue_id=I98VXP 1. Allows Cryptographic Co-Processor driver to update the CSV firmware during module init. Once the CSV support on Hygon PSP is detected in the driver, the driver will load firmware files from filesystem and update the firmware. 2. Add the user-space ioctl interface to update CSV firmware at runtime, without re-insmod the driver. Test: 1. Save csv.fw in the root path /lib/firmware/hygon/, insmod Cryptographic Co-Processor driver, we can see that the CSV firmware is updated. 2. Save csv.fw on the disk, use gadget hag to updating CSV firmware, we can see that the CSV firmware is updated. 3. After step2, the platform stays in UNINIT state, use gadget hag to execute PLATFORM_INIT, and then the platform switch to INIT state. Link:https://gitee.com/openeuler/kernel/pulls/5257 Reviewed-by:Zhang Peng <zhangpeng362@huawei.com> Signed-off-by:
Zhang Peng <zhangpeng362@huawei.com>