Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp176904lqd; Tue, 23 Apr 2024 20:45:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYc1A3gcPAFhH/iYTbhTmk+XI3/XRAXzZ9xqVVjdXAhFjiAd9noDNJrjxY756ux8oGDrZbRpIh2A3EqjIBR7PAPYodqw2WALygEda7PQ== X-Google-Smtp-Source: AGHT+IHcXWVgOBj0usYIUonEIEsue/N95p9czJroU6DQSUfJ8Z7WTgJOhHnyifM2YB4+8+TceweG X-Received: by 2002:a17:906:ad8:b0:a55:75f6:ce0f with SMTP id z24-20020a1709060ad800b00a5575f6ce0fmr729349ejf.13.1713930321318; Tue, 23 Apr 2024 20:45:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713930321; cv=pass; d=google.com; s=arc-20160816; b=i4WmZLrO/jxyvyrFxKPl3EZZ+C2t7jx4CzUTvKZ4vSS3Cixcf+wn7HuaQJovzz2Y9R uzAz23gBsBifkUqpT8NQU0Szpr5BQP7SUgOnzvb4FUUKd8t+Oel/DtzdkhEuKI0XMkCR R6zMsTlgOPPx/HvL3H7WehE5ztA05ocBTLaUeBMfh+I/d/p+22EVsUggl4TuLtB5j26M dBrL8a2+JWanm5haRnSsMPo17yLT0qqg38r4iY/4p6Ns6aVbVJvTw4ZrlaQTwmabfYAB mUuv5bAcAblRw5u4C5c/tidArxEZ3sPNP4k/lH4BBSl4lJV8flt1a0O1XFqxmH/+WcUX H60A== 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=YMM1z08TOWR8Y/gTQntr5YZf+RgjWEXLPg+5gKSqh+I=; fh=H4ZXu/n2a0V4wMDAeoiyy09BhaLT4/wkC+qpEupPLLU=; b=YH1qRQov04iXNCW/nHi1DBTiSwueS+j+B917SRB6WgqkezWKcGpa/aJUK7nXqSgseC nQycW+B7viO7kcF4ZB5lpTH8+P8InSrmR3fCftSduRu5IJuA47o3iT0JRlkcMaZIxAOr Zaihhk0dxgrkJkq2klAi4QAhtGXRLPcwvSFWYlaplNL6V+Vgq+hSsLC4ALGuwBRGOGQN tDBbP7LKAOJFpC8e/26b/EuKksRZhjdkkStjfQerxcQB5uHSl3MgOg4hwjmvttOWdETA 7GZMoObYHDqAkN0mKlMEjHLagzsWIlYcgpgrYmu854yn7yPcxc+n4T4829RunuBRTH+0 BUqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M4y0Hhn1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-156232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156232-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. [147.75.80.249]) by mx.google.com with ESMTPS id hh7-20020a170906a94700b00a55628c84f3si7853244ejb.691.2024.04.23.20.45.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 20:45:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M4y0Hhn1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-156232-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156232-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 E3B881F2489F for ; Wed, 24 Apr 2024 03:45:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B18AC1420A8; Wed, 24 Apr 2024 03:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="M4y0Hhn1" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 A2D3713C82F for ; Wed, 24 Apr 2024 03:44:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713930298; cv=none; b=miIPz4Qgag+kBrrwioNP3gcFRN9xyxVhmPHPWeNrLWFHVUSqpbFFXMjzNCn259FWw2FE9Z5hdNlOSicakjuBdX+FY7ltQUYgnGfjfLD8oe+rdkfjCymWXW/2UGej7t44r6LJFxyLW7EdDtv+aH9LuvdyNsk7aGT//lhf4qhpN7c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713930298; c=relaxed/simple; bh=k4ri3X4W0eb+g0rZLGMhcbWzg5Ntju/ygoN7+pfEGfs=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=V0VScXnO5l++/3Sdmhg5wcnvbd6K/j4zVfZD3na/bCQganxKXaXFEgFRS7rWY4NQa3DPJcPuVkySeQHJ0KZ2Pvi0abdiDlSB2HDq3NrlEin7eK2dw1rIZpVVC1QjMo57+3h/oKxxI+qHTq3P10byO5Yocs+Ut7aYK5lt3pCtRyI= 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=M4y0Hhn1; arc=none smtp.client-ip=198.175.65.16 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=1713930298; x=1745466298; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=k4ri3X4W0eb+g0rZLGMhcbWzg5Ntju/ygoN7+pfEGfs=; b=M4y0Hhn196gqutn8OMt0vrgdgTBtmolBnCbqAZC8Y5pKzyY33gb9uEj0 2Tiu3thPPCKfXuadbetk93ByXcCNBX3//vPxAaTblFRxF1TCJCe8El+7m 0uzaxhUpY/MnAcsMppZFQKS/r+EOtfqtdKPPpDBm8exLyEef9ipIlYFiP tb0pYyLklALUEsH3sHjezdYQ1Lsm2QVFuP2MD24L6YunwrVo0xtp9Owbf CovAj1w/v5JtQ4zHT7HgSUV50Fd2tuKrLNaIHUcJuNOn90L2r/ZMbjCw0 lXvIaDKRGJo2r8Y17DWF8h25k7Jxc1S48v0OZvligjWRtWlyv0JjVYC7X Q==; X-CSE-ConnectionGUID: CojGh8JjQfmxEYfS5I3JOA== X-CSE-MsgGUID: y5OAN/NwSbmxupCp4/LoBA== X-IronPort-AV: E=McAfee;i="6600,9927,11053"; a="9660465" X-IronPort-AV: E=Sophos;i="6.07,225,1708416000"; d="scan'208";a="9660465" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 20:44:57 -0700 X-CSE-ConnectionGUID: 5SXu89jTSqSNgLuYHCHifA== X-CSE-MsgGUID: IaOA1sGfRMG+oMf7Fm/4xg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,225,1708416000"; d="scan'208";a="29365322" Received: from unknown (HELO [10.239.159.127]) ([10.239.159.127]) by orviesa005.jf.intel.com with ESMTP; 23 Apr 2024 20:44:54 -0700 Message-ID: Date: Wed, 24 Apr 2024 11:43:30 +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 , Russ Anderson Subject: Re: [PATCH v2] iommu/vt-d: Allocate DMAR fault interrupts locally To: 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 3/22/24 4:50 AM, Dimitri Sivanich wrote: > 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 > --- > > v2: per Thomas Gleixner, implement this from a DYN CPU hotplug state, though > this implementation runs in CPUHP_AP_ONLINE_DYN space rather than > CPUHP_BP_PREPARE_DYN space. Patch has been queued for iommu/vt-d. Best regards, baolu