Re: [PATCH] x86/microcode/AMD: shrink the size of amd_ucode_patch array

From: Borislav Petkov
Date: Mon Jun 05 2023 - 04:27:48 EST


On Mon, Jun 05, 2023 at 03:12:56PM +0800, Zeng Heng wrote:
> About the commit <7ff6edf4fef3>, the amd_ucode_patch is expanded as
> two-dimensional array. When CONFIG_MAXSMP is enabled or CONFIG_NODES_SHIFT
> is set as 10, this array would occupy memory up to 12M.

So?

That's a conscious user decision I presume.

> Here we allocate amd_ucode_patch array dynamically in need instead of
> static declaration.

Looks weird at a quick glance.

Anyway, I have a series which gets rid of those arrays altogether
- I just need to finish it.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette