Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1283337pxj; Sat, 15 May 2021 09:31:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFsFQsme4I3H9NW8GqSgYXWYs5OQyn1YGL5ZRcB9LEG5HQybo37NGFvCM9/IN9/dBccwN2 X-Received: by 2002:a17:906:4d13:: with SMTP id r19mr7980844eju.496.1621096263019; Sat, 15 May 2021 09:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621096263; cv=none; d=google.com; s=arc-20160816; b=WddmIWPUBxL8EmZnw4v4QrmXJxh59CCwUxh6ZZfoQwo9nbuCXkKU0KKRFk542ddWdB 3DvjIQ9YRDeXjLV+hpzdwbwk527jW43wSBf51P6mz7tJ2DOjZlOxZgmtDL1Ny0fSVrOp mU78uRQXdrXohm471wjWyQ0Z8rMOnuk83VrqlCurzJtsEorTt2bl+AU6unuEyBJwcpEj hjNWfGZEp9gpOPA+38iHBLVSHC4wcURc6Qsl5HlmRdzwg+I44hsH6mpCm1YJWZ3zI/yX OtLV40+ATYhUGR3RaODy7A3Rf47vsPvl8nVHgoY2C7gJ7etgFZuvXHOZ8hyAiaJQXPqd 0BsA== 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=HBabzdoGa2tWzB1bJK3MIIEFJBCTQO8rryglrzycxZAenIBDEIrClmIR2N9FLwHs6L QT8UBSWID1vJjbpAaWDGagrWY7uw49NIplIgyCyVr59DZHjebBsnO223N7jdMap5Fe+y VF4HiaVGvSpmpJc3xSd1wFRm8jwY1nygH9VVtbTScsC5esNdBI2xVGuZ1xknulkCNute 3A8/EYcnKGsIx+odn1xl3/GZMB3Trf0RkH4fTp/EfAj3Sb2SfvZ/kHgKj8rr/W8GEcEr fJvuW/9jV9867f/xe2sRhFa97HQJS5gVKQnLbXs2U3v2kwoR00h7KzdTQKnmRylC0ZEI hRKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2021042801 header.b=OJIh2cLy; 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 q2si460136edw.144.2021.05.15.09.30.17; Sat, 15 May 2021 09:31:03 -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=OJIh2cLy; 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 S234884AbhEOBps (ORCPT + 99 others); Fri, 14 May 2021 21:45:48 -0400 Received: from terminus.zytor.com ([198.137.202.136]:41441 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234807AbhEOBpg (ORCPT ); Fri, 14 May 2021 21:45:36 -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 14F1i7aj3212185 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 14 May 2021 18:44:15 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 14F1i7aj3212185 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2021042801; t=1621043055; bh=UHJLOhAURTpIPJFtqZTOsSzlJqC70K5wfYxEan62/qU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OJIh2cLyXdMktCjDl5+NSMi1o+CemkA9U4x/5UUrU9Qn0DjYGKt8qfkSg3tdtj/lU VIkoFqRgNzTBj6Zy/9QlEuKyqhec3lFIaDvCmyzYNrpc50MuWZ9+yw2Wh54/57XN8i UKwgryeH2yYt744vAs8UELTaRflZ0TiLqMoZ1HbWFX1Ej26l4uVwNb5Uph5C3B6KUf 5Jn7ZBgGIpPmBKemQRvL0kGsmK1oWtNybvM7xNzUlSg3iCXX+KKKvAk2HGt9anm53r mi2/OXZrOVujnR492b7jmKTF4CXKGBVh0rbRYtqjuLAOEzTeKkgn3bnjieObaOgjB2 rz+0MlPTV5tMA== 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 v2 3/9] x86/irq: remove unused vectors from Date: Fri, 14 May 2021 18:43:55 -0700 Message-Id: <20210515014400.2999028-4-hpa@zytor.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210515014400.2999028-1-hpa@zytor.com> References: <20210515014400.2999028-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