Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1802818pxj; Wed, 19 May 2021 14:25:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4Xux1qVAovvRaVnKjbryH47C1YUDdpw5of1P9fZ9DZPoJYziNA7O7yPbU2v46b50hs77e X-Received: by 2002:a02:a1dd:: with SMTP id o29mr1473568jah.112.1621459528991; Wed, 19 May 2021 14:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621459528; cv=none; d=google.com; s=arc-20160816; b=TI4ApuG+Ikm4bVbcx7AbJeBUT8d0FUXtIcfIFAANT/6xzgkFXQm52QrmotfkqpVbvM Rz21kybT+odYg0uOdPk15lhOliKHLLxNPKfOJvdvZe/51RvA7EDvebLpRKBw0ycIrYJb JAfZZORtTvuNZfdCPSUoKuLo+pqvcktuq7ODHiLrF+W6+ZSXVUd6MgkV7VY7Q9KGb4/j 6K5Ipx0RhJSnJRJItsx6wu6oEFuPMBc/y4N4EoH1hrBHibeF/1lZVbm/mzN5YIMOjf/S ByLlU9q5TeqOsmAgLPHQRAeN2DL1F2Ok/3Pm+7jkOkX1zqX/j+AD5RteztCxVOnCpiY+ ReOg== 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=UHJLOhAURTpIPJFtqZTOsSzlJqC70K5wfYxEan62/qU=; b=eZL5Vf+YHpTuzaKtcLez/KvFflKM8rTHRLM5/2R6Ni45zrNKBCzg54HNeWHZwq0Sb3 ARy8Vlc+8WNHcDZPelK8P0qTtgjytJYSQKmeg1JKaeHRdPYNeG87FmA6Quq8q/HPIq2y 1X4jT3/LpLaYNfatvfF8rmvnaqVHf2iwWJIwcdM3NMiqQd7vNoLMQk6KPitdnW2ANRzE yFeTNuIZntGbJzsZ2D0xcmDWYSAZfRXEzfyq9v9DRra1X8mgFfeqIOjVLZilBbS7J8r1 PkBmamttDHIGtc4HeiNFtzeXP0dDNQpP4E62Y01awWfmhEN/GPiwQLszHQUbrqku4RHb h2oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2021042801 header.b=fcD5SyRE; 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 p5si920187ilm.11.2021.05.19.14.25.15; Wed, 19 May 2021 14:25:28 -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=fcD5SyRE; 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 S230030AbhESVYB (ORCPT + 99 others); Wed, 19 May 2021 17:24:01 -0400 Received: from terminus.zytor.com ([198.137.202.136]:47051 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbhESVXz (ORCPT ); Wed, 19 May 2021 17:23:55 -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 14JLM1Eb4187848 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 19 May 2021 14:22:11 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 14JLM1Eb4187848 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2021042801; t=1621459331; bh=UHJLOhAURTpIPJFtqZTOsSzlJqC70K5wfYxEan62/qU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fcD5SyREVAgy1P46+LEb2ivumIdobtPiHEyUplFzN4/pzpgyzNgOpXAWEcjkHPBu+ eWTMRLB024gMGiKCYYK7Ieuli8ep1QUpsNCgYcWOHk/QXRc43TYB6gO5Ovb25QjDAW K9BLob48eYrwBXEBAj3iNycj5DtOMt5KuCbyE8ET+21MfZEz3RRDLw4tSkTPXRq2E3 hzdpYvwrfhRGv/iNU3U3DwG8SNd2AJH7KXAUZv5Vgr9r1hOf+zANqc5hWg2wJM/4c7 lt1MbgTELALpm7dR9FD6YlE0tx+Kc8zEb2ydVtdUGauNIoJTD9EEVkEIUzErqnGAoD VxnllMASFyKig== From: "H. Peter Anvin" To: Thomas Gleixner , Ingo Molnar , Andy Lutomirski , Borislav Petkov , "H. Peter Anvin" Cc: Linux Kernel Mailing List , Steve Wahl , Mike Travis , Dimitri Sivanich , Russ Anderson Subject: [PATCH v3 3/8] x86/irq: remove unused vectors from Date: Wed, 19 May 2021 14:21:49 -0700 Message-Id: <20210519212154.511983-4-hpa@zytor.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210519212154.511983-1-hpa@zytor.com> References: <20210519212154.511983-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. Acked-by: 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