Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2495280rdb; Mon, 12 Feb 2024 06:50:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFiHOJjcVRvEAGk7LkI88qoTgaOZKFkSwwPP6vhzbwzfX5zkx9eiCGWLxyNEIG2BsJeC06r X-Received: by 2002:a81:5208:0:b0:604:3df:1720 with SMTP id g8-20020a815208000000b0060403df1720mr6555358ywb.15.1707749426833; Mon, 12 Feb 2024 06:50:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707749426; cv=pass; d=google.com; s=arc-20160816; b=YVrUNNj4u62g6bxX05PECgWmgA5J+YFhODrUGoYziKsFH36By3Au0TkgXhXqfk1BJd 3ISCMHsT6zjTgFYiVLwMIMWwH2VggDjSW6qvJGzSKOICTnbY39+wA2HxGYux/LnqEzD6 VDxjDEv9LQ95zJi3CHp7jvFdR0JtQFWRSuvUstkp9VM0ZHXdBUwiJKEt1tDBhY5ygT/D 8QrihAchJVWS4OvpERkC3hbch2hM72PloZ2wHaIxjSo4r0k3O97yLl6KjYDGjeTNjGBA lvdGhtAMVRud2sxXWYywYXsxNMmj99czGCZ6cHOwX0f0tJyU1lztL++wSCBfE3z3gVNI 7fYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=1+6KCrT2mSKGO1AMbFuzh4cWwf6OZ2ECUnZnbKsA5UM=; fh=fZPcKFACs0q24DeOoRRSapR2sb51FUoHf1KNeSVOaVg=; b=LCGEyB7Xs2Q9Sya962F4cipfZV2AaDtfmt3rQxFUfVG7T7MyjwpQoOtMW/YCp3LkKh IsPVDClWwr4ixhbcpnYwv2cE0dwPvj3Dq/DNZ6CJagE8Qk4x2q5bmSpDOXfnvxX2VfxM GA+qWZEddTAOXiGG+58cVELmz5pfvN/ZfgZ8W+jGIIeUIYyo2Ed3iGyc54QNC/A/myzs 9823IkC6615ERQs5hv0wFCI0ot7LufAsFvVA1scTGbNjijUwyD+CdrNE5d70bD2iIyyH 72wZHPslsFURnd6yoyJa4cAFxUdCQk2GhdrQijim9TM7ZGgzEk2+AS/eP9lAMd4FI3Zx IaKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Y06efXCx; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-61839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCVRtgNXMa7N/DHAD9Y3K0assUC2qZPKJR1oHhUae5HgM5iTDYYzZxTMPaUlUl4Vw11M6RUPZ3xHHuNX08BdXk+jkcbJNWAb/qRiLU3auw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pi1-20020a05620a378100b00785b81f749csi5750267qkn.406.2024.02.12.06.50.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 06:50:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Y06efXCx; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-61839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 119961C21611 for ; Mon, 12 Feb 2024 14:50:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B89543B797; Mon, 12 Feb 2024 14:50:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Y06efXCx"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jZa/qDW/" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D67763B2A2 for ; Mon, 12 Feb 2024 14:50:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707749410; cv=none; b=dJBa8wPp7MjMTtW2YAltW/FIBEEmO6OZ66PcMlFffuaeFo3HtK0+TTjxzxPJy0AzOAeIFV1KJfL6HYPO4YmFNnu2Yu6jAqKsB6Y8ImyW5T/nFurpw4mPSMUBxi/RstajBc41R4calg5vkwiRBiCA3bU1CxKj//GwqzT/VB5Px0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707749410; c=relaxed/simple; bh=FB4YzGxesZ1Hb/39/+XOurT2KV2CbVkG19sH0Wio5+U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=GdRXrdW/jgzvAEdYey5QQej+yx2LY7EbyAQ7yF//nIdRDBsFOeG1W6S3Hoa11dJoN6X87VkZmodx+TQJl7EiYcdKjsHfkhB+gPJJUgiM1vRQTRFwku3v7z00Sczq+DwAyO0yMvFYbMRaNJ71Gxeo7oHydrG9/y0Zobi7TGc9VM8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Y06efXCx; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jZa/qDW/; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707749404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1+6KCrT2mSKGO1AMbFuzh4cWwf6OZ2ECUnZnbKsA5UM=; b=Y06efXCxqXb2P1dOZfB76pIs3h121vxoCKRENhcwh1ZnfuZXj3Qe9Xv9XNTJ2Lh5aKjWak MgpGQRaaECIDXhDriSqYjdpXYneWphcQ0/xKE0Pgt1EyPrU4JoBmB3i23wAgY1OeOCathN 2vST+3SkRPLK/51EvMb51amcy+k/rFag88mrtsXOMB+xH0bNzGld5gGs/VSdqlnStg8JNc 6JN/IOnl0mc7rl8VymGifutt8bTC//Zx+W0LIpSBaZO4D4CI48VRRfkovXUbutvP7jkLND mf8VXexz7SmTBBmRW9jyvpfHbnoEV8radgt+RiiyEg+oBpkCDSjni1FyVA4eIA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707749404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1+6KCrT2mSKGO1AMbFuzh4cWwf6OZ2ECUnZnbKsA5UM=; b=jZa/qDW/Gp70I9S/6DOp8u7ZzDl+mdgo7P0ji6RJHACgvUSUMV1gK37GVEurjRv683tnIh ZnMMfBwaWXn0MzDw== To: Borislav Petkov Cc: LKML , x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Sohil Mehta , K Prateek Nayak , Kan Liang , Zhang Rui , "Paul E. McKenney" , Feng Tang , Andy Shevchenko , Michael Kelley , "Peter Zijlstra (Intel)" Subject: Re: [patch v5 11/19] x86/cpu: Use common topology code for AMD In-Reply-To: <20240206155830.GPZcJXJkOv8NOtIfHi@fat_crate.local> References: <20240117115752.863482697@linutronix.de> <20240117115909.011311608@linutronix.de> <20240206155830.GPZcJXJkOv8NOtIfHi@fat_crate.local> Date: Mon, 12 Feb 2024 15:50:04 +0100 Message-ID: <87cyt1lotf.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Tue, Feb 06 2024 at 16:58, Borislav Petkov wrote: > On Tue, Jan 23, 2024 at 01:53:47PM +0100, Thomas Gleixner wrote: >> --- a/arch/x86/kernel/cpu/mce/inject.c >> +++ b/arch/x86/kernel/cpu/mce/inject.c >> @@ -433,8 +433,7 @@ static u32 get_nbc_for_node(int node_id) >> struct cpuinfo_x86 *c = &boot_cpu_data; >> u32 cores_per_node; >> >> - cores_per_node = (c->x86_max_cores * smp_num_siblings) / amd_get_nodes_per_socket(); >> - >> + cores_per_node = (c->x86_max_cores * smp_num_siblings) / topology_amd_nodes_per_pkg(); >> return cores_per_node * node_id; >> } > > One more hunk depending on what goes in when and in what order, to fix > a build issue from the RAS tree: > > ERROR: modpost: "amd_get_nodes_per_socket" [drivers/ras/amd/atl/amd_atl.ko] undefined! > make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1 > make[1]: *** [/mnt/kernel/kernel/2nd/linux/Makefile:1873: modpost] Error 2 > make: *** [Makefile:240: __sub-make] Error 2 Hrm. That is unfortunate, but we really don't want to mix the RAS tree. So this needs a fixup in next and in the pull requests.