Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1724294lqp; Sat, 23 Mar 2024 06:25:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWiM6DWrKYzb59WvqKb6WAj399YADeXveXaWnhzdTxaEcsoEfx0vemHKfl2uAecEYP91pik/R89LeJFGkYKRVUXcbPzxKai+zUUGzXNYg== X-Google-Smtp-Source: AGHT+IHbxNg6DclWFgV0zESuqJLHLGsGeFQTvEmGGrcOR77VdumPk4MPErqkEtTAWVE2u3BDecV2 X-Received: by 2002:a05:6512:3251:b0:513:d030:f313 with SMTP id c17-20020a056512325100b00513d030f313mr1588336lfr.32.1711200312342; Sat, 23 Mar 2024 06:25:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711200312; cv=pass; d=google.com; s=arc-20160816; b=qn9G+oH/XK/ew0o9zLljyXShn8R1nFheIShTLIocVs3WK8wWhJxQBoq3HT7TMsdPrt AvHIbiWjSzSTDI4YNHZgE7hA8o+ngnAZlud2hc8nBhBv3U+xbFnMnLj/1qlYfvnDmz/W BgOCSGSsHbVkgYoByg0/Z1vPb/wxVEuvLEE6GBAnK5QTbMpBmFDJ1f1wxAtfutR2m/E5 eQVBUsuAj8z/v8ZxPxZkDwos00DfsJHKXqRkQE9iTKC5aZrQ0GfKeSUpuDhUAfGe3ae7 AECRx+OzhXoJpXo+4VH0eMQ9WUQXECTp/IvGWQfRCxElk6GDNONYYLHrqUZNHB3jDdMP g1BQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=nf1eieQ1PpZ/ZqZr7mlBm08sfKGoHQOuoGoF0oSLuFU=; fh=NQ4H7eOXJOo5UppObfTJ/Ck/5F21nmRHfOV7GpFs1kA=; b=l3voh4EcMHdqsXzGB6Io1G5kfeLxJ9zR0f5siA7EtqxadGxC5tPOfagLw/b5A+YoeL qcxAF/8C6jFV5i9qjH6WNaNa6qdClM5hL0LCT0nNd7Ku7MVxbKBy5dTAMM0hPcQm69To hWeztW57mPR00EnO2rbNoNH+pU2tqw5AIctGLNaTICoCRnddShoWZjhi6zcDtnavtW2+ xtbORinDU2YDStA31juE8215QWjXqRlcs9mvARkRFxhPWe7734wJRRSst8eMTVrVDRbb sKUxNaW/1YF94U6cOYS6m9zVZ9SpimtvWZJqgqOQSm1biKKBDosKasa91jAiQrMS4eoe hswg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Y9O+cQuR; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9q8WkKA8; 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-112351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112351-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hh21-20020a170906a95500b00a3e3776fd57si844095ejb.28.2024.03.23.06.25.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Mar 2024 06:25:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Y9O+cQuR; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=9q8WkKA8; 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-112351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112351-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1188F1F2404D for ; Sat, 23 Mar 2024 13:25:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C69F13D977; Sat, 23 Mar 2024 13:25:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Y9O+cQuR"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="9q8WkKA8" 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 6EE111A38F4; Sat, 23 Mar 2024 13:24:58 +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=1711200300; cv=none; b=gL1YI3M99jSnRM0fyDQ3rgkCgD7HjmYcUufK60k81gZtQiISEQlOq0s1MrxmxS21IV5uEPR0HIfhcWHMAtoBDsm97LP5TpAWYYauX/Et4BQyPWD8jQCZL+ScBEAgyGfJrWN9ySP3JY/B70Niw9LZtVUFPwo4KvsSNQwDaL42ntM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711200300; c=relaxed/simple; bh=PUegoWtVbVsTOssF/F6A0QiL3Yc+be7NTlizNkiEBpI=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=gS5eWdLdz7SGEya+gXu1ak+mpxIfpLG2FLIviHwDnUYF4Vg4aQnGLu2zedy6/Sff8u8p4/v39CaxdvkqonVPFh6m0oP9pt3bYIH6Z0F1uOmUqWmN46gnbJvo1qNZTf5qRAvRUDwwIo4SrBXVh1JkhYsZFaosjVWexZX6GJlAKF8= 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=Y9O+cQuR; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=9q8WkKA8; 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 Date: Sat, 23 Mar 2024 13:24:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1711200289; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nf1eieQ1PpZ/ZqZr7mlBm08sfKGoHQOuoGoF0oSLuFU=; b=Y9O+cQuRh1I7BzwONpoAeZynQJ1VeiOkSB9rqsRqo2w06oSQL0IveHZi1bw44maQZtPgqc FYKQUBUJ5/AzMtjJmjge1jb3EGwSeG2mjYU6W6XQ+NbJNu9yi1umOvCOGLzVjJtzIHy0n7 XSRLxk4VqnxcAnUiXRsxEC0cUeNLuRfcAfU3GniMPE+A2TyPXNystZTvujofpe52QsULRA a9xC4D7FfWjfO3AbutetcgxmF27NykcnIUaSxbh6JFurJKSWQr2Djkrg8DF3UbIgmiUAZs IyqTjQBtkNj++fkP87c4ZbIgPLdbrn3ksquSLUjENelEntK8CA70WK84glTY9g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1711200289; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nf1eieQ1PpZ/ZqZr7mlBm08sfKGoHQOuoGoF0oSLuFU=; b=9q8WkKA8NadBMfEulqW5IkjMuIo3PLO5DSKXYbiYCC37fOjQyTFz3IWKUD/7IgIG+lkQ4Q i3ZhNuff3qyT/vAw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/mpparse: Register APIC address only once Cc: Thomas Gleixner , "Borislav Petkov (AMD)" , Guenter Roeck , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240322185305.297774848@linutronix.de> References: <20240322185305.297774848@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171120028858.10875.13533785282906224484.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/urgent branch of tip: Commit-ID: f2208aa12c27bfada3c15c550c03ca81d42dcac2 Gitweb: https://git.kernel.org/tip/f2208aa12c27bfada3c15c550c03ca81d42dcac2 Author: Thomas Gleixner AuthorDate: Fri, 22 Mar 2024 19:56:39 +01:00 Committer: Borislav Petkov (AMD) CommitterDate: Sat, 23 Mar 2024 12:41:48 +01:00 x86/mpparse: Register APIC address only once The APIC address is registered twice. First during the early detection and afterwards when actually scanning the table for APIC IDs. The APIC and topology core warn about the second attempt. Restrict it to the early detection call. Fixes: 81287ad65da5 ("x86/apic: Sanitize APIC address setup") Signed-off-by: Thomas Gleixner Signed-off-by: Borislav Petkov (AMD) Tested-by: Guenter Roeck Link: https://lore.kernel.org/r/20240322185305.297774848@linutronix.de --- arch/x86/kernel/mpparse.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 1ccd30c..e89171b 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c @@ -197,12 +197,12 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early) if (!smp_check_mpc(mpc, oem, str)) return 0; - /* Initialize the lapic mapping */ - if (!acpi_lapic) - register_lapic_address(mpc->lapic); - - if (early) + if (early) { + /* Initialize the lapic mapping */ + if (!acpi_lapic) + register_lapic_address(mpc->lapic); return 1; + } /* Now process the configuration blocks. */ while (count < mpc->length) {