Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp115262lqe; Fri, 5 Apr 2024 14:47:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVQ7BPbAGnK+6zP1usJO61KpktwSW5+GOzkXHh9cDhNbjj7SyZzmzT7W5n5KVqMWjgu8Apz3hcyxQqpQ98b6uNCtyFgFMacoqY4IpV/sQ== X-Google-Smtp-Source: AGHT+IEiizyBT2gPTA8wkOHkPIc4lc8ih8AjmhYJ1lC5sfkGYiMcvw0jC3OPwrzXi4Fh6rkJ0axp X-Received: by 2002:ac2:528f:0:b0:515:aae5:6c11 with SMTP id q15-20020ac2528f000000b00515aae56c11mr1881921lfm.34.1712353640454; Fri, 05 Apr 2024 14:47:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712353640; cv=pass; d=google.com; s=arc-20160816; b=UMQkbgjkpVo76SF0JrmragKUQdLwxh2lBbcYEx7jJ6+ekXVRComsfTzi3J5Qse4hA4 xZVV30gnUS/SRAd/o/I4Pfj34XArzXVmWMdQcwyjg8d8TmBxcqILoybv8JbDilV2w4xh mhOYsJSAOgqL0FbG9f90lMH+nIX+eYzFXOAYk/m+ey1d/zJvQ8yAWlzbFnuYf6Yx4f4K dl1ouIAsXOkTB/fN0vrbjdhRtbv9+DXwhfXqgNo9LKWFqFcdbhjVcUddLTV9d8kmrZEU GieLRE9SVfGpeVTLI2y7xdjA7wb2JJFh8spE+9FzvJ6kjTD1Yje6xVh02xenqhASNCta a64Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=Zo0hUYpfmCS/lv525aOk/fCirVgiqDPBwGaZI1hocjQ=; fh=/BZ9QRTR3hL7B0nX7OM86+yzXXQ+bDzPfXVyfcM/8jo=; b=SatK14z4YHJilhMW6o1SpCfg5U2/mrRxq4neXlL0NA8JkEOVJsPW7XhLR83tpTW6mv pPfKEfebTJkAvcTNrQJMOacrQ/C8AOhKP3jpnri9DH/xSILApzeMfHNqdzDnEPdx3iut hkO/T+idG2rfuffWSMQrN750vrLyamSJ5JtJx4wiS5QSQZT/6fZ3+mbDbqoNBnPIBk2g bfQ8VvGsL7frexmxfs8b7BTPB8T4Fsrze7Quq4kezVA1BdckPydlymtp7naotFReJPV4 BSzgg7knSI4lqLzbHgGtpHtYQk7GO8Eq5AP6Qc6PXxXvFlXMYgND3aZE5oyYS9red8i+ rDnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mDejj3ET; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-133292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id mb27-20020a170906eb1b00b00a4df7a2d0e8si1044145ejb.945.2024.04.05.14.47.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 14:47:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133292-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=@intel.com header.s=Intel header.b=mDejj3ET; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-133292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133292-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 218ED1F222D0 for ; Fri, 5 Apr 2024 15:51:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2247117109B; Fri, 5 Apr 2024 15:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mDejj3ET" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 B1A5F16F28B; Fri, 5 Apr 2024 15:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712332231; cv=none; b=Ma+zSv8DXX2U0UQiqfXsJ8cds57f5OSUhOlg+uzWlv9hWuFI/7AF3DSOSpwxLO7SgtzvjyN039vwajIy0OglrU76Ohb/X6phXrQ26d304vgLPME4zca6FypY4TZlDVKB5UMiO+5DGnQO+NU8qAJ1Qhedu0eUbQw7s310Bng9Exo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712332231; c=relaxed/simple; bh=JuwIBPyywPFitWU0GAYwZuSb8x811YnAxbc/FR7Z6kg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jBU5MY1W6QRh0+Mx+W/ACK6CMe5kHj6J+IatiYganWDrI5TlDM+zFsOSK4JCSUnBhAt8EVm0ANxwnu/kHMPzM5U8WiwJL2+B3wrl4Iuvu87Ft4bYS9pXqJogKrEAG98O+rEnFJ5HkRyQrFUcPgp6gGDxSYE8eJU15voiYKZYavY= 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=mDejj3ET; arc=none smtp.client-ip=198.175.65.18 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=1712332229; x=1743868229; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JuwIBPyywPFitWU0GAYwZuSb8x811YnAxbc/FR7Z6kg=; b=mDejj3ETBMQC3/UBpoaBLyPhW94V8rkm/P03UDmXMLfTpQPQp+is3t2s VIjeBble3YCNSruCKVEp+1PrkGqMS9U1Mx1UpDwonWsEPNHTigC7XIupg EEas9o2WnYkZT9r+Lx7rZiCsfkLsKxz14dvneTgcH1++SsTrDZ/rISp7o EJWdQCBncoiEoqdKTFAoMSY42drhBKfDUWaLbJFVmClcmTaclZTRF+cHM 3asCrbsPy0m39UxlaDIRqAFrU2rB1It1mvri/xOkpfkhF1ZaCrgzY+suT e0tc1pYTf0IjvbSjtlw1XULiu3wGfplKm3mjxVozb6G4i9ri7/5Pp4v3l g==; X-CSE-ConnectionGUID: xaUgz2DZTJOPoNF5yyEW9Q== X-CSE-MsgGUID: n9S30rN/TRqFM6u0dFIVzA== X-IronPort-AV: E=McAfee;i="6600,9927,11035"; a="7830974" X-IronPort-AV: E=Sophos;i="6.07,181,1708416000"; d="scan'208";a="7830974" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2024 08:50:19 -0700 X-CSE-ConnectionGUID: b+flWz2dSiyMWDRXybRuQw== X-CSE-MsgGUID: xBkY6l/yQaKUhOjf4ieNSA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,181,1708416000"; d="scan'208";a="23905135" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.54.39.125]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2024 08:50:19 -0700 Date: Fri, 5 Apr 2024 08:54:46 -0700 From: Jacob Pan To: Robert Hoo Cc: LKML , X86 Kernel , Peter Zijlstra , iommu@lists.linux.dev, Thomas Gleixner , Lu Baolu , kvm@vger.kernel.org, Dave Hansen , Joerg Roedel , "H. Peter Anvin" , Borislav Petkov , Ingo Molnar , Paul Luse , Dan Williams , Jens Axboe , Raj Ashok , "Tian, Kevin" , maz@kernel.org, seanjc@google.com, Robin Murphy , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH 04/15] x86/irq: Add a Kconfig option for posted MSI Message-ID: <20240405085001.2bb3e8ad@jacob-builder> In-Reply-To: <89927174-6ca9-4299-8157-a0404b30b156@gmail.com> References: <20240126234237.547278-1-jacob.jun.pan@linux.intel.com> <20240126234237.547278-5-jacob.jun.pan@linux.intel.com> <89927174-6ca9-4299-8157-a0404b30b156@gmail.com> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Robert, On Fri, 5 Apr 2024 10:28:59 +0800, Robert Hoo wrote: > On 1/27/2024 7:42 AM, Jacob Pan wrote: > > This option will be used to support delivering MSIs as posted > > interrupts. Interrupt remapping is required. > > > > Signed-off-by: Jacob Pan > > --- > > arch/x86/Kconfig | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > index 5edec175b9bf..79f04ee2b91c 100644 > > --- a/arch/x86/Kconfig > > +++ b/arch/x86/Kconfig > > @@ -463,6 +463,17 @@ config X86_X2APIC > > > > If you don't know what to do here, say N. > > > > +config X86_POSTED_MSI > > + bool "Enable MSI and MSI-x delivery by posted interrupts" > > + depends on X86_X2APIC && X86_64 && IRQ_REMAP > > Does posted_msi really depend on x2APIC? PID.NDST encoding supports both > xAPIC and x2APIC. No, posted_msi works with xAPIC as well. I just fixed a bug in NDST xAPIC encoding, will be in v2. I was thinking from the performance advantage of x2APIC. But you are right they are orthogonal. > If posted_msi posts more stringent requirement, I think it deserves an > explanation in this patch's description. > And, X86_X2APIC already depends on IRQ_REMAP, can we just list one of > them here? Will drop X2APIC dependency. Thanks, Jacob