drm/amdgpu: add ras_eeprom_read_idx interface
authorTao Zhou <tao.zhou1@amd.com>
Wed, 23 Jul 2025 11:04:17 +0000 (19:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Nov 2025 14:58:35 +0000 (09:58 -0500)
commit7f34ddf77d30959fcc24cd279074f7e0d4f732df
tree810370e75ab227e3cebc46439e2e58f2a5cbbc8f
parentcd74132be8461429b5e98991aa15edeeb81a9f56
drm/amdgpu: add ras_eeprom_read_idx interface

PMFW will manage RAS eeprom data by itself, add new interface to read
eeprom data via PMFW, we can read part of records by setting index.

v2: use IPID parse interface.
    pa is not used and set it to a fixed value.
v3: optimize the null pointer check for IPID parse interface.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.h