RE: [PATCH v2 2/3] x86/mce/amd: Convert bank_map to a bitmap
From: Qiuxu (Leo) Zhuo
Date: Mon Nov 23 2026 - 21:21:00 EST
> From: Yazen Ghannam <yazen.ghannam@xxxxxxx>
> Sent: Tuesday, November 24, 2026 7:27 AM
> To: linux-edac@xxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx; tony.luck@xxxxxxxxx; x86@xxxxxxxxxx; Yazen
> Ghannam <yazen.ghannam@xxxxxxx>
> Subject: [PATCH v2 2/3] x86/mce/amd: Convert bank_map to a bitmap
>
>
> The per-CPU bank_map records which banks had their block 0 prepared during
> mce_amd_feature_init(). It is a u64, so BIT_ULL(bank) is undefined once the bank
> number reaches 64. That caps the usable bank count at 64 regardless of
> MAX_NR_BANKS.
>
> mce_banks_t is the existing type for per-bank bitmaps. It is declared with
> MAX_NR_BANKS bits, so it follows the macro instead of fixing a width of its own.
> thr_intr_banks and dfr_intr_banks in this file already use it.
>
> Convert bank_map to mce_banks_t and use the bitmap helpers. This is preparation
> for raising MAX_NR_BANKS.
>
> Signed-off-by: Yazen Ghannam <yazen.ghannam@xxxxxxx>
LGTM. Thanks.
Reviewed-by: Qiuxu Zhuo <qzhuo@xxxxxxxxxx>