drm/amdgpu: add helper function to query psp runtime db entry (v2)
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 7 Jun 2021 12:31:30 +0000 (20:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Jun 2021 20:06:03 +0000 (16:06 -0400)
commit3d689ae4a9741d60352e947f614079e2d3df8b44
treedda27d5bf3a3d434c223eef6d11e8bfb23ee4b47
parent990ec3014deedfed49e610cdc31dc6930ca63d8d
drm/amdgpu: add helper function to query psp runtime db entry (v2)

PSP will dump various boot up information into a
portion of local frame buffer, called runtime database.
The helper function is used for driver to query those
shared information.

v2: init ret and check !ret to exit loop as soon as
found the entry

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c