Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1246892lqe; Mon, 8 Apr 2024 03:27:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUiUkSRtyJWIuxsThsJvzwvIIjOAL6aGoIuOUAy2WtcslfFKsov+ydiPjLGIlIDjHDap+Vh7H/SywzhXAVq38a+UbUIKteFCz6SH3kQrQ== X-Google-Smtp-Source: AGHT+IHaEutf9gFcOkf1BuLu19YXmVbzAH+eF3Hz41/I6RaUxyml9RBjpRYfS2dOERR/+IICavgp X-Received: by 2002:a05:620a:24cb:b0:788:7817:3c15 with SMTP id m11-20020a05620a24cb00b0078878173c15mr10704280qkn.6.1712572037103; Mon, 08 Apr 2024 03:27:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712572037; cv=pass; d=google.com; s=arc-20160816; b=oRkNE85c1JyfeRHUpJ9h5HwC84y6GrFZoCubrWSH1dlHm98nmpD6kU4pLjOhZBLAlX ScQMZfOAthk2Q3fnoTBlsMS2F6UzXNiJctYnq49wujPggD5cI/mTGKYRKFqz22Ke8plI neWeEDdhVWYaa9BmJJYCQ1v/EzCr7QIg70arzyREEgDuGfwbBP9lx4YNgB5TadOekbLY WUvuPxdsAPKSytqdDyrsLfcFoADfUxkenPOlUMkK75xyVCVE+0v9loQaqLtOxQbGsUqp 3h+1ZFiGkJzeiyT+AqWuJzk1FqKtXNY0KrYeuJfY592OS9jH4gWoiCIDkZ2weywL02lH ZOUA== 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=hI2suUayIYyarYLaZ4ZQ3Dd2e7UQQ5qjDS/j91dxsFQ=; fh=JFuwuLGTPFcLJTWyQLk606YDfXSPWZbkSxWL096QP6Q=; b=hgJW7zZJFCgwyukJUyADi5rWZcG3/UeN+2PscM5RpgVQEQljxHLjjzBg023slvyZ+Y Je5wpt6j3Xd+4k40F1mG4bnO+Jka7d7Yi9oy8+7Dth1glTKhGs1PmJwgApxpKNywEsg+ 0a035kdI67Lf1SYKckCZoqhg15O6RcWUBfOgN2ancy3TavQtV93xpeI9UGvqOB/cor6I JOVjB81tGU7BYm1jNWaIc+RgfZK9Tp9MT5VF3+LnrJX4bcCISCqFgDB9RYRx1yXGllFy m0gjcY3TYwhifSeE+LDBIGh836+hpRiYhs9386bCijWeSMIKE+EP8xBvaeY+NvJktBY5 WDRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b+6ofYEj; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-134891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bn49-20020a05620a2af100b0078bd053a357si7976340qkb.424.2024.04.08.03.27.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 03:27:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=b+6ofYEj; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-134891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134891-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7312F1C21C79 for ; Mon, 8 Apr 2024 07:22:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 067A42375F; Mon, 8 Apr 2024 07:22:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="b+6ofYEj" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 B833928DC1 for ; Mon, 8 Apr 2024 07:22:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712560925; cv=none; b=laTEE5q3E6vzHbNa5WTAO5zd+n2uHcqczSqnhTlGl5/IXwoa1d8qmqKs5m6DSoJgQrK+mn2d1oKG/lkcpqtIUQPAA/SGGeDycBDFB0x5Wf/Ao4DhFhQ6kBF0fRoExOw9FX0K9D/5/mWd56f8UUd09DgYlo/KflkW3AiB0UlvXnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712560925; c=relaxed/simple; bh=5Hk5nRRS+GV+l3S2tfQORQs5jaxuleNOHdTtJDOLK/M=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=lcbYXKziliH89tH9stzLnishAlnfxlUYaqbdwkracWTnE6dn5Zv/OBe/YoF0jQ2doJJVzlAlE3Ej6JFygJFZX1J9koC5mCkEi+NUTt2xSG+qErL3rTobBNdOlEnZpVulbzANl2gjMYNAFgcqIuWW4FGAuK0icTqQpDX0ZmeMMYU= 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=b+6ofYEj; arc=none smtp.client-ip=192.198.163.19 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=1712560923; x=1744096923; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=5Hk5nRRS+GV+l3S2tfQORQs5jaxuleNOHdTtJDOLK/M=; b=b+6ofYEjTgpJV7zO687gxXnPqUZ40uyz05r4DKBnASHvBDpyTcTZt1u0 NbtDglnbD6JU79zdMBnZ7y5AQoJK3SmyTHoXKAbXO/zDvjqW6fshSlatb Dv6CufS+WcS4FI2/YHiYadF0rgVZ2bJeerKUnEIIkZ/8hfT9IwAsGnmK/ A4XkJ2Hm597hMbVVBqH84KzyFrzJ6Kluo/JgKgSQcIrN3GoyZkTLnqI1L 0v9EDOotvwz/ySqwo5bO2/SYHHm9uGKym8EbMNMKBjCAlXZZj1phfs71v JUgAY9HFJN0nIdxSTzr7p6smCWp+q6CSAC1yS02rNN4MlKst/iRUCurJH A==; X-CSE-ConnectionGUID: FAy6LnlKRP23VH0necI9cQ== X-CSE-MsgGUID: xBvQElpLRgiclOj1yVWPNQ== X-IronPort-AV: E=McAfee;i="6600,9927,11037"; a="7681829" X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="7681829" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 00:22:03 -0700 X-CSE-ConnectionGUID: 5rahD3LjQMGxmrSACFgZjg== X-CSE-MsgGUID: shVHiPvXQ26Vz5R8c8qJyQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="57256966" Received: from penghuan-mobl.ccr.corp.intel.com (HELO [10.254.211.109]) ([10.254.211.109]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 00:21:59 -0700 Message-ID: Date: Mon, 8 Apr 2024 15:21:56 +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, "linux-kernel@vger.kernel.org" , Steve Wahl , "Anderson, Russ" , Jacob Pan Subject: Re: [PATCH v2] iommu/vt-d: Allocate DMAR fault interrupts locally To: "Tian, Kevin" , Dimitri Sivanich , Thomas Gleixner , Joerg Roedel , Suravee Suthikulpanit , Will Deacon , Robin Murphy , David Woodhouse , Mark Rutland , Peter Zijlstra , Arnd Bergmann , YueHaibing , "iommu@lists.linux.dev" References: Content-Language: en-US From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/4/8 14:54, Tian, Kevin wrote: >> From: Dimitri Sivanich >> Sent: Friday, March 22, 2024 4:51 AM >> >> The Intel IOMMU code currently tries to allocate all DMAR fault interrupt >> vectors on the boot cpu. On large systems with high DMAR counts this >> results in vector exhaustion, and most of the vectors are not initially >> allocated socket local. >> >> Instead, have a cpu on each node do the vector allocation for the DMARs on >> that node. The boot cpu still does the allocation for its node during its >> boot sequence. >> >> Signed-off-by: Dimitri Sivanich > > Reviewed-by: Kevin Tian > Kevin, Jacob has another proposal which shares the irq among all IOMMUs. https://lore.kernel.org/linux-iommu/20240403234548.989061-1-jacob.jun.pan@linux.intel.com/ How do you like this? Best regards, baolu