diff options
author | Mario Limonciello <[email protected]> | 2023-06-07 01:41:22 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-06-09 12:47:50 -0400 |
commit | 3537d6a48c50ed37e419f89931a5acdb6c56c6d6 (patch) | |
tree | 398191954055a15a8da882023891d0893865125d /lib/mpi/mpi-add.c | |
parent | 55682a893844cc64e3a85806b0c3ca7a77b905c3 (diff) |
drm/amd: Make sure image is written to trigger VBIOS image update flow
The VBIOS image update flow requires userspace to:
1) Write the image to `psp_vbflash`
2) Read `psp_vbflash`
3) Poll `psp_vbflash_status` to check for completion
If userspace reads `psp_vbflash` before writing an image, it's
possible that it causes problems that can put the dGPU into an invalid
state.
Explicitly check that an image has been written before letting a read
succeed.
Cc: [email protected]
Fixes: 8424f2ccb3c0 ("drm/amdgpu/psp: Add vbflash sysfs interface support")
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions