Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3067856pxj; Mon, 10 May 2021 17:57:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywBdBLS6+vZiPp3kgXJwwTdKMER79PuzIgVnq0eDze+JyrQBKZfZvo87+qCVUr8JZ5pGCU X-Received: by 2002:a02:a68e:: with SMTP id j14mr24017165jam.122.1620694672227; Mon, 10 May 2021 17:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620694672; cv=none; d=google.com; s=arc-20160816; b=R3rz7/6p1NI3l5lz82HMNHA82560fINTDZEv3wLUCOmkSL6eeL3V/0nLKh5UTnnLtR vnjVbjFUXlL72BucAlRocOKkaFE/PR5U2DKOdEK+vOjPGG8zcygWwOTYFJNSiF7XR3lf ItJUJRZbtdw15NNEx4k2ZmdxgCzMHwgStjnNVK31EXXD5tI4dSjkyod5vY2RJxRAKklP n6D5Zl6rx5z3mzRv7lteBoxUdK3shwA+kAbwHmoPUet+hR7rRaagzyfn8IX01mz1r5NV FCeNuUm/o4oMX9sE2o3+X6L6xNqYaDQMF4vzJuMvhPMlCkh+PiPOm0FFShgWKz6sG+Vg ccIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=6qAnAGqYLmfFVtDhTOMNSibF23Kqn/7ZNhNZmFmWWTo=; b=OuY/XYbk/UwgmqN5r523oMDvHwaXZ4OqTpA8WswxLV2bmeJWo3C83x7DG8Qwt6JAmt mlCAdJA/L2UXa8tEHPzeQ7i9ZrquYuedurMjRYBoqpFuq7HvIda0Fwu8nMlZV4kIIu7S q2n8g8Zl0ub1s1U2yjoJFF56mhq9hPSG9rMme8x1JjrNnh3UZggf5gR7h+uvGruU6C6M J96IVSwxq/qJOjz8jhhl+Uzsuy47AVGeeDBFRPxbq0+E5pzD/bkuVPJ8ORjtI4EcnioK e44U3LT6rAxuIeruhQXW2vaXZqawnq4OH9scz5c/px9WMIXR8WnDBiROgxrEHnmfjjF9 eweQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2021042801 header.b="hB4tJK/H"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si18610337ilh.102.2021.05.10.17.57.39; Mon, 10 May 2021 17:57:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2021042801 header.b="hB4tJK/H"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230314AbhEKA5b (ORCPT + 99 others); Mon, 10 May 2021 20:57:31 -0400 Received: from terminus.zytor.com ([198.137.202.136]:57313 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230002AbhEKA5I (ORCPT ); Mon, 10 May 2021 20:57:08 -0400 Received: from tazenda.hos.anvin.org ([IPv6:2601:646:8602:8be0:7285:c2ff:fefb:fd4]) (authenticated bits=0) by mail.zytor.com (8.16.1/8.15.2) with ESMTPSA id 14B0tdwB2504247 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 10 May 2021 17:55:52 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 14B0tdwB2504247 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2021042801; t=1620694552; bh=6qAnAGqYLmfFVtDhTOMNSibF23Kqn/7ZNhNZmFmWWTo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hB4tJK/H1rjkCtS+kza28zleTQfPLk/GzgwLsS03K3ARw7X28q+U3VkAYejHFthQy ujmlpQVIleeCTh/O4K1NyQ5k3CnKMuLCgTcxW18i/HmtjNCxde4ZlsQSRKGW1oewAM Tx/K1fi05So5YZRzG9xXLOABKZfb7Ibwkm5ma8MXy009J9ZNyCVHZDwMs0ScTY6J2+ Vk4XCUazADYOGpFLxXI6F1hPWtbGfsxE82jOgqLLbsizHL3d+tX7bRAWudLnDrb8dZ sFLJEwakFmregqNhzR+aiJ6TbAwZvFJzPOh2uuEdBTMfoyBfLcuxj/UQ+8gSSIH9Iv /ZCCmjgoyx/ow== From: "H. Peter Anvin" To: Ingo Molnar , Thomas Gleixner , Borislav Petkov , Andy Lutomirski Cc: Steve Wahl , Mike Travis , Dimitri Sivanich , Russ Anderson , Linux Kernel Mailing List , "H. Peter Anvin (Intel)" Subject: [PATCH 6/6] x86/irq: remove unused vectors from Date: Mon, 10 May 2021 17:55:31 -0700 Message-Id: <20210511005531.1065536-7-hpa@zytor.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210511005531.1065536-1-hpa@zytor.com> References: <20210511005531.1065536-1-hpa@zytor.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "H. Peter Anvin (Intel)" UV_BAU_MESSAGE is defined but not used anywhere in the kernel. Presumably this is a stale vector number that can be reclaimed. MCE_VECTOR is not an actual vector: #MC is an exception, not an interrupt vector, and as such is correctly described as X86_TRAP_MC. MCE_VECTOR is not used anywhere is the kernel. Note that NMI_VECTOR *is* used; specifically it is the vector number programmed into the APIC LVT when an NMI interrupt is configured. At the moment it is always numerically identical to X86_TRAP_NMI, that is not necessarily going to be the case indefinitely. Cc: Steve Wahl Cc: Mike Travis Cc: Dimitri Sivanich Cc: Russ Anderson Signed-off-by: H. Peter Anvin (Intel) --- arch/x86/include/asm/irq_vectors.h | 4 ++-- tools/arch/x86/include/asm/irq_vectors.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/include/asm/irq_vectors.h b/arch/x86/include/asm/irq_vectors.h index d2ef35927770..43dcb9284208 100644 --- a/arch/x86/include/asm/irq_vectors.h +++ b/arch/x86/include/asm/irq_vectors.h @@ -26,8 +26,8 @@ * This file enumerates the exact layout of them: */ +/* This is used as an interrupt vector when programming the APIC. */ #define NMI_VECTOR 0x02 -#define MCE_VECTOR 0x12 /* * IDT vectors usable for external interrupt sources start at 0x20. @@ -84,7 +84,7 @@ */ #define IRQ_WORK_VECTOR 0xf6 -#define UV_BAU_MESSAGE 0xf5 +/* 0xf5 - unused, was UV_BAU_MESSAGE */ #define DEFERRED_ERROR_VECTOR 0xf4 /* Vector on which hypervisor callbacks will be delivered */ diff --git a/tools/arch/x86/include/asm/irq_vectors.h b/tools/arch/x86/include/asm/irq_vectors.h index d2ef35927770..43dcb9284208 100644 --- a/tools/arch/x86/include/asm/irq_vectors.h +++ b/tools/arch/x86/include/asm/irq_vectors.h @@ -26,8 +26,8 @@ * This file enumerates the exact layout of them: */ +/* This is used as an interrupt vector when programming the APIC. */ #define NMI_VECTOR 0x02 -#define MCE_VECTOR 0x12 /* * IDT vectors usable for external interrupt sources start at 0x20. @@ -84,7 +84,7 @@ */ #define IRQ_WORK_VECTOR 0xf6 -#define UV_BAU_MESSAGE 0xf5 +/* 0xf5 - unused, was UV_BAU_MESSAGE */ #define DEFERRED_ERROR_VECTOR 0xf4 /* Vector on which hypervisor callbacks will be delivered */ -- 2.31.1