]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/ras: bound CPER record fetch buffer size
authorCandice Li <candice.li@amd.com>
Wed, 13 May 2026 02:46:01 +0000 (10:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 May 2026 15:51:52 +0000 (11:51 -0400)
commit3c88fb7aa57d540e1867aad56d441e550692bd1a
tree4ba4616de255e7af5e1b52a63b25f0f8c541e6a3
parentf6b6ef70bf606de4b13ff81da62dfea294c7007f
drm/amd/ras: bound CPER record fetch buffer size

Bound CPER record fetch allocation by buffer size.

v2: Drop redundant cap on cper_num and raise
    GET_CPER_RECORD max buffer size.

Suggested-by: YiPeng Chai <YiPeng.Chai@amd.com>
Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_virt_ras_cmd.c
drivers/gpu/drm/amd/ras/rascore/ras_cmd.c
drivers/gpu/drm/amd/ras/rascore/ras_cmd.h