| d352990b | 12-May-2026 |
Gangliang Xie <ganglxie@amd.com> |
drm/amd/ras: return error when converting records to nps pages fails
return error when converting records to nps pages fails
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <t
drm/amd/ras: return error when converting records to nps pages fails
return error when converting records to nps pages fails
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|
| df749c11 | 12-May-2026 |
Gangliang Xie <ganglxie@amd.com> |
drm/amd/ras: add first record offset check
check the upper and lower limits of first record offset
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-o
drm/amd/ras: add first record offset check
check the upper and lower limits of first record offset
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|
| 90b0cbcb | 19-May-2026 |
YiPeng Chai <YiPeng.Chai@amd.com> |
drm/amd/ras: copy ras log data instead of referencing pointers
When generating ras cper file, the original data nodes in the ras log ring buffer may be deleted, leading to invalid pointer access. Co
drm/amd/ras: copy ras log data instead of referencing pointers
When generating ras cper file, the original data nodes in the ras log ring buffer may be deleted, leading to invalid pointer access. Copy the data from the ras log ring instead of directly referencing the pointers to avoid this issue.
Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|
| 2ccdefee | 19-Mar-2026 |
Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> |
drm/amd/ras: Add input pointer validation in ras core helpers
Add NULL checks for helper input/output pointers that are directly dereferenced, such as tm, seqno, dev_info and init_config.
Cc: Tao Z
drm/amd/ras: Add input pointer validation in ras core helpers
Add NULL checks for helper input/output pointers that are directly dereferenced, such as tm, seqno, dev_info and init_config.
Cc: Tao Zhou <tao.zhou1@amd.com> Cc: YiPeng Chai <YiPeng.Chai@amd.com> Cc: Dan Carpenter <dan.carpenter@linaro.org> Cc: Christian König <christian.koenig@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> Reviewed-by: YiPeng Chai <YiPeng.Chai@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|
| 2b8101cc | 15-Mar-2026 |
Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> |
drm/amd/ras: Fix NULL deref in ras_core_get_utc_second_timestamp()
ras_core_get_utc_second_timestamp() retrieves the current UTC timestamp (in seconds since the Unix epoch) through a platform-specif
drm/amd/ras: Fix NULL deref in ras_core_get_utc_second_timestamp()
ras_core_get_utc_second_timestamp() retrieves the current UTC timestamp (in seconds since the Unix epoch) through a platform-specific RAS system callback and is used for timestamping RAS error events.
The function checks ras_core in the conditional statement before calling the sys_fn callback. However, when the condition fails, the function prints an error message using ras_core->dev.
If ras_core is NULL, this can lead to a potential NULL pointer dereference when accessing ras_core->dev.
Add an early NULL check for ras_core at the beginning of the function and return 0 when the pointer is not valid. This prevents the dereference and makes the control flow clearer.
Fixes: 13c91b5b4378 ("drm/amd/ras: Add rascore unified interface function") Cc: YiPeng Chai <YiPeng.Chai@amd.com> Cc: Dan Carpenter <dan.carpenter@linaro.org> Cc: Tao Zhou <tao.zhou1@amd.com> Cc: Hawking Zhang <Hawking.Zhang@amd.com> Cc: Christian König <christian.koenig@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> Reviewed-by: YiPeng Chai <YiPeng.Chai@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|
| a4f87a1c | 16-Dec-2025 |
Gangliang Xie <ganglxie@amd.com> |
drm/amd/ras: adapt sync info func for pmfw eeprom
adapt sync info func for pmfw eeprom
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex
drm/amd/ras: adapt sync info func for pmfw eeprom
adapt sync info func for pmfw eeprom
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|
| 89b814a3 | 15-Dec-2025 |
Gangliang Xie <ganglxie@amd.com> |
drm/amd/ras: add initialization func for pmfw eeprom
add initialization func for pmfw eeprom
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by:
drm/amd/ras: add initialization func for pmfw eeprom
add initialization func for pmfw eeprom
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|
| 72289903 | 15-Dec-2025 |
Gangliang Xie <ganglxie@amd.com> |
drm/amd/ras: adapt page retirement process for pmfw eeprom
read bad page data from pmfw eeprom when retirement is triggered, use timestamp read from eeprom
Signed-off-by: Gangliang Xie <ganglxie@am
drm/amd/ras: adapt page retirement process for pmfw eeprom
read bad page data from pmfw eeprom when retirement is triggered, use timestamp read from eeprom
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|
| 42c46be2 | 15-Dec-2025 |
Gangliang Xie <ganglxie@amd.com> |
drm/amd/ras: add read func for pmfw eeprom
add read func for pmfw eeprom, and adapt address converting for bad pages loaded from pmfw eeprom
v2: change label 'Out' to 'out'
Signed-off-by: Tao Zhou
drm/amd/ras: add read func for pmfw eeprom
add read func for pmfw eeprom, and adapt address converting for bad pages loaded from pmfw eeprom
v2: change label 'Out' to 'out'
Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|
| 3972f41b | 15-Dec-2025 |
Tao Zhou <tao.zhou1@amd.com> |
drm/amd/ras: make MCA IPID parse global
add a new IPID parse interface for umc, so we can implement it for each ASIC, and so we can call it in other blocks
Signed-off-by: Tao Zhou <tao.zhou1@amd.co
drm/amd/ras: make MCA IPID parse global
add a new IPID parse interface for umc, so we can implement it for each ASIC, and so we can call it in other blocks
Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|
| b18475fb | 15-Dec-2025 |
Gangliang Xie <ganglxie@amd.com> |
drm/amd/ras: add append func for pmfw eeprom
add append func for pmfw eeprom
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <a
drm/amd/ras: add append func for pmfw eeprom
add append func for pmfw eeprom
Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
show more ...
|