aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
diff options
context:
space:
mode:
authorTao Zhou <[email protected]>2023-09-19 16:00:19 +0800
committerAlex Deucher <[email protected]>2023-09-26 16:54:52 -0400
commit8c14a67bdfab8e52e016a51fb2c34d26edb520ae (patch)
tree8106f81d20c66bfd018c94122cf596a7139ff03c /drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
parent6205b558e1ea27aad0cff5083e8adc775afa867b (diff)
drm/amdgpu: change if condition for bad channel bitmap update
The amdgpu_ras_eeprom_control.bad_channel_bitmap is u32 type, but the channel index could be larger than 32. For the ASICs whose channel number is more than 32, the amdgpu_dpm_send_hbm_bad_channel_flag interface is not supported, so we simply bypass channel bitmap update under this condition. v2: replace sizeof with BITS_PER_TYPE, we should check bit number instead of byte number. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c')
0 files changed, 0 insertions, 0 deletions