Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp251069rdb; Mon, 22 Jan 2024 20:12:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFARqn9wI55JYD8YKMEZanzfw0CFR4Xh3ZMyIu7gk4sElRhiysqpdAI2NAuA5085ML20/2x X-Received: by 2002:a17:90b:1e02:b0:28b:2f4f:75e7 with SMTP id pg2-20020a17090b1e0200b0028b2f4f75e7mr2571645pjb.13.1705983163439; Mon, 22 Jan 2024 20:12:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705983163; cv=pass; d=google.com; s=arc-20160816; b=KwQ1fYhoa/BbLbfjs6K2TnFcmhLRFRKiaZvIQSfbwDZlc/yt83PU3xmaUxB3q+PVlO HUfiR1BzTCUkLr3On7N2FlJ/cSKQcloY/Ip5J1iqxsCsqLuThZYLLGnN1iVb4FCkDjw+ P1qpCU3xu6hSrfdU1MnvrwoXnvlUzBWPA2hT9G5UlHFAYHGaYyeaRqAWWLhr9OpqvVJS iWLp9pcgWtuzjqr4Vc6cQDlBedkEE3oSfByj1EXVBDRKDKKrvPxioGUgY5imnpLu5GvH J3OSgKFUb/rsAVG7Ay11vjpFpcCXWTJsmjbNXu8/u0ZpIL7CeMRzNplUdS0nRfyk3quN q8/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=buKQTMfKNJRacNrkdHRFf6AhpxHRlVaZFUO2vZnUhZ8=; fh=mxKfdGA1jddtH7BjHWkjPpZMn4JeKdsSiZe3BjuqDbE=; b=wzbFGLo4cJxmdgUFxA4yr3wt05CaDwwe3LDB6t+2BJyw9eboDKWVp/TWWKGFiaZB8S wxD4LZWMnunQKBAgf6Za3DB42oFdGThf1KGAQPDoxKseQFTocZyU3eP5U8dZ970YaQ2e UY1jsBz/IN+LNEeIUvsFoXnqf8FALs/RfihklMzAMbnieKE5lL/Lt9SjeCUpwMv8CHRo 1lyP4Ue7BcDzp1A2ODRF07qy2xvMqIEyBihmFXwAe/lAmAt4o6jlIa1ZvfAnrvUnH28l r07v8bQoqPR5Lzu/Xa7/pxrLl2X4EPKoLu7LVvPJfA5795gJuXryGPMP8Nicc38JAKRV pUUA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TY8M2Mvp; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-34558-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34558-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i10-20020a170902c94a00b001d5f4f26b04si9445340pla.299.2024.01.22.20.12.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 20:12:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34558-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TY8M2Mvp; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-34558-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34558-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 126932929B5 for ; Tue, 23 Jan 2024 01:54:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AB0D12AAEE; Tue, 23 Jan 2024 00:55:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TY8M2Mvp" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 5478E64CDA for ; Tue, 23 Jan 2024 00:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705971333; cv=none; b=kuH36VCkvaqS+P9s7OA+nzd2U0B+p7/rIsj3P14AGcopKDzBiqOMz4gwvweWKt/+G5MYw3uou9qkzZVrNXDhFnEybW0jeqH/bvOCuscAEppfhQOLvT8qJ0YSrusaTUiD/DjDQWvjbbQH55W+diyijbkVK1fCE0zde5ggU/RT8wM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705971333; c=relaxed/simple; bh=4qawhNGO6wKxMSuceG7kbjXMOkTOZFYEvmKvx8RGwqI=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=KJhPCwE6Jl2jLw1UV2a9uTX4FestzEFdPVBtL10R6AexMGxygGZ65GwVVafeVB5DUf1nAxtC1zLSkmwPceSQX6UOMx3kZ0L3cBCuMfi0BWjFEMm1pfVcBJzPECpPqPvXQRmlfrKbSQC9MKInPvd+4FLPvqCnIj5JJVkkJgJMBhU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=TY8M2Mvp; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705971332; x=1737507332; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=4qawhNGO6wKxMSuceG7kbjXMOkTOZFYEvmKvx8RGwqI=; b=TY8M2MvpSz9snQBS7YODyHah04bLksfgBu/aRpO1VSBCII5CJX3ima3l TZMWKq/+mE2q6xRcY4PjWiLuI+OtcEFJ3PGcuyMFRuBgBBq309B4PaMgY A0eqdbft/TjaHHGwoIfJ04CccbMKILVM0izFYiVp0rFb8R7esCAaYVIAF XGh6AmD9Kl443OZYjyOVAv+5KdQW6rEWb3N0Jmurv74StORloBbOuN64Y oDCl3wZBxDU7ceKx0oOTu1m3Y0U+J25ykFSjv2k9/hOOhEnfR0e0mg4cS DlgJR5siygnlFoKDXrlFWDP5k9o3hHbaYwVXFy0Sd2cZrvKpAZEoUepSL w==; X-IronPort-AV: E=McAfee;i="6600,9927,10961"; a="8739556" X-IronPort-AV: E=Sophos;i="6.05,212,1701158400"; d="scan'208";a="8739556" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 16:55:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,212,1701158400"; d="scan'208";a="20157410" Received: from guoxuanl-mobl.ccr.corp.intel.com (HELO [10.254.212.246]) ([10.254.212.246]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jan 2024 16:55:30 -0800 Message-ID: <42b53bff-4027-4cb6-a457-e26fd62895e5@linux.intel.com> Date: Tue, 23 Jan 2024 08:55:28 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, =?UTF-8?B?SsO2cmcgUsO2ZGVs?= , Will Deacon , iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: DMAR-IR: IRQ remapping was enabled on dmar6 but we are not in kdump mode To: Paul Menzel References: <5517f76a-94ad-452c-bae6-34ecc0ec4831@molgen.mpg.de> <433452d0-589a-49c8-8044-dcc93d5be90a@linux.intel.com> <24bf9a11-6abd-4ccf-9ca1-3cf75c45d374@molgen.mpg.de> Content-Language: en-US From: Baolu Lu In-Reply-To: <24bf9a11-6abd-4ccf-9ca1-3cf75c45d374@molgen.mpg.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024/1/22 22:53, Paul Menzel wrote: > Am 22.01.24 um 13:38 schrieb Baolu Lu: >> On 2024/1/19 22:45, Paul Menzel wrote: >>> >>> On a Dell PowerEdge T640, Linux 5.9 and 6.6.12 warn about kdump: >>> >>>      [    2.728445] DMAR-IR: IRQ remapping was enabled on dmar6 but >>> we are not in kdump mode >>>      [    2.736544] DMAR-IR: IRQ remapping was enabled on dmar5 but >>> we are not in kdump mode >>>      [    2.744620] DMAR-IR: IRQ remapping was enabled on dmar4 but >>> we are not in kdump mode >>>      [    2.752695] DMAR-IR: IRQ remapping was enabled on dmar3 but >>> we are not in kdump mode >>>      [    2.760774] DMAR-IR: IRQ remapping was enabled on dmar2 but >>> we are not in kdump mode >>>      [    2.768847] DMAR-IR: IRQ remapping was enabled on dmar1 but >>> we are not in kdump mode >>>      [    2.776922] DMAR-IR: IRQ remapping was enabled on dmar0 but >>> we are not in kdump mode >>>      [    2.784999] DMAR-IR: IRQ remapping was enabled on dmar7 but >>> we are not in kdump mode >>> >>> Looking through the logs, this only happens when using kexec to >>> restart the system. >> >> The code that warned this is, >> >>   599         if (ir_pre_enabled(iommu)) { >>   600                 if (!is_kdump_kernel()) { >>   601                         pr_warn("IRQ remapping was enabled on %s >> but we are not in kdump mode\n", >>   602                                 iommu->name); >>   603                         clear_ir_pre_enabled(iommu); >>   604                         iommu_disable_irq_remapping(iommu); >>   605                 } >> >> The VT-d interrupt remapping is enabled during boot, but this is not a >> kdump kernel. >> >> Do you mind checking whether the disable interrupt remapping callback >> was called during kexec reboot? >> >> 1121 struct irq_remap_ops intel_irq_remap_ops = { >> 1122         .prepare                = intel_prepare_irq_remapping, >> 1123         .enable                 = intel_enable_irq_remapping, >> 1124         .disable                = disable_irq_remapping, >> 1125         .reenable               = reenable_irq_remapping, >> 1126         .enable_faulting        = enable_drhd_fault_handling, >> 1127 }; > > Is there a way to check this without rebuilding the Linux kernel? I am not sure, but you can check whether any messages are dumped in the path of .disable callback? or try to use ftrace? Best regards, baolu