x86/cpu/amd: Set __max_die_per_package on AMD
Set the maximum DIE per package variable on AMD using the NodesPerProcessor topology value. This will be used by RAPL, among others, to determine the maximum number of DIEs on the system in order to do per-DIE manipulations. [ bp: Productize into a proper patch. ] Fixes: 028c221e ("x86/CPU/AMD: Save AMD NodeId as cpu_die_id") Reported-by: NJohnathan Smithinovic <johnathan.smithinovic@gmx.at> Reported-by: NRafael Kitover <rkitover@gmail.com> Signed-off-by: NYazen Ghannam <Yazen.Ghannam@amd.com> Signed-off-by: NBorislav Petkov <bp@suse.de> Tested-by: NJohnathan Smithinovic <johnathan.smithinovic@gmx.at> Tested-by: NRafael Kitover <rkitover@gmail.com> Link: https://bugzilla.kernel.org/show_bug.cgi?id=210939 Link: https://lkml.kernel.org/r/20210106112106.GE5729@zn.tnic Link: https://lkml.kernel.org/r/20210111101455.1194-1-bp@alien8.de
Showing
想要评论请 注册 或 登录