diff options
author | Guchun Chen <[email protected]> | 2023-05-09 09:36:49 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-05-11 08:41:36 -0400 |
commit | 5247f05eadf1081a74b2233f291cee2efed25e3a (patch) | |
tree | 00e61946dff037675d4b9fbc5f33c2d746491c0b /lib/mpi/mpi-internal.h | |
parent | 8b229ada2669b74fdae06c83fbfda5a5a99fc253 (diff) |
drm/amd/pm: avoid potential UBSAN issue on legacy asics
Prevent further dpm casting on legacy asics without od_enabled in
amdgpu_dpm_is_overdrive_supported. This can avoid UBSAN complain
in init sequence.
v2: add a macro to check legacy dpm instead of checking asic family/type
v3: refine macro name for naming consistency
Suggested-by: Evan Quan <[email protected]>
Signed-off-by: Guchun Chen <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions